Skip to content

Commit 9fbc33b

Browse files
authored
refactor(aliyun_office): remove Aliyun Office preview (#169)
* refactor(aliyun_office): load Aliyun Office SDK dynamically * refactor(aliyun_office): remove Aliyun Office preview
1 parent cd3e261 commit 9fbc33b

File tree

4 files changed

+0
-53
lines changed

4 files changed

+0
-53
lines changed

index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
<meta name="apple-mobile-web-app-capable" content="yes" />
1313
<meta name="apple-mobile-web-app-title" content="OpenList" />
1414
<link rel="apple-touch-icon" href="https://res.oplist.org/logo/logo.png" />
15-
<script
16-
src="https://g.alicdn.com/IMM/office-js/1.1.5/aliyun-web-office-sdk.min.js"
17-
async
18-
></script>
1915
<link
2016
rel="shortcut icon"
2117
type="image/ico"

src/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
declare module "aplayer"
2-
declare namespace aliyun {
3-
class Config {
4-
setToken(token: { token: string }): any
5-
}
6-
function config(options: { mount: Element; url: string }): Config
7-
}

src/pages/home/previews/aliyun_office.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/pages/home/previews/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,6 @@ const previews: Preview[] = [
120120
component: lazy(() => import("./heic")),
121121
prior: true,
122122
},
123-
{
124-
name: "Aliyun Office Previewer",
125-
exts: ["doc", "docx", "ppt", "pptx", "xls", "xlsx", "pdf"],
126-
provider: /^Aliyundrive(Share)?$/,
127-
component: lazy(() => import("./aliyun_office")),
128-
prior: true,
129-
},
130123
{
131124
name: "PDF Preview",
132125
exts: ["pdf"],

0 commit comments

Comments
 (0)