IE compatibility (tested on 11 and Edge so far)

This commit is contained in:
Mark van Renswoude 2018-05-01 20:53:29 +02:00
parent 4db1b2f23d
commit 90f0bfa97e
5 changed files with 1566 additions and 3272 deletions

View File

@ -1,3 +1,8 @@
{
"plugins": ["syntax-dynamic-import"]
"plugins": [
"syntax-dynamic-import",
"transform-es2015-arrow-functions",
"transform-es2015-shorthand-properties",
"transform-es2015-block-scoping"
]
}

View File

@ -23,6 +23,7 @@ const webpackConfigFactory = require('./webpack.config.js');
try
{
const isDevelopment = process.env.NODE_ENV !== 'production';
console.log('Running in ' + (isDevelopment ? 'development' : 'production') + ' mode');
const repository = new Repository(config.database);
await repository.load();

4798
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@
"@fortawesome/vue-fontawesome": "0.0.22",
"async": "^2.6.0",
"async-retry": "^1.2.1",
"babel-polyfill": "^6.26.0",
"bcrypt": "^1.0.3",
"body-parser": "^1.18.2",
"cookie-parser": "^1.4.3",
@ -28,11 +29,12 @@
"diskusage": "^0.2.4",
"ejs": "^2.5.9",
"email-templates": "^3.6.0",
"es6-promise": "^4.2.4",
"express": "^4.16.3",
"express-async-handler": "^1.1.2",
"express-async-handler": "^1.1.3",
"js-cookie": "^2.2.0",
"jsonwebtoken": "^8.2.0",
"lodash": "^4.17.5",
"jsonwebtoken": "^8.2.1",
"lodash": "^4.17.10",
"markdown": "^0.5.0",
"mkdirp": "^0.5.1",
"moment": "^2.22.1",
@ -43,31 +45,34 @@
"npm": "^5.8.0",
"pug": "^2.0.3",
"resolve-path": "^1.4.0",
"tus-node-server": "^0.2.10"
"tus-node-server": "^0.2.11"
},
"devDependencies": {
"axios": "^0.18.0",
"babel-loader": "^7.1.4",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
"babel-plugin-transform-es2015-block-scoping": "^6.26.0",
"babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
"css-loader": "^0.28.11",
"file-loader": "^1.1.11",
"html-webpack-plugin": "^3.1.0",
"node-sass": "^4.8.3",
"html-webpack-plugin": "^3.2.0",
"node-sass": "^4.9.0",
"purecss": "^1.0.0",
"sass-loader": "^6.0.7",
"style-loader": "^0.20.3",
"tus-js-client": "^1.4.5",
"tus-js-client": "^1.5.1",
"uppy": "^0.23.3",
"vue": "^2.5.16",
"vue-i18n": "^7.6.0",
"vue-loader": "^14.2.1",
"vue-loader": "^14.2.2",
"vue-router": "^3.0.1",
"vue-style-loader": "^4.1.0",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.2.0",
"webpack": "^4.6.0",
"webpack-bundle-analyzer": "^2.11.1",
"webpack-cli": "^2.0.13",
"webpack-dev-middleware": "^3.0.1",
"webpack-hot-middleware": "^2.21.2"
"webpack-cli": "^2.1.2",
"webpack-dev-middleware": "^3.1.3",
"webpack-hot-middleware": "^2.22.1"
}
}

View File

@ -1,3 +1,4 @@
import 'babel-polyfill';
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import VueRouter from 'vue-router';
@ -124,7 +125,7 @@ router.beforeEach((to, from, next) =>
{
let isAdminRoot = to.name == 'adminRoot';
if (to.path.startsWith('/admin/') && !isAdminRoot)
if (to.path.substring(0, 7) == '/admin/' && !isAdminRoot)
{
if (!shared.adminToken)
{