Skip to content

Commit

Permalink
Merge tag 'v2.4.13' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexusmai committed Mar 7, 2020
2 parents 7016f73 + c5425e0 commit 52897d9
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 12 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

**Vue.js Frontend:** [alexusmai/vue-laravel-file-manager](https://github.com/alexusmai/vue-laravel-file-manager)

**--- Laravel 7 support added but not fully tested!! ---**

## Documentation

[Laravel File Manager Docs](./docs/index.md)
Expand Down Expand Up @@ -64,7 +66,7 @@
* Events (v2.2)
* Thumbnails lazy load
* Dynamic configuration (v2.4)
* Supported locales : ru, en, ar, sr, cs, de, es, nl, zh-CN, fa, it, tr
* Supported locales : ru, en, ar, sr, cs, de, es, nl, zh-CN, fa, it, tr, fr, pt_BR

## In a new version 2.4

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"php": ">=7.1.0",
"ext-zip": "*",
"ext-json": "*",
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*|^6.0",
"laravel/framework": "^5.5|^6.0|^7.0",
"league/flysystem": "^1.0",
"intervention/image": "^2.4",
"intervention/imagecache": "^2.3"
Expand Down
14 changes: 14 additions & 0 deletions docs/events.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Events

### BeforeInitialization

> Alexusmai\LaravelFileManager\Events\DBeforeInitialization
Example:

```php
\Event::listen('Alexusmai\LaravelFileManager\Events\BeforeInitialization',
function ($event) {

}
);
```

### DiskSelected

> Alexusmai\LaravelFileManager\Events\DiskSelected
Expand Down
4 changes: 2 additions & 2 deletions resources/views/ckeditor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>{{ config('app.name', 'File Manager') }}</title>

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css">
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/fmButton.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>{{ config('app.name', 'File Manager') }}</title>

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css">
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/summernote.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>{{ config('app.name', 'File Manager') }}</title>

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css">
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/tinymce.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>{{ config('app.name', 'File Manager') }}</title>

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css">
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet">
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/tinymce5.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<title>{{ config('app.name', 'File Manager') }}</title>

<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css">
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet">
</head>
<body>
Expand Down
3 changes: 3 additions & 0 deletions src/Controllers/FileManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Alexusmai\LaravelFileManager\Controllers;

use Alexusmai\LaravelFileManager\Events\BeforeInitialization;
use Alexusmai\LaravelFileManager\Events\Deleting;
use Alexusmai\LaravelFileManager\Events\DirectoryCreated;
use Alexusmai\LaravelFileManager\Events\DirectoryCreating;
Expand Down Expand Up @@ -44,6 +45,8 @@ public function __construct(FileManager $fm)
*/
public function initialize()
{
event(new BeforeInitialization());

return response()->json(
$this->fm->initialize()
);
Expand Down
14 changes: 14 additions & 0 deletions src/Events/BeforeInitialization.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Alexusmai\LaravelFileManager\Events;

class BeforeInitialization
{
/**
* BeforeInitialization constructor.
*/
public function __construct()
{

}
}

0 comments on commit 52897d9

Please sign in to comment.