diff --git a/.vscode/app.code-snippets b/.vscode/app.code-snippets new file mode 100644 index 00000000..21111991 --- /dev/null +++ b/.vscode/app.code-snippets @@ -0,0 +1,25 @@ +{ + "Nuxt static page component": { + "scope": "vue", + "prefix": "nuxt-page-static", + "body": [ + "", + "", + "", + ], + }, +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 69ab605a..01af3bb4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,6 +43,7 @@ "typescript.preferences.preferTypeOnlyAutoImports": true, "typescript.tsdk": "node_modules/typescript/lib", "workbench.editor.labelFormat": "medium", + "workbench.tree.enableStickyScroll": true, "[markdown][mdc]": { "editor.wordWrap": "on" } diff --git a/components/data-view.vue b/components/data-view.vue index 4e232b3b..7376c87b 100644 --- a/components/data-view.vue +++ b/components/data-view.vue @@ -104,7 +104,7 @@ const entities = computed(() => { class="relative isolate grid size-full overflow-y-auto" :class="{ 'opacity-50 grayscale': isLoading }" > -
+
{
-
+
{{ t("DataView.nothing-found") }}
diff --git a/composables/use-page-metadata.ts b/composables/use-page-metadata.ts new file mode 100644 index 00000000..4fbaa9c1 --- /dev/null +++ b/composables/use-page-metadata.ts @@ -0,0 +1,19 @@ +interface UsePageMetadataParams { + title: MaybeRef; + description?: MaybeRef; +} + +export function usePageMetadata(params: UsePageMetadataParams): void { + useHead({ + title: params.title, + meta: [ + { property: "og:title", content: params.title }, + ...(params.description != null + ? [ + { name: "description", content: params.description }, + { property: "og:description", content: params.description }, + ] + : []), + ], + }); +} diff --git a/error.vue b/error.vue index 62d24218..2cbbd774 100644 --- a/error.vue +++ b/error.vue @@ -1,13 +1,4 @@