Skip to content

Commit

Permalink
Merge branch 'nova4' of github.com:clevyr/nova-filemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
gvinson committed May 17, 2022
2 parents ffbdff5 + 24d0e4b commit 96c744a
Show file tree
Hide file tree
Showing 54 changed files with 74,505 additions and 230,420 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
vendor/
.idea/
.DS_Store
node_modules/
136 changes: 16 additions & 120 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# Clevyr Nova Filemanager
# Filemanager tool for Laravel Nova 4

A Filemanager Tool and Field for Laravel Nova 4

##### Filemanager Tool preview

![FileManager Tool](https://user-images.githubusercontent.com/42798230/44862985-d3d57b80-ac73-11e8-9169-2e76a3584ea4.gif)

##### Filemanager Field preview

![FileManager Field](https://user-images.githubusercontent.com/42798230/44864362-5f9cd700-ac77-11e8-9e0f-330d18a81598.gif)

## Clevyr Nova Filemanager

This package will be maintained and updated by Clevyr going forward. This package is currently compatible with Nova 3 and Laravel 9.

Read the full docs at https://infinetyes.github.io/Nova-Filemanager/
### Docs
Forked from https://github.com/stepanenko3/nova-filemanager, which is a fork of https://github.
com/InfinetyEs/Nova-Filemanager/

## Installation
```
Expand All @@ -24,121 +38,3 @@ public function tools()
];
}
```

## Config File
```
return [
/*
|--------------------------------------------------------------------------
| Filemanager Disk
|--------------------------------------------------------------------------
| This is the storage disk FileManager will use to put file uploads, you can use
| any of the disks defined in your config/filesystems.php file. Default to public.
*/
'disk' => env('FILEMANAGER_DISK', 'public'),
/*
|--------------------------------------------------------------------------
| Filemanager default order
|--------------------------------------------------------------------------
| This will set the default order of the files and folders.
| You can use mime, name or size. Default to mime
*/
'order' => env('FILEMANAGER_ORDER', 'mime'),
/*
|--------------------------------------------------------------------------
| Filemanager default order direction
|--------------------------------------------------------------------------
| This will set the default order direction of the files and folders.
| You can use asc or desc. Default to asc
*/
'direction' => env('FILEMANAGER_DIRECTION', 'asc'),
/*
|--------------------------------------------------------------------------
| Filemanager cache
|--------------------------------------------------------------------------
| This will set the cache of filemenager. Filemanager creates a md5 using file
| info. This is useful when s3 is being used or when needs to read a lot of files.
| Cache is set by file, not by folder. Default to false.
*/
'cache' => env('FILEMANAGER_CACHE', false),
/*
|--------------------------------------------------------------------------
| Configurable buttons
|--------------------------------------------------------------------------
| This will hide or show filemanager buttons. You can enable o disable buttons
| as your own needs. True means visible. False hidden.
*/
'buttons' => [
// Menu
'create_folder' => true,
'upload_button' => true,
'select_multiple' => true,
// Folders
'rename_folder' => true,
'delete_folder' => true,
// Files
'rename_file' => true,
'delete_file' => true,
],
/*
|--------------------------------------------------------------------------
| Filemanager filters
|--------------------------------------------------------------------------
| This option let you to filter your files by extensions.
| You can create|modify|delete as you want.
*/
'filters' => [
'Images' => ['jpg', 'jpeg', 'png', 'gif', 'svg', 'bmp', 'tiff'],
'Documents' => ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pps', 'pptx', 'odt', 'rtf', 'md', 'txt', 'css'],
'Videos' => ['mp4', 'avi', 'mov', 'mkv', 'wmv', 'flv', '3gp', 'h264'],
'Audios' => ['mp3', 'ogg', 'wav', 'wma', 'midi'],
'Compressed' => ['zip', 'rar', 'tar', 'gz', '7z', 'pkg'],
],
/*
|--------------------------------------------------------------------------
| Filemanager default filter
|--------------------------------------------------------------------------
| This will set the default filter for all your Filemanager. You should use one
| of the keys used in filters in lowercase. If you have a key called Documents,
| use 'documents' as your default filter. Default to false
*/
'filter' => false,
/*
|--------------------------------------------------------------------------
| Naming strategy
|--------------------------------------------------------------------------
| Resolve the upload file name with a class that extends
| Infinety\Filemanager\Http\Services\AbstractNamingStrategy
*/
'naming' => Clevyr\Filemanager\Http\Services\DefaultNamingStrategy::class,
/*
|--------------------------------------------------------------------------
| Post Processing jobs of files
|--------------------------------------------------------------------------
| You can set post upload jobs for each file uploaded. You should use one
| of the keys used in filters in lowercase. If you have a key called Documents,
| use 'documents' as your default filter.
*/
'jobs' => [],
];
```
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@
"role": "Developer"
}
],
"require": {
"php": ">=7.1.0",
"laravel/nova": "~2.0|~3.0"
},
"require-dev": {
"orchestra/testbench": "^3.6",
"phpunit/phpunit": "7.1"
},
"require": {
"php": ">=7.1.0",
"laravel/nova": "^4.0"
},
"repositories": [
{
"type": "path",
"url": "../vendor/laravel/nova"
}
],
"autoload": {
"psr-4": {
"Clevyr\\Filemanager\\": "src/"
Expand All @@ -46,7 +52,7 @@
"extra": {
"laravel": {
"providers": [
"Clevyr\\Filemanager\\FilemanagerServiceProvider"
"Clevyr\\Filemanager\\ToolServiceProvider"
]
}
},
Expand Down
Loading

0 comments on commit 96c744a

Please sign in to comment.