Merge pull request #147 from php-flasher/fix/flasher-styles

fix: loading flasher styles correctly
This commit is contained in:
Younes KHOUBZA
2023-06-06 12:28:07 +02:00
committed by GitHub
42 changed files with 80 additions and 72 deletions
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-cli": "^1.15",
"php-flasher/flasher-laravel": "^1.15"
"php-flasher/flasher-cli": "^1.15.1",
"php-flasher/flasher-laravel": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+1 -1
View File
@@ -38,7 +38,7 @@
"require": {
"php": ">=5.3",
"ext-mbstring": "*",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-cli": "^1.15",
"php-flasher/flasher-symfony": "^1.15"
"php-flasher/flasher-cli": "^1.15.1",
"php-flasher/flasher-symfony": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -50,7 +50,7 @@ return array(
| field of this option.
*/
'root_script' => array(
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js',
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js',
'local' => '/vendor/flasher/flasher.min.js',
),
@@ -70,7 +70,7 @@ return array(
| the stylesheet file in the 'local' field of this option.
*/
'styles' => array(
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css',
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css',
'local' => '/vendor/flasher/flasher.min.css',
),
+1 -1
View File
@@ -38,7 +38,7 @@
"require": {
"php": ">=5.3",
"illuminate/support": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -8,7 +8,7 @@
return array(
'scripts' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js',
),
'local' => array(
'/vendor/flasher/flasher-noty.min.js',
@@ -16,7 +16,7 @@ return array(
),
'styles' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css',
),
'local' => array(
'/vendor/flasher/flasher-noty.min.css',
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-laravel": "^1.15",
"php-flasher/flasher-noty": "^1.15"
"php-flasher/flasher-laravel": "^1.15.1",
"php-flasher/flasher-noty": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -18,7 +18,7 @@ class NotyPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js',
),
'local' => array(
'/vendor/flasher/flasher-noty.min.js',
@@ -33,7 +33,7 @@ class NotyPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css',
),
'local' => array(
'/vendor/flasher/flasher-noty.min.css',
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -1,12 +1,12 @@
flasher_noty:
scripts:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.js'
local:
- '/vendor/flasher/flasher-noty.min.js'
styles:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.0/dist/flasher-noty.min.css'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-noty@1.3.1/dist/flasher-noty.min.css'
local:
- '/vendor/flasher/flasher-noty.min.css'
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-noty": "^1.15",
"php-flasher/flasher-symfony": "^1.15"
"php-flasher/flasher-noty": "^1.15.1",
"php-flasher/flasher-symfony": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -8,7 +8,7 @@
return array(
'scripts' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js',
),
'local' => array(
'/vendor/flasher/flasher-notyf.min.js',
@@ -16,7 +16,7 @@ return array(
),
'styles' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css',
),
'local' => array(
'/vendor/flasher/flasher-notyf.min.css',
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-laravel": "^1.15",
"php-flasher/flasher-notyf": "^1.15"
"php-flasher/flasher-laravel": "^1.15.1",
"php-flasher/flasher-notyf": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -18,7 +18,7 @@ class NotyfPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js',
),
'local' => array(
'/vendor/flasher/flasher-notyf.min.js',
@@ -33,7 +33,7 @@ class NotyfPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css',
),
'local' => array(
'/vendor/flasher/flasher-notyf.min.css',
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -1,11 +1,11 @@
flasher_notyf:
scripts:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.js'
local:
- '/vendor/flasher/flasher-notyf.min.js'
styles:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.0/dist/flasher-notyf.min.css'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-notyf@1.3.1/dist/flasher-notyf.min.css'
local:
- '/vendor/flasher/flasher-notyf.min.css'
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-notyf": "^1.15",
"php-flasher/flasher-symfony": "^1.15"
"php-flasher/flasher-notyf": "^1.15.1",
"php-flasher/flasher-symfony": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -8,7 +8,7 @@
return array(
'scripts' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js',
),
'local' => array(
'/vendor/flasher/flasher-pnotify.min.js',
@@ -16,7 +16,7 @@ return array(
),
'styles' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css',
),
'local' => array(
'/vendor/flasher/flasher-pnotify.min.css',
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-laravel": "^1.15",
"php-flasher/flasher-pnotify": "^1.15"
"php-flasher/flasher-laravel": "^1.15.1",
"php-flasher/flasher-pnotify": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -18,7 +18,7 @@ class PnotifyPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js',
),
'local' => array(
'/vendor/flasher/flasher-pnotify.min.js',
@@ -33,7 +33,7 @@ class PnotifyPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css',
),
'local' => array(
'/vendor/flasher/flasher-pnotify.min.css',
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -1,12 +1,12 @@
flasher_pnotify:
scripts:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.js'
local:
- '/vendor/flasher/flasher-pnotify.min.js'
styles:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.0/dist/flasher-pnotify.min.css'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-pnotify@1.3.1/dist/flasher-pnotify.min.css'
local:
- '/vendor/flasher/flasher-pnotify.min.css'
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-pnotify": "^1.15",
"php-flasher/flasher-symfony": "^1.15"
"php-flasher/flasher-pnotify": "^1.15.1",
"php-flasher/flasher-symfony": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+4 -2
View File
@@ -45,7 +45,7 @@ final class FlasherPlugin extends Plugin
public function getRootScript()
{
return array(
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js',
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js',
'local' => '/vendor/flasher/flasher.min.js',
);
}
@@ -67,7 +67,7 @@ final class FlasherPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css',
),
'local' => array(
'/vendor/flasher/flasher.min.css',
@@ -106,6 +106,8 @@ final class FlasherPlugin extends Plugin
return array_merge(array(
'default' => $this->getDefault(),
'root_script' => $this->getRootScript(),
'scripts' => array(),
'styles' => $this->getStyles(),
'options' => array(),
'use_cdn' => true,
'auto_translate' => true,
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -8,7 +8,7 @@
return array(
'scripts' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js',
),
'local' => array(
'/vendor/flasher/flasher-sweetalert.min.js',
@@ -16,7 +16,7 @@ return array(
),
'styles' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.css',
),
'local' => array(
'/vendor/flasher/flasher-sweetalert.min.css',
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-laravel": "^1.15",
"php-flasher/flasher-sweetalert": "^1.15"
"php-flasher/flasher-laravel": "^1.15.1",
"php-flasher/flasher-sweetalert": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -23,7 +23,7 @@ class SweetAlertPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js',
),
'local' => array(
'/vendor/flasher/flasher-sweetalert.min.js',
@@ -38,7 +38,7 @@ class SweetAlertPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.css',
),
'local' => array(
'/vendor/flasher/flasher-sweetalert.min.css',
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -1,6 +1,6 @@
flasher_sweetalert:
scripts:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.0/dist/flasher-sweetalert.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-sweetalert@1.3.1/dist/flasher-sweetalert.min.js'
local:
- '/vendor/flasher/flasher-sweetalert.min.js'
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-sweetalert": "^1.15",
"php-flasher/flasher-symfony": "^1.15"
"php-flasher/flasher-sweetalert": "^1.15.1",
"php-flasher/flasher-symfony": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -47,6 +47,7 @@ final class Configuration implements ConfigurationInterface
->end()
->arrayNode('styles')
->prototype('variable')->end()
->defaultValue($plugin->getStyles())
->end()
->arrayNode('options')
->prototype('scalar')->end()
+2 -2
View File
@@ -41,7 +41,7 @@ flasher:
# field of this option.
#
root_script:
cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js'
cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js'
local: '/vendor/flasher/flasher.min.js'
# --------------------------------------------------------------------------
@@ -59,7 +59,7 @@ flasher:
# the stylesheet file in the 'local' field of this option.
#
styles:
cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.css'
cdn: 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css'
local: '/vendor/flasher/flasher.min.css'
# --------------------------------------------------------------------------
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15",
"php-flasher/flasher": "^1.15.1",
"symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
+2 -2
View File
@@ -9,7 +9,7 @@ return array(
'scripts' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js',
),
'local' => array(
'/vendor/flasher/jquery.min.js',
@@ -18,7 +18,7 @@ return array(
),
'styles' => array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css',
),
'local' => array(
'/vendor/flasher/flasher-toastr.min.css',
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-laravel": "^1.15",
"php-flasher/flasher-toastr": "^1.15"
"php-flasher/flasher-laravel": "^1.15.1",
"php-flasher/flasher-toastr": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+2 -2
View File
@@ -19,7 +19,7 @@ class ToastrPlugin extends Plugin
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js',
),
'local' => array(
'/vendor/flasher/jquery.min.js',
@@ -35,7 +35,7 @@ class ToastrPlugin extends Plugin
{
return array(
'cdn' => array(
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css',
'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css',
),
'local' => array(
'/vendor/flasher/flasher-toastr.min.css',
+1 -1
View File
@@ -37,7 +37,7 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher": "^1.15"
"php-flasher/flasher": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
@@ -2,13 +2,13 @@ flasher_toastr:
scripts:
cdn:
- 'https://cdn.jsdelivr.net/npm/jquery@3.6.3/dist/jquery.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.js'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.js'
local:
- '/vendor/flasher/jquery.min.js'
- '/vendor/flasher/flasher-toastr.min.js'
styles:
cdn:
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.0/dist/flasher-toastr.min.css'
- 'https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@1.3.1/dist/flasher-toastr.min.css'
local:
- '/vendor/flasher/flasher-toastr.min.css'
+2 -2
View File
@@ -37,8 +37,8 @@
"homepage": "https://php-flasher.io",
"require": {
"php": ">=5.3",
"php-flasher/flasher-symfony": "^1.15",
"php-flasher/flasher-toastr": "^1.15"
"php-flasher/flasher-symfony": "^1.15.1",
"php-flasher/flasher-toastr": "^1.15.1"
},
"minimum-stability": "stable",
"prefer-stable": true,
+8 -3
View File
@@ -46,7 +46,7 @@ class FlasherPluginTest extends TestCase
{
$plugin = new FlasherPlugin();
$rootScript = array(
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js',
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js',
'local' => '/vendor/flasher/flasher.min.js',
);
@@ -60,7 +60,7 @@ class FlasherPluginTest extends TestCase
{
$plugin = new FlasherPlugin();
$scripts = array(
'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js'),
'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js'),
'local' => array('/vendor/flasher/flasher.min.js'),
);
@@ -103,9 +103,14 @@ class FlasherPluginTest extends TestCase
$config = array(
'default' => 'flasher',
'root_script' => array(
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.0/dist/flasher.min.js',
'cdn' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.js',
'local' => '/vendor/flasher/flasher.min.js',
),
'scripts' => array(),
'styles' => array(
'cdn' => array('https://cdn.jsdelivr.net/npm/@flasher/flasher@1.3.1/dist/flasher.min.css'),
'local' => array('/vendor/flasher/flasher.min.css'),
),
'options' => array(),
'use_cdn' => true,
'auto_translate' => true,