Skip to content
Snippets Groups Projects
Commit d29b00e3 authored by DESPRES Damien's avatar DESPRES Damien
Browse files

custom title and favico

parent 072c4381
No related branches found
No related tags found
1 merge request!157REDMINE_ISSUE-12457 custom title and favico
......@@ -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",
......
public/img/geo2f.ico

6.92 KiB

......@@ -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"),
......
......@@ -23,6 +23,14 @@ module.exports = {
/manifest\.json$/
],
},
iconPaths: {
faviconSVG: null,
favicon32: null,
favicon16: null,
appleTouchIcon: null,
maskIcon: null,
msTileImage: null,
},
themeColor: '#1da025'
},
configureWebpack: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment