Compare commits

...

2 Commits

Author SHA1 Message Date
Jean-Christian Paul Denis 39510449d1
release 0.4 2023-08-06 19:13:27 +02:00
Jean-Christian Paul Denis bab1d2accd
remove unusefull code 2023-08-06 19:12:48 +02:00
7 changed files with 49 additions and 45 deletions

View File

@ -1,17 +1,29 @@
0.3.1 - 2003.03.19
- fix init check
- fix missing closing div
- fix tab methods names
checkStoreVersion 0.4 - 2023.08.06
===========================================================
* Require Dotclear 2.25
* Require PHP 7.4+
* Check versions > 2.26.1
* Move third party repository
* Use Dotclear style for changelog
0.3 - 2023.03.11
- required Dotclear 2.25, up to 2.25.3
- use php namespace
- fix translation
checkStoreVersion 0.3.1 - 2003.03.19
===========================================================
* fix init check
* fix missing closing div
* fix tab methods names
0.2 - 2022.12.03
- Fix direct link to repository (thanks @Gvx- )
- Add Dotclear maximum version compatibility (thanks @Gvx- )
checkStoreVersion 0.3 - 2023.03.11
===========================================================
* required Dotclear 2.25, up to 2.25.3
* use php namespace
* fix translation
0.1.1 - 2022.12.03
- Required Dotclear 2.19, up to 2.23.1
- First release
checkStoreVersion 0.2 - 2022.12.03
===========================================================
* Fix direct link to repository (thanks @Gvx- )
* Add Dotclear maximum version compatibility (thanks @Gvx- )
checkStoreVersion 0.1.1 - 2022.12.03
===========================================================
* Required Dotclear 2.19, up to 2.23.1
* First release

View File

@ -1,15 +1,15 @@
# README
[![Release](https://img.shields.io/github/v/release/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/issues)
[![Release](https://img.shields.io/github/v/release/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/issues)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.25-blue.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
[![License](https://img.shields.io/github/license/JcDenis/checkStoreVersion)](https://github.com/JcDenis/checkStoreVersion/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/JcDenis/checkStoreVersion)](https://git.dotclear.watch/JcDenis/checkStoreVersion/blob/master/LICENSE)
## WHAT IS CHECKSTOREVERSION ?
_CheckStoreVersion_ is a plugin for the open-source
_checkStoreVersion_ is a plugin for the open-source
web publishing software called Dotclear.
This plugin check official or third-party repositories of installed plugins or themes
@ -17,14 +17,17 @@ This plugin check official or third-party repositories of installed plugins or t
## REQUIREMENTS
_CheckStoreVersion_ requires:
_checkStoreVersion_ requires:
* superadmin permissions
* Dotclear 2.25
* Dotclear 2.25 to 2.26.1
* PHP 7.4+
Current release check plugins and themes Dotclear minimum versions > 2.26.1.
## USAGE
First install _CheckStoreVersion_, manualy from a zip package or from
First install _checkStoreVersion_, manualy from a zip package or from
Dotaddict repository. (See Dotclear's documentation to know how do this)
Check installed plugins or themes from tab "store version" on plugins/themes page.
@ -32,8 +35,8 @@ Check installed plugins or themes from tab "store version" on plugins/themes pag
## LINKS
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/checkStoreVersion)
* Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/checkStoreVersion) or [GitHub Page](https://github.com/JcDenis/checkStoreVersion)
* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/checkStoreVersion/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/checkStoreVersion)
## CONTRIBUTORS

View File

@ -18,13 +18,13 @@ $this->registerModule(
'Check store version',
'Check plugins and themes available version before update',
'Jean-Christian Denis and Contributors',
'0.3.1',
'0.4',
[
'requires' => [['core', '2.25']],
'permissions' => null,
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/checkStoreVersion',
'details' => 'https://plugins.dotaddict.org/dc2/details/checkStoreVersion',
'repository' => 'https://raw.githubusercontent.com/JcDenis/checkStoreVersion/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',
]
);

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="checkStoreVersion">
<name>Check store version</name>
<version>0.3.1</version>
<version>0.4</version>
<author>Jean-Christian Denis and Contributors</author>
<desc>Check plugins and themes available version before update</desc>
<file>https://github.com/JcDenis/checkStoreVersion/releases/download/v0.3.1/plugin-checkStoreVersion.zip</file>
<file>https://gitea.dotclear.watch/JcDenis/checkStoreVersion/releases/download/v0.4/plugin-checkStoreVersion.zip</file>
<da:dcmin>2.25</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/checkStoreVersion</da:details>
<da:support>https://github.com/JcDenis/checkStoreVersion</da:support>
<da:details>https://git.dotclear.watch/JcDenis/checkStoreVersion/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/checkStoreVersion/issues</da:support>
</module>
</modules>

View File

@ -22,7 +22,6 @@ class Backend extends dcNsProcess
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN')
&& !is_null(dcCore::app()->auth) // nullsafe PHP < 8.0
&& dcCore::app()->auth->isSuperAdmin();
return static::$init;

View File

@ -26,22 +26,12 @@ class BackendBehaviors
# admin plugins page tab
public static function pluginsTabs(): void
{
// nullsafe PHP < 8.0
if (is_null(dcCore::app()->adminurl)) {
return;
}
self::modulesToolsTabs(dcCore::app()->plugins, explode(',', DC_DISTRIB_PLUGINS), dcCore::app()->adminurl->get('admin.plugins'));
}
# admin themes page tab
public static function themesTabs(): void
{
// nullsafe PHP < 8.0
if (is_null(dcCore::app()->adminurl)) {
return;
}
self::modulesToolsTabs(dcCore::app()->themes, explode(',', DC_DISTRIB_THEMES), dcCore::app()->adminurl->get('admin.blog.theme'));
}

View File

@ -16,5 +16,5 @@ namespace Dotclear\Plugin\checkStoreVersion;
class My
{
public const DC_MAX = '2.26';
public const DC_MAX = '2.26.1';
}