forked from Mirrors/keyoxide-web
Add dialog polyfill
This commit is contained in:
parent
64180b2355
commit
0beeab7101
3 changed files with 14 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bent": "^7.3.12",
|
"bent": "^7.3.12",
|
||||||
|
"dialog-polyfill": "^0.5.6",
|
||||||
"doipjs": "^0.11.2",
|
"doipjs": "^0.11.2",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
|
|
|
@ -36,6 +36,7 @@ router.get('/doip.min.js', function(req, res) {
|
||||||
router.get('/doip.js', function(req, res) {
|
router.get('/doip.js', function(req, res) {
|
||||||
res.sendFile(`node_modules/doipjs/dist/doip.js`, { root: `${__dirname}/../` })
|
res.sendFile(`node_modules/doipjs/dist/doip.js`, { root: `${__dirname}/../` })
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/openpgp.min.js', function(req, res) {
|
router.get('/openpgp.min.js', function(req, res) {
|
||||||
res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` })
|
res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` })
|
||||||
});
|
});
|
||||||
|
@ -50,6 +51,13 @@ router.get('/qrcode.min.js.map', function(req, res) {
|
||||||
res.sendFile(`node_modules/qrcode/build/qrcode.min.js.map`, { root: `${__dirname}/../` })
|
res.sendFile(`node_modules/qrcode/build/qrcode.min.js.map`, { root: `${__dirname}/../` })
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/dialog-polyfill.js', function(req, res) {
|
||||||
|
res.sendFile(`node_modules/dialog-polyfill/dist/dialog-polyfill.js`, { root: `${__dirname}/../` })
|
||||||
|
});
|
||||||
|
router.get('/dialog-polyfill.css', function(req, res) {
|
||||||
|
res.sendFile(`node_modules/dialog-polyfill/dist/dialog-polyfill.css`, { root: `${__dirname}/../` })
|
||||||
|
});
|
||||||
|
|
||||||
router.use('/', express.static('static'));
|
router.use('/', express.static('static'));
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
|
@ -851,6 +851,11 @@ detective@^5.2.0:
|
||||||
defined "^1.0.0"
|
defined "^1.0.0"
|
||||||
minimist "^1.1.1"
|
minimist "^1.1.1"
|
||||||
|
|
||||||
|
dialog-polyfill@^0.5.6:
|
||||||
|
version "0.5.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/dialog-polyfill/-/dialog-polyfill-0.5.6.tgz#7507b4c745a82fcee0fa07ce64d835979719599a"
|
||||||
|
integrity sha512-ZbVDJI9uvxPAKze6z146rmfUZjBqNEwcnFTVamQzXH+svluiV7swmVIGr7miwADgfgt1G2JQIytypM9fbyhX4w==
|
||||||
|
|
||||||
diffie-hellman@^5.0.0:
|
diffie-hellman@^5.0.0:
|
||||||
version "5.0.3"
|
version "5.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
|
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
|
||||||
|
|
Loading…
Reference in a new issue