generated from yii-tools/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
02f43fe
commit f124ad7
Showing
43 changed files
with
1,137 additions
and
46 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
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 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'yiisoft/aliases' => [ | ||
'aliases' => [ | ||
'@filepond-asset' => '@npm/filepond/dist', | ||
'@filepond-file-encode-plugin' => '@npm/filepond-plugin-file-encode/dist', | ||
'@filepond-file-rename-plugin' => '@npm/filepond-plugin-file-rename/dist', | ||
'@filepond-file-validate-size-plugin' => '@npm/filepond-plugin-file-validate-size/dist', | ||
'@filepond-file-validate-type-plugin' => '@npm/filepond-plugin-file-validate-type/dist', | ||
'@filepond-file-image-crop-plugin' => '@npm/filepond-plugin-image-crop/dist', | ||
'@filepond-image-exif-orientation-plugin' => '@npm/filepond-plugin-image-exif-orientation/dist', | ||
'@filepond-image-preview-plugin' => '@npm/filepond-plugin-image-preview/dist', | ||
'@filepond-image-transform-plugin' => '@npm/filepond-plugin-image-transform/dist', | ||
'@filepond-pdf-preview-plugin' => '@npm/filepond-plugin-pdf-preview/dist', | ||
], | ||
], | ||
]; |
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,17 @@ | ||
{ | ||
"name": "filepond-asset", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"filepond": "^4.30.4", | ||
"filepond-plugin-file-encode": "^2.1.10", | ||
"filepond-plugin-file-rename": "^1.1.8", | ||
"filepond-plugin-file-validate-size": "^2.2.8", | ||
"filepond-plugin-file-validate-type": "^1.2.8", | ||
"filepond-plugin-image-crop": "^2.0.6", | ||
"filepond-plugin-image-exif-orientation": "^1.0.11", | ||
"filepond-plugin-image-preview": "^4.6.11", | ||
"filepond-plugin-image-transform": "^3.8.7", | ||
"filepond-plugin-pdf-preview": "^1.0.4" | ||
}, | ||
"license": "mit" | ||
} |
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 was deleted.
Oops, something went wrong.
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,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yii\Assets\Js\FilePondEncodePlugin; | ||
use Yii\Assets\Js\FilePondImageExifOrientationPlugin; | ||
use Yii\Assets\Js\FilePondValidateSizePlugin; | ||
use Yii\Assets\Js\FilePondValidateTypePlugin; | ||
use Yiisoft\Assets\AssetBundle; | ||
use Yiisoft\Files\PathMatcher\PathMatcher; | ||
|
||
/** | ||
* Asset bundle for the filepond widget in development mode, mainly used for publishing assets. | ||
*/ | ||
final class FilePond extends AssetBundle | ||
{ | ||
public string|null $basePath = '@assets'; | ||
public string|null $baseUrl = '@assetsUrl'; | ||
public string|null $sourcePath = '@filepond-asset'; | ||
public array $css = ['filepond.css']; | ||
public array $js = ['filepond.js']; | ||
public array $depends = [ | ||
FilePondEncodePlugin::class, | ||
FilePondValidateSizePlugin::class, | ||
FilePondValidateTypePlugin::class, | ||
FilePondImageExifOrientationPlugin::class, | ||
FilePondImagePreviewPlugin::class, | ||
]; | ||
|
||
public function __construct() | ||
{ | ||
$pathMatcher = new PathMatcher(); | ||
|
||
$this->publishOptions = [ | ||
'filter' => $pathMatcher->only('**/filepond.css', '**/filepond.js'), | ||
]; | ||
} | ||
} |
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,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yii\Assets\Js\FilePondEncodePluginCdn; | ||
use Yii\Assets\Js\FilePondImageExifOrientationPluginCdn; | ||
use Yii\Assets\Js\FilePondValidateSizePluginCdn; | ||
use Yii\Assets\Js\FilePondValidateTypePluginCdn; | ||
use Yiisoft\Assets\AssetBundle; | ||
|
||
/** | ||
* Asset bundle for the filepond widget in content delivery network, mainly used for publishing assets. | ||
*/ | ||
final class FilePondCdn extends AssetBundle | ||
{ | ||
public bool $cdn = true; | ||
public array $css = ['https://unpkg.com/filepond@^4/dist/filepond.min.css']; | ||
public array $js = ['https://unpkg.com/filepond@^4/dist/filepond.min.js']; | ||
public array $depends = [ | ||
FilepondEncodePluginCdn::class, | ||
FilePondValidateSizePluginCdn::class, | ||
FilePondValidateTypePluginCdn::class, | ||
FilePondImageExifOrientationPluginCdn::class, | ||
FilePondImagePreviewPluginCdn::class, | ||
]; | ||
} |
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 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
use Yiisoft\Files\PathMatcher\PathMatcher; | ||
|
||
/** | ||
* Asset bundle for the filepond image preview plugin in development mode, mainly used for publishing assets. | ||
*/ | ||
final class FilePondImagePreviewPlugin extends AssetBundle | ||
{ | ||
public string|null $basePath = '@assets'; | ||
public string|null $baseUrl = '@assetsUrl'; | ||
public string|null $sourcePath = '@filepond-image-preview-plugin'; | ||
public array $css = ['filepond-plugin-image-preview.css']; | ||
public array $js = ['filepond-plugin-image-preview.js']; | ||
|
||
public function __construct() | ||
{ | ||
$pathMatcher = new PathMatcher(); | ||
|
||
$this->publishOptions = [ | ||
'filter' => $pathMatcher->only( | ||
'**/filepond-plugin-image-preview.css', | ||
'**/filepond-plugin-image-preview.js', | ||
), | ||
]; | ||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
|
||
/** | ||
* Asset bundle for the filepond image preview plugin in content delivery network (CDN) mode, mainly used for publishing | ||
* assets. | ||
*/ | ||
final class FilePondImagePreviewPluginCdn extends AssetBundle | ||
{ | ||
public bool $cdn = true; | ||
public array $css = ['https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css']; | ||
public array $js = ['https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.js']; | ||
} |
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 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
use Yiisoft\Files\PathMatcher\PathMatcher; | ||
|
||
/** | ||
* Asset bundle for the filepond image preview plugin in production mode, mainly used for publishing assets. | ||
*/ | ||
final class FilePondImagePreviewPluginProd extends AssetBundle | ||
{ | ||
public string|null $basePath = '@assets'; | ||
public string|null $baseUrl = '@assetsUrl'; | ||
public string|null $sourcePath = '@filepond-image-preview-plugin'; | ||
public array $css = ['filepond-plugin-image-preview.min.css']; | ||
public array $js = ['filepond-plugin-image-preview.min.js']; | ||
|
||
public function __construct() | ||
{ | ||
$pathMatcher = new PathMatcher(); | ||
|
||
$this->publishOptions = [ | ||
'filter' => $pathMatcher->only( | ||
'**/filepond-plugin-image-preview.min.css', | ||
'**/filepond-plugin-image-preview.min.js', | ||
), | ||
]; | ||
} | ||
} |
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,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
use Yiisoft\Files\PathMatcher\PathMatcher; | ||
|
||
/** | ||
* Asset bundle for the filepond pdf preview plugin in development mode, mainly used for publishing assets. | ||
*/ | ||
final class FilePondPdfPreviewPlugin extends AssetBundle | ||
{ | ||
public string|null $basePath = '@assets'; | ||
public string|null $baseUrl = '@assetsUrl'; | ||
public string|null $sourcePath = '@filepond-pdf-preview-plugin'; | ||
public array $css = ['filepond-plugin-pdf-preview.css']; | ||
public array $js = ['filepond-plugin-pdf-preview.js']; | ||
|
||
public function __construct() | ||
{ | ||
$pathMatcher = new PathMatcher(); | ||
|
||
$this->publishOptions = [ | ||
'filter' => $pathMatcher->only('**/filepond-plugin-pdf-preview.css', '**/filepond-plugin-pdf-preview.js'), | ||
]; | ||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
|
||
/** | ||
* Asset bundle for the filepond pdf preview plugin in content delivery network (CDN) mode, mainly used for publishing | ||
* assets. | ||
*/ | ||
final class FilePondPdfPreviewPluginCdn extends AssetBundle | ||
{ | ||
public bool $cdn = true; | ||
public array $css = ['https://unpkg.com/filepond-plugin-pdf-preview/dist/filepond-plugin-pdf-preview.min.css']; | ||
public array $js = ['https://unpkg.com/filepond-plugin-pdf-preview/dist/filepond-plugin-pdf-preview.min.js']; | ||
} |
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 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Assets; | ||
|
||
use Yiisoft\Assets\AssetBundle; | ||
use Yiisoft\Files\PathMatcher\PathMatcher; | ||
|
||
/** | ||
* Asset bundle for the filepond pdf preview plugin in production mode, mainly used for publishing assets. | ||
*/ | ||
final class FilePondPdfPreviewPluginProd extends AssetBundle | ||
{ | ||
public string|null $basePath = '@assets'; | ||
public string|null $baseUrl = '@assetsUrl'; | ||
public string|null $sourcePath = '@filepond-pdf-preview-plugin'; | ||
public array $css = ['filepond-plugin-pdf-preview.min.css']; | ||
public array $js = ['filepond-plugin-pdf-preview.min.js']; | ||
|
||
public function __construct() | ||
{ | ||
$pathMatcher = new PathMatcher(); | ||
|
||
$this->publishOptions = [ | ||
'filter' => $pathMatcher->only( | ||
'**/filepond-plugin-pdf-preview.min.css', | ||
'**/filepond-plugin-pdf-preview.min.js', | ||
), | ||
]; | ||
} | ||
} |
Oops, something went wrong.