diff --git a/README.md b/README.md index 1aae6f5..00bb98b 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ yarn build - All the wordings of the website are on this [locale file](https://gitlab.com/geovisio/website/-/blob/main/src/locales/fr.json) - You can change the title `"title": "Instance Panoramax IGN"` of your instance on the [locale file](https://gitlab.com/geovisio/website/-/blob/main/src/locales/fr.json) +- In the same [locale file](https://gitlab.com/geovisio/website/-/blob/main/src/locales/fr.json) you can change the meta data wordings inside the `"meta": {}` object - You can change the instance name inside the documentation of the page /partager-des-photos for the keys `"terminal_text_logged"` and `"terminal_text_not_logged"` on the [locale file](https://gitlab.com/geovisio/website/-/blob/main/src/locales/fr.json) ### Images diff --git a/index.html b/index.html index 53db9fe..cb19136 100644 --- a/index.html +++ b/index.html @@ -4,22 +4,6 @@ - - Instance Panoramax IGN Version Beta - - - - -
diff --git a/package.json b/package.json index e784f7b..5c72118 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "vue-axios": "^3.5.2", "vue-eslint-parser": "^9.1.0", "vue-i18n": "^9.2.2", + "vue-meta": "^3.0.0-alpha.10", "vue-router": "^4.1.6", "vue3-cookies": "^1.0.6", "vue3-smooth-scroll": "^0.8.1" diff --git a/src/App.vue b/src/App.vue index 84539bb..3df2584 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,25 @@ diff --git a/src/components/BetaText.vue b/src/components/BetaText.vue index f8bdfc8..132ccb4 100644 --- a/src/components/BetaText.vue +++ b/src/components/BetaText.vue @@ -1,7 +1,6 @@ diff --git a/src/components/__tests__/BetaText.spec.js b/src/components/__tests__/BetaText.spec.js index 2a2053a..52e0565 100644 --- a/src/components/__tests__/BetaText.spec.js +++ b/src/components/__tests__/BetaText.spec.js @@ -25,6 +25,5 @@ describe('Template', () => { } }) expect(wrapper.html()).contains('general.header.title') - expect(wrapper.html()).contains('general.beta_version') }) }) diff --git a/src/locales/fr.json b/src/locales/fr.json index c9b4bcb..acc1e25 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1,5 +1,10 @@ { "general": { + "title": "Instance Panoramax IGN", + "meta": { + "title": "Instance Panoramax IGN", + "description": "Panoramax, l’alternative libre pour photo-cartographier les territoires" + }, "header": { "help_text": "Aide", "contribute_text": "Partager des photos", @@ -10,7 +15,6 @@ "account_text": "Mon compte", "login_text": "Connexion" }, - "beta_version": "Version Beta", "feature_not_available": "Fonctionnalité en cours de développement" }, "pages": { diff --git a/src/main.ts b/src/main.ts index 46b5317..72ee917 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import router from './router' import axios from 'axios' import VueAxios from 'vue-axios' import { globalCookiesConfig } from 'vue3-cookies' +import { createMetaManager } from 'vue-meta' import fr from './locales/fr.json' import './assets/main.css' import 'bootstrap/dist/css/bootstrap.css' @@ -36,4 +37,5 @@ app.use(i18n) app.use(router) app.use(VueAxios, axios) app.provide('axios', app.config.globalProperties.axios) +app.use(createMetaManager()) app.mount('#app') diff --git a/yarn.lock b/yarn.lock index b010f19..d223704 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5618,6 +5618,11 @@ vue-i18n@^9.2.2: "@intlify/vue-devtools" "9.2.2" "@vue/devtools-api" "^6.2.1" +vue-meta@^3.0.0-alpha.10: + version "3.0.0-alpha.10" + resolved "https://registry.yarnpkg.com/vue-meta/-/vue-meta-3.0.0-alpha.10.tgz#8aa7dee8ef43edda2633d52d2d4ca0ae03352222" + integrity sha512-rYeIGkhm1gKBcReEkPHiV6LV2Y6BZTMGTkGw1mQIZTxfFcVJL0srLZsL1zAmLeTGxMrlDYylMQEVSYRkDnwz3A== + vue-router@^4.1.6: version "4.1.6" resolved "https://registry.npmjs.org/vue-router/-/vue-router-4.1.6.tgz"