From a2c0ac86de5540624b50aebbb26741562af3a4b7 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 7 Aug 2023 00:34:44 +0200 Subject: [PATCH] release 1.4 --- CHANGELOG.md | 270 +++++++++++++++++++++++----------------- README.md | 41 +++--- _define.php | 8 +- dcstore.xml | 8 +- src/Task/GitShields.php | 8 +- 5 files changed, 185 insertions(+), 150 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0d7ed..3a50538 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,142 +1,178 @@ -dev -- [ ] add global config for file size limit -- [ ] add module to check directory structure -- [ ] add module to create full README file -- [ ] add module to minify .js -- [ ] write documentation of php class +improve todo - xxxx.xx.xx +=========================================================== +* [ ] add global config for file size limit +* [ ] add module to check directory structure +* [ ] add module to create full README file +* [ ] add module to minify .js +* [ ] write documentation of php class -1.3 - 2023.07.16 -- require dotclear 2.27 -- require PHP 8.1+ -- use latest dotclear namespaces -- add deprecated for Dotclear 2.26 and 2.27 +improve 1.4 - 2023.08.07 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 8.1+ +* Fix deprecated (still uncomplete) +* Add custom shields.io badge domain +* Use static shields.io badge (to allow custom domain) +* Use Dotclear style for changelog +* Move third party repository -1.2 - 2023.04.29 -- require dotclear 2.26 -- require PHP 8.1+ -- move / rename / split class and methods -- add plugin Uninstaller features -- fix phpstan on modules that requires other modules +improve 1.3 - 2023.07.16 +=========================================================== +* require dotclear 2.27 +* require PHP 8.1+ +* use latest dotclear namespaces +* add deprecated for Dotclear 2.26 and 2.27 -1.1.3 - 2023.04.06 -- disable phpstan if option nodetails is active -- add option to show distributed modules -- add option to sort modules by name or id -- use dcModulesDefine rather than properties array -- use latest dotclear Helper -- use dotclear autoloader rather than clearbricks one +improve 1.2 - 2023.04.29 +=========================================================== +* require dotclear 2.26 +* require PHP 8.1+ +* move / rename / split class and methods +* add plugin Uninstaller features +* fix phpstan on modules that requires other modules -1.1.2 - 2023.03.20 -- add option to phpstan to clear cache -- add option to phpstan not ot use ignored errors -- fix init check +improve 1.1.3 - 2023.04.06 +=========================================================== +* disable phpstan if option nodetails is active +* add option to show distributed modules +* add option to sort modules by name or id +* use dcModulesDefine rather than properties array +* use latest dotclear Helper +* use dotclear autoloader rather than clearbricks one -1.1.1 - 2023.03.18 -- require php 8.0 -- use new Zip helper -- use Html form for tools configuration -- check php version -- update to phpstan 1.10.7 -- update to php-cs-fixer 3.15.1 +improve 1.1.2 - 2023.03.20 +=========================================================== +* add option to phpstan to clear cache +* add option to phpstan not ot use ignored errors +* fix init check -1.1 - 2023.03.05 (pre) -- require Dotclear 2.26-dev -- use PHP namespace -- use Html Form -- use json rather than serialize functions -- use new open/close module -- add cssheader tool (experimental) -- update to phpstan 1.10.3 -- update to php-cs-fixer 3.14.4 +improve 1.1.1 - 2023.03.18 +=========================================================== +* require php 8.0 +* use new Zip helper +* use Html form for tools configuration +* check php version +* update to phpstan 1.10.7 +* update to php-cs-fixer 3.15.1 -1.0.2 - 2023.01.16 -- cleanup namespace usage -- fix namespace on disabled plugin -- update to phpstan 1.9.11 -- update to php-cs-fixer 3.13.2 +improve 1.1 - 2023.03.05 (pre) +=========================================================== +* require Dotclear 2.26-dev +* use PHP namespace +* use Html Form +* use json rather than serialize functions +* use new open/close module +* add cssheader tool (experimental) +* update to phpstan 1.10.3 +* update to php-cs-fixer 3.14.4 -1.0.1 - 2023.01.03 -- fix lost of settings between themes and plugins (thx brol) -- fix false positive on global_filters deprecated -- remove unnecessary settings namespace declaration +improve 1.0.2 - 2023.01.16 +=========================================================== +* cleanup namespace usage +* fix namespace on disabled plugin +* update to phpstan 1.9.11 +* update to php-cs-fixer 3.13.2 -1.0 - 2022.12.21 -- update phpstan and php-cs-fixer to lastest releases -- add module to compile .po file into .lang.php file -- add some deprecated (splitted by dc version) -- add ability to improve disabled modules -- use svg icon -- use constant for tables names -- use anonymous functions -- use abstract plugin id -- change plugin files structure and namespace -- fix install -- fix translations +improve 1.0.1 - 2023.01.03 +=========================================================== +* fix lost of settings between themes and plugins (thx brol) +* fix false positive on global_filters deprecated +* remove unnecessary settings namespace declaration -0.10 - 2022.12.03 -- allow to improve disabled modules -- split deprecated list by dotclear versions -- fix translation -- use svg icon -- various code improvments +improve 1.0 - 2022.12.21 +=========================================================== +* update phpstan and php-cs-fixer to lastest releases +* add module to compile .po file into .lang.php file +* add some deprecated (splitted by dc version) +* add ability to improve disabled modules +* use svg icon +* use constant for tables names +* use anonymous functions +* use abstract plugin id +* change plugin files structure and namespace +* fix install +* fix translations -0.9 - 2022.11.20 -- update to Dotclear 2.24 -- update to php-cs-fixer.phar 3.13.0 -- update to phpstan.phar 1.9.2 +improve 0.10 - 2022.12.03 +=========================================================== +* allow to improve disabled modules +* split deprecated list by dotclear versions +* fix translation +* use svg icon +* various code improvments -0.8.2 - 2021.11.18 -- update php-cs-fixer.phar to 3.3.2 -- update phpstan.phar to 1.2.0 +improve 0.9 - 2022.11.20 +=========================================================== +* update to Dotclear 2.24 +* update to php-cs-fixer.phar 3.13.0 +* update to phpstan.phar 1.9.2 -0.8.1 - 2021.11.15 -- fix unknow preferences on new install +improve 0.8.2 - 2021.11.18 +=========================================================== +* update php-cs-fixer.phar to 3.3.2 +* update phpstan.phar to 1.2.0 -0.8 - 2021.11.13 -- update structure to php namespace -- update php cs fixer rules to dc2.21 / php7.4 -- update phpstan to 1.1.2 +improve 0.8.1 - 2021.11.15 +=========================================================== +* fix unknow preferences on new install -0.7.1 - 2021.11.08 -- Fix php < 8 _ thanks @Gvx- _ closes #5 +improve 0.8 - 2021.11.13 +=========================================================== +* update structure to php namespace +* update php cs fixer rules to dc2.21 / php7.4 +* update phpstan to 1.1.2 -0.7 - 2021.11.08 -- add phpstan module -- fix some errors from phpstan analyze +improve 0.7.1 - 2021.11.08 +=========================================================== +* Fix php < 8 _ thanks @Gvx- _ closes #5 -0.6 - 2021.11.06 -- add header for modules configuration -- add options to hide details of executed actions -- show configuration file in phpcsfixer module -- use table in ui +improve 0.7 - 2021.11.08 +=========================================================== +* add phpstan module +* fix some errors from phpstan analyze -0.5 - 2021.11.05 -- add settings to disable (hide) modules -- fix dcstore xml rendering (thanks Franck Paul) +improve 0.6 - 2021.11.06 +=========================================================== +* add header for modules configuration +* add options to hide details of executed actions +* show configuration file in phpcsfixer module +* use table in ui -0.4 - 2021.11.02 -- add module to use php-cs-fixer +improve 0.5 - 2021.11.05 +=========================================================== +* add settings to disable (hide) modules +* fix dcstore xml rendering (thanks Franck Paul) -0.3 - 2021.10.29 -- use of xmlTag to generate dcstore.xml contents -- complete readme file -- fix module update (thanks Gvx) +improve 0.4 - 2021.11.02 +=========================================================== +* add module to use php-cs-fixer -0.2 - 2021.09.25 -- add module to check deprecated Dotclear function +improve 0.3 - 2021.10.29 +=========================================================== +* use of xmlTag to generate dcstore.xml contents +* complete readme file +* fix module update (thanks Gvx) -0.1.2 -- add logs / report systeme -- add DA badge to module _gitshields_ -- change function args, less is better -- change interface, lighter names -- add function to summarize by action what was done +improve 0.2 - 2021.09.25 +=========================================================== +* add module to check deprecated Dotclear function -0.1.1 -- fix php < 8.0 +improve 0.1.2 +=========================================================== +* add logs / report systeme +* add DA badge to module _gitshields_ +* change function args, less is better +* change interface, lighter names +* add function to summarize by action what was done -0.1 - 2021.09.11 -- First release +improve 0.1.1 +=========================================================== +* fix php < 8.0 -0.0.1 - 2021.09.11 -- First pre-release \ No newline at end of file +improve 0.1 - 2021.09.11 +=========================================================== +* First release + +improve 0.0.1 - 2021.09.11 +=========================================================== +* First pre-release diff --git a/README.md b/README.md index 4858ee1..21106a5 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,33 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/improve)](https://github.com/JcDenis/improve/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/improve)](https://github.com/JcDenis/improve/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/improve)](https://github.com/JcDenis/improve/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download) -[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/improve) -[![License](https://img.shields.io/github/license/JcDenis/improve)](https://github.com/JcDenis/improve/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/improve/releases) +[![Date](https://img.shields.io/badge/date-2023.08.06-c44d58.svg)](https://git.dotclear.watch/JcDenis/improve/releases) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/improve) +[![License](https://img.shields.io/github/license/JcDenis/improve)](https://git.dotclear.watch/JcDenis/improve/blob/master/LICENSE) ## WHAT IS IMPROVE ? -**improve** is a plugin for the open-source +_improve_ is a plugin for the open-source web publishing software called Dotclear. It helps dev to clean up plugin or theme before publishing code. - * Open to third party plugin - * Easy and fast to use - * Easy and fast to extend +* Open to third party plugin +* Easy and fast to use +* Easy and fast to extend ## REQUIREMENTS -**improve** requires: +_improve_ requires: - * admin permission - * Dotclear 2.27-dev - * PHP 8.1+ +* admin permission +* Dotclear 2.27 +* PHP 8.1+ ## USAGE -First install **improve**, manualy from a zip package or from +First install _improve_, manualy from a zip package or from Dotaddict repository. (See Dotclear's documentation to know how do this) Manage tools from sidebar plugin menu **improve**. @@ -39,13 +38,13 @@ and help devs to maintain their plugins and themes. ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/improve) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/improve) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/improve) [GitHub Page](https://github.com/JcDenis/improve) +* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/improve/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/improve) ## CONTRIBUTORS - * Jean-Christian Denis - * Gvx +* Jean-Christian Denis +* Gvx - You are welcome to contribute to this code. \ No newline at end of file +You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index c3a0ecb..ccccbba 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'improve', 'Tiny tools to fix things for module devs', 'Jean-Christian Denis and contributors', - '1.3.2', + '1.4', [ 'requires' => [ ['php', '8.1'], @@ -26,8 +26,8 @@ $this->registerModule( ], 'permissions' => null, 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/' . basename(__DIR__), - 'details' => 'https://github.com/JcDenis/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index 8dd2e6a..383c2e2 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ improve - 1.3.2 + 1.4 Jean-Christian Denis and contributors Tiny tools to fix things for module devs - https://github.com/JcDenis/improve/releases/download/v1.3.2/plugin-improve.zip + https://gitea.dotclear.watch/JcDenis/improve/releases/download/v1.4/plugin-improve.zip 2.27 - https://github.com/JcDenis/improve - https://github.com/JcDenis/improve + https://git.dotclear.watch/JcDenis/improve/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/improve/issues diff --git a/src/Task/GitShields.php b/src/Task/GitShields.php index ab80af5..8ceea98 100644 --- a/src/Task/GitShields.php +++ b/src/Task/GitShields.php @@ -58,9 +58,9 @@ class GitShields extends Task /** @var array Shields patterns */ protected $bloc_content = [ - 'release' => '[![Release](https://img.shields.io/badge/release-%version%-a2cbe9.svg)](https://%domain%/%username%/%module%/releases)', - 'date' => '[![Date](https://img.shields.io/badge/date-%date%-c44d58.svg)](https://%domain%/%username%/%module%/releases)', -# 'issues' => '[![Issues](https://img.shields.io/github/issues/%username%/%module%)](https://%domain%/%username%/%module%/issues)', + 'release' => '[![Release](https://img.shields.io/badge/release-%version%-a2cbe9.svg)](https://%domain%/%username%/%module%/releases)', + 'date' => '[![Date](https://img.shields.io/badge/date-%date%-c44d58.svg)](https://%domain%/%username%/%module%/releases)', + # 'issues' => '[![Issues](https://img.shields.io/github/issues/%username%/%module%)](https://%domain%/%username%/%module%/issues)', 'dotclear' => '[![Dotclear](https://img.shields.io/badge/dotclear-v%dotclear%-137bbb.svg)](https://fr.dotclear.org/download)', 'dotaddict' => '[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://%type%s.dotaddict.org/dc2/details/%module%)', 'license' => '[![License](https://img.shields.io/github/license/%username%/%module%)](https://%domain%/%username%/%module%/blob/master/LICENSE)', @@ -99,7 +99,7 @@ class GitShields extends Task if (!empty($_POST['save']) && !empty($_POST['username'])) { $this->settings->set([ 'username' => (string) $_POST['username'], - 'domain' => (string) $_POST['domain'], + 'domain' => (string) $_POST['domain'], 'dotaddict' => !empty($_POST['dotaddict']), ]); $this->redirect($url);