diff --git a/frontend/package.json b/frontend/package.json index 2db295a..1d7576b 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "js-uuid": "0.0.6", "js-yaml": "^3.13.1", "linkstate": "^1.1.1", + "papaya-viewer": "^1.0.1449", "popper.js": "^1.16.1", "preact": "^8.2.9", "preact-router": "^2.6.1", diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index 87169dd..3711d93 100755 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -51,6 +51,8 @@ export default { 'node_modules/streamsaver/sw.js': 'dist/sw.js', 'src/js/thirdparty/StreamSaver.js': 'dist/js/StreamSaver.js', 'node_modules/web-streams-polyfill/dist/ponyfill.js': 'dist/js/web-streams-polyfill/ponyfill.js', + 'node_modules/papaya-viewer/release/current/standard/papaya.js': 'dist/js/papaya.js', + 'node_modules/papaya-viewer/release/current/standard/papaya.css': 'dist/css/papaya.css', verbose: true }), buble({jsx: 'h'}), diff --git a/frontend/src/html/index.html b/frontend/src/html/index.html index 5a01586..e7e1be6 100755 --- a/frontend/src/html/index.html +++ b/frontend/src/html/index.html @@ -4,6 +4,7 @@ + + +
+ + ); + } +} + +export default WBImageViewerPage;