static files

This commit is contained in:
Edward Yang 2022-07-08 14:12:57 +08:00
parent bbadce27ea
commit ff715581ad
9 changed files with 4 additions and 11 deletions

3
.gitignore vendored
View File

@ -1,6 +1,8 @@
/node_modules
/public/hot
/public/storage
/public/beike
/public/plugin
/storage/*.key
/vendor
.env
@ -15,5 +17,4 @@ yarn-error.log
/.vscode
mix-manifest.json
package-lock.json
public/beike
beike/node_modules

View File

@ -51,9 +51,9 @@ class PluginRepo
{
$code = $bPlugin->code;
$path = $bPlugin->getPath();
$staticPath = $path . DIRECTORY_SEPARATOR . 'static';
$staticPath = $path . '/static';
if (is_dir($staticPath)) {
\Illuminate\Support\Facades\File::copyDirectory($staticPath, public_path($code));
\Illuminate\Support\Facades\File::copyDirectory($staticPath, public_path('plugin/' . $code));
}
}

View File

@ -1,4 +0,0 @@
/**
这里是插件css, 请在blade里面使用以下代码引入
<link rel="stylesheet" href="{{ asset('bk_stripe/css/demo.css') }}">
*/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,4 +0,0 @@
/**
* 这里是插件js, 请在blade里面使用以下代码引入
* <script src="{{ asset('bk_stripe/js/demo.js') }}"></script>
*/