From fe3a4f69bf3e7e86298be735870632c201d79d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Wed, 7 Apr 2021 21:28:10 +0200 Subject: [PATCH 01/10] =?UTF-8?q?Die=20Struktur=20=20der=20Oberfl=C3=A4che?= =?UTF-8?q?=20f=C3=BCr=20die=20Eintragungen=20wurde=20skizziert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/salt/add-update-record.puml | 11 ++++++++++ .../salt/add-update-records-for-week.puml | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 resources/salt/add-update-record.puml create mode 100644 resources/salt/add-update-records-for-week.puml diff --git a/resources/salt/add-update-record.puml b/resources/salt/add-update-record.puml new file mode 100644 index 0000000..9928f80 --- /dev/null +++ b/resources/salt/add-update-record.puml @@ -0,0 +1,11 @@ +@startuml +'https://plantuml.com/salt + +salt +{ + Datum |"Datum <&calendar>" + Uhrzeit | "Uhrzeit <&clock>" + [Übernehmen <&plus>] + [Abbrechen <&action-undo>] +} +@enduml \ No newline at end of file diff --git a/resources/salt/add-update-records-for-week.puml b/resources/salt/add-update-records-for-week.puml new file mode 100644 index 0000000..d1829db --- /dev/null +++ b/resources/salt/add-update-records-for-week.puml @@ -0,0 +1,20 @@ +@startuml +'https://plantuml.com/salt + +salt +{ + Woche vom <&calendar> bis zum <&calendar> + [<&chevron-left> Woche zurück] | [Woche vor <&chevron-right>] + {! + Montag | "00:00:00 <&clock>" + Dienstag | "00:00:00 <&clock>" + Mittwoch | "00:00:00 <&clock>" + Donnerstag | "00:00:00 <&clock>" + Freitag | "00:00:00 <&clock>" + Samstag | "00:00:00 <&clock>" + Sontag | "00:00:00 <&clock>" + } + [Übernehmen <&plus>] + [Abbrechen <&action-undo>] +} +@enduml \ No newline at end of file From 9b99c6a4dc4cf28e2e5b8a034b25353595f3b586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Thu, 8 Apr 2021 12:28:26 +0200 Subject: [PATCH 02/10] =?UTF-8?q?F=C3=BCr=20die=20Svelte-Oberfl=C3=A4che?= =?UTF-8?q?=20sind=20alle=20notwendigen=20Dateien=20vorhanden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 10 +++++++++ ui/.gitignore | 5 +++++ ui/package.json | 26 +++++++++++++++++++++++ ui/public/global.css | 1 + ui/public/index.html | 19 +++++++++++++++++ ui/rollup.config.js | 49 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+) create mode 100644 .editorconfig create mode 100644 ui/.gitignore create mode 100644 ui/package.json create mode 100644 ui/public/global.css create mode 100644 ui/public/index.html create mode 100644 ui/rollup.config.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..afd95ac --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# http://editorconfig.org +root = true + +[*] +indent_size = 4 +indent_style = space +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = false diff --git a/ui/.gitignore b/ui/.gitignore new file mode 100644 index 0000000..b21668d --- /dev/null +++ b/ui/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +node_modules +package-lock.json +yarn.lock +public diff --git a/ui/package.json b/ui/package.json new file mode 100644 index 0000000..af12750 --- /dev/null +++ b/ui/package.json @@ -0,0 +1,26 @@ +{ + "private": true, + "name": "svelte-demo", + "scripts": { + "build": "rollup -c", + "autobuild": "rollup -c -w", + "dev": "run-p start:dev autobuild", + "start": "sirv public --single", + "start:dev": "sirv public --dev --single" + }, + "dependencies": { + "ganalytics": "^3.1.2", + "navaid": "^1.0.2" + }, + "devDependencies": { + "@rollup/plugin-commonjs": "^15.0.0", + "@rollup/plugin-node-resolve": "^9.0.0", + "@rollup/plugin-replace": "^2.3.0", + "npm-run-all": "^4.1.3", + "rollup": "^2.30.0", + "rollup-plugin-svelte": "^6.0.0", + "rollup-plugin-terser": "^7.0.0", + "sirv-cli": "^1.0.8", + "svelte": "^3.4.4" + } +} diff --git a/ui/public/global.css b/ui/public/global.css new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ui/public/global.css @@ -0,0 +1 @@ + diff --git a/ui/public/index.html b/ui/public/index.html new file mode 100644 index 0000000..37ebdc0 --- /dev/null +++ b/ui/public/index.html @@ -0,0 +1,19 @@ + + + + + + + + + Svelte app + + + + + + + + + + diff --git a/ui/rollup.config.js b/ui/rollup.config.js new file mode 100644 index 0000000..c05a512 --- /dev/null +++ b/ui/rollup.config.js @@ -0,0 +1,49 @@ +import svelte from 'rollup-plugin-svelte'; +import replace from '@rollup/plugin-replace'; +import resolve from '@rollup/plugin-node-resolve'; +import commonjs from '@rollup/plugin-commonjs'; +import { terser } from 'rollup-plugin-terser'; + +const production = !process.env.ROLLUP_WATCH; + +export default { + input: 'src/index.js', + output: { + name: 'app', + format: 'esm', + sourcemap: true, + dir: 'public', + }, + preserveEntrySignatures: false, + plugins: [ + svelte({ + // enable run-time checks when not in production + dev: !production, + // we'll extract any component CSS out into + // a separate file — better for performance + css: css => { + css.write('bundle.css'); + } + }), + + // If you have external dependencies installed from + // npm, you'll most likely need these plugins. In + // some cases you'll need additional configuration — + // consult the documentation for details: + // https://github.com/rollup/rollup-plugin-commonjs + resolve(), + commonjs(), + + replace({ + 'process.env.NODE_ENV': JSON.stringify(production ? 'production' : 'development') + }), + + // If we're building for production (npm run build + // instead of npm run dev), minify + production && terser() + ], + + watch: { + clearScreen: false + } +}; From f36324bfbd7bed6c3433db7c62481b3677642bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Thu, 8 Apr 2021 12:30:36 +0200 Subject: [PATCH 03/10] Die grundlegenden HTML-Dateien sind vorhanden. --- ui/src/components/App.svelte | 66 +++++++++++++++++++++++++++++++ ui/src/components/Nav.svelte | 15 +++++++ ui/src/index.js | 5 +++ ui/src/routes/Home.svelte | 15 +++++++ ui/src/routes/Views.svelte | 30 ++++++++++++++ ui/src/routes/WorkingHours.svelte | 31 +++++++++++++++ 6 files changed, 162 insertions(+) create mode 100644 ui/src/components/App.svelte create mode 100644 ui/src/components/Nav.svelte create mode 100644 ui/src/index.js create mode 100644 ui/src/routes/Home.svelte create mode 100644 ui/src/routes/Views.svelte create mode 100644 ui/src/routes/WorkingHours.svelte diff --git a/ui/src/components/App.svelte b/ui/src/components/App.svelte new file mode 100644 index 0000000..2ec5540 --- /dev/null +++ b/ui/src/components/App.svelte @@ -0,0 +1,66 @@ +