generated from yii2-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be1da04
commit f4f4aa0
Showing
176 changed files
with
21,242 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- 'psalm.xml' | ||
|
||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
- '.gitignore' | ||
- '.gitattributes' | ||
- 'psalm.xml' | ||
|
||
name: mutation test | ||
|
||
jobs: | ||
mutation: | ||
uses: php-forge/actions/.github/workflows/roave-infection.yml@main | ||
secrets: | ||
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} | ||
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | ||
with: | ||
os: >- | ||
['ubuntu-latest'] | ||
php: >- | ||
['8.1'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"symbol-whitelist": [ | ||
"YII_ENV" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="1" | ||
resolveFromConfigFile="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="false" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
<issueHandlers> | ||
<MixedAssignment errorLevel="suppress" /> | ||
</issueHandlers> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii2\Extensions\Summernote\Asset; | ||
|
||
use Yii2\Asset\BootstrapPluginAsset; | ||
use Yii; | ||
use yii\web\AssetBundle; | ||
use yii\web\JqueryAsset; | ||
|
||
/** | ||
* Summernote CSS and JS bundle. | ||
*/ | ||
final class SummernoteAsset extends AssetBundle | ||
{ | ||
/** | ||
* @inheritDoc | ||
*/ | ||
public $sourcePath = __DIR__; | ||
|
||
/** | ||
* @inheritDoc | ||
* | ||
* @phpstan-var array<array-key, mixed> | ||
*/ | ||
public $depends = [ | ||
BootstrapPluginAsset::class, | ||
JqueryAsset::class, | ||
]; | ||
|
||
public function init(): void | ||
{ | ||
parent::init(); | ||
|
||
$language = Yii::$app->language; | ||
|
||
$assetCss = YII_ENV === 'prod' ? 'css/summernote-bs5.min.css' : 'css/summernote-bs5.css'; | ||
$assetJs = YII_ENV === 'prod' ? 'js/summernote-bs5.min.js' : 'js/summernote-bs5.js'; | ||
$assetLang = YII_ENV === 'prod' ? "lang/summernote-$language.min.js" : "lang/summernote-$language.js"; | ||
|
||
$this->css[] = $assetCss; | ||
$this->js[] = $assetJs; | ||
$this->js[] = $assetLang; | ||
|
||
$only = [ | ||
$assetCss, | ||
$assetJs, | ||
$assetLang, | ||
'css/font/*', | ||
'plugin/*/**', | ||
]; | ||
|
||
$only = array_merge( | ||
$only, | ||
YII_ENV === 'prod' | ||
? ['css/summernote-bs5.min.css.map', 'js/summernote-bs5.min.js.map'] : ["lang/summernote-$language.js.map"] | ||
); | ||
|
||
$this->publishOptions['only'] = $only; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9fe8a4284ea6542e5b857380d2288fbd |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.