build: automatically set no_extra_js variable (#29551)

This commit is contained in:
Frédéric Péters 2019-01-08 09:23:12 +01:00
parent b7ab2d9a52
commit 18ab87cabc
76 changed files with 4 additions and 75 deletions

View File

@ -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:

View File

@ -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"

View File

@ -2,7 +2,6 @@
"label": "Alpes-Maritimes",
"variables": {
"favicon": "alpes-maritimes/img/favicon.ico",
"no_extra_js": true,
"theme_color": "#13ACBD"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Auch",
"variables": {
"no_extra_js": true,
"theme_color": "#B3B18C"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Blois",
"variables": {
"no_extra_js": false,
"theme_color": "#02b4da"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Bron",
"variables": {
"no_extra_js": true,
"theme_color": "#ff8400"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Châteauroux",
"variables": {
"no_extra_js": true,
"theme_color": "#0779B7"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Clapotis-les-Canards",
"variables": {
"no_extra_js": true,
"theme_color": "#018B9D"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Clisson, Sèvre & Maine Agglo",
"variables": {
"no_extra_js": true,
"theme_color": "#C25D1B"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Clisson",
"variables": {
"no_extra_js": true,
"theme_color": "#C52F1E"
}
}

View File

@ -6,7 +6,6 @@
"icon_sizes": [
"180"
],
"no_extra_js": true,
"theme_color": "#44db6f"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Dardilly",
"variables": {
"no_extra_js": true,
"theme_color": "#008FCB"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Dauphine",
"variables": {
"no_extra_js": true,
"theme_color": "#00428F"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Dreux",
"variables": {
"no_extra_js": true,
"theme_color": "#d29340"
}
}

View File

@ -3,7 +3,6 @@
"variables": {
"favicon": "fondettes/favicon.png",
"logo_link_url": "http://www.fondettes.fr/",
"no_extra_js": true,
"theme_color": "#2A697C"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Fontenay-sous-Bois 2018",
"variables": {
"no_extra_js": true,
"theme_color": "#da3838"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Gorges",
"variables": {
"no_extra_js": true,
"theme_color": "#268682"
}
}

View File

@ -9,7 +9,6 @@
"256",
"512"
],
"no_extra_js": false,
"pwa_display": "standalone",
"theme_color": "#DA0D02"
}

View File

@ -1,7 +1,6 @@
{
"label": "SAU Grand Lyon",
"variables": {
"no_extra_js": false,
"theme_color": "#E42320"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Grand Lyon",
"variables": {
"no_extra_js": true,
"theme_color": "#FF0303"
}
}

View File

@ -2,7 +2,6 @@
"label": "Grenoble Métropole",
"variables": {
"email_header_img": "img/logo-metro.png",
"no_extra_js": false,
"theme_color": "#FFEC44"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Gréville-Hague",
"variables": {
"no_extra_js": true,
"theme_color": "#431403"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Grosboule-les-Bains",
"variables": {
"no_extra_js": false,
"theme_color": "#13b29c"
}
}

View File

@ -2,7 +2,6 @@
"label": "Groupe Up",
"variables": {
"apa_users_grid": "grid-1-3",
"no_extra_js": true,
"theme_color": "#f59100"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Haute Goulaine",
"variables": {
"no_extra_js": true,
"theme_color": "#B0D500"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Hautes-Alpes 2018",
"variables": {
"no_extra_js": false,
"theme_color": "#B73720"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Hautes-Alpes",
"variables": {
"no_extra_js": true,
"theme_color": "#D1351C"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Jobourg",
"variables": {
"no_extra_js": true,
"theme_color": "#426C92"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "La Hague",
"variables": {
"no_extra_js": true,
"theme_color": "#5ABEB9"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "La Réunion",
"variables": {
"no_extra_js": true,
"theme_color": "#024395"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "La Seyne-sur-Mer",
"variables": {
"no_extra_js": true,
"theme_color": "#1DA1AE"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Le Nord",
"variables": {
"no_extra_js": true,
"theme_color": "#6B7A99"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Lozère",
"variables": {
"no_extra_js": true,
"theme_color": "#A8BC01"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Marcoussis",
"variables": {
"no_extra_js": true,
"theme_color": "#2B8AE8"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Massoins",
"variables": {
"no_extra_js": true,
"theme_color": "#4DB2EC"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Mauguio-Carnon",
"variables": {
"no_extra_js": true,
"theme_color": "#005d1a"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Meaux",
"variables": {
"no_extra_js": true,
"theme_color": "#C5C0B4"
}
}

View File

@ -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",

View File

@ -1,7 +1,6 @@
{
"label": "Metz",
"variables": {
"no_extra_js": true,
"theme_color": "#FABB00"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Meudon",
"variables": {
"no_extra_js": false,
"theme_color": "#260c4e"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Meyzieu 2018",
"variables": {
"no_extra_js": false,
"theme_color": "#3997a5"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Ministère de la Culture",
"variables": {
"no_extra_js": true,
"theme_color": "#41264a"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Ministère de l'Intérieur",
"variables": {
"no_extra_js": true,
"theme_color": "#34567C"
}
}

View File

@ -2,7 +2,6 @@
"label": "Moselle",
"variables": {
"include_top_links": false,
"no_extra_js": false,
"theme_color": "#f7433a"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Nancy",
"variables": {
"no_extra_js": true,
"theme_color": "#94BCBB"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Nanterre",
"variables": {
"no_extra_js": true,
"theme_color": "#D81E41"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Omonville-la-Rogue",
"variables": {
"no_extra_js": true,
"theme_color": "#BAC197"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Oullins",
"variables": {
"no_extra_js": true,
"theme_color": "#D24B19"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Pays de Grasse",
"variables": {
"no_extra_js": true,
"theme_color": "#DB378E"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Perpette-les-Andouillettes",
"variables": {
"no_extra_js": true,
"theme_color": "#005712"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Quimper",
"variables": {
"no_extra_js": false,
"include_top_links": false,
"theme_color": "#00aa9e",
"pwa_display": "standalone",

View File

@ -1,7 +1,6 @@
{
"label": "Rochefort",
"variables": {
"no_extra_js": false,
"theme_color": "#D24E38"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Saint-Lô Agglo",
"variables": {
"no_extra_js": true,
"theme_color": "#79bb2e"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Saint-Vallier-de-Thiey",
"variables": {
"no_extra_js": true,
"theme_color": "#2DBBE5"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Saône et Loire (CD71)",
"variables": {
"no_extra_js": true,
"theme_color": "#009DDF"
}
}

View File

@ -2,7 +2,6 @@
"label": "Seine-et-Marne (aides sociales)",
"variables": {
"apa_users_grid": "grid-1-3",
"no_extra_js": true,
"theme_color": "#0a7ec2"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Seine-et-Marne",
"variables": {
"no_extra_js": true,
"theme_color": "#007084"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "SICOVAL",
"variables": {
"no_extra_js": true,
"theme_color": "#F8AD4A"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "SICTIAM",
"variables": {
"no_extra_js": true,
"theme_color": "#0E88BE"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Somme (CD80)",
"variables": {
"no_extra_js": true,
"theme_color": "#87A738"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Sospel",
"variables": {
"no_extra_js": true,
"theme_color": "#333333"
}
}

View File

@ -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"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Strasbourg",
"variables": {
"no_extra_js": true,
"theme_color": "#31455D"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Thonon Agglomération",
"variables": {
"no_extra_js": true,
"theme_color": "#fec307"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Tonneville",
"variables": {
"no_extra_js": true,
"theme_color": "#ED3237"
}
}

View File

@ -12,7 +12,6 @@
"512"
],
"include_top_links": false,
"no_extra_js": false,
"pwa_display": "standalone",
"theme_color": "#DC1822"
}

View File

@ -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-",

View File

@ -1,7 +1,6 @@
{
"label": "Tournai",
"variables": {
"no_extra_js": true,
"theme_color": "#D62D8A"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Urville-Nacqueville",
"variables": {
"no_extra_js": true,
"theme_color": "#4585AB"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Vandœuvre-les-Nancy",
"variables": {
"no_extra_js": true,
"theme_color": "#337298"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Vaulx-en-Velin",
"variables": {
"no_extra_js": true,
"theme_color": "#0C89A1"
}
}

View File

@ -2,7 +2,6 @@
"label": "Vénissieux",
"variables": {
"email_header_img": "img/logo-venissieux-bleu.png",
"no_extra_js": true,
"theme_color": "#2dbdbd"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Villejuif",
"variables": {
"no_extra_js": true,
"theme_color": "#1ba39c"
}
}

View File

@ -2,7 +2,6 @@
"label": "Villeurbanne 2018",
"variables": {
"email_header_img": "images/logo.png",
"no_extra_js": true,
"theme_color": "#0094aa"
}
}

View File

@ -1,7 +1,6 @@
{
"label": "Villeurbanne",
"variables": {
"no_extra_js": true,
"theme_color": "#01A0BE"
}
}

View File

@ -2,7 +2,6 @@
"label": "Vincennes (2018)",
"variables": {
"favicon": "vincennes-2018/img/favicon.ico",
"no_extra_js": true,
"theme_color": "#F50082"
}
}