diff --git a/angular.json b/angular.json
index b7c2067..2c6e680 100644
--- a/angular.json
+++ b/angular.json
@@ -29,11 +29,12 @@
"src/assets"
],
"styles": [
- "src/styles.scss"
+ "src/styles.scss",
+ "./node_modules/viewerjs/dist/viewer.css"
],
"scripts": [
"node_modules/echarts/dist/echarts.js",
- "src/assets/echarts/echarts.common.min.js"
+ "src/assets/echarts/echarts.common.min.js"
]
},
"configurations": {
diff --git a/package-lock.json b/package-lock.json
index d88c972..efba5d2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15838,6 +15838,11 @@
"extsprintf": "^1.2.0"
}
},
+ "viewerjs": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npm.taobao.org/viewerjs/download/viewerjs-1.8.0.tgz?cache=0&sync_timestamp=1604814503536&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fviewerjs%2Fdownload%2Fviewerjs-1.8.0.tgz",
+ "integrity": "sha1-jcYLVS0YwTZb7Gv+98IhqzBg8Yg="
+ },
"vm-browserify": {
"version": "1.1.2",
"resolved": "https://registry.npm.taobao.org/vm-browserify/download/vm-browserify-1.1.2.tgz",
diff --git a/package.json b/package.json
index ad99b89..4181002 100644
--- a/package.json
+++ b/package.json
@@ -34,6 +34,7 @@
"ngx-perfect-scrollbar": "^8.0.0",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
+ "viewerjs": "^1.8.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
diff --git a/src/app/ui/all-file/all-file.component.html b/src/app/ui/all-file/all-file.component.html
index e6c7659..6e29c5f 100644
--- a/src/app/ui/all-file/all-file.component.html
+++ b/src/app/ui/all-file/all-file.component.html
@@ -149,7 +149,7 @@