Using the new vue version of the app

This commit is contained in:
Martin Donnelly 2020-02-17 16:49:59 +00:00
parent aa21fba9b1
commit 860dc1acec
15 changed files with 38 additions and 2 deletions

2
.gitignore vendored
View File

@ -149,7 +149,7 @@ artefacts/*.json
/tests/*.zip
/output/
/dist/
# /dist/
!/tests/data/
/tests/sink/
/debug/

1
dist/css/app.1ce6e344.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

1
dist/index.html vendored Normal file
View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>Menus</title><link href=/css/app.1ce6e344.css rel=preload as=style><link href=/js/app.1be9a2fa.js rel=preload as=script><link href=/js/chunk-vendors.a3fae7eb.js rel=preload as=script><link href=/css/app.1ce6e344.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue_menu doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.a3fae7eb.js></script><script src=/js/app.1be9a2fa.js></script></body></html>

2
dist/js/app.1be9a2fa.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/app.1be9a2fa.js.map vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/js/app.74171e30.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/app.74171e30.js.map vendored Normal file

File diff suppressed because one or more lines are too long

14
dist/js/chunk-vendors.a3fae7eb.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-vendors.a3fae7eb.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -3399,6 +3399,7 @@ class Recipe {
constructor() {
// this.url = 'https://menu.silvrtree.co.uk/recipes';
this.url = 'http://localhost:3000/recipes';
this.url = 'http://localhost:3000/recipes';
this.listData = [];
this.content = document.querySelector('#content');

BIN
menu.db

Binary file not shown.

9
package-lock.json generated
View File

@ -1008,6 +1008,15 @@
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
"cors": {
"version": "2.8.5",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
"integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
"requires": {
"object-assign": "^4",
"vary": "^1"
}
},
"create-ecdh": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz",

View File

@ -12,6 +12,7 @@
"axios": "^0.19.0",
"backbone": "^1.4.0",
"body-parser": "^1.19.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-session": "^1.17.0",

View File

@ -3,6 +3,7 @@ const bodyParser = require('body-parser');
const session = require('express-session');
const path = require('path');
const helmet = require('helmet');
const cors = require('cors');
const db = require('./server/lib/loginmanager');
@ -12,8 +13,9 @@ require('dotenv').config();
const serverPort = process.env.PORT || 3000;
const sitePath = 'live';
const sitePath = 'dist';
app.use(cors());
app.use(helmet());
app.use(session({