mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
75 lines
2.5 KiB
HTML
75 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
|
<link rel="stylesheet" href="/static/css/mdeditor/editormd.min.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="theme-color" content="{$options.themeColor}" />
|
|
<!--
|
|
manifest.json provides metadata used when your web app is added to the
|
|
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
-->
|
|
<link rel="manifest" href="/manifest.json">
|
|
<!--
|
|
Notice the use of %PUBLIC_URL% in the tags above.
|
|
It will be replaced with the URL of the `public` folder during the build.
|
|
Only files inside the `public` folder can be referenced from the HTML.
|
|
|
|
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
work correctly both with client-side routing and a non-root public URL.
|
|
Learn how to configure a non-root public URL by running `npm run build`.
|
|
-->
|
|
<title>{$fileName} - {$options.siteName}</title>
|
|
<script type="text/javascript">
|
|
colorTheme = {:json_encode($options["themeConfig"])};
|
|
isHomePage = false;
|
|
isSharePage = false;
|
|
pageId="";
|
|
apiURL={
|
|
imgThumb:"/File/Thumb",
|
|
preview:"/File/Preview",
|
|
download:"/File/Download",
|
|
docPreiview:'/File/DocPreview',
|
|
};
|
|
userInfo={
|
|
uid:{$userInfo.uid},
|
|
nick:"{$userInfo.userNick}",
|
|
email:"{$userInfo.userMail}",
|
|
group:"{$userInfo.groupData.group_name}",
|
|
groupId:{$userInfo.groupData.id},
|
|
groupColor:"{$userInfo.groupData.color}",
|
|
};
|
|
siteInfo = {
|
|
mainTitle:"{$fileName}",
|
|
};
|
|
fileInfo={
|
|
url:"{$url}",
|
|
name:"{$fileName}",
|
|
path:"{$path}",
|
|
};
|
|
mediaType = {},
|
|
isMobile = window.innerWidth<600;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<noscript>
|
|
You need to enable JavaScript to run this app.
|
|
</noscript>
|
|
<div id="root"></div>
|
|
<!--
|
|
This HTML file is a template.
|
|
If you open it directly in the browser, you will see an empty page.
|
|
|
|
You can add webfonts, meta tags, or analytics to this file.
|
|
The build step will place the bundled scripts into the <body> tag.
|
|
|
|
To begin the development, run `npm start` or `yarn start`.
|
|
To create a production bundle, use `npm run build` or `yarn build`.
|
|
-->
|
|
</body>
|
|
<script src="/static/js/jquery.min.js"></script>
|
|
<script src="/static/js/mdeditor/editormd.min.js"></script>
|
|
</html>
|