Skip to content

Commit 1a71a57

Browse files
committed
use files instead of bower
1 parent a3f3a5b commit 1a71a57

File tree

10 files changed

+386
-28
lines changed

10 files changed

+386
-28
lines changed

composer.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
"require": {
1818
"yiisoft/yii2": "*",
1919
"dmstr/yii2-filefly-module" : "^1.1.0",
20-
"bower-asset/angularjs": "~1.5.0",
21-
"bower-asset/angular-sanitize": "~1.5.0",
22-
"bower-asset/angular-translate": "~2.9.1",
23-
"bower-asset/bootstrap": "^3.3.0",
24-
"bower-asset/ng-file-upload": "^12.0.1",
25-
"bower-asset/ngclipboard": "^1.1.1",
2620
"kartik-v/yii2-widget-select2": "^2.0.0",
2721
"rmrevin/yii2-fontawesome": "~2.9",
2822
"yii2assets/yii2-fullscreen-modal": "^1.0.2"

src/assets/AfmBowerAsset.php

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,29 @@
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
88
*/
9+
910
namespace hrzg\filemanager\assets;
1011

11-
use yii\helpers\FileHelper;
1212
use yii\web\AssetBundle;
1313
use yii\web\View;
1414

1515
/**
1616
* Class AfmBowerAsset
17+
*
1718
* @package hrzg\filemanager\assets
1819
* @author Christopher Stebe <c.stebe@herzogkommunikation.de>
1920
*/
2021
class AfmBowerAsset extends AssetBundle
2122
{
22-
public $sourcePath = '@bower';
23-
24-
public $css = [];
23+
public $sourcePath = __DIR__ . 'bower/angular';
2524

2625
public $js = [
27-
'angular/angular.min.js',
28-
'angular-sanitize/angular-sanitize.min.js',
29-
'angular-translate/angular-translate.min.js',
30-
'ng-file-upload/ng-file-upload.min.js',
31-
'clipboard/dist/clipboard.min.js',
32-
'ngclipboard/dist/ngclipboard.js',
33-
];
34-
35-
public $publishOptions = [
36-
'only' => [
37-
'angular/*',
38-
'angular-sanitize/*',
39-
'angular-translate/*',
40-
'ng-file-upload/*',
41-
'clipboard/dist/*',
42-
'ngclipboard/dist/*',
43-
]
26+
'angular.min.js',
27+
'angular-sanitize.min.js',
28+
'angular-translate.min.js',
29+
'ng-file-upload.min.js',
30+
'clipboard.min.js',
31+
'ngclipboard.js',
4432
];
4533

4634
public $jsOptions = [
@@ -49,7 +37,7 @@ class AfmBowerAsset extends AssetBundle
4937

5038
public $depends = [
5139
'yii\bootstrap\BootstrapPluginAsset',
52-
'yii\web\YiiAsset',
40+
'yii\web\YiiAsset'
5341
];
5442

5543
}

src/assets/bower/angular/angular-sanitize.min.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/bower/angular/angular-sanitize.min.js.map

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/bower/angular/angular-translate.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)