Commit 0888427f authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Gros ménage JS et mise dans composer d'un max de dépendances

optimisation front
parent a7ce4adc
Loading
Loading
Loading
Loading
+8
Changes for .gitignore: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,14 @@ VERSION
public/vendor/unicaen/*
public/unicaen/*
public/.gitignore

public/vendor/bootstrap
public/vendor/bootstrap-select
public/vendor/jquery
public/vendor/open-sans
public/vendor/font-awesome
public/vendor/tinymce

composer.phar
data/fichiers
data/signature
+4
Changes for CHANGELOG.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -21,6 +21,10 @@
* Correction d'un bug lors de la suppression de referentiel fonction (#59691)
* Correction d'un bug sur la gestion des fonctions referentiels parents (#59063) 

Corrections de bugs

* Le différentiel s'affiche correctement dans la page d'administration de l'import  (#59394)

Note de mise à jour : penser à modifier l'état de sortie export des services, pour ne plus faire référence à HEURES_COMPL_FC_MAJOREES dans le traitement php de la partie export pdf, mais faire maintenant référence à HEURES_PRIMES.

# OSE 23.13 (à venir)
+1 −1
Changes for bin/install: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ if ($composerInstall) {

// Chargement des dépendances à l'aide de Composer
$c->section('Chargement des dépendances à l\'aide de Composer');
$c->passthru("cd $dir;COMPOSER_ALLOW_SUPERUSER=1 $composerCommand install --optimize-autoloader");
$c->passthru("cd $dir;COMPOSER_ALLOW_SUPERUSER=1 $composerCommand install --quiet --optimize-autoloader");


// Poursuite de la procédure d'installation en passant la main
+5 −15
Changes for code/test6.php: 5 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -5,21 +5,11 @@
 * @var $container  \Psr\Container\ContainerInterface
 */

$data = require 'data/donnees_par_defaut.php';
$data = $data['CORPS'];
use Formule\Model\FormuleDetailsExtractor;

//unset($data[34]); // 213
$fs = $container->get(\Formule\Service\FormuleService::class);

$bdd = $container->get(\Unicaen\BddAdmin\Bdd::class);
$fi = $fs->getFormuleServiceIntervenant(783665, 1, 1);

$table = $bdd->getTable('CORPS');

$table->delete(['SOURCE_CODE' => 639]);
$table->update(['LIBELLE_COURT' => 'test'], ['SOURCE_CODE' => 602]);
$table->update(['HISTO_DESTRUCTION' => new \DateTime(), 'HISTO_DESTRUCTEUR_ID' => 1], ['SOURCE_CODE' => 813]);

$options = [
    'undelete' => false,
];

$table->merge2($data, 'SOURCE_CODE', $options);
 No newline at end of file
$extractor = new FormuleDetailsExtractor();
$data      = $extractor->extract($fi);
+27 −3
Changes for composer.json: 27 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
    "version"          : "1.0.0",
    "description"      : "Organisation des Services d'Enseignement (OSE)",
    "repositories"     : [

        {
            "type": "composer",
            "url" : "https://gest.unicaen.fr/packagist"
@@ -29,7 +28,13 @@
        "laminas/laminas-cli"                         : "1.10.0",
        "symfony/process"                             : "7.1.5",
        "connecteur-ose/actul"                        : "dev-master",
        "connecteur-ose/pegase": "dev-master"
        "connecteur-ose/pegase"                       : "dev-master",
        "twbs/bootstrap"                              : "5.3.3",
        "components/jquery"                           : "3.6.0",
        "webfontkit/open-sans"                        : "1.0.0",
        "components/font-awesome"                     : "6.5.2",
        "tinymce/tinymce"                             : "7.6.0",
        "snapappointments/bootstrap-select"           : "1.14.0-beta3"
    },
    "autoload": {
        "psr-4": {
@@ -73,7 +78,26 @@
    },
    "scripts"          : {
        "sniffer:php8"    : "./vendor/bin/phpcs -p ./module --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0",
        "phpcs"           : "./vendor/bin/phpcs -p ./module --standard=PSR12"
        "phpcs"           : "./vendor/bin/phpcs -p ./module --standard=PSR12",
        "post-update-cmd": [
            "rm -rf public/vendor/bootstrap",
            "cp -R vendor/twbs/bootstrap/dist public/vendor/bootstrap",

            "rm -rf public/vendor/jquery",
            "cp -R vendor/components/jquery public/vendor/jquery",

            "rm -rf public/vendor/open-sans",
            "cp -R vendor/webfontkit/open-sans public/vendor/open-sans",

            "rm -rf public/vendor/font-awesome",
            "cp -R vendor/components/font-awesome public/vendor/font-awesome",

            "rm -rf public/vendor/tinymce",
            "cp -R vendor/tinymce/tinymce public/vendor/tinymce",

            "rm -rf public/vendor/bootstrap-select",
            "cp -R vendor/snapappointments/bootstrap-select public/vendor/bootstrap-select"
        ]
    },
    "minimum-stability": "dev"
}
 No newline at end of file
Loading