mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
Remove some useless things.
This commit is contained in:
+3
-28
@@ -7,37 +7,12 @@
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
content="eyeblue tank"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/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>蓝眼云盘</title>
|
||||
<title>EyeblueTank</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<noscript>You need to enable JavaScript to run EyeblueTank.</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>
|
||||
</html>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB |
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@@ -11,11 +11,7 @@ export default class PreviewEngine extends Base {
|
||||
/**
|
||||
* 此预览引擎的url
|
||||
* {originUrl} 文件原始的url地址。eg: https://tank.eyeblue.cn/api/alien/download/2a0ceee1-744c-4c82-4215-69c382597a50/abstract-free-photo-2210x1473.jpg
|
||||
* {publicUrl} 对于公有文件publicUrl=originUrl,对于私有文件publicUrl是originUrl带上downloadToken。 eg: https://tank.eyeblue.cn/api/alien/download/2a0ceee1-744c-4c82-4215-69c382597a50/abstract-free-photo-2210x1473.jpg?downloadTokenUuid=6bdba52f-af6b-49ae-5a5d-fd80bfb01d3b
|
||||
* {encodeOriginUrl} 被encodeURIComponent处理后的originUrl。
|
||||
* {encodePublicUrl} 被encodeURIComponent处理后的publicUrl。
|
||||
*
|
||||
* {url} 等价于encodePublicUrl,只提供给用户就行了。
|
||||
* {url} 对于公有文件publicUrl=originUrl,对于私有文件publicUrl是originUrl带上downloadToken。 eg: https://tank.eyeblue.cn/api/alien/download/2a0ceee1-744c-4c82-4215-69c382597a50/abstract-free-photo-2210x1473.jpg?downloadTokenUuid=6bdba52f-af6b-49ae-5a5d-fd80bfb01d3b
|
||||
*/
|
||||
url: string = ""
|
||||
|
||||
@@ -51,7 +47,7 @@ export default class PreviewEngine extends Base {
|
||||
|
||||
//添加office默认预览引擎,使用微软开放接口
|
||||
let officeEngine: PreviewEngine = new PreviewEngine()
|
||||
officeEngine.url = "https://view.officeapps.live.com/op/embed.aspx?src={encodeUrl}"
|
||||
officeEngine.url = "https://view.officeapps.live.com/op/embed.aspx?src={url}"
|
||||
officeEngine.extensions = "doc,ppt,xls,docx,pptx,xlsx"
|
||||
officeEngine.previewInSite = true
|
||||
defaultEngines.push(officeEngine)
|
||||
|
||||
@@ -84,10 +84,8 @@ export default class PreviewerHelper {
|
||||
|
||||
PreviewerHelper.prepareMatterUrl(matter, needToken, function (url) {
|
||||
|
||||
targetUrl = targetUrl.replace("{originUrl}", url);
|
||||
targetUrl = targetUrl.replace("{publicUrl}", url);
|
||||
targetUrl = targetUrl.replace("{encodeOriginUrl}", encodeURIComponent(url));
|
||||
targetUrl = targetUrl.replace("{encodePublicUrl}", encodeURIComponent(url));
|
||||
targetUrl = targetUrl.replace("{originUrl}", matter.getPreviewUrl());
|
||||
targetUrl = targetUrl.replace("{url}", encodeURIComponent(url));
|
||||
|
||||
if (engine.previewInSite) {
|
||||
BrowserPreviewer.show(fileName, targetUrl, matter.size)
|
||||
|
||||
Reference in New Issue
Block a user