design for detail vue is finished

This commit is contained in:
2024-03-08 12:03:02 +01:00
parent c6771ef74d
commit 9ff525bf3c
17 changed files with 408 additions and 20 deletions

View File

@@ -12,7 +12,7 @@ export const entries: Ref<Entry[]> = ref(parseFromPossibleString(localStorage.ge
export interface Entry {
name: string
text: string | undefined
last_reset: Moment
last_reset: Moment
}
export function parseFromPossibleString(input: string | null): Entry[] {
@@ -26,7 +26,7 @@ export function parseFromPossibleString(input: string | null): Entry[] {
for (const rawObject of rawObjects) {
const { name, text, last_reset } = rawObject
if (name && text && last_reset) {
if (name && last_reset) {
entries.push({ name, text, last_reset: moment(last_reset) })
}
}
@@ -36,4 +36,4 @@ export function parseFromPossibleString(input: string | null): Entry[] {
export function save() {
localStorage.setItem(localStorageKey, JSON.stringify(entries.value))
}
}