Skip to content

Commit

Permalink
release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gvx committed Aug 17, 2023
1 parent 7738001 commit 9bea273
Show file tree
Hide file tree
Showing 42 changed files with 838 additions and 1,883 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
Changelog
=========

Version 4.0.0 (2023-08-17)
--------------------------

* Mise a niveau pour dc 2.27 (refonte)
* Version mini dc 2.27
* Passage des icônes de "png" a "svg"
* Passage a la version 5.65.14 de CodeMirror
* Suppression du cryptage
* Suppression de la gestion des options globales
* Suppression de la dépendance a dcPluginHelper
* Correctifs divers

Version 3.0.0 Version abandonnée
--------------------------------

Version 2.3.0 (2022-11-14)
--------------------------

* Mise a niveau dcPluginHelper pour dc 2.24
* Version mini dc 2.24
* Ajout d'un depot alternatif
* Ajout d'un dépôt alternatif
* Passage a la version 5.65.9 de CodeMirror
* Correctifs divers

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ L'éditeur de code utilise la coloration syntaxique de [CodeMirror](https://code

## Pré-requis ##

* Dotclear 2.24 ou plus
* Dotclear 2.27 ou plus

## Utilisation ##

Expand Down
17 changes: 16 additions & 1 deletion dcScript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
Changelog
=========

Version 4.0.0 (2023-08-17)
--------------------------

* Mise a niveau pour dc 2.27 (refonte)
* Version mini dc 2.27
* Passage des icônes de "png" a "svg"
* Passage a la version 5.65.14 de CodeMirror
* Suppression du cryptage
* Suppression de la gestion des options globales
* Suppression de la dépendance a dcPluginHelper
* Correctifs divers

Version 3.0.0 Version abandonnée
--------------------------------

Version 2.3.0 (2022-11-14)
--------------------------

* Mise a niveau dcPluginHelper pour dc 2.24
* Version mini dc 2.24
* Ajout d'un depot alternatif
* Ajout d'un dépôt alternatif
* Passage a la version 5.65.9 de CodeMirror
* Correctifs divers

Expand Down
15 changes: 15 additions & 0 deletions dcScript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
README
======

English
-------
### First installation

To use the plugin you must first configure it (Plugins management -> Configure plugin)

Français
--------

### Première installation

Pour utiliser le plugin il faut commencer par le configurer (gestion des plugins -> configurer le plugin)
14 changes: 0 additions & 14 deletions dcScript/_admin.php

This file was deleted.

14 changes: 0 additions & 14 deletions dcScript/_config.php

This file was deleted.

39 changes: 16 additions & 23 deletions dcScript/_define.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,38 @@
/**
* This file is part of dcScript plugin for Dotclear 2.
*
* @package Dotclear\plungin\dcScript
* @package Dotclear\plugin\dcScript
*
* @author Gvx <[email protected]>
* @copyright © 2014-2022 Gvx
* @copyright © 2014-2023 Gvx
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

if(!defined('DC_RC_PATH')) { return; }

$this->registerModule(
/* Name */ 'dcScript',
/* Description*/ 'Add script for DC',
/* Author */ 'Gvx',
/* Version */ '2.3.0',
array(
/* Version */ '4.0.0',
[
/* standard plugin options dotclear */
'permissions' => dcCore::app()->auth->makePermissions([dcScriptPerms::EDIT]),
'permissions' => dcCore::app()->auth->makePermissions([initDcScript::EDIT]),
'type' => 'plugin',
'Priority' => 1010,
'support' /* url */ => 'http://forum.dotclear.org/viewtopic.php?pid=335785#p335785',
'details' /* url */ => 'https://github.com/Gvx-/dcScript',
'requires' /* id(s) */ => array(
array('core', '2.24')
),
'settings' => array(
//'self' => '', // Optionnal: '#onglet' (or false since 2.17)
//'blog' => '#params.id', // Optionnal: '#params.id'
//'pref' => '#user-options.id', // Optionnal: '#user-options.id'
),
'repository' => 'https://raw.githubusercontent.com/Gvx-/dcScript/master/dcstore.xml', // Optionnal: URL
/* specific plugin options */
'_class_name' => 'dcScript', // Required: plugin master class name
'_class_path' => '/inc/class.dcScript.php', // Required: plugin master class path (relative)
'_icon_small' => '/inc/icon-small.png', // Required: plugin small icon path (16*16 px) (relative)
'_icon_large' => '/inc/icon-large.png', // Required: plugin large icon path (64*64 px) (relative)
)
'requires' /* id(s) */ => [
['core', '2.27']
],
'settings' => [
//'self' => '', // Optional: '#tab' (or false since 2.17)
//'blog' => '#params.id', // Optional: '#params.id'
//'pref' => '#user-options.id', // Optional: '#user-options.id'
],
'repository' => 'https://raw.githubusercontent.com/Gvx-/dcScript/master/dcstore.xml' // Optional: URL
]
);

# ---------------------------------------------------------
# use codemirror version 5.65.9
# use codemirror version 5.65.14
# see: http://codemirror.net/
# ---------------------------------------------------------
7 changes: 3 additions & 4 deletions dcScript/_init.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
* @package Dotclear\plungin\dcScript
*
* @author Gvx <[email protected]>
* @copyright © 2014-2022 Gvx
* @copyright © 2014-2023 Gvx
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

if(!defined('DC_RC_PATH')) { return; }
declare(strict_types=1);


class dcScriptPerms {
class initDcScript {
// Constants

/**
Expand Down
14 changes: 0 additions & 14 deletions dcScript/_install.php

This file was deleted.

22 changes: 0 additions & 22 deletions dcScript/_prepend.php

This file was deleted.

14 changes: 0 additions & 14 deletions dcScript/_public.php

This file was deleted.

86 changes: 0 additions & 86 deletions dcScript/bin/build.bat

This file was deleted.

4 changes: 3 additions & 1 deletion dcScript/bin/phpStan.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@echo off
set errorCode=0

set phpPath=C:\wamp64\bin\php\php8.1.13\php

set project=%~dp0..\phpStan.neon
if not exist %project% goto :error
echo phpStan analyse en cours...
php %userprofile%\vendor\phpstan\phpstan\phpstan analyse -c "%project%"
%phpPath% %userprofile%\vendor\phpstan\phpstan\phpstan analyse -c "%project%"
goto :endBatch

:error
Expand Down
2 changes: 2 additions & 0 deletions dcScript/bin/phpstan.bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
define('DC_VERSION', '');
define('DC_XMLRPC_URL', '');
define('NL', "\n");
define('SETTINGS_GLOBAL', 'global');
define('SETTINGS_LOCAL', 'default');
13 changes: 11 additions & 2 deletions dcScript/bin/release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Changelog
::
:: * 15/08/2023 V0.1.4.5
:: Suppression de la copie du fchiers README
:: * 13/08/2023 V0.1.3.4
:: Changement de repertoire de destination
:: Ajout la copie des fichiers README, CHANGELOG, LICENCE, dcstore
:: * 21/04/2020 V0.1.2.3
:: Correction repertoire de destination
:: * 18/04/2020 V0.1.1.2
Expand All @@ -18,7 +23,7 @@

setlocal enabledelayedexpansion
:: Version script
set VERSION=0.1.2.3
set VERSION=0.1.4.5

if /I "%~1"=="-h" goto :help
if /I "%~1"=="--help" goto :help
Expand All @@ -29,7 +34,7 @@ if NOT [%1]==[] goto :help
:: TODO: initialiser <source> et <dest>
set source=%~dp0..
call :parsePath nx %source% plugin
set dest=%USERPROFILE%\Documents\__mesDocs\Git\%plugin%\%plugin%\
set dest=%USERPROFILE%\Documents\_mesDocs\Repositories\GitHub\%plugin%\%plugin%\

call :parsePath f %source% source
call :parsePath f %dest% dest
Expand All @@ -40,6 +45,10 @@ if not exist %dest% call :fileError %dest%
del /f /s /q "%dest%" >NUL
xcopy "%source%" "%dest%" /q /s /e /y /exclude:.\excludes.txt

xcopy "%source%\CHANGELOG.md" "%dest%\..\" /q /y
xcopy "%source%\LICENCE" "%dest%\..\" /q /y
xcopy "%source%\dcstore.xml" "%dest%\..\" /q /y

endlocal
exit /b

Expand Down
Loading

0 comments on commit 9bea273

Please sign in to comment.