diff --git a/.stylelintrc.js b/.stylelintrc.js new file mode 100644 index 0000000..c5f3b0a --- /dev/null +++ b/.stylelintrc.js @@ -0,0 +1,9 @@ +module.exports = { + extends: [ + '../../.stylelintrc.js' + ], + ignoreFiles: [ + 'node_modules/**/*', + 'vendor/**/*' + ], +}; diff --git a/.twig_cs.dist.php b/.twig_cs.dist.php index 09c925a..6041bcf 100644 --- a/.twig_cs.dist.php +++ b/.twig_cs.dist.php @@ -7,7 +7,7 @@ use Glpi\Tools\GlpiTwigRuleset; $finder = TemplateFinder::create() - ->in(__DIR__ . '/templates')->in(__DIR__ . '/templates/components') + ->in(__DIR__ . '/templates') ->name('*.html.twig') ->ignoreVCSIgnored(true); diff --git a/composer.lock b/composer.lock index 67aaead..5e79c42 100644 --- a/composer.lock +++ b/composer.lock @@ -118,16 +118,16 @@ }, { "name": "symfony/console", - "version": "v6.4.25", + "version": "v6.4.26", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "273fd29ff30ba0a88ca5fb83f7cf1ab69306adae" + "reference": "492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/273fd29ff30ba0a88ca5fb83f7cf1ab69306adae", - "reference": "273fd29ff30ba0a88ca5fb83f7cf1ab69306adae", + "url": "https://api.github.com/repos/symfony/console/zipball/492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f", + "reference": "492de6dfd93910d7d7a729c5a04ddcd2b9e99c4f", "shasum": "" }, "require": { @@ -192,7 +192,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.25" + "source": "https://github.com/symfony/console/tree/v6.4.26" }, "funding": [ { @@ -212,7 +212,7 @@ "type": "tidelift" } ], - "time": "2025-08-22T10:21:53+00:00" + "time": "2025-09-26T12:13:46+00:00" }, { "name": "symfony/deprecation-contracts", @@ -701,16 +701,16 @@ }, { "name": "symfony/string", - "version": "v7.3.3", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c" + "reference": "f96476035142921000338bad71e5247fbc138872" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/17a426cce5fd1f0901fefa9b2a490d0038fd3c9c", - "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c", + "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", + "reference": "f96476035142921000338bad71e5247fbc138872", "shasum": "" }, "require": { @@ -725,7 +725,6 @@ }, "require-dev": { "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", @@ -768,7 +767,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.3.3" + "source": "https://github.com/symfony/string/tree/v7.3.4" }, "funding": [ { @@ -788,7 +787,7 @@ "type": "tidelift" } ], - "time": "2025-08-25T06:35:40+00:00" + "time": "2025-09-11T14:36:48+00:00" }, { "name": "twig/twig", diff --git a/public/css/styles.css b/public/css/styles.css index 2e8e57c..c5d2c63 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -75,18 +75,18 @@ } .plugin_news_alert-toggle { - background-image: url(../pics/toggle_down.png); + background-image: url("../pics/toggle_down.png"); width: 16px; height: 16px; cursor: pointer; - opacity: .5; position: absolute; top: 3px; right: 0; opacity: .5; } + .expanded .plugin_news_alert-toggle { - background-image: url(../pics/toggle_up.png); + background-image: url("../pics/toggle_up.png"); } .plugin_news_alert-visibility { diff --git a/rector.php b/rector.php index e4c2568..b3d80aa 100644 --- a/rector.php +++ b/rector.php @@ -23,10 +23,8 @@ * along with News. If not, see . * ------------------------------------------------------------------------- * @copyright Copyright (C) 2015-2023 by News plugin team. - * @copyright Copyright (C) 2018-2023 by Metabase plugin team. * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/pluginsGLPI/news - * @link https://github.com/pluginsGLPI/metabase * ------------------------------------------------------------------------- */ @@ -47,7 +45,7 @@ ->withPhpVersion(PhpVersion::PHP_82) ->withCache( cacheClass: FileCacheStorage::class, - cacheDirectory: sys_get_temp_dir() . '/metabase-rector', + cacheDirectory: sys_get_temp_dir() . '/news-rector', ) ->withRootFiles() ->withParallel(timeoutSeconds: 300)