Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Language/database/seeders/68334/FileManager.tar
Назад
lang/.gitkeep 0000644 00000000000 15012235265 0007105 0 ustar 00 devNotes.md 0000644 00000002265 15012235265 0006663 0 ustar 00 ## 01: Create a button, input, and image preview holder if you are going to choose images. Specify the id to the input and image preview by data-input and data-preview. ```` <div class="input-group"> <span class="input-group-btn"> <a id="lfm" data-input="thumbnail" data-preview="holder" class="btn btn-primary"> <i class="fa fa-picture-o"></i> Choose </a> </span> <input id="thumbnail" class="form-control" type="text" name="filepath"> </div> <div id="holder" style="margin-top:15px;max-height:100px;"></div> ```` ## 02: Import lfm.js(run php artisan vendor:publish if you need). ```` <script src="/vendor/laravel-filemanager/js/stand-alone-button.js"></script> ```` ## 03: Init filemanager with type. (requires jQuery) ```` $('#lfm').filemanager('image'); ```` #### OR ```` $('#lfm').filemanager('file'); ```` ## 04: Domain can be specified in the second parameter(optional, but will be required when developing on Windows mechines) : ```` var route_prefix = "url-to-filemanager"; $('#lfm').filemanager('image', {prefix: route_prefix}); ```` #### example ```` var route_prefix = 'admin/file-manager'; $('#lfm').filemanager('image',{prefix: route_prefix}); ```` module.json 0000644 00000000356 15012235265 0006731 0 ustar 00 { "name": "FileManager", "alias": "filemanager", "description": "", "keywords": [], "priority": 0, "providers": [ "Modules\\FileManager\\app\\Providers\\FileManagerServiceProvider" ], "files": [] } tests/Unit/.gitkeep 0000644 00000000000 15012235265 0010245 0 ustar 00 tests/Feature/.gitkeep 0000644 00000000000 15012235265 0010721 0 ustar 00 vite.config.js 0000644 00000001314 15012235265 0007315 0 ustar 00 import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; export default defineConfig({ build: { outDir: '../../public/build-filemanager', emptyOutDir: true, manifest: true, }, plugins: [ laravel({ publicDirectory: '../../public', buildDirectory: 'build-filemanager', input: [ __dirname + '/resources/assets/sass/app.scss', __dirname + '/resources/assets/js/app.js' ], refresh: true, }), ], }); //export const paths = [ // 'Modules/$STUDLY_NAME$/resources/assets/sass/app.scss', // 'Modules/$STUDLY_NAME$/resources/assets/js/app.js', //]; wsus.json 0000644 00000000633 15012235265 0006443 0 ustar 00 { "name": "File Manager Addon", "is_default": true, "description": "This is File Manager Addon", "author": { "name": "Websolutionsus", "email": "websolutionus1@gmail.com", "website": "https://websolutionus.com" }, "license": "Proprietary", "url": "", "options" : { "route" : "home" }, "last_update": "2024-05-01", "version": "1.0.0" } routes/.gitkeep 0000644 00000000000 15012235265 0007505 0 ustar 00 routes/web.php 0000644 00000001222 15012235265 0007351 0 ustar 00 <?php use Illuminate\Support\Facades\Route; use Modules\FileManager\app\Http\Controllers\FileManagerController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::group(['prefix' => 'admin/file-manager','middleware' => ['auth:admin', 'translation']], function () { \UniSharp\LaravelFilemanager\Lfm::routes(); }); routes/api.php 0000644 00000000215 15012235265 0007346 0 ustar 00 <?php use Illuminate\Support\Facades\Route; Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () { }); composer.json 0000644 00000001512 15012235265 0007266 0 ustar 00 { "name": "nwidart/filemanager", "description": "", "authors": [ { "name": "Nicolas Widart", "email": "n.widart@gmail.com" } ], "extra": { "laravel": { "providers": [], "aliases": { } } }, "autoload": { "psr-4": { "Modules\\FileManager\\": "", "Modules\\FileManager\\App\\": "app/", "Modules\\FileManager\\Database\\Factories\\": "database/factories/", "Modules\\FileManager\\Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Modules\\FileManager\\Tests\\": "tests/" } }, "require": { "unisharp/laravel-filemanager": "^2.9", "intervention/image-laravel": "^1.2" } } config/config.php 0000644 00000000060 15012235265 0007764 0 ustar 00 <?php return [ 'name' => 'FileManager', ]; config/.gitkeep 0000644 00000000000 15012235265 0007431 0 ustar 00 package.json 0000644 00000000410 15012235265 0007026 0 ustar 00 { "private": true, "type": "module", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "axios": "^1.1.2", "laravel-vite-plugin": "^0.7.5", "sass": "^1.69.5", "postcss": "^8.3.7", "vite": "^4.0.0" } } app/Http/Controllers/FileManagerController.php 0000644 00000002363 15012235265 0015505 0 ustar 00 <?php namespace Modules\FileManager\app\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; class FileManagerController extends Controller { /** * Display a listing of the resource. */ public function index() { return view('filemanager::index'); } /** * Show the form for creating a new resource. */ public function create() { return view('filemanager::create'); } /** * Store a newly created resource in storage. */ public function store(Request $request): RedirectResponse { // } /** * Show the specified resource. */ public function show($id) { return view('filemanager::show'); } /** * Show the form for editing the specified resource. */ public function edit($id) { return view('filemanager::edit'); } /** * Update the specified resource in storage. */ public function update(Request $request, $id): RedirectResponse { // } /** * Remove the specified resource from storage. */ public function destroy($id) { // } } app/Http/Controllers/.gitkeep 0000644 00000000000 15012235265 0012171 0 ustar 00 app/Http/Requests/.gitkeep 0000644 00000000000 15012235265 0011476 0 ustar 00 app/Http/Middleware/.gitkeep 0000644 00000000000 15012235265 0011740 0 ustar 00 app/Models/.gitkeep 0000644 00000000000 15012235265 0010167 0 ustar 00 app/Providers/RouteServiceProvider.php 0000644 00000002703 15012235265 0014147 0 ustar 00 <?php namespace Modules\FileManager\app\Providers; use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * The module namespace to assume when generating URLs to actions. */ protected string $moduleNamespace = 'Modules\FileManager\app\Http\Controllers'; /** * Called before routes are registered. * * Register any model bindings or pattern based filters. */ public function boot(): void { parent::boot(); } /** * Define the routes for the application. */ public function map(): void { $this->mapApiRoutes(); $this->mapWebRoutes(); } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. */ protected function mapWebRoutes(): void { Route::middleware('web') ->namespace($this->moduleNamespace) ->group(module_path('FileManager', '/routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. */ protected function mapApiRoutes(): void { Route::prefix('api') ->middleware('api') ->namespace($this->moduleNamespace) ->group(module_path('FileManager', '/routes/api.php')); } } app/Providers/FileManagerServiceProvider.php 0000644 00000006462 15012235265 0015231 0 ustar 00 <?php namespace Modules\FileManager\app\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class FileManagerServiceProvider extends ServiceProvider { protected string $moduleName = 'FileManager'; protected string $moduleNameLower = 'filemanager'; /** * Boot the application events. */ public function boot(): void { $this->registerCommands(); $this->registerCommandSchedules(); $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); } /** * Register the service provider. */ public function register(): void { $this->app->register(RouteServiceProvider::class); } /** * Register commands in the format of Command::class */ protected function registerCommands(): void { // $this->commands([]); } /** * Register command Schedules. */ protected function registerCommandSchedules(): void { // $this->app->booted(function () { // $schedule = $this->app->make(Schedule::class); // $schedule->command('inspire')->hourly(); // }); } /** * Register translations. */ public function registerTranslations(): void { $langPath = resource_path('lang/modules/'.$this->moduleNameLower); if (is_dir($langPath)) { $this->loadTranslationsFrom($langPath, $this->moduleNameLower); $this->loadJsonTranslationsFrom($langPath); } else { $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); } } /** * Register config. */ protected function registerConfig(): void { $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); } /** * Register views. */ public function registerViews(): void { $viewPath = resource_path('views/modules/'.$this->moduleNameLower); $sourcePath = module_path($this->moduleName, 'resources/views'); $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.config('modules.paths.generator.component-class.path')); Blade::componentNamespace($componentNamespace, $this->moduleNameLower); } /** * Get the services provided by the provider. */ public function provides(): array { return []; } private function getPublishableViewPaths(): array { $paths = []; foreach (config('view.paths') as $path) { if (is_dir($path.'/modules/'.$this->moduleNameLower)) { $paths[] = $path.'/modules/'.$this->moduleNameLower; } } return $paths; } } app/Providers/.gitkeep 0000644 00000000000 15012235265 0010721 0 ustar 00 database/factories/.gitkeep 0000644 00000000000 15012235265 0011707 0 ustar 00 database/migrations/.gitkeep 0000644 00000000000 15012235265 0012104 0 ustar 00 database/seeders/.gitkeep 0000644 00000000000 15012235265 0011362 0 ustar 00 database/seeders/error_log 0000644 00000000542 15012235265 0011661 0 ustar 00 [08-May-2025 12:10:16 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Seeder" not found in /home/lekhnath/silverray.com.au/Modules/FileManager/database/seeders/FileManagerDatabaseSeeder.php:7 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/FileManager/database/seeders/FileManagerDatabaseSeeder.php on line 7 database/seeders/FileManagerDatabaseSeeder.php 0000644 00000000403 15012235265 0015400 0 ustar 00 <?php namespace Modules\FileManager\database\seeders; use Illuminate\Database\Seeder; class FileManagerDatabaseSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { // $this->call([]); } } resources/assets/.gitkeep 0000644 00000000000 15012235265 0011500 0 ustar 00 resources/assets/js/app.js 0000644 00000000000 15012235265 0011601 0 ustar 00 resources/assets/sass/app.scss 0000644 00000000000 15012235265 0012475 0 ustar 00 resources/views/.gitkeep 0000644 00000000000 15012235265 0011333 0 ustar 00
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка