Skip to content

Commit 2ba4739

Browse files
committed
Bassets fully working
1 parent d11b318 commit 2ba4739

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ body #elfinder.ui-widget-content {
9999

100100
/* contextmenu */
101101
.elfinder-contextmenu .ui-state-hover { background: #3875d7; color:#fff; }
102-
.elfinder-contextmenu .ui-state-hover .elfinder-contextmenu-arrow { background-image:url('../img/arrows-active.png'); }
102+
/* .elfinder-contextmenu .ui-state-hover .elfinder-contextmenu-arrow { background-image:url('../img/arrows-active.png'); } */
103103

104104
/* jquery-ui overwrites */
105105
.ui-widget-header {
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
<!-- jQuery and jQuery UI (REQUIRED) -->
2-
@basset("https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css")
1+
{{-- jQuery (REQUIRED) --}}
32
@if (!isset ($jquery) || (isset($jquery) && $jquery == true))
4-
@basset('https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js')
3+
@basset('https://unpkg.com/jquery@3.6.4/dist/jquery.min.js')
54
@endif
6-
@basset("https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js")
75

8-
<!-- elFinder JS (REQUIRED) -->
9-
{{-- <script src="{{ asset($dir.'/js/elfinder.min.js') }}"></script> --}}
10-
@basset('https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.61/js/elfinder.min.js', true, [
11-
'integrity' => 'sha512-8r9QT6jiymesvzLUgcWOBw2rh6lEPJNtv9D/NI7F5Tx85Ru29grtU++4uw4MEgG6eN0somSeOShMRKqlqn903A==',
12-
'crossorigin' => 'anonymous',
13-
'referrerpolicy' => 'no-referrer',
14-
])
6+
{{-- jQuery UI and Smoothness theme --}}
7+
@bassetArchive('https://github.com/jquery/jquery-ui/archive/refs/tags/1.13.2.zip', 'jquery-ui-1.13.2')
8+
@basset('jquery-ui-1.13.2/jquery-ui-1.13.2/dist/themes/smoothness/jquery-ui.min.css')
9+
@basset('jquery-ui-1.13.2/jquery-ui-1.13.2/dist/jquery-ui.min.js')
1510

11+
{{-- elFinder JS (REQUIRED) --}}
12+
@bassetArchive('https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.61.zip', 'elfinder-2.1.61')
13+
@basset('elfinder-2.1.61/elFinder-2.1.61/js/elfinder.min.js')
14+
15+
{{-- elFinder translation (OPTIONAL) --}}
1616
@if($locale)
17-
<!-- elFinder translation (OPTIONAL) -->
1817
@basset('https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.61/js/i18n/elfinder.'.$locale.'.min.js')
1918
@endif
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<meta charset="utf-8">
22
<title>File Manager</title>
33

4-
<!-- elFinder CSS (REQUIRED) -->
5-
@basset('https://cdnjs.cloudflare.com/ajax/libs/elfinder/2.1.61/css/elfinder.min.css', true, [
6-
'integrity' => 'sha512-lTCksRwjBNxxmDyOmXV9LctyJlF8bIo2AjwiYGLHPOPJqA4G3tArrQUNiW38BefA3WAH8VT/555p8teZSW18bA==',
7-
'crossorigin' => 'anonymous',
8-
'referrerpolicy' => 'no-referrer',
9-
])
4+
{{-- elFinder CSS (REQUIRED) --}}
5+
@bassetArchive('https://github.com/Studio-42/elFinder/archive/refs/tags/2.1.61.zip', 'elfinder-2.1.61')
6+
@basset('elfinder-2.1.61/elFinder-2.1.61/css/elfinder.min.css')
107

11-
@basset('packages/backpack/filemanager/themes/Backpack/elfinder.backpack.theme.css')
8+
{{-- elFinder Backpack Theme --}}
9+
@basset(base_path('vendor/backpack/filemanager/resources/assets/css/elfinder.backpack.theme.css'))

src/FileManagerServiceProvider.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class FileManagerServiceProvider extends ServiceProvider
1818
*/
1919
public function boot()
2020
{
21-
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'backpack');
2221
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'backpack');
2322

2423
// Publishing is only necessary when using the CLI.
@@ -39,14 +38,11 @@ protected function bootForConsole()
3938
__DIR__.'/../resources/views' => resource_path('views/vendor/elfinder'),
4039
], 'views');
4140

41+
// Publishing config file.
4242
$this->publishes([
43-
__DIR__.'/../config/elfinder.php' => config_path('elfinder.php'),
43+
__DIR__.'/../config/elfinder.php' => config_path('elfinder.php'),
4444
], 'config');
4545

46-
$this->publishes([
47-
__DIR__.'/../public/packages/backpack/filemanager/themes/Backpack' => public_path('packages/backpack/filemanager/themes/Backpack'),
48-
], 'public');
49-
5046
// Registering package commands.
5147
$this->commands($this->commands);
5248

0 commit comments

Comments
 (0)