build: automatically set no_extra_js variable (#29551)
This commit is contained in:
parent
b7ab2d9a52
commit
18ab87cabc
|
@ -14,6 +14,10 @@ for dirname in sorted(os.listdir('static')):
|
|||
theme['variables'] = {}
|
||||
if not theme['variables'].get('css_variant'):
|
||||
theme['variables']['css_variant'] = dirname
|
||||
if os.path.exists(os.path.join('static', dirname, 'extra.js')):
|
||||
theme['variables']['no_extra_js'] = False
|
||||
else:
|
||||
theme['variables']['no_extra_js'] = True
|
||||
themes.append(theme)
|
||||
|
||||
with open('themes.json', 'w') as fd:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Alpes-Maritimes 2018",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#001c76",
|
||||
"email_header_img": "img/logo.png",
|
||||
"email_header_right_img": "img/logo-departement.png"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Alpes-Maritimes",
|
||||
"variables": {
|
||||
"favicon": "alpes-maritimes/img/favicon.ico",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#13ACBD"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Auch",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#B3B18C"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Blois",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#02b4da"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Bron",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#ff8400"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Châteauroux",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#0779B7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Clapotis-les-Canards",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#018B9D"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Clisson, Sèvre & Maine Agglo",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#C25D1B"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Clisson",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#C52F1E"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
"icon_sizes": [
|
||||
"180"
|
||||
],
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#44db6f"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Dardilly",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#008FCB"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Dauphine",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#00428F"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Dreux",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#d29340"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"variables": {
|
||||
"favicon": "fondettes/favicon.png",
|
||||
"logo_link_url": "http://www.fondettes.fr/",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#2A697C"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Fontenay-sous-Bois 2018",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#da3838"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Gorges",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#268682"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
"256",
|
||||
"512"
|
||||
],
|
||||
"no_extra_js": false,
|
||||
"pwa_display": "standalone",
|
||||
"theme_color": "#DA0D02"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "SAU Grand Lyon",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#E42320"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Grand Lyon",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#FF0303"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Grenoble Métropole",
|
||||
"variables": {
|
||||
"email_header_img": "img/logo-metro.png",
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#FFEC44"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Gréville-Hague",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#431403"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Grosboule-les-Bains",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#13b29c"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Groupe Up",
|
||||
"variables": {
|
||||
"apa_users_grid": "grid-1-3",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#f59100"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Haute Goulaine",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#B0D500"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Hautes-Alpes 2018",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#B73720"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Hautes-Alpes",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#D1351C"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Jobourg",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#426C92"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "La Hague",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#5ABEB9"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "La Réunion",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#024395"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "La Seyne-sur-Mer",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#1DA1AE"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Le Nord",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#6B7A99"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Lozère",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#A8BC01"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Marcoussis",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#2B8AE8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Massoins",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#4DB2EC"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Mauguio-Carnon",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#005d1a"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Meaux",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#C5C0B4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Metz Métropole",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"pwa_display": "standalone",
|
||||
"theme_color": "#9c007f",
|
||||
"favicon": "metz-metropole/img/launcher-icon-16px.png",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Metz",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#FABB00"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Meudon",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#260c4e"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Meyzieu 2018",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#3997a5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Ministère de la Culture",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#41264a"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Ministère de l'Intérieur",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#34567C"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Moselle",
|
||||
"variables": {
|
||||
"include_top_links": false,
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#f7433a"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Nancy",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#94BCBB"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Nanterre",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#D81E41"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Omonville-la-Rogue",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#BAC197"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Oullins",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#D24B19"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Pays de Grasse",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#DB378E"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Perpette-les-Andouillettes",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#005712"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Quimper",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"include_top_links": false,
|
||||
"theme_color": "#00aa9e",
|
||||
"pwa_display": "standalone",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Rochefort",
|
||||
"variables": {
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#D24E38"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Saint-Lô Agglo",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#79bb2e"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Saint-Vallier-de-Thiey",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#2DBBE5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Saône et Loire (CD71)",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#009DDF"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Seine-et-Marne (aides sociales)",
|
||||
"variables": {
|
||||
"apa_users_grid": "grid-1-3",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#0a7ec2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Seine-et-Marne",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#007084"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "SICOVAL",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#F8AD4A"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "SICTIAM",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#0E88BE"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Somme (CD80)",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#87A738"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Sospel",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#333333"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"variables": {
|
||||
"email_header_img": "img/logo-eurometropole.png",
|
||||
"favicon": "strasbourg-2018/img/favicon.png",
|
||||
"no_extra_js": false,
|
||||
"theme_color": "#31455D"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Strasbourg",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#31455D"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Thonon Agglomération",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#fec307"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Tonneville",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#ED3237"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
"512"
|
||||
],
|
||||
"include_top_links": false,
|
||||
"no_extra_js": false,
|
||||
"pwa_display": "standalone",
|
||||
"theme_color": "#DC1822"
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Toulouse",
|
||||
"variables": {
|
||||
"favicon": "toulouse/img/favicon-16.png",
|
||||
"no_extra_js": false,
|
||||
"pwa_display": "standalone",
|
||||
"theme_color": "#de3559",
|
||||
"icon_prefix": "img/launcher-icon-",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Tournai",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#D62D8A"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Urville-Nacqueville",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#4585AB"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Vandœuvre-les-Nancy",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#337298"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Vaulx-en-Velin",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#0C89A1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Vénissieux",
|
||||
"variables": {
|
||||
"email_header_img": "img/logo-venissieux-bleu.png",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#2dbdbd"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Villejuif",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#1ba39c"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Villeurbanne 2018",
|
||||
"variables": {
|
||||
"email_header_img": "images/logo.png",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#0094aa"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"label": "Villeurbanne",
|
||||
"variables": {
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#01A0BE"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"label": "Vincennes (2018)",
|
||||
"variables": {
|
||||
"favicon": "vincennes-2018/img/favicon.ico",
|
||||
"no_extra_js": true,
|
||||
"theme_color": "#F50082"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue