diff --git a/ui/package.json b/ui/package.json
index af12750..f794272 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -10,9 +10,12 @@
},
"dependencies": {
"ganalytics": "^3.1.2",
- "navaid": "^1.0.2"
+ "navaid": "^1.0.2",
+ "open-iconic": "^1.1.1"
},
"devDependencies": {
+ "@iconify-icons/oi": "^1.1.0",
+ "@iconify/svelte": "^1.0.4",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.0",
diff --git a/ui/src/components/App.svelte b/ui/src/components/App.svelte
index c8dea93..9522a43 100644
--- a/ui/src/components/App.svelte
+++ b/ui/src/components/App.svelte
@@ -75,7 +75,7 @@
};
let r = {
"workingDay": "2020-01-15",
- "workingTime": "99:00:00"
+ "workingTime": "09:00:00"
};
let records = {
"title" : "Einträge",
@@ -83,7 +83,7 @@
};
const router = Navaid('/')
- .on('/', () => run(import('../routes/Home.svelte')))
+ .on('/', () => run(import('../routes/Home.svelte'), weekly))
.on('/views/weekly', () => run(import('../routes/Views.svelte'), weekly))
.on('/views/monthly', () => run(import('../routes/Views.svelte'), monthly))
.on('/views/yearly', () => run(import('../routes/Views.svelte'), yearly))
diff --git a/ui/src/routes/Home.svelte b/ui/src/routes/Home.svelte
index 95bc6d8..8041d2c 100644
--- a/ui/src/routes/Home.svelte
+++ b/ui/src/routes/Home.svelte
@@ -2,14 +2,5 @@
\ No newline at end of file
diff --git a/ui/src/routes/WorkingHours.svelte b/ui/src/routes/WorkingHours.svelte
index 75da05b..6be4746 100644
--- a/ui/src/routes/WorkingHours.svelte
+++ b/ui/src/routes/WorkingHours.svelte
@@ -1,6 +1,12 @@
@@ -9,23 +15,46 @@
{title}
+{#if activeRecord === null}
- | Zeitraum |
- Arbeitstage |
+ Datum |
Arbeitsstunden |
- Über- / Unterstunden |
+ Aktionen |
{#each params.records as record}
- | {record.Zeitraum} |
- {record.Arbeitstage} |
- {record.Arbeitsstunden} |
- {record.Unterstunden} |
+ {record.workingDay} |
+ {record.workingTime} |
+
+
+
+ |
{/each}
-
\ No newline at end of file
+
+{:else}
+
+
+{/if}