From d4a248bc5dda745b2e37b5b8f47eec71ece167f3 Mon Sep 17 00:00:00 2001 From: survellow <59056368+survellow@users.noreply.github.com> Date: Tue, 21 May 2024 17:03:45 +0200 Subject: [PATCH] 31 add page labels and meta information --- frontend/package-lock.json | 80 +++++++++++++++++++++++++++++ frontend/package.json | 1 + frontend/public/robots.txt | 2 + frontend/src/App.vue | 34 +++++++++++- frontend/src/components/MenuBar.vue | 6 +-- frontend/src/main.ts | 4 ++ frontend/src/router/index.ts | 36 +++++++++++++ frontend/src/view/DynamicPage.vue | 14 +++-- 8 files changed, 167 insertions(+), 10 deletions(-) create mode 100644 frontend/public/robots.txt diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9aff9c0..74070fc 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,6 +15,7 @@ "@fullcalendar/vue3": "^6.1.11", "@tanstack/vue-query": "^5.28.9", "@tanstack/vue-query-devtools": "^5.28.10", + "@unhead/vue": "^1.9.10", "@vueuse/core": "^10.9.0", "pinia": "^2.1.7", "primeflex": "^3.3.1", @@ -1260,6 +1261,58 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@unhead/dom": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@unhead/dom/-/dom-1.9.10.tgz", + "integrity": "sha512-F4sBrmd8kG8MEqcVTGL0Y6tXbJMdWK724pznUzefpZTs1GaVypFikLluaLt4EnICcVhOBSe4TkGrc8N21IJJzQ==", + "dependencies": { + "@unhead/schema": "1.9.10", + "@unhead/shared": "1.9.10" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, + "node_modules/@unhead/schema": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@unhead/schema/-/schema-1.9.10.tgz", + "integrity": "sha512-3ROh0doKfA7cIcU0zmjYVvNOiJuxSOcjInL+7iOFIxQovEWr1PcDnrnbEWGJsXrLA8eqjrjmhuDqAr3JbMGsLg==", + "dependencies": { + "hookable": "^5.5.3", + "zhead": "^2.2.4" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, + "node_modules/@unhead/shared": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@unhead/shared/-/shared-1.9.10.tgz", + "integrity": "sha512-LBXxm/8ahY4FZ0FbWVaM1ANFO5QpPzvaYwjAQhgHANsrqFP2EqoGcOv1CfhdQbxg8vpGXkjI7m0r/8E9d3JoDA==", + "dependencies": { + "@unhead/schema": "1.9.10" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, + "node_modules/@unhead/vue": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/@unhead/vue/-/vue-1.9.10.tgz", + "integrity": "sha512-Zi65eTU5IIaqqXAVOVJ4fnwJRR751FZIFlzYOjIekf1eNkISy+A4xyz3NIEQWSlXCrOiDNgDhT0YgKUcx5FfHQ==", + "dependencies": { + "@unhead/schema": "1.9.10", + "@unhead/shared": "1.9.10", + "hookable": "^5.5.3", + "unhead": "1.9.10" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + }, + "peerDependencies": { + "vue": ">=2.7 || >=3" + } + }, "node_modules/@vitejs/plugin-vue": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.0.4.tgz", @@ -2897,6 +2950,11 @@ "he": "bin/he" } }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==" + }, "node_modules/human-signals": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", @@ -4338,6 +4396,20 @@ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", "dev": true }, + "node_modules/unhead": { + "version": "1.9.10", + "resolved": "https://registry.npmjs.org/unhead/-/unhead-1.9.10.tgz", + "integrity": "sha512-Y3w+j1x1YFig2YuE+W2sER+SciRR7MQktYRHNqvZJ0iUNCCJTS8Z/SdSMUEeuFV28daXeASlR3fy7Ry3O2indg==", + "dependencies": { + "@unhead/dom": "1.9.10", + "@unhead/schema": "1.9.10", + "@unhead/shared": "1.9.10", + "hookable": "^5.5.3" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -4789,6 +4861,14 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zhead": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/zhead/-/zhead-2.2.4.tgz", + "integrity": "sha512-8F0OI5dpWIA5IGG5NHUg9staDwz/ZPxZtvGVf01j7vHqSyZ0raHY+78atOVxRqb73AotX22uV1pXt3gYSstGag==", + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } } } } diff --git a/frontend/package.json b/frontend/package.json index 75e6d89..1f2bb64 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,6 +20,7 @@ "@fullcalendar/vue3": "^6.1.11", "@tanstack/vue-query": "^5.28.9", "@tanstack/vue-query-devtools": "^5.28.10", + "@unhead/vue": "^1.9.10", "@vueuse/core": "^10.9.0", "pinia": "^2.1.7", "primeflex": "^3.3.1", diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 16c3545..60ba27c 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -18,11 +18,14 @@ along with this program. If not, see .