diff --git a/src/App.vue b/src/App.vue index c007b625140b63bc75f03e15ebc4f55a6cf2f408..e43cc4f8a899e691192c5c6f21e4e57af35865a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,8 +6,9 @@ <router-link to="/" class="header item"> <img class="ui mini right spaced image" - :src="LOGO_PATH" + src="@/assets/img/logo-neogeo-circle.png" /> + <!-- :src="LOGO_PATH" --> {{ APPLICATION_NAME }} </router-link> @@ -155,7 +156,7 @@ export default { computed: { ...mapState(["projects", "user", "SSO_SETTED", "USER_LEVEL_PROJECTS"]), ...mapGetters(["project"]), - LOGO_PATH: () => require(configuration.VUE_APP_LOGO_PATH), + //LOGO_PATH: () => require(`${configuration.VUE_APP_LOGO_PATH}`), APPLICATION_NAME: () => configuration.VUE_APP_APPLICATION_NAME, PACKAGE_VERSION: () => process.env.PACKAGE_VERSION || "0", userFullname: function () { @@ -173,6 +174,7 @@ export default { }, }, created() { + console.log(configuration) window.addEventListener("mousedown", this.clickOutsideMenu); }, diff --git a/src/assets/config/config.js b/src/assets/config/config.js index 9bf834592fb48d5ef5c16b0ca7ee24cfa695112e..0dbe40596cbbbe952d2c1ce420611ee9bf258516 100644 --- a/src/assets/config/config.js +++ b/src/assets/config/config.js @@ -6,7 +6,7 @@ var configuration = { VUE_APP_APPLICATION_NAME:"GéoContrib", VUE_APP_APPLICATION_ABSTRACT:"Application de saisie d'informations géographiques contributive", VUE_APP_LOGO_PATH:"@/assets/img/logo-neogeo-circle.png", - VUE_APP_DJANGO_BASE:"http://localhost:8010/", + VUE_APP_DJANGO_BASE:"http://localhost:8010", VUE_APP_DJANGO_API_BASE:"http://localhost:8010/api/", DEFAULT_BASE_MAP:{ 'SERVICE': 'https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', diff --git a/src/views/Index.vue b/src/views/Index.vue index 7facb78fee854fbe6b406abc15a0c318c6292ea6..8071b88a144a43ca3f35c4b3e8c2e38038f295a1 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -1,6 +1,10 @@ <template> <div class="fourteen wide column"> - <img class="ui centered small image" :src="LOGO_PATH" /> + <img + class="ui centered small image" + src="@/assets/img/logo-neogeo-circle.png" + /> + <!-- :src="LOGO_PATH" --> <h2 class="ui center aligned icon header"> <div class="content"> {{ APPLICATION_NAME }} @@ -109,14 +113,15 @@ export default { name: "Index", computed: { ...mapState(["projects", "user", "USER_LEVEL_PROJECTS"]), - LOGO_PATH: () => require(configuration.VUE_APP_LOGO_PATH), + //LOGO_PATH: () => require(configuration.VUE_APP_LOGO_PATH), APPLICATION_NAME: () => configuration.VUE_APP_APPLICATION_NAME, APPLICATION_ABSTRACT: () => configuration.VUE_APP_APPLICATION_ABSTRACT, DJANGO_BASE_URL: () => configuration.VUE_APP_DJANGO_BASE, }, methods: { - refreshId() { //* change path of thumbnail to update image + refreshId() { + //* change path of thumbnail to update image return "?ver=" + Math.random(); }, },