Projet

Général

Profil

0001-build-automatically-set-no_extra_js-variable-29551.patch

Frédéric Péters, 08 janvier 2019 09:26

Télécharger (28,5 ko)

Voir les différences:

Subject: [PATCH] build: automatically set no_extra_js variable (#29551)

 create_themes_json.py                           | 4 ++++
 static/alpes-maritimes-2018/config.json         | 1 -
 static/alpes-maritimes/config.json              | 1 -
 static/auch/config.json                         | 1 -
 static/blois/config.json                        | 1 -
 static/bron/config.json                         | 1 -
 static/chateauroux/config.json                  | 1 -
 static/clapotis-les-canards/config.json         | 1 -
 static/clisson-sevre-et-maine-agglo/config.json | 1 -
 static/clisson/config.json                      | 1 -
 static/cotes-d-armor/config.json                | 1 -
 static/dardilly/config.json                     | 1 -
 static/dauphine/config.json                     | 1 -
 static/dreux/config.json                        | 1 -
 static/fondettes/config.json                    | 1 -
 static/fontenay-sous-bois-2018/config.json      | 1 -
 static/gorges/config.json                       | 1 -
 static/grandlyon-gnm/config.json                | 1 -
 static/grandlyon-sau/config.json                | 1 -
 static/grandlyon/config.json                    | 1 -
 static/grenoble-metropole/config.json           | 1 -
 static/greville-hague/config.json               | 1 -
 static/grosboule-les-bains/config.json          | 1 -
 static/groupe-up/config.json                    | 1 -
 static/haute-goulaine/config.json               | 1 -
 static/hautes-alpes-2018/config.json            | 1 -
 static/hautes-alpes/config.json                 | 1 -
 static/jobourg/config.json                      | 1 -
 static/la-hague/config.json                     | 1 -
 static/la-reunion/config.json                   | 1 -
 static/la-seyne-sur-mer/config.json             | 1 -
 static/lenord/config.json                       | 1 -
 static/lozere/config.json                       | 1 -
 static/marcoussis/config.json                   | 1 -
 static/massoins/config.json                     | 1 -
 static/mauguio/config.json                      | 1 -
 static/meaux/config.json                        | 1 -
 static/metz-metropole/config.json               | 1 -
 static/metz/config.json                         | 1 -
 static/meudon/config.json                       | 1 -
 static/meyzieu-2018/config.json                 | 1 -
 static/mincult/config.json                      | 1 -
 static/minint/config.json                       | 1 -
 static/moselle/config.json                      | 1 -
 static/nancy/config.json                        | 1 -
 static/nanterre/config.json                     | 1 -
 static/omonville-la-rogue/config.json           | 1 -
 static/oullins/config.json                      | 1 -
 static/pays-de-grasse/config.json               | 1 -
 static/perpette-les-andouillettes/config.json   | 1 -
 static/quimper/config.json                      | 1 -
 static/rochefort/config.json                    | 1 -
 static/saint-lo-agglo/config.json               | 1 -
 static/saint-vallier-de-thiey/config.json       | 1 -
 static/saone-et-loire-cd71/config.json          | 1 -
 static/seine-et-marne-apa/config.json           | 1 -
 static/seine-et-marne/config.json               | 1 -
 static/sicoval/config.json                      | 1 -
 static/sictiam/config.json                      | 1 -
 static/somme-cd80/config.json                   | 1 -
 static/sospel/config.json                       | 1 -
 static/strasbourg-2018/config.json              | 1 -
 static/strasbourg/config.json                   | 1 -
 static/tonneville/config.json                   | 1 -
 static/toodego/config.json                      | 1 -
 static/toulouse/config.json                     | 1 -
 static/tournai/config.json                      | 1 -
 static/urville-nacqueville/config.json          | 1 -
 static/vandoeuvre-les-nancy/config.json         | 1 -
 static/vaulx-en-velin/config.json               | 1 -
 static/venissieux/config.json                   | 1 -
 static/villejuif/config.json                    | 1 -
 static/villeurbanne-2018/config.json            | 1 -
 static/villeurbanne/config.json                 | 1 -
 static/vincennes-2018/config.json               | 1 -
 75 files changed, 4 insertions(+), 74 deletions(-)
create_themes_json.py
14 14
        theme['variables'] = {}
15 15
    if not theme['variables'].get('css_variant'):
16 16
        theme['variables']['css_variant'] = dirname
17
    if os.path.exists(os.path.join('static', dirname, 'extra.js')):
18
        theme['variables']['no_extra_js'] = False
19
    else:
20
        theme['variables']['no_extra_js'] = True
17 21
    themes.append(theme)
18 22

  
19 23
with open('themes.json', 'w') as fd:
static/alpes-maritimes-2018/config.json
1 1
{
2 2
  "label": "Alpes-Maritimes 2018",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#001c76",
6 5
    "email_header_img": "img/logo.png",
7 6
    "email_header_right_img": "img/logo-departement.png"
static/alpes-maritimes/config.json
2 2
  "label": "Alpes-Maritimes",
3 3
  "variables": {
4 4
    "favicon": "alpes-maritimes/img/favicon.ico",
5
    "no_extra_js": true,
6 5
    "theme_color": "#13ACBD"
7 6
  }
8 7
}
static/auch/config.json
1 1
{
2 2
  "label": "Auch",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#B3B18C"
6 5
  }
7 6
}
static/blois/config.json
1 1
{
2 2
  "label": "Blois",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#02b4da"
6 5
  }
7 6
}
static/bron/config.json
1 1
{
2 2
  "label": "Bron",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#ff8400"
6 5
  }
7 6
}
static/chateauroux/config.json
1 1
{
2 2
  "label": "Châteauroux",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#0779B7"
6 5
  }
7 6
}
static/clapotis-les-canards/config.json
1 1
{
2 2
  "label": "Clapotis-les-Canards",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#018B9D"
6 5
  }
7 6
}
static/clisson-sevre-et-maine-agglo/config.json
1 1
{
2 2
  "label": "Clisson, Sèvre & Maine Agglo",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#C25D1B"
6 5
  }
7 6
}
static/clisson/config.json
1 1
{
2 2
  "label": "Clisson",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#C52F1E"
6 5
  }
7 6
}
static/cotes-d-armor/config.json
6 6
    "icon_sizes": [
7 7
      "180"
8 8
    ],
9
    "no_extra_js": true,
10 9
    "theme_color": "#44db6f"
11 10
  }
12 11
}
static/dardilly/config.json
1 1
{
2 2
  "label": "Dardilly",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#008FCB"
6 5
  }
7 6
}
static/dauphine/config.json
1 1
{
2 2
  "label": "Dauphine",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#00428F"
6 5
  }
7 6
}
static/dreux/config.json
1 1
{
2 2
  "label": "Dreux",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#d29340"
6 5
  }
7 6
}
static/fondettes/config.json
3 3
  "variables": {
4 4
    "favicon": "fondettes/favicon.png",
5 5
    "logo_link_url": "http://www.fondettes.fr/",
6
    "no_extra_js": true,
7 6
    "theme_color": "#2A697C"
8 7
  }
9 8
}
static/fontenay-sous-bois-2018/config.json
1 1
{
2 2
  "label": "Fontenay-sous-Bois 2018",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#da3838"
6 5
  }
7 6
}
static/gorges/config.json
1 1
{
2 2
  "label": "Gorges",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#268682"
6 5
  }
7 6
}
static/grandlyon-gnm/config.json
9 9
      "256",
10 10
      "512"
11 11
    ],
12
    "no_extra_js": false,
13 12
    "pwa_display": "standalone",
14 13
    "theme_color": "#DA0D02"
15 14
  }
static/grandlyon-sau/config.json
1 1
{
2 2
  "label": "SAU Grand Lyon",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#E42320"
6 5
  }
7 6
}
static/grandlyon/config.json
1 1
{
2 2
  "label": "Grand Lyon",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#FF0303"
6 5
  }
7 6
}
static/grenoble-metropole/config.json
2 2
  "label": "Grenoble Métropole",
3 3
  "variables": {
4 4
    "email_header_img": "img/logo-metro.png",
5
    "no_extra_js": false,
6 5
    "theme_color": "#FFEC44"
7 6
  }
8 7
}
static/greville-hague/config.json
1 1
{
2 2
  "label": "Gréville-Hague",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#431403"
6 5
  }
7 6
}
static/grosboule-les-bains/config.json
1 1
{
2 2
  "label": "Grosboule-les-Bains",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#13b29c"
6 5
  }
7 6
}
static/groupe-up/config.json
2 2
  "label": "Groupe Up",
3 3
  "variables": {
4 4
    "apa_users_grid": "grid-1-3",
5
    "no_extra_js": true,
6 5
    "theme_color": "#f59100"
7 6
  }
8 7
}
static/haute-goulaine/config.json
1 1
{
2 2
  "label": "Haute Goulaine",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#B0D500"
6 5
  }
7 6
}
static/hautes-alpes-2018/config.json
1 1
{
2 2
  "label": "Hautes-Alpes 2018",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#B73720"
6 5
  }
7 6
}
static/hautes-alpes/config.json
1 1
{
2 2
  "label": "Hautes-Alpes",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#D1351C"
6 5
  }
7 6
}
static/jobourg/config.json
1 1
{
2 2
  "label": "Jobourg",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#426C92"
6 5
  }
7 6
}
static/la-hague/config.json
1 1
{
2 2
  "label": "La Hague",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#5ABEB9"
6 5
  }
7 6
}
static/la-reunion/config.json
1 1
{
2 2
  "label": "La Réunion",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#024395"
6 5
  }
7 6
}
static/la-seyne-sur-mer/config.json
1 1
{
2 2
  "label": "La Seyne-sur-Mer",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#1DA1AE"
6 5
  }
7 6
}
static/lenord/config.json
1 1
{
2 2
  "label": "Le Nord",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#6B7A99"
6 5
  }
7 6
}
static/lozere/config.json
1 1
{
2 2
  "label": "Lozère",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#A8BC01"
6 5
  }
7 6
}
static/marcoussis/config.json
1 1
{
2 2
  "label": "Marcoussis",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#2B8AE8"
6 5
  }
7 6
}
static/massoins/config.json
1 1
{
2 2
  "label": "Massoins",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#4DB2EC"
6 5
  }
7 6
}
static/mauguio/config.json
1 1
{
2 2
  "label": "Mauguio-Carnon",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#005d1a"
6 5
  }
7 6
}
static/meaux/config.json
1 1
{
2 2
  "label": "Meaux",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#C5C0B4"
6 5
  }
7 6
}
static/metz-metropole/config.json
1 1
{
2 2
  "label": "Metz Métropole",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "pwa_display": "standalone",
6 5
    "theme_color": "#9c007f",
7 6
    "favicon": "metz-metropole/img/launcher-icon-16px.png",
static/metz/config.json
1 1
{
2 2
  "label": "Metz",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#FABB00"
6 5
  }
7 6
}
static/meudon/config.json
1 1
{
2 2
  "label": "Meudon",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#260c4e"
6 5
  }
7 6
}
static/meyzieu-2018/config.json
1 1
{
2 2
  "label": "Meyzieu 2018",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#3997a5"
6 5
  }
7 6
}
static/mincult/config.json
1 1
{
2 2
  "label": "Ministère de la Culture",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#41264a"
6 5
  }
7 6
}
static/minint/config.json
1 1
{
2 2
  "label": "Ministère de l'Intérieur",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#34567C"
6 5
  }
7 6
}
static/moselle/config.json
2 2
  "label": "Moselle",
3 3
  "variables": {
4 4
    "include_top_links": false,
5
    "no_extra_js": false,
6 5
    "theme_color": "#f7433a"
7 6
  }
8 7
}
static/nancy/config.json
1 1
{
2 2
  "label": "Nancy",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#94BCBB"
6 5
  }
7 6
}
static/nanterre/config.json
1 1
{
2 2
  "label": "Nanterre",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#D81E41"
6 5
  }
7 6
}
static/omonville-la-rogue/config.json
1 1
{
2 2
  "label": "Omonville-la-Rogue",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#BAC197"
6 5
  }
7 6
}
static/oullins/config.json
1 1
{
2 2
  "label": "Oullins",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#D24B19"
6 5
  }
7 6
}
static/pays-de-grasse/config.json
1 1
{
2 2
  "label": "Pays de Grasse",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#DB378E"
6 5
  }
7 6
}
static/perpette-les-andouillettes/config.json
1 1
{
2 2
  "label": "Perpette-les-Andouillettes",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#005712"
6 5
  }
7 6
}
static/quimper/config.json
1 1
{
2 2
  "label": "Quimper",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "include_top_links": false,
6 5
    "theme_color": "#00aa9e",
7 6
    "pwa_display": "standalone",
static/rochefort/config.json
1 1
{
2 2
  "label": "Rochefort",
3 3
  "variables": {
4
    "no_extra_js": false,
5 4
    "theme_color": "#D24E38"
6 5
  }
7 6
}
static/saint-lo-agglo/config.json
1 1
{
2 2
  "label": "Saint-Lô Agglo",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#79bb2e"
6 5
  }
7 6
}
static/saint-vallier-de-thiey/config.json
1 1
{
2 2
  "label": "Saint-Vallier-de-Thiey",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#2DBBE5"
6 5
  }
7 6
}
static/saone-et-loire-cd71/config.json
1 1
{
2 2
  "label": "Saône et Loire (CD71)",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#009DDF"
6 5
  }
7 6
}
static/seine-et-marne-apa/config.json
2 2
  "label": "Seine-et-Marne (aides sociales)",
3 3
  "variables": {
4 4
    "apa_users_grid": "grid-1-3",
5
    "no_extra_js": true,
6 5
    "theme_color": "#0a7ec2"
7 6
  }
8 7
}
static/seine-et-marne/config.json
1 1
{
2 2
  "label": "Seine-et-Marne",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#007084"
6 5
  }
7 6
}
static/sicoval/config.json
1 1
{
2 2
  "label": "SICOVAL",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#F8AD4A"
6 5
  }
7 6
}
static/sictiam/config.json
1 1
{
2 2
  "label": "SICTIAM",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#0E88BE"
6 5
  }
7 6
}
static/somme-cd80/config.json
1 1
{
2 2
  "label": "Somme (CD80)",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#87A738"
6 5
  }
7 6
}
static/sospel/config.json
1 1
{
2 2
  "label": "Sospel",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#333333"
6 5
  }
7 6
}
static/strasbourg-2018/config.json
3 3
  "variables": {
4 4
    "email_header_img": "img/logo-eurometropole.png",
5 5
    "favicon": "strasbourg-2018/img/favicon.png",
6
    "no_extra_js": false,
7 6
    "theme_color": "#31455D"
8 7
  }
9 8
}
static/strasbourg/config.json
1 1
{
2 2
  "label": "Strasbourg",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#31455D"
6 5
  }
7 6
}
static/tonneville/config.json
1 1
{
2 2
  "label": "Tonneville",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#ED3237"
6 5
  }
7 6
}
static/toodego/config.json
12 12
      "512"
13 13
    ],
14 14
    "include_top_links": false,
15
    "no_extra_js": false,
16 15
    "pwa_display": "standalone",
17 16
    "theme_color": "#DC1822"
18 17
  }
static/toulouse/config.json
2 2
  "label": "Toulouse",
3 3
  "variables": {
4 4
    "favicon": "toulouse/img/favicon-16.png",
5
    "no_extra_js": false,
6 5
    "pwa_display": "standalone",
7 6
    "theme_color": "#de3559",
8 7
    "icon_prefix": "img/launcher-icon-",
static/tournai/config.json
1 1
{
2 2
  "label": "Tournai",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#D62D8A"
6 5
  }
7 6
}
static/urville-nacqueville/config.json
1 1
{
2 2
  "label": "Urville-Nacqueville",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#4585AB"
6 5
  }
7 6
}
static/vandoeuvre-les-nancy/config.json
1 1
{
2 2
  "label": "Vandœuvre-les-Nancy",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#337298"
6 5
  }
7 6
}
static/vaulx-en-velin/config.json
1 1
{
2 2
  "label": "Vaulx-en-Velin",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#0C89A1"
6 5
  }
7 6
}
static/venissieux/config.json
2 2
  "label": "Vénissieux",
3 3
  "variables": {
4 4
    "email_header_img": "img/logo-venissieux-bleu.png",
5
    "no_extra_js": true,
6 5
    "theme_color": "#2dbdbd"
7 6
  }
8 7
}
static/villejuif/config.json
1 1
{
2 2
  "label": "Villejuif",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#1ba39c"
6 5
  }
7 6
}
static/villeurbanne-2018/config.json
2 2
  "label": "Villeurbanne 2018",
3 3
  "variables": {
4 4
    "email_header_img": "images/logo.png",
5
    "no_extra_js": true,
6 5
    "theme_color": "#0094aa"
7 6
  }
8 7
}
static/villeurbanne/config.json
1 1
{
2 2
  "label": "Villeurbanne",
3 3
  "variables": {
4
    "no_extra_js": true,
5 4
    "theme_color": "#01A0BE"
6 5
  }
7 6
}
static/vincennes-2018/config.json
2 2
  "label": "Vincennes (2018)",
3 3
  "variables": {
4 4
    "favicon": "vincennes-2018/img/favicon.ico",
5
    "no_extra_js": true,
6 5
    "theme_color": "#F50082"
7 6
  }
8 7
}
9
-