diff --git a/app/lang/de.json b/app/lang/de.json index 46ad6b0..59396c1 100644 --- a/app/lang/de.json +++ b/app/lang/de.json @@ -11,6 +11,86 @@ "layouts": { "title": "{title} {'|'} PicHunt", "default_tile": "PicHunt", - "switch_lang": "Sprache ändern zu {locale}" + "switch_lang": "Sprache ändern zu {locale}", + "refresh": "Aktualisieren" + }, + "vuestic": { + "search": "Search", + "noOptions": "Items not found", + "ok": "OK", + "cancel": "Cancel", + "uploadFile": "Upload file", + "undo": "Undo", + "dropzone": "Drop files here to upload", + "fileDeleted": "File deleted", + "closeAlert": "close alert", + "backToTop": "back to top", + "toggleDropdown": "toggle dropdown", + "carousel": "carousel", + "goPreviousSlide": "go previous slide", + "goNextSlide": "go next slide", + "goSlide": "go slide {index}", + "slideOf": "slide {index} of {length}", + "close": "close", + "openColorPicker": "open color picker", + "colorSelection": "color selection", + "colorName": "color {color}", + "decreaseCounter": "decrease counter", + "increaseCounter": "increase counter", + "selectAllRows": "select all rows", + "sortColumnBy": "sort column by {name}", + "selectRowByIndex": "select row {index}", + "resetDate": "reset date", + "nextPeriod": "next period", + "switchView": "switch view", + "previousPeriod": "previous period", + "removeFile": "remove file", + "reset": "reset", + "pagination": "pagination", + "goToTheFirstPage": "go to the first page", + "goToPreviousPage": "go to the previous page", + "goToSpecificPage": "go to the {page} page", + "goToSpecificPageInput": "enter the page number to go", + "goNextPage": "go next page", + "goLastPage": "go last page", + "currentRating": "current rating {value} of {max}", + "voteRating": "vote rating {value} of {max}", + "optionsFilter": "options filter", + "splitPanels": "split panels", + "movePaginationLeft": "move pagination left", + "movePaginationRight": "move pagination right", + "resetTime": "reset time", + "closeToast": "close toast", + "selectedOption": "Selected option", + "noSelectedOption": "Option is not selected", + "breadcrumbs": "breadcrumbs", + "counterValue": "counter value", + "selectedDate": "selected date", + "selectedTime": "selected time", + "progressState": "progress state", + "color": "color", + "next": "Next", + "back": "Previous", + "finish": "Finish", + "step": "step", + "progress": "progress", + "loading": "Loading", + "sliderValue": "Current slider value is {value}", + "sliderDot": "Slider dot", + "sliderMaxDot": "Maximum slider value", + "sliderMinDot": "Minimum slider value", + "switch": "Switch", + "inputField": "Input field", + "fileTypeIncorrect": "File type is incorrect", + "select": "Select an option" + }, + "enums": { + "text_type": { + "TEXT": "Freitext", + "WORD": "Ein Wort", + "NUMBER": "Zahl", + "INTEGER": "Ganzzahl" + + } } } diff --git a/app/lang/en.json b/app/lang/en.json index 7e3ac7b..ce978ec 100644 --- a/app/lang/en.json +++ b/app/lang/en.json @@ -11,6 +11,86 @@ "layouts": { "title": "{title} {'|'} PicHunt", "default_tile": "PicHunt", - "switch_lang": "Switch locale to {locale}" + "switch_lang": "Switch locale to {locale}", + "refresh": "Refresh" + }, + "vuestic": { + "search": "Search", + "noOptions": "Items not found", + "ok": "OK", + "cancel": "Cancel", + "uploadFile": "Upload file", + "undo": "Undo", + "dropzone": "Drop files here to upload", + "fileDeleted": "File deleted", + "closeAlert": "close alert", + "backToTop": "back to top", + "toggleDropdown": "toggle dropdown", + "carousel": "carousel", + "goPreviousSlide": "go previous slide", + "goNextSlide": "go next slide", + "goSlide": "go slide {index}", + "slideOf": "slide {index} of {length}", + "close": "close", + "openColorPicker": "open color picker", + "colorSelection": "color selection", + "colorName": "color {color}", + "decreaseCounter": "decrease counter", + "increaseCounter": "increase counter", + "selectAllRows": "select all rows", + "sortColumnBy": "sort column by {name}", + "selectRowByIndex": "select row {index}", + "resetDate": "reset date", + "nextPeriod": "next period", + "switchView": "switch view", + "previousPeriod": "previous period", + "removeFile": "remove file", + "reset": "reset", + "pagination": "pagination", + "goToTheFirstPage": "go to the first page", + "goToPreviousPage": "go to the previous page", + "goToSpecificPage": "go to the {page} page", + "goToSpecificPageInput": "enter the page number to go", + "goNextPage": "go next page", + "goLastPage": "go last page", + "currentRating": "current rating {value} of {max}", + "voteRating": "vote rating {value} of {max}", + "optionsFilter": "options filter", + "splitPanels": "split panels", + "movePaginationLeft": "move pagination left", + "movePaginationRight": "move pagination right", + "resetTime": "reset time", + "closeToast": "close toast", + "selectedOption": "Selected option", + "noSelectedOption": "Option is not selected", + "breadcrumbs": "breadcrumbs", + "counterValue": "counter value", + "selectedDate": "selected date", + "selectedTime": "selected time", + "progressState": "progress state", + "color": "color", + "next": "Next", + "back": "Previous", + "finish": "Finish", + "step": "step", + "progress": "progress", + "loading": "Loading", + "sliderValue": "Current slider value is {value}", + "sliderDot": "Slider dot", + "sliderMaxDot": "Maximum slider value", + "sliderMinDot": "Minimum slider value", + "switch": "Switch", + "inputField": "Input field", + "fileTypeIncorrect": "File type is incorrect", + "select": "Select an option" + }, + "enums": { + "text_type": { + "TEXT": "Free text", + "WORD": "One Word", + "NUMBER": "Number", + "INTEGER": "Whole number" + + } } } diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 4378aca..a40cc32 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -1,14 +1,19 @@ - + @@ -46,6 +53,40 @@ watchEffect(() => { Home + + + + {{ + slugs.huntSlug.name || 'Hunt' + }} + + + + + + {{ + slugs.questSlug.name || 'Quest' + }} + + diff --git a/app/middleware/updateTitle.global.ts b/app/middleware/updateTitle.global.ts new file mode 100644 index 0000000..4adc9cd --- /dev/null +++ b/app/middleware/updateTitle.global.ts @@ -0,0 +1,6 @@ +import { useTitleStore } from '~/stores/title'; + +export default defineNuxtRouteMiddleware(() => { + const titleStore = useTitleStore(); + titleStore.title = undefined; +}); diff --git a/app/pages/hunt/[huntSlug]/[questSlug]/index.vue b/app/pages/hunt/[huntSlug]/[questSlug]/index.vue index 5db3792..6fd2d0e 100644 --- a/app/pages/hunt/[huntSlug]/[questSlug]/index.vue +++ b/app/pages/hunt/[huntSlug]/[questSlug]/index.vue @@ -1,24 +1,186 @@ diff --git a/app/pages/hunt/[huntSlug]/index.vue b/app/pages/hunt/[huntSlug]/index.vue index fef31b9..29a794b 100644 --- a/app/pages/hunt/[huntSlug]/index.vue +++ b/app/pages/hunt/[huntSlug]/index.vue @@ -1,4 +1,6 @@