From 4a5f06cc4a711ba399d36176a66763f4365c88b5 Mon Sep 17 00:00:00 2001 From: stingl Date: Tue, 5 Jul 2022 18:46:21 +0200 Subject: [PATCH] make notes own page; grid for notes; show version on app; --- src/App.vue | 17 +++++-- src/router/index.js | 6 +++ src/store/index.js | 2 +- src/views/Menu.vue | 15 +++--- src/views/Notes.vue | 119 ++++++++++++++++++++++---------------------- 5 files changed, 86 insertions(+), 73 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6bfb7c1..fb6d741 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,9 @@
+ + v{{ version }} +
@@ -13,7 +16,6 @@ - @@ -28,12 +30,10 @@ import HistoryForTracker from "./views/HistoryForTracker"; import CustomBookForTracker from "./views/CustomBookForTracker"; import Settings from "./views/Settings"; import Tasks from "./views/Tasks"; -import Notes from "./views/Notes"; export default { el: '#root', components: { - Notes, Tasks, Settings, CustomBookForTracker, @@ -44,6 +44,7 @@ export default { }, data() { return { + version: '0.8.23.3', sounds: { bad: [ 'alert', @@ -56,7 +57,7 @@ export default { theme: 'materia', customBookingValue: '', customDateForPastDays: '', - newTaskInput: '' + newTaskInput: '', } }, mounted() { @@ -231,4 +232,12 @@ export default { #page-wrapper { padding-top: 15px; } + +#version { + position: fixed; + bottom: 1em; + right: 2em; + z-index: -1; + color: lightgrey; +} diff --git a/src/router/index.js b/src/router/index.js index 10b19aa..b2bf155 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,6 +3,7 @@ import Trackers from "../views/Trackers"; import Settings from "../views/Settings"; import TrackersDetail from "../views/TrackersDetail"; import Archive from "../views/Archive"; +import Notes from "../views/Notes"; Array.prototype.pushToBeginning = function (toPush) { return this.unshift.apply(this, [toPush]); @@ -24,6 +25,11 @@ const routes = [ name: 'Archive', component: Archive }, + { + path: '/notes', + name: 'Notes', + component: Notes + }, { path: '/settings', name: 'Settings', diff --git a/src/store/index.js b/src/store/index.js index 6302607..5d924f8 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,4 +1,4 @@ -import {createStore} from 'vuex' +import {createStore} from 'vuex' import moment from "moment"; export default createStore({ diff --git a/src/views/Menu.vue b/src/views/Menu.vue index f6dc30e..0a66c8c 100644 --- a/src/views/Menu.vue +++ b/src/views/Menu.vue @@ -46,15 +46,14 @@
- + - +
-