Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
d29b00e3
Commit
d29b00e3
authored
3 years ago
by
DESPRES Damien
Browse files
Options
Downloads
Patches
Plain Diff
custom title and favico
parent
072c4381
No related branches found
No related tags found
1 merge request
!157
REDMINE_ISSUE-12457 custom title and favico
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/config/config.json
+1
-0
1 addition, 0 deletions
public/config/config.json
public/img/geo2f.ico
+0
-0
0 additions, 0 deletions
public/img/geo2f.ico
src/main.js
+9
-0
9 additions, 0 deletions
src/main.js
vue.config.js
+8
-0
8 additions, 0 deletions
vue.config.js
with
18 additions
and
0 deletions
public/config/config.json
+
1
−
0
View file @
d29b00e3
...
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
public/img/geo2f.ico
0 → 100644
+
0
−
0
View file @
d29b00e3
6.92 KiB
This diff is collapsed.
Click to expand it.
src/main.js
+
9
−
0
View file @
d29b00e3
...
...
@@ -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
"
),
...
...
This diff is collapsed.
Click to expand it.
vue.config.js
+
8
−
0
View file @
d29b00e3
...
...
@@ -23,6 +23,14 @@ module.exports = {
/manifest
\.
json$/
],
},
iconPaths
:
{
faviconSVG
:
null
,
favicon32
:
null
,
favicon16
:
null
,
appleTouchIcon
:
null
,
maskIcon
:
null
,
msTileImage
:
null
,
},
themeColor
:
'
#1da025
'
},
configureWebpack
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment