From d8ad1e3804965baccb73055ddf922a77eb544d8a Mon Sep 17 00:00:00 2001 From: Jesse Desjardins Date: Thu, 15 Jan 2026 17:29:12 -0500 Subject: [PATCH] adde table and editor components --- src/components/AppEntriesTable.vue | 279 +++++++++++++++++++++++++++++ src/components/AppEntryEditor.vue | 115 ++++++++++++ src/components/AppFooter.vue | 7 +- src/components/AppHeader.vue | 6 +- src/locales/en.json | 15 ++ src/locales/fr.json | 15 ++ src/router/index.ts | 6 + src/stores/counter.ts | 12 -- src/stores/glossaryEntry.ts | 21 +++ src/types/GlossaryItem.ts | 6 + src/views/Edit.vue | 12 ++ src/views/List.vue | 2 + src/vue-i18n.d.ts | 19 +- 13 files changed, 493 insertions(+), 22 deletions(-) create mode 100644 src/components/AppEntriesTable.vue create mode 100644 src/components/AppEntryEditor.vue delete mode 100644 src/stores/counter.ts create mode 100644 src/stores/glossaryEntry.ts create mode 100644 src/types/GlossaryItem.ts create mode 100644 src/views/Edit.vue diff --git a/src/components/AppEntriesTable.vue b/src/components/AppEntriesTable.vue new file mode 100644 index 0000000..a61f873 --- /dev/null +++ b/src/components/AppEntriesTable.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/src/components/AppEntryEditor.vue b/src/components/AppEntryEditor.vue new file mode 100644 index 0000000..e437a08 --- /dev/null +++ b/src/components/AppEntryEditor.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/src/components/AppFooter.vue b/src/components/AppFooter.vue index a5cd536..6e3405c 100644 --- a/src/components/AppFooter.vue +++ b/src/components/AppFooter.vue @@ -1,11 +1,8 @@ diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 372f1f3..f41b5a6 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -1,6 +1,6 @@ + + + + diff --git a/src/views/List.vue b/src/views/List.vue index b243465..43a9177 100644 --- a/src/views/List.vue +++ b/src/views/List.vue @@ -1,8 +1,10 @@ diff --git a/src/vue-i18n.d.ts b/src/vue-i18n.d.ts index f62be21..73f4d64 100644 --- a/src/vue-i18n.d.ts +++ b/src/vue-i18n.d.ts @@ -18,9 +18,24 @@ declare module 'vue-i18n' { home: string list: string language: string - logout: string - login: string + logout: string + login: string } + table: { + edit: string + } + editForm: { + title: string + titlePlaceholder: stirng + description: string + descriptionPlaceholder: string + source: string + sourcePlaceholder: string + sourceDescription: string + submit: string + reset: string + back: string + } } // // define the datetime format schema