0001-grandlyon-gnm-switch-manifest.json-to-tmeplate-24400.patch
static/grandlyon-gnm/manifest.json | ||
---|---|---|
1 |
{ |
|
2 |
"name": "Toodego - Grand Lyon", |
|
3 |
"short_name": "Toodego", |
|
4 |
"display": "standalone", |
|
5 |
"icons": [ |
|
6 |
{ |
|
7 |
"sizes": "48x48", |
|
8 |
"src": "/static/grandlyon-gnm/img/launcher-icon-48px.png", |
|
9 |
"type": "image/png" |
|
10 |
}, |
|
11 |
{ |
|
12 |
"sizes": "96x96", |
|
13 |
"src": "/static/grandlyon-gnm/img/launcher-icon-96px.png", |
|
14 |
"type": "image/png" |
|
15 |
}, |
|
16 |
{ |
|
17 |
"sizes": "192x192", |
|
18 |
"src": "/static/grandlyon-gnm/img/launcher-icon-192px.png", |
|
19 |
"type": "image/png" |
|
20 |
}, |
|
21 |
{ |
|
22 |
"sizes": "256x256", |
|
23 |
"src": "/static/grandlyon-gnm/img/launcher-icon-256px.png", |
|
24 |
"type": "image/png" |
|
25 |
}, |
|
26 |
{ |
|
27 |
"sizes": "512x512", |
|
28 |
"src": "/static/grandlyon-gnm/img/launcher-icon-512px.png", |
|
29 |
"type": "image/png" |
|
30 |
} |
|
31 |
], |
|
32 |
"start_url": "/", |
|
33 |
"background_color": "#E30613", |
|
34 |
"theme_color": "#E30613" |
|
35 |
} |
templates/combo/manifest.json | ||
---|---|---|
1 |
{% load static %}{ |
|
2 |
"name": "{% firstof global_title "Compte Citoyen" %}", |
|
3 |
"short_name": "{% firstof global_title "Compte Citoyen" %}", |
|
4 |
"start_url": "{% firstof pwa_start_url "/" %}", |
|
5 |
{% if theme_color %} |
|
6 |
"background_color": "{{ theme_color }}", |
|
7 |
"theme_color": "{{ theme_color }}", |
|
8 |
{% endif %} |
|
9 |
{% block icons %} |
|
10 |
"icons": [ |
|
11 |
{% for icon_size in icon_sizes %} |
|
12 |
{ |
|
13 |
"sizes": "{{ icon_size }}x{{ icon_size }}", |
|
14 |
"src": "{{ site_base }}{% static "" %}{{ css_variant }}/{{ icon_prefix }}{{ icon_size }}px.png", |
|
15 |
"type": "image/png" |
|
16 |
}{% if not forloop.last %},{% endif %} |
|
17 |
{% endfor %} |
|
18 |
], |
|
19 |
{% endblock %} |
|
20 |
{% block extra %} |
|
21 |
{% endblock %} |
|
22 |
"display": "{% firstof pwa_display "standalone" %}" |
|
23 |
} |
templates/variants/grandlyon-gnm/theme.html | ||
---|---|---|
2 | 2 |
{% load static gnm %} |
3 | 3 | |
4 | 4 |
{% block extra_top_head %} |
5 |
<link rel="manifest" href="{{site_base}}{% static "" %}{{css_variant}}/manifest.json">
|
|
5 |
<link rel="manifest" href="{{site_base}}/manifest.json"> |
|
6 | 6 |
<link rel="preload" href="{{site_base}}/static/xstatic/fonts/Roboto-Regular.woff2" as="font" type="font/woff2" crossorigin> |
7 | 7 |
<link rel="preload" href="{{site_base}}/static/xstatic/fonts/Roboto-Bold.woff2" as="font" type="font/woff2" crossorigin> |
8 | 8 |
<link rel="icon" type="image/png" href="{{site_base}}{% static "" %}{{css_variant}}/img/favicon-16.png" sizes="16x16"> |
themes.json | ||
---|---|---|
124 | 124 |
"variables": { |
125 | 125 |
"css_variant": "grandlyon-gnm", |
126 | 126 |
"no_extra_js": false, |
127 |
"theme_color": "#DA0D02" |
|
127 |
"theme_color": "#DA0D02", |
|
128 |
"icon_sizes": ["48", "96", "192", "256", "512"], |
|
129 |
"icon_prefix": "img/launcher-icon-" |
|
128 | 130 |
} |
129 | 131 |
}, |
130 | 132 |
{"id": "grandlyon-sau", |
131 |
- |