Einheit mit in die Datenbank
This commit is contained in:
20
.vscode/launch.json
vendored
Normal file
20
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"program": "${workspaceFolder}/bin/www",
|
||||
"env": {
|
||||
"MONGOPORT": "27098"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
216
log/spritzschema.log
Normal file
216
log/spritzschema.log
Normal file
@@ -0,0 +1,216 @@
|
||||
internal/modules/cjs/loader.js:550
|
||||
throw err;
|
||||
^
|
||||
|
||||
Error: Cannot find module '/opt/app/bin/www.js'
|
||||
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
||||
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
|
||||
at startup (internal/bootstrap/node.js:201:19)
|
||||
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
|
||||
internal/modules/cjs/loader.js:550
|
||||
throw err;
|
||||
^
|
||||
|
||||
Error: Cannot find module '/opt/app/bin/www.js'
|
||||
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
||||
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
|
||||
at startup (internal/bootstrap/node.js:201:19)
|
||||
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
|
||||
internal/modules/cjs/loader.js:550
|
||||
throw err;
|
||||
^
|
||||
|
||||
Error: Cannot find module '/opt/app/bin/www.js'
|
||||
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
||||
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
|
||||
at startup (internal/bootstrap/node.js:201:19)
|
||||
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
|
||||
internal/modules/cjs/loader.js:550
|
||||
throw err;
|
||||
^
|
||||
|
||||
Error: Cannot find module '/opt/app/bin/www.js'
|
||||
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
||||
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
|
||||
at startup (internal/bootstrap/node.js:201:19)
|
||||
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
|
||||
internal/modules/cjs/loader.js:550
|
||||
throw err;
|
||||
^
|
||||
|
||||
Error: Cannot find module '/opt/app/bin/www.js'
|
||||
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:475:25)
|
||||
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
|
||||
at startup (internal/bootstrap/node.js:201:19)
|
||||
at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
/opt/app/node_modules/mongodb/lib/operations/add_user.js:16
|
||||
this.options = options ?? {};
|
||||
^
|
||||
|
||||
SyntaxError: Unexpected token ?
|
||||
at new Script (vm.js:51:7)
|
||||
at createScript (vm.js:136:10)
|
||||
at Object.runInThisContext (vm.js:197:10)
|
||||
at Module._compile (internal/modules/cjs/loader.js:618:28)
|
||||
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
|
||||
at Module.load (internal/modules/cjs/loader.js:566:32)
|
||||
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
|
||||
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
|
||||
at Module.require (internal/modules/cjs/loader.js:598:17)
|
||||
at require (internal/modules/cjs/helpers.js:11:18)
|
||||
[0mGET / [32m200 [0m129.693 ms - 1506[0m
|
||||
[0mGET /stylesheets/style.css [32m200 [0m2.144 ms - 1401[0m
|
||||
[0mGET /javascripts/script.js [32m200 [0m1.857 ms - 3544[0m
|
||||
[0mPOST /data [32m200 [0m36.148 ms - 112[0m
|
||||
[0mGET /data [32m200 [0m8.668 ms - 1344[0m
|
||||
[0mGET /favicon.ico [33m404 [0m18.839 ms - 1191[0m
|
||||
[0mGET /apple-touch-icon-precomposed.png [33m404 [0m10.870 ms - 1191[0m
|
||||
[0mGET /apple-touch-icon.png [33m404 [0m6.037 ms - 1191[0m
|
||||
[0mPOST /data [32m200 [0m16.301 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m19.368 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m27.182 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m21.520 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m19.805 ms - 112[0m
|
||||
[0mGET / [36m304 [0m30.570 ms - -[0m
|
||||
[0mGET /stylesheets/style.css [36m304 [0m0.815 ms - -[0m
|
||||
[0mGET /javascripts/script.js [36m304 [0m0.457 ms - -[0m
|
||||
[0mPOST /data [32m200 [0m6.669 ms - 112[0m
|
||||
[0mGET /data [32m200 [0m6.880 ms - 1344[0m
|
||||
[0mGET / [36m304 [0m36.222 ms - -[0m
|
||||
[0mGET /javascripts/script.js [36m304 [0m0.884 ms - -[0m
|
||||
[0mGET /stylesheets/style.css [36m304 [0m1.445 ms - -[0m
|
||||
[0mPOST /data [32m200 [0m6.596 ms - 112[0m
|
||||
[0mGET /data [32m200 [0m5.509 ms - 1344[0m
|
||||
[0mPOST /data [32m200 [0m24.185 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m16.616 ms - 112[0m
|
||||
[0mPOST /data [32m200 [0m18.812 ms - 112[0m
|
||||
[0mGET / [32m200 [0m44.980 ms - 1506[0m
|
||||
[0mGET /javascripts/script.js [36m304 [0m0.314 ms - -[0m
|
||||
[0mGET /stylesheets/style.css [36m304 [0m0.354 ms - -[0m
|
||||
[0mPOST /data [32m200 [0m7.021 ms - 112[0m
|
||||
[0mGET /data [32m200 [0m5.864 ms - 1344[0m
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Spritzschema",
|
||||
"version": "1.1.0",
|
||||
"date": "2023-05-14",
|
||||
"name": "spritzschema",
|
||||
"version": "1.2.0",
|
||||
"date": "2023-06-08",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./bin/www >>/var/log/spritzschema.log 2>&1"
|
||||
|
||||
@@ -10,6 +10,9 @@ document.addEventListener('DOMContentLoaded', async function () {
|
||||
|
||||
let ret = await getData()
|
||||
let schema = ret.data
|
||||
if(curEinheit === 0) {
|
||||
curEinheit = schema.einheit
|
||||
}
|
||||
fillSchema(schema)
|
||||
|
||||
document.querySelector('#sptab').addEventListener('click', markField);
|
||||
@@ -122,7 +125,7 @@ document.addEventListener('DOMContentLoaded', async function () {
|
||||
}
|
||||
setArray.push(elem)
|
||||
}
|
||||
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray}
|
||||
let schema = {curdate: startdate, months: monthArray, years: yearsArray, data: setArray, einheit: curEinheit}
|
||||
await storeData(schema)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user