diff --git a/public/config/config.json b/public/config/config.json index 65038a32551262edcccf998e4c66e7707f44de04..f8f8e5834a5e41535a50f00884e924978e71979d 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -4,6 +4,7 @@ "NODE_ENV":"development", "VUE_APP_LOCALE":"fr-FR", "VUE_APP_APPLICATION_NAME":"GéoContrib", + "VUE_APP_APPLICATION_FAVICO":"/geocontrib/img/geo2f.ico", "VUE_APP_APPLICATION_ABSTRACT":"Application de saisie d'informations géographiques contributive", "VUE_APP_LOGO_PATH":"/geocontrib/img/logo-neogeo-circle.png", "VUE_APP_DJANGO_BASE":"http://localhost:8010", diff --git a/public/img/geo2f.ico b/public/img/geo2f.ico new file mode 100644 index 0000000000000000000000000000000000000000..434ba30085b6358a339f1b89d4f16c57d2766750 Binary files /dev/null and b/public/img/geo2f.ico differ diff --git a/src/main.js b/src/main.js index d986b104faeb379d2520a42994c0d6dfea5788fd..56bc1b0585e4d9d65e0712b9b6438479597db717 100644 --- a/src/main.js +++ b/src/main.js @@ -38,6 +38,15 @@ if(navigator.serviceWorker){ let onConfigLoaded = function(config){ store.commit("SET_CONFIG", config); + + // set title and favico + document.title= config.VUE_APP_APPLICATION_NAME+' '+config.VUE_APP_APPLICATION_ABSTRACT; + let link = document.createElement('link'); + link.id = 'dynamic-favicon'; + link.rel = 'shortcut icon'; + link.href = config.VUE_APP_APPLICATION_FAVICO; + document.head.appendChild(link); + window.proxy_url=config.VUE_APP_DJANGO_API_BASE+"proxy/"; axios.all([store.dispatch("USER_INFO"), store.dispatch("GET_ALL_PROJECTS"), diff --git a/vue.config.js b/vue.config.js index 777fbbbaf0383828440b5391b142cb44add79982..f9d74727c971c84a1b1afb45270b6a2162a71b69 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,6 +23,14 @@ module.exports = { /manifest\.json$/ ], }, + iconPaths: { + faviconSVG: null, + favicon32: null, + favicon16: null, + appleTouchIcon: null, + maskIcon: null, + msTileImage: null, + }, themeColor: '#1da025' }, configureWebpack: {