release 1.4

This commit is contained in:
Jean-Christian Denis 2023-08-07 00:34:44 +02:00
parent 6d8d88b982
commit a2c0ac86de
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
5 changed files with 185 additions and 150 deletions

View file

@ -1,142 +1,178 @@
dev improve todo - xxxx.xx.xx
- [ ] add global config for file size limit ===========================================================
- [ ] add module to check directory structure * [ ] add global config for file size limit
- [ ] add module to create full README file * [ ] add module to check directory structure
- [ ] add module to minify .js * [ ] add module to create full README file
- [ ] write documentation of php class * [ ] add module to minify .js
* [ ] write documentation of php class
1.3 - 2023.07.16 improve 1.4 - 2023.08.07
- require dotclear 2.27 ===========================================================
- require PHP 8.1+ * Require Dotclear 2.27
- use latest dotclear namespaces * Require PHP 8.1+
- add deprecated for Dotclear 2.26 and 2.27 * 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 improve 1.3 - 2023.07.16
- require dotclear 2.26 ===========================================================
- require PHP 8.1+ * require dotclear 2.27
- move / rename / split class and methods * require PHP 8.1+
- add plugin Uninstaller features * use latest dotclear namespaces
- fix phpstan on modules that requires other modules * add deprecated for Dotclear 2.26 and 2.27
1.1.3 - 2023.04.06 improve 1.2 - 2023.04.29
- disable phpstan if option nodetails is active ===========================================================
- add option to show distributed modules * require dotclear 2.26
- add option to sort modules by name or id * require PHP 8.1+
- use dcModulesDefine rather than properties array * move / rename / split class and methods
- use latest dotclear Helper * add plugin Uninstaller features
- use dotclear autoloader rather than clearbricks one * fix phpstan on modules that requires other modules
1.1.2 - 2023.03.20 improve 1.1.3 - 2023.04.06
- add option to phpstan to clear cache ===========================================================
- add option to phpstan not ot use ignored errors * disable phpstan if option nodetails is active
- fix init check * 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 improve 1.1.2 - 2023.03.20
- require php 8.0 ===========================================================
- use new Zip helper * add option to phpstan to clear cache
- use Html form for tools configuration * add option to phpstan not ot use ignored errors
- check php version * fix init check
- update to phpstan 1.10.7
- update to php-cs-fixer 3.15.1
1.1 - 2023.03.05 (pre) improve 1.1.1 - 2023.03.18
- require Dotclear 2.26-dev ===========================================================
- use PHP namespace * require php 8.0
- use Html Form * use new Zip helper
- use json rather than serialize functions * use Html form for tools configuration
- use new open/close module * check php version
- add cssheader tool (experimental) * update to phpstan 1.10.7
- update to phpstan 1.10.3 * update to php-cs-fixer 3.15.1
- update to php-cs-fixer 3.14.4
1.0.2 - 2023.01.16 improve 1.1 - 2023.03.05 (pre)
- cleanup namespace usage ===========================================================
- fix namespace on disabled plugin * require Dotclear 2.26-dev
- update to phpstan 1.9.11 * use PHP namespace
- update to php-cs-fixer 3.13.2 * 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 improve 1.0.2 - 2023.01.16
- fix lost of settings between themes and plugins (thx brol) ===========================================================
- fix false positive on global_filters deprecated * cleanup namespace usage
- remove unnecessary settings namespace declaration * fix namespace on disabled plugin
* update to phpstan 1.9.11
* update to php-cs-fixer 3.13.2
1.0 - 2022.12.21 improve 1.0.1 - 2023.01.03
- update phpstan and php-cs-fixer to lastest releases ===========================================================
- add module to compile .po file into .lang.php file * fix lost of settings between themes and plugins (thx brol)
- add some deprecated (splitted by dc version) * fix false positive on global_filters deprecated
- add ability to improve disabled modules * remove unnecessary settings namespace declaration
- 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.10 - 2022.12.03 improve 1.0 - 2022.12.21
- allow to improve disabled modules ===========================================================
- split deprecated list by dotclear versions * update phpstan and php-cs-fixer to lastest releases
- fix translation * add module to compile .po file into .lang.php file
- use svg icon * add some deprecated (splitted by dc version)
- various code improvments * 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 improve 0.10 - 2022.12.03
- update to Dotclear 2.24 ===========================================================
- update to php-cs-fixer.phar 3.13.0 * allow to improve disabled modules
- update to phpstan.phar 1.9.2 * split deprecated list by dotclear versions
* fix translation
* use svg icon
* various code improvments
0.8.2 - 2021.11.18 improve 0.9 - 2022.11.20
- update php-cs-fixer.phar to 3.3.2 ===========================================================
- update phpstan.phar to 1.2.0 * 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 improve 0.8.2 - 2021.11.18
- fix unknow preferences on new install ===========================================================
* update php-cs-fixer.phar to 3.3.2
* update phpstan.phar to 1.2.0
0.8 - 2021.11.13 improve 0.8.1 - 2021.11.15
- update structure to php namespace ===========================================================
- update php cs fixer rules to dc2.21 / php7.4 * fix unknow preferences on new install
- update phpstan to 1.1.2
0.7.1 - 2021.11.08 improve 0.8 - 2021.11.13
- Fix php < 8 _ thanks @Gvx- _ closes #5 ===========================================================
* 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 improve 0.7.1 - 2021.11.08
- add phpstan module ===========================================================
- fix some errors from phpstan analyze * Fix php < 8 _ thanks @Gvx- _ closes #5
0.6 - 2021.11.06 improve 0.7 - 2021.11.08
- add header for modules configuration ===========================================================
- add options to hide details of executed actions * add phpstan module
- show configuration file in phpcsfixer module * fix some errors from phpstan analyze
- use table in ui
0.5 - 2021.11.05 improve 0.6 - 2021.11.06
- add settings to disable (hide) modules ===========================================================
- fix dcstore xml rendering (thanks Franck Paul) * 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 improve 0.5 - 2021.11.05
- add module to use php-cs-fixer ===========================================================
* add settings to disable (hide) modules
* fix dcstore xml rendering (thanks Franck Paul)
0.3 - 2021.10.29 improve 0.4 - 2021.11.02
- use of xmlTag to generate dcstore.xml contents ===========================================================
- complete readme file * add module to use php-cs-fixer
- fix module update (thanks Gvx)
0.2 - 2021.09.25 improve 0.3 - 2021.10.29
- add module to check deprecated Dotclear function ===========================================================
* use of xmlTag to generate dcstore.xml contents
* complete readme file
* fix module update (thanks Gvx)
0.1.2 improve 0.2 - 2021.09.25
- add logs / report systeme ===========================================================
- add DA badge to module _gitshields_ * add module to check deprecated Dotclear function
- change function args, less is better
- change interface, lighter names
- add function to summarize by action what was done
0.1.1 improve 0.1.2
- fix php < 8.0 ===========================================================
* 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 improve 0.1.1
- First release ===========================================================
* fix php < 8.0
0.0.1 - 2021.09.11 improve 0.1 - 2021.09.11
- First pre-release ===========================================================
* First release
improve 0.0.1 - 2021.09.11
===========================================================
* First pre-release

View file

@ -1,34 +1,33 @@
# README # README
[![Release](https://img.shields.io/github/v/release/JcDenis/improve)](https://github.com/JcDenis/improve/releases) [![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/improve/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/improve)](https://github.com/JcDenis/improve/releases) [![Date](https://img.shields.io/badge/date-2023.08.06-c44d58.svg)](https://git.dotclear.watch/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-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/improve)
[![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://git.dotclear.watch/JcDenis/improve/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/JcDenis/improve)](https://github.com/JcDenis/improve/blob/master/LICENSE)
## WHAT IS IMPROVE ? ## WHAT IS IMPROVE ?
**improve** is a plugin for the open-source _improve_ is a plugin for the open-source
web publishing software called Dotclear. web publishing software called Dotclear.
It helps dev to clean up plugin or theme before publishing code. It helps dev to clean up plugin or theme before publishing code.
* Open to third party plugin * Open to third party plugin
* Easy and fast to use * Easy and fast to use
* Easy and fast to extend * Easy and fast to extend
## REQUIREMENTS ## REQUIREMENTS
**improve** requires: _improve_ requires:
* admin permission * admin permission
* Dotclear 2.27-dev * Dotclear 2.27
* PHP 8.1+ * PHP 8.1+
## USAGE ## 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) Dotaddict repository. (See Dotclear's documentation to know how do this)
Manage tools from sidebar plugin menu **improve**. Manage tools from sidebar plugin menu **improve**.
@ -39,13 +38,13 @@ and help devs to maintain their plugins and themes.
## LINKS ## LINKS
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/improve) * Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/improve) [GitHub Page](https://github.com/JcDenis/improve)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/improve) * Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/improve/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/improve)
## CONTRIBUTORS ## CONTRIBUTORS
* Jean-Christian Denis * Jean-Christian Denis
* Gvx * Gvx
You are welcome to contribute to this code. You are welcome to contribute to this code.

View file

@ -18,7 +18,7 @@ $this->registerModule(
'improve', 'improve',
'Tiny tools to fix things for module devs', 'Tiny tools to fix things for module devs',
'Jean-Christian Denis and contributors', 'Jean-Christian Denis and contributors',
'1.3.2', '1.4',
[ [
'requires' => [ 'requires' => [
['php', '8.1'], ['php', '8.1'],
@ -26,8 +26,8 @@ $this->registerModule(
], ],
'permissions' => null, 'permissions' => null,
'type' => 'plugin', 'type' => 'plugin',
'support' => 'https://github.com/JcDenis/' . basename(__DIR__), 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
'details' => 'https://github.com/JcDenis/' . basename(__DIR__), 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
] ]
); );

View file

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="improve"> <module id="improve">
<name>improve</name> <name>improve</name>
<version>1.3.2</version> <version>1.4</version>
<author>Jean-Christian Denis and contributors</author> <author>Jean-Christian Denis and contributors</author>
<desc>Tiny tools to fix things for module devs</desc> <desc>Tiny tools to fix things for module devs</desc>
<file>https://github.com/JcDenis/improve/releases/download/v1.3.2/plugin-improve.zip</file> <file>https://gitea.dotclear.watch/JcDenis/improve/releases/download/v1.4/plugin-improve.zip</file>
<da:dcmin>2.27</da:dcmin> <da:dcmin>2.27</da:dcmin>
<da:details>https://github.com/JcDenis/improve</da:details> <da:details>https://git.dotclear.watch/JcDenis/improve/src/branch/master/README.md</da:details>
<da:support>https://github.com/JcDenis/improve</da:support> <da:support>https://git.dotclear.watch/JcDenis/improve/issues</da:support>
</module> </module>
</modules> </modules>

View file

@ -58,9 +58,9 @@ class GitShields extends Task
/** @var array Shields patterns */ /** @var array Shields patterns */
protected $bloc_content = [ protected $bloc_content = [
'release' => '[![Release](https://img.shields.io/badge/release-%version%-a2cbe9.svg)](https://%domain%/%username%/%module%/releases)', '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)', '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)', # '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)', '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%)', '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)', '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'])) { if (!empty($_POST['save']) && !empty($_POST['username'])) {
$this->settings->set([ $this->settings->set([
'username' => (string) $_POST['username'], 'username' => (string) $_POST['username'],
'domain' => (string) $_POST['domain'], 'domain' => (string) $_POST['domain'],
'dotaddict' => !empty($_POST['dotaddict']), 'dotaddict' => !empty($_POST['dotaddict']),
]); ]);
$this->redirect($url); $this->redirect($url);