This commit modifies the CSS to adjust grid column widths for better alignment and updates the button styles for improved visual consistency. The version code is incremented to 4.72.660, reflecting these changes. These updates enhance the user interface by providing a more organized layout and refined button aesthetics.
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
---
|
||
description: Incrémenter _VERSION_CODE après modification CSS/JS servis par Minify
|
||
globs: css/**/*.css,js/**/*.js,min/groupsConfig.php,inc_footer_scripts.php,inc_header.php
|
||
alwaysApply: false
|
||
---
|
||
|
||
# Cache busting CSS / JS (MS1 inscription)
|
||
|
||
Les feuilles de style et scripts du site public passent par Minify :
|
||
|
||
- CSS : `/min/g=css&version=v{_VERSION_CODE}` (`inc_header.php`)
|
||
- JS : `/min/index.php?g=js&version=v{_VERSION_CODE}`
|
||
|
||
`_VERSION_CODE` est défini dans **`php/inc_settings.php`** (environnement local/dev).
|
||
|
||
## Obligation
|
||
|
||
Après **toute modification** d’un fichier inclus dans `min/groupsConfig.php` (ex. `css/style.css`, `css/ms1-doc.css`, JS du groupe `js`) **ou** d’un asset chargé avec `?version=v{_VERSION_CODE}` :
|
||
|
||
1. Incrémenter le **dernier segment** de `_VERSION_CODE` dans `php/inc_settings.php`
|
||
Ex. `4.72.659` → `4.72.660`
|
||
2. Mettre à jour `_DATE_CODE` à la date du jour (YYYY-MM-DD).
|
||
|
||
Ne pas oublier cette étape dans le même changement que le CSS/JS — sinon le navigateur garde l’ancien bundle en cache.
|
||
|
||
## Vérification rapide
|
||
|
||
Le pied de page affiche : `code (v{_VERSION_CODE})` — utile pour confirmer que la nouvelle version est déployée.
|
||
|
||
## Autres environnements
|
||
|
||
Fichiers séparés si déploiement ciblé : `php/inc_settingsprod.php`, `inc_settings_baloo.php`, etc. En dev local, c’est **`php/inc_settings.php`** qui compte.
|