From bb2b68507b3abf20cfbf036b87521b628d833f55 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sat, 24 Feb 2024 22:12:59 +0600 Subject: [PATCH 01/20] Added my name to the license. --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d08a830..0fce2f8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 kor-elf +Copyright (c) 2024 Leonid Nikitin (kor-elf) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: From e8e9e50162feae1695ed426a7f1316c613964e2f Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 2 Apr 2024 22:16:29 +0500 Subject: [PATCH 02/20] Installing Laravel. A simple application skeleton. --- .env.example | 9 + app/docker/.dockerignore | 6 + app/docker/Dockerfile | 117 + app/docker/docker-entrypoint_dev.sh | 103 + app/docker/docker-entrypoint_prod.sh | 111 + app/docker/unit-config.json | 69 + app/src/.editorconfig | 18 + app/src/.env.example | 69 + app/src/.gitattributes | 11 + app/src/.gitignore | 19 + app/src/README.md | 66 + .../app/Console/Commands/CreateUserAdmin.php | 94 + app/src/app/Contracts/FormRequestDto.php | 10 + app/src/app/Contracts/Search.php | 18 + app/src/app/Contracts/ServiceResult.php | 10 + app/src/app/Contracts/ServiceResultError.php | 12 + app/src/app/Dto/Builder/Role.php | 10 + app/src/app/Dto/Builder/User.php | 10 + app/src/app/Dto/QuerySettingsDto.php | 27 + app/src/app/Dto/Service/Admin/Role/Index.php | 24 + .../Dto/Service/Admin/Role/StoreUpdate.php | 29 + app/src/app/Dto/Service/Admin/User/Index.php | 24 + .../Dto/Service/Admin/User/StoreUpdate.php | 36 + app/src/app/Dto/Service/Authorization.php | 27 + app/src/app/Dto/Service/Dto.php | 8 + .../Dto/Service/Private/Profile/Update.php | 17 + .../Private/Profile/UpdateSettings.php | 24 + .../app/Dto/Service/User/UpdatePassword.php | 17 + app/src/app/Dto/User/ManyRoleDto.php | 32 + app/src/app/Enums/Lang.php | 46 + app/src/app/Enums/Permission.php | 61 + app/src/app/Enums/SystemRole.php | 8 + .../Dto/User/ManyRoleDtoException.php | 8 + app/src/app/Helpers/Helpers.php | 25 + .../app/Http/Controllers/Admin/Controller.php | 10 + .../Controllers/Admin/DashboardController.php | 13 + .../Controllers/Admin/RolesController.php | 92 + .../Controllers/Admin/UsersController.php | 106 + .../app/Http/Controllers/AuthController.php | 47 + app/src/app/Http/Controllers/Controller.php | 18 + .../Http/Controllers/Private/Controller.php | 10 + .../Controllers/Private/ProfileController.php | 72 + app/src/app/Http/Middleware/AdminPanel.php | 26 + app/src/app/Http/Middleware/UserLocale.php | 19 + .../Requests/Admin/Roles/IndexRequest.php | 30 + .../Admin/Roles/StoreUpdateRequest.php | 37 + .../Requests/Admin/Users/IndexRequest.php | 30 + .../Admin/Users/StoreUpdateRequest.php | 42 + .../Admin/Users/UpdatePasswordRequest.php | 26 + .../Http/Requests/AuthorizationRequest.php | 31 + .../Private/Profile/UpdatePasswordRequest.php | 26 + .../Private/Profile/UpdateRequest.php | 25 + .../Private/Profile/UpdateSettingsRequest.php | 38 + app/src/app/Models/Role.php | 55 + app/src/app/Models/RolePermission.php | 21 + app/src/app/Models/User.php | 88 + app/src/app/Policies/AdminPanel.php | 13 + app/src/app/Policies/Policy.php | 20 + app/src/app/Policies/RolePolicy.php | 34 + app/src/app/Policies/UserPolicy.php | 33 + app/src/app/Providers/AppServiceProvider.php | 66 + app/src/app/Repositories/RoleRepository.php | 59 + app/src/app/Repositories/UserRepository.php | 50 + app/src/app/Rules/Permission.php | 55 + app/src/app/ServiceResults/ServiceResult.php | 20 + .../app/ServiceResults/ServiceResultArray.php | 16 + .../app/ServiceResults/ServiceResultError.php | 49 + .../ServiceResults/ServiceResultSuccess.php | 15 + .../app/ServiceResults/StoreUpdateResult.php | 23 + app/src/app/Services/Admin/RoleService.php | 165 + app/src/app/Services/Admin/UserService.php | 200 + app/src/app/Services/AuthService.php | 37 + .../app/Services/Private/ProfileService.php | 59 + app/src/app/Services/Role/BuilderCommand.php | 15 + .../app/Services/Role/RoleCommandHandler.php | 26 + .../RoleSyncPermissionsCommandHandler.php | 57 + .../Search/CreateSearchInstanceCommand.php | 19 + app/src/app/Services/Search/Search.php | 80 + app/src/app/Services/Service.php | 67 + app/src/app/Services/User/BuilderCommand.php | 15 + .../app/Services/User/UserCommandHandler.php | 62 + app/src/app/View/Components/Admin/Layout.php | 13 + app/src/app/View/Components/AuthLayout.php | 14 + .../app/View/Components/Private/Layout.php | 13 + app/src/app/View/Components/PrivateLayout.php | 18 + .../View/Components/Volt/Forms/Checkbox.php | 57 + .../app/View/Components/Volt/Forms/Form.php | 32 + .../app/View/Components/Volt/Forms/Input.php | 50 + .../Components/Volt/Forms/MultiCheckbox.php | 53 + .../Volt/Forms/PermissionsForRole.php | 62 + .../app/View/Components/Volt/Forms/Select.php | 54 + app/src/artisan | 15 + app/src/bootstrap/app.php | 18 + app/src/bootstrap/cache/.gitignore | 2 + app/src/bootstrap/providers.php | 5 + app/src/composer.json | 67 + app/src/composer.lock | 9412 +++++++++++++++++ app/src/config/app.php | 129 + app/src/config/auth.php | 115 + app/src/config/cache.php | 109 + app/src/config/database.php | 170 + app/src/config/filesystems.php | 76 + app/src/config/logging.php | 132 + app/src/config/mail.php | 103 + app/src/config/queue.php | 112 + app/src/config/rate_limiting.php | 8 + app/src/config/services.php | 34 + app/src/config/session.php | 218 + app/src/database/.gitignore | 1 + app/src/database/factories/UserFactory.php | 44 + .../0001_01_01_000000_create_users_table.php | 53 + .../0001_01_01_000001_create_cache_table.php | 35 + .../0001_01_01_000002_create_jobs_table.php | 57 + .../migrations/2024_04_01_184305_roles.php | 55 + app/src/database/seeders/DatabaseSeeder.php | 23 + app/src/lang/en.json | 242 + app/src/lang/en/actions.php | 118 + app/src/lang/en/admin-sections.php | 7 + app/src/lang/en/auth.php | 9 + app/src/lang/en/http-statuses.php | 84 + app/src/lang/en/pagination.php | 8 + app/src/lang/en/passwords.php | 11 + app/src/lang/en/permissions.php | 12 + app/src/lang/en/validation.php | 280 + app/src/lang/ru.json | 242 + app/src/lang/ru/actions.php | 118 + app/src/lang/ru/admin-sections.php | 7 + app/src/lang/ru/auth.php | 9 + app/src/lang/ru/http-statuses.php | 84 + app/src/lang/ru/pagination.php | 8 + app/src/lang/ru/passwords.php | 11 + app/src/lang/ru/permissions.php | 13 + app/src/lang/ru/validation.php | 280 + app/src/package-lock.json | 2157 ++++ app/src/package.json | 29 + app/src/phpunit.xml | 33 + app/src/public/.htaccess | 21 + app/src/public/favicon.ico | 0 app/src/public/index.php | 17 + app/src/public/robots.txt | 2 + .../admin/_scripts/_click-confirm.blade.php | 16 + .../views/admin/dashboard/index.blade.php | 5 + .../views/admin/layout/_navigation.blade.php | 38 + .../views/admin/roles/_from.blade.php | 7 + .../views/admin/roles/_top.blade.php | 8 + .../views/admin/roles/create.blade.php | 16 + .../views/admin/roles/edit.blade.php | 17 + .../views/admin/roles/index.blade.php | 54 + .../views/admin/users/_from.blade.php | 12 + .../views/admin/users/_top.blade.php | 8 + .../views/admin/users/create.blade.php | 16 + .../views/admin/users/edit.blade.php | 34 + .../views/admin/users/index.blade.php | 52 + .../components/volt/forms/checkbox.blade.php | 12 + .../components/volt/forms/input.blade.php | 7 + .../volt/forms/multi_checkbox.blade.php | 16 + .../volt/forms/permissions_for_role.blade.php | 24 + .../components/volt/forms/select.blade.php | 12 + app/src/resources/views/layout/auth.blade.php | 28 + .../resources/views/layout/private.blade.php | 134 + .../views/layout/private/_errors.blade.php | 9 + .../views/layout/private/_success.blade.php | 5 + app/src/resources/views/login.blade.php | 60 + .../private/layout/_navigation.blade.php | 34 + .../views/private/profile/profile.blade.php | 34 + .../views/private/profile/settings.blade.php | 23 + app/src/resources/volt/LICENSE.md | 7 + app/src/resources/volt/images/brand/dark.png | Bin 0 -> 1189 bytes app/src/resources/volt/images/brand/light.png | Bin 0 -> 1180 bytes .../volt/images/illustrations/signin.svg | 2332 ++++ app/src/resources/volt/js/app.js | 5 + app/src/resources/volt/js/bootstrap.js | 32 + app/src/resources/volt/js/volt.js | 364 + app/src/resources/volt/scss/_variables.scss | 1 + app/src/resources/volt/scss/app.scss | 89 + .../resources/volt/scss/volt/_components.scss | 30 + app/src/resources/volt/scss/volt/_forms.scss | 4 + .../resources/volt/scss/volt/_functions.scss | 23 + app/src/resources/volt/scss/volt/_layout.scss | 5 + app/src/resources/volt/scss/volt/_mixins.scss | 7 + .../resources/volt/scss/volt/_utilities.scss | 95 + .../resources/volt/scss/volt/_variables.scss | 1660 +++ app/src/resources/volt/scss/volt/_vendor.scss | 6 + .../scss/volt/components/_accordions.scss | 52 + .../volt/scss/volt/components/_alerts.scss | 10 + .../scss/volt/components/_animations.scss | 234 + .../volt/scss/volt/components/_avatars.scss | 102 + .../volt/scss/volt/components/_badge.scss | 98 + .../volt/scss/volt/components/_body.scss | 31 + .../scss/volt/components/_breadcrumb.scss | 56 + .../volt/scss/volt/components/_buttons.scss | 86 + .../volt/scss/volt/components/_card.scss | 149 + .../volt/scss/volt/components/_carousel.scss | 52 + .../volt/scss/volt/components/_charts.scss | 52 + .../volt/scss/volt/components/_close.scss | 33 + .../scss/volt/components/_custom-forms.scss | 103 + .../scss/volt/components/_datepicker.scss | 13 + .../volt/scss/volt/components/_dropdown.scss | 68 + .../volt/scss/volt/components/_icons.scss | 202 + .../volt/scss/volt/components/_images.scss | 67 + .../scss/volt/components/_list-group.scss | 96 + .../volt/scss/volt/components/_modal.scss | 36 + .../volt/scss/volt/components/_nav.scss | 256 + .../scss/volt/components/_pagination.scss | 16 + .../volt/scss/volt/components/_popover.scss | 19 + .../volt/scss/volt/components/_progress.scss | 116 + .../volt/scss/volt/components/_scrollbar.scss | 228 + .../volt/scss/volt/components/_shapes.scss | 18 + .../volt/scss/volt/components/_steps.scss | 61 + .../volt/scss/volt/components/_tables.scss | 394 + .../volt/scss/volt/components/_timelines.scss | 22 + .../volt/scss/volt/components/_tooltip.scss | 43 + .../volt/scss/volt/components/_type.scss | 170 + .../volt/scss/volt/forms/_form-check.scss | 15 + .../volt/scss/volt/forms/_form-control.scss | 25 + .../volt/scss/volt/forms/_form-select.scss | 23 + .../volt/scss/volt/forms/_input-group.scss | 13 + .../volt/scss/volt/layout/_footer.scss | 105 + .../volt/scss/volt/layout/_navbar.scss | 414 + .../volt/scss/volt/layout/_section.scss | 164 + .../volt/scss/volt/layout/_sidebar.scss | 34 + .../volt/scss/volt/layout/_sidenav.scss | 191 + .../volt/scss/volt/mixins/_animations.scss | 45 + .../scss/volt/mixins/_background-variant.scss | 25 + .../volt/scss/volt/mixins/_icon.scss | 17 + .../volt/scss/volt/mixins/_modals.scss | 23 + .../volt/scss/volt/mixins/_popover.scss | 36 + .../volt/scss/volt/mixins/_transform.scss | 19 + .../volt/scss/volt/mixins/_utilities.scss | 123 + app/src/routes/console.php | 2 + app/src/routes/web.php | 30 + app/src/storage/app/.gitignore | 3 + app/src/storage/app/public/.gitignore | 2 + app/src/storage/framework/.gitignore | 9 + app/src/storage/framework/cache/.gitignore | 3 + .../storage/framework/cache/data/.gitignore | 2 + app/src/storage/framework/sessions/.gitignore | 2 + app/src/storage/framework/testing/.gitignore | 2 + app/src/storage/framework/views/.gitignore | 2 + app/src/storage/logs/.gitignore | 2 + app/src/tests/Feature/ExampleTest.php | 19 + app/src/tests/TestCase.php | 10 + app/src/tests/Unit/ExampleTest.php | 16 + app/src/vite.config.js | 14 + captcha-app/.env.example | 72 + captcha-app/.gitignore | 1 + db/.gitignore | 1 + docker-compose.yml | 75 + 248 files changed, 28216 insertions(+) create mode 100644 .env.example create mode 100644 app/docker/.dockerignore create mode 100644 app/docker/Dockerfile create mode 100644 app/docker/docker-entrypoint_dev.sh create mode 100644 app/docker/docker-entrypoint_prod.sh create mode 100644 app/docker/unit-config.json create mode 100644 app/src/.editorconfig create mode 100644 app/src/.env.example create mode 100644 app/src/.gitattributes create mode 100644 app/src/.gitignore create mode 100644 app/src/README.md create mode 100644 app/src/app/Console/Commands/CreateUserAdmin.php create mode 100644 app/src/app/Contracts/FormRequestDto.php create mode 100644 app/src/app/Contracts/Search.php create mode 100644 app/src/app/Contracts/ServiceResult.php create mode 100644 app/src/app/Contracts/ServiceResultError.php create mode 100644 app/src/app/Dto/Builder/Role.php create mode 100644 app/src/app/Dto/Builder/User.php create mode 100644 app/src/app/Dto/QuerySettingsDto.php create mode 100644 app/src/app/Dto/Service/Admin/Role/Index.php create mode 100644 app/src/app/Dto/Service/Admin/Role/StoreUpdate.php create mode 100644 app/src/app/Dto/Service/Admin/User/Index.php create mode 100644 app/src/app/Dto/Service/Admin/User/StoreUpdate.php create mode 100644 app/src/app/Dto/Service/Authorization.php create mode 100644 app/src/app/Dto/Service/Dto.php create mode 100644 app/src/app/Dto/Service/Private/Profile/Update.php create mode 100644 app/src/app/Dto/Service/Private/Profile/UpdateSettings.php create mode 100644 app/src/app/Dto/Service/User/UpdatePassword.php create mode 100644 app/src/app/Dto/User/ManyRoleDto.php create mode 100644 app/src/app/Enums/Lang.php create mode 100644 app/src/app/Enums/Permission.php create mode 100644 app/src/app/Enums/SystemRole.php create mode 100644 app/src/app/Exceptions/Dto/User/ManyRoleDtoException.php create mode 100644 app/src/app/Helpers/Helpers.php create mode 100644 app/src/app/Http/Controllers/Admin/Controller.php create mode 100644 app/src/app/Http/Controllers/Admin/DashboardController.php create mode 100644 app/src/app/Http/Controllers/Admin/RolesController.php create mode 100644 app/src/app/Http/Controllers/Admin/UsersController.php create mode 100644 app/src/app/Http/Controllers/AuthController.php create mode 100644 app/src/app/Http/Controllers/Controller.php create mode 100644 app/src/app/Http/Controllers/Private/Controller.php create mode 100644 app/src/app/Http/Controllers/Private/ProfileController.php create mode 100644 app/src/app/Http/Middleware/AdminPanel.php create mode 100644 app/src/app/Http/Middleware/UserLocale.php create mode 100644 app/src/app/Http/Requests/Admin/Roles/IndexRequest.php create mode 100644 app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php create mode 100644 app/src/app/Http/Requests/Admin/Users/IndexRequest.php create mode 100644 app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php create mode 100644 app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php create mode 100644 app/src/app/Http/Requests/AuthorizationRequest.php create mode 100644 app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php create mode 100644 app/src/app/Http/Requests/Private/Profile/UpdateRequest.php create mode 100644 app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php create mode 100644 app/src/app/Models/Role.php create mode 100644 app/src/app/Models/RolePermission.php create mode 100644 app/src/app/Models/User.php create mode 100644 app/src/app/Policies/AdminPanel.php create mode 100644 app/src/app/Policies/Policy.php create mode 100644 app/src/app/Policies/RolePolicy.php create mode 100644 app/src/app/Policies/UserPolicy.php create mode 100644 app/src/app/Providers/AppServiceProvider.php create mode 100644 app/src/app/Repositories/RoleRepository.php create mode 100644 app/src/app/Repositories/UserRepository.php create mode 100644 app/src/app/Rules/Permission.php create mode 100644 app/src/app/ServiceResults/ServiceResult.php create mode 100644 app/src/app/ServiceResults/ServiceResultArray.php create mode 100644 app/src/app/ServiceResults/ServiceResultError.php create mode 100644 app/src/app/ServiceResults/ServiceResultSuccess.php create mode 100644 app/src/app/ServiceResults/StoreUpdateResult.php create mode 100644 app/src/app/Services/Admin/RoleService.php create mode 100644 app/src/app/Services/Admin/UserService.php create mode 100644 app/src/app/Services/AuthService.php create mode 100644 app/src/app/Services/Private/ProfileService.php create mode 100644 app/src/app/Services/Role/BuilderCommand.php create mode 100644 app/src/app/Services/Role/RoleCommandHandler.php create mode 100644 app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php create mode 100644 app/src/app/Services/Search/CreateSearchInstanceCommand.php create mode 100644 app/src/app/Services/Search/Search.php create mode 100644 app/src/app/Services/Service.php create mode 100644 app/src/app/Services/User/BuilderCommand.php create mode 100644 app/src/app/Services/User/UserCommandHandler.php create mode 100644 app/src/app/View/Components/Admin/Layout.php create mode 100644 app/src/app/View/Components/AuthLayout.php create mode 100644 app/src/app/View/Components/Private/Layout.php create mode 100644 app/src/app/View/Components/PrivateLayout.php create mode 100644 app/src/app/View/Components/Volt/Forms/Checkbox.php create mode 100644 app/src/app/View/Components/Volt/Forms/Form.php create mode 100644 app/src/app/View/Components/Volt/Forms/Input.php create mode 100644 app/src/app/View/Components/Volt/Forms/MultiCheckbox.php create mode 100644 app/src/app/View/Components/Volt/Forms/PermissionsForRole.php create mode 100644 app/src/app/View/Components/Volt/Forms/Select.php create mode 100755 app/src/artisan create mode 100644 app/src/bootstrap/app.php create mode 100755 app/src/bootstrap/cache/.gitignore create mode 100644 app/src/bootstrap/providers.php create mode 100644 app/src/composer.json create mode 100644 app/src/composer.lock create mode 100644 app/src/config/app.php create mode 100644 app/src/config/auth.php create mode 100644 app/src/config/cache.php create mode 100644 app/src/config/database.php create mode 100644 app/src/config/filesystems.php create mode 100644 app/src/config/logging.php create mode 100644 app/src/config/mail.php create mode 100644 app/src/config/queue.php create mode 100644 app/src/config/rate_limiting.php create mode 100644 app/src/config/services.php create mode 100644 app/src/config/session.php create mode 100644 app/src/database/.gitignore create mode 100644 app/src/database/factories/UserFactory.php create mode 100644 app/src/database/migrations/0001_01_01_000000_create_users_table.php create mode 100644 app/src/database/migrations/0001_01_01_000001_create_cache_table.php create mode 100644 app/src/database/migrations/0001_01_01_000002_create_jobs_table.php create mode 100644 app/src/database/migrations/2024_04_01_184305_roles.php create mode 100644 app/src/database/seeders/DatabaseSeeder.php create mode 100644 app/src/lang/en.json create mode 100644 app/src/lang/en/actions.php create mode 100644 app/src/lang/en/admin-sections.php create mode 100644 app/src/lang/en/auth.php create mode 100644 app/src/lang/en/http-statuses.php create mode 100644 app/src/lang/en/pagination.php create mode 100644 app/src/lang/en/passwords.php create mode 100644 app/src/lang/en/permissions.php create mode 100644 app/src/lang/en/validation.php create mode 100644 app/src/lang/ru.json create mode 100644 app/src/lang/ru/actions.php create mode 100644 app/src/lang/ru/admin-sections.php create mode 100644 app/src/lang/ru/auth.php create mode 100644 app/src/lang/ru/http-statuses.php create mode 100644 app/src/lang/ru/pagination.php create mode 100644 app/src/lang/ru/passwords.php create mode 100644 app/src/lang/ru/permissions.php create mode 100644 app/src/lang/ru/validation.php create mode 100644 app/src/package-lock.json create mode 100644 app/src/package.json create mode 100644 app/src/phpunit.xml create mode 100644 app/src/public/.htaccess create mode 100644 app/src/public/favicon.ico create mode 100644 app/src/public/index.php create mode 100644 app/src/public/robots.txt create mode 100644 app/src/resources/views/admin/_scripts/_click-confirm.blade.php create mode 100644 app/src/resources/views/admin/dashboard/index.blade.php create mode 100644 app/src/resources/views/admin/layout/_navigation.blade.php create mode 100644 app/src/resources/views/admin/roles/_from.blade.php create mode 100644 app/src/resources/views/admin/roles/_top.blade.php create mode 100644 app/src/resources/views/admin/roles/create.blade.php create mode 100644 app/src/resources/views/admin/roles/edit.blade.php create mode 100644 app/src/resources/views/admin/roles/index.blade.php create mode 100644 app/src/resources/views/admin/users/_from.blade.php create mode 100644 app/src/resources/views/admin/users/_top.blade.php create mode 100644 app/src/resources/views/admin/users/create.blade.php create mode 100644 app/src/resources/views/admin/users/edit.blade.php create mode 100644 app/src/resources/views/admin/users/index.blade.php create mode 100644 app/src/resources/views/components/volt/forms/checkbox.blade.php create mode 100644 app/src/resources/views/components/volt/forms/input.blade.php create mode 100644 app/src/resources/views/components/volt/forms/multi_checkbox.blade.php create mode 100644 app/src/resources/views/components/volt/forms/permissions_for_role.blade.php create mode 100644 app/src/resources/views/components/volt/forms/select.blade.php create mode 100644 app/src/resources/views/layout/auth.blade.php create mode 100644 app/src/resources/views/layout/private.blade.php create mode 100644 app/src/resources/views/layout/private/_errors.blade.php create mode 100644 app/src/resources/views/layout/private/_success.blade.php create mode 100644 app/src/resources/views/login.blade.php create mode 100644 app/src/resources/views/private/layout/_navigation.blade.php create mode 100644 app/src/resources/views/private/profile/profile.blade.php create mode 100644 app/src/resources/views/private/profile/settings.blade.php create mode 100644 app/src/resources/volt/LICENSE.md create mode 100644 app/src/resources/volt/images/brand/dark.png create mode 100644 app/src/resources/volt/images/brand/light.png create mode 100644 app/src/resources/volt/images/illustrations/signin.svg create mode 100644 app/src/resources/volt/js/app.js create mode 100644 app/src/resources/volt/js/bootstrap.js create mode 100644 app/src/resources/volt/js/volt.js create mode 100644 app/src/resources/volt/scss/_variables.scss create mode 100644 app/src/resources/volt/scss/app.scss create mode 100644 app/src/resources/volt/scss/volt/_components.scss create mode 100644 app/src/resources/volt/scss/volt/_forms.scss create mode 100755 app/src/resources/volt/scss/volt/_functions.scss create mode 100644 app/src/resources/volt/scss/volt/_layout.scss create mode 100755 app/src/resources/volt/scss/volt/_mixins.scss create mode 100755 app/src/resources/volt/scss/volt/_utilities.scss create mode 100644 app/src/resources/volt/scss/volt/_variables.scss create mode 100644 app/src/resources/volt/scss/volt/_vendor.scss create mode 100755 app/src/resources/volt/scss/volt/components/_accordions.scss create mode 100644 app/src/resources/volt/scss/volt/components/_alerts.scss create mode 100644 app/src/resources/volt/scss/volt/components/_animations.scss create mode 100755 app/src/resources/volt/scss/volt/components/_avatars.scss create mode 100755 app/src/resources/volt/scss/volt/components/_badge.scss create mode 100644 app/src/resources/volt/scss/volt/components/_body.scss create mode 100755 app/src/resources/volt/scss/volt/components/_breadcrumb.scss create mode 100755 app/src/resources/volt/scss/volt/components/_buttons.scss create mode 100755 app/src/resources/volt/scss/volt/components/_card.scss create mode 100755 app/src/resources/volt/scss/volt/components/_carousel.scss create mode 100644 app/src/resources/volt/scss/volt/components/_charts.scss create mode 100755 app/src/resources/volt/scss/volt/components/_close.scss create mode 100755 app/src/resources/volt/scss/volt/components/_custom-forms.scss create mode 100755 app/src/resources/volt/scss/volt/components/_datepicker.scss create mode 100755 app/src/resources/volt/scss/volt/components/_dropdown.scss create mode 100755 app/src/resources/volt/scss/volt/components/_icons.scss create mode 100644 app/src/resources/volt/scss/volt/components/_images.scss create mode 100755 app/src/resources/volt/scss/volt/components/_list-group.scss create mode 100755 app/src/resources/volt/scss/volt/components/_modal.scss create mode 100755 app/src/resources/volt/scss/volt/components/_nav.scss create mode 100755 app/src/resources/volt/scss/volt/components/_pagination.scss create mode 100755 app/src/resources/volt/scss/volt/components/_popover.scss create mode 100755 app/src/resources/volt/scss/volt/components/_progress.scss create mode 100644 app/src/resources/volt/scss/volt/components/_scrollbar.scss create mode 100755 app/src/resources/volt/scss/volt/components/_shapes.scss create mode 100755 app/src/resources/volt/scss/volt/components/_steps.scss create mode 100644 app/src/resources/volt/scss/volt/components/_tables.scss create mode 100755 app/src/resources/volt/scss/volt/components/_timelines.scss create mode 100755 app/src/resources/volt/scss/volt/components/_tooltip.scss create mode 100755 app/src/resources/volt/scss/volt/components/_type.scss create mode 100644 app/src/resources/volt/scss/volt/forms/_form-check.scss create mode 100644 app/src/resources/volt/scss/volt/forms/_form-control.scss create mode 100644 app/src/resources/volt/scss/volt/forms/_form-select.scss create mode 100644 app/src/resources/volt/scss/volt/forms/_input-group.scss create mode 100755 app/src/resources/volt/scss/volt/layout/_footer.scss create mode 100755 app/src/resources/volt/scss/volt/layout/_navbar.scss create mode 100644 app/src/resources/volt/scss/volt/layout/_section.scss create mode 100644 app/src/resources/volt/scss/volt/layout/_sidebar.scss create mode 100644 app/src/resources/volt/scss/volt/layout/_sidenav.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_animations.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_background-variant.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_icon.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_modals.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_popover.scss create mode 100755 app/src/resources/volt/scss/volt/mixins/_transform.scss create mode 100644 app/src/resources/volt/scss/volt/mixins/_utilities.scss create mode 100644 app/src/routes/console.php create mode 100644 app/src/routes/web.php create mode 100755 app/src/storage/app/.gitignore create mode 100755 app/src/storage/app/public/.gitignore create mode 100755 app/src/storage/framework/.gitignore create mode 100755 app/src/storage/framework/cache/.gitignore create mode 100755 app/src/storage/framework/cache/data/.gitignore create mode 100755 app/src/storage/framework/sessions/.gitignore create mode 100755 app/src/storage/framework/testing/.gitignore create mode 100755 app/src/storage/framework/views/.gitignore create mode 100755 app/src/storage/logs/.gitignore create mode 100644 app/src/tests/Feature/ExampleTest.php create mode 100644 app/src/tests/TestCase.php create mode 100644 app/src/tests/Unit/ExampleTest.php create mode 100644 app/src/vite.config.js create mode 100644 captcha-app/.env.example create mode 100644 captcha-app/.gitignore create mode 100644 db/.gitignore create mode 100644 docker-compose.yml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..054a452 --- /dev/null +++ b/.env.example @@ -0,0 +1,9 @@ +DOCKER_APP_PORT=8080 +DOCKER_CAPTCHA_PORT=8081 +DOCKER_DB_PORT=3306 +MYSQL_ROOT_PASSWORD=root_pass +DB_DATABASE=my-projetcs +DB_USERNAME=my-projetcs +DB_PASSWORD=my-projetcs_pass +UID=1000 +GID=1000 diff --git a/app/docker/.dockerignore b/app/docker/.dockerignore new file mode 100644 index 0000000..996b0fd --- /dev/null +++ b/app/docker/.dockerignore @@ -0,0 +1,6 @@ +**/*.env +**/*.env.example +app/bootstrap/cache/* +app/storage/** +app/vendor/** +app/node_modules/** diff --git a/app/docker/Dockerfile b/app/docker/Dockerfile new file mode 100644 index 0000000..19ded04 --- /dev/null +++ b/app/docker/Dockerfile @@ -0,0 +1,117 @@ +FROM docker.io/php:8.3-zts-alpine3.18 AS UNIT_BUILDER + +ARG UNIT_VERSION=1.31.1 + +RUN apk --no-cache add pcre2-dev gcc git musl-dev make && \ + mkdir -p /usr/lib/unit/modules && \ + git clone https://github.com/nginx/unit.git && \ + cd unit && \ + git checkout $UNIT_VERSION && \ + ./configure --prefix=/var --statedir=/var/lib/unit --runstatedir=/var/run --control=unix:/run/unit/control.unit.sock --log=/var/log/unit.log --user=www-data --group=www-data --tmpdir=/tmp --modulesdir=/var/lib/unit/modules && \ + ./configure php && \ + make && \ + make install + +FROM docker.io/php:8.3-zts-alpine3.18 as BUILD + +COPY --from=UNIT_BUILDER /var/sbin/unitd /usr/sbin/unitd +COPY --from=UNIT_BUILDER /var/lib/unit/ /var/lib/unit/ + +COPY docker/unit-config.json /docker-entrypoint.d/config.json + +RUN apk --no-cache add pcre2 libbz2 libpng libwebp libjpeg-turbo icu-libs freetype oniguruma libzip \ + && apk add --no-cache --virtual .phpize-deps icu-dev libpng-dev bzip2-dev libwebp-dev libjpeg-turbo-dev freetype-dev oniguruma-dev libzip-dev pcre2-dev ${PHPIZE_DEPS} \ + && docker-php-ext-configure intl --enable-intl && \ + docker-php-ext-configure bcmath --enable-bcmath && \ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp && \ + docker-php-ext-install -j$(nproc) gd && \ + docker-php-ext-install bcmath &&\ + docker-php-ext-install pdo \ + mysqli pdo_mysql \ + intl mbstring \ + zip pcntl \ + exif opcache bz2 \ + calendar \ + && pear update-channels && pecl update-channels \ + && pecl install redis && docker-php-ext-enable redis \ + && rm -rf /tmp/pear \ + && docker-php-source delete \ + && apk del .phpize-deps \ + && rm -rf /var/cache/apk/* && rm -rf /etc/apk/cache \ + && rm -rf /usr/share/php && rm -rf /tmp/* \ + && rm "$PHP_INI_DIR/php.ini-development" \ + && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \ + && mkdir -p /tmp/php/upload \ + && mkdir -p /tmp/php/sys \ + && mkdir -p /tmp/php/session \ + && chown -R www-data:www-data /tmp/php \ + && ln -sf /dev/stdout /var/log/unit.log \ + && addgroup -S unit && adduser -S unit -G unit + +FROM BUILD as APP_BUILD_FOR_PRODUCTION +WORKDIR /home/app + +COPY src /home/app + +RUN apk --no-cache add git nodejs npm \ + && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ + && composer install --optimize-autoloader --no-dev \ + && npm install && npm run build \ + && rm -rf /home/app/node_modules /home/app/.env + + +FROM BUILD AS PRODUCTION + +COPY --from=APP_BUILD_FOR_PRODUCTION /home/app /var/www/html +COPY docker/docker-entrypoint_prod.sh /home/unit/docker-entrypoint.sh + +WORKDIR /var/www/html + +RUN chmod 755 /home/unit/docker-entrypoint.sh + +STOPSIGNAL SIGTERM + +ENTRYPOINT ["/home/unit/docker-entrypoint.sh"] +EXPOSE 9000 +CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock", "--user", "unit", "--group", "unit"] + + +FROM BUILD AS DEVELOP + +WORKDIR /var/www/html + +COPY docker/docker-entrypoint_dev.sh /home/unit/docker-entrypoint.sh + +STOPSIGNAL SIGTERM + +RUN chmod 755 /home/unit/docker-entrypoint.sh \ + && apk --no-cache add git nodejs npm \ + && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +ENTRYPOINT ["/home/unit/docker-entrypoint.sh"] + +EXPOSE 9000 +CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock", "--user", "unit", "--group", "unit"] + + + +FROM BUILD AS ARTISAN +WORKDIR /var/www/html +STOPSIGNAL SIGTERM +ENTRYPOINT ["php", "/var/www/html/artisan"] + + +FROM BUILD AS COMPOSER +WORKDIR /var/www/html +STOPSIGNAL SIGTERM +RUN apk --no-cache add git \ + && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +ENTRYPOINT ["composer"] + + + +FROM BUILD AS NPM +WORKDIR /var/www/html +STOPSIGNAL SIGTERM +RUN apk --no-cache add nodejs npm +ENTRYPOINT ["npm"] diff --git a/app/docker/docker-entrypoint_dev.sh b/app/docker/docker-entrypoint_dev.sh new file mode 100644 index 0000000..a885fa2 --- /dev/null +++ b/app/docker/docker-entrypoint_dev.sh @@ -0,0 +1,103 @@ +#!/bin/sh + +set -euo pipefail + +WAITLOOPS=5 +SLEEPSEC=1 +unitd="unitd" + +curl_put() +{ + RET=$(/usr/bin/curl -s -w '%{http_code}' -X PUT --data-binary @$1 --unix-socket /var/run/control.unit.sock http://localhost/$2) + RET_BODY=$(echo $RET | /bin/sed '$ s/...$//') + RET_STATUS=$(echo $RET | /usr/bin/tail -c 4) + if [ "$RET_STATUS" -ne "200" ]; then + echo "$0: Error: HTTP response status code is '$RET_STATUS'" + echo "$RET_BODY" + return 1 + else + echo "$0: OK: HTTP response status code is '$RET_STATUS'" + echo "$RET_BODY" + fi + return 0 +} + +if [ "$unitd" = "unitd" ] || [ "$unitd" = "unitd-debug" ]; then + echo "$0: Launching Unit daemon to perform initial configuration..." + /usr/sbin/$unitd --control unix:/var/run/control.unit.sock + for i in $(/usr/bin/seq $WAITLOOPS); do + if [ ! -S /var/run/control.unit.sock ]; then + echo "$0: Waiting for control socket to be created..." + /bin/sleep $SLEEPSEC + else + break + fi + done + + # even when the control socket exists, it does not mean unit has finished initialisation + # this curl call will get a reply once unit is fully launched + /usr/bin/curl -s -X GET --unix-socket /var/run/control.unit.sock http://localhost/ + + if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -print -quit 2>/dev/null | /bin/grep -q .; then + echo "$0: /docker-entrypoint.d/ is not empty, applying initial configuration..." + + echo "$0: Looking for certificate bundles in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.pem"); do + echo "$0: Uploading certificates bundle: $f" + curl_put $f "certificates/$(basename $f .pem)" + done + + echo "$0: Looking for JavaScript modules in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.js"); do + echo "$0: Uploading JavaScript module: $f" + curl_put $f "js_modules/$(basename $f .js)" + done + + echo "$0: Looking for configuration snippets in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.json"); do + echo "$0: Applying configuration $f"; + curl_put $f "config" + done + + if [ ! -z ${UNIT_SOURCE+x} ] + then + echo "[${UNIT_SOURCE}]" > /docker-entrypoint.d/unit_source.json + curl_put "/docker-entrypoint.d/unit_source.json" "config/listeners/*:9000/forwarded/source" + fi + + echo "$0: Looking for shell scripts in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.sh"); do + echo "$0: Launching $f"; + "$f" + done + + # warn on filetypes we don't know what to do with + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -not -name "*.sh" -not -name "*.json" -not -name "*.pem" -not -name "*.js"); do + echo "$0: Ignoring $f"; + done + fi + + echo "$0: Stopping Unit daemon after initial configuration..." + kill -TERM $(/bin/cat /var/run/unit.pid) + + for i in $(/usr/bin/seq $WAITLOOPS); do + if [ -S /var/run/control.unit.sock ]; then + echo "$0: Waiting for control socket to be removed..." + /bin/sleep $SLEEPSEC + else + break + fi + done + if [ -S /var/run/control.unit.sock ]; then + kill -KILL $(/bin/cat /var/run/unit.pid) + rm -f /var/run/control.unit.sock + fi + + echo + echo "$0: Unit initial configuration complete; ready for start up..." + echo +fi + +chmod -R 777 /var/www/html/storage /var/www/html/bootstrap/cache + +exec "$@" diff --git a/app/docker/docker-entrypoint_prod.sh b/app/docker/docker-entrypoint_prod.sh new file mode 100644 index 0000000..0ea0a31 --- /dev/null +++ b/app/docker/docker-entrypoint_prod.sh @@ -0,0 +1,111 @@ +#!/bin/sh + +set -euo pipefail + +WAITLOOPS=5 +SLEEPSEC=1 +unitd="unitd" + +curl_put() +{ + RET=$(/usr/bin/curl -s -w '%{http_code}' -X PUT --data-binary @$1 --unix-socket /var/run/control.unit.sock http://localhost/$2) + RET_BODY=$(echo $RET | /bin/sed '$ s/...$//') + RET_STATUS=$(echo $RET | /usr/bin/tail -c 4) + if [ "$RET_STATUS" -ne "200" ]; then + echo "$0: Error: HTTP response status code is '$RET_STATUS'" + echo "$RET_BODY" + return 1 + else + echo "$0: OK: HTTP response status code is '$RET_STATUS'" + echo "$RET_BODY" + fi + return 0 +} + +if [ "$unitd" = "unitd" ] || [ "$unitd" = "unitd-debug" ]; then + echo "$0: Launching Unit daemon to perform initial configuration..." + /usr/sbin/$unitd --control unix:/var/run/control.unit.sock + for i in $(/usr/bin/seq $WAITLOOPS); do + if [ ! -S /var/run/control.unit.sock ]; then + echo "$0: Waiting for control socket to be created..." + /bin/sleep $SLEEPSEC + else + break + fi + done + + # even when the control socket exists, it does not mean unit has finished initialisation + # this curl call will get a reply once unit is fully launched + /usr/bin/curl -s -X GET --unix-socket /var/run/control.unit.sock http://localhost/ + + if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -print -quit 2>/dev/null | /bin/grep -q .; then + echo "$0: /docker-entrypoint.d/ is not empty, applying initial configuration..." + + echo "$0: Looking for certificate bundles in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.pem"); do + echo "$0: Uploading certificates bundle: $f" + curl_put $f "certificates/$(basename $f .pem)" + done + + echo "$0: Looking for JavaScript modules in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.js"); do + echo "$0: Uploading JavaScript module: $f" + curl_put $f "js_modules/$(basename $f .js)" + done + + echo "$0: Looking for configuration snippets in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.json"); do + echo "$0: Applying configuration $f"; + curl_put $f "config" + done + + if [ ! -z ${UNIT_SOURCE+x} ] + then + echo "[${UNIT_SOURCE}]" > /docker-entrypoint.d/unit_source.json + curl_put "/docker-entrypoint.d/unit_source.json" "config/listeners/*:9000/forwarded/source" + fi + + echo "$0: Looking for shell scripts in /docker-entrypoint.d/..." + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -name "*.sh"); do + echo "$0: Launching $f"; + "$f" + done + + # warn on filetypes we don't know what to do with + for f in $(/usr/bin/find /docker-entrypoint.d/ -type f -not -name "*.sh" -not -name "*.json" -not -name "*.pem" -not -name "*.js"); do + echo "$0: Ignoring $f"; + done + fi + + echo "$0: Stopping Unit daemon after initial configuration..." + kill -TERM $(/bin/cat /var/run/unit.pid) + + for i in $(/usr/bin/seq $WAITLOOPS); do + if [ -S /var/run/control.unit.sock ]; then + echo "$0: Waiting for control socket to be removed..." + /bin/sleep $SLEEPSEC + else + break + fi + done + if [ -S /var/run/control.unit.sock ]; then + kill -KILL $(/bin/cat /var/run/unit.pid) + rm -f /var/run/control.unit.sock + fi + + echo + echo "$0: Unit initial configuration complete; ready for start up..." + echo +fi + +php artisan config:cache +php artisan event:cache +php artisan route:cache +php artisan view:cache +php artisan migrate --force + +chown -R unit:unit /var/www/html +chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache +chmod -R 777 /var/www/html/storage /var/www/html/bootstrap/cache + +exec "$@" diff --git a/app/docker/unit-config.json b/app/docker/unit-config.json new file mode 100644 index 0000000..1b73dff --- /dev/null +++ b/app/docker/unit-config.json @@ -0,0 +1,69 @@ +{ + "listeners": { + "*:9000": { + "pass": "routes", + "forwarded": { + "client_ip": "X-Forwarded-For", + "recursive": false, + "source": [ + + ] + } + } + }, + + "routes": [ + { + "match": { + "uri": [ + "/index.php/", + "~^/index\\.php/.*", + "~\\.php$" + ] + }, + "action": { + "return": 404 + } + }, + { + "action": { + "share": "/var/www/html/public$uri", + "fallback": { + "pass": "applications/laravel" + } + } + } + ], + + "applications": { + "laravel": { + "type": "php", + "root": "/var/www/html/public", + "working_directory": "/var/www/html", + "user": "www-data", + "group": "www-data", + "script": "index.php", + "processes": { + "max": 10, + "spare": 5, + "idle_timeout": 20 + }, + "options": { + "file": "/usr/local/etc/php/php.ini", + "admin": { + "upload_tmp_dir": "/tmp/php/upload", + "sys_temp_dir": "/tmp/php/sys", + "session.save_path": "/tmp/php/session", + "open_basedir": "/var/www/html:/tmp/php:.", + "memory_limit": "256M", + "upload_max_filesize": "20M", + "post_max_size": "20M", + "expose_php": "0" + }, + "user": { + "display_errors": "0" + } + } + } + } +} diff --git a/app/src/.editorconfig b/app/src/.editorconfig new file mode 100644 index 0000000..8f0de65 --- /dev/null +++ b/app/src/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/app/src/.env.example b/app/src/.env.example new file mode 100644 index 0000000..4abeb3c --- /dev/null +++ b/app/src/.env.example @@ -0,0 +1,69 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_TIMEZONE=UTC +APP_URL=http://localhost + +APP_FORCE_HTTPS=false + +APP_DEFAULT_LOCALE=ru +APP_FAKER_LOCALE=ru_RU +APP_DEFAULT_USER_TIMEZONE=UTC + +APP_MAINTENANCE_DRIVER=file +APP_MAINTENANCE_STORE=database + +#LOGIN_MAX_REQUEST=50 +#LOGIN_MAX_EMAIL_REQUEST=10 + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= + +SESSION_DRIVER=redis +SESSION_LIFETIME=120 +SESSION_ENCRYPT=true +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=redis + +CACHE_STORE=redis +CACHE_PREFIX= + +MEMCACHED_HOST=127.0.0.1 + +REDIS_CLIENT=phpredis +REDIS_HOST=app-redis +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=log +MAIL_HOST=127.0.0.1 +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +VITE_APP_NAME="${APP_NAME}" diff --git a/app/src/.gitattributes b/app/src/.gitattributes new file mode 100644 index 0000000..fcb21d3 --- /dev/null +++ b/app/src/.gitattributes @@ -0,0 +1,11 @@ +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/app/src/.gitignore b/app/src/.gitignore new file mode 100644 index 0000000..7fe978f --- /dev/null +++ b/app/src/.gitignore @@ -0,0 +1,19 @@ +/.phpunit.cache +/node_modules +/public/build +/public/hot +/public/storage +/storage/*.key +/vendor +.env +.env.backup +.env.production +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +/.fleet +/.idea +/.vscode diff --git a/app/src/README.md b/app/src/README.md new file mode 100644 index 0000000..1a4c26b --- /dev/null +++ b/app/src/README.md @@ -0,0 +1,66 @@ +

Laravel Logo

+ +

+Build Status +Total Downloads +Latest Stable Version +License +

+ +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + +If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +## Laravel Sponsors + +We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com). + +### Premium Partners + +- **[Vehikl](https://vehikl.com/)** +- **[Tighten Co.](https://tighten.co)** +- **[WebReinvent](https://webreinvent.com/)** +- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** +- **[64 Robots](https://64robots.com)** +- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** +- **[Cyber-Duck](https://cyber-duck.co.uk)** +- **[DevSquad](https://devsquad.com/hire-laravel-developers)** +- **[Jump24](https://jump24.co.uk)** +- **[Redberry](https://redberry.international/laravel/)** +- **[Active Logic](https://activelogic.com)** +- **[byte5](https://byte5.de)** +- **[OP.GG](https://op.gg)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/src/app/Console/Commands/CreateUserAdmin.php b/app/src/app/Console/Commands/CreateUserAdmin.php new file mode 100644 index 0000000..c01aa8d --- /dev/null +++ b/app/src/app/Console/Commands/CreateUserAdmin.php @@ -0,0 +1,94 @@ +getData(); + + if ($validator->fails()) { + $this->errorMessageAndStop($validator->errors()->all()); + } + $data = $validator->valid(); + + try { + $role = $roleRepository->getRoleByCode(SystemRole::Admin->value); + if (is_null($role)) { + $this->errorMessageAndStop('Administrator role not found.'); + } + $user = DB::transaction(function () use($data, $userCommandHandler, $role) { + $data['name'] = 'Administrator'; + $user = $userCommandHandler->handleStore($data, $data['password']); + $userCommandHandler->handleConfirmationByEmail($user); + $roles = new ManyRoleDto([$role->id]); + $userCommandHandler->handleSyncRoles($user, $roles); + + return $user; + }); + } catch (\Throwable $e) { + $this->errorMessageAndStop($e->getMessage()); + } + + $this->info('The command was successful!'); + } + + private function getData(): Validator + { + return ValidatorFacade::make([ + 'email' => $this->argument('email'), + 'password' => $this->argument('password'), + ], [ + 'email' => ['required', 'email', 'unique:users,email'], + 'password' => ['required', Password::default()], + ]); + } + + private function stop(): never + { + exit; + } + + private function errorMessageAndStop(string | array $error): never + { + $this->info('User not created. See error messages below:'); + + if (is_array($error)) { + foreach ($error as $err) { + $this->error($err); + } + } else { + $this->error($error); + } + + $this->stop(); + } +} diff --git a/app/src/app/Contracts/FormRequestDto.php b/app/src/app/Contracts/FormRequestDto.php new file mode 100644 index 0000000..cbed9e5 --- /dev/null +++ b/app/src/app/Contracts/FormRequestDto.php @@ -0,0 +1,10 @@ +limit; + } + + public function getPage(): int + { + return $this->page; + } + + public function getQueryWith(): array + { + return $this->queryWith; + } +} diff --git a/app/src/app/Dto/Service/Admin/Role/Index.php b/app/src/app/Dto/Service/Admin/Role/Index.php new file mode 100644 index 0000000..cf38632 --- /dev/null +++ b/app/src/app/Dto/Service/Admin/Role/Index.php @@ -0,0 +1,24 @@ +roleBuilderDto; + } + + public function getPage(): int + { + return $this->page; + } +} diff --git a/app/src/app/Dto/Service/Admin/Role/StoreUpdate.php b/app/src/app/Dto/Service/Admin/Role/StoreUpdate.php new file mode 100644 index 0000000..cc52df6 --- /dev/null +++ b/app/src/app/Dto/Service/Admin/Role/StoreUpdate.php @@ -0,0 +1,29 @@ +name; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function getPermissions(): array + { + return $this->permissions; + } +} diff --git a/app/src/app/Dto/Service/Admin/User/Index.php b/app/src/app/Dto/Service/Admin/User/Index.php new file mode 100644 index 0000000..1a0f25c --- /dev/null +++ b/app/src/app/Dto/Service/Admin/User/Index.php @@ -0,0 +1,24 @@ +userBuilderDto; + } + + public function getPage(): int + { + return $this->page; + } +} diff --git a/app/src/app/Dto/Service/Admin/User/StoreUpdate.php b/app/src/app/Dto/Service/Admin/User/StoreUpdate.php new file mode 100644 index 0000000..eeb048a --- /dev/null +++ b/app/src/app/Dto/Service/Admin/User/StoreUpdate.php @@ -0,0 +1,36 @@ +name; + } + + public function getEmail(): string + { + return $this->email; + } + + public function getPassword(): ?string + { + return $this->password; + } + + public function getRoles(): ManyRoleDto + { + return $this->roles; + } +} diff --git a/app/src/app/Dto/Service/Authorization.php b/app/src/app/Dto/Service/Authorization.php new file mode 100644 index 0000000..9aabc28 --- /dev/null +++ b/app/src/app/Dto/Service/Authorization.php @@ -0,0 +1,27 @@ +email; + } + + public function getPassword(): string + { + return $this->password; + } + + public function getRemember(): bool + { + return $this->remember; + } +} diff --git a/app/src/app/Dto/Service/Dto.php b/app/src/app/Dto/Service/Dto.php new file mode 100644 index 0000000..cc6724c --- /dev/null +++ b/app/src/app/Dto/Service/Dto.php @@ -0,0 +1,8 @@ +name; + } +} diff --git a/app/src/app/Dto/Service/Private/Profile/UpdateSettings.php b/app/src/app/Dto/Service/Private/Profile/UpdateSettings.php new file mode 100644 index 0000000..bb6cc54 --- /dev/null +++ b/app/src/app/Dto/Service/Private/Profile/UpdateSettings.php @@ -0,0 +1,24 @@ +lang; + } + + public function getTimezone(): ?string + { + return $this->timezone; + } +} diff --git a/app/src/app/Dto/Service/User/UpdatePassword.php b/app/src/app/Dto/Service/User/UpdatePassword.php new file mode 100644 index 0000000..e2dd672 --- /dev/null +++ b/app/src/app/Dto/Service/User/UpdatePassword.php @@ -0,0 +1,17 @@ +password; + } +} diff --git a/app/src/app/Dto/User/ManyRoleDto.php b/app/src/app/Dto/User/ManyRoleDto.php new file mode 100644 index 0000000..00e4a8a --- /dev/null +++ b/app/src/app/Dto/User/ManyRoleDto.php @@ -0,0 +1,32 @@ +add((int) $role); + } + } + + public function add(int $id): void + { + if ($id < 1) { + throw new ManyRoleDtoException('Only Integer > 0.'); + } + $this->roles[] = $id; + } + + public function toArray(): array + { + return $this->roles; + } +} diff --git a/app/src/app/Enums/Lang.php b/app/src/app/Enums/Lang.php new file mode 100644 index 0000000..76f3f62 --- /dev/null +++ b/app/src/app/Enums/Lang.php @@ -0,0 +1,46 @@ + 'Русский', + self::En => 'English' + }; + } + + public function getLocale(): string + { + return match ($this) { + self::Ru => 'ru', + self::En => 'en' + }; + } + + public static function toArray(): array + { + $choices = []; + foreach (self::cases() as $lang) { + $choices[] = [ + 'name' => $lang->name, + 'value' => $lang->value, + 'title' => $lang->getTitle(), + 'locale' => $lang->getLocale() + ]; + } + return $choices; + } + + public static function toCollection(): Collection + { + return collect(self::toArray()); + } +} diff --git a/app/src/app/Enums/Permission.php b/app/src/app/Enums/Permission.php new file mode 100644 index 0000000..92295ba --- /dev/null +++ b/app/src/app/Enums/Permission.php @@ -0,0 +1,61 @@ + [ + 'view' => __('permissions.Administrative panel allowed'), + ], + default => $this->getBasePermissions() + }; + + return $permissions; + } + + public function getTitle(): string + { + return __('permissions.' . $this->name); + } + + public function formatValue(string $permission): string + { + return $this->value . '.' . $permission; + } + + public static function toArrayList(): array + { + $permissions = []; + foreach (self::cases() as $permissionEnum) { + foreach ($permissionEnum->getPermissions() as $permissionName => $permissionTitle) { + $name = $permissionEnum->formatValue($permissionName); + $title = $permissionEnum->getTitle() . ' - ' . $permissionTitle; + $permissions[$name] = $title; + } + } + + return $permissions; + } + + public static function toArrayListCodes(): array + { + return \array_keys(self::toArrayList()); + } + + private function getBasePermissions(): array + { + return [ + 'view' => __('permissions.Allowed to watch'), + 'create' => __('permissions.Allowed to create'), + 'update' => __('permissions.Allowed to edit'), + 'delete' => __('permissions.Allowed to delete'), + ]; + } +} diff --git a/app/src/app/Enums/SystemRole.php b/app/src/app/Enums/SystemRole.php new file mode 100644 index 0000000..4eb28ce --- /dev/null +++ b/app/src/app/Enums/SystemRole.php @@ -0,0 +1,8 @@ + $value) { + $timezone[$value] = $value . ' (UTC ' . now($value)->format('P') . ')'; + } + return collect($timezone)->sortKeys(); + }); + } + + public static function getUserTimeZone() { + return auth()->user()?->timezone ?? config('app.user_timezone'); + } +} diff --git a/app/src/app/Http/Controllers/Admin/Controller.php b/app/src/app/Http/Controllers/Admin/Controller.php new file mode 100644 index 0000000..35c90d7 --- /dev/null +++ b/app/src/app/Http/Controllers/Admin/Controller.php @@ -0,0 +1,10 @@ +user(); + $data = $request->getDto(); + $querySettingsDto = new QuerySettingsDto( + limit: 20, + page: $data->getPage(), + queryWith: [] + ); + + $result = $this->roleService->index($data->getRoleBuilderDto(), $querySettingsDto, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/roles/index', $result->getData()); + } + + public function create(Request $request): View + { + $user = $request->user(); + $result = $this->roleService->create($user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/roles/create', $result->getData()); + } + + public function edit(int $id, Request $request): View + { + $user = $request->user(); + $result = $this->roleService->edit($id, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/roles/edit', $result->getData()); + } + + public function store(StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->roleService->store($data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.roles.edit', $result->getModel())->withSuccess($result->getMessage()); + } + + public function update(int $id, StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->roleService->update($id, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.roles.edit', $result->getModel())->withSuccess($result->getMessage()); + } + + public function destroy(int $id, Request $request): RedirectResponse + { + $user = $request->user(); + $result = $this->roleService->destroy($id, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.roles.index')->withSuccess($result->getMessage()); + } +} diff --git a/app/src/app/Http/Controllers/Admin/UsersController.php b/app/src/app/Http/Controllers/Admin/UsersController.php new file mode 100644 index 0000000..252cdb6 --- /dev/null +++ b/app/src/app/Http/Controllers/Admin/UsersController.php @@ -0,0 +1,106 @@ +user(); + $data = $request->getDto(); + $querySettingsDto = new QuerySettingsDto( + limit: 20, + page: $data->getPage(), + queryWith: [] + ); + + $result = $this->userService->index($data->getUserBuilderDto(), $querySettingsDto, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/users/index', $result->getData()); + } + + public function create(Request $request): View + { + $user = $request->user(); + $result = $this->userService->create($user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/users/create', $result->getData()); + } + + public function edit(int $id, Request $request): View + { + $user = $request->user(); + $result = $this->userService->edit($id, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/users/edit', $result->getData()); + } + + public function store(StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->userService->store($data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.users.edit', $result->getModel())->withSuccess($result->getMessage()); + } + + public function update(int $id, StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->userService->update($id, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.users.edit', $result->getModel())->withSuccess($result->getMessage()); + } + + public function updatePassword(int $id, UpdatePasswordRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->userService->updatePassword($id, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.users.edit', $result->getModel())->withSuccess($result->getMessage()); + } + + public function destroy(int $id, Request $request): RedirectResponse + { + $user = $request->user(); + $result = $this->userService->destroy($id, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.users.index')->withSuccess($result->getMessage()); + } +} diff --git a/app/src/app/Http/Controllers/AuthController.php b/app/src/app/Http/Controllers/AuthController.php new file mode 100644 index 0000000..6f13fea --- /dev/null +++ b/app/src/app/Http/Controllers/AuthController.php @@ -0,0 +1,47 @@ +getDto(); + $result = $this->authService->authorization($authorization); + if ($result->isError()) { + if ($result->getCode() === Response::HTTP_UNAUTHORIZED) { + Log::warning('Unauthorized ' . $authorization->getEmail() . ' [' . $request->getClientIp() . ']'); + } + return redirect()->route('login')->withInput()->withErrors($result->getMessage()); + } + $request->session()->regenerate(); + Log::notice('Logged in ' . $authorization->getEmail() . ' [' . $request->getClientIp() . ']'); + return redirect()->route('admin.home'); + } + + public function logout(Request $request): RedirectResponse + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + return redirect(route('login')); + } +} diff --git a/app/src/app/Http/Controllers/Controller.php b/app/src/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..e7434ae --- /dev/null +++ b/app/src/app/Http/Controllers/Controller.php @@ -0,0 +1,18 @@ +getCode() === Response::HTTP_UNPROCESSABLE_ENTITY) { + redirect()->back()->withInput()->withErrors($result->getErrors()); + exit; + } + abort($result->getCode(), $result->getMessage()); + } +} diff --git a/app/src/app/Http/Controllers/Private/Controller.php b/app/src/app/Http/Controllers/Private/Controller.php new file mode 100644 index 0000000..4014bef --- /dev/null +++ b/app/src/app/Http/Controllers/Private/Controller.php @@ -0,0 +1,10 @@ + $request->user() + ]); + } + + public function settings(Request $request): View + { + return view('private/profile/settings', [ + 'user' => $request->user(), + 'languages' => Lang::toCollection()->pluck(value: 'title', key: 'value')->toArray(), + 'timezone' => Helpers::getTimeZoneList()->toArray(), + ]); + } + + public function update(UpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + + $result = $this->profileService->update($data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getMessage()); + } + return redirect()->route('profile.edit')->withSuccess($result->getMessage()); + } + + public function updatePassword(UpdatePasswordRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + + $result = $this->profileService->updatePassword($data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getMessage()); + } + return redirect()->route('profile.edit')->withSuccess($result->getMessage()); + } + + public function updateSettings(UpdateSettingsRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + + $result = $this->profileService->updateSettings($data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getMessage()); + } + return redirect()->route('profile.settings')->withSuccess($result->getMessage()); + } +} diff --git a/app/src/app/Http/Middleware/AdminPanel.php b/app/src/app/Http/Middleware/AdminPanel.php new file mode 100644 index 0000000..4ff3f8b --- /dev/null +++ b/app/src/app/Http/Middleware/AdminPanel.php @@ -0,0 +1,26 @@ +user() === null || $request->user()->cannot('AdminPanel') + ) { + abort(403); + } + + return $next($request); + } +} diff --git a/app/src/app/Http/Middleware/UserLocale.php b/app/src/app/Http/Middleware/UserLocale.php new file mode 100644 index 0000000..89d7f47 --- /dev/null +++ b/app/src/app/Http/Middleware/UserLocale.php @@ -0,0 +1,19 @@ +user() && $request->user()->lang) { + App::setLocale($request->user()->lang->getLocale()); + } + + return $next($request); + } +} diff --git a/app/src/app/Http/Requests/Admin/Roles/IndexRequest.php b/app/src/app/Http/Requests/Admin/Roles/IndexRequest.php new file mode 100644 index 0000000..6b91e66 --- /dev/null +++ b/app/src/app/Http/Requests/Admin/Roles/IndexRequest.php @@ -0,0 +1,30 @@ +redirect = route('admin.roles.index'); + return [ + 'page' => ['nullable', 'numeric', 'min:1'] + ]; + } + + public function getDto(): Index + { + return new Index( + roleBuilderDto: new Role(), + page: (int) $this->input('page', 1) + ); + } +} diff --git a/app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php b/app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php new file mode 100644 index 0000000..87c800e --- /dev/null +++ b/app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php @@ -0,0 +1,37 @@ + ['required', 'max:255'], + 'permissions' => ['array', new Permission()] + ]; + if ($this->getMethod() === 'POST') { + $rules['code'] = ['required', 'min:3', 'max:255', 'regex:/^[a-z0-9_-]+$/i']; + } + + return $rules; + } + + + public function getDto(): StoreUpdate + { + return new StoreUpdate( + name: $this->input('name'), + code: $this->input('code', null), + permissions: $this->input('permissions', []) + ); + } +} diff --git a/app/src/app/Http/Requests/Admin/Users/IndexRequest.php b/app/src/app/Http/Requests/Admin/Users/IndexRequest.php new file mode 100644 index 0000000..c6c9d2a --- /dev/null +++ b/app/src/app/Http/Requests/Admin/Users/IndexRequest.php @@ -0,0 +1,30 @@ +redirect = route('admin.users.index'); + return [ + 'page' => ['nullable', 'numeric', 'min:1'] + ]; + } + + public function getDto(): Index + { + return new Index( + userBuilderDto: new User(), + page: (int) $this->input('page', 1) + ); + } +} diff --git a/app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php b/app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php new file mode 100644 index 0000000..9f22682 --- /dev/null +++ b/app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php @@ -0,0 +1,42 @@ + ['required', 'max:255'], + 'email' => ['required', 'email', 'max:255'], + 'roles' => ['array', Rule::exists('roles', 'id')], + ]; + + if ($this->getMethod() === 'POST') { + $rules['password'] = ['required', Password::default()]; + } + + return $rules; + } + + + public function getDto(): StoreUpdate + { + return new StoreUpdate( + name: $this->input('name'), + email: $this->input('email'), + roles: new ManyRoleDto($this->input('roles', [])), + password: $this->input('password', null), + ); + } +} diff --git a/app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php b/app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php new file mode 100644 index 0000000..b100b07 --- /dev/null +++ b/app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php @@ -0,0 +1,26 @@ + ['required', Password::default()], + ]; + } + + public function getDto(): UpdatePassword + { + return new UpdatePassword(password: $this->input('password')); + } +} diff --git a/app/src/app/Http/Requests/AuthorizationRequest.php b/app/src/app/Http/Requests/AuthorizationRequest.php new file mode 100644 index 0000000..ccba55c --- /dev/null +++ b/app/src/app/Http/Requests/AuthorizationRequest.php @@ -0,0 +1,31 @@ + ['required', 'email', 'max:255'], + 'password' => ['required', 'min:3'], + 'remember' => ['nullable', 'boolean'], + ]; + } + + public function getDto(): Authorization + { + return new Authorization( + email: $this->input('email'), + password: $this->input('password'), + remember: (bool) $this->input('remember', false) + ); + } +} diff --git a/app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php b/app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php new file mode 100644 index 0000000..fb3350e --- /dev/null +++ b/app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php @@ -0,0 +1,26 @@ + ['required', 'confirmed', Password::default()], + ]; + } + + public function getDto(): UpdatePassword + { + return new UpdatePassword(password: $this->input('password')); + } +} diff --git a/app/src/app/Http/Requests/Private/Profile/UpdateRequest.php b/app/src/app/Http/Requests/Private/Profile/UpdateRequest.php new file mode 100644 index 0000000..53485e7 --- /dev/null +++ b/app/src/app/Http/Requests/Private/Profile/UpdateRequest.php @@ -0,0 +1,25 @@ + ['required', 'max:255'], + ]; + } + + public function getDto(): Update + { + return new Update(name: $this->input('name')); + } +} diff --git a/app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php b/app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php new file mode 100644 index 0000000..fe3862f --- /dev/null +++ b/app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php @@ -0,0 +1,38 @@ + ['nullable', new Enum(Lang::class)], + 'timezone' => ['nullable', Rule::in(Helpers::getTimeZoneList()->keys()->toArray())] + ]; + } + + public function getDto(): UpdateSettings + { + $lang = $this->input('lang', null); + if (!is_null($lang)) { + $lang = Lang::from((int) $lang); + } + + return new UpdateSettings( + lang: $lang, + timezone: $this->input('timezone', null), + ); + } +} diff --git a/app/src/app/Models/Role.php b/app/src/app/Models/Role.php new file mode 100644 index 0000000..d5c8395 --- /dev/null +++ b/app/src/app/Models/Role.php @@ -0,0 +1,55 @@ +orderBy('id', 'desc'); + } + + public function scopeAlphavit(Builder $query): Builder + { + return $query->orderBy('name', 'asc'); + } + + public function permissions(): hasMany + { + return $this->hasMany(RolePermission::class, 'role_id', 'id'); + } + + protected function isRemove(): Attribute + { + return Attribute::make( + get: fn ($dontRemove) => ( SystemRoleEnum::tryFrom($this->code) === null ), + )->shouldCache(); + } + + protected function isAdmin(): Attribute + { + return Attribute::make( + get: fn () => ( $this->code === SystemRoleEnum::Admin->value ), + )->shouldCache(); + } +} diff --git a/app/src/app/Models/RolePermission.php b/app/src/app/Models/RolePermission.php new file mode 100644 index 0000000..5709ffb --- /dev/null +++ b/app/src/app/Models/RolePermission.php @@ -0,0 +1,21 @@ +permission] ?? ''; + } +} diff --git a/app/src/app/Models/User.php b/app/src/app/Models/User.php new file mode 100644 index 0000000..efbaff5 --- /dev/null +++ b/app/src/app/Models/User.php @@ -0,0 +1,88 @@ + + */ + protected $fillable = [ + 'name', + 'email', + 'password', + 'nickname', + 'timezone', + 'lang', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var array + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * Get the attributes that should be cast. + * + * @return array + */ + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + 'lang' => Lang::class, + ]; + } + + public function roles(): belongsToMany + { + return $this->belongsToMany(Role::class); + } + + public function hasRole(string $role): bool + { + return $this->roles->where('code', $role)->isNotEmpty(); + } + + public function hasPermission(string $permission): bool + { + return $this->permissions->search($permission) !== false; + } + + protected function isAdmin(): Attribute + { + return Attribute::make( + get: fn () => $this->hasRole(SystemRole::Admin->value), + )->shouldCache(); + } + + protected function permissions(): Attribute + { + return Attribute::make( + get: function () { + $roles = $this->roles->modelKeys(); + return RolePermission::query()->whereIn('role_id', $roles)->select('permission')->pluck('permission'); + }, + )->shouldCache(); + } +} diff --git a/app/src/app/Policies/AdminPanel.php b/app/src/app/Policies/AdminPanel.php new file mode 100644 index 0000000..64c6550 --- /dev/null +++ b/app/src/app/Policies/AdminPanel.php @@ -0,0 +1,13 @@ +hasPermission('allow-admin-panel.view'); + } +} diff --git a/app/src/app/Policies/Policy.php b/app/src/app/Policies/Policy.php new file mode 100644 index 0000000..358c86c --- /dev/null +++ b/app/src/app/Policies/Policy.php @@ -0,0 +1,20 @@ +is_admin) { + return true; + } + + return null; + } +} diff --git a/app/src/app/Policies/RolePolicy.php b/app/src/app/Policies/RolePolicy.php new file mode 100644 index 0000000..f329474 --- /dev/null +++ b/app/src/app/Policies/RolePolicy.php @@ -0,0 +1,34 @@ +hasPermission('role.view'); + } + + public function view(User $user, Role $role): bool + { + return $user->hasPermission('role.view'); + } + + public function create(User $user): bool + { + return $user->hasPermission('role.create'); + } + + public function update(User $user, Role $role): bool + { + return $user->hasPermission('role.update'); + } + + public function delete(User $user, Role $role): bool + { + return $user->hasPermission('role.delete'); + } +} diff --git a/app/src/app/Policies/UserPolicy.php b/app/src/app/Policies/UserPolicy.php new file mode 100644 index 0000000..686e501 --- /dev/null +++ b/app/src/app/Policies/UserPolicy.php @@ -0,0 +1,33 @@ +hasPermission('user.view'); + } + + public function view(User $user, User $userView): bool + { + return $user->hasPermission('user.view'); + } + + public function create(User $user): bool + { + return $user->hasPermission('user.create'); + } + + public function update(User $user, User $userUpdate): bool + { + return $user->hasPermission('user.update'); + } + + public function delete(User $user, User $userDelete): bool + { + return $user->hasPermission('user.delete'); + } +} diff --git a/app/src/app/Providers/AppServiceProvider.php b/app/src/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..c368b53 --- /dev/null +++ b/app/src/app/Providers/AppServiceProvider.php @@ -0,0 +1,66 @@ +app->bind(CreateSearchInstanceCommand::class, function () { + return new CreateSearchInstanceCommand(Search::class); + }); + } + + /** + * Bootstrap any application services. + */ + public function boot(): void + { + if (config('app.force_https') === true) { + URL::forceScheme('https'); + } + + Password::defaults(function () { + $rule = Password::min(8); + + if ($this->app->isProduction()) { + $rule->letters() + ->mixedCase() + ->numbers() + ->symbols() + ->uncompromised(); + } + + return $rule; + }); + + $this->configureRateLimiting(); + Gate::define('AdminPanel', [\App\Policies\AdminPanel::class, 'view']); + } + + /** + * Configure the rate limiters for the application. + */ + private function configureRateLimiting(): void + { + RateLimiter::for('login', function (Request $request) { + return [ + Limit::perHour(config('rate_limiting.login_max_request', 50))->by($request->getClientIp()), + Limit::perHour(config('rate_limiting.login_max_email_request', 10))->by($request->getClientIp() . '-' . $request->input('email')), + ]; + }); + } +} diff --git a/app/src/app/Repositories/RoleRepository.php b/app/src/app/Repositories/RoleRepository.php new file mode 100644 index 0000000..5a9dedf --- /dev/null +++ b/app/src/app/Repositories/RoleRepository.php @@ -0,0 +1,59 @@ +where('id', $id)->first(); + } + + public function getRoleByCode(string $code): ?Role + { + return Role::query()->where('code', $code)->first(); + } + + public function getRoles(RoleBuilderDto $roleBuilderDto, array $with = []): Search + { + $query = $this->builderCommand->execute( + query: Role::query()->with($with), + roleBuilderDto: $roleBuilderDto + ); + + return $this->createSearchInstanceCommand->execute($query); + } + + public function getRolesForSelect(array $withExcepts = []): array + { + return Role::query() + ->when($withExcepts, function (Builder $query, array $withExcepts) { + $query->withTrashed()->whereNull('deleted_at')->orWhereIn('id', $withExcepts); + }) + ->pluck('name', 'id') + ->toArray(); + } + + public function isExistsCode(string $code, ?int $exceptId = null): bool + { + return Role::query() + ->where('code', $code) + ->when($exceptId, function (Builder $query, int $exceptId) { + $query->where('id', '!=', $exceptId); + }) + ->withTrashed() + ->exists(); + } +} diff --git a/app/src/app/Repositories/UserRepository.php b/app/src/app/Repositories/UserRepository.php new file mode 100644 index 0000000..785bd1a --- /dev/null +++ b/app/src/app/Repositories/UserRepository.php @@ -0,0 +1,50 @@ +where('id', $id)->first(); + } + + public function getUserByEmail(string $email): ?User + { + return User::query()->where('email', Str::lower($email))->first(); + } + + public function getUsers(UserBuilderDto $userBuilderDto, array $with = []): Search + { + $query = $this->builderCommand->execute( + query: User::query()->with($with), + userBuilderDto: $userBuilderDto + ); + + return $this->createSearchInstanceCommand->execute($query); + } + + public function isExistsEmail(string $email, ?int $exceptId = null): bool + { + return User::query() + ->where('email', Str::lower($email)) + ->when($exceptId, function (Builder $query, int $exceptId) { + $query->where('id', '!=', $exceptId); + }) + ->withTrashed() + ->exists(); + } +} diff --git a/app/src/app/Rules/Permission.php b/app/src/app/Rules/Permission.php new file mode 100644 index 0000000..101512f --- /dev/null +++ b/app/src/app/Rules/Permission.php @@ -0,0 +1,55 @@ +translate(['type' => 'string, array']); + return; + } + + if (is_string($value)) { + $this->validatePermission($value, $fail); + } + + if (is_array($value)) { + foreach ($value as $item) { + $this->validatePermission($item, $fail); + } + } + } + + private function validatePermission(string $value, Closure $fail): void + { + $value = explode('.', $value, 2); + + if (count($value) !== 2) { + $fail('validation.enum')->translate(); + return; + } + + list($permissionEnum, $permission) = $value; + $permissionEnum = \App\Enums\Permission::tryFrom($permissionEnum); + if (is_null($permissionEnum)) { + $fail('validation.enum')->translate(); + return; + } + + $permissions = $permissionEnum->getPermissions(); + if (!isset($permissions[$permission])) { + $fail('validation.enum')->translate(); + return; + } + } +} diff --git a/app/src/app/ServiceResults/ServiceResult.php b/app/src/app/ServiceResults/ServiceResult.php new file mode 100644 index 0000000..6a83939 --- /dev/null +++ b/app/src/app/ServiceResults/ServiceResult.php @@ -0,0 +1,20 @@ +isError() === false; + } + + public function isError(): bool + { + return $this instanceof ServiceResultErrorContract === true; + } +} diff --git a/app/src/app/ServiceResults/ServiceResultArray.php b/app/src/app/ServiceResults/ServiceResultArray.php new file mode 100644 index 0000000..59971e4 --- /dev/null +++ b/app/src/app/ServiceResults/ServiceResultArray.php @@ -0,0 +1,16 @@ +data; + } +} diff --git a/app/src/app/ServiceResults/ServiceResultError.php b/app/src/app/ServiceResults/ServiceResultError.php new file mode 100644 index 0000000..4ff8b19 --- /dev/null +++ b/app/src/app/ServiceResults/ServiceResultError.php @@ -0,0 +1,49 @@ +message; + } + + public function getCode(): ?int + { + return $this->code; + } + + public function getErrors(): array + { + return $this->errors; + } + + public function getErrorsOrMessage(): array|string + { + if (!empty($this->getErrors())) { + return $this->getErrors(); + } + + return $this->getMessage(); + } + + public function getData(): array + { + return [ + 'message' => $this->getMessage(), + 'errors' => $this->errors + ]; + } +} diff --git a/app/src/app/ServiceResults/ServiceResultSuccess.php b/app/src/app/ServiceResults/ServiceResultSuccess.php new file mode 100644 index 0000000..7a6a3c6 --- /dev/null +++ b/app/src/app/ServiceResults/ServiceResultSuccess.php @@ -0,0 +1,15 @@ +message; + } +} diff --git a/app/src/app/ServiceResults/StoreUpdateResult.php b/app/src/app/ServiceResults/StoreUpdateResult.php new file mode 100644 index 0000000..472371d --- /dev/null +++ b/app/src/app/ServiceResults/StoreUpdateResult.php @@ -0,0 +1,23 @@ +model; + } + + public function getMessage(): string + { + return $this->message; + } +} diff --git a/app/src/app/Services/Admin/RoleService.php b/app/src/app/Services/Admin/RoleService.php new file mode 100644 index 0000000..3e62929 --- /dev/null +++ b/app/src/app/Services/Admin/RoleService.php @@ -0,0 +1,165 @@ +cannot('viewAny', Role::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $roles = $this->roleRepository->getRoles( + $roleBuilderDto, + $querySettingsDto->getQueryWith() + )->pagination( + $querySettingsDto->getLimit(), + $querySettingsDto->getPage() + ); + + return $this->result([ + 'roles' => $roles + ]); + } + + public function create(User $user): ServiceResultError | ServiceResultArray + { + if ($user->cannot('create', Role::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'role' => new Role(), + ]); + } + + public function edit(int $id, User $user): ServiceResultError | ServiceResultArray + { + $role = $this->roleRepository->getRoleById($id); + + if (is_null($role)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('view', $role)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'role' => $role, + ]); + } + + public function store(StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if ($user->cannot('create', Role::class)) { + return $this->errFobidden(__('Access is denied')); + } + + if ($this->roleRepository->isExistsCode($data->getCode())) { + return $this->errValidate( + __('validation.unique', ['attribute' => __('validation.attributes.code')]), + ['code' => __('validation.unique', ['attribute' => __('validation.attributes.code')])] + ); + } + + try { + $role = DB::transaction(function () use ($data) { + $dataRole = $this->getDataRole($data); + $dataRole['code'] = $data->getCode(); + + $role = $this->roleCommandHandler->handleStore($dataRole); + $role = $this->roleSyncPermissionsCommandHandler->handle($role, $data->getPermissions()); + + return $role; + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($role, __('The group was successfully created')); + } + + public function update(int $id, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + $role = $this->roleRepository->getRoleById($id); + + if (is_null($role)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('update', $role)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + $role = DB::transaction(function () use ($data, $role) { + $dataRole = $this->getDataRole($data); + + $role = $this->roleCommandHandler->handleUpdate($role, $dataRole); + $role = $this->roleSyncPermissionsCommandHandler->handle($role, $data->getPermissions()); + + return $role; + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($role, __('The group was successfully updated')); + } + + public function destroy(int $id, User $user): ServiceResultError|ServiceResultSuccess + { + $role = $this->roleRepository->getRoleById($id); + + if (is_null($role)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('delete', $role)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + DB::transaction(function () use ($role) { + $this->roleCommandHandler->handleDestroy($role); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->ok(__('The group has been deleted')); + } + + private function getDataRole(StoreUpdate $data): array + { + return [ + 'name' => $data->getName(), + ]; + } +} diff --git a/app/src/app/Services/Admin/UserService.php b/app/src/app/Services/Admin/UserService.php new file mode 100644 index 0000000..e1e68e0 --- /dev/null +++ b/app/src/app/Services/Admin/UserService.php @@ -0,0 +1,200 @@ +cannot('viewAny', User::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $users = $this->userRepository->getUsers( + $userBuilderDto, + $querySettingsDto->getQueryWith() + )->pagination( + $querySettingsDto->getLimit(), + $querySettingsDto->getPage() + ); + + return $this->result([ + 'users' => $users, + ]); + } + + public function create(User $user): ServiceResultError | ServiceResultArray + { + if ($user->cannot('create', User::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'user' => new User(), + 'roles' => $this->roleRepository->getRolesForSelect(), + 'userRoles' => [], + ]); + } + + public function edit(int $id, User $user): ServiceResultError | ServiceResultArray + { + $modelUser = $this->userRepository->getUserById($id); + + if (is_null($modelUser)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('view', $modelUser)) { + return $this->errFobidden(__('Access is denied')); + } + + $userRoles = $modelUser->roles()->withTrashed()->pluck('id')->toArray(); + return $this->result([ + 'user' => $modelUser, + 'roles' => $this->roleRepository->getRolesForSelect($userRoles), + 'userRoles' => $userRoles, + ]); + } + + public function store(StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if ($user->cannot('create', User::class)) { + return $this->errFobidden(__('Access is denied')); + } + + if ($this->userRepository->isExistsEmail($data->getEmail())) { + return $this->errValidate( + __('validation.unique', ['attribute' => __('validation.attributes.email')]), + ['code' => __('validation.unique', ['attribute' => __('validation.attributes.email')])] + ); + } + + try { + $modelUser = DB::transaction(function () use ($data) { + $dataUser = $this->getDataUser($data); + + $modelUser = $this->userCommandHandler->handleStore($dataUser, $data->getPassword()); + $this->userCommandHandler->handleSyncRoles($modelUser, $data->getRoles()); + + return $modelUser; + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($modelUser, __('The user was successfully created')); + } + + public function update(int $id, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + $modelUser = $this->userRepository->getUserById($id); + + if (is_null($modelUser)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('update', $modelUser)) { + return $this->errFobidden(__('Access is denied')); + } + + if ($this->userRepository->isExistsEmail($data->getEmail(), $modelUser->id)) { + return $this->errValidate( + __('validation.unique', ['attribute' => __('validation.attributes.email')]), + ['code' => __('validation.unique', ['attribute' => __('validation.attributes.email')])] + ); + } + + try { + $modelUser = DB::transaction(function () use ($data, $modelUser) { + $dataUser = $this->getDataUser($data); + + $modelUser = $this->userCommandHandler->handleUpdate($modelUser, $dataUser); + $this->userCommandHandler->handleSyncRoles($modelUser, $data->getRoles()); + + return $modelUser; + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($modelUser, __('The user was successfully updated')); + } + + public function updatePassword(int $id, UpdatePassword $data, User $user): ServiceResultError | StoreUpdateResult + { + $modelUser = $this->userRepository->getUserById($id); + + if (is_null($modelUser)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('update', $modelUser)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + $this->userCommandHandler->handleUpdatePassword($modelUser, $data->getPassword()); + } catch (\Throwable $e) { + report($e->getMessage()); + return $this->errService($e->getMessage()); + } + + return $this->resultStoreUpdateModel($modelUser, __('The password has been changed')); + } + + public function destroy(int $id, User $user): ServiceResultError | ServiceResultSuccess + { + $modelUser = $this->userRepository->getUserById($id); + + if (is_null($modelUser)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('delete', $modelUser)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + DB::transaction(function () use ($modelUser) { + $this->userCommandHandler->handleDestroy($modelUser); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->ok(__('The user has been deleted')); + } + + private function getDataUser(StoreUpdate $data): array + { + return [ + 'name' => $data->getName(), + 'email' => $data->getEmail(), + ]; + } +} diff --git a/app/src/app/Services/AuthService.php b/app/src/app/Services/AuthService.php new file mode 100644 index 0000000..586254d --- /dev/null +++ b/app/src/app/Services/AuthService.php @@ -0,0 +1,37 @@ +userRepository->getUserByEmail($authorization->getEmail()); + if (is_null($user)) { + return $this->errUnauthorized(__('auth.failed')); + } + if (Hash::check($authorization->getPassword(), $user->password) !== true) { + return $this->errUnauthorized(__('auth.password')); + } + + try { + Auth::login($user, $authorization->getRemember()); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->ok(__('auth.success')); + } +} diff --git a/app/src/app/Services/Private/ProfileService.php b/app/src/app/Services/Private/ProfileService.php new file mode 100644 index 0000000..07666e5 --- /dev/null +++ b/app/src/app/Services/Private/ProfileService.php @@ -0,0 +1,59 @@ + $update->getName() + ]; + $this->userCommandHandler->handleUpdate($user, $data); + } catch (\Throwable $e) { + report($e->getMessage()); + return $this->errService($e->getMessage()); + } + return $this->ok(__('Profile saved successfully')); + } + + public function updatePassword(UpdatePassword $update, User $user): ServiceResultError | ServiceResultSuccess + { + try { + $this->userCommandHandler->handleUpdatePassword($user, $update->getPassword()); + } catch (\Throwable $e) { + report($e->getMessage()); + return $this->errService($e->getMessage()); + } + return $this->ok(__('The password has been changed')); + } + + public function updateSettings(UpdateSettings $update, User $user): ServiceResultError | ServiceResultSuccess + { + try { + $data = [ + 'lang' => $update->getLang(), + 'timezone' => $update->getTimezone(), + ]; + $this->userCommandHandler->handleUpdate($user, $data); + } catch (\Throwable $e) { + report($e->getMessage()); + return $this->errService($e->getMessage()); + } + return $this->ok(__('The settings have been saved')); + } +} diff --git a/app/src/app/Services/Role/BuilderCommand.php b/app/src/app/Services/Role/BuilderCommand.php new file mode 100644 index 0000000..6e52cb7 --- /dev/null +++ b/app/src/app/Services/Role/BuilderCommand.php @@ -0,0 +1,15 @@ +update($data); + $role->touch(); + + return $role; + } + + public function handleDestroy(Role $role): void + { + $role->delete(); + } +} diff --git a/app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php b/app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php new file mode 100644 index 0000000..7846fd9 --- /dev/null +++ b/app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php @@ -0,0 +1,57 @@ +permissions->pluck('id', 'permission')->toArray(); + + $data = $this->getInsertDeleteData($role->id, $rolePermissions, $dataPermissions); + + if (!empty($data['insert'])) { + RolePermission::query()->insert($data['insert']); + } + + if (!empty($data['delete'])) { + RolePermission::query()->whereIn('id', $data['delete'])->delete(); + } + + return $role; + } + + private function getInsertDeleteData(int $roleId, array $rolePermissions, array $permissionsData): array + { + $data = [ + 'insert' => [], + 'delete' => [] + ]; + + $permissions = Permission::toArrayListCodes(); + foreach ($permissionsData as $permission) { + if (array_search($permission, $permissions) === false) { + throw new RoleSyncPermissionsCommandHandlerException('Таких разрешений в системе нет: ' . $permission); + } + + if (isset($rolePermissions[$permission])) { + unset($rolePermissions[$permission]); + continue; + } + + $data['insert'][] = [ + 'role_id' => $roleId, + 'permission' => $permission, + ]; + } + + $data['delete'] = array_values($rolePermissions); + + return $data; + } +} diff --git a/app/src/app/Services/Search/CreateSearchInstanceCommand.php b/app/src/app/Services/Search/CreateSearchInstanceCommand.php new file mode 100644 index 0000000..3f775ee --- /dev/null +++ b/app/src/app/Services/Search/CreateSearchInstanceCommand.php @@ -0,0 +1,19 @@ +abstract($query); + } +} diff --git a/app/src/app/Services/Search/Search.php b/app/src/app/Services/Search/Search.php new file mode 100644 index 0000000..d37c506 --- /dev/null +++ b/app/src/app/Services/Search/Search.php @@ -0,0 +1,80 @@ +query->get(); + } + + public function get(int $limit): Collection + { + return $this->query->limit($limit)->get(); + } + + public function pagination(int $limit, int $page = 1): LengthAwarePaginator + { + if ($page > 100) { + return $this->paginationPerfomance($limit, $page); + } + return $this->query->paginate($limit, page: $page)->withQueryString(); + } + + public function cursorPaginate(int $limit): CursorPaginator + { + return $this->query->cursorPaginate($limit); + } + + private function paginationPerfomance(int $limit, int $page = 1): LengthAwarePaginator + { + $total = $this->query->clone()->count(); + $options = [ + 'path' => Paginator::resolveCurrentPath(), + 'pageName' => 'page', + ]; + + $result = collect(); + if ($total > 0) { + $result = $this->subQuery($limit, $page); + } + + $pagination = Container::getInstance()->makeWith(LengthAwarePaginator::class, [ + 'items' => $result, + 'total' => $total, + 'perPage' => $limit, + 'currentPage' => $page, + 'options' => $options + ]); + + return $pagination->withQueryString(); + } + + private function subQuery(int $limit, int $page): Collection + { + $table = $this->query->getModel()->getTable(); + return $this->query->getModel()::query() + ->select($table.'.*') + ->with($this->query->getEagerLoads()) + ->from( + clone $this->query->select('id')->forPage($page, $limit), + 'q' + )->join($table.' as '.$table, $table.'.id', '=', 'q.id') + ->get(); + } +} diff --git a/app/src/app/Services/Service.php b/app/src/app/Services/Service.php new file mode 100644 index 0000000..947ec95 --- /dev/null +++ b/app/src/app/Services/Service.php @@ -0,0 +1,67 @@ +error(Response::HTTP_UNPROCESSABLE_ENTITY, $message, $errors); + } + + final protected function errFobidden(string $message): ServiceResultError + { + return $this->error(Response::HTTP_FORBIDDEN, $message); + } + + final protected function errNotFound(string $message): ServiceResultError + { + return $this->error(Response::HTTP_NOT_FOUND, $message); + } + + final protected function errService(string $message): ServiceResultError + { + return $this->error(Response::HTTP_INTERNAL_SERVER_ERROR, $message); + } + + final protected function notAcceptable(string $message): ServiceResultError + { + return $this->error(Response::HTTP_NOT_ACCEPTABLE, $message); + } + + final protected function errUnauthorized(string $message): ServiceResultError + { + return $this->error(Response::HTTP_UNAUTHORIZED, $message); + } + + final protected function ok(string $message = 'OK'): ServiceResultSuccess + { + return new ServiceResultSuccess($message); + } + + final protected function resultStoreUpdateModel(Model $model, string $message = 'OK'): StoreUpdateResult + { + return new StoreUpdateResult($model, $message); + } + + final protected function result(array $data = []): ServiceResultArray + { + return new ServiceResultArray(data: $data); + } + + final protected function error(int $code, string $message, array $errors = []): ServiceResultError + { + return new ServiceResultError( + message: $message, + errors: $errors, + code: $code + ); + } +} diff --git a/app/src/app/Services/User/BuilderCommand.php b/app/src/app/Services/User/BuilderCommand.php new file mode 100644 index 0000000..c0e99f6 --- /dev/null +++ b/app/src/app/Services/User/BuilderCommand.php @@ -0,0 +1,15 @@ +hashPassword($password); + $user = User::create($data); + + return $user; + } + + public function handleUpdate(User $user, array $data): User + { + if (isset($data['email'])) { + $data['email'] = Str::lower($data['email']); + } + + if (isset($data['password'])) { + unset($data['password']); + } + + $user->update($data); + $user->touch(); + + return $user; + } + + public function handleConfirmationByEmail(User $user): void + { + $user->update(['email_verified_at' => new Carbon('NOW')]); + } + + public function handleUpdatePassword(User $user, int|string $password): void + { + $user->update(['password' => $this->hashPassword($password)]); + } + + public function handleSyncRoles(User $user, ManyRoleDto $roles): void + { + $user->roles()->sync($roles->toArray()); + } + + private function hashPassword(int|string $password): string + { + return Hash::make($password); + } + + public function handleDestroy(User $user): void + { + $user->delete(); + } +} diff --git a/app/src/app/View/Components/Admin/Layout.php b/app/src/app/View/Components/Admin/Layout.php new file mode 100644 index 0000000..c1ef093 --- /dev/null +++ b/app/src/app/View/Components/Admin/Layout.php @@ -0,0 +1,13 @@ + $this->getNavigation(), + ]); + } +} diff --git a/app/src/app/View/Components/Volt/Forms/Checkbox.php b/app/src/app/View/Components/Volt/Forms/Checkbox.php new file mode 100644 index 0000000..5a7d809 --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/Checkbox.php @@ -0,0 +1,57 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getCheckboxValue(): string + { + return (string) old($this->getRequestName(), $this->checkboxValue); + } + + public function getUserValue(): string + { + return (string) $this->userValue; + } + + public function getNotCheckedValue(): ?string + { + return $this->notCheckedValue; + } + + /** + * @inheritDoc + */ + public function render(): View + { + return view('components.volt.forms.checkbox', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'checkboxValue' => $this->getCheckboxValue(), + 'userValue' => $this->getUserValue(), + 'notCheckedValue' => $this->getNotCheckedValue(), + ]); + } +} diff --git a/app/src/app/View/Components/Volt/Forms/Form.php b/app/src/app/View/Components/Volt/Forms/Form.php new file mode 100644 index 0000000..99b79f8 --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/Form.php @@ -0,0 +1,32 @@ +requestName)) { + return $this->requestName; + } + + $this->requestName = Str::of($this->getName()) + ->replace( + ['.', '[', ']'], + ['_', '.', ''], + ) + ->rtrim('.') + ->value(); + + return $this->requestName; + } +} diff --git a/app/src/app/View/Components/Volt/Forms/Input.php b/app/src/app/View/Components/Volt/Forms/Input.php new file mode 100644 index 0000000..426cea8 --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/Input.php @@ -0,0 +1,50 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getType(): string + { + return $this->type; + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + /** + * @inheritDoc + */ + public function render(): View + { + return view('components.volt.forms.input', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'type' => $this->getType(), + 'value' => $this->getValue() + ]); + } +} diff --git a/app/src/app/View/Components/Volt/Forms/MultiCheckbox.php b/app/src/app/View/Components/Volt/Forms/MultiCheckbox.php new file mode 100644 index 0000000..89be192 --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/MultiCheckbox.php @@ -0,0 +1,53 @@ + value], ... ] + * @param array $value + */ + public function __construct( + private readonly string $title, + private readonly string $name, + private readonly array $list, + private readonly array $value = [] + ) { } + + protected function getName(): string + { + return $this->name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getValue(): array + { + return old($this->getRequestName(), $this->value); + } + + private function getList(): array + { + return $this->list; + } + + public function render(): View + { + return view('components.volt.forms.multi_checkbox', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'list' => $this->getList(), + 'value' => $this->getValue() + ]); + } +} diff --git a/app/src/app/View/Components/Volt/Forms/PermissionsForRole.php b/app/src/app/View/Components/Volt/Forms/PermissionsForRole.php new file mode 100644 index 0000000..87aebfc --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/PermissionsForRole.php @@ -0,0 +1,62 @@ +name; + } + + /** + * @return string + */ + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + /** + * @return array + */ + private function getValue(): Collection + { + $value = old($this->getRequestName(), $this->value); + return collect($value); + } + + /** + * @return Role + */ + private function getRole(): Role + { + return $this->role; + } + + public function render(): View + { + return view('components.volt.forms.permissions_for_role', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'permissions' => Permission::cases(), + 'role' => $this->getRole(), + 'value' => $this->getValue(), + ]); + } + +} diff --git a/app/src/app/View/Components/Volt/Forms/Select.php b/app/src/app/View/Components/Volt/Forms/Select.php new file mode 100644 index 0000000..70cb8c1 --- /dev/null +++ b/app/src/app/View/Components/Volt/Forms/Select.php @@ -0,0 +1,54 @@ + value], ... ] + * @param null|string $value + */ + public function __construct( + private readonly string $title, + private readonly string $name, + private readonly array $list, + private readonly ?string $value = '' + ) { } + + protected function getName(): string + { + return $this->name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + private function getList(): array + { + return $this->list; + } + + public function render(): View + { + return view('components.volt.forms.select', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'list' => $this->getList(), + 'value' => $this->getValue() + ]); + } + +} diff --git a/app/src/artisan b/app/src/artisan new file mode 100755 index 0000000..8e04b42 --- /dev/null +++ b/app/src/artisan @@ -0,0 +1,15 @@ +#!/usr/bin/env php +handleCommand(new ArgvInput); + +exit($status); diff --git a/app/src/bootstrap/app.php b/app/src/bootstrap/app.php new file mode 100644 index 0000000..7b162da --- /dev/null +++ b/app/src/bootstrap/app.php @@ -0,0 +1,18 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + ) + ->withMiddleware(function (Middleware $middleware) { + // + }) + ->withExceptions(function (Exceptions $exceptions) { + // + })->create(); diff --git a/app/src/bootstrap/cache/.gitignore b/app/src/bootstrap/cache/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/app/src/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/app/src/bootstrap/providers.php b/app/src/bootstrap/providers.php new file mode 100644 index 0000000..38b258d --- /dev/null +++ b/app/src/bootstrap/providers.php @@ -0,0 +1,5 @@ +=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "f41715465d65213d644d3141a6a93081be5d3549" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/f41715465d65213d644d3141a6a93081be5d3549", + "reference": "f41715465d65213d644d3141a6a93081be5d3549", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.2" + }, + "time": "2022-10-27T11:44:00+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.0.10", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "reference": "5817d0659c5b50c9b950feb9af7b9668e2c436bc", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^11.0", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^8.5 || ^9.5", + "vimeo/psalm": "^4.25 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.0.10" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2024-02-18T20:23:39+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.3.3", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", + "reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0", + "webmozart/assert": "^1.0" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-webmozart-assert": "^1.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.3" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2023-08-10T19:36:49+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.2", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", + "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2023-10-06T06:47:41+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/3d158f36e7875e2f040f37bc0573956240a5a38b", + "reference": "3d158f36e7875e2f040f37bc0573956240a5a38b", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "symfony/http-foundation": "^4.4|^5.4|^6|^7" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.3.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2023-10-12T05:21:21+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.2", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/fbd48bce38f73f8a4ec8583362e732e4095e5862", + "reference": "fbd48bce38f73f8a4ec8583362e732e4095e5862", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2023-11-12T22:16:48+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.8.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104", + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2023-12-03T20:35:24+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223", + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2023-12-03T20:19:20+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.6.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221", + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "^0.9", + "phpunit/phpunit": "^8.5.36 || ^9.6.15" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.6.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2023-12-03T20:05:35+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c", + "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2023-12-03T19:50:20+00:00" + }, + { + "name": "laravel/framework", + "version": "v11.1.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "1437cea6d2b04cbc83743fbb208e1a01efccd9ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/1437cea6d2b04cbc83743fbb208e1a01efccd9ec", + "reference": "1437cea6d2b04cbc83743fbb208e1a01efccd9ec", + "shasum": "" + }, + "require": { + "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.3.2", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.1.15", + "laravel/serializable-closure": "^1.3", + "league/commonmark": "^2.2.1", + "league/flysystem": "^3.8.0", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^2.72.2|^3.0", + "nunomaduro/termwind": "^2.0", + "php": "^8.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.0", + "symfony/error-handler": "^7.0", + "symfony/finder": "^7.0", + "symfony/http-foundation": "^7.0", + "symfony/http-kernel": "^7.0", + "symfony/mailer": "^7.0", + "symfony/mime": "^7.0", + "symfony/polyfill-php83": "^1.28", + "symfony/process": "^7.0", + "symfony/routing": "^7.0", + "symfony/uid": "^7.0", + "symfony/var-dumper": "^7.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.4.1", + "voku/portable-ascii": "^2.0" + }, + "conflict": { + "mockery/mockery": "1.6.8", + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.235.5", + "ext-gmp": "*", + "fakerphp/faker": "^1.23", + "league/flysystem-aws-s3-v3": "^3.0", + "league/flysystem-ftp": "^3.0", + "league/flysystem-path-prefixing": "^3.3", + "league/flysystem-read-only": "^3.3", + "league/flysystem-sftp-v3": "^3.0", + "mockery/mockery": "^1.6", + "nyholm/psr7": "^1.2", + "orchestra/testbench-core": "^9.0.6", + "pda/pheanstalk": "^5.0", + "phpstan/phpstan": "^1.4.7", + "phpunit/phpunit": "^10.5|^11.0", + "predis/predis": "^2.0.2", + "resend/resend-php": "^0.10.0", + "symfony/cache": "^7.0", + "symfony/http-client": "^7.0", + "symfony/psr-http-message-bridge": "^7.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", + "brianium/paratest": "Required to run tests in parallel (^7.0|^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", + "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.0).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.0).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.3).", + "league/flysystem-read-only": "Required to use read-only disks (^3.3)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.0).", + "mockery/mockery": "Required to use mocking (^1.6).", + "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).", + "phpunit/phpunit": "Required to use assertions and run tests (^10.5|^11.0).", + "predis/predis": "Required to use the predis connector (^2.0.2).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "11.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2024-03-28T15:07:18+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.1.17", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", + "reference": "8ee9f87f7f9eadcbe21e9e72cd4176b2f06cd5b5", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "illuminate/collections": "^10.0|^11.0", + "php": "^8.1", + "symfony/console": "^6.2|^7.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-mockery": "^1.1" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.1.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.1.17" + }, + "time": "2024-03-13T16:05:43+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v1.3.3", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "3dbf8a8e914634c48d389c1234552666b3d43754" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/3dbf8a8e914634c48d389c1234552666b3d43754", + "reference": "3dbf8a8e914634c48d389c1234552666b3d43754", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "nesbot/carbon": "^2.61", + "pestphp/pest": "^1.21.3", + "phpstan/phpstan": "^1.8.2", + "symfony/var-dumper": "^5.4.11" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2023-11-08T14:08:06+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.9.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "502e0fe3f0415d06d5db1f83a472f0f3b754bafe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/502e0fe3f0415d06d5db1f83a472f0f3b754bafe", + "reference": "502e0fe3f0415d06d5db1f83a472f0f3b754bafe", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.8|^9.3.3" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.9.0" + }, + "time": "2024-01-04T16:10:04+00:00" + }, + { + "name": "league/commonmark", + "version": "2.4.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "91c24291965bd6d7c46c46a12ba7492f83b1cadf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/91c24291965bd6d7c46c46a12ba7492f83b1cadf", + "reference": "91c24291965bd6d7c46c46a12ba7492f83b1cadf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.30.3", + "commonmark/commonmark.js": "0.30.0", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 || ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 || ^7.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2024-02-02T11:59:32+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.26.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/072735c56cc0da00e10716dd90d5a7f7b40b36be", + "reference": "072735c56cc0da00e10716dd90d5a7f7b40b36be", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "microsoft/azure-storage-blob": "^1.1", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.26.0" + }, + "funding": [ + { + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + } + ], + "time": "2024-03-25T11:49:53+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.25.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/61a6a90d6e999e4ddd9ce5adb356de0939060b92", + "reference": "61a6a90d6e999e4ddd9ce5adb356de0939060b92", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.25.1" + }, + "funding": [ + { + "url": "https://ecologi.com/frankdejonge", + "type": "custom" + }, + { + "url": "https://github.com/frankdejonge", + "type": "github" + } + ], + "time": "2024-03-15T19:58:44+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.15.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "reference": "ce0f4d1e8a6f4eb0ddff33f57c69c50fd09f4301", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.15.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-01-28T23:22:08+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.5.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^10.1", + "predis/predis": "^1.1 || ^2", + "ruflin/elastica": "^7", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.5.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2023-10-27T15:32:31+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.2.3", + "source": { + "type": "git", + "url": "https://github.com/briannesbitt/Carbon.git", + "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1", + "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "*", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3 || ^7.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1|| ^6.0 || ^7.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^3.52.1", + "kylekatarnls/multi-tester": "^2.5.3", + "ondrejmirtes/better-reflection": "^6.25.0.4", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.3.1", + "phpstan/phpstan": "^1.10.65", + "phpunit/phpunit": "^10.5.15", + "squizlabs/php_codesniffer": "^3.9.0" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev", + "dev-2.x": "2.x-dev" + }, + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/briannesbitt/Carbon/issues", + "source": "https://github.com/briannesbitt/Carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2024-03-30T18:22:00+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "a6d3a6d1f545f01ef38e60f375d1cf1f4de98188" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/a6d3a6d1f545f01ef38e60f375d1cf1f4de98188", + "reference": "a6d3a6d1f545f01ef38e60f375d1cf1f4de98188", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.3" + }, + "require-dev": { + "nette/tester": "^2.4", + "phpstan/phpstan-nette": "^1.0", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.0" + }, + "time": "2023-12-11T11:54:22+00:00" + }, + { + "name": "nette/utils", + "version": "v4.0.4", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "d3ad0aa3b9f934602cb3e3902ebccf10be34d218" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/d3ad0aa3b9f934602cb3e3902ebccf10be34d218", + "reference": "d3ad0aa3b9f934602cb3e3902ebccf10be34d218", + "shasum": "" + }, + "require": { + "php": ">=8.0 <8.4" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "dev-master", + "nette/tester": "^2.5", + "phpstan/phpstan": "^1.0", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.0.4" + }, + "time": "2024-01-17T16:50:36+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.0.2", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" + }, + "time": "2024-03-05T20:51:40+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "58c4c58cf23df7f498daeb97092e34f5259feb6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/58c4c58cf23df7f498daeb97092e34f5259feb6a", + "reference": "58c4c58cf23df7f498daeb97092e34f5259feb6a", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.0.4" + }, + "require-dev": { + "ergebnis/phpstan-rules": "^2.2.0", + "illuminate/console": "^11.0.0", + "laravel/pint": "^1.14.0", + "mockery/mockery": "^1.6.7", + "pestphp/pest": "^2.34.1", + "phpstan/phpstan": "^1.10.59", + "phpstan/phpstan-strict-rules": "^1.5.2", + "symfony/var-dumper": "^7.0.4", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v2.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2024-03-06T16:17:14+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.2", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/80735db690fe4fc5c76dfa7f9b770634285fa820", + "reference": "80735db690fe4fc5c76dfa7f9b770634285fa820", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2023-11-12T21:59:55+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "e616d01114759c4c489f93b099585439f795fe35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", + "reference": "e616d01114759c4c489f93b099585439f795fe35", + "shasum": "" + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + }, + "time": "2023-04-10T20:10:41+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.2", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/9185c66c2165bbf4d71de78a69dccf4974f9538d", + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2" + }, + "suggest": { + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-pdo-sqlite": "The doc command requires SQLite to work.", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.12.x-dev" + }, + "bamarni-bin": { + "bin-links": false, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "http://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.2" + }, + "time": "2024-03-17T01:53:00+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "reference": "a4b48764bfbb8f3a6a4d1aeb1a35bb5e9ecac4a5", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.28.3", + "fakerphp/faker": "^1.21", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^1.0", + "mockery/mockery": "^1.5", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpcsstandards/phpcsutils": "^1.0.0-rc1", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5", + "psalm/plugin-mockery": "^1.1", + "psalm/plugin-phpunit": "^0.18.4", + "ramsey/coding-standard": "^2.0.3", + "ramsey/conventional-commits": "^1.3", + "vimeo/psalm": "^5.4" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/collection", + "type": "tidelift" + } + ], + "time": "2022-12-31T21:50:55+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.7.5", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", + "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.5" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2023-11-08T05:53:05+00:00" + }, + { + "name": "symfony/clock", + "version": "v7.0.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "8b9d08887353d627d5f6c3bf3373b398b49051c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/8b9d08887353d627d5f6c3bf3373b398b49051c2", + "reference": "8b9d08887353d627d5f6c3bf3373b398b49051c2", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/clock": "^1.0", + "symfony/polyfill-php83": "^1.28" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v7.0.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-03-02T12:46:12+00:00" + }, + { + "name": "symfony/console", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "6b099f3306f7c9c2d2786ed736d0026b2903205f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/6b099f3306f7c9c2d2786ed736d0026b2903205f", + "reference": "6b099f3306f7c9c2d2786ed736d0026b2903205f", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^6.4|^7.0" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/lock": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-22T20:27:20+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v7.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "ec60a4edf94e63b0556b6a0888548bb400a3a3be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/ec60a4edf94e63b0556b6a0888548bb400a3a3be", + "reference": "ec60a4edf94e63b0556b6a0888548bb400a3a3be", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v7.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T15:02:46+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", + "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-05-23T14:45:45+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "677b24759decff69e65b1e9d1471d90f95ced880" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/677b24759decff69e65b1e9d1471d90f95ced880", + "reference": "677b24759decff69e65b1e9d1471d90f95ced880", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^6.4|^7.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" + }, + "require-dev": { + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/serializer": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-22T20:27:20+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v7.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "834c28d533dd0636f910909d01b9ff45cc094b5e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/834c28d533dd0636f910909d01b9ff45cc094b5e", + "reference": "834c28d533dd0636f910909d01b9ff45cc094b5e", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/error-handler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v7.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T15:02:46+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/a76aed96a42d2b521153fb382d418e30d18b59df", + "reference": "a76aed96a42d2b521153fb382d418e30d18b59df", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-05-23T14:45:45+00:00" + }, + { + "name": "symfony/finder", + "version": "v7.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", + "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v7.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-10-31T17:59:56+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "439fdfdd344943254b1ef6278613e79040548045" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/439fdfdd344943254b1ef6278613e79040548045", + "reference": "439fdfdd344943254b1ef6278613e79040548045", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.1", + "symfony/polyfill-php83": "^1.27" + }, + "conflict": { + "doctrine/dbal": "<3.6", + "symfony/cache": "<6.4" + }, + "require-dev": { + "doctrine/dbal": "^3.6|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/mime": "^6.4|^7.0", + "symfony/rate-limiter": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-08T19:22:56+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.0.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "37c24ca28f65e3121a68f3dd4daeb36fb1fa2a72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/37c24ca28f65e3121a68f3dd4daeb36fb1fa2a72", + "reference": "37c24ca28f65e3121a68f3dd4daeb36fb1fa2a72", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^6.4|^7.0", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<6.4", + "symfony/cache": "<6.4", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<6.4", + "symfony/form": "<6.4", + "symfony/http-client": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<6.4", + "symfony/messenger": "<6.4", + "symfony/translation": "<6.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<6.4", + "symfony/validator": "<6.4", + "symfony/var-dumper": "<6.4", + "twig/twig": "<3.0.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^6.4|^7.0", + "symfony/clock": "^6.4|^7.0", + "symfony/config": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/css-selector": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/dom-crawler": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^6.4|^7.0", + "symfony/property-access": "^6.4|^7.0", + "symfony/routing": "^6.4|^7.0", + "symfony/serializer": "^6.4.4|^7.0.4", + "symfony/stopwatch": "^6.4|^7.0", + "symfony/translation": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^6.4|^7.0", + "symfony/validator": "^6.4|^7.0", + "symfony/var-exporter": "^6.4|^7.0", + "twig/twig": "^3.0.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v7.0.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-03-04T21:05:24+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "72e16d87bf50a3ce195b9470c06bb9d7b816ea85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/72e16d87bf50a3ce195b9470c06bb9d7b816ea85", + "reference": "72e16d87bf50a3ce195b9470c06bb9d7b816ea85", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^6.4|^7.0", + "symfony/mime": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/messenger": "<6.4", + "symfony/mime": "<6.4", + "symfony/twig-bridge": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/twig-bridge": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-03T21:34:19+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "c1ffe24ba6fdc3e3f0f3fcb93519103b326a3716" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/c1ffe24ba6fdc3e3f0f3fcb93519103b326a3716", + "reference": "c1ffe24ba6fdc3e3f0f3fcb93519103b326a3716", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<6.4", + "symfony/serializer": "<6.4" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/property-access": "^6.4|^7.0", + "symfony/property-info": "^6.4|^7.0", + "symfony/serializer": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v7.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-30T08:34:29+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "a287ed7475f85bf6f61890146edbc932c0fff919" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a287ed7475f85bf6f61890146edbc932c0fff919", + "reference": "a287ed7475f85bf6f61890146edbc932c0fff919", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "symfony/polyfill-intl-normalizer": "^1.10", + "symfony/polyfill-php72": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/861391a8da9a04cbad2d232ddd9e4893220d6e25", + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "86fcae159633351e5fd145d1c47de6c528f8caff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/86fcae159633351e5fd145d1c47de6c528f8caff", + "reference": "86fcae159633351e5fd145d1c47de6c528f8caff", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "symfony/polyfill-php80": "^1.14" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php83\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php83/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "3abdd21b0ceaa3000ee950097bc3cf9efc137853" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/3abdd21b0ceaa3000ee950097bc3cf9efc137853", + "reference": "3abdd21b0ceaa3000ee950097bc3cf9efc137853", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/process", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "0e7727191c3b71ebec6d529fa0e50a01ca5679e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/0e7727191c3b71ebec6d529fa0e50a01ca5679e9", + "reference": "0e7727191c3b71ebec6d529fa0e50a01ca5679e9", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-22T20:27:20+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.0.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "ba6bf07d43289c6a4b4591ddb75bc3bc5f069c19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/ba6bf07d43289c6a4b4591ddb75bc3bc5f069c19", + "reference": "ba6bf07d43289c6a4b4591ddb75bc3bc5f069c19", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/yaml": "<6.4" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/expression-language": "^6.4|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/yaml": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v7.0.5" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-27T12:34:35+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.4.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "fe07cbc8d837f60caf7018068e350cc5163681a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/fe07cbc8d837f60caf7018068e350cc5163681a0", + "reference": "fe07cbc8d837f60caf7018068e350cc5163681a0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.4.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-12-26T14:02:43+00:00" + }, + { + "name": "symfony/string", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/f5832521b998b0bec40bee688ad5de98d4cf111b", + "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-01T13:17:36+00:00" + }, + { + "name": "symfony/translation", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "5b75e872f7d135d7abb4613809fadc8d9f3d30a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/5b75e872f7d135d7abb4613809fadc8d9f3d30a0", + "reference": "5b75e872f7d135d7abb4613809fadc8d9f3d30a0", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^2.5|^3.0" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/service-contracts": "<2.5", + "symfony/twig-bundle": "<6.4", + "symfony/yaml": "<6.4" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^4.18|^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0", + "symfony/console": "^6.4|^7.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/finder": "^6.4|^7.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^6.4|^7.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-22T20:27:20+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.4.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "06450585bf65e978026bda220cdebca3f867fde7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/06450585bf65e978026bda220cdebca3f867fde7", + "reference": "06450585bf65e978026bda220cdebca3f867fde7", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.4.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-12-26T14:02:43+00:00" + }, + { + "name": "symfony/uid", + "version": "v7.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "87cedaf3fabd7b733859d4d77aa4ca598259054b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/87cedaf3fabd7b733859d4d77aa4ca598259054b", + "reference": "87cedaf3fabd7b733859d4d77aa4ca598259054b", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v7.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T15:02:46+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.0.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "e03ad7c1535e623edbb94c22cc42353e488c6670" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e03ad7c1535e623edbb94c22cc42353e488c6670", + "reference": "e03ad7c1535e623edbb94c22cc42353e488c6670", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/uid": "^6.4|^7.0", + "twig/twig": "^3.0.4" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.0.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-15T11:33:06+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.2.7", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/83ee6f38df0a63106a9e4536e3060458b74ccedb", + "reference": "83ee6f38df0a63106a9e4536e3060458b74ccedb", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^5.5 || ^7.0 || ^8.0", + "symfony/css-selector": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^7.5 || ^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.2.7" + }, + "time": "2023-12-08T13:03:43+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.0", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4", + "reference": "2cf9fb6054c2bb1d59d1f3817706ecdb9d2934c4", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.2", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.2", + "symfony/polyfill-ctype": "^1.24", + "symfony/polyfill-mbstring": "^1.24", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2023-11-12T22:43:29+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b56450eed252f6801410d810c8e1727224ae0743" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b56450eed252f6801410d810c8e1727224ae0743", + "reference": "b56450eed252f6801410d810c8e1727224ae0743", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2022-03-08T17:03:00+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "php": "^7.2 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<4.6.1 || 4.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.13" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + } + ], + "packages-dev": [ + { + "name": "archtechx/enums", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/archtechx/enums.git", + "reference": "a99ee1a7e083736c22d3a44fd3a988e7e472cf96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/archtechx/enums/zipball/a99ee1a7e083736c22d3a44fd3a988e7e472cf96", + "reference": "a99ee1a7e083736c22d3a44fd3a988e7e472cf96", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "larastan/larastan": "^2.4", + "orchestra/testbench": "^8.0", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-laravel": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ArchTech\\Enums\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Samuel Štancl", + "email": "samuel@archte.ch" + } + ], + "description": "Helpers for making PHP enums more lovable.", + "support": { + "issues": "https://github.com/archtechx/enums/issues", + "source": "https://github.com/archtechx/enums/tree/v1.0.1" + }, + "time": "2024-01-28T17:52:47+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.0", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2023-08-31T09:50:34+00:00" + }, + { + "name": "dragon-code/contracts", + "version": "2.23.0", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/contracts.git", + "reference": "44dbad923f152e0dc2699fbac2d33b65dd6a8f7d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/contracts/zipball/44dbad923f152e0dc2699fbac2d33b65dd6a8f7d", + "reference": "44dbad923f152e0dc2699fbac2d33b65dd6a8f7d", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-message": "^1.0.1 || ^2.0", + "symfony/http-kernel": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "symfony/polyfill-php80": "^1.23" + }, + "conflict": { + "andrey-helldar/contracts": "*" + }, + "require-dev": { + "illuminate/database": "^10.0 || ^11.0", + "phpdocumentor/reflection-docblock": "^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "DragonCode\\Contracts\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://dragon-code.pro" + } + ], + "description": "A set of contracts for any project", + "keywords": [ + "contracts", + "interfaces" + ], + "support": { + "source": "https://github.com/TheDragonCode/contracts" + }, + "funding": [ + { + "url": "https://boosty.to/dragon-code", + "type": "boosty" + }, + { + "url": "https://www.donationalerts.com/r/dragon_code", + "type": "donationalerts" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" + } + ], + "time": "2024-03-11T20:15:12+00:00" + }, + { + "name": "dragon-code/pretty-array", + "version": "v4.1.0", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/pretty-array.git", + "reference": "6c84e2454491b414efbd37985c322712cdf9012f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/pretty-array/zipball/6c84e2454491b414efbd37985c322712cdf9012f", + "reference": "6c84e2454491b414efbd37985c322712cdf9012f", + "shasum": "" + }, + "require": { + "dragon-code/contracts": "^2.20", + "dragon-code/support": "^6.11.2", + "ext-dom": "*", + "ext-mbstring": "*", + "php": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^10.2" + }, + "suggest": { + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" + }, + "type": "library", + "autoload": { + "psr-4": { + "DragonCode\\PrettyArray\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" + } + ], + "description": "Simple conversion of an array to a pretty view", + "keywords": [ + "andrey helldar", + "array", + "dragon", + "dragon code", + "pretty", + "pretty array" + ], + "support": { + "issues": "https://github.com/TheDragonCode/pretty-array/issues", + "source": "https://github.com/TheDragonCode/pretty-array" + }, + "funding": [ + { + "url": "https://boosty.to/dragon-code", + "type": "boosty" + }, + { + "url": "https://github.com/sponsors/TheDragonCode", + "type": "github" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" + } + ], + "time": "2023-06-02T11:37:44+00:00" + }, + { + "name": "dragon-code/support", + "version": "6.13.0", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/support.git", + "reference": "a6f0468e32581efbccb23190b6d5c880cc519747" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/support/zipball/a6f0468e32581efbccb23190b6d5c880cc519747", + "reference": "a6f0468e32581efbccb23190b6d5c880cc519747", + "shasum": "" + }, + "require": { + "dragon-code/contracts": "^2.22.0", + "ext-bcmath": "*", + "ext-ctype": "*", + "ext-dom": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.1", + "psr/http-message": "^1.0.1 || ^2.0", + "symfony/polyfill-php81": "^1.25", + "voku/portable-ascii": "^1.4.8 || ^2.0.1" + }, + "conflict": { + "andrey-helldar/support": "*" + }, + "require-dev": { + "illuminate/contracts": "^9.0 || ^10.0 || ^11.0", + "phpunit/phpunit": "^9.6 || ^11.0", + "symfony/var-dumper": "^6.0 || ^7.0" + }, + "suggest": { + "dragon-code/laravel-support": "Various helper files for the Laravel and Lumen frameworks", + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" + }, + "type": "library", + "extra": { + "dragon-code": { + "docs-generator": { + "preview": { + "brand": "php", + "vendor": "The Dragon Code" + } + } + } + }, + "autoload": { + "psr-4": { + "DragonCode\\Support\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://dragon-code.pro" + } + ], + "description": "Support package is a collection of helpers and tools for any project.", + "keywords": [ + "dragon", + "dragon-code", + "framework", + "helper", + "helpers", + "laravel", + "php", + "support", + "symfony", + "yii", + "yii2" + ], + "support": { + "issues": "https://github.com/TheDragonCode/support/issues", + "source": "https://github.com/TheDragonCode/support" + }, + "funding": [ + { + "url": "https://boosty.to/dragon-code", + "type": "boosty" + }, + { + "url": "https://www.donationalerts.com/r/dragon_code", + "type": "donationalerts" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "yoomoney" + } + ], + "time": "2024-03-12T20:45:00+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/bfb4fe148adbf78eff521199619b93a52ae3554b", + "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.23.1" + }, + "time": "2024-01-02T13:46:09+00:00" + }, + { + "name": "filp/whoops", + "version": "2.15.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/a139776fa3f5985a50b509f2a02ff0f709d2a546", + "reference": "a139776fa3f5985a50b509f2a02ff0f709d2a546", + "shasum": "" + }, + "require": { + "php": "^5.5.9 || ^7.0 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^0.9 || ^1.0", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^2.6 || ^3.0 || ^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.15.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2023-11-03T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "shasum": "" + }, + "require": { + "php": "^5.3|^7.0|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" + }, + "time": "2020-07-09T08:09:16+00:00" + }, + { + "name": "laravel-lang/actions", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/actions.git", + "reference": "14e163af33ff3330c8675cfcb2ffd9abd4150a91" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/actions/zipball/14e163af33ff3330c8675cfcb2ffd9abd4150a91", + "reference": "14e163af33ff3330c8675cfcb2ffd9abd4150a91", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.0 || ^15.0 || ^16.0", + "php": "^8.1" + }, + "require-dev": { + "laravel-lang/status-generator": "^2.3.1", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.3 || ^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Actions\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Actions\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://dragon-code.pro" + }, + { + "name": "Laravel Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "Translation of buttons and other action elements", + "keywords": [ + "actions", + "buttons", + "lang", + "languages", + "laravel", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/actions/issues", + "source": "https://github.com/Laravel-Lang/actions/tree/1.7.0" + }, + "time": "2024-03-29T13:01:40+00:00" + }, + { + "name": "laravel-lang/attributes", + "version": "2.10.2", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/attributes.git", + "reference": "61a10efa27dcbeeb5896e1119a64bb2279b29e95" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/61a10efa27dcbeeb5896e1119a64bb2279b29e95", + "reference": "61a10efa27dcbeeb5896e1119a64bb2279b29e95", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.0 || ^15.0 || ^16.0", + "php": "^8.1" + }, + "require-dev": { + "laravel-lang/status-generator": "^1.19 || ^2.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.0 || ^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Attributes\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Attributes\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 126 languages for form field names", + "keywords": [ + "attributes", + "fields", + "form", + "lang", + "languages", + "laravel", + "messages", + "translations", + "validation" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/attributes/issues", + "source": "https://github.com/Laravel-Lang/attributes/tree/2.10.2" + }, + "time": "2024-04-01T18:57:54+00:00" + }, + { + "name": "laravel-lang/common", + "version": "6.2.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/common.git", + "reference": "6dd7ec4beae3c9fa046ced5cef020d2f8a353ea5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/common/zipball/6dd7ec4beae3c9fa046ced5cef020d2f8a353ea5", + "reference": "6dd7ec4beae3c9fa046ced5cef020d2f8a353ea5", + "shasum": "" + }, + "require": { + "laravel-lang/actions": "^1.1", + "laravel-lang/attributes": "^2.7", + "laravel-lang/http-statuses": "^3.7", + "laravel-lang/json-fallback": "^2.0", + "laravel-lang/lang": "^13.12 || ^14.0 || ^15.0", + "laravel-lang/locales": "^2.3", + "laravel-lang/publisher": "^16.0", + "php": "^8.1" + }, + "require-dev": { + "dragon-code/support": "^6.12", + "orchestra/testbench": "^8.17 || ^9.0", + "phpunit/phpunit": "^10.5.3", + "symfony/var-dumper": "^6.4 || ^7.0" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + }, + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://dragon-code.pro" + } + ], + "description": "Easily connect the necessary language packs to the application", + "keywords": [ + "Laravel-lang", + "actions", + "attribute", + "attributes", + "breeze", + "buttons", + "cashier", + "fortify", + "framework", + "http", + "http-status", + "http-status-code", + "i18n", + "jetstream", + "lang", + "language", + "languages", + "laravel", + "locale", + "locales", + "localization", + "localizations", + "nova", + "publisher", + "spark", + "translation", + "translations", + "ui" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/common/issues", + "source": "https://github.com/Laravel-Lang/common" + }, + "time": "2024-03-22T18:25:34+00:00" + }, + { + "name": "laravel-lang/http-statuses", + "version": "3.8.2", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/http-statuses.git", + "reference": "b408ea74292df2e4fbec2be93858a3e697189b29" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/b408ea74292df2e4fbec2be93858a3e697189b29", + "reference": "b408ea74292df2e4fbec2be93858a3e697189b29", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^14.1 || ^15.0 || ^16.0", + "php": "^8.1" + }, + "require-dev": { + "laravel-lang/status-generator": "^1.19 || ^2.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.0 || ^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\HttpStatuses\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\HttpStatuses\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 126 languages for HTTP statuses", + "keywords": [ + "http", + "lang", + "languages", + "laravel", + "messages", + "status", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/http-statuses/issues", + "source": "https://github.com/Laravel-Lang/http-statuses/tree/3.8.2" + }, + "time": "2024-03-11T01:33:17+00:00" + }, + { + "name": "laravel-lang/json-fallback", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/json-fallback.git", + "reference": "597865ffcef81b7e92227ea73ff3a9a3372fb91a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/json-fallback/zipball/597865ffcef81b7e92227ea73ff3a9a3372fb91a", + "reference": "597865ffcef81b7e92227ea73ff3a9a3372fb91a", + "shasum": "" + }, + "require": { + "illuminate/support": "^10.0 || ^11.0", + "illuminate/translation": "^10.0 || ^11.0", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^8.0 || ^9.0", + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\JsonFallback\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://github.com/andrey-helldar" + }, + { + "name": "Felipe Dsdev", + "homepage": "https://github.com/felipe-dsdev" + } + ], + "description": "Adds support for fallback JSON string translation", + "support": { + "issues": "https://github.com/Laravel-Lang/json-fallback/issues", + "source": "https://github.com/Laravel-Lang/json-fallback/tree/2.1.0" + }, + "time": "2024-03-13T09:18:03+00:00" + }, + { + "name": "laravel-lang/lang", + "version": "15.1.4", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/lang.git", + "reference": "3c4837f891ca73aca5a488590fc63b38ed361506" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/3c4837f891ca73aca5a488590fc63b38ed361506", + "reference": "3c4837f891ca73aca5a488590fc63b38ed361506", + "shasum": "" + }, + "require": { + "ext-json": "*", + "laravel-lang/publisher": "^16.0", + "php": "^8.2" + }, + "require-dev": { + "laravel-lang/status-generator": "^2.11", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Lang\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Lang\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI", + "keywords": [ + "lang", + "languages", + "laravel", + "lpm" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/lang/issues", + "source": "https://github.com/Laravel-Lang/lang" + }, + "time": "2024-04-01T15:17:16+00:00" + }, + { + "name": "laravel-lang/locale-list", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/locale-list.git", + "reference": "c525c99a87af6d42414c4459460b42c7fdc29cfe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/locale-list/zipball/c525c99a87af6d42414c4459460b42c7fdc29cfe", + "reference": "c525c99a87af6d42414c4459460b42c7fdc29cfe", + "shasum": "" + }, + "require": { + "archtechx/enums": "^0.3.2 || ^1.0", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\LocaleList\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro", + "homepage": "https://dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "List of localizations available in Laravel Lang projects", + "keywords": [ + "Laravel-lang", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/locale-list/issues", + "source": "https://github.com/Laravel-Lang/locale-list" + }, + "time": "2024-01-17T08:34:28+00:00" + }, + { + "name": "laravel-lang/locales", + "version": "2.6.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/locales.git", + "reference": "8cd288c5041731befc3b8cf9e63b8cc44b62cdc0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/locales/zipball/8cd288c5041731befc3b8cf9e63b8cc44b62cdc0", + "reference": "8cd288c5041731befc3b8cf9e63b8cc44b62cdc0", + "shasum": "" + }, + "require": { + "archtechx/enums": "^0.3.2 || ^1.0", + "dragon-code/support": "^6.11.3", + "ext-json": "*", + "illuminate/collections": "^10.0 || ^11.0", + "laravel-lang/locale-list": "^1.2", + "laravel-lang/native-country-names": "^1.3", + "laravel-lang/native-currency-names": "^1.3", + "laravel-lang/native-locale-names": "^2.2", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^8.0 || ^9.0", + "pestphp/pest": "^2.24.1", + "symfony/var-dumper": "^6.0 || ^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Locales\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Locales\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "Basic functionality for working with localizations", + "keywords": [ + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/locales/issues", + "source": "https://github.com/Laravel-Lang/locales" + }, + "time": "2024-03-13T09:48:27+00:00" + }, + { + "name": "laravel-lang/native-country-names", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/native-country-names.git", + "reference": "cddca6627c8732770a2e2c11c921753b6d0adb66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/native-country-names/zipball/cddca6627c8732770a2e2c11c921753b6d0adb66", + "reference": "cddca6627c8732770a2e2c11c921753b6d0adb66", + "shasum": "" + }, + "require": { + "dragon-code/support": "^6.11", + "ext-json": "*", + "illuminate/collections": "^10.0 || ^11.0", + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0 || ^11.0", + "laravel-lang/locale-list": "^1.2", + "pestphp/pest": "^2.24.3", + "punic/punic": "^3.8", + "symfony/console": "^6.3 || ^7.0", + "symfony/process": "^6.3 || ^7.0", + "symfony/var-dumper": "^6.3 || ^7.0", + "vlucas/phpdotenv": "^5.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\NativeCountryNames\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "The project contains native translations of country names", + "keywords": [ + "Laravel-lang", + "countries", + "country", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "territories", + "territory", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/native-country-names/issues", + "source": "https://github.com/Laravel-Lang/native-country-names" + }, + "time": "2024-03-13T09:34:55+00:00" + }, + { + "name": "laravel-lang/native-currency-names", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/native-currency-names.git", + "reference": "2e0fbe039421ac753b4fd5256bd239147a0a88fe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/native-currency-names/zipball/2e0fbe039421ac753b4fd5256bd239147a0a88fe", + "reference": "2e0fbe039421ac753b4fd5256bd239147a0a88fe", + "shasum": "" + }, + "require": { + "dragon-code/support": "^6.11", + "ext-json": "*", + "illuminate/collections": "^10.0 || ^11.0", + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0 || ^11.0", + "laravel-lang/locale-list": "^1.2", + "pestphp/pest": "^2.24.3", + "punic/punic": "^3.8", + "symfony/console": "^6.3 || ^7.0", + "symfony/process": "^6.3 || ^7.0", + "symfony/var-dumper": "^6.3 || ^7.0", + "vlucas/phpdotenv": "^5.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\NativeCurrencyNames\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "The project contains native translations of currency names", + "keywords": [ + "Laravel-lang", + "currency", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/native-currency-names/issues", + "source": "https://github.com/Laravel-Lang/native-currency-names" + }, + "time": "2024-03-13T09:40:02+00:00" + }, + { + "name": "laravel-lang/native-locale-names", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/native-locale-names.git", + "reference": "39ef3330938b74277456049bf386453109e4d05c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/native-locale-names/zipball/39ef3330938b74277456049bf386453109e4d05c", + "reference": "39ef3330938b74277456049bf386453109e4d05c", + "shasum": "" + }, + "require": { + "dragon-code/support": "^6.11", + "ext-json": "*", + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.31 || ^11.0", + "laravel-lang/locale-list": "^1.2", + "pestphp/pest": "^2.24.3", + "punic/punic": "^3.8", + "symfony/console": "^6.3 || ^7.0", + "symfony/process": "^6.3 || ^7.0", + "symfony/var-dumper": "^6.3 || ^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\NativeLocaleNames\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "The project contains native translations of locale names", + "keywords": [ + "Laravel-lang", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "translation", + "translations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/native-locale-names/issues", + "source": "https://github.com/Laravel-Lang/native-locale-names" + }, + "time": "2024-03-13T09:28:19+00:00" + }, + { + "name": "laravel-lang/publisher", + "version": "16.3.0", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/publisher.git", + "reference": "b33e0c22e8a374b453a944169a49c626914d5ad7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/publisher/zipball/b33e0c22e8a374b453a944169a49c626914d5ad7", + "reference": "b33e0c22e8a374b453a944169a49c626914d5ad7", + "shasum": "" + }, + "require": { + "composer/semver": "^3.4", + "dragon-code/pretty-array": "^4.1", + "dragon-code/support": "^6.11.3", + "ext-json": "*", + "illuminate/collections": "^10.0 || ^11.0", + "illuminate/console": "^10.0 || ^11.0", + "illuminate/support": "^10.0 || ^11.0", + "laravel-lang/locales": "^2.3", + "league/commonmark": "^2.4.1", + "league/config": "^1.2", + "php": "^8.1" + }, + "conflict": { + "laravel-lang/attributes": "<2.0", + "laravel-lang/http-statuses": "<3.0", + "laravel-lang/lang": "<11.0" + }, + "require-dev": { + "laravel-lang/json-fallback": "^2.0", + "orchestra/testbench": "^8.14 || ^9.0", + "phpunit/phpunit": "^10.4.2", + "symfony/var-dumper": "^6.3.6 || ^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Publisher\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Publisher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@dragon-code.pro" + }, + { + "name": "Laravel-Lang Team", + "homepage": "https://laravel-lang.com" + } + ], + "description": "Publisher lang files for the Laravel and Lumen Frameworks, Jetstream, Fortify, Cashier, Spark and Nova from Laravel-Lang/lang", + "keywords": [ + "Laravel-lang", + "breeze", + "cashier", + "fortify", + "framework", + "i18n", + "jetstream", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "localizations", + "lpm", + "lumen", + "nova", + "publisher", + "spark", + "trans", + "translation", + "translations", + "validations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/publisher/issues", + "source": "https://github.com/Laravel-Lang/publisher" + }, + "time": "2024-03-13T09:51:30+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.15.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/c52de679b3ac01207016c179d7ce173e4be128c4", + "reference": "c52de679b3ac01207016c179d7ce173e4be128c4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.49.0", + "illuminate/view": "^10.43.0", + "larastan/larastan": "^2.8.1", + "laravel-zero/framework": "^10.3.0", + "mockery/mockery": "^1.6.7", + "nunomaduro/termwind": "^1.15.1", + "pestphp/pest": "^2.33.6" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2024-03-26T16:40:24+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.29.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/8be4a31150eab3b46af11a2e7b2c4632eefaad7e", + "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0", + "illuminate/support": "^9.52.16|^10.0|^11.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0", + "phpstan/phpstan": "^1.10" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2024-03-20T20:09:31+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.11", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "81a161d0b135df89951abd52296adf97deb0723d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d", + "reference": "81a161d0b135df89951abd52296adf97deb0723d", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-03-21T18:34:15+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.11.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2023-03-08T13:26:56+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v8.1.1", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "13e5d538b95a744d85f447a321ce10adb28e9af9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/13e5d538b95a744d85f447a321ce10adb28e9af9", + "reference": "13e5d538b95a744d85f447a321ce10adb28e9af9", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.15.4", + "nunomaduro/termwind": "^2.0.1", + "php": "^8.2.0", + "symfony/console": "^7.0.4" + }, + "conflict": { + "laravel/framework": "<11.0.0 || >=12.0.0", + "phpunit/phpunit": "<10.5.1 || >=12.0.0" + }, + "require-dev": { + "larastan/larastan": "^2.9.2", + "laravel/framework": "^11.0.0", + "laravel/pint": "^1.14.0", + "laravel/sail": "^1.28.2", + "laravel/sanctum": "^4.0.0", + "laravel/tinker": "^2.9.0", + "orchestra/testbench-core": "^9.0.0", + "pestphp/pest": "^2.34.1 || ^3.0.0", + "sebastian/environment": "^6.0.1 || ^7.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-8.x": "8.x-dev" + } + }, + "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2024-03-06T16:20:09+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "10.1.14", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.14" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-12T15:33:41+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T06:24:48+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T14:07:24+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:57:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "10.5.16", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd", + "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.5", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.1", + "sebastian/global-state": "^6.0.1", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.16" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2024-03-28T10:08:10+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:12:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:43+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:15+00:00" + }, + { + "name": "sebastian/comparator", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2db5010a484d53ebf536087a70b4a5423c102372" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2db5010a484d53ebf536087a70b4a5423c102372", + "reference": "2db5010a484d53ebf536087a70b4a5423c102372", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-14T13:18:12+00:00" + }, + { + "name": "sebastian/complexity", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "68ff824baeae169ec9f2137158ee529584553799" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", + "reference": "68ff824baeae169ec9f2137158ee529584553799", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:37:17+00:00" + }, + { + "name": "sebastian/diff", + "version": "5.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "symfony/process": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:15:17+00:00" + }, + { + "name": "sebastian/environment", + "version": "6.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-23T08:47:14+00:00" + }, + { + "name": "sebastian/exporter", + "version": "5.1.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "955288482d97c19a372d3f31006ab3f37da47adf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/955288482d97c19a372d3f31006ab3f37da47adf", + "reference": "955288482d97c19a372d3f31006ab3f37da47adf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:17:12+00:00" + }, + { + "name": "sebastian/global-state", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:19:19+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/856e7f6a75a84e339195d48c556f23be2ebf75d0", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:38:20+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:32+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:06:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:05:40+00:00" + }, + { + "name": "sebastian/type", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:10:45+00:00" + }, + { + "name": "sebastian/version", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-07T11:34:05+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.5.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "483f76a82964a0431aa836b6ed0edde0c248e3ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/483f76a82964a0431aa836b6ed0edde0c248e3ab", + "reference": "483f76a82964a0431aa836b6ed0edde0c248e3ab", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "ext-json": "*", + "phpunit/phpunit": "^9.3", + "spatie/phpunit-snapshot-assertions": "^4.2", + "symfony/var-dumper": "^5.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/backtrace/tree/1.5.3" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2023-06-28T12:59:17+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.4.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "17082e780752d346c2db12ef5d6bee8e835e399c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/17082e780752d346c2db12ef5d6bee8e835e399c", + "reference": "17082e780752d346c2db12ef5d6bee8e835e399c", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "php": "^8.0", + "spatie/backtrace": "^1.5.2", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/phpunit-snapshot-assertions": "^4.0|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.4.4" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-01-31T14:18:45+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.13.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "889bf1dfa59e161590f677728b47bf4a6893983b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/889bf1dfa59e161590f677728b47bf4a6893983b", + "reference": "889bf1dfa59e161590f677728b47bf4a6893983b", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-03-29T14:03:47+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "2.5.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "e23f4e8ce6644dc3d68b9d8a0aed3beaca0d6ada" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/e23f4e8ce6644dc3d68b9d8a0aed3beaca0d6ada", + "reference": "e23f4e8ce6644dc3d68b9d8a0aed3beaca0d6ada", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^10.0|^11.0", + "php": "^8.1", + "spatie/flare-client-php": "^1.3.5", + "spatie/ignition": "^1.13", + "symfony/console": "^6.2.3|^7.0", + "symfony/var-dumper": "^6.2.3|^7.0" + }, + "require-dev": { + "livewire/livewire": "^2.11|^3.3.5", + "mockery/mockery": "^1.5.1", + "openai-php/client": "^0.8.1", + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^2.30", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan-deprecation-rules": "^1.1.1", + "phpstan/phpstan-phpunit": "^1.3.3", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "psr/simple-cache-implementation": "Needed to cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ], + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-03-29T14:14:55+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d", + "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "2d4fca631c00700597e9442a0b2451ce234513d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/2d4fca631c00700597e9442a0b2451ce234513d3", + "reference": "2d4fca631c00700597e9442a0b2451ce234513d3", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T15:02:46+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": [], + "plugin-api-version": "2.6.0" +} diff --git a/app/src/config/app.php b/app/src/config/app.php new file mode 100644 index 0000000..4f08f4e --- /dev/null +++ b/app/src/config/app.php @@ -0,0 +1,129 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | the application so that it's available within Artisan commands. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. The timezone + | is set to "UTC" by default as it is suitable for most use cases. + | + */ + + 'timezone' => 'UTC', + 'user_timezone' => env('APP_DEFAULT_USER_TIMEZONE', 'UTC'), + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by Laravel's translation / localization methods. This option can be + | set to any locale for which you plan to have translation strings. + | + */ + + 'locale' => env('APP_DEFAULT_LOCALE', 'ru'), + + 'fallback_locale' => 'ru', + + 'faker_locale' => env('APP_FAKER_LOCALE', 'ru_RU'), + + 'force_https' => (bool) env('APP_FORCE_HTTPS', false), + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is utilized by Laravel's encryption services and should be set + | to a random, 32 character string to ensure that all encrypted values + | are secure. You should do this prior to deploying the application. + | + */ + + 'cipher' => 'AES-256-CBC', + + 'key' => env('APP_KEY'), + + 'previous_keys' => [ + ...array_filter( + explode(',', env('APP_PREVIOUS_KEYS', '')) + ), + ], + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), + 'store' => env('APP_MAINTENANCE_STORE', 'database'), + ], + +]; diff --git a/app/src/config/auth.php b/app/src/config/auth.php new file mode 100644 index 0000000..0ba5d5d --- /dev/null +++ b/app/src/config/auth.php @@ -0,0 +1,115 @@ + [ + 'guard' => env('AUTH_GUARD', 'web'), + 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | which utilizes session storage plus the Eloquent user provider. + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | If you have multiple user tables or models you may configure multiple + | providers to represent the model / table. These providers may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => env('AUTH_MODEL', App\Models\User::class), + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | These configuration options specify the behavior of Laravel's password + | reset functionality, including the table utilized for token storage + | and the user provider that is invoked to actually retrieve users. + | + | The expiry time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the amount of seconds before a password confirmation + | window expires and users are asked to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), + +]; diff --git a/app/src/config/cache.php b/app/src/config/cache.php new file mode 100644 index 0000000..81d4c3b --- /dev/null +++ b/app/src/config/cache.php @@ -0,0 +1,109 @@ + env('CACHE_STORE', 'database'), + + 'limiter' => 'redis', + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "apc", "array", "database", "file", "memcached", + | "redis", "dynamodb", "octane", "null" + | + */ + + 'stores' => [ + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'table' => env('DB_CACHE_TABLE', 'cache'), + 'connection' => env('DB_CACHE_CONNECTION'), + 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + 'lock_path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), + 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, and DynamoDB cache + | stores, there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'), + +]; diff --git a/app/src/config/database.php b/app/src/config/database.php new file mode 100644 index 0000000..f8e8dcb --- /dev/null +++ b/app/src/config/database.php @@ -0,0 +1,170 @@ + env('DB_CONNECTION', 'sqlite'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Below are all of the database connections defined for your application. + | An example configuration is provided for each database system which + | is supported by Laravel. You're free to add / remove connections. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DB_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'mariadb' => [ + 'driver' => 'mariadb', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => 'prefer', + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run on the database. + | + */ + + 'migrations' => [ + 'table' => 'migrations', + 'update_date_on_publish' => true, + ], + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as Memcached. You may define your connection settings here. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + ], + + ], + +]; diff --git a/app/src/config/filesystems.php b/app/src/config/filesystems.php new file mode 100644 index 0000000..44fe9c8 --- /dev/null +++ b/app/src/config/filesystems.php @@ -0,0 +1,76 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Below you may configure as many filesystem disks as necessary, and you + | may even configure multiple disks for the same driver. Examples for + | most supported storage drivers are configured here for reference. + | + | Supported Drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app'), + 'throw' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => env('APP_URL').'/storage', + 'visibility' => 'public', + 'throw' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/app/src/config/logging.php b/app/src/config/logging.php new file mode 100644 index 0000000..d526b64 --- /dev/null +++ b/app/src/config/logging.php @@ -0,0 +1,132 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => env('LOG_DEPRECATIONS_TRACE', false), + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Laravel + | utilizes the Monolog PHP logging library, which includes a variety + | of powerful log handlers and formatters that you're free to use. + | + | Available Drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", "custom", "stack" + | + */ + + 'channels' => [ + + 'stack' => [ + 'driver' => 'stack', + 'channels' => explode(',', env('LOG_STACK', 'single')), + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => env('LOG_DAILY_DAYS', 14), + 'replace_placeholders' => true, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'), + 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), + 'level' => env('LOG_LEVEL', 'critical'), + 'replace_placeholders' => true, + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'with' => [ + 'stream' => 'php://stderr', + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), + 'replace_placeholders' => true, + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + + ], + +]; diff --git a/app/src/config/mail.php b/app/src/config/mail.php new file mode 100644 index 0000000..a4a02fe --- /dev/null +++ b/app/src/config/mail.php @@ -0,0 +1,103 @@ + env('MAIL_MAILER', 'log'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers that can be used + | when delivering an email. You may specify which one you're using for + | your mailers below. You may also add additional mailers if needed. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "log", "array", "failover", "roundrobin" + | + */ + + 'mailers' => [ + + 'smtp' => [ + 'transport' => 'smtp', + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', '127.0.0.1'), + 'port' => env('MAIL_PORT', 2525), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN'), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'postmark' => [ + 'transport' => 'postmark', + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all emails sent by your application to be sent from + | the same address. Here you may specify a name and address that is + | used globally for all emails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', 'Example'), + ], + +]; diff --git a/app/src/config/queue.php b/app/src/config/queue.php new file mode 100644 index 0000000..116bd8d --- /dev/null +++ b/app/src/config/queue.php @@ -0,0 +1,112 @@ + env('QUEUE_CONNECTION', 'database'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection options for every queue backend + | used by your application. An example configuration is provided for + | each backend supported by Laravel. You're also free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_QUEUE_CONNECTION'), + 'table' => env('DB_QUEUE_TABLE', 'jobs'), + 'queue' => env('DB_QUEUE', 'default'), + 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), + 'queue' => env('BEANSTALKD_QUEUE', 'default'), + 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), + 'block_for' => null, + 'after_commit' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Job Batching + |-------------------------------------------------------------------------- + | + | The following options configure the database and table that store job + | batching information. These options can be updated to any database + | connection and table which has been defined by your application. + | + */ + + 'batching' => [ + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'job_batches', + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control how and where failed jobs are stored. Laravel ships with + | support for storing failed jobs in a simple file or in a database. + | + | Supported drivers: "database-uuids", "dynamodb", "file", "null" + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/app/src/config/rate_limiting.php b/app/src/config/rate_limiting.php new file mode 100644 index 0000000..1546686 --- /dev/null +++ b/app/src/config/rate_limiting.php @@ -0,0 +1,8 @@ + (int) env('LOGIN_MAX_REQUEST', 50), + 'login_max_email_request' => (int) env('LOGIN_MAX_EMAIL_REQUEST', 10), +]; diff --git a/app/src/config/services.php b/app/src/config/services.php new file mode 100644 index 0000000..6bb68f6 --- /dev/null +++ b/app/src/config/services.php @@ -0,0 +1,34 @@ + [ + 'token' => env('POSTMARK_TOKEN'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + + 'slack' => [ + 'notifications' => [ + 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), + 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), + ], + ], + +]; diff --git a/app/src/config/session.php b/app/src/config/session.php new file mode 100644 index 0000000..0e22ee4 --- /dev/null +++ b/app/src/config/session.php @@ -0,0 +1,218 @@ + env('SESSION_DRIVER', 'database'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to expire immediately when the browser is closed then you may + | indicate that via the expire_on_close configuration option. + | + */ + + 'lifetime' => env('SESSION_LIFETIME', 120), + + 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it's stored. All encryption is performed + | automatically by Laravel and you may use the session like normal. + | + */ + + 'encrypt' => env('SESSION_ENCRYPT', false), + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When utilizing the "file" session driver, the session files are placed + | on disk. The default storage location is defined here; however, you + | are free to provide another location where they should be stored. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table to + | be used to store sessions. Of course, a sensible default is defined + | for you; however, you're welcome to change this to another table. + | + */ + + 'table' => env('SESSION_TABLE', 'sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using one of the framework's cache driven session backends, you may + | define the cache store which should be used to store the session data + | between requests. This must match one of your defined cache stores. + | + | Affects: "apc", "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the session cookie that is created by + | the framework. Typically, you should not need to change this value + | since doing so does not grant a meaningful security improvement. + | + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug(env('APP_NAME', 'laravel'), '_').'_session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application, but you're free to change this when necessary. + | + */ + + 'path' => env('SESSION_PATH', '/'), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | This value determines the domain and subdomains the session cookie is + | available to. By default, the cookie will be available to the root + | domain and all subdomains. Typically, this shouldn't be changed. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. It's unlikely you should disable this option. + | + */ + + 'http_only' => env('SESSION_HTTP_ONLY', true), + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" to permit secure cross-site requests. + | + | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => env('SESSION_SAME_SITE', 'lax'), + + /* + |-------------------------------------------------------------------------- + | Partitioned Cookies + |-------------------------------------------------------------------------- + | + | Setting this value to true will tie the cookie to the top-level site for + | a cross-site context. Partitioned cookies are accepted by the browser + | when flagged "secure" and the Same-Site attribute is set to "none". + | + */ + + 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), + +]; diff --git a/app/src/database/.gitignore b/app/src/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/app/src/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/app/src/database/factories/UserFactory.php b/app/src/database/factories/UserFactory.php new file mode 100644 index 0000000..584104c --- /dev/null +++ b/app/src/database/factories/UserFactory.php @@ -0,0 +1,44 @@ + + */ +class UserFactory extends Factory +{ + /** + * The current password being used by the factory. + */ + protected static ?string $password; + + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => static::$password ??= Hash::make('password'), + 'remember_token' => Str::random(10), + ]; + } + + /** + * Indicate that the model's email address should be unverified. + */ + public function unverified(): static + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/app/src/database/migrations/0001_01_01_000000_create_users_table.php b/app/src/database/migrations/0001_01_01_000000_create_users_table.php new file mode 100644 index 0000000..3965fa7 --- /dev/null +++ b/app/src/database/migrations/0001_01_01_000000_create_users_table.php @@ -0,0 +1,53 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->string('nickname')->unique()->nullable(); + $table->rememberToken(); + $table->unsignedInteger('lang')->nullable(); + $table->string('timezone', 50)->nullable(); + $table->timestamps(); + $table->softDeletes(); + }); + + Schema::create('password_reset_tokens', function (Blueprint $table) { + $table->string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + + Schema::create('sessions', function (Blueprint $table) { + $table->string('id')->primary(); + $table->foreignId('user_id')->nullable()->index(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->longText('payload'); + $table->integer('last_activity')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('users'); + Schema::dropIfExists('password_reset_tokens'); + Schema::dropIfExists('sessions'); + } +}; diff --git a/app/src/database/migrations/0001_01_01_000001_create_cache_table.php b/app/src/database/migrations/0001_01_01_000001_create_cache_table.php new file mode 100644 index 0000000..b9c106b --- /dev/null +++ b/app/src/database/migrations/0001_01_01_000001_create_cache_table.php @@ -0,0 +1,35 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->integer('expiration'); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->integer('expiration'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +}; diff --git a/app/src/database/migrations/0001_01_01_000002_create_jobs_table.php b/app/src/database/migrations/0001_01_01_000002_create_jobs_table.php new file mode 100644 index 0000000..425e705 --- /dev/null +++ b/app/src/database/migrations/0001_01_01_000002_create_jobs_table.php @@ -0,0 +1,57 @@ +id(); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + + Schema::create('job_batches', function (Blueprint $table) { + $table->string('id')->primary(); + $table->string('name'); + $table->integer('total_jobs'); + $table->integer('pending_jobs'); + $table->integer('failed_jobs'); + $table->longText('failed_job_ids'); + $table->mediumText('options')->nullable(); + $table->integer('cancelled_at')->nullable(); + $table->integer('created_at'); + $table->integer('finished_at')->nullable(); + }); + + Schema::create('failed_jobs', function (Blueprint $table) { + $table->id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + Schema::dropIfExists('job_batches'); + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/app/src/database/migrations/2024_04_01_184305_roles.php b/app/src/database/migrations/2024_04_01_184305_roles.php new file mode 100644 index 0000000..f4c10c7 --- /dev/null +++ b/app/src/database/migrations/2024_04_01_184305_roles.php @@ -0,0 +1,55 @@ +id(); + $table->string('name'); + $table->string('code')->unique(); + $table->timestamps(); + $table->softDeletes(); + }); + + DB::table('roles')->insert([ + 'name' => 'Administrator', + 'code' => 'admin', + 'created_at' => Carbon::now(), + 'updated_at' => Carbon::now() + ]); + + Schema::create('role_user', function (Blueprint $table) { + $table->unsignedBigInteger('user_id')->index(); + $table->unsignedBigInteger('role_id'); + $table->foreign('user_id')->references('id')->on('users'); + $table->foreign('role_id')->references('id')->on('roles'); + $table->primary(['user_id', 'role_id']); + }); + + Schema::create('role_permission', function (Blueprint $table) { + $table->id(); + $table->unsignedBigInteger('role_id')->index(); + $table->string('permission'); + $table->foreign('role_id')->references('id')->on('roles'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('role_permission'); + Schema::dropIfExists('role_user'); + Schema::dropIfExists('roles'); + } +}; diff --git a/app/src/database/seeders/DatabaseSeeder.php b/app/src/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..d01a0ef --- /dev/null +++ b/app/src/database/seeders/DatabaseSeeder.php @@ -0,0 +1,23 @@ +create(); + + User::factory()->create([ + 'name' => 'Test User', + 'email' => 'test@example.com', + ]); + } +} diff --git a/app/src/lang/en.json b/app/src/lang/en.json new file mode 100644 index 0000000..b17acf4 --- /dev/null +++ b/app/src/lang/en.json @@ -0,0 +1,242 @@ +{ + "(and :count more error)": "(and :count more error)", + "(and :count more errors)": "(and :count more error)|(and :count more errors)|(and :count more errors)", + "A Timeout Occurred": "A Timeout Occurred", + "Accept": "Accept", + "Accepted": "Accepted", + "Action": "Action", + "Actions": "Actions", + "Add": "Add", + "Add :name": "Add :name", + "Admin": "Admin", + "Agree": "Agree", + "All rights reserved.": "All rights reserved.", + "Already Reported": "Already Reported", + "Archive": "Archive", + "Assign": "Assign", + "Associate": "Associate", + "Attach": "Attach", + "Bad Gateway": "Bad Gateway", + "Bad Request": "Bad Request", + "Bandwidth Limit Exceeded": "Bandwidth Limit Exceeded", + "Browse": "Browse", + "Cancel": "Cancel", + "Choose": "Choose", + "Choose :name": "Choose :name", + "Choose File": "Choose File", + "Choose Image": "Choose Image", + "Click to copy": "Click to copy", + "Client Closed Request": "Client Closed Request", + "Close": "Close", + "Collapse": "Collapse", + "Collapse All": "Collapse All", + "Comment": "Comment", + "Confirm": "Confirm", + "Conflict": "Conflict", + "Connect": "Connect", + "Connection Closed Without Response": "Connection Closed Without Response", + "Connection Timed Out": "Connection Timed Out", + "Continue": "Continue", + "Create": "Create", + "Create :name": "Create :name", + "Created": "Created", + "Delete": "Delete", + "Delete :name": "Delete :name", + "Detach": "Detach", + "Details": "Details", + "Disable": "Disable", + "Discard": "Discard", + "Done": "Done", + "Down": "Down", + "Duplicate": "Duplicate", + "Duplicate :name": "Duplicate :name", + "Edit": "Edit", + "Edit :name": "Edit :name", + "Enable": "Enable", + "errors": "errors", + "Expand": "Expand", + "Expand All": "Expand All", + "Expectation Failed": "Expectation Failed", + "Explanation": "Explanation", + "Export": "Export", + "Failed Dependency": "Failed Dependency", + "File": "File", + "Files": "Files", + "Forbidden": "Forbidden", + "Found": "Found", + "Gateway Timeout": "Gateway Timeout", + "Go Home": "Go Home", + "Go to page :page": "Go to page :page", + "Gone": "Gone", + "Hello!": "Hello!", + "Hide": "Hide", + "Hide :name": "Hide :name", + "Home": "Home", + "HTTP Version Not Supported": "HTTP Version Not Supported", + "I'm a teapot": "I'm a teapot", + "If you did not create an account, no further action is required.": "If you did not create an account, no further action is required.", + "If you did not request a password reset, no further action is required.": "If you did not request a password reset, no further action is required.", + "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:", + "IM Used": "IM Used", + "Image": "Image", + "Impersonate": "Impersonate", + "Impersonation": "Impersonation", + "Import": "Import", + "Import :name": "Import :name", + "Insufficient Storage": "Insufficient Storage", + "Internal Server Error": "Internal Server Error", + "Introduction": "Introduction", + "Invalid JSON was returned from the route.": "Invalid JSON was returned from the route.", + "Invalid SSL Certificate": "Invalid SSL Certificate", + "Length Required": "Length Required", + "Like": "Like", + "Load": "Load", + "Localize": "Localize", + "Location": "Location", + "Locked": "Locked", + "Log In": "Log In", + "Log Out": "Log Out", + "Login": "Login", + "Logout": "Logout", + "Loop Detected": "Loop Detected", + "Maintenance Mode": "Maintenance Mode", + "Method Not Allowed": "Method Not Allowed", + "Misdirected Request": "Misdirected Request", + "Moved Permanently": "Moved Permanently", + "Multi-Status": "Multi-Status", + "Multiple Choices": "Multiple Choices", + "Network Authentication Required": "Network Authentication Required", + "Network Connect Timeout Error": "Network Connect Timeout Error", + "Network Read Timeout Error": "Network Read Timeout Error", + "New": "New", + "New :name": "New :name", + "No": "No", + "No Content": "No Content", + "Non-Authoritative Information": "Non-Authoritative Information", + "Not Acceptable": "Not Acceptable", + "Not Extended": "Not Extended", + "Not Found": "Not Found", + "Not Implemented": "Not Implemented", + "Not Modified": "Not Modified", + "of": "of", + "OK": "OK", + "Open": "Open", + "Open in a current window": "Open in a current window", + "Open in a new window": "Open in a new window", + "Open in a parent frame": "Open in a parent frame", + "Open in the topmost frame": "Open in the topmost frame", + "Open on the website": "Open on the website", + "Origin Is Unreachable": "Origin Is Unreachable", + "Page Expired": "Page Expired", + "Pagination Navigation": "Pagination Navigation", + "Partial Content": "Partial Content", + "Payload Too Large": "Payload Too Large", + "Payment Required": "Payment Required", + "Permanent Redirect": "Permanent Redirect", + "Please click the button below to verify your email address.": "Please click the button below to verify your email address.", + "Precondition Failed": "Precondition Failed", + "Precondition Required": "Precondition Required", + "Preview": "Preview", + "Price": "Price", + "Processing": "Processing", + "Proxy Authentication Required": "Proxy Authentication Required", + "Railgun Error": "Railgun Error", + "Range Not Satisfiable": "Range Not Satisfiable", + "Record": "Record", + "Regards": "Regards", + "Register": "Register", + "Request Header Fields Too Large": "Request Header Fields Too Large", + "Request Timeout": "Request Timeout", + "Reset Content": "Reset Content", + "Reset Password": "Reset Password", + "Reset Password Notification": "Reset Password Notification", + "Restore": "Restore", + "Restore :name": "Restore :name", + "results": "results", + "Retry With": "Retry With", + "Save": "Save", + "Save & Close": "Save & Close", + "Save & Return": "Save & Return", + "Save :name": "Save :name", + "Search": "Search", + "Search :name": "Search :name", + "See Other": "See Other", + "Select": "Select", + "Select All": "Select All", + "Send": "Send", + "Server Error": "Server Error", + "Service Unavailable": "Service Unavailable", + "Session Has Expired": "Session Has Expired", + "Settings": "Settings", + "Show": "Show", + "Show :name": "Show :name", + "Show All": "Show All", + "Showing": "Showing", + "Sign In": "Sign In", + "Solve": "Solve", + "SSL Handshake Failed": "SSL Handshake Failed", + "Start": "Start", + "Stop": "Stop", + "Submit": "Submit", + "Subscribe": "Subscribe", + "Switch": "Switch", + "Switch To Role": "Switch To Role", + "Switching Protocols": "Switching Protocols", + "Tag": "Tag", + "Tags": "Tags", + "Temporary Redirect": "Temporary Redirect", + "The given data was invalid.": "The given data was invalid.", + "The response is not a streamed response.": "The response is not a streamed response.", + "The response is not a view.": "The response is not a view.", + "This action is unauthorized.": "This action is unauthorized.", + "This password reset link will expire in :count minutes.": "This password reset link will expire in :count minutes.", + "to": "to", + "Toggle navigation": "Toggle navigation", + "Too Early": "Too Early", + "Too Many Requests": "Too Many Requests", + "Translate": "Translate", + "Translate It": "Translate It", + "Unauthorized": "Unauthorized", + "Unavailable For Legal Reasons": "Unavailable For Legal Reasons", + "Unknown Error": "Unknown Error", + "Unpack": "Unpack", + "Unprocessable Entity": "Unprocessable Entity", + "Unsubscribe": "Unsubscribe", + "Unsupported Media Type": "Unsupported Media Type", + "Up": "Up", + "Update": "Update", + "Update :name": "Update :name", + "Upgrade Required": "Upgrade Required", + "URI Too Long": "URI Too Long", + "Use Proxy": "Use Proxy", + "User": "User", + "Variant Also Negotiates": "Variant Also Negotiates", + "Verify Email Address": "Verify Email Address", + "View": "View", + "View :name": "View :name", + "Web Server is Down": "Web Server is Down", + "Whoops!": "Whoops!", + "Yes": "Yes", + "You are receiving this email because we received a password reset request for your account.": "You are receiving this email because we received a password reset request for your account.", + "Sign in to our platform": "Sign in to our platform", + "Your Email": "Your Email", + "Your Password": "Your Password", + "Remember me": "Remember me", + "Sign in": "Sign in", + "My Profile": "My Profile", + "Hello": "Hello", + "Create a website for the project": "Create a website
for the project", + "Sign Out": "Sign Out", + "Profile saved successfully": "Profile saved successfully", + "The password has been changed": "The password has been changed", + "Default": "default", + "The settings have been saved": "The settings have been saved", + "Access is denied": "Access is denied!", + "Do you want to delete?": "Do you want to delete?", + "The group was successfully created": "The group was successfully created", + "The group was successfully updated": "The group was successfully updated", + "The group has been deleted": "The group has been deleted", + "The user was successfully created": "The user was successfully created", + "The user was successfully updated": "The user was successfully updated", + "The user has been deleted": "The user has been deleted" +} diff --git a/app/src/lang/en/actions.php b/app/src/lang/en/actions.php new file mode 100644 index 0000000..5d256c0 --- /dev/null +++ b/app/src/lang/en/actions.php @@ -0,0 +1,118 @@ + 'Accept', + 'action' => 'Action', + 'actions' => 'Actions', + 'add' => 'Add', + 'admin' => 'Admin', + 'agree' => 'Agree', + 'archive' => 'Archive', + 'assign' => 'Assign', + 'associate' => 'Associate', + 'attach' => 'Attach', + 'browse' => 'Browse', + 'cancel' => 'Cancel', + 'choose' => 'Choose', + 'choose_file' => 'Choose File', + 'choose_image' => 'Choose Image', + 'click_to_copy' => 'Click to copy', + 'close' => 'Close', + 'collapse' => 'Collapse', + 'collapse_all' => 'Collapse All', + 'comment' => 'Comment', + 'confirm' => 'Confirm', + 'connect' => 'Connect', + 'create' => 'Create', + 'delete' => 'Delete', + 'detach' => 'Detach', + 'details' => 'Details', + 'disable' => 'Disable', + 'discard' => 'Discard', + 'done' => 'Done', + 'down' => 'Down', + 'duplicate' => 'Duplicate', + 'edit' => 'Edit', + 'enable' => 'Enable', + 'expand' => 'Expand', + 'expand_all' => 'Expand All', + 'explanation' => 'Explanation', + 'export' => 'Export', + 'file' => 'File', + 'files' => 'Files', + 'go_home' => 'Go Home', + 'hide' => 'Hide', + 'home' => 'Home', + 'image' => 'Image', + 'impersonate' => 'Impersonate', + 'impersonation' => 'Impersonation', + 'import' => 'Import', + 'introduction' => 'Introduction', + 'like' => 'Like', + 'load' => 'Load', + 'localize' => 'Localize', + 'log_in' => 'Log In', + 'log_out' => 'Log Out', + 'named' => [ + 'add' => 'Add :name', + 'choose' => 'Choose :name', + 'create' => 'Create :name', + 'delete' => 'Delete :name', + 'duplicate' => 'Duplicate :name', + 'edit' => 'Edit :name', + 'hide' => 'Hide :name', + 'import' => 'Import :name', + 'new' => 'New :name', + 'restore' => 'Restore :name', + 'save' => 'Save :name', + 'search' => 'Search :name', + 'show' => 'Show :name', + 'update' => 'Update :name', + 'view' => 'View :name', + ], + 'new' => 'New', + 'no' => 'No', + 'open' => 'Open', + 'open_website' => 'Open on the website', + 'preview' => 'Preview', + 'price' => 'Price', + 'record' => 'Record', + 'restore' => 'Restore', + 'save' => 'Save', + 'save_and_close' => 'Save & Close', + 'save_and_return' => 'Save & Return', + 'search' => 'Search', + 'select' => 'Select', + 'select_all' => 'Select All', + 'send' => 'Send', + 'settings' => 'Settings', + 'show' => 'Show', + 'show_all' => 'Show All', + 'sign_in' => 'Sign In', + 'solve' => 'Solve', + 'start' => 'Start', + 'stop' => 'Stop', + 'submit' => 'Submit', + 'subscribe' => 'Subscribe', + 'switch' => 'Switch', + 'switch_to_role' => 'Switch To Role', + 'tag' => 'Tag', + 'tags' => 'Tags', + 'target_link' => [ + 'blank' => 'Open in a new window', + 'parent' => 'Open in a parent frame', + 'self' => 'Open in a current window', + 'top' => 'Open in the topmost frame', + ], + 'translate' => 'Translate', + 'translate_it' => 'Translate It', + 'unpack' => 'Unpack', + 'unsubscribe' => 'Unsubscribe', + 'up' => 'Up', + 'update' => 'Update', + 'user' => 'User', + 'view' => 'View', + 'yes' => 'Yes', +]; diff --git a/app/src/lang/en/admin-sections.php b/app/src/lang/en/admin-sections.php new file mode 100644 index 0000000..1f4179f --- /dev/null +++ b/app/src/lang/en/admin-sections.php @@ -0,0 +1,7 @@ + 'Dashboard', + 'User group' => 'User group', + 'Users' => 'Users', + 'AdminPanel' => 'Admin Panel', +]; diff --git a/app/src/lang/en/auth.php b/app/src/lang/en/auth.php new file mode 100644 index 0000000..6db4982 --- /dev/null +++ b/app/src/lang/en/auth.php @@ -0,0 +1,9 @@ + 'These credentials do not match our records.', + 'password' => 'The password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', +]; diff --git a/app/src/lang/en/http-statuses.php b/app/src/lang/en/http-statuses.php new file mode 100644 index 0000000..3346f78 --- /dev/null +++ b/app/src/lang/en/http-statuses.php @@ -0,0 +1,84 @@ + 'Unknown Error', + '100' => 'Continue', + '101' => 'Switching Protocols', + '102' => 'Processing', + '200' => 'OK', + '201' => 'Created', + '202' => 'Accepted', + '203' => 'Non-Authoritative Information', + '204' => 'No Content', + '205' => 'Reset Content', + '206' => 'Partial Content', + '207' => 'Multi-Status', + '208' => 'Already Reported', + '226' => 'IM Used', + '300' => 'Multiple Choices', + '301' => 'Moved Permanently', + '302' => 'Found', + '303' => 'See Other', + '304' => 'Not Modified', + '305' => 'Use Proxy', + '307' => 'Temporary Redirect', + '308' => 'Permanent Redirect', + '400' => 'Bad Request', + '401' => 'Unauthorized', + '402' => 'Payment Required', + '403' => 'Forbidden', + '404' => 'Not Found', + '405' => 'Method Not Allowed', + '406' => 'Not Acceptable', + '407' => 'Proxy Authentication Required', + '408' => 'Request Timeout', + '409' => 'Conflict', + '410' => 'Gone', + '411' => 'Length Required', + '412' => 'Precondition Failed', + '413' => 'Payload Too Large', + '414' => 'URI Too Long', + '415' => 'Unsupported Media Type', + '416' => 'Range Not Satisfiable', + '417' => 'Expectation Failed', + '418' => 'I\'m a teapot', + '419' => 'Session Has Expired', + '421' => 'Misdirected Request', + '422' => 'Unprocessable Entity', + '423' => 'Locked', + '424' => 'Failed Dependency', + '425' => 'Too Early', + '426' => 'Upgrade Required', + '428' => 'Precondition Required', + '429' => 'Too Many Requests', + '431' => 'Request Header Fields Too Large', + '444' => 'Connection Closed Without Response', + '449' => 'Retry With', + '451' => 'Unavailable For Legal Reasons', + '499' => 'Client Closed Request', + '500' => 'Internal Server Error', + '501' => 'Not Implemented', + '502' => 'Bad Gateway', + '503' => 'Maintenance Mode', + '504' => 'Gateway Timeout', + '505' => 'HTTP Version Not Supported', + '506' => 'Variant Also Negotiates', + '507' => 'Insufficient Storage', + '508' => 'Loop Detected', + '509' => 'Bandwidth Limit Exceeded', + '510' => 'Not Extended', + '511' => 'Network Authentication Required', + '520' => 'Unknown Error', + '521' => 'Web Server is Down', + '522' => 'Connection Timed Out', + '523' => 'Origin Is Unreachable', + '524' => 'A Timeout Occurred', + '525' => 'SSL Handshake Failed', + '526' => 'Invalid SSL Certificate', + '527' => 'Railgun Error', + '598' => 'Network Read Timeout Error', + '599' => 'Network Connect Timeout Error', + 'unknownError' => 'Unknown Error', +]; diff --git a/app/src/lang/en/pagination.php b/app/src/lang/en/pagination.php new file mode 100644 index 0000000..f4cedde --- /dev/null +++ b/app/src/lang/en/pagination.php @@ -0,0 +1,8 @@ + 'Next »', + 'previous' => '« Previous', +]; diff --git a/app/src/lang/en/passwords.php b/app/src/lang/en/passwords.php new file mode 100644 index 0000000..f3b65ba --- /dev/null +++ b/app/src/lang/en/passwords.php @@ -0,0 +1,11 @@ + 'Your password has been reset.', + 'sent' => 'We have emailed your password reset link.', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => 'We can\'t find a user with that email address.', +]; diff --git a/app/src/lang/en/permissions.php b/app/src/lang/en/permissions.php new file mode 100644 index 0000000..4e1b331 --- /dev/null +++ b/app/src/lang/en/permissions.php @@ -0,0 +1,12 @@ + 'User group', + 'User' => 'Users', + 'Allowed to watch' => 'Allowed to watch', + 'Allowed to create' => 'Allowed to create', + 'Allowed to edit' => 'Allowed to edit', + 'Allowed to delete' => 'Allowed to delete', + 'Administrative panel allowed' => 'Administrative panel allowed', + 'AdminPanel' => 'Administrative panel allowed', +]; diff --git a/app/src/lang/en/validation.php b/app/src/lang/en/validation.php new file mode 100644 index 0000000..1383ab9 --- /dev/null +++ b/app/src/lang/en/validation.php @@ -0,0 +1,280 @@ + 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute must only contain letters.', + 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute must only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'array' => 'The :attribute must have between :min and :max items.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'numeric' => 'The :attribute must be between :min and :max.', + 'string' => 'The :attribute must be between :min and :max characters.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'can' => 'The :attribute field contains an unauthorized value.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'current_password' => 'The password is incorrect.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'decimal' => 'The :attribute field must have :decimal decimal places.', + 'declined' => 'The :attribute must be declined.', + 'declined_if' => 'The :attribute must be declined when :other is :value.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.', + 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'enum' => 'The :attribute field value is not in the list of allowed values.', + 'exists' => 'The :attribute field value does not exist.', + 'extensions' => 'The :attribute field must have one of the following extensions: :values.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'array' => 'The :attribute must have more than :value items.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'numeric' => 'The :attribute must be greater than :value.', + 'string' => 'The :attribute must be greater than :value characters.', + ], + 'gte' => [ + 'array' => 'The :attribute must have :value items or more.', + 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be greater than or equal to :value.', + 'string' => 'The :attribute must be greater than or equal to :value characters.', + ], + 'hex_color' => 'The :attribute field must be a valid hexadecimal color.', + 'image' => 'The :attribute must be an image.', + 'in' => 'The :attribute field value is not in the list of allowed values.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'list' => 'The :attribute field must be a list.', + 'lowercase' => 'The :attribute field must be lowercase.', + 'lt' => [ + 'array' => 'The :attribute must have less than :value items.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'numeric' => 'The :attribute must be less than :value.', + 'string' => 'The :attribute must be less than :value characters.', + ], + 'lte' => [ + 'array' => 'The :attribute must not have more than :value items.', + 'file' => 'The :attribute must be less than or equal to :value kilobytes.', + 'numeric' => 'The :attribute must be less than or equal to :value.', + 'string' => 'The :attribute must be less than or equal to :value characters.', + ], + 'mac_address' => 'The :attribute must be a valid MAC address.', + 'max' => [ + 'array' => 'The :attribute must not have more than :max items.', + 'file' => 'The :attribute must not be greater than :max kilobytes.', + 'numeric' => 'The :attribute must not be greater than :max.', + 'string' => 'The :attribute must not be greater than :max characters.', + ], + 'max_digits' => 'The :attribute field must not have more than :max digits.', + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'array' => 'The :attribute must have at least :min items.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'numeric' => 'The :attribute must be at least :min.', + 'string' => 'The :attribute must be at least :min characters.', + ], + 'min_digits' => 'The :attribute field must have at least :min digits.', + 'missing' => 'The :attribute field must be missing.', + 'missing_if' => 'The :attribute field must be missing when :other is :value.', + 'missing_unless' => 'The :attribute field must be missing unless :other is :value.', + 'missing_with' => 'The :attribute field must be missing when :values is present.', + 'missing_with_all' => 'The :attribute field must be missing when :values are present.', + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The :attribute field must not be in the list.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => [ + 'letters' => 'The :attribute field must contain at least one letter.', + 'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.', + 'numbers' => 'The :attribute field must contain at least one number.', + 'symbols' => 'The :attribute field must contain at least one symbol.', + 'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.', + ], + 'present' => 'The :attribute field must be present.', + 'present_if' => 'The :attribute field must be present when :other is :value.', + 'present_unless' => 'The :attribute field must be present unless :other is :value.', + 'present_with' => 'The :attribute field must be present when :values is present.', + 'present_with_all' => 'The :attribute field must be present when :values are present.', + 'prohibited' => 'The :attribute field is prohibited.', + 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', + 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', + 'prohibits' => 'The :attribute field prohibits :other from being present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_array_keys' => 'The :attribute field must contain entries for: :values.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_if_accepted' => 'The :attribute field is required when :other is accepted.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'array' => 'The :attribute must contain :size items.', + 'file' => 'The :attribute must be :size kilobytes.', + 'numeric' => 'The :attribute must be :size.', + 'string' => 'The :attribute must be :size characters.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid timezone.', + 'ulid' => 'The :attribute field must be a valid ULID.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'uppercase' => 'The :attribute field must be uppercase.', + 'url' => 'The :attribute must be a valid URL.', + 'uuid' => 'The :attribute must be a valid UUID.', + 'no_type' => 'The :attribute can only use: :type.', + 'attributes' => [ + 'address' => 'address', + 'affiliate_url' => 'affiliate URL', + 'age' => 'age', + 'amount' => 'amount', + 'announcement' => 'announcement', + 'area' => 'area', + 'audience_prize' => 'audience prize', + 'available' => 'available', + 'birthday' => 'birthday', + 'body' => 'body', + 'city' => 'city', + 'compilation' => 'compilation', + 'concept' => 'concept', + 'conditions' => 'conditions', + 'content' => 'content', + 'country' => 'country', + 'cover' => 'cover', + 'created_at' => 'created at', + 'creator' => 'creator', + 'currency' => 'currency', + 'current_password' => 'current password', + 'customer' => 'customer', + 'date' => 'date', + 'date_of_birth' => 'date of birth', + 'dates' => 'dates', + 'day' => 'day', + 'deleted_at' => 'deleted at', + 'description' => 'description', + 'display_type' => 'display type', + 'district' => 'district', + 'duration' => 'duration', + 'email' => 'email', + 'excerpt' => 'excerpt', + 'filter' => 'filter', + 'finished_at' => 'finished at', + 'first_name' => 'first name', + 'gender' => 'gender', + 'grand_prize' => 'grand prize', + 'group' => 'group', + 'hour' => 'hour', + 'image' => 'image', + 'image_desktop' => 'desktop image', + 'image_main' => 'main image', + 'image_mobile' => 'mobile image', + 'images' => 'images', + 'is_audience_winner' => 'is audience winner', + 'is_hidden' => 'is hidden', + 'is_subscribed' => 'is subscribed', + 'is_visible' => 'is visible', + 'is_winner' => 'is winner', + 'items' => 'items', + 'key' => 'key', + 'last_name' => 'last name', + 'lesson' => 'lesson', + 'line_address_1' => 'line address 1', + 'line_address_2' => 'line address 2', + 'login' => 'login', + 'message' => 'message', + 'middle_name' => 'middle name', + 'minute' => 'minute', + 'mobile' => 'mobile', + 'month' => 'month', + 'name' => 'name', + 'national_code' => 'national code', + 'number' => 'number', + 'password' => 'password', + 'password_confirmation' => 'password confirmation', + 'phone' => 'phone', + 'photo' => 'photo', + 'portfolio' => 'portfolio', + 'postal_code' => 'postal code', + 'preview' => 'preview', + 'price' => 'price', + 'product_id' => 'product ID', + 'product_uid' => 'product UID', + 'product_uuid' => 'product UUID', + 'promo_code' => 'promo code', + 'province' => 'province', + 'quantity' => 'quantity', + 'reason' => 'reason', + 'recaptcha_response_field' => 'recaptcha response field', + 'referee' => 'referee', + 'referees' => 'referees', + 'reject_reason' => 'reject reason', + 'remember' => 'remember', + 'restored_at' => 'restored at', + 'result_text_under_image' => 'result text under image', + 'role' => 'role', + 'rule' => 'rule', + 'rules' => 'rules', + 'second' => 'second', + 'sex' => 'sex', + 'shipment' => 'shipment', + 'short_text' => 'short text', + 'size' => 'size', + 'skills' => 'skills', + 'slug' => 'slug', + 'specialization' => 'specialization', + 'started_at' => 'started at', + 'state' => 'state', + 'status' => 'status', + 'street' => 'street', + 'student' => 'student', + 'subject' => 'subject', + 'tag' => 'tag', + 'tags' => 'tags', + 'teacher' => 'teacher', + 'terms' => 'terms', + 'test_description' => 'test description', + 'test_locale' => 'test locale', + 'test_name' => 'test name', + 'text' => 'text', + 'time' => 'time', + 'title' => 'title', + 'type' => 'type', + 'updated_at' => 'updated at', + 'user' => 'user', + 'username' => 'username', + 'value' => 'value', + 'year' => 'year', + 'lang' => 'language', + 'timezone' => 'timezone', + 'code' => 'code', + 'permissions' => 'permissions', + 'is_active' => 'is active', + 'roles' => 'user group', + ], +]; diff --git a/app/src/lang/ru.json b/app/src/lang/ru.json new file mode 100644 index 0000000..031cc0f --- /dev/null +++ b/app/src/lang/ru.json @@ -0,0 +1,242 @@ +{ + "(and :count more error)": "(и ещё :count ошибка)", + "(and :count more errors)": "(и ещё :count ошибка)|(и ещё :count ошибки)|(и ещё :count ошибок)", + "A Timeout Occurred": "Время ожидания истекло", + "Accept": "Принять", + "Accepted": "Принято", + "Action": "Действие", + "Actions": "Действия", + "Add": "Добавить", + "Add :name": "Добавить :name", + "Admin": "Панель администратора", + "Agree": "Согласен(на)", + "All rights reserved.": "Все права защищены.", + "Already Reported": "Уже сообщалось", + "Archive": "Архив", + "Assign": "Назначить", + "Associate": "Ассоциировать", + "Attach": "Прикрепить", + "Bad Gateway": "Плохой шлюз", + "Bad Request": "Некорректный запрос", + "Bandwidth Limit Exceeded": "Исчерпана пропускная ширина канала", + "Browse": "Просмотр", + "Cancel": "Отмена", + "Choose": "Выбрать", + "Choose :name": "Выбрать :name", + "Choose File": "Выбрать файл", + "Choose Image": "Выбрать изображение", + "Click to copy": "Скопировать", + "Client Closed Request": "Клиент прервал запрос", + "Close": "Закрыть", + "Collapse": "Свернуть", + "Collapse All": "Свернуть всё", + "Comment": "Комментарий", + "Confirm": "Подтвердить", + "Conflict": "Конфликт", + "Connect": "Подключить", + "Connection Closed Without Response": "Соединение закрыто без ответа", + "Connection Timed Out": "Соединение не отвечает", + "Continue": "Продолжай", + "Create": "Создать", + "Create :name": "Создать :name", + "Created": "Создано", + "Delete": "Удалить", + "Delete :name": "Удалить :name", + "Detach": "Открепить", + "Details": "Подробности", + "Disable": "Отключить", + "Discard": "Отказаться", + "Done": "Готово", + "Down": "Вниз", + "Duplicate": "Дублировать", + "Duplicate :name": "Дублировать :name", + "Edit": "Редактировать", + "Edit :name": "Редактировать :name", + "Enable": "Включить", + "errors": "ошибки", + "Expand": "Раскрыть", + "Expand All": "Раскрыть всё", + "Expectation Failed": "Ожидание не удалось", + "Explanation": "Объяснить", + "Export": "Экспорт", + "Failed Dependency": "Ошибка зависимости", + "File": "Файл", + "Files": "Файлы", + "Forbidden": "Запрещено", + "Found": "Найдено", + "Gateway Timeout": "Шлюз не отвечает", + "Go Home": "Домой", + "Go to page :page": "Перейти к :page-й странице", + "Gone": "Удалено", + "Hello!": "Здравствуйте!", + "Hide": "Скрыть", + "Hide :name": "Скрыть :name", + "Home": "На главную", + "HTTP Version Not Supported": "Версия HTTP не поддерживается", + "I'm a teapot": "Я - чайник", + "If you did not create an account, no further action is required.": "Если Вы не создавали учетную запись, никаких дополнительных действий не требуется.", + "If you did not request a password reset, no further action is required.": "Если Вы не запрашивали восстановление пароля, никаких дополнительных действий не требуется.", + "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Если у Вас возникли проблемы с нажатием кнопки \":actionText\", скопируйте и вставьте приведенный ниже URL-адрес в свой браузер:", + "IM Used": "Использовано IM", + "Image": "Изображение", + "Impersonate": "Войти под пользователем", + "Impersonation": "Войти под пользователем", + "Import": "Импорт", + "Import :name": "Импорт :name", + "Insufficient Storage": "Переполнение хранилища", + "Internal Server Error": "Внутренняя ошибка сервера", + "Introduction": "Введение", + "Invalid JSON was returned from the route.": "Маршрут вернул некорректный JSON.", + "Invalid SSL Certificate": "Недействительный SSL сертификат", + "Length Required": "Необходима длина", + "Like": "Нравится", + "Load": "Загрузить", + "Localize": "Локализовать", + "Location": "Местоположение", + "Locked": "Доступ заблокирован", + "Log In": "Войти", + "Log Out": "Выйти", + "Login": "Войти", + "Logout": "Выйти", + "Loop Detected": "Обнаружено бесконечное перенаправление", + "Maintenance Mode": "Ведутся технические работы", + "Method Not Allowed": "Метод запрещен", + "Misdirected Request": "Неверный запрос", + "Moved Permanently": "Перемещено навсегда", + "Multi-Status": "Много статусов", + "Multiple Choices": "Множество выбора", + "Network Authentication Required": "Требуется сетевая аутентификация", + "Network Connect Timeout Error": "Истекло время подключения", + "Network Read Timeout Error": "Истекло время ожидания", + "New": "Новый", + "New :name": "Новый :name", + "No": "Нет", + "No Content": "Содержимое отсутствует", + "Non-Authoritative Information": "Информация не авторитетна", + "Not Acceptable": "Неприемлемо", + "Not Extended": "Не расширено", + "Not Found": "Не найдено", + "Not Implemented": "Не реализовано", + "Not Modified": "Не изменялось", + "of": "из", + "OK": "ОК", + "Open": "Открыть", + "Open in a current window": "Открыть в текущем окне", + "Open in a new window": "Открыть в новом окне", + "Open in a parent frame": "Открыть в родительском фрейме", + "Open in the topmost frame": "Открыть в главном фрейме", + "Open on the website": "Открыть на сайте", + "Origin Is Unreachable": "Источник недоступен", + "Page Expired": "Страница устарела", + "Pagination Navigation": "Навигация", + "Partial Content": "Частичное содержимое", + "Payload Too Large": "Полезная нагрузка слишком велика", + "Payment Required": "Требуется оплата", + "Permanent Redirect": "Постоянное перенаправление", + "Please click the button below to verify your email address.": "Пожалуйста, нажмите кнопку ниже, чтобы подтвердить свой адрес электронной почты.", + "Precondition Failed": "Условие ложно", + "Precondition Required": "Требуется предусловие", + "Preview": "Предпросмотр", + "Price": "Цена", + "Processing": "Идет обработка", + "Proxy Authentication Required": "Требуется аутентификация прокси", + "Railgun Error": "Ошибка соединения с Railgun", + "Range Not Satisfiable": "Диапазон недостижим", + "Record": "Запись", + "Regards": "С уважением", + "Register": "Регистрация", + "Request Header Fields Too Large": "Поля заголовка слишком большие", + "Request Timeout": "Истекло время ожидания", + "Reset Content": "Сбросить содержимое", + "Reset Password": "Сбросить пароль", + "Reset Password Notification": "Оповещение о сбросе пароля", + "Restore": "Восстановить", + "Restore :name": "Восстановить :name", + "results": "результатов", + "Retry With": "Повторить с", + "Save": "Сохранить", + "Save & Close": "Сохранить и закрыть", + "Save & Return": "Сохранить и вернуться", + "Save :name": "Сохранить :name", + "Search": "Поиск", + "Search :name": "Поиск :name", + "See Other": "Смотри другое", + "Select": "Выбрать", + "Select All": "Выбрать всё", + "Send": "Отправить", + "Server Error": "Ошибка сервера", + "Service Unavailable": "Сервис недоступен", + "Session Has Expired": "Сессия устарела", + "Settings": "Настройки", + "Show": "Показать", + "Show :name": "Показать :name", + "Show All": "Показать всё", + "Showing": "Показано с", + "Sign In": "Регистрация", + "Solve": "Решить", + "SSL Handshake Failed": "Квитирование SSL не удалось", + "Start": "Начать", + "Stop": "Остановить", + "Submit": "Отправить", + "Subscribe": "Подписаться", + "Switch": "Переключить", + "Switch To Role": "Переключиться на роль", + "Switching Protocols": "Переключение протоколов", + "Tag": "Тег", + "Tags": "Теги", + "Temporary Redirect": "Временное перенаправление", + "The given data was invalid.": "Указанные данные недействительны.", + "The response is not a streamed response.": "Ответ не является потоковым.", + "The response is not a view.": "Ответ не является представлением.", + "This action is unauthorized.": "Действие не авторизовано.", + "This password reset link will expire in :count minutes.": "Срок действия ссылки для сброса пароля истекает через :count минут.", + "to": "по", + "Toggle navigation": "Переключить навигацию", + "Too Early": "Слишком рано", + "Too Many Requests": "Слишком много запросов", + "Translate": "Перевод", + "Translate It": "Перевести", + "Unauthorized": "Не авторизован", + "Unavailable For Legal Reasons": "Недоступно по юридическим причинам", + "Unknown Error": "Неизвестная ошибка", + "Unpack": "Распаковать", + "Unprocessable Entity": "Необрабатываемый экземпляр", + "Unsubscribe": "Отписаться", + "Unsupported Media Type": "Неподдерживаемый тип данных", + "Up": "Вверх", + "Update": "Обновить", + "Update :name": "Обновить :name", + "Upgrade Required": "Требуется обновление", + "URI Too Long": "URI слишком длинный", + "Use Proxy": "Используй прокси", + "User": "Пользователь", + "Variant Also Negotiates": "Вариант тоже проводит согласование", + "Verify Email Address": "Подтвердить адрес электронной почты", + "View": "Просмотр", + "View :name": "Посмотреть :name", + "Web Server is Down": "Веб-сервер не работает", + "Whoops!": "Упс!", + "Yes": "Да", + "You are receiving this email because we received a password reset request for your account.": "Вы получили это письмо, потому что мы получили запрос на сброс пароля для Вашей учётной записи.", + "Sign in to our platform": "Войдите на нашу платформу", + "Your Email": "Ваш Email", + "Your Password": "Ваш пароль", + "Remember me": "Запомнить", + "Sign in": "Войти", + "My Profile": "Мой профиль", + "Hello": "Здравствуйте", + "Create a website for the project": "Создать сайт для проекта", + "Sign Out": "Выйти", + "Profile saved successfully": "Профиль успешно сохранен", + "The password has been changed": "Пароль был изменен", + "Default": "По умолчанию", + "The settings have been saved": "Настройки были сохранены", + "Access is denied": "Доступ запрещён!", + "Do you want to delete?": "Вы хотите удалить?", + "The group was successfully created": "Группа успешно создана", + "The group was successfully updated": "Группа успешно обновлена", + "The group has been deleted": "Группа была удалена", + "The user was successfully created": "Пользователь был успешно создан", + "The user was successfully updated": "Пользователь был успешно обновлен", + "The user has been deleted": "Пользователь был удален" +} diff --git a/app/src/lang/ru/actions.php b/app/src/lang/ru/actions.php new file mode 100644 index 0000000..e73bf6a --- /dev/null +++ b/app/src/lang/ru/actions.php @@ -0,0 +1,118 @@ + 'Принять', + 'action' => 'Действие', + 'actions' => 'Действия', + 'add' => 'Добавить', + 'admin' => 'Панель администратора', + 'agree' => 'Согласен(на)', + 'archive' => 'Архив', + 'assign' => 'Назначить', + 'associate' => 'Ассоциировать', + 'attach' => 'Прикрепить', + 'browse' => 'Просмотр', + 'cancel' => 'Отмена', + 'choose' => 'Выбрать', + 'choose_file' => 'Выбрать файл', + 'choose_image' => 'Выбрать изображение', + 'click_to_copy' => 'Скопировать', + 'close' => 'Закрыть', + 'collapse' => 'Свернуть', + 'collapse_all' => 'Свернуть всё', + 'comment' => 'Комментарий', + 'confirm' => 'Подтвердить', + 'connect' => 'Подключить', + 'create' => 'Создать', + 'delete' => 'Удалить', + 'detach' => 'Открепить', + 'details' => 'Подробнее', + 'disable' => 'Отключить', + 'discard' => 'Отказаться', + 'done' => 'Готово', + 'down' => 'Вниз', + 'duplicate' => 'Дублировать', + 'edit' => 'Редактировать', + 'enable' => 'Включить', + 'expand' => 'Раскрыть', + 'expand_all' => 'Раскрыть всё', + 'explanation' => 'Объяснить', + 'export' => 'Экспорт', + 'file' => 'Файл', + 'files' => 'Файлы', + 'go_home' => 'Вернуться на главную', + 'hide' => 'Скрыть', + 'home' => 'На главную', + 'image' => 'Изображение', + 'impersonate' => 'Войти под пользователем', + 'impersonation' => 'Войти под пользователем', + 'import' => 'Импорт', + 'introduction' => 'Введение', + 'like' => 'Нравится', + 'load' => 'Загрузить', + 'localize' => 'Локализовать', + 'log_in' => 'Войти', + 'log_out' => 'Выйти', + 'named' => [ + 'add' => 'Добавить :name', + 'choose' => 'Выбрать :name', + 'create' => 'Создать :name', + 'delete' => 'Удалить :name', + 'duplicate' => 'Дублировать :name', + 'edit' => 'Редактировать :name', + 'hide' => 'Скрыть :name', + 'import' => 'Испортировать :name', + 'new' => 'Новый :name', + 'restore' => 'Восстановить :name', + 'save' => 'Сохранить :name', + 'search' => 'Искать :name', + 'show' => 'Показать :name', + 'update' => 'Обновить :name', + 'view' => 'Просмотреть :name', + ], + 'new' => 'Новый', + 'no' => 'Нет', + 'open' => 'Открыть', + 'open_website' => 'Открыть на сайте', + 'preview' => 'Предпросмотр', + 'price' => 'Цена', + 'record' => 'Запись', + 'restore' => 'Восстановить', + 'save' => 'Сохранить', + 'save_and_close' => 'Сохранить и закрыть', + 'save_and_return' => 'Сохранить и вернуться', + 'search' => 'Поиск', + 'select' => 'Выбрать', + 'select_all' => 'Выбрать всё', + 'send' => 'Отправить', + 'settings' => 'Настройки', + 'show' => 'Показать', + 'show_all' => 'Показать всё', + 'sign_in' => 'Регистрация', + 'solve' => 'Решить', + 'start' => 'Начать', + 'stop' => 'Остановить', + 'submit' => 'Отправить', + 'subscribe' => 'Подписаться', + 'switch' => 'Переключить', + 'switch_to_role' => 'Переключиться на роль', + 'tag' => 'Тег', + 'tags' => 'Теги', + 'target_link' => [ + 'blank' => 'Открыть в новом окне', + 'parent' => 'Открыть в родительском фрейме', + 'self' => 'Открыть в текущем окне', + 'top' => 'Открыть в главном фрейме', + ], + 'translate' => 'Перевод', + 'translate_it' => 'Перевести', + 'unpack' => 'Распаковать', + 'unsubscribe' => 'Отписаться', + 'up' => 'Вверх', + 'update' => 'Обновить', + 'user' => 'Пользователь', + 'view' => 'Просмотр', + 'yes' => 'Да', +]; diff --git a/app/src/lang/ru/admin-sections.php b/app/src/lang/ru/admin-sections.php new file mode 100644 index 0000000..425be65 --- /dev/null +++ b/app/src/lang/ru/admin-sections.php @@ -0,0 +1,7 @@ + 'Dashboard', + 'User group' => 'Группа пользователей', + 'Users' => 'Пользователи', + 'AdminPanel' => 'Админка', +]; diff --git a/app/src/lang/ru/auth.php b/app/src/lang/ru/auth.php new file mode 100644 index 0000000..38ca958 --- /dev/null +++ b/app/src/lang/ru/auth.php @@ -0,0 +1,9 @@ + 'Неверное имя пользователя или пароль.', + 'password' => 'Некорректный пароль.', + 'throttle' => 'Слишком много попыток входа. Пожалуйста, попробуйте ещё раз через :seconds секунд.', +]; diff --git a/app/src/lang/ru/http-statuses.php b/app/src/lang/ru/http-statuses.php new file mode 100644 index 0000000..fe135a0 --- /dev/null +++ b/app/src/lang/ru/http-statuses.php @@ -0,0 +1,84 @@ + 'Неизвестная ошибка', + '100' => 'Продолжай', + '101' => 'Переключение протоколов', + '102' => 'Идет обработка', + '200' => 'ОК', + '201' => 'Создано', + '202' => 'Принято', + '203' => 'Информация не авторитетна', + '204' => 'Содержимое отсутствует', + '205' => 'Сбросить содержимое', + '206' => 'Частичное содержимое', + '207' => 'Много статусов', + '208' => 'Уже сообщалось', + '226' => 'Использовано IM', + '300' => 'Множество выбора', + '301' => 'Перемещено навсегда', + '302' => 'Найдено', + '303' => 'Смотри другое', + '304' => 'Не изменялось', + '305' => 'Используй прокси', + '307' => 'Временное перенаправление', + '308' => 'Постоянное перенаправление', + '400' => 'Некорректный запрос', + '401' => 'Не авторизован', + '402' => 'Необходима оплата', + '403' => 'Доступ запрещен', + '404' => 'Не найдено', + '405' => 'Метод запрещен', + '406' => 'Неприемлемо', + '407' => 'Требуется аутентификация прокси', + '408' => 'Истекло время ожидания', + '409' => 'Конфликт', + '410' => 'Удалено', + '411' => 'Необходима длина', + '412' => 'Условие ложно', + '413' => 'Полезная нагрузка слишком велика', + '414' => 'URI слишком длинный', + '415' => 'Неподдерживаемый тип данных', + '416' => 'Диапазон недостижим', + '417' => 'Ожидание не удалось', + '418' => 'Я - чайник', + '419' => 'Сессия устарела', + '421' => 'Неверный запрос', + '422' => 'Необрабатываемый экземпляр', + '423' => 'Доступ заблокирован', + '424' => 'Ошибка зависимости', + '425' => 'Слишком рано', + '426' => 'Требуется обновление', + '428' => 'Требуется предусловие', + '429' => 'Слишком много запросов', + '431' => 'Поля заголовка слишком большие', + '444' => 'Соединение закрыто без ответа', + '449' => 'Повторить с', + '451' => 'Недоступно по юридическим причинам', + '499' => 'Клиент прервал запрос', + '500' => 'Внутренняя ошибка сервера', + '501' => 'Не реализовано', + '502' => 'Плохой шлюз', + '503' => 'Ведутся технические работы', + '504' => 'Шлюз не отвечает', + '505' => 'Версия HTTP не поддерживается', + '506' => 'Вариант тоже проводит согласование', + '507' => 'Переполнение хранилища', + '508' => 'Обнаружено бесконечное перенаправление', + '509' => 'Исчерпана пропускная ширина канала', + '510' => 'Не расширено', + '511' => 'Требуется сетевая аутентификация', + '520' => 'Неизвестная ошибка', + '521' => 'Веб-сервер не работает', + '522' => 'Соединение не отвечает', + '523' => 'Источник недоступен', + '524' => 'Время ожидания истекло', + '525' => 'Квитирование SSL не удалось', + '526' => 'Недействительный SSL сертификат', + '527' => 'Ошибка соединения с Railgun', + '598' => 'Истекло время ожидания', + '599' => 'Истекло время подключения', + 'unknownError' => 'Неизвестная ошибка', +]; diff --git a/app/src/lang/ru/pagination.php b/app/src/lang/ru/pagination.php new file mode 100644 index 0000000..f7cccdc --- /dev/null +++ b/app/src/lang/ru/pagination.php @@ -0,0 +1,8 @@ + 'Вперёд »', + 'previous' => '« Назад', +]; diff --git a/app/src/lang/ru/passwords.php b/app/src/lang/ru/passwords.php new file mode 100644 index 0000000..61f5336 --- /dev/null +++ b/app/src/lang/ru/passwords.php @@ -0,0 +1,11 @@ + 'Ваш пароль был сброшен.', + 'sent' => 'Ссылка на сброс пароля была отправлена.', + 'throttled' => 'Пожалуйста, подождите перед повторной попыткой.', + 'token' => 'Ошибочный код сброса пароля.', + 'user' => 'Не удалось найти пользователя с указанным электронным адресом.', +]; diff --git a/app/src/lang/ru/permissions.php b/app/src/lang/ru/permissions.php new file mode 100644 index 0000000..08b0305 --- /dev/null +++ b/app/src/lang/ru/permissions.php @@ -0,0 +1,13 @@ + 'Группа пользователей', + 'User' => 'Пользователи', + 'CaptchaToken' => 'Токены для создания капчи', + 'Allowed to watch' => 'Разрешено смотреть', + 'Allowed to create' => 'Разрешено создать', + 'Allowed to edit' => 'Разрешено редактировать', + 'Allowed to delete' => 'Разрешено удалять', + 'Administrative panel allowed' => 'Административная панель разрешена', + 'AdminPanel' => 'Административная панель разрешена', +]; diff --git a/app/src/lang/ru/validation.php b/app/src/lang/ru/validation.php new file mode 100644 index 0000000..6d5f16e --- /dev/null +++ b/app/src/lang/ru/validation.php @@ -0,0 +1,280 @@ + 'Вы должны принять :attribute.', + 'accepted_if' => 'Вы должны принять :attribute, когда :other содержит :value.', + 'active_url' => 'Значение поля :attribute должно быть действительным URL адресом.', + 'after' => 'Значение поля :attribute должно быть датой после :date.', + 'after_or_equal' => 'Значение поля :attribute должно быть датой после или равной :date.', + 'alpha' => 'Значение поля :attribute может содержать только буквы.', + 'alpha_dash' => 'Значение поля :attribute может содержать только буквы, цифры, дефис и нижнее подчеркивание.', + 'alpha_num' => 'Значение поля :attribute может содержать только буквы и цифры.', + 'array' => 'Значение поля :attribute должно быть массивом.', + 'ascii' => 'Значение поля :attribute должно содержать только однобайтовые цифро-буквенные символы.', + 'before' => 'Значение поля :attribute должно быть датой до :date.', + 'before_or_equal' => 'Значение поля :attribute должно быть датой до или равной :date.', + 'between' => [ + 'array' => 'Количество элементов в поле :attribute должно быть от :min до :max.', + 'file' => 'Размер файла в поле :attribute должен быть от :min до :max Кб.', + 'numeric' => 'Значение поля :attribute должно быть от :min до :max.', + 'string' => 'Количество символов в поле :attribute должно быть от :min до :max.', + ], + 'boolean' => 'Значение поля :attribute должно быть логического типа.', + 'can' => 'Значение поля :attribute должно быть авторизованным.', + 'confirmed' => 'Значение поля :attribute не совпадает с подтверждаемым.', + 'current_password' => 'Неверный пароль.', + 'date' => 'Значение поля :attribute должно быть корректной датой.', + 'date_equals' => 'Значение поля :attribute должно быть датой равной :date.', + 'date_format' => 'Значение поля :attribute должно соответствовать формату даты: :format.', + 'decimal' => 'Значение поля :attribute должно содержать :decimal цифр десятичных разрядов.', + 'declined' => 'Значение поля :attribute должно быть отклонено.', + 'declined_if' => 'Значение поля :attribute должно быть отклонено, когда :other содержит :value.', + 'different' => 'Значения полей :attribute и :other должны различаться.', + 'digits' => 'Количество символов в поле :attribute должно быть равным :digits.', + 'digits_between' => 'Количество символов в поле :attribute должно быть от :min до :max.', + 'dimensions' => 'Изображение, указанное в поле :attribute, имеет недопустимые размеры.', + 'distinct' => 'Элементы в значении поля :attribute не должны повторяться.', + 'doesnt_end_with' => 'Значение поля :attribute не должно заканчиваться одним из следующих: :values.', + 'doesnt_start_with' => 'Значение поля :attribute не должно начинаться с одного из следующих: :values.', + 'email' => 'Значение поля :attribute должно быть действительным электронным адресом.', + 'ends_with' => 'Значение поля :attribute должно заканчиваться одним из следующих: :values', + 'enum' => 'Значение поля :attribute отсутствует в списке разрешённых.', + 'exists' => 'Значение поля :attribute не существует.', + 'extensions' => 'Файл в поле :attribute должен иметь одно из следующих расширений: :values.', + 'file' => 'В поле :attribute должен быть указан файл.', + 'filled' => 'Значение поля :attribute обязательно для заполнения.', + 'gt' => [ + 'array' => 'Количество элементов в поле :attribute должно быть больше :value.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть больше :value Кб.', + 'numeric' => 'Значение поля :attribute должно быть больше :value.', + 'string' => 'Количество символов в поле :attribute должно быть больше :value.', + ], + 'gte' => [ + 'array' => 'Количество элементов в поле :attribute должно быть :value или больше.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть :value Кб или больше.', + 'numeric' => 'Значение поля :attribute должно быть :value или больше.', + 'string' => 'Количество символов в поле :attribute должно быть :value или больше.', + ], + 'hex_color' => 'Значение поля :attribute должно быть корректным цветом в HEX формате.', + 'image' => 'Файл, указанный в поле :attribute, должен быть изображением.', + 'in' => 'Значение поля :attribute отсутствует в списке разрешённых.', + 'in_array' => 'Значение поля :attribute должно быть указано в поле :other.', + 'integer' => 'Значение поля :attribute должно быть целым числом.', + 'ip' => 'Значение поля :attribute должно быть действительным IP-адресом.', + 'ipv4' => 'Значение поля :attribute должно быть действительным IPv4-адресом.', + 'ipv6' => 'Значение поля :attribute должно быть действительным IPv6-адресом.', + 'json' => 'Значение поля :attribute должно быть JSON строкой.', + 'list' => 'Значение поля :attribute должно быть списком.', + 'lowercase' => 'Значение поля :attribute должно быть в нижнем регистре.', + 'lt' => [ + 'array' => 'Количество элементов в поле :attribute должно быть меньше :value.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть меньше :value Кб.', + 'numeric' => 'Значение поля :attribute должно быть меньше :value.', + 'string' => 'Количество символов в поле :attribute должно быть меньше :value.', + ], + 'lte' => [ + 'array' => 'Количество элементов в поле :attribute должно быть :value или меньше.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть :value Кб или меньше.', + 'numeric' => 'Значение поля :attribute должно быть равным или меньше :value.', + 'string' => 'Количество символов в поле :attribute должно быть :value или меньше.', + ], + 'mac_address' => 'Значение поля :attribute должно быть корректным MAC-адресом.', + 'max' => [ + 'array' => 'Количество элементов в поле :attribute не может превышать :max.', + 'file' => 'Размер файла в поле :attribute не может быть больше :max Кб.', + 'numeric' => 'Значение поля :attribute не может быть больше :max.', + 'string' => 'Количество символов в значении поля :attribute не может превышать :max.', + ], + 'max_digits' => 'Значение поля :attribute не должно содержать больше :max цифр.', + 'mimes' => 'Файл, указанный в поле :attribute, должен быть одного из следующих типов: :values.', + 'mimetypes' => 'Файл, указанный в поле :attribute, должен быть одного из следующих типов: :values.', + 'min' => [ + 'array' => 'Количество элементов в поле :attribute должно быть не меньше :min.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть не меньше :min Кб.', + 'numeric' => 'Значение поля :attribute должно быть не меньше :min.', + 'string' => 'Количество символов в поле :attribute должно быть не меньше :min.', + ], + 'min_digits' => 'Значение поля :attribute должно содержать не меньше :min цифр.', + 'missing' => 'Значение поля :attribute должно отсутствовать.', + 'missing_if' => 'Значение поля :attribute должно отсутствовать, когда :other содержит :value.', + 'missing_unless' => 'Значение поля :attribute должно отсутствовать, когда :other не содержит :value.', + 'missing_with' => 'Значение поля :attribute должно отсутствовать, если :values указано.', + 'missing_with_all' => 'Значение поля :attribute должно отсутствовать, когда указаны все :values.', + 'multiple_of' => 'Значение поля :attribute должно быть кратным :value', + 'not_in' => 'Значение поля :attribute находится в списке запрета.', + 'not_regex' => 'Значение поля :attribute имеет некорректный формат.', + 'numeric' => 'Значение поля :attribute должно быть числом.', + 'password' => [ + 'letters' => 'Значение поля :attribute должно содержать хотя бы одну букву.', + 'mixed' => 'Значение поля :attribute должно содержать хотя бы одну прописную и одну строчную буквы.', + 'numbers' => 'Значение поля :attribute должно содержать хотя бы одну цифру.', + 'symbols' => 'Значение поля :attribute должно содержать хотя бы один символ.', + 'uncompromised' => 'Значение поля :attribute обнаружено в утёкших данных. Пожалуйста, выберите другое значение для :attribute.', + ], + 'present' => 'Значение поля :attribute должно быть.', + 'present_if' => 'Значение поля :attribute должно быть когда :other содержит :value.', + 'present_unless' => 'Значение поля :attribute должно быть, если только :other не содержит :value.', + 'present_with' => 'Значение поля :attribute должно быть когда одно из :values присутствуют.', + 'present_with_all' => 'Значение поля :attribute должно быть когда все из значений присутствуют: :values.', + 'prohibited' => 'Значение поля :attribute запрещено.', + 'prohibited_if' => 'Значение поля :attribute запрещено, когда :other содержит :value.', + 'prohibited_unless' => 'Значение поля :attribute запрещено, если :other не состоит в :values.', + 'prohibits' => 'Значение поля :attribute запрещает присутствие :other.', + 'regex' => 'Значение поля :attribute имеет некорректный формат.', + 'required' => 'Поле :attribute обязательно.', + 'required_array_keys' => 'Массив, указанный в поле :attribute, обязательно должен иметь ключи: :values', + 'required_if' => 'Поле :attribute обязательно для заполнения, когда :other содержит :value.', + 'required_if_accepted' => 'Поле :attribute обязательно, когда :other принято.', + 'required_unless' => 'Поле :attribute обязательно для заполнения, когда :other не содержит :values.', + 'required_with' => 'Поле :attribute обязательно для заполнения, когда :values указано.', + 'required_with_all' => 'Поле :attribute обязательно для заполнения, когда :values указано.', + 'required_without' => 'Поле :attribute обязательно для заполнения, когда :values не указано.', + 'required_without_all' => 'Поле :attribute обязательно для заполнения, когда ни одно из :values не указано.', + 'same' => 'Значения полей :attribute и :other должны совпадать.', + 'size' => [ + 'array' => 'Количество элементов в поле :attribute должно быть равным :size.', + 'file' => 'Размер файла, указанный в поле :attribute, должен быть равен :size Кб.', + 'numeric' => 'Значение поля :attribute должно быть равным :size.', + 'string' => 'Количество символов в поле :attribute должно быть равным :size.', + ], + 'starts_with' => 'Поле :attribute должно начинаться с одного из следующих значений: :values', + 'string' => 'Значение поля :attribute должно быть строкой.', + 'timezone' => 'Значение поля :attribute должно быть действительным часовым поясом.', + 'ulid' => 'Значение поля :attribute должно быть корректным ULID.', + 'unique' => 'Такое значение поля :attribute уже существует.', + 'uploaded' => 'Загрузка файла из поля :attribute не удалась.', + 'uppercase' => 'Значение поля :attribute должно быть в верхнем регистре.', + 'url' => 'Значение поля :attribute не является ссылкой или имеет некорректный формат.', + 'uuid' => 'Значение поля :attribute должно быть корректным UUID.', + 'no_type' => 'Значение поля :attribute может использовать только: :type.', + 'attributes' => [ + 'address' => 'адрес', + 'affiliate_url' => 'Партнёрская ссылка', + 'age' => 'возраст', + 'amount' => 'количество', + 'announcement' => 'анонс', + 'area' => 'область', + 'audience_prize' => 'приз зрительских симпатий', + 'available' => 'доступно', + 'birthday' => 'дата рождения', + 'body' => 'контент', + 'city' => 'город', + 'compilation' => 'компиляция', + 'concept' => 'концепт', + 'conditions' => 'условия', + 'content' => 'контент', + 'country' => 'страна', + 'cover' => 'обложка', + 'created_at' => 'создано в', + 'creator' => 'создатель', + 'currency' => 'валюта', + 'current_password' => 'текущий пароль', + 'customer' => 'клиент', + 'date' => 'дата', + 'date_of_birth' => 'день рождения', + 'dates' => 'даты', + 'day' => 'день', + 'deleted_at' => 'удалено в', + 'description' => 'описание', + 'display_type' => 'тип отображения', + 'district' => 'округ', + 'duration' => 'продолжительность', + 'email' => 'email адрес', + 'excerpt' => 'выдержка', + 'filter' => 'фильтр', + 'finished_at' => 'завершено в', + 'first_name' => 'имя', + 'gender' => 'пол', + 'grand_prize' => 'главный приз', + 'group' => 'группа', + 'hour' => 'час', + 'image' => 'изображение', + 'image_desktop' => 'десктопное изображение', + 'image_main' => 'основное изображение', + 'image_mobile' => 'мобильное изображение', + 'images' => 'изображения', + 'is_audience_winner' => 'победитель зрительских симпатий', + 'is_hidden' => 'скрыто', + 'is_subscribed' => 'подписан', + 'is_visible' => 'отображается', + 'is_winner' => 'победитель', + 'items' => 'элементы', + 'key' => 'ключ', + 'last_name' => 'фамилия', + 'lesson' => 'урок', + 'line_address_1' => 'строка адреса 1', + 'line_address_2' => 'строка адреса 2', + 'login' => 'логин', + 'message' => 'сообщение', + 'middle_name' => 'отчество', + 'minute' => 'минута', + 'mobile' => 'моб. номер', + 'month' => 'месяц', + 'name' => 'имя', + 'national_code' => 'национальный код', + 'number' => 'номер', + 'password' => 'пароль', + 'password_confirmation' => 'подтверждение пароля', + 'phone' => 'номер телефона', + 'photo' => 'фотография', + 'portfolio' => 'портфолио', + 'postal_code' => 'индекс', + 'preview' => 'предпросмотр', + 'price' => 'стоимость', + 'product_id' => 'ID продукта', + 'product_uid' => 'UID продукта', + 'product_uuid' => 'UUID продукта', + 'promo_code' => 'промокод', + 'province' => 'провинция', + 'quantity' => 'количество', + 'reason' => 'причина', + 'recaptcha_response_field' => 'ошибка капчи', + 'referee' => 'жюри', + 'referees' => 'жюри', + 'reject_reason' => 'причина отказа', + 'remember' => 'запомнить', + 'restored_at' => 'восстановлено в', + 'result_text_under_image' => 'текст под изображением', + 'role' => 'роль', + 'rule' => 'правило', + 'rules' => 'правила', + 'second' => 'секунда', + 'sex' => 'пол', + 'shipment' => 'доставка', + 'short_text' => 'короткое описание', + 'size' => 'размер', + 'skills' => 'навыки', + 'slug' => 'слаг', + 'specialization' => 'специализация', + 'started_at' => 'началось в', + 'state' => 'штат', + 'status' => 'статус', + 'street' => 'улица', + 'student' => 'студент', + 'subject' => 'заголовок', + 'tag' => 'тег', + 'tags' => 'теги', + 'teacher' => 'учитель', + 'terms' => 'правила', + 'test_description' => 'тестовое описание', + 'test_locale' => 'тестовая локализация', + 'test_name' => 'тестовое имя', + 'text' => 'текст', + 'time' => 'время', + 'title' => 'наименование', + 'type' => 'тип', + 'updated_at' => 'обновлено в', + 'user' => 'пользователь', + 'username' => 'никнейм', + 'value' => 'значение', + 'year' => 'год', + 'lang' => 'язык', + 'timezone' => 'часовой пояс', + 'code' => 'код', + 'permissions' => 'разрешения', + 'is_active' => 'активен', + 'roles' => 'группа пользователей', + ], +]; diff --git a/app/src/package-lock.json b/app/src/package-lock.json new file mode 100644 index 0000000..c5a1cc4 --- /dev/null +++ b/app/src/package-lock.json @@ -0,0 +1,2157 @@ +{ + "name": "html", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@popperjs/core": "^2.9.2", + "bootstrap": "5.0.2", + "chartist": "^0.11.4", + "chartist-plugin-tooltips": "^0.0.17", + "notyf": "^3.10.0", + "nouislider": "^15.2.0", + "onscreen": "^1.4.0", + "sass": "^1.47.0", + "simplebar": "^5.3.4", + "smooth-scroll": "^16.1.3", + "sweetalert2": "^11.0.18", + "vanillajs-datepicker": "^1.2.0", + "waypoints": "^4.0.1" + }, + "devDependencies": { + "axios": "^1.6.4", + "laravel-vite-plugin": "^1.0", + "sass-loader": "^13.3.2", + "vite": "^5.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", + "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", + "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", + "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", + "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", + "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", + "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", + "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", + "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", + "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", + "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", + "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", + "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", + "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", + "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", + "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", + "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", + "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", + "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", + "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", + "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", + "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", + "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", + "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true, + "peer": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@juggle/resize-observer": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", + "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==" + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.13.2.tgz", + "integrity": "sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.13.2.tgz", + "integrity": "sha512-GdxxXbAuM7Y/YQM9/TwwP+L0omeE/lJAR1J+olu36c3LqqZEBdsIWeQ91KBe6nxwOnb06Xh7JS2U5ooWU5/LgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.13.2.tgz", + "integrity": "sha512-mCMlpzlBgOTdaFs83I4XRr8wNPveJiJX1RLfv4hggyIVhfB5mJfN4P8Z6yKh+oE4Luz+qq1P3kVdWrCKcMYrrA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.13.2.tgz", + "integrity": "sha512-yUoEvnH0FBef/NbB1u6d3HNGyruAKnN74LrPAfDQL3O32e3k3OSfLrPgSJmgb3PJrBZWfPyt6m4ZhAFa2nZp2A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.13.2.tgz", + "integrity": "sha512-GYbLs5ErswU/Xs7aGXqzc3RrdEjKdmoCrgzhJWyFL0r5fL3qd1NPcDKDowDnmcoSiGJeU68/Vy+OMUluRxPiLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.13.2.tgz", + "integrity": "sha512-L1+D8/wqGnKQIlh4Zre9i4R4b4noxzH5DDciyahX4oOz62CphY7WDWqJoQ66zNR4oScLNOqQJfNSIAe/6TPUmQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.13.2.tgz", + "integrity": "sha512-tK5eoKFkXdz6vjfkSTCupUzCo40xueTOiOO6PeEIadlNBkadH1wNOH8ILCPIl8by/Gmb5AGAeQOFeLev7iZDOA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.13.2.tgz", + "integrity": "sha512-zvXvAUGGEYi6tYhcDmb9wlOckVbuD+7z3mzInCSTACJ4DQrdSLPNUeDIcAQW39M3q6PDquqLWu7pnO39uSMRzQ==", + "cpu": [ + "ppc64le" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.13.2.tgz", + "integrity": "sha512-C3GSKvMtdudHCN5HdmAMSRYR2kkhgdOfye4w0xzyii7lebVr4riCgmM6lRiSCnJn2w1Xz7ZZzHKuLrjx5620kw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.13.2.tgz", + "integrity": "sha512-l4U0KDFwzD36j7HdfJ5/TveEQ1fUTjFFQP5qIt9gBqBgu1G8/kCaq5Ok05kd5TG9F8Lltf3MoYsUMw3rNlJ0Yg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.13.2.tgz", + "integrity": "sha512-xXMLUAMzrtsvh3cZ448vbXqlUa7ZL8z0MwHp63K2IIID2+DeP5iWIT6g1SN7hg1VxPzqx0xZdiDM9l4n9LRU1A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.13.2.tgz", + "integrity": "sha512-M/JYAWickafUijWPai4ehrjzVPKRCyDb1SLuO+ZyPfoXgeCEAlgPkNXewFZx0zcnoIe3ay4UjXIMdXQXOZXWqA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.13.2.tgz", + "integrity": "sha512-2YWwoVg9KRkIKaXSh0mz3NmfurpmYoBBTAXA9qt7VXk0Xy12PoOP40EFuau+ajgALbbhi4uTj3tSG3tVseCjuA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.13.2.tgz", + "integrity": "sha512-2FSsE9aQ6OWD20E498NYKEQLneShWes0NGMPQwxWOdws35qQXH+FplabOSP5zEe1pVjurSDOGEVCE2agFwSEsw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.13.2.tgz", + "integrity": "sha512-7h7J2nokcdPePdKykd8wtc8QqqkqxIrUz7MHj6aNr8waBRU//NLDVnNjQnqQO6fqtjrtCdftpbTuOKAyrAQETQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/eslint": { + "version": "8.56.6", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.6.tgz", + "integrity": "sha512-ymwc+qb1XkjT/gfoQwxIeHZ6ixH23A+tCT2ADSA/DPVKzAjwYkTXBMCQ/f6fe4wEa85Lhp26VPeUxI7wMhAi7A==", + "dev": true, + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "peer": true + }, + "node_modules/@types/node": { + "version": "20.12.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.2.tgz", + "integrity": "sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==", + "dev": true, + "peer": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.12.1.tgz", + "integrity": "sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz", + "integrity": "sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz", + "integrity": "sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.12.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true, + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz", + "integrity": "sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-opt": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1", + "@webassemblyjs/wast-printer": "1.12.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz", + "integrity": "sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz", + "integrity": "sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-buffer": "1.12.1", + "@webassemblyjs/wasm-gen": "1.12.1", + "@webassemblyjs/wasm-parser": "1.12.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz", + "integrity": "sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz", + "integrity": "sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==", + "dev": true, + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.12.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "peer": true + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peer": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peer": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/axios": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "dev": true, + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bootstrap": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.0.2.tgz", + "integrity": "sha512-1Ge963tyEQWJJ+8qtXFU6wgmAVj9gweEjibUdbmcCEYsn38tVwRk8107rk2vzt6cfQcRr3SlZ8aQBqaD8aqf+Q==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + }, + "peerDependencies": { + "@popperjs/core": "^2.9.2" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "peer": true, + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "peer": true + }, + "node_modules/can-use-dom": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/can-use-dom/-/can-use-dom-0.1.0.tgz", + "integrity": "sha512-ceOhN1DL7Y4O6M0j9ICgmTYziV89WMd96SvSl0REd8PMgrY0B/WBOPoed5S1KUmJqXgUXh8gzSe6E3ae27upsQ==" + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001603", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001603.tgz", + "integrity": "sha512-iL2iSS0eDILMb9n5yKQoTBim9jMZ0Yrk8g0N9K7UzYyWnfIKzXBZD5ngpM37ZcL/cv0Mli8XtVMRYMQAfFpi5Q==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "peer": true + }, + "node_modules/chartist": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/chartist/-/chartist-0.11.4.tgz", + "integrity": "sha512-H4AimxaUD738/u9Mq8t27J4lh6STsLi4BQHt65nOtpLk3xyrBPaLiLMrHw7/WV9CmsjGA02WihjuL5qpSagLYw==", + "engines": { + "node": ">=4.6.0" + } + }, + "node_modules/chartist-plugin-tooltips": { + "version": "0.0.17", + "resolved": "https://registry.npmjs.org/chartist-plugin-tooltips/-/chartist-plugin-tooltips-0.0.17.tgz", + "integrity": "sha512-frXv269MyRHfuhyZILdTTsNG4PP3+Ab0NkysdnMk73aN4w76oWarsGguuciYzZawKrctp8RZzU/W44A4+Y4vOg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true, + "peer": true + }, + "node_modules/core-js": { + "version": "3.36.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.36.1.tgz", + "integrity": "sha512-BTvUrwxVBezj5SZ3f10ImnX2oRByMxql3EimVqMysepbC9EeMUOpLwdy6Eoili2x6E4kf+ZUB5k/+Jv55alPfA==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.722", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.722.tgz", + "integrity": "sha512-5nLE0TWFFpZ80Crhtp4pIp8LXCztjYX41yUcV6b+bKR2PqzjskTMOOlBi1VjBHlvHwS+4gar7kNKOrsbsewEZQ==", + "dev": true, + "peer": true + }, + "node_modules/enhanced-resolve": { + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.16.0.tgz", + "integrity": "sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==", + "dev": true, + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/es-module-lexer": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.5.0.tgz", + "integrity": "sha512-pqrTKmwEIgafsYZAGw9kszYzmagcE/n4dbgwGWLEXg7J4QFJVQRBld8j3Q3GNez79jzxZshq0bcT962QHOghjw==", + "dev": true, + "peer": true + }, + "node_modules/esbuild": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", + "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.20.2", + "@esbuild/android-arm": "0.20.2", + "@esbuild/android-arm64": "0.20.2", + "@esbuild/android-x64": "0.20.2", + "@esbuild/darwin-arm64": "0.20.2", + "@esbuild/darwin-x64": "0.20.2", + "@esbuild/freebsd-arm64": "0.20.2", + "@esbuild/freebsd-x64": "0.20.2", + "@esbuild/linux-arm": "0.20.2", + "@esbuild/linux-arm64": "0.20.2", + "@esbuild/linux-ia32": "0.20.2", + "@esbuild/linux-loong64": "0.20.2", + "@esbuild/linux-mips64el": "0.20.2", + "@esbuild/linux-ppc64": "0.20.2", + "@esbuild/linux-riscv64": "0.20.2", + "@esbuild/linux-s390x": "0.20.2", + "@esbuild/linux-x64": "0.20.2", + "@esbuild/netbsd-x64": "0.20.2", + "@esbuild/openbsd-x64": "0.20.2", + "@esbuild/sunos-x64": "0.20.2", + "@esbuild/win32-arm64": "0.20.2", + "@esbuild/win32-ia32": "0.20.2", + "@esbuild/win32-x64": "0.20.2" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "peer": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "peer": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "peer": true + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "peer": true + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "peer": true + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "peer": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/immutable": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", + "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "peer": true + }, + "node_modules/laravel-vite-plugin": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.2.tgz", + "integrity": "sha512-Mcclml10khYzBVxDwJro8wnVDwD4i7XOSEMACQNnarvTnHjrjXLLL+B/Snif2wYAyElsOqagJZ7VAinb/2vF5g==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "vite-plugin-full-reload": "^1.1.0" + }, + "bin": { + "clean-orphaned-assets": "bin/clean.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" + }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "peer": true + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true, + "peer": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/notyf": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/notyf/-/notyf-3.10.0.tgz", + "integrity": "sha512-Mtnp+0qiZxgrH+TzVlzhWyZceHdAZ/UWK0/ju9U0HQeDpap1mZ8cC7H5wSI5mwgni6yeAjaxsTw0sbMK+aSuHw==" + }, + "node_modules/nouislider": { + "version": "15.7.1", + "resolved": "https://registry.npmjs.org/nouislider/-/nouislider-15.7.1.tgz", + "integrity": "sha512-5N7C1ru/i8y3dg9+Z6ilj6+m1EfabvOoaRa7ztpxBSKKRZso4vA52DGSbBJjw5XLtFr/LZ9SgGAXqyVtlVHO5w==" + }, + "node_modules/onscreen": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/onscreen/-/onscreen-1.4.0.tgz", + "integrity": "sha512-fmMKd0DSAxxCx36/K6gsj5AlyIGg2WvCiYkDGTZm+YeiNm9q5xJA0IlKMU75wRS5HzvxwGEY+i5CqkxpS//E7w==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info." + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.4.38", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", + "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rollup": { + "version": "4.13.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.13.2.tgz", + "integrity": "sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.13.2", + "@rollup/rollup-android-arm64": "4.13.2", + "@rollup/rollup-darwin-arm64": "4.13.2", + "@rollup/rollup-darwin-x64": "4.13.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.13.2", + "@rollup/rollup-linux-arm64-gnu": "4.13.2", + "@rollup/rollup-linux-arm64-musl": "4.13.2", + "@rollup/rollup-linux-powerpc64le-gnu": "4.13.2", + "@rollup/rollup-linux-riscv64-gnu": "4.13.2", + "@rollup/rollup-linux-s390x-gnu": "4.13.2", + "@rollup/rollup-linux-x64-gnu": "4.13.2", + "@rollup/rollup-linux-x64-musl": "4.13.2", + "@rollup/rollup-win32-arm64-msvc": "4.13.2", + "@rollup/rollup-win32-ia32-msvc": "4.13.2", + "@rollup/rollup-win32-x64-msvc": "4.13.2", + "fsevents": "~2.3.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "peer": true + }, + "node_modules/sass": { + "version": "1.72.0", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.72.0.tgz", + "integrity": "sha512-Gpczt3WA56Ly0Mn8Sl21Vj94s1axi9hDIzDFn9Ph9x3C3p4nNyvsqJoQyVXKou6cBlfFWEgRW4rT8Tb4i3XnVA==", + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/sass-loader": { + "version": "13.3.3", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.3.3.tgz", + "integrity": "sha512-mt5YN2F1MOZr3d/wBRcZxeFgwgkH44wVc2zohO2YF6JiOMkiXe4BYRZpSu2sO1g71mo/j16txzUhsKZlqjVGzA==", + "dev": true, + "dependencies": { + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 14.15.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/simplebar": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/simplebar/-/simplebar-5.3.9.tgz", + "integrity": "sha512-1vIIpjDvY9sVH14e0LGeiCiTFU3ILqAghzO6OI9axeG+mvU/vMSrvXeAXkBolqFFz3XYaY8n5ahH9MeP3sp2Ag==", + "dependencies": { + "@juggle/resize-observer": "^3.3.1", + "can-use-dom": "^0.1.0", + "core-js": "^3.0.1", + "lodash.debounce": "^4.0.8", + "lodash.memoize": "^4.1.2", + "lodash.throttle": "^4.1.1" + } + }, + "node_modules/smooth-scroll": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/smooth-scroll/-/smooth-scroll-16.1.3.tgz", + "integrity": "sha512-ca9U+neJS/cbdScTBuUTCZvUWNF2EuMCk7oAx3ImdeRK5FPm+xRo9XsVHIkeEVkn7MBRx+ufVEhyveM4ZhaTGA==" + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", + "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/sweetalert2": { + "version": "11.10.7", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.10.7.tgz", + "integrity": "sha512-5Jlzrmaitay6KzU+2+LhYu9q+L4v/dZ8oZyEDH14ep0C/QilCnFLHmqAyD/Lhq/lm5DiwsOs6Tr58iv8k3wyGg==", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/limonte" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/terser": { + "version": "5.30.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.30.1.tgz", + "integrity": "sha512-PJhOnRttZqqmIujxOQOMu4QuFGvh43lR7Youln3k6OJvmxwZ5FxK5rbCEh8XABRCpLf7ZnhrZuclCNCASsScnA==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "peer": true + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "peer": true, + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "peer": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vanillajs-datepicker": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/vanillajs-datepicker/-/vanillajs-datepicker-1.3.4.tgz", + "integrity": "sha512-waOyp2Ay+K1VA/B5cNlFgSNzFR9efCVKaoyMyNEAhAwmKLzMB9nCJs6Vqmo6HuHWA98VEHXbgz5thZ7hH/uohA==" + }, + "node_modules/vite": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.7.tgz", + "integrity": "sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==", + "dev": true, + "dependencies": { + "esbuild": "^0.20.1", + "postcss": "^8.4.38", + "rollup": "^4.13.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.1.0.tgz", + "integrity": "sha512-3cObNDzX6DdfhD9E7kf6w2mNunFpD7drxyNgHLw+XwIYAgb+Xt16SEXo0Up4VH+TMf3n+DSVJZtW2POBGcBYAA==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, + "node_modules/watchpack": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.1.tgz", + "integrity": "sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==", + "dev": true, + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/waypoints": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/waypoints/-/waypoints-4.0.1.tgz", + "integrity": "sha512-PbydbsTvCFYoE1DaRAKBM4xPQi+7ULcULZ7vK79NLM55da5g46oyY62Xv9X5Z9F7O/qXmcS/XJ7Ae2pYij4bpw==" + }, + "node_modules/webpack": { + "version": "5.91.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.91.0.tgz", + "integrity": "sha512-rzVwlLeBWHJbmgTC/8TvAcu5vpJNII+MelQpylD4jNERPwpBJOE2lEcko1zJX3QJeLjTTAnQxn/OJ8bjDzVQaw==", + "dev": true, + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.12.1", + "@webassemblyjs/wasm-edit": "^1.12.1", + "@webassemblyjs/wasm-parser": "^1.12.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.16.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.1", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "peer": true, + "engines": { + "node": ">=10.13.0" + } + } + } +} diff --git a/app/src/package.json b/app/src/package.json new file mode 100644 index 0000000..04fbfe8 --- /dev/null +++ b/app/src/package.json @@ -0,0 +1,29 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "dependencies": { + "@popperjs/core": "^2.9.2", + "bootstrap": "5.0.2", + "chartist": "^0.11.4", + "chartist-plugin-tooltips": "^0.0.17", + "notyf": "^3.10.0", + "nouislider": "^15.2.0", + "onscreen": "^1.4.0", + "sass": "^1.47.0", + "simplebar": "^5.3.4", + "smooth-scroll": "^16.1.3", + "sweetalert2": "^11.0.18", + "vanillajs-datepicker": "^1.2.0", + "waypoints": "^4.0.1" + }, + "devDependencies": { + "axios": "^1.6.4", + "laravel-vite-plugin": "^1.0", + "sass-loader": "^13.3.2", + "vite": "^5.0" + } +} diff --git a/app/src/phpunit.xml b/app/src/phpunit.xml new file mode 100644 index 0000000..506b9a3 --- /dev/null +++ b/app/src/phpunit.xml @@ -0,0 +1,33 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + + diff --git a/app/src/public/.htaccess b/app/src/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/app/src/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/app/src/public/favicon.ico b/app/src/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/src/public/index.php b/app/src/public/index.php new file mode 100644 index 0000000..947d989 --- /dev/null +++ b/app/src/public/index.php @@ -0,0 +1,17 @@ +handleRequest(Request::capture()); diff --git a/app/src/public/robots.txt b/app/src/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/app/src/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/app/src/resources/views/admin/_scripts/_click-confirm.blade.php b/app/src/resources/views/admin/_scripts/_click-confirm.blade.php new file mode 100644 index 0000000..71cf845 --- /dev/null +++ b/app/src/resources/views/admin/_scripts/_click-confirm.blade.php @@ -0,0 +1,16 @@ + diff --git a/app/src/resources/views/admin/dashboard/index.blade.php b/app/src/resources/views/admin/dashboard/index.blade.php new file mode 100644 index 0000000..ad40fea --- /dev/null +++ b/app/src/resources/views/admin/dashboard/index.blade.php @@ -0,0 +1,5 @@ +@section('meta_title', __('admin-sections.Dashboard')) +@section('h1', __('admin-sections.Dashboard')) + + + diff --git a/app/src/resources/views/admin/layout/_navigation.blade.php b/app/src/resources/views/admin/layout/_navigation.blade.php new file mode 100644 index 0000000..2a01fac --- /dev/null +++ b/app/src/resources/views/admin/layout/_navigation.blade.php @@ -0,0 +1,38 @@ +
  • request()->route()->named('admin.home') +])> + + + + + {{ __('admin-sections.Dashboard') }} + +
  • +@can('viewAny', \App\Models\User::class) +
  • request()->route()->named('admin.users.*'), + ])> + + + + + {{ __('admin-sections.Users') }} + +
  • +@endcan + +@can('viewAny', \App\Models\Role::class) +
  • request()->route()->named('admin.roles.*'), + ])> + + + + + {{ __('admin-sections.User group') }} + +
  • +@endcan diff --git a/app/src/resources/views/admin/roles/_from.blade.php b/app/src/resources/views/admin/roles/_from.blade.php new file mode 100644 index 0000000..bf0124a --- /dev/null +++ b/app/src/resources/views/admin/roles/_from.blade.php @@ -0,0 +1,7 @@ +@csrf + + + +@canany(['create', 'update'], $role) + +@endcanany diff --git a/app/src/resources/views/admin/roles/_top.blade.php b/app/src/resources/views/admin/roles/_top.blade.php new file mode 100644 index 0000000..f4b856a --- /dev/null +++ b/app/src/resources/views/admin/roles/_top.blade.php @@ -0,0 +1,8 @@ +@can('create', \App\Models\Role::class) + +@endcan diff --git a/app/src/resources/views/admin/roles/create.blade.php b/app/src/resources/views/admin/roles/create.blade.php new file mode 100644 index 0000000..6623ca9 --- /dev/null +++ b/app/src/resources/views/admin/roles/create.blade.php @@ -0,0 +1,16 @@ +@section('meta_title', __('admin-sections.User group')) +@section('h1', __('admin-sections.User group')) + + @include('admin.roles._top') +
    +
    +
    +
    +
    + @include('admin.roles._from') +
    +
    +
    +
    +
    +
    diff --git a/app/src/resources/views/admin/roles/edit.blade.php b/app/src/resources/views/admin/roles/edit.blade.php new file mode 100644 index 0000000..26482ca --- /dev/null +++ b/app/src/resources/views/admin/roles/edit.blade.php @@ -0,0 +1,17 @@ +@section('meta_title', __('admin-sections.User group')) +@section('h1', __('admin-sections.User group')) + + @include('admin.roles._top') +
    +
    +
    +
    +
    + @method('PUT') + @include('admin.roles._from') +
    +
    +
    +
    +
    +
    diff --git a/app/src/resources/views/admin/roles/index.blade.php b/app/src/resources/views/admin/roles/index.blade.php new file mode 100644 index 0000000..b7f46e7 --- /dev/null +++ b/app/src/resources/views/admin/roles/index.blade.php @@ -0,0 +1,54 @@ +@section('meta_title', __('admin-sections.User group')) +@section('h1', __('admin-sections.User group')) + + @include('admin.roles._top') +
    +
    +
    + + + + + + + + + + @foreach($roles as $role) + + + + + + @endforeach + +
    {{ __('validation.attributes.name') }}{{ __('validation.attributes.code') }}
    + + + + + {{ $role->name }} + + {{ $role->code }} + @if($role->is_remove) + @can('delete', $role) +
    + @csrf + @method('DELETE') + +
    + @endcan + @endif +
    + +
    +
    +
    + @push('scripts') + @include('admin._scripts._click-confirm', ['alert' => __('Do you want to delete?')]) + @endpush +
    diff --git a/app/src/resources/views/admin/users/_from.blade.php b/app/src/resources/views/admin/users/_from.blade.php new file mode 100644 index 0000000..f6dca5f --- /dev/null +++ b/app/src/resources/views/admin/users/_from.blade.php @@ -0,0 +1,12 @@ +@csrf + + +@if (empty($user->id)) + +@endif +
    + +
    +@canany(['create', 'update'], $user) + +@endcanany diff --git a/app/src/resources/views/admin/users/_top.blade.php b/app/src/resources/views/admin/users/_top.blade.php new file mode 100644 index 0000000..d22a257 --- /dev/null +++ b/app/src/resources/views/admin/users/_top.blade.php @@ -0,0 +1,8 @@ +@can('create', \App\Models\User::class) + +@endcan diff --git a/app/src/resources/views/admin/users/create.blade.php b/app/src/resources/views/admin/users/create.blade.php new file mode 100644 index 0000000..85d3261 --- /dev/null +++ b/app/src/resources/views/admin/users/create.blade.php @@ -0,0 +1,16 @@ +@section('meta_title', __('admin-sections.Users')) +@section('h1', __('admin-sections.Users')) + + @include('admin.users._top') +
    +
    +
    +
    +
    + @include('admin.users._from') +
    +
    +
    +
    +
    +
    diff --git a/app/src/resources/views/admin/users/edit.blade.php b/app/src/resources/views/admin/users/edit.blade.php new file mode 100644 index 0000000..94bbefa --- /dev/null +++ b/app/src/resources/views/admin/users/edit.blade.php @@ -0,0 +1,34 @@ +@section('meta_title', __('admin-sections.Users')) +@section('h1', __('admin-sections.Users')) + + @include('admin.users._top') +
    +
    +
    +
    +
    + @method('PUT') + @include('admin.users._from') +
    +
    +
    +
    +
    + + @can('update', $user) +
    +
    +
    +
    +
    + @method('PUT') + @csrf + + + +
    +
    +
    +
    + @endcan +
    diff --git a/app/src/resources/views/admin/users/index.blade.php b/app/src/resources/views/admin/users/index.blade.php new file mode 100644 index 0000000..85fed0d --- /dev/null +++ b/app/src/resources/views/admin/users/index.blade.php @@ -0,0 +1,52 @@ +@section('meta_title', __('admin-sections.Users')) +@section('h1', __('admin-sections.Users')) + + @include('admin.users._top') +
    +
    +
    + + + + + + + + + + @foreach($users as $user) + + + + + + @endforeach + +
    {{ __('validation.attributes.name') }}{{ __('validation.attributes.email') }}
    + + + + + {{ $user->name }} + + {{ $user->email }} + @can('delete', $user) +
    + @csrf + @method('DELETE') + +
    + @endcan +
    + +
    +
    +
    + @push('scripts') + @include('admin._scripts._click-confirm', ['alert' => __('Do you want to delete?')]) + @endpush +
    diff --git a/app/src/resources/views/components/volt/forms/checkbox.blade.php b/app/src/resources/views/components/volt/forms/checkbox.blade.php new file mode 100644 index 0000000..a88014b --- /dev/null +++ b/app/src/resources/views/components/volt/forms/checkbox.blade.php @@ -0,0 +1,12 @@ +
    + @if(!is_null($notCheckedValue)) + + @endif + + + @error($name) + {{ $message }} + @enderror +
    diff --git a/app/src/resources/views/components/volt/forms/input.blade.php b/app/src/resources/views/components/volt/forms/input.blade.php new file mode 100644 index 0000000..2550e3a --- /dev/null +++ b/app/src/resources/views/components/volt/forms/input.blade.php @@ -0,0 +1,7 @@ +
    + + + @error($name) + {{ $message }} + @enderror +
    diff --git a/app/src/resources/views/components/volt/forms/multi_checkbox.blade.php b/app/src/resources/views/components/volt/forms/multi_checkbox.blade.php new file mode 100644 index 0000000..40a9757 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/multi_checkbox.blade.php @@ -0,0 +1,16 @@ +
    +
    {{ $title }}
    + @error($requestName) + {{ $message }} + @enderror +
    + @foreach($list as $elementValue => $elementTitle) +
    + + +
    + @endforeach +
    +
    diff --git a/app/src/resources/views/components/volt/forms/permissions_for_role.blade.php b/app/src/resources/views/components/volt/forms/permissions_for_role.blade.php new file mode 100644 index 0000000..6890081 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/permissions_for_role.blade.php @@ -0,0 +1,24 @@ +
    +
    {{ $title }}
    + @error($requestName) + {{ $message }} + @enderror + @foreach($permissions as $mainPermission) +
    +
    + {{ $mainPermission->getTitle() }} +
    +
      + @foreach($mainPermission->getPermissions() as $keyPermission => $permission) +
    • + is_admin || $value->search($mainPermission->formatValue($keyPermission)) !== false) @disabled($role->is_admin) id="form-permission-{{ $requestName }}-{{ $mainPermission->name }}-{{ $keyPermission }}"> + +
    • + @endforeach +
    +
    +
    + @endforeach +
    diff --git a/app/src/resources/views/components/volt/forms/select.blade.php b/app/src/resources/views/components/volt/forms/select.blade.php new file mode 100644 index 0000000..341fde5 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/select.blade.php @@ -0,0 +1,12 @@ +
    + + + @error($name) + {{ $message }} + @enderror +
    diff --git a/app/src/resources/views/layout/auth.blade.php b/app/src/resources/views/layout/auth.blade.php new file mode 100644 index 0000000..352a8c6 --- /dev/null +++ b/app/src/resources/views/layout/auth.blade.php @@ -0,0 +1,28 @@ + + + + + + + @yield('meta_title', '') + + + + @vite('resources/volt/scss/app.scss') + + + + + +
    + +
    +
    + {{ $slot }} +
    +
    +
    + + @vite('resources/volt/js/app.js') + + diff --git a/app/src/resources/views/layout/private.blade.php b/app/src/resources/views/layout/private.blade.php new file mode 100644 index 0000000..45d9e5d --- /dev/null +++ b/app/src/resources/views/layout/private.blade.php @@ -0,0 +1,134 @@ + + + + + + + @yield('meta_title', '') + + + + @vite('resources/volt/scss/app.scss') + + + + + + + + + +
    + + + @includeWhen($errors->any(), 'layout.private._errors', ['errors' => $errors->all()]) + @includeWhen(Session::has('success'), 'layout.private._success', ['success' => Session::get('success')]) + + {{ $slot }} + + +
    + +@vite('resources/volt/js/app.js') +@stack('scripts') + + diff --git a/app/src/resources/views/layout/private/_errors.blade.php b/app/src/resources/views/layout/private/_errors.blade.php new file mode 100644 index 0000000..6537f74 --- /dev/null +++ b/app/src/resources/views/layout/private/_errors.blade.php @@ -0,0 +1,9 @@ + diff --git a/app/src/resources/views/layout/private/_success.blade.php b/app/src/resources/views/layout/private/_success.blade.php new file mode 100644 index 0000000..ecb41c9 --- /dev/null +++ b/app/src/resources/views/layout/private/_success.blade.php @@ -0,0 +1,5 @@ + diff --git a/app/src/resources/views/login.blade.php b/app/src/resources/views/login.blade.php new file mode 100644 index 0000000..5920fad --- /dev/null +++ b/app/src/resources/views/login.blade.php @@ -0,0 +1,60 @@ +@section('meta_title', __('Sign in to our platform')) + +
    +
    +
    +
    +

    {{ __('Sign in to our platform') }}

    +
    + @if ($errors->any()) +
    +
      + @foreach ($errors->all() as $error) +
    • {{ $error }}
    • + @endforeach +
    +
    + @endif +
    + @csrf + +
    + +
    + + + + +
    +
    + +
    + +
    + +
    + + + + +
    +
    + +
    +
    + + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    diff --git a/app/src/resources/views/private/layout/_navigation.blade.php b/app/src/resources/views/private/layout/_navigation.blade.php new file mode 100644 index 0000000..d4042cb --- /dev/null +++ b/app/src/resources/views/private/layout/_navigation.blade.php @@ -0,0 +1,34 @@ +@can('AdminPanel') + +@endif +
  • request()->route()->named('profile.edit'), + ])> + + + + + {{ __('My Profile') }} + +
  • +
  • request()->route()->named('profile.settings'), + ])> + + + + + {{ __('Settings') }} + +
  • diff --git a/app/src/resources/views/private/profile/profile.blade.php b/app/src/resources/views/private/profile/profile.blade.php new file mode 100644 index 0000000..6ebc1c5 --- /dev/null +++ b/app/src/resources/views/private/profile/profile.blade.php @@ -0,0 +1,34 @@ +@section('meta_title', __('My Profile')) +@section('h1', __('My Profile')) + +
    +
    +
    +
    +
    + @csrf + @method('PUT') + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    + @csrf + @method('PUT') + + + + +
    +
    +
    +
    +
    diff --git a/app/src/resources/views/private/profile/settings.blade.php b/app/src/resources/views/private/profile/settings.blade.php new file mode 100644 index 0000000..c91ced4 --- /dev/null +++ b/app/src/resources/views/private/profile/settings.blade.php @@ -0,0 +1,23 @@ +@section('meta_title', __('Settings')) +@section('h1', __('Settings')) + +
    +
    +
    +
    +
    + @csrf + @method('PUT') + + + + + + + +
    +
    +
    +
    +
    +
    diff --git a/app/src/resources/volt/LICENSE.md b/app/src/resources/volt/LICENSE.md new file mode 100644 index 0000000..b852f2b --- /dev/null +++ b/app/src/resources/volt/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2021 Themesberg (Crafty Dwarf LLC) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/app/src/resources/volt/images/brand/dark.png b/app/src/resources/volt/images/brand/dark.png new file mode 100644 index 0000000000000000000000000000000000000000..2c5a026382e1982ad71d052a9323162edf62d7b1 GIT binary patch literal 1189 zcmV;W1X}xvP)_E@REOp+Oy9sUj)Q&QR@M zy@@|_pDpj?1@~B2v3fx^x&j>-0YX9r_a{2R7!N{v=K!SMK|uX_pbx7+W>U2^cDhm* z++$vy;syV1Tv65w65<442{Q}?43OR_*Q!lz?}KLE0`x%@N{0Yq#{lS)Ga$rmb-`jh ziSmLw#-kk<19Xc8kdin|#&OVwXF=|p1o<3RtC9gSF6=Zw3cn6)>18OCU$Rg~CI%xBj9tUH%Vgz%)pP4>KZxva z3NDk>mh+qs5*Z0V1LH6pw7^K%&H~wL0|pM1vDjqcfP0Bmm!Oe^(}}+GLE{t+BC8rq zi4Y`S>~Wy+=i8v1AFl(pbHJUG@!p1DL=(D$C(FlYLD=FJq_>ZN%p^eS(SbUM163;4 z!1?`S7z$cI5tsrjX*`{ShzTSPiiP5-{R*PKq`xc}vEP5T-m?}7 zC!+mVf--s__kXCKTTfm0H>h-%lGi>AwvR>-ORmCBc(XQV|2k^ZF0}}*D+GaC-FVVS zUIEIqr)xT9XnKbK#AFJxqXq29JL*QB;w@K;svbHS@n3+j3Q57UZ;$Q`lAUm{mI>Bdv$y9(bsf>$X7 zvEOdjMII?VrL@XZO1Ep59{%S+x{7{&>U@jwbrbvza*qh(lWs!N00000NkvXXu0mjf D#r!Fq literal 0 HcmV?d00001 diff --git a/app/src/resources/volt/images/brand/light.png b/app/src/resources/volt/images/brand/light.png new file mode 100644 index 0000000000000000000000000000000000000000..f0eb3cd33b8b4514eddad824ee1776f494a7f3b2 GIT binary patch literal 1180 zcmV;N1Y`S&P)bri=BNJDXi28or(mJ4I-hC@&^*A~OLKzG1g ziUMiPAWYO?gi?uS4F+4_S||{32@nvt!3}x4KnM)tUbwtW-a+03mxbYYQF;5e=V@H- z1s=E%^xeMy{m%L9{LXov-yvG9J{xII;?Cplz1V7l4+t-s@Au^KK)Xs5ClJ>p?!yUK;9{ahu*c+fKSh(<_E?S$F3& znftVpLq<9`*!*ngngQqA{9Fe&c+cm}>jt*)ZQ=&+{i0#H1Ug#`VR0f9hrdb(|2q*5 zU5LbshC7xATVAZ=23rMIa0R}gtpol=F(U3hL(>o-e>ezXO*&$vxd;$-1cj_9ge5K40}@N@=}&ifEVRzpWme{t}k zuxxIyO;o~SL4t@9h*~8`l;xu9$rxL0$M7hUYb6*MpTXc$;Cg8yvf7Fu2rpS2Y#S@& z1`D#o<_DPZ-EcX-99gY*kX~Pgxaus#{Vry!WPptOM<)?enTf)lVtkoj0n@|B7J{Ag znA{w4Z*nHxoioY-4xzay=qX~8W;W*_v-wxttVl!u*pvdCAk9H;S0Q^Qzq<(bp*iz^ zC^O{I{ysN20D83h_#@?@<1yuILdNmZOq6srp?_>z0WH1Xg0y>L#Tmw~(PgS&(~lm~ zd2FF2wLhp*Imk7t3__U*sd5R@>VH!J71hdeRiKRBVk=a^2fk&#mSx0Gict1aQA*2qAN3z zB)@~2!3Qk3Z*&qVatY#P*$}tqvCzbZV!Y#fV-EU~*>mz}UZTIV3W63{UaC|4I5uvE z|Ls4}J2HWIX}Y4<8I7fi%9#m|lm1(|t562*&AM~o{a0k{i>HVp~Cr~b@t7D|cqjZEMWk^@g+BZ7;bvGz^w z#(VxE=)P>M3T1B0AtRPnEbk#BGCkF?>SvJmY5VGzLFfD++GL=ZaJ8+oeS(gZ1k$P% z1WmI2DUV1)eJIl&{;gc~Cz(s0qpz?Vrn=w**Q)8IGs$z5(v>mskeUZZy-CA3k0ZvEY4Fhw>|1$1U~JFTmNphZsk u*NErYMLe%Aa* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/resources/volt/js/app.js b/app/src/resources/volt/js/app.js new file mode 100644 index 0000000..daaea29 --- /dev/null +++ b/app/src/resources/volt/js/app.js @@ -0,0 +1,5 @@ +import.meta.glob([ + '../images/**', +]); +import './bootstrap'; +import './volt.js'; diff --git a/app/src/resources/volt/js/bootstrap.js b/app/src/resources/volt/js/bootstrap.js new file mode 100644 index 0000000..846d350 --- /dev/null +++ b/app/src/resources/volt/js/bootstrap.js @@ -0,0 +1,32 @@ +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +import axios from 'axios'; +window.axios = axios; + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// import Pusher from 'pusher-js'; +// window.Pusher = Pusher; + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: import.meta.env.VITE_PUSHER_APP_KEY, +// cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1', +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, +// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, +// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', +// enabledTransports: ['ws', 'wss'], +// }); diff --git a/app/src/resources/volt/js/volt.js b/app/src/resources/volt/js/volt.js new file mode 100644 index 0000000..6a9ba93 --- /dev/null +++ b/app/src/resources/volt/js/volt.js @@ -0,0 +1,364 @@ +/* + +========================================================= +* Volt Pro - Premium Bootstrap 5 Dashboard +========================================================= + +* Product Page: https://themesberg.com/product/admin-dashboard/volt-bootstrap-5-dashboard +* Copyright 2021 Themesberg (https://www.themesberg.com) + +* Designed and coded by https://themesberg.com + +========================================================= + +* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Please contact us to request a removal. Contact us if you want to remove it. + +*/ + +"use strict"; +const d = document; + +import * as bootstrap from 'bootstrap'; +import Swal from 'sweetalert2'; +import SmoothScroll from 'smooth-scroll'; +import Chartist from 'chartist'; +import 'chartist-plugin-tooltips'; + +d.addEventListener("DOMContentLoaded", function(event) { + + const swalWithBootstrapButtons = Swal.mixin({ + customClass: { + confirmButton: 'btn btn-primary me-3', + cancelButton: 'btn btn-gray' + }, + buttonsStyling: false + }); + + var themeSettingsEl = document.getElementById('theme-settings'); + var themeSettingsExpandEl = document.getElementById('theme-settings-expand'); + + if(themeSettingsEl) { + + var themeSettingsCollapse = new bootstrap.Collapse(themeSettingsEl, { + show: true, + toggle: false + }); + + if (window.localStorage.getItem('settings_expanded') === 'true') { + themeSettingsCollapse.show(); + themeSettingsExpandEl.classList.remove('show'); + } else { + themeSettingsCollapse.hide(); + themeSettingsExpandEl.classList.add('show'); + } + + themeSettingsEl.addEventListener('hidden.bs.collapse', function () { + themeSettingsExpandEl.classList.add('show'); + window.localStorage.setItem('settings_expanded', false); + }); + + themeSettingsExpandEl.addEventListener('click', function () { + themeSettingsExpandEl.classList.remove('show'); + window.localStorage.setItem('settings_expanded', true); + setTimeout(function() { + themeSettingsCollapse.show(); + }, 300); + }); + } + + // options + const breakpoints = { + sm: 540, + md: 720, + lg: 960, + xl: 1140 + }; + + var sidebar = document.getElementById('sidebarMenu') + if(sidebar && d.body.clientWidth < breakpoints.lg) { + sidebar.addEventListener('shown.bs.collapse', function () { + document.querySelector('body').style.position = 'fixed'; + }); + sidebar.addEventListener('hidden.bs.collapse', function () { + document.querySelector('body').style.position = 'relative'; + }); + } + + var iconNotifications = d.querySelector('.notification-bell'); + if (iconNotifications) { + iconNotifications.addEventListener('shown.bs.dropdown', function () { + iconNotifications.classList.remove('unread'); + }); + } + + [].slice.call(d.querySelectorAll('[data-background]')).map(function(el) { + el.style.background = 'url(' + el.getAttribute('data-background') + ')'; + }); + + [].slice.call(d.querySelectorAll('[data-background-lg]')).map(function(el) { + if(document.body.clientWidth > breakpoints.lg) { + el.style.background = 'url(' + el.getAttribute('data-background-lg') + ')'; + } + }); + + [].slice.call(d.querySelectorAll('[data-background-color]')).map(function(el) { + el.style.background = 'url(' + el.getAttribute('data-background-color') + ')'; + }); + + [].slice.call(d.querySelectorAll('[data-color]')).map(function(el) { + el.style.color = 'url(' + el.getAttribute('data-color') + ')'; + }); + + //Tooltips + var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) + var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { + return new bootstrap.Tooltip(tooltipTriggerEl) + }) + + + // Popovers + var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')) + var popoverList = popoverTriggerList.map(function (popoverTriggerEl) { + return new bootstrap.Popover(popoverTriggerEl) + }) + + + // Datepicker + var datepickers = [].slice.call(d.querySelectorAll('[data-datepicker]')) + var datepickersList = datepickers.map(function (el) { + return new Datepicker(el, { + buttonClass: 'btn' + }); + }) + + if(d.querySelector('.input-slider-container')) { + [].slice.call(d.querySelectorAll('.input-slider-container')).map(function(el) { + var slider = el.querySelector(':scope .input-slider'); + var sliderId = slider.getAttribute('id'); + var minValue = slider.getAttribute('data-range-value-min'); + var maxValue = slider.getAttribute('data-range-value-max'); + + var sliderValue = el.querySelector(':scope .range-slider-value'); + var sliderValueId = sliderValue.getAttribute('id'); + var startValue = sliderValue.getAttribute('data-range-value-low'); + + var c = d.getElementById(sliderId), + id = d.getElementById(sliderValueId); + + noUiSlider.create(c, { + start: [parseInt(startValue)], + connect: [true, false], + //step: 1000, + range: { + 'min': [parseInt(minValue)], + 'max': [parseInt(maxValue)] + } + }); + }); + } + + if (d.getElementById('input-slider-range')) { + var c = d.getElementById("input-slider-range"), + low = d.getElementById("input-slider-range-value-low"), + e = d.getElementById("input-slider-range-value-high"), + f = [d, e]; + + noUiSlider.create(c, { + start: [parseInt(low.getAttribute('data-range-value-low')), parseInt(e.getAttribute('data-range-value-high'))], + connect: !0, + tooltips: true, + range: { + min: parseInt(c.getAttribute('data-range-value-min')), + max: parseInt(c.getAttribute('data-range-value-max')) + } + }), c.noUiSlider.on("update", function (a, b) { + f[b].textContent = a[b] + }); + } + + //Chartist + + if(d.querySelector('.ct-chart-sales-value')) { + //Chart 5 + new Chartist.Line('.ct-chart-sales-value', { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + series: [ + [0, 10, 30, 40, 80, 60, 100] + ] + }, { + low: 0, + showArea: true, + fullWidth: true, + plugins: [ + Chartist.plugins.tooltip() + ], + axisX: { + // On the x-axis start means top and end means bottom + position: 'end', + showGrid: true + }, + axisY: { + // On the y-axis start means left and end means right + showGrid: false, + showLabel: false, + labelInterpolationFnc: function(value) { + return '$' + (value / 1) + 'k'; + } + } + }); + } + + if(d.querySelector('.ct-chart-ranking')) { + var chart = new Chartist.Bar('.ct-chart-ranking', { + labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + series: [ + [1, 5, 2, 5, 4, 3], + [2, 3, 4, 8, 1, 2], + ] + }, { + low: 0, + showArea: true, + plugins: [ + Chartist.plugins.tooltip() + ], + axisX: { + // On the x-axis start means top and end means bottom + position: 'end' + }, + axisY: { + // On the y-axis start means left and end means right + showGrid: false, + showLabel: false, + offset: 0 + } + }); + + chart.on('draw', function(data) { + if(data.type === 'line' || data.type === 'area') { + data.element.animate({ + d: { + begin: 2000 * data.index, + dur: 2000, + from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(), + to: data.path.clone().stringify(), + easing: Chartist.Svg.Easing.easeOutQuint + } + }); + } + }); + } + + if(d.querySelector('.ct-chart-traffic-share')) { + var data = { + series: [70, 20, 10] + }; + + var sum = function(a, b) { return a + b }; + + new Chartist.Pie('.ct-chart-traffic-share', data, { + labelInterpolationFnc: function(value) { + return Math.round(value / data.series.reduce(sum) * 100) + '%'; + }, + low: 0, + high: 8, + donut: true, + donutWidth: 20, + donutSolid: true, + fullWidth: false, + showLabel: false, + plugins: [ + Chartist.plugins.tooltip() + ], + }); + } + + if (d.getElementById('loadOnClick')) { + d.getElementById('loadOnClick').addEventListener('click', function () { + var button = this; + var loadContent = d.getElementById('extraContent'); + var allLoaded = d.getElementById('allLoadedText'); + + button.classList.add('btn-loading'); + button.setAttribute('disabled', 'true'); + + setTimeout(function () { + loadContent.style.display = 'block'; + button.style.display = 'none'; + allLoaded.style.display = 'block'; + }, 1500); + }); + } + + var scroll = new SmoothScroll('a[href*="#"]', { + speed: 500, + speedAsDuration: true + }); + + if(d.querySelector('.current-year')){ + d.querySelector('.current-year').textContent = new Date().getFullYear(); + } + + // Glide JS + + if (d.querySelector('.glide')) { + new Glide('.glide', { + type: 'carousel', + startAt: 0, + perView: 3 + }).mount(); + } + + if (d.querySelector('.glide-testimonials')) { + new Glide('.glide-testimonials', { + type: 'carousel', + startAt: 0, + perView: 1, + autoplay: 2000 + }).mount(); + } + + if (d.querySelector('.glide-clients')) { + new Glide('.glide-clients', { + type: 'carousel', + startAt: 0, + perView: 5, + autoplay: 2000 + }).mount(); + } + + if (d.querySelector('.glide-news-widget')) { + new Glide('.glide-news-widget', { + type: 'carousel', + startAt: 0, + perView: 1, + autoplay: 2000 + }).mount(); + } + + if (d.querySelector('.glide-autoplay')) { + new Glide('.glide-autoplay', { + type: 'carousel', + startAt: 0, + perView: 3, + autoplay: 2000 + }).mount(); + } + + // Pricing countup + var billingSwitchEl = d.getElementById('billingSwitch'); + if(billingSwitchEl) { + const countUpStandard = new countUp.CountUp('priceStandard', 99, { startVal: 199 }); + const countUpPremium = new countUp.CountUp('pricePremium', 199, { startVal: 299 }); + + billingSwitchEl.addEventListener('change', function() { + if(billingSwitch.checked) { + countUpStandard.start(); + countUpPremium.start(); + } else { + countUpStandard.reset(); + countUpPremium.reset(); + } + }); + } + +}); diff --git a/app/src/resources/volt/scss/_variables.scss b/app/src/resources/volt/scss/_variables.scss new file mode 100644 index 0000000..e6a0b57 --- /dev/null +++ b/app/src/resources/volt/scss/_variables.scss @@ -0,0 +1 @@ +$primary: #0d6efd; diff --git a/app/src/resources/volt/scss/app.scss b/app/src/resources/volt/scss/app.scss new file mode 100644 index 0000000..fca7402 --- /dev/null +++ b/app/src/resources/volt/scss/app.scss @@ -0,0 +1,89 @@ +/* + +========================================================= +* Volt - Free Bootstrap 5 Dashboard +========================================================= + +* Product Page: https://themesberg.com/product/admin-dashboard/volt-bootstrap-5-dashboard +* Copyright 2021 Themesberg (https://www.themesberg.com) + +* Designed and coded by https://themesberg.com + +========================================================= + +* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Please contact us to request a removal. Contact us if you want to remove it. + +*/ + +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); + +// update variables here +@import "variables"; + +@import "bootstrap/scss/functions"; +@import "volt/variables"; + +// Third party +@import 'vanillajs-datepicker/sass/datepicker.scss'; +@import "chartist/dist/scss/chartist.scss"; + +// Bootstrap +@import "bootstrap/scss/variables"; +@import "bootstrap/scss/mixins"; +@import "bootstrap/scss/utilities"; + +// Modify utilities here +@import "volt/utilities"; + +// Bootstrap Layout & components +@import "bootstrap/scss/root"; +@import "bootstrap/scss/reboot"; +@import "bootstrap/scss/type"; +@import "bootstrap/scss/images"; +@import "bootstrap/scss/containers"; +@import "bootstrap/scss/grid"; +@import "bootstrap/scss/tables"; +@import "bootstrap/scss/forms"; +@import "bootstrap/scss/buttons"; +@import "bootstrap/scss/transitions"; +@import "bootstrap/scss/dropdown"; +@import "bootstrap/scss/button-group"; +@import "bootstrap/scss/nav"; +@import "bootstrap/scss/navbar"; +@import "bootstrap/scss/card"; +@import "bootstrap/scss/accordion"; +@import "bootstrap/scss/breadcrumb"; +@import "bootstrap/scss/pagination"; +@import "bootstrap/scss/badge"; +@import "bootstrap/scss/alert"; +@import "bootstrap/scss/progress"; +@import "bootstrap/scss/list-group"; +@import "bootstrap/scss/close"; +@import "bootstrap/scss/toasts"; +@import "bootstrap/scss/modal"; +@import "bootstrap/scss/tooltip"; +@import "bootstrap/scss/popover"; +@import "bootstrap/scss/carousel"; +@import "bootstrap/scss/spinners"; + +// Helpers +@import "bootstrap/scss/helpers"; + +// Utilities +@import "bootstrap/scss/utilities/api"; +// scss-docs-end import-stack + +// volt mixins & functions +@import "volt/mixins"; +@import "volt/functions"; + +// Layout +@import "volt/layout"; + +// Components +@import "volt/components"; + +// Forms +@import "volt/forms"; + +// write your custom styles here! diff --git a/app/src/resources/volt/scss/volt/_components.scss b/app/src/resources/volt/scss/volt/_components.scss new file mode 100644 index 0000000..d317837 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_components.scss @@ -0,0 +1,30 @@ +@import "components/body"; +@import "components/accordions"; +@import "components/animations"; +@import "components/alerts"; +@import "components/avatars"; +@import "components/badge"; +@import "components/buttons"; +@import "components/breadcrumb"; +@import "components/card"; +@import "components/carousel"; +@import "components/close"; +@import "components/custom-forms"; +@import "components/charts"; +@import "components/dropdown"; +@import "components/icons"; +@import "components/images"; +@import "components/list-group"; +@import "components/modal"; +@import "components/nav"; +@import "components/pagination"; +@import "components/popover"; +@import "components/progress"; +@import "components/shapes"; +@import "components/datepicker"; +@import "components/steps"; +@import "components/tables"; +@import "components/type"; +@import "components/timelines"; +@import "components/tooltip"; +@import "components/scrollbar"; diff --git a/app/src/resources/volt/scss/volt/_forms.scss b/app/src/resources/volt/scss/volt/_forms.scss new file mode 100644 index 0000000..cecae7b --- /dev/null +++ b/app/src/resources/volt/scss/volt/_forms.scss @@ -0,0 +1,4 @@ +@import "forms/form-control"; +@import "forms/form-check"; +@import "forms/input-group"; +@import "forms/form-select"; \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/_functions.scss b/app/src/resources/volt/scss/volt/_functions.scss new file mode 100755 index 0000000..99ef591 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_functions.scss @@ -0,0 +1,23 @@ +// Retrieve color Sass maps + +@function section-color($key: "primary") { + @return map-get($section-colors, $key); +} + +// Lines colors + +@function shapes-primary-color($key: "step-1-gradient-bg") { + @return map-get($shapes-primary-colors, $key); +} + +@function shapes-default-color($key: "step-1-gradient-bg") { + @return map-get($shapes-default-colors, $key); +} + +@function lines-light-color($key: "step-1-gradient-bg") { + @return map-get($shapes-light-colors, $key); +} + +@function shapes-dark-color($key: "step-1-gradient-bg") { + @return map-get($shapes-dark-colors, $key); +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/_layout.scss b/app/src/resources/volt/scss/volt/_layout.scss new file mode 100644 index 0000000..f687e04 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_layout.scss @@ -0,0 +1,5 @@ +@import "layout/navbar"; +@import "layout/section"; +@import "layout/footer"; +@import "layout/sidebar"; +@import "layout/sidenav"; diff --git a/app/src/resources/volt/scss/volt/_mixins.scss b/app/src/resources/volt/scss/volt/_mixins.scss new file mode 100755 index 0000000..45a7df7 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_mixins.scss @@ -0,0 +1,7 @@ +@import "mixins/animations"; +@import "mixins/background-variant"; +@import "mixins/icon"; +@import "mixins/modals"; +@import "mixins/popover"; +@import "mixins/transform"; +@import "mixins/utilities"; diff --git a/app/src/resources/volt/scss/volt/_utilities.scss b/app/src/resources/volt/scss/volt/_utilities.scss new file mode 100755 index 0000000..f3c2c14 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_utilities.scss @@ -0,0 +1,95 @@ +// check docs https://v5.getbootstrap.com/docs/5.0/utilities/api/ + +$utilities: map-merge( + $utilities, + ( + "blur": ( + property: backdrop-filter, + class: blur, + values: ( + 0: blur(0), + 1: blur(1px), + 2: blur(2px), + 3: blur(3px), + 4: blur(4px), + 5: blur(5px), + 6: blur(6px), + 7: blur(7px), + 8: blur(8px), + 9: blur(91px), + 10: blur(10px), + 11: blur(11px), + 12: blur(12px), + 13: blur(13px), + 14: blur(14px), + ), + ), + "opacity": ( + property: opacity, + class: o, + values: ( + 0: 0, + 25: 0.25, + 50: 0.5, + 75: 0.75, + 100: 1, + ), + ), + "z-index": ( + property: z-index, + class: z, + values: ( + 0: 0, + 1: 1, + 2: 2, + 3: 3, + 999: 999, + ), + ), + "viewport-height": ( + property: height, + class: vh, + responsive: true, + values: ( + 100: 100vh, + ), + ), + "font-weight": ( + property: font-weight, + class: fw, + values: ( + light: $font-weight-light, + lighter: $font-weight-lighter, + normal: $font-weight-normal, + bold: $font-weight-bold, + bolder: $font-weight-bolder, + extrabold: $font-weight-extrabold, + black: $font-weight-black, + ), + ), + "max-width": ( + property: max-width, + class: fmxw, + values: ( + 100: 100px, + 200: 200px, + 300: 300px, + 400: 400px, + 500: 500px, + 999: 999px, + ), + ), + "min-height": ( + property: min-height, + class: fmxh, + values: ( + 100: 100px, + 200: 200px, + 300: 300px, + 400: 400px, + 500: 500px, + 999: 999px, + ), + ), + ) +); diff --git a/app/src/resources/volt/scss/volt/_variables.scss b/app/src/resources/volt/scss/volt/_variables.scss new file mode 100644 index 0000000..5c7abc0 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_variables.scss @@ -0,0 +1,1660 @@ +// Variables +// +// Variables should follow the `$component-state-property-size` formula for +// consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs. + +// Color system + +// Shades of grey +$white : #ffffff !default; +$gray-50: #F9FAFB !default; +$gray-100: #F2F4F6 !default; +$gray-200: #E5E7EB !default; +$gray-300: #D1D5DB !default; +$gray-400: #9CA3AF !default; +$gray-500: #6B7280 !default; +$gray-600: #4B5563 !default; +$gray-700: #374151 !default; +$gray-800: #1F2937 !default; +$gray-900: #111827 !default; +$dark : $gray-800 !default; +$black : $gray-900 !default; + +// fusv-disable +$grays: ("100": $gray-100, + "200": $gray-200, + "300": $gray-300, + "400": $gray-400, + "500": $gray-500, + "600": $gray-600, + "700": $gray-700, + "800": $gray-800, + "900": $gray-900) !default; +// fusv-enable + +// Generic colors +$blue : #2361ce !default; +$indigo : #4F46E5 !default; +$purple : #7C3AED !default; +$pink : #EF4683 !default; +$red : #E11D48 !default; +$orange : #FBA918 !default; +$brown : #b9a084 !default; +$yellow : #f3c78e !default; +$yellow-100 : #ffeed6 !default; +$yellow-200 : #f5dbb8 !default; +$green : #10B981 !default; +$teal : #1E90FF !default; +$cyan : #63b1bd !default; +$soft-indigo: #f5e8ff !default; +$soft-green : #2CA58D !default; + +// scss-docs-start colors-map +$colors: ("blue": $blue, + "indigo": $indigo, + "purple": $purple, + "pink": $pink, + "red": $red, + "orange": $orange, + "yellow": $yellow, + "green": $green, + "teal": $teal, + "cyan": $cyan, + "white": $white, + "gray": $gray-600, + "gray-dark": $gray-800) !default; +// scss-docs-end colors-map + +// Color scheme +$primary : #1F2937 !default; +$secondary: #f0bc74 !default; +$tertiary : #31316A !default; + +// Series names and colors. This can be extended or customized as desired. Just add more series and colors. +$ct-series-names: (a, b, c, d, e, f, g) !default !default; +$ct-series-colors: (#262B40, + #F8BD7A, + #2CA58D, + #31316A, + #C96480, + #ffffff, + #F8BD7A, + +) !default; + + +$success: $green !default; +$info : $blue !default; +$warning: $yellow !default; +$danger : $red !default; +$gray : $gray-900 !default; +$light : $gray-400 !default; +$lighten: $gray-300 !default; +$soft : $gray-200 !default; +$dark : $dark !default; + +// Brands colors +$facebook : #3b5999 !default; +$twitter : #1da1f2 !default; +$google : #DB4337 !default; +$instagram: #e4405f !default; +$pinterest: #bd081c !default; +$youtube : #cd201f !default; +$slack : #3aaf85 !default; +$dribbble : #ea4c89 !default; +$github : #222222 !default; +$dropbox : #1E90FF !default; +$twitch : #4B367C !default; +$paypal : #ecb32c !default; +$behance : #0057ff !default; +$reddit : #E84422 !default; + +// Brand colors +$brand-colors: ("facebook": $facebook, + "twitter": $twitter, + "google": $google, + "instagram": $instagram, + "pinterest": $pinterest, + "youtube": $youtube, + "slack": $slack, + "dribbble": $dribbble, + "dropbox": $dropbox, + "twitch": $twitch, + "paypal": $paypal, + "behance": $behance, + "reddit" : $reddit, + "github": $github) !default; + +// Theme colors +$theme-colors: ( + "primary": $primary, + "secondary": $secondary, + "tertiary": $tertiary, + "success": $success, + "info": $info, + "warning": $warning, + "danger": $danger, + "white": $white, + "indigo": $indigo, + "purple": $purple, + "yellow-100": $yellow-100, + "yellow-200": $yellow-200, + "gray-50": $gray-50, + "gray-100": $gray-100, + "gray-200": $gray-200, + "gray-300": $gray-300, + "gray-400": $gray-400, + "gray-500": $gray-500, + "gray-600": $gray-600, + "gray-700": $gray-700, + "gray-800": $gray-800, + "gray-900": $gray-900 + ) !default; + + // Navbar colors + $navbar-colors: ("primary": $primary, +) !default; + +// Set a specific jump point for requesting color jumps +$theme-color-interval: 8% !default; + +// The contrast ratio to reach against white, to determine if color changes from "light" to "dark". Acceptable values for WCAG 2.0 are 3, 4.5 and 7. +// See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast +$min-contrast-ratio: 3 !default; + +// Customize the light and dark text colors for use in our color contrast function. +$color-contrast-dark : $dark !default; +$color-contrast-light: $white !default; + +// fusv-disable +$blue-100: tint-color($blue, 8) !default; +$blue-200: tint-color($blue, 6) !default; +$blue-300: tint-color($blue, 4) !default; +$blue-400: tint-color($blue, 2) !default; +$blue-500: $blue !default; +$blue-600: shade-color($blue, 2) !default; +$blue-700: shade-color($blue, 4) !default; +$blue-800: shade-color($blue, 6) !default; +$blue-900: shade-color($blue, 8) !default; + +$indigo-100: tint-color($indigo, 8) !default; +$indigo-200: tint-color($indigo, 6) !default; +$indigo-300: tint-color($indigo, 4) !default; +$indigo-400: tint-color($indigo, 2) !default; +$indigo-500: $indigo !default; +$indigo-600: shade-color($indigo, 2) !default; +$indigo-700: shade-color($indigo, 4) !default; +$indigo-800: shade-color($indigo, 6) !default; +$indigo-900: shade-color($indigo, 8) !default; + +$purple-100: tint-color($purple, 8) !default; +$purple-200: tint-color($purple, 6) !default; +$purple-300: tint-color($purple, 4) !default; +$purple-400: tint-color($purple, 2) !default; +$purple-500: $purple !default; +$purple-600: shade-color($purple, 2) !default; +$purple-700: shade-color($purple, 4) !default; +$purple-800: shade-color($purple, 6) !default; +$purple-900: shade-color($purple, 8) !default; + +$pink-100: tint-color($pink, 8) !default; +$pink-200: tint-color($pink, 6) !default; +$pink-300: tint-color($pink, 4) !default; +$pink-400: tint-color($pink, 2) !default; +$pink-500: $pink !default; +$pink-600: shade-color($pink, 2) !default; +$pink-700: shade-color($pink, 4) !default; +$pink-800: shade-color($pink, 6) !default; +$pink-900: shade-color($pink, 8) !default; + +$red-100: tint-color($red, 8) !default; +$red-200: tint-color($red, 6) !default; +$red-300: tint-color($red, 4) !default; +$red-400: tint-color($red, 2) !default; +$red-500: $red !default; +$red-600: shade-color($red, 2) !default; +$red-700: shade-color($red, 4) !default; +$red-800: shade-color($red, 6) !default; +$red-900: shade-color($red, 8) !default; + +$orange-100: tint-color($orange, 8) !default; +$orange-200: tint-color($orange, 6) !default; +$orange-300: tint-color($orange, 4) !default; +$orange-400: tint-color($orange, 2) !default; +$orange-500: $orange !default; +$orange-600: shade-color($orange, 2) !default; +$orange-700: shade-color($orange, 4) !default; +$orange-800: shade-color($orange, 6) !default; +$orange-900: shade-color($orange, 8) !default; + +$yellow-100: tint-color($yellow, 8) !default; +$yellow-200: tint-color($yellow, 6) !default; +$yellow-300: tint-color($yellow, 4) !default; +$yellow-400: tint-color($yellow, 2) !default; +$yellow-500: $yellow !default; +$yellow-600: shade-color($yellow, 2) !default; +$yellow-700: shade-color($yellow, 4) !default; +$yellow-800: shade-color($yellow, 6) !default; +$yellow-900: shade-color($yellow, 8) !default; + +$green-100: tint-color($green, 8) !default; +$green-200: tint-color($green, 6) !default; +$green-300: tint-color($green, 4) !default; +$green-400: tint-color($green, 2) !default; +$green-500: $green !default; +$green-600: shade-color($green, 2) !default; +$green-700: shade-color($green, 4) !default; +$green-800: shade-color($green, 6) !default; +$green-900: shade-color($green, 8) !default; + +$teal-100: tint-color($teal, 8) !default; +$teal-200: tint-color($teal, 6) !default; +$teal-300: tint-color($teal, 4) !default; +$teal-400: tint-color($teal, 2) !default; +$teal-500: $teal !default; +$teal-600: shade-color($teal, 2) !default; +$teal-700: shade-color($teal, 4) !default; +$teal-800: shade-color($teal, 6) !default; +$teal-900: shade-color($teal, 8) !default; + +$cyan-100: tint-color($cyan, 8) !default; +$cyan-200: tint-color($cyan, 6) !default; +$cyan-300: tint-color($cyan, 4) !default; +$cyan-400: tint-color($cyan, 2) !default; +$cyan-500: $cyan !default; +$cyan-600: shade-color($cyan, 2) !default; +$cyan-700: shade-color($cyan, 4) !default; +$cyan-800: shade-color($cyan, 6) !default; +$cyan-900: shade-color($cyan, 8) !default; +// fusv-enable + +// Characters which are escaped by the escape-svg function +$escaped-characters: (("<", "%3c"), + (">", "%3e"), + ("#", "%23"), + ("(", "%28"), + (")", "%29"), +) !default; + +// Options +// +// Quickly modify global styling by enabling or disabling optional features. + +$enable-caret : true !default; +$enable-rounded : true !default; +$enable-shadows : true !default; +$enable-gradients : false !default; +$enable-transitions : true !default; +$enable-reduced-motion : true !default; +$enable-grid-classes : true !default; +$enable-button-pointers : true !default; +$enable-rfs : true !default; +$enable-validation-icons : true !default; +$enable-negative-margins : true !default; +$enable-deprecation-messages: true !default; +$enable-important-utilities : true !default; + +// Gradient +// +// The gradient which is added to components if `$enable-gradients` is `true` +// This gradient is also added to elements with `.bg-gradient` +$gradient: linear-gradient(180deg, rgba($white, .15), rgba($white, 0)) !default; + +// Spacing +// +// Control the default styling of most Bootstrap elements by modifying these +// variables. Mostly focused on spacing. +// You can add more entries to the $spacers map, should you need more variation. + +$spacer: 1rem !default; +$spacers: (0: 0, + 1: $spacer * 0.25, + 2: $spacer * 0.5, + 3: $spacer, + 4: $spacer * 1.5, + 5: $spacer * 3, + 6: ($spacer * 5), + 7: ($spacer * 8), + 8: ($spacer * 10), + 9: ($spacer * 11), + 10: ($spacer * 14), + 11: ($spacer * 16), + 12: ($spacer * 20), + 'sm': ($spacer * 1), + 'md': ($spacer * 2), + 'lg': ($spacer * 4), + 'xl': ($spacer * 8)) !default; + +$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default; + +// Body +// +// Settings for the `` element. + +$body-bg : $gray-100 !default; +$body-color : $gray-700 !default; +$body-text-align: null !default; + + +// Links +// +// Style anchor elements. + +$link-color : $primary !default; +$link-decoration : none !default; +$link-hover-color : darken($link-color, 50%) !default; +$link-hover-decoration : none !default; +// Darken percentage for links with `.text-*` class (e.g. `.text-success`) +$emphasized-link-hover-darken-percentage: 10% !default; + +$stretched-link-pseudo-element: after !default; +$stretched-link-z-index : 1 !default; + +// Paragraphs +// +// Style p element. + +$paragraph-margin-bottom: 1rem !default; + + +// Grid breakpoints +// +// Define the minimum dimensions at which your layout will change, +// adapting to different screen sizes, for use in media queries. + +// scss-docs-start grid-breakpoints +$grid-breakpoints: (xs: 0, + sm: 576px, + md: 768px, + lg: 992px, + xl: 1200px, + xxl: 1400px) !default; +// scss-docs-end grid-breakpoints + +// Grid containers +// +// Define the maximum width of `.container` for different screen sizes. + +// scss-docs-start container-max-widths +$container-max-widths: (sm: 540px, + md: 720px, + lg: 960px, + xl: 1140px) !default; +// scss-docs-end container-max-widths + +// Grid columns +// +// Set the number of columns and specify the width of the gutters. + +$grid-columns : 12 !default; +$grid-gutter-width: 1.5rem !default; +$grid-row-columns : 6 !default; + +$gutters: $spacers !default; + +// Container padding + +$container-padding-x: 1rem !default; + + +// Components +// +// Define common padding and border radius sizes and more. + +$border-width : .0625rem !default; +$border-width-md : 0.125rem !default; +$border-width-lg : 0.25rem !default; +$border-width-xl : 0.375rem !default; +$border-color-white: $white !default; +$border-color : $gray-200 !default; + + +$border-radius : .5rem !default; +$border-radius-sm : .35rem !default; +$border-radius-lg : 1rem !default; +$border-radius-xl : 3rem !default; +$border-radius-pill: 50rem !default; +$circle-radius : 50% !default; + +$component-active-color : $white !default; +$component-active-bg : $primary !default; +$component-active-border-color: $primary !default; + +$component-hover-color : $gray-300 !default; +$component-hover-bg : $gray-300 !default; +$component-hover-border-color: $gray-300 !default; + +$rounded-pill: 50rem !default; + +$box-shadow : 0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06) !default; +$box-shadow-sm : 0 2px 5px rgba(140, 152, 164, .2) !default; +$box-shadow-lg : 0 1rem 3rem rgba($black, .175) !default; +$box-shadow-inset: inset 0 1px 2px rgba($black, .0125) !default; + +$component-active-color: $white !default; +$component-active-bg : $primary !default; + +$caret-width : .3em !default; +$caret-vertical-align: $caret-width * .85 !default; +$caret-spacing : $caret-width * .85 !default; + +$transition-base : all .2s ease !default; +$transition-transform: transform .2s ease !default; +$transition-fade : opacity .15s linear !default; +$transition-collapse : height .35s ease !default; +$transition-tabs : all 0.2s !default; + +// scss-docs-start embed-responsive-aspect-ratios +$embed-responsive-aspect-ratios: ("21by9": (x: 21, + y: 9), + "16by9": (x: 16, + y: 9), + "4by3": (x: 4, + y: 3), + "1by1": (x: 1, + y: 1)) !default; +// scss-docs-end embed-responsive-aspect-ratios + +// Typography +// +// Font, line-height, and color for body text, headings, and more. + +// font awesome +$fontawesome-webfonts-path: '../vendor/font-awesome/webfonts' !default; +$font-awesome-5 : 'Font Awesome 5 Free' !default; + +// stylelint-disable value-keyword-case +$font-family-sans-serif: 'Inter', sans-serif !default; +// stylelint-enable value-keyword-case +$font-family-base: var(--bs-font-sans-serif) !default; +$font-family-code: var(--bs-font-monospace) !default; + +// $font-size-root effects the value of `rem`, which is used for as well font sizes, paddings and margins +// $font-size-base effects the font size of the body text +$font-size-root: null !default; +$font-size-base: 1rem !default; // Assumes the browser default, typically `16px` +$font-size-xs : ($font-size-base * .75) !default; +$font-size-sm : ($font-size-base * .875) !default; +$font-size-md : ($font-size-base * 1) !default; +$font-size-lg : ($font-size-base * 1.25) !default; +$font-size-xl : ($font-size-base * 1.5) !default; +$font-size-xxl : ($font-size-base * 2) !default; + +$font-weight-lighter: lighter !default; +$font-weight-light: 300 !default; +$font-weight-normal: 400 !default; +$font-weight-bold: 500 !default; +$font-weight-bolder: 600 !default; +$font-weight-extrabold: 700 !default; +$font-weight-black: 800 !default; + +$font-weight-base: $font-weight-normal !default; + +$line-height-base: 1.5 !default; +$line-height-sm : 1.25 !default; +$line-height-lg : 2 !default; + +$h1-font-size: $font-size-base * 2.5 !default; +$h2-font-size: $font-size-base * 2 !default; +$h3-font-size: $font-size-base * 1.75 !default; +$h4-font-size: $font-size-base * 1.5 !default; +$h5-font-size: $font-size-base * 1.25 !default; +$h6-font-size: $font-size-base !default; + +$headings-margin-bottom: $spacer * 0.5 !default; +$headings-font-family : null !default; +$headings-font-style : null !default; +$headings-font-weight : $font-weight-bold !default; +$headings-line-height : 1.3 !default; +$headings-color : $dark !default; + +// Display headings +$display1-size: 5rem !default; +$display2-size: 3.5rem !default; +$display3-size: 2.5rem !default; +$display4-size: 1.875rem !default; + +// scss-docs-start display-headings +$display-font-sizes: (1: 5rem, + 2: 3.5rem, + 3: 2.5rem, + 4: 1.875rem, + 5: 1.2rem, + 6: 1rem) !default; + +$display-font-weight: $font-weight-bold !default; +$display-line-height: $headings-line-height !default; +// scss-docs-end display-headings + +$paragraph-font-size : 1rem !default; +$paragraph-font-weight: 300 !default; +$paragraph-line-height: 1.6 !default; + +$lead-font-size : $font-size-base * 1.25 !default; +$lead-font-weight: 300 !default; + +$small-font-size: .875em !default; + +$sub-sup-font-size: .75em !default; + +$text-muted: #58677d !default; + +$initialism-font-size: $small-font-size !default; + +$blockquote-margin-y : $spacer !default; +$blockquote-font-size : $font-size-base * 1.25 !default; +$blockquote-footer-color : $gray-600 !default; +$blockquote-footer-font-size: $small-font-size !default; + +$hr-margin-y: $spacer !default; +$hr-color : inherit !default; +$hr-height : $border-width !default; +$hr-opacity : .25 !default; + +$legend-margin-bottom: .5rem !default; +$legend-font-size : 1.5rem !default; +$legend-font-weight : null !default; + +$mark-padding: .2em !default; + +$dt-font-weight: $font-weight-bold !default; + +$nested-kbd-font-weight: $font-weight-bold !default; + +$list-inline-padding: .5rem !default; + +$mark-bg: #fcf8e3 !default; + + +// Tables +// +// Customizes the `.table` component with basic values, each used across all table variations. + +// scss-docs-start table-variables +$table-cell-padding-y : .75rem !default; +$table-cell-padding-x : .5rem !default; +$table-cell-padding-y-sm: .25rem !default; +$table-cell-padding-x-sm: .25rem !default; + +$table-cell-vertical-align: top !default; + +$table-color: $body-color !default; +$table-bg : transparent !default; + +$table-striped-color : $table-color !default; +$table-striped-bg-factor: .05 !default; +$table-striped-bg : rgba($black, $table-striped-bg-factor) !default; + +$table-active-color : $table-color !default; +$table-active-bg-factor: .1 !default; +$table-active-bg : rgba($black, $table-active-bg-factor) !default; + +$table-hover-color : $table-color !default; +$table-hover-bg-factor: .075 !default; +$table-hover-bg : rgba($black, $table-hover-bg-factor) !default; + +$table-border-factor: .1 !default; +$table-border-width : $border-width !default; +$table-border-color : $border-color !default; + +$table-striped-order: odd !default; + +$table-group-seperator-color: $light !default; + +$table-caption-color: $text-muted !default; + +$table-bg-scale: -80% !default; + +$table-head-spacer-y : .75rem !default; +$table-head-spacer-x : 1rem !default; +$table-head-font-size : .75rem !default; +$table-head-text-transform: uppercase !default; +$table-body-font-size : $font-size-sm !default; + +$table-variants: ("primary": shift-color($primary, $table-bg-scale), + "secondary": shift-color($secondary, $table-bg-scale), + "success": shift-color($success, $table-bg-scale), + "info": shift-color($info, $table-bg-scale), + "warning": shift-color($warning, $table-bg-scale), + "danger": shift-color($danger, $table-bg-scale), + "light": $light, + "dark": $dark, +) !default; + +// Accordion +$accordion-padding-y : 1rem !default; +$accordion-padding-x : 1.25rem !default; +$accordion-color : $body-color !default; +$accordion-bg : transparent !default; +$accordion-border-width : $border-width !default; +$accordion-border-color : $gray-400 !default; +$accordion-border-radius: $border-radius !default; + +$accordion-body-padding-y: $accordion-padding-y !default; +$accordion-body-padding-x: $accordion-padding-x !default; + +$accordion-button-padding-y : $accordion-padding-y !default; +$accordion-button-padding-x : $accordion-padding-x !default; +$accordion-button-color : $accordion-color !default; +$accordion-button-bg : $accordion-bg !default; +$accordion-button-active-bg : $light !default; +$accordion-button-active-color: shade-color($primary, 10%) !default; + + +$accordion-icon-width : 1.25rem !default !default; +$accordion-icon-color : $accordion-color !default !default; +$accordion-icon-active-color: $accordion-button-active-color !default !default; +$accordion-icon-transition : transform .2s ease-in-out !default !default; +$accordion-icon-transform : rotate(180deg) !default !default; + +$accordion-button-icon : url("data:image/svg+xml,") !default !default; +$accordion-button-active-icon: url("data:image/svg+xml,") !default !default; + +// Buttons + Forms +// +// Shared variables that are reassigned to `$input-` and `$btn-` specific variables. + +$input-btn-padding-y : .5rem !default; +$input-btn-padding-x : 1rem !default; +$input-btn-font-family: null !default; +$input-btn-font-size : $font-size-sm !default; +$input-btn-line-height: $line-height-base !default; + +$input-btn-focus-width : .18rem !default; +$input-btn-focus-color-opacity: .25 !default; +$input-btn-focus-color : rgba($component-active-bg, $input-btn-focus-color-opacity) !default; +$input-btn-focus-box-shadow : 0 0 0 $input-btn-focus-width $input-btn-focus-color !default; + +$input-btn-padding-y-sm: .375rem !default; +$input-btn-padding-x-sm: .625rem !default; +$input-btn-font-size-sm: $font-size-sm !default; + +$input-btn-padding-y-lg: .5rem !default; +$input-btn-padding-x-lg: 1rem !default; +$input-btn-font-size-lg: $font-size-lg !default; + +$input-btn-border-width: $border-width !default; + +$shadow-input : $box-shadow !default; +$shadow-input-focus: .1rem .1rem 0 rgba($gray-200, .5) !default; + + +// Buttons +// +// For each of Bootstrap's buttons, define text, background, and border color. + +$btn-padding-y : $input-btn-padding-y !default; +$btn-padding-x : $input-btn-padding-x !default; +$btn-font-family: $input-btn-font-family !default; +$btn-font-size : $input-btn-font-size !default; +$btn-line-height: $input-btn-line-height !default; +$btn-white-space: null !default; // Set to `nowrap` to prevent text wrapping + +$btn-padding-y-sm: $input-btn-padding-y-sm !default; +$btn-padding-x-sm: $input-btn-padding-x-sm !default; +$btn-font-size-sm: $input-btn-font-size-sm !default; + +$btn-padding-y-lg: $input-btn-padding-y-lg !default; +$btn-padding-x-lg: $input-btn-padding-x-lg !default; +$btn-font-size-lg: $input-btn-font-size-lg !default; + +$btn-border-width: $input-btn-border-width !default; + +$btn-font-weight: $font-weight-bold !default; +$btn-box-shadow : inset 0 1px 0 rgba($white, .15), +0 1px 1px rgba($black, .075) !default; +$btn-focus-width : $input-btn-focus-width !default; +$btn-focus-box-shadow : $input-btn-focus-box-shadow !default; +$btn-disabled-opacity : .65 !default; +$btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default; + +$btn-link-color : $link-color !default; +$btn-link-hover-color : $link-hover-color !default; +$btn-link-disabled-color: $gray-600 !default; + +$btn-block-spacing-y: .5rem !default; + +// Allows for customizing button radius independently from global border radius +$btn-border-radius : $border-radius !default; +$btn-border-radius-sm: $border-radius !default; +$btn-border-radius-lg: $border-radius !default; + +$btn-transition: color .15s ease-in-out, +background-color .15s ease-in-out, +border-color .15s ease-in-out, +box-shadow .15s ease-in-out !default; + + +$btn-close-width: 1em !default; +$btn-close-height: $btn-close-width !default; +$btn-close-padding-x: .25em !default; +$btn-close-padding-y: $btn-close-padding-x !default; +$btn-close-color: $black !default; +$btn-close-bg: url("data:image/svg+xml,") !default; +$btn-close-color-white: $white !default; +$btn-close-bg-white: url("data:image/svg+xml,") !default; +$btn-close-focus-shadow: $input-btn-focus-box-shadow !default; +$btn-close-opacity: .5 !default; +$btn-close-hover-opacity: .75 !default; +$btn-close-focus-opacity: 1 !default; +$btn-close-disabled-opacity: .25 !default; +$btn-close-white-filter: invert(1) grayscale(100%) brightness(200%) !default; + +// Forms + +$form-text-margin-top : .25rem !default; +$form-text-font-size : $small-font-size !default; +$form-text-font-style : null !default; +$form-text-font-weight: null !default; +$form-text-color : $text-muted !default; + +$form-label-margin-bottom: .5rem !default; +$form-label-font-size : null !default; +$form-label-font-style : null !default; +$form-label-font-weight : null !default; +$form-label-color : null !default; + +$input-padding-y : $input-btn-padding-y !default; +$input-padding-x : $input-btn-padding-x !default; +$inpu-lg-padding-y: 1rem !default; +$input-font-family: $input-btn-font-family !default; +$input-font-size : $input-btn-font-size !default; +$input-font-weight: $font-weight-base !default; +$input-line-height: $input-btn-line-height !default; + +$input-padding-y-sm: $input-btn-padding-y-sm !default; +$input-padding-x-sm: $input-btn-padding-x-sm !default; +$input-font-size-sm: $input-btn-font-size-sm !default; + +$input-padding-y-lg: $input-btn-padding-y-lg !default; +$input-padding-x-lg: $input-btn-padding-x-lg !default; +$input-font-size-lg: $input-btn-font-size-lg !default; + +$input-bg : $white !default; +$input-disabled-bg : $gray-200 !default; +$input-disabled-border-color: null !default; + +$input-color : $gray-500 !default; +$input-border-color: $gray-300 !default; +$input-border-width: $input-btn-border-width !default; +$input-box-shadow : 0 1px 2px 0 rgba(0, 0, 0, 0.07) !default; + +$input-border-radius : $border-radius !default; +$input-border-radius-sm: $border-radius !default; +$input-border-radius-lg: $border-radius !default; + +$input-focus-bg : $input-bg !default; +$input-focus-border-color: lighten($component-active-bg, 25%) !default; +$input-focus-color : $input-color !default; +$input-focus-width : $input-btn-focus-width !default; +$input-focus-box-shadow : $input-btn-focus-box-shadow !default; + +$input-placeholder-color: $gray-600 !default; +$input-plaintext-color : $body-color !default; + +$input-height-border: $input-border-width * 2 !default; + +$input-height-inner : add($input-line-height * 1em, $input-padding-y * 2) !default; +$input-height-inner-half : add($input-line-height * .5em, $input-padding-y) !default; +$input-height-inner-quarter: add($input-line-height * .25em, $input-padding-y * 0.5) !default; + +$input-height : add($input-line-height * 1em, add($input-padding-y * 2, $input-height-border, false)) !default; +$input-height-sm: add($input-line-height * 1em, add($input-padding-y-sm * 2, $input-height-border, false)) !default; +$input-height-lg: add($input-line-height * 1em, add($input-padding-y-lg * 2, $input-height-border, false)) !default; +$input-height-xl: calc(#{$input-line-height * 1.5em} + #{$input-btn-padding-y-lg * 2} + #{$input-height-border}) !default; + +$input-transition: border-color .15s ease-in-out, +box-shadow .15s ease-in-out !default; + +// Custom forms + +$custom-control-gutter : 1.75rem !default; +$custom-control-spacer-x : 1rem !default; +$custom-control-line-height : 1 !default; +$custom-control-indicator-size: 1.25rem !default; + +$custom-control-bg : $gray-400 !default; +$custom-control-indicator-bg: $white !default; +$custom-control-border-width: $border-width !default; +$custom-control-border-color: $input-border-color !default; +$custom-control-box-shadow : none !default; + + + +$custom-control-indicator-hover-color : $component-hover-color !default; +$custom-control-indicator-hover-bg : $primary !default; +$custom-control-indicator-hover-border-color: $component-hover-border-color !default; + +$custom-control-indicator-active-color : $component-active-color !default; +$custom-control-indicator-active-border-color: $component-active-border-color !default; + + +$custom-control-indicator-checked-color : $component-active-color !default; +$custom-control-indicator-checked-bg : $primary !default; +$custom-control-indicator-checked-border-color: $primary !default; +$custom-control-indicator-checked-disabled-bg : rgba($primary, .7) !default; +$custom-control-indicator-border-width : 1px !default; + +$custom-control-indicator-disabled-bg: $gray-200 !default; +$custom-control-label-disabled-color : $gray-800 !default; + +$custom-checkbox-bg : $gray-400 !default; +$custom-checkbox-checked-bg : $primary !default; +$custom-checkbox-disabled-checked-bg : rgba($primary, .7) !default; +$custom-checkbox-indicator-border-radius: $border-radius-xl !default; +$custom-checkbox-indicator-border-width : $border-width-md !default; +$custom-checkbox-indicator-icon-checked : $font-awesome-5 !default; +$square-checkbox-indicator-border-radius: 3px !default; + +$custom-toggle-slider-bg : $gray-400 !default; +$custom-toggle-slider-indicator-bg: $white !default; +$custom-toggle-checked-bg : $primary !default; +$custom-toggle-disabled-bg : $gray-200 !default; +$custom-toggle-disabled-checked-bg: rgba($primary, .7) !default; +$custom-toggle-border-radius : .8rem !default; + +$custom-switch-indicator-size: calc(#{$custom-control-indicator-size} - #{$custom-control-indicator-border-width * 4}) !default; + +$custom-checkbox-disabled-checked-color: $gray-800 !default; + + +$form-check-input-width : 1.125em !default; +$form-check-min-height : $font-size-base * $line-height-base !default; +$form-check-padding-left : $form-check-input-width+.5em !default; +$form-check-margin-bottom: .125rem !default; +$form-check-label-color : null !default; +$form-check-label-cursor : null !default; +$form-check-transition : background-color .2s ease-in-out, +background-position .2s ease-in-out, +border-color .2s ease-in-out, +box-shadow .2s ease-in-out !default; + +$form-check-input-active-filter: brightness(90%) !default; + +$form-check-input-bg : $body-bg !default; +$form-check-input-border : 1px solid $input-border-color !default; +$form-check-input-border-radius : .25em !default; +$form-check-radio-border-radius : 50% !default; +$form-check-input-focus-border : $input-focus-border-color !default; +$form-check-input-focus-box-shadow: $input-btn-focus-box-shadow !default; + +$form-check-input-checked-color : $component-active-color !default; +$form-check-input-checked-bg-color : $component-active-bg !default; +$form-check-input-checked-border-color: $form-check-input-checked-bg-color !default; +$form-check-input-checked-bg-image : url("data:image/svg+xml,") !default; +$form-check-radio-checked-bg-image : url("data:image/svg+xml,") !default; + +$form-check-input-indeterminate-color : $component-active-color !default; +$form-check-input-indeterminate-bg-color : $component-active-bg !default; +$form-check-input-indeterminate-border-color: $form-check-input-indeterminate-bg-color !default; +$form-check-input-indeterminate-bg-image : url("data:image/svg+xml,") !default; + +$form-switch-color : $gray-600 !default; +$form-switch-width : 2.25em !default; +$form-switch-padding-left : $form-switch-width+.5em !default; +$form-switch-bg-image : url("data:image/svg+xml,") !default; +$form-switch-border-radius: $form-switch-width !default; + +$form-switch-focus-color : $input-focus-border-color !default; +$form-switch-focus-bg-image: url("data:image/svg+xml,") !default; + +$form-switch-checked-color : $component-active-color !default; +$form-switch-checked-bg-image : url("data:image/svg+xml,") !default; +$form-switch-checked-bg-position: right center !default; + +$form-check-inline-margin-right: 1rem !default; + +$input-group-addon-color : $input-color !default; +$input-group-addon-border-color: $input-border-color !default; + +// Input groups + +// scss-docs-start input-group-variables +$input-group-addon-padding-y: .5rem !default; +$input-group-addon-padding-x: .625rem !default; +$input-group-addon-font-weight: $input-font-weight !default; +$input-group-addon-color: $gray-400 !default; +$input-group-addon-bg: $white !default; +$input-group-addon-border-color: $input-border-color !default; +// scss-docs-end input-group-variables + +$form-select-padding-y : $input-padding-y !default; +$form-select-padding-x : $input-padding-x !default; +$form-select-font-family : $input-font-family !default; +$form-select-font-size : $input-font-size !default; +$form-select-height : $input-height !default; +$form-select-indicator-padding : 1rem !default; // Extra padding to account for the presence of the background-image based indicator +$form-select-font-weight : $input-font-weight !default; +$form-select-line-height : $input-line-height !default; +$form-select-color : $input-color !default; +$form-select-disabled-color : $gray-600 !default; +$form-select-bg : $input-bg !default; +$form-select-disabled-bg : $gray-200 !default; +$form-select-disabled-border-color: $input-disabled-border-color !default; +$form-select-bg-position : right $form-select-padding-x center !default; +$form-select-bg-size : 16px 12px !default; // In pixels because image dimensions +$form-select-indicator-color : $gray-800 !default; +$form-select-indicator : url("data:image/svg+xml,") !default; + +$form-select-feedback-icon-padding-right: add(1em * .75, (2 * $form-select-padding-y * .75) + $form-select-padding-x + $form-select-indicator-padding) !default; +$form-select-feedback-icon-position : center right ($form-select-padding-x + $form-select-indicator-padding) !default; +$form-select-feedback-icon-size : $input-height-inner-half $input-height-inner-half !default; + +$form-select-border-width : $input-border-width !default; +$form-select-border-color : $input-border-color !default; +$form-select-border-radius: $border-radius !default; +$form-select-box-shadow : $box-shadow-inset !default; + +$form-select-focus-border-color: $input-focus-border-color !default; +$form-select-focus-width : $input-focus-width !default; +$form-select-focus-box-shadow : 0 0 0 $form-select-focus-width $input-btn-focus-color !default; + +$form-select-padding-y-sm: $input-padding-y-sm !default; +$form-select-padding-x-sm: $input-padding-x-sm !default; +$form-select-font-size-sm: $input-font-size-sm !default; +$form-select-height-sm : $input-height-sm !default; + +$form-select-padding-y-lg: $input-padding-y-lg !default; +$form-select-padding-x-lg: $input-padding-x-lg !default; +$form-select-font-size-lg: $input-font-size-lg !default; +$form-select-height-lg : $input-height-lg !default; + +$form-range-track-width : 100% !default; +$form-range-track-height : .5rem !default; +$form-range-track-cursor : pointer !default; +$form-range-track-bg : $gray-300 !default; +$form-range-track-border-radius: 1rem !default; +$form-range-track-box-shadow : $box-shadow-inset !default; + +$form-range-thumb-width : 1rem !default; +$form-range-thumb-height : $form-range-thumb-width !default; +$form-range-thumb-bg : $component-active-bg !default; +$form-range-thumb-border : 0 !default; +$form-range-thumb-border-radius: 1rem !default; +$form-range-thumb-box-shadow : 0 .1rem .25rem rgba($black, .1) !default; +$form-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, +$input-focus-box-shadow !default; +$form-range-thumb-focus-box-shadow-width: $input-focus-width !default; // For focus box shadow issue in Edge +$form-range-thumb-active-bg : lighten($component-active-bg, 35%) !default; +$form-range-thumb-disabled-bg : $gray-500 !default; +$form-range-thumb-transition : background-color .15s ease-in-out, +border-color .15s ease-in-out, +box-shadow .15s ease-in-out !default; + +$form-file-height : $input-height !default; +$form-file-focus-border-color : $input-focus-border-color !default; +$form-file-focus-box-shadow : $input-focus-box-shadow !default; +$form-file-disabled-bg : $input-disabled-bg !default; +$form-file-disabled-border-color: $input-disabled-border-color !default; + +$form-file-padding-y : $input-padding-y !default; +$form-file-padding-x : $input-padding-x !default; +$form-file-line-height : $input-line-height !default; +$form-file-font-family : $input-font-family !default; +$form-file-font-weight : $input-font-weight !default; +$form-file-color : $input-color !default; +$form-file-bg : $input-bg !default; +$form-file-border-width : $input-border-width !default; +$form-file-border-color : $input-border-color !default; +$form-file-border-radius: $input-border-radius !default; +$form-file-box-shadow : $input-box-shadow !default; +$form-file-button-color : $form-file-color !default; +$form-file-button-bg : $input-group-addon-bg !default; + +$form-file-padding-y-sm: $input-padding-y-sm !default; +$form-file-padding-x-sm: $input-padding-x-sm !default; +$form-file-font-size-sm: $input-font-size-sm !default; +$form-file-height-sm : $input-height-sm !default; + +$form-file-padding-y-lg: $input-padding-y-lg !default; +$form-file-padding-x-lg: $input-padding-x-lg !default; +$form-file-font-size-lg: $input-font-size-lg !default; +$form-file-height-lg : $input-height-lg !default; + +$input-muted-bg : $gray-100 !default; +$input-placeholder-color : $gray-800 !default; +$input-focus-placeholder-color: $gray-800 !default; + +// Form validation + +$form-feedback-margin-top : $form-text-margin-top !default; +$form-feedback-font-size : $form-text-font-size !default; +$form-feedback-font-style : $form-text-font-style !default; +$form-feedback-valid-color : $success !default; +$form-feedback-invalid-color: $danger !default; + +$form-feedback-icon-valid-color : $form-feedback-valid-color !default; +$form-feedback-icon-valid : url("data:image/svg+xml,") !default; +$form-feedback-icon-invalid-color: $form-feedback-invalid-color !default; +$form-feedback-icon-invalid : url("data:image/svg+xml,") !default; + +// scss-docs-start form-validation-states +$form-validation-states: ("valid": ("color": $form-feedback-valid-color, + "icon": $form-feedback-icon-valid), + "invalid": ("color": $form-feedback-invalid-color, + "icon": $form-feedback-icon-invalid)) !default; +// scss-docs-end form-validation-states + +// Z-index master list +// +// Warning: Avoid customizing these values. They're used for a bird's eye view +// of components dependent on the z-axis and are designed to all work together. + +// scss-docs-start zindex-stack +$zindex-dropdown : 1000 !default; +$zindex-sticky : 1020 !default; +$zindex-fixed : 1030 !default; +$zindex-modal-backdrop: 1040 !default; +$zindex-modal : 1050 !default; +$zindex-popover : 1060 !default; +$zindex-tooltip : 1070 !default; +// scss-docs-end zindex-stack + +// No UI Slider + +$noui-target-bg : $gray-400 !default; +$noui-target-thickness : 5px !default; +$noui-target-border-radius : 5px !default; +$noui-target-border-color : 0 !default; +$noui-target-box-shadow : inset $box-shadow-sm !default; +$noui-box-shadow : $box-shadow-sm !default; +$noui-slider-connect-bg : $primary !default; +$noui-slider-connect-disabled-bg: $gray-200 !default; +$noui-handle-active-shadow : 0 0 0 0.2rem rgba(69, 77, 103, 0.5) !default; +$noui-handle-width : 15px !default; +$noui-handle-bg : $primary !default; +$noui-handle-border : 0 !default; +$noui-handle-border-radius : $border-radius !default; +$noui-origin-border-radius : $circle-radius !default; + + +// Navs + +$nav-link-padding-y : .5rem !default; +$nav-link-padding-x : 1rem !default; +$nav-link-color : $gray-800 !default; +$nav-link-hover-color : $dark !default; +$nav-link-active-color: $gray-800 !default; +$nav-link-shadow : none !default; +$nav-link-transition : color .15s ease-in-out, +background-color .15s ease-in-out, +border-color .15s ease-in-out !default; +$nav-link-disabled-color: $gray-600 !default; + +$nav-tabs-border-color : $light !default; +$nav-tabs-border-width : $border-width !default; +$nav-tabs-border-radius : $border-radius !default; +$nav-tabs-link-hover-border-color : $gray-200 $gray-200 $nav-tabs-border-color !default; +$nav-tabs-link-active-color : $gray-700 !default; +$nav-tabs-link-active-bg : $light !default; +$nav-tabs-link-active-border-color: $light !default; + +$nav-pills-padding-y: .75rem !default; +$nav-pills-padding-x: .85rem !default; + +$nav-pills-space-x : 1rem !default; +$nav-pills-border-circle: 50% !default; + +$nav-pills-bg : $white !default; +$nav-pills-border-width : 1px !default; +$nav-pills-border-color : $light !default; +$nav-pills-border-radius: $border-radius !default; + +$nav-pills-link-hover-color : $primary !default; +$nav-pills-link-active-color : $primary !default; +$nav-pills-active-border-color: $gray-300 !default; +$nav-pills-link-active-bg : #f8f8f8 !default; + +// Owl navs + +$owl-nav-color : $gray-600 !default; +$owl-nav-color-hover : $gray-900 !default; +$owl-nav-font-size : $font-size-xxl !default; +$owl-nav-rounded : 3px !default; +$owl-nav-margin : 5px !default; +$owl-nav-padding : 4px 7px !default; +$owl-nav-background : $gray-400 !default; +$owl-nav-background-hover: $gray-800 !default; +$owl-nav-disabled-opacity: 0.5 !default; + +// Owl dots + +$owl-dot-width : 10px !default; +$owl-dot-height : 10px !default; +$owl-dot-rounded : $circle-radius !default; +$owl-dot-margin : 5px 5px !default; +$owl-dot-border-width : 2px !default; +$owl-dot-background : $gray-400 !default; +$owl-dot-background-active: $gray-800 !default; + + +// Navbar + +$navbar-padding-y: 1rem !default; +$navbar-padding-x: null !default; + +$navbar-nav-link-padding-x: .8rem !default; + +$navbar-brand-font-size : $font-size-lg !default; +// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link +$nav-link-height : $font-size-base * $line-height-base+$nav-link-padding-y * 4 !default; +$navbar-brand-height : $navbar-brand-font-size * $line-height-base !default; +$navbar-brand-padding-y : 0 !default; +$navbar-brand-margin-right: 1rem !default; + +$navbar-toggler-padding-y : .4rem !default; +$navbar-toggler-padding-x : .6rem !default; +$navbar-toggler-font-size : $font-size-lg !default; +$navbar-toggler-border-radius: $btn-border-radius !default; +$navbar-toggler-focus-width : $btn-focus-width !default; +$navbar-toggler-transition : box-shadow .15s ease-in-out !default; + +$navbar-dark-color : rgba($white, 0.9) !default; +$navbar-dark-hover-color : rgba($white, 1) !default; +$navbar-dark-active-color : $white !default; +$navbar-dark-disabled-color : rgba($white, .9) !default; +$navbar-dark-toggler-icon-bg : url("data:image/svg+xml,") !default; +$navbar-dark-toggler-border-color: rgba($white, .1) !default; + +$navbar-light-color : rgba($black, .9) !default; +$navbar-light-hover-color : rgba($black, 1) !default; +$navbar-light-active-color : rgba($black, 1) !default; +$navbar-light-disabled-color : rgba($black, .9) !default; +$navbar-light-toggler-icon-bg : url("data:image/svg+xml,") !default; +$navbar-light-toggler-border-color: rgba($black, .1) !default; + +$navbar-light-brand-color : $navbar-light-active-color !default; +$navbar-light-brand-hover-color: $navbar-light-active-color !default; +$navbar-dark-brand-color : $navbar-dark-active-color !default; +$navbar-dark-brand-hover-color : $navbar-dark-active-color !default; + + +// Dropdowns +// +// Dropdown menu container and contents. + +$dropdown-min-width : 12rem !default; +$dropdown-padding-y : .5rem !default; +$dropdown-spacer : .125rem !default; +$dropdown-font-size : .875rem !default; +$dropdown-item-font-weight: $font-weight-normal !default; +$dropdown-item-hover-color: $gray-900 !default; + +$dropdown-color : $body-color !default; +$dropdown-bg : $white !default; +$dropdown-border-color : $border-color !default; +$dropdown-border-radius : $border-radius-sm !default; +$dropdown-border-width : $border-width !default; +$dropdown-inner-border-radius: subtract($dropdown-border-radius, $dropdown-border-width) !default; +$dropdown-divider-bg : $gray-200 !default; +$dropdown-divider-margin-y : $spacer * 0.5 !default; +$dropdown-box-shadow : 0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05) !default; + +$dropdown-link-color : $gray-900 !default; +$dropdown-link-hover-color: darken($gray-900, 5%) !default; +$dropdown-link-hover-bg : $gray-100 !default; + +$dropdown-link-active-color: $gray-900 !default; +$dropdown-link-active-bg : $gray-200 !default; + +$dropdown-link-disabled-color: $gray-600 !default; + +$dropdown-item-padding-y: $spacer * 0.25 !default; +$dropdown-item-padding-x: $spacer !default; + +$dropdown-header-color : $gray-900 !default; +$dropdown-header-font-weight: $font-weight-bold !default; +$dropdown-header-padding : $dropdown-padding-y $dropdown-item-padding-x !default; + + +// Pagination + +$pagination-padding-y : .375rem !default; +$pagination-padding-x : .75rem !default; +$pagination-padding-y-sm: .25rem !default; +$pagination-padding-x-sm: .5rem !default; +$pagination-padding-y-lg: .75rem !default; +$pagination-padding-x-lg: 1.5rem !default; + +$pagination-color : $link-color !default; +$pagination-bg : $white !default; +$pagination-border-width : $border-width !default; +$pagination-border-radius: $border-radius !default; +$pagination-margin-left : -$pagination-border-width !default; +$pagination-border-color : $light !default; + +$pagination-focus-box-shadow: $input-btn-focus-box-shadow !default; +$pagination-focus-outline : 0 !default; + +$pagination-hover-color : $link-hover-color !default; +$pagination-hover-bg : $gray-200 !default; +$pagination-hover-border-color: $gray-300 !default; + +$pagination-active-color : $component-active-color !default; +$pagination-active-bg : $component-active-bg !default; +$pagination-active-border-color: $pagination-active-bg !default; + +$pagination-disabled-color : $gray-600 !default; +$pagination-disabled-bg : $white !default; +$pagination-disabled-border-color: $gray-300 !default; + + +// Cards + +$card-spacer-y : 1.25rem !default; +$card-spacer-x : 1.5rem !default; +$card-social-padding : .25rem .375rem !default; +$card-title-spacer-y : .875rem !default; +$card-border-width : $border-width !default; +$card-border-radius : $border-radius !default; +$card-border-color : rgba($black, .125) !default; +$card-inner-border-radius: subtract($card-border-radius, $card-border-width) !default; +$card-cap-padding-y : 1.25rem !default; +$card-cap-padding-x : $card-spacer-x !default; +$card-cap-bg : rgba($black, .03) !default; +$card-cap-color : null !default; +$card-height : null !default; +$card-color : null !default; +$card-bg : $white !default; + +$card-img-overlay-padding: $spacer !default; + +$card-group-margin : $grid-gutter-width * 0.5 !default; +$transition-bezier-card: cubic-bezier(0.34, 1.45, 0.7, 1) !default; + +//Timelines +$timeline-font-size : $font-size-xxl !default; +$timeline-font-color : $body-color !default; +$timeline-border-color : $light !default; +$timeline-border-color-dark: $gray-500 !default; +$timeline-background-color : $white !default; +$timeline-line-height : 3 !default; +$timeline-border-width : $border-width !default; +$timeline-circle-radius : 50% !default; +$timeline-spacer-y : 1.25rem !default; +$timeline-spacer-x : 2.75rem !default; + +// Icons & Shapes sizes + +$icon-size-xxs: 1rem !default; +$icon-size-xs: 1.25rem !default; +$icon-size-sm: 1.5rem !default; +$icon-size: 2rem !default; +$icon-size-lg: 3.5rem !default; +$icon-size-xl: 4.5rem !default; +$icon-size-xxl: 6rem !default; + +$icon-shape-xxs: 1.5rem !default; +$icon-shape-xs: 2.5rem !default; +$icon-shape-sm: 3.275rem !default; +$icon-shape: 4rem !default; +$icon-shape-lg: 5rem !default; +$icon-shape-xl: 6rem !default; +$icon-shape-xxl: 7.5rem !default; + + +// Steps +$step-number-size : 12rem !default; +$step-shape-size : 7rem !default; +$step-border-width: $border-width-md !default; +$step-icon-size : $icon-size-xl !default; + +// Tooltips + +$tooltip-font-size : $font-size-sm !default; +$tooltip-max-width : 200px !default; +$tooltip-color : $white !default; +$tooltip-bg : $dark !default; +$tooltip-border-radius: $border-radius !default; +$tooltip-opacity : .99 !default; +$tooltip-padding-y : .5rem !default; +$tooltip-padding-x : .55rem !default; +$tooltip-margin : 2rem !default; + +$tooltip-arrow-width : .8rem !default; +$tooltip-arrow-height: .4rem !default; +$tooltip-arrow-color : $tooltip-bg !default; + +// Form tooltips must come after regular tooltips +$form-feedback-tooltip-padding-y : $tooltip-padding-y !default; +$form-feedback-tooltip-padding-x : $tooltip-padding-x !default; +$form-feedback-tooltip-font-size : $tooltip-font-size !default; +$form-feedback-tooltip-line-height : null !default; +$form-feedback-tooltip-opacity : $tooltip-opacity !default; +$form-feedback-tooltip-border-radius: $tooltip-border-radius !default; + + +// Popovers + +$popover-font-size : $font-size-sm !default; +$popover-bg : $dark !default; +$popover-max-width : 276px !default; +$popover-border-width : $border-width !default; +$popover-border-color : rgba($black, .2) !default; +$popover-border-radius : $border-radius-lg !default; +$popover-inner-border-radius: subtract($popover-border-radius, $popover-border-width) !default; +$popover-box-shadow : $box-shadow !default; + +$popover-header-bg : darken($popover-bg, 3%) !default; +$popover-header-color : $headings-color !default; +$popover-header-padding-y: .5rem !default; +$popover-header-padding-x: $spacer !default; + +$popover-body-color : $white !default; +$popover-body-padding-y: $spacer !default; +$popover-body-padding-x: $spacer !default; + +$popover-arrow-width : 1rem !default; +$popover-arrow-height: .5rem !default; +$popover-arrow-color : $popover-bg !default; + +$popover-arrow-outer-color: fade-in($popover-border-color, .05) !default; + + +// Toasts + +$toast-max-width : 350px !default; +$toast-padding-x : .75rem !default; +$toast-padding-y : .25rem !default; +$toast-font-size : .875rem !default; +$toast-color : null !default; +$toast-background-color: rgba($white, .85) !default; +$toast-border-width : 1px !default; +$toast-border-color : rgba(0, 0, 0, .1) !default; +$toast-border-radius : $border-radius !default; +$toast-box-shadow : $box-shadow !default; + +$toast-header-color : $gray-600 !default; +$toast-header-background-color: rgba($white, .85) !default; +$toast-header-border-color : rgba(0, 0, 0, .05) !default; + + +// Badges + +$badge-font-size : .75em !default; +$badge-font-weight : $font-weight-bolder !default; +$badge-padding-y : .2rem !default; +$badge-padding-x : .4rem !default; +$badge-color : $white !default; +$badge-border-radius: $border-radius !default; + +$badge-pill-padding-x : .875em !default; +$badge-pill-border-radius: 10rem !default; + +$badge-circle-size: 2rem !default; + + +// Modals + +// Padding applied to the modal body +$modal-inner-padding: $spacer !default; + +// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding +$modal-footer-margin-between: .5rem !default; + +$modal-dialog-margin : .5rem !default; +$modal-dialog-margin-y-sm-up: 1.75rem !default; + +$modal-title-line-height: $line-height-base !default; + +$modal-content-color : null !default; +$modal-content-bg : $white !default; +$modal-content-border-color : rgba($black, .2) !default; +$modal-content-border-width : $border-width !default; +$modal-content-border-radius : $border-radius !default; +$modal-content-inner-border-radius: subtract($modal-content-border-radius, $modal-content-border-width) !default; +$modal-content-box-shadow-xs : $box-shadow-sm !default; +$modal-content-box-shadow-sm-up : $box-shadow !default; + +$modal-backdrop-bg : $black !default; +$modal-backdrop-opacity : .5 !default; +$modal-header-border-color: $border-color !default; +$modal-footer-border-color: $modal-header-border-color !default; +$modal-header-border-width: $modal-content-border-width !default; +$modal-footer-border-width: $modal-header-border-width !default; +$modal-header-padding-y : $modal-inner-padding !default; +$modal-header-padding-x : $modal-inner-padding !default; +$modal-header-padding : $modal-header-padding-y $modal-header-padding-x !default; // Keep this for backwards compatibility + +$modal-sm: 300px !default; +$modal-md: 500px !default; +$modal-lg: 800px !default; +$modal-xl: 1140px !default; + +$modal-fade-transform : translate(0, -50px) !default; +$modal-show-transform : none !default; +$modal-transition : transform .3s ease-out !default; +$modal-scale-transform: scale(1.02) !default; + + +// Alerts +// +// Define alert colors, border radius, and padding. + +$alert-padding-y : $spacer !default; +$alert-padding-x : $spacer !default; +$alert-margin-bottom : 1rem !default; +$alert-border-radius : $border-radius !default; +$alert-link-font-weight: $font-weight-bold !default; +$alert-border-width : $border-width !default; +$alert-icon-font-size : 2rem !default; +$alert-link-color : $white !default; + +$alert-bg-level : -10 !default !default; +$alert-border-level: -9 !default !default; +$alert-color-level : 10 !default !default; + + +// Progress bars + +$progress-height : 1rem !default; +$progress-font-size : $font-size-base * .75 !default; +$progress-bg : $gray-200 !default; +$progress-border-radius : $border-radius !default; +$progress-box-shadow : $box-shadow-inset !default; +$progress-bar-color : $white !default; +$progress-bar-bg : $dark !default; +$progress-bar-animation-timing: 1s linear infinite !default; +$progress-bar-transition : width .6s ease !default; + +$progress-xl-size: .8rem !default; +$progress-lg-size: .6rem !default; +$progress-sm-size: .2rem !default; + + +// List group + +$list-group-color : null !default; +$list-group-bg : $white !default; +$list-group-border-color : rgba($black, .125) !default; +$list-group-border-width : $border-width !default; +$list-group-border-radius: $border-radius !default; + +$list-group-sm-item-padding-y: .625rem !default; +$list-group-sm-item-padding-x: .875rem !default; + +$list-group-item-padding-y : $spacer * 0.5 !default; +$list-group-item-padding-x : $spacer !default; +$list-group-item-bg-level : -9 !default; +$list-group-item-color-level : 6 !default; +$list-group-item-border-radius: $border-radius !default; + +$list-group-hover-bg : $gray-100 !default; +$list-group-active-color : $component-active-color !default; +$list-group-active-bg : $component-active-bg !default; +$list-group-active-border-color: $list-group-active-bg !default; + +$list-group-disabled-color: $gray-600 !default; +$list-group-disabled-bg : $list-group-bg !default; + +$list-group-action-color : $gray-700 !default; +$list-group-action-hover-color: $list-group-action-color !default; + +$list-group-action-active-color: $body-color !default; +$list-group-action-active-bg : $gray-200 !default; + +// Image thumbnails + +$thumbnail-padding : .25rem !default; +$thumbnail-bg : $body-bg !default; +$thumbnail-border-width : $border-width !default; +$thumbnail-border-color : $gray-300 !default; +$thumbnail-border-radius: $border-radius !default; +$thumbnail-box-shadow : $box-shadow-sm !default; + + +// Figures + +$figure-caption-font-size: $small-font-size !default; +$figure-caption-color : $gray-600 !default; + + +// Breadcrumbs + +$breadcrumb-font-size : null !default; +$breadcrumb-padding-y : $spacer * 0.5 !default; +$breadcrumb-padding-x : $spacer !default; +$breadcrumb-item-padding-x: .5rem !default; +$breadcrumb-margin-bottom : 1rem !default; +$breadcrumb-bg : $gray-200 !default; +$breadcrumb-divider-color : $gray-600 !default; +$breadcrumb-active-color : $gray-600 !default; +$breadcrumb-divider : quote("/") !default; +$breadcrumb-border-radius : $border-radius !default; + +$breadcrumb-active-color : $white !default; +$breadcrumb-divider-color : $gray-700 !default; +$breadcrumb-item-color : $gray-700 !default; +$breadcrumb-font-weight : $font-weight-normal !default; +$breadcrumb-active-font-weight : $font-weight-normal !default; +$breadcrumb-item-light-color : $white !default; +$breadcrumb-divider-light-color: $white !default; + +// Carousel + +$carousel-control-color : $white !default; +$carousel-control-width : 15% !default; +$carousel-control-opacity : .5 !default; +$carousel-control-hover-opacity: .9 !default; +$carousel-control-transition : opacity .15s ease !default; + +$carousel-indicator-width : 30px !default; +$carousel-indicator-height : 3px !default; +$carousel-indicator-hit-area-height: 10px !default; +$carousel-indicator-spacer : 3px !default; +$carousel-indicator-opacity : .5 !default; +$carousel-indicator-active-bg : $white !default; +$carousel-indicator-active-opacity : 1 !default; +$carousel-indicator-transition : opacity .6s ease !default; + +$carousel-caption-width : 70% !default; +$carousel-caption-color : $white !default; +$carousel-caption-padding-y: 1.25rem !default; +$carousel-caption-spacer : 1.25rem !default; + +$carousel-control-icon-width: 20px !default; + +$carousel-control-prev-icon-bg: url("data:image/svg+xml,") !default; +$carousel-control-next-icon-bg: url("data:image/svg+xml,") !default; + +$carousel-transition-duration: .6s !default; +$carousel-transition : transform $carousel-transition-duration ease-in-out !default; // Define transform transition first if using multiple transitions (e.g., `transform 2s ease, opacity .5s ease-out`) + + +// Spinners + +$spinner-width : 2rem !default; +$spinner-height : $spinner-width !default; +$spinner-border-width : .25em !default; +$spinner-animation-speed: .75s !default; + +$spinner-width-sm : 1.2rem !default; +$spinner-height-sm : $spinner-width-sm !default; +$spinner-border-width-sm: .2em !default; + +// Datepicker + +$datepicker-border-radius : $border-radius-sm !default; +$datepicker-dropdown-padding: 20px 22px !default; + +$datepicker-cell-transition : $transition-base !default; +$datepicker-cell-hover-background: lighten($gray-400, 55%) !default; +$datepicker-cell-border-radius : 50% !default; +$datepicker-cell-width : 36px !default; +$datepicker-cell-height : 36px !default; + +$datepicker-disabled-cell-color : $gray-300 !default; +$datepicker-disabled-old-new-color: $gray-500 !default; + +$datepicker-header-cell-border-radius: $border-radius-sm !default; + +$datepicker-active-color : $white !default; +$datepicker-active-background: $secondary !default; +$datepicker-active-box-shadow: none !default; + +$datepicker-range-background : $secondary !default; +$datepicker-range-cell-focused-background: darken($datepicker-range-background, 5%) !default; +$datepicker-range-color : $white !default; +$datepicker-range-highlighted-bg : $gray-200 !default; + +$datepicker-dropdown-border: lighten($gray-400, 40%) !default; +$datepicker-dropdown-bg : $white !default; +$datepicker-highlighted-bg : $datepicker-active-background !default; + + +// Close + +$close-bg : transparent !default; +$close-hover-bg : transparent !default; +$close-color : rgba(0, 0, 0, .6) !default; +$close-hover-color: rgba(0, 0, 0, .9) !default; +$close-font-size : $font-size-base * 1.5 !default; +$close-font-weight: $font-weight-bold !default; +$close-color : $black !default; +$close-text-shadow: 0 1px 0 $white !default; + + + +// Code + +$code-font-size: $small-font-size !default; +$code-color : $pink !default; + +$kbd-padding-y: .2rem !default; +$kbd-padding-x: .4rem !default; +$kbd-font-size: $code-font-size !default; +$kbd-color : $white !default; +$kbd-bg : $gray-900 !default; + +$pre-color: null !default; + +// Avatars +$avatar-sm-y: 1.5rem !default; +$avatar-sm-x: 1.5rem !default; + +$avatar-y: 2rem !default; +$avatar-x: 2rem !default; + +$avatar-md-y: 3rem !default; +$avatar-md-x: 3rem !default; + +$avatar-lg-y: 4.5rem !default; +$avatar-lg-x: 4.5rem !default; + +$avatar-xl-y: 8rem !default; +$avatar-xl-x: 8rem !default; + +// Footer + +$footer-link-font-size : .85rem !default; +$footer-bg : theme-color("secondary") !default; +$footer-color : $gray-600 !default; +$footer-link-color : $gray-600 !default; +$footer-link-hover-color : $gray-700 !default; +$footer-heading-color : $gray-600 !default; +$footer-heading-font-size: $font-size-sm !default; +$padding-footer-sm : .125rem !default; +$padding-footer : .375rem !default; +$padding-footer-md : .625rem !default; +$padding-footer-general : .9375rem !default; +$padding-footer-big : 1.5rem !default; diff --git a/app/src/resources/volt/scss/volt/_vendor.scss b/app/src/resources/volt/scss/volt/_vendor.scss new file mode 100644 index 0000000..9d4f390 --- /dev/null +++ b/app/src/resources/volt/scss/volt/_vendor.scss @@ -0,0 +1,6 @@ +// Vendor +@import "vendor/headroom"; +@import "vendor/nouislider"; +@import "vendor/prism"; +@import "vendor/chartist/chartist"; +@import "vendor/datepicker"; diff --git a/app/src/resources/volt/scss/volt/components/_accordions.scss b/app/src/resources/volt/scss/volt/components/_accordions.scss new file mode 100755 index 0000000..5ea18f2 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_accordions.scss @@ -0,0 +1,52 @@ +/** + * = Accordions +*/ + + +.accordion-button { + text-align: left; + &:not(.collapsed) { + &::after { + background-image: none; + @include transform(rotateZ(45deg)); + } + } + + // Accordion icon + &::after { + background-image: none; + content: '\f067'; + font-family: $font-awesome-5; + font-size: $font-size-base; + font-weight: 900; + } + + &:hover{ + background-color: $gray-200; + } +} + + +// Flush accordion items +// +// Remove borders and border-radius to keep accordion items edge-to-edge. + +.accordion-flush { + .accordion-button { + background-color: transparent; + &:not(.collapsed) { + color: $tertiary; + } + &:focus { + border-color: $gray-300; + box-shadow: none; + } + } + .accordion-collapse { + border: 0; + } +} + + + + diff --git a/app/src/resources/volt/scss/volt/components/_alerts.scss b/app/src/resources/volt/scss/volt/components/_alerts.scss new file mode 100644 index 0000000..6fd954d --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_alerts.scss @@ -0,0 +1,10 @@ +.alert-heading{ + font-weight: $font-weight-bold; +} + +.alert-icon{ + margin-bottom: .5rem; + span{ + font-size: $alert-icon-font-size; + } +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_animations.scss b/app/src/resources/volt/scss/volt/components/_animations.scss new file mode 100644 index 0000000..cfed042 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_animations.scss @@ -0,0 +1,234 @@ + +/** + * = Animations + */ + + @for $size from 1 to 10 { + .animate-up-#{$size}, + .animate-right-#{$size}, + .animate-down-#{$size}, + .animate-left-#{$size}, + .scale-up-#{$size}, + .scale-down-#{$size} { + transition: $transition-base; + } + + .scale-up-#{$size} { + &:hover { + transform: scale($size * 0.5555555556); + } + } + + .scale-up-hover-#{$size} { + &:hover { + & .scale { + transform: scale($size * 0.5555555556); + } + } + } + + .scale-down-#{$size} { + &:hover { + transform: scale($size * 0.4); + } + } + + .animate-up-#{$size} { + &:hover, + .animate-hover:hover & { + @include translate(0, -#{$size}px); + } + } + .animate-right-#{$size} { + &:hover, + .animate-hover:hover & { + @include translate(#{$size}px, 0); + } + } + .animate-down-#{$size} { + &:hover, + .animate-hover:hover & { + @include translate(0, #{$size}px); + } + } + .animate-left-#{$size} { + &:hover, + .animate-hover:hover & { + @include translate(-#{$size}px, 0); + } + } +} + +// Keyframes +@keyframes show-navbar-collapse { + 0% { + opacity: 0; + transform: scale(.95); + transform-origin: 100% 0; + } + + 100% { + opacity: 1; + transform: scale(1); + } +} + +@keyframes hide-navbar-collapse { + from { + opacity: 1; + transform: scale(1); + transform-origin: 100% 0; + } + + to { + opacity: 0; + transform: scale(.95); + } +} + +@keyframes show-navbar-dropdown { + 0% { + opacity: 0; + transform: translate(0, 10px) perspective(200px) rotateX(-2deg); + transition: visibility 0.45s, opacity 0.45s, transform 0.45s; + } + + 100% { + transform: translate(0, 0); + opacity: 1; + } +} + +@keyframes hide-navbar-dropdown { + from { + opacity: 1; + } + + to { + opacity: 0; + transform: translate(0, 10px); + } +} + +@keyframes show-dropdown { + 0% { + opacity: 0; + transform-origin: perspective(200px) rotateX(-2deg); + transition: visibility 0.45s, opacity .5s; + } + + 100% { + opacity: 1; + } +} + + +@keyframes hide-dropdown { + from { + opacity: 1; + } + + to { + opacity: 0; + transform: translate(0, 10px); + } +} + +.bell-shake { + &.shaking { + animation: bellshake .5s cubic-bezier(.36,.07,.19,.97) both; + backface-visibility: hidden; + transform-origin: top right; + } +} + +:root { + --animate-duration: 1s; + --animate-delay: 1s; + --animate-repeat: 1; + } + +.animate__animated { + -webkit-animation-duration: 1s; + animation-duration: 1s; + -webkit-animation-duration: var(--animate-duration); + animation-duration: var(--animate-duration); + -webkit-animation-fill-mode: both; + animation-fill-mode: both; + } + +.animate__jackInTheBox { + -webkit-animation-name: jackInTheBox; + animation-name: jackInTheBox; +} + +@keyframes bellshake { + 0% { transform: rotate(0); } + 15% { transform: rotate(5deg); } + 30% { transform: rotate(-5deg); } + 45% { transform: rotate(4deg); } + 60% { transform: rotate(-4deg); } + 75% { transform: rotate(2deg); } + 85% { transform: rotate(-2deg); } + 92% { transform: rotate(1deg); } + 100% { transform: rotate(0); } +} + +@-webkit-keyframes jackInTheBox { + from { + opacity: 0; + -webkit-transform: scale(0.1) rotate(30deg); + transform: scale(0.1) rotate(30deg); + -webkit-transform-origin: center bottom; + transform-origin: center bottom; + } + + 50% { + -webkit-transform: rotate(-10deg); + transform: rotate(-10deg); + } + + 70% { + -webkit-transform: rotate(3deg); + transform: rotate(3deg); + } + + to { + opacity: 1; + -webkit-transform: scale(1); + transform: scale(1); + } + } + @keyframes jackInTheBox { + from { + opacity: 0; + -webkit-transform: scale(0.1) rotate(30deg); + transform: scale(0.1) rotate(30deg); + -webkit-transform-origin: center bottom; + transform-origin: center bottom; + } + + 50% { + -webkit-transform: rotate(-10deg); + transform: rotate(-10deg); + } + + 70% { + -webkit-transform: rotate(3deg); + transform: rotate(3deg); + } + + to { + opacity: 1; + -webkit-transform: scale(1); + transform: scale(1); + } + } + .animate__jackInTheBox { + -webkit-animation-name: jackInTheBox; + animation-name: jackInTheBox; + } + +[class*=shadow] { + transition: all .2s ease; +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_avatars.scss b/app/src/resources/volt/scss/volt/components/_avatars.scss new file mode 100755 index 0000000..ff412b6 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_avatars.scss @@ -0,0 +1,102 @@ +/** + * = Avatars + */ + + .avatar + .avatar-content { + display: inline-block; + margin-left: 0.75rem; +} + +.avatar-sm { + width: $avatar-sm-y; + height: $avatar-sm-x; + + img { + width: $avatar-sm-y; + height: $avatar-sm-x; + } +} + +.avatar { + width: $avatar-y; + height: $avatar-x; + + img { + width: $avatar-y; + height: $avatar-x; + } +} + +.avatar-md { + width: $avatar-md-y; + height: $avatar-md-x; + + img { + width: $avatar-md-y; + height: $avatar-md-x; + } +} + +.avatar-lg { + width: $avatar-lg-y; + height: $avatar-lg-x; + + img { + width: $avatar-lg-y; + height: $avatar-lg-x; + } +} + +.avatar-xl { + width: $avatar-xl-y; + height: $avatar-xl-x; + + @include media-breakpoint-down(lg) { + width: $avatar-lg-y; + height: $avatar-lg-x; + } + +} + + +.avatar-offline, +.avatar-online { + &::before { + position: absolute; + border: 2px solid $white; + background-color: $success; + display: block; + top: 2px; + left: 39px; + content: ""; + border-radius: 50%; + height: 10px; + width: 10px; + } +} + +.avatar-offline { + &::before { + background-color: $danger; + } +} + +// Overlapped avatars +.avatar-group { + .avatar { + position: relative; + z-index: 0; + + img { + border: 2px solid $white; + } + + &:hover { + z-index: 3; + } + } + + .avatar + .avatar { + margin-left: -1rem; + } +} diff --git a/app/src/resources/volt/scss/volt/components/_badge.scss b/app/src/resources/volt/scss/volt/components/_badge.scss new file mode 100755 index 0000000..db64b82 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_badge.scss @@ -0,0 +1,98 @@ +/** + * = Badges + */ + +.badge { + font-size:$badge-font-size; + font-weight: $badge-font-weight; + + a { + color: $white; + } + + &.super-badge{ + vertical-align: super; + } +} + +// Variations +.badge-pill { + padding-right: $badge-pill-padding-x; + padding-left: $badge-pill-padding-x; +} + +// Multiple inline badges +.badge-inline { + margin-right: .625rem; + + & + span { + top: 2px; + position: relative; + + & > a { + text-decoration: underline; + } + } +} + +// Sizes +.badge-sm { + padding: .2rem .6rem; +} + +.badge-lg { + font-size: $font-size-lg; + padding: .35rem .85rem; +} + +//button badges + +.btn{ + .badge-corner{ + position: absolute; + top: -50%; + right: .5rem; + transform: translate(50%,50%); + margin: 0; + border: 3px solid; + padding-left: .5rem; + padding-right: .5rem; + } +} +//Tags +.wi-tags{ + a { + display: inline-block; + padding: 0.125rem 0.875rem; + margin: 0.25rem; + line-height: 2; + font-size: $font-size-sm; + box-shadow: $box-shadow-sm; + background-color: $white; + } +} + +.pixel-pro-badge{ + position: relative; + font-size: $font-size-sm; + text-transform: uppercase; + font-weight: $font-weight-bold; + right: -11px; + padding: 4px 12px; + top: -30px; + background: $white; + @include border-radius($border-radius-sm); + @include box-shadow($box-shadow-sm); + @include media-breakpoint-down(sm){ + font-size: $font-size-base; + right: -13px; + padding: 5px 10px; + top: -23px; + } +} + +.subscription-badge { + top: -19px; + right: -12px; + font-size: .75rem; +} diff --git a/app/src/resources/volt/scss/volt/components/_body.scss b/app/src/resources/volt/scss/volt/components/_body.scss new file mode 100644 index 0000000..002688a --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_body.scss @@ -0,0 +1,31 @@ +iframe { + border: 0; +} + +figcaption, +figure, +main { + display: block; + margin: 0; +} + +main { + overflow: hidden; +} + +img { + max-width: 100%; +} + +strong{ + font-weight: $font-weight-bold; +} + +button:focus { + outline: 0; +} + +label { + font-weight: $font-weight-bold; + margin-bottom:.5rem; +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_breadcrumb.scss b/app/src/resources/volt/scss/volt/components/_breadcrumb.scss new file mode 100755 index 0000000..38e72d6 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_breadcrumb.scss @@ -0,0 +1,56 @@ +/** + * = Breadcrumbs + */ + +.breadcrumb-item { + font-size: $font-size-xs; + &, a { + color: $breadcrumb-item-color; + font-weight: $breadcrumb-font-weight; + font-size: $font-size-xs; + @include media-breakpoint-up(sm){ + font-size: $font-size-sm; + } + } + + &.active { + font-weight: $breadcrumb-active-font-weight; + } + +} + +.breadcrumb-transparent { + background: transparent; + padding: 0; +} + +@each $color, $value in $theme-colors { + .breadcrumb-#{$color} { + background: $value; + .breadcrumb-item{ + &.active { + color: $white; + } + } + &.breadcrumb-transparent { + background: transparent; + .breadcrumb-item { + &.active { + color: $value; + } + } + } + } +} + +.breadcrumb-text-light { + .breadcrumb-item { + &, a { + color: $breadcrumb-item-light-color; + } + + &:before { + color: $breadcrumb-divider-light-color; + } + } +} diff --git a/app/src/resources/volt/scss/volt/components/_buttons.scss b/app/src/resources/volt/scss/volt/components/_buttons.scss new file mode 100755 index 0000000..e45d369 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_buttons.scss @@ -0,0 +1,86 @@ +/* +* = Buttons +*/ + +.btn { + &.btn-circle { + border-radius: $circle-radius; + } + &.btn-md{ + padding: 0.65rem 1.25rem; + } + &.btn-xs{ + padding: .2rem 0.35rem; + font-size: 0.55rem; + box-shadow: none; + } + &.large-form-btn{ + padding: 1.2rem 1rem; + } + &.dashed-outline { + border-style: dashed; + } +} + + +.btn-icon-only { + width: 2.575rem; + height: 2.575rem; + padding: 0; + @include display-flex(); + @include justify-content(center); + @include align-items(center); + + &.btn-xs { + width: 1.7rem; + height: 1.7rem; + } + &.btn-sm { + width: 2rem; + height: 2rem; + } +} + +.btn-upgrade-pro { + position: fixed; + bottom: 15px; + right: 15px; + width: 190px; + + @include media-breakpoint-up(md) { + left: 35px; + } +} + +// Fix for darken background color +@each $color, $value in $theme-colors { + .btn-#{$color} { + &:hover{ + background-color: darken( $value, 5% ); + border-color: darken( $value, 5% ); + } + } +} + +// Brand (social) buttons +@each $color, $value in $brand-colors { + .btn-#{$color} { + @include button-variant($value, $value); + + &.btn-link { + color: $value; + background: transparent; + box-shadow: none; + border:0; + border-style: none; + &:hover, + &:focus, + &.active { + background-color: transparent !important; + box-shadow: none; + border: 0; + color: $value; + } + } + } +} diff --git a/app/src/resources/volt/scss/volt/components/_card.scss b/app/src/resources/volt/scss/volt/components/_card.scss new file mode 100755 index 0000000..2e56166 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_card.scss @@ -0,0 +1,149 @@ +/** + * = Cards + */ + +.card { + position: relative; + .card-header{ + background: transparent; + } + + &.hover-state{ + &:hover { + background-color: $soft; + } + } + + .profile-cover{ + @include background-image(no-repeat, cover); + height: 200px; + } + +} + +.message-wrapper, +.task-wrapper{ + .card{ + border:0; + } +} + +.customer-testimonial { + .content-wrapper{ + &:before { + content: ""; + position: absolute; + top: 25px; + left: -1px; + margin-left: .75rem; + border: 8px solid $black; + border-color: transparent #e0e6ec #e0e6ec transparent; + -webkit-box-sizing: border-box; + box-sizing: border-box; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; + @include transform(rotate(135deg)); + @include box-shadow($box-shadow); + } + } +} + +.card-footer{ + background-color:transparent; +} + +.card-stats{ + padding-left:1.9rem; +} + + +// Card with blockquotes + +.card { + .card-blockquote { + position: relative; + padding: 2rem; + + .svg-bg { + display: block; + position: absolute; + width: 100%; + height: 95px; + top: -94px; + left: 0; + } + } +} + +// Animated cards + + +.page-preview { + + display: block; + position: relative; + + .show-on-hover { + position: absolute; + bottom: -0; + background: rgba($dark, .85); + padding: 10px 0; + width: 100%; + left: 0; + opacity: 0; + @include transition(.2s); + } + + &:hover { + z-index: 1; + + .show-on-hover { + opacity: 1; + } + } +} + +.theme-settings { + z-index: 99; + position: fixed; + right: 15px; + bottom: 0; + + &, .card-body { + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } +} + +.theme-settings-close { + position: absolute; + top: 8px; + right: 8px; + font-size: .65rem; +} + +.btn-close { + + &.theme-settings-close{ + background: transparent escape-svg($btn-close-bg-white) center / $btn-close-width auto no-repeat; // include transparent for button elements + border: 0; // for button elements + @include border-radius(); + opacity: $btn-close-opacity; + } +} + +.theme-settings-expand { + right: 15px; + bottom: 0; + height: 0; + @include transition(.3s height); + + &.show { + height: 40px; + } + + &:hover { + background: $gray-600; + cursor: pointer; + } +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_carousel.scss b/app/src/resources/volt/scss/volt/components/_carousel.scss new file mode 100755 index 0000000..3da686b --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_carousel.scss @@ -0,0 +1,52 @@ +/** + * = Bootstrap carousels + */ + +.carousel-caption { + &, h5 { + color: $white; + } +} + +//Indicators + +.carousel-indicators { + li { + height: 10px; + width:10px; + border-radius:$circle-radius; + background:transparent; + border:2px solid $white; + } + .active { + opacity: 1; + background: $white; + } +} + +//Carousel Controls + +.carousel-control-prev-icon, +.carousel-control-next-icon { + width: auto; + height: auto; + font-weight: 900; +} + +.carousel-control-prev-icon { + background-image: none; + &::before{ + content: '\f060'; + font-family: $font-awesome-5; + font-size: $font-size-xxl; + } +} + +.carousel-control-next-icon { + background-image: none; + &:before{ + font-family: $font-awesome-5; + content: "\f061"; + font-size: $font-size-xxl; + } +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_charts.scss b/app/src/resources/volt/scss/volt/components/_charts.scss new file mode 100644 index 0000000..d95f812 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_charts.scss @@ -0,0 +1,52 @@ +.ct-bar { + stroke-linecap: round; + stroke-width: 10px; +} +.ct-label { + fill: $body-color; + color: $body-color; + font-size: 0.75rem; + margin-top: 6px; + font-weight: $font-weight-bold; +} + +.ct-slice-pie { + stroke: $white; + stroke-width: 3px; +} + +.ct-chart-donut .ct-series { + stroke: $white; + stroke-width: 3px; +} + +.ct-chart-pie .ct-label, .ct-chart-donut .ct-label { + font-size: 0.75rem; + font-weight: $font-weight-bold; +} + +.small-chart{ + margin-left:-1rem; +} + +//Label color Fix for pie chart + +.ct-chart-pie .ct-label, .ct-chart-donut .ct-label { + color: #ffffff; + fill: #ffffff; + font-size: $font-size-base; + font-weight: $font-weight-bold; +} + +.ct-series-g{ + .ct-grid { + stroke: #F8BD7A; + stroke-width: 2px; + stroke-dasharray: 2px; + } + .ct-label.ct-horizontal.ct-end { + margin-left:-9px; + margin-top:10px; + color: $primary; + } +} diff --git a/app/src/resources/volt/scss/volt/components/_close.scss b/app/src/resources/volt/scss/volt/components/_close.scss new file mode 100755 index 0000000..8b56b91 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_close.scss @@ -0,0 +1,33 @@ +/** + * = Close + */ + +.close { + @if $enable-transitions { + transition: $transition-base; + } + &>span:not(.sr-only) { + display: block; + height: 1.25rem; + width: 1.25rem; + background-color: $close-bg; + color: $close-color; + line-height: 17px; + border-radius: 50%; + font-size: 1.25rem; + @if $enable-transitions { + transition: $transition-base; + } + } + + &:hover, + &:focus { + background-color: $close-hover-bg; + color: $close-hover-color; + outline: none; + + span:not(.sr-only) { + background-color: $close-hover-bg; + } + } +} diff --git a/app/src/resources/volt/scss/volt/components/_custom-forms.scss b/app/src/resources/volt/scss/volt/components/_custom-forms.scss new file mode 100755 index 0000000..d2be88d --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_custom-forms.scss @@ -0,0 +1,103 @@ +/** + * = Custom forms + */ + + .custom-control-label { + // Background-color and (when enabled) gradient + &:before { + box-shadow: $custom-control-box-shadow; + @if $enable-transitions { + transition: $input-transition; + } + } + + span { + position: relative; + top: 2px; + } +} + +.custom-control-label { + margin-bottom: 0; +} + +.custom-control-input { + &:active~.custom-control-label::before { + border-color: $custom-control-indicator-active-border-color; + } +} + +// Custom File Input + +.custom-file-label { + background-color: #f3f3f5; + + &::after { + + background-color: #f3f3f5; + } +} + + +//Select +.custom-select{ + font-size: $input-btn-font-size; + box-shadow:none; + + &.custom-select-shadow { + box-shadow: $input-box-shadow; + transition: box-shadow .15s ease; + + &:focus { + box-shadow: $shadow-input-focus; + } + } + + &:hover { + cursor: pointer; + } +} + +// Inbox star +.rating-star { + &.star-lg{ + label{ + margin-bottom: .5rem; + &::before{ + font-size: $font-size-xl; + } + } + } + label { + position: relative; + margin-bottom: 0; + cursor: pointer; + color: $light; + &:before { + content: "\f005"; + font-family: "Font Awesome 5 Free"; + font-weight: 900; + transition: all .2s ease; + font-size: 1.0625rem; + } + } + input { + position: absolute; + z-index: -1; + opacity: 0; + } + + >input:checked~label { + color: $warning; + } + + >label { + &:hover { + color: $warning; + } + &:hover~label { + color: $warning; + } + } +} + diff --git a/app/src/resources/volt/scss/volt/components/_datepicker.scss b/app/src/resources/volt/scss/volt/components/_datepicker.scss new file mode 100755 index 0000000..02e2450 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_datepicker.scss @@ -0,0 +1,13 @@ +/** + * = Datepickers + */ + + .datepicker { + + .datepicker-cell.selected, + .datepicker-cell.selected:hover { + background: $primary; + } + + } + \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_dropdown.scss b/app/src/resources/volt/scss/volt/components/_dropdown.scss new file mode 100755 index 0000000..6b87370 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_dropdown.scss @@ -0,0 +1,68 @@ +.dropdown-menu { + .dropdown-header, + .dropdown-item { + padding: .5rem 1rem; + font-size: $dropdown-font-size; + .dropdown-icon{ + height: 1.25rem; + width: 1.25rem; + } + } + + .dropdown-header { + color: $dropdown-header-color; + font-weight: $dropdown-header-font-weight; + } + + .dropdown-item { + transition: $transition-base; + font-weight: $dropdown-item-font-weight; + + } + + .show & { + animation: show-dropdown .2s ease forwards; + } + + &.dropdown-menu-xs { + min-width: 120px; + max-width: 120px; + @include box-shadow($box-shadow-sm); + } + +} + +// Dropown sizes +.dropdown-menu-sm { + min-width: 100px; + border: $border-radius-lg; +} + +.dropdown-menu-md { + min-width: 180px; + border: $border-radius-lg; +} + +.dropdown-menu-lg { + min-width: 350px; + border-radius: $border-radius-lg; + @include media-breakpoint-down(sm) { + min-width: 300px; + } +} + + + +// this helps when not only the button should toggle a dropdown +[data-toggle]:hover { + cursor: pointer; +} + +// remove the caret from Bootstrap by default +.dropdown-toggle { + &:after, .dropend &:after, .dropstart &:before, .dropup &:after { + display: none; + } +} + + diff --git a/app/src/resources/volt/scss/volt/components/_icons.scss b/app/src/resources/volt/scss/volt/components/_icons.scss new file mode 100755 index 0000000..30d8ea9 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_icons.scss @@ -0,0 +1,202 @@ +/** + * = Icon boxes + */ + + .icon { + height: $icon-size; + + &.icon-xxs { + height: $icon-size-xxs; + } + + &.icon-xs { + height: $icon-size-xs; + } + &.icon-sm { + height: $icon-size-sm; + } + &.icon-lg { + height: $icon-size-lg; + } + &.icon-xl { + height: $icon-size-xl; + } + &.icon-xxl { + height: $icon-size-xxl; + } + + &.active-dot { + svg { + height: 0.7rem; + } + } +} + +// Icons included in shapes +.icon-shape { + width: $icon-shape; + height: $icon-shape; + display: inline-flex; + align-items: center; + justify-content: center; + + svg { + height: $icon-size; + } + + &.icon-xxs { + width: $icon-shape-xxs; + height: $icon-shape-xxs; + svg { + height: $icon-size-xxs; + } + } + + &.icon-xs { + width: $icon-shape-xs; + height: $icon-shape-xs; + svg { + height: $icon-size-xs; + } + } + + &.icon-sm { + width: $icon-shape-sm; + height: $icon-shape-sm; + svg { + height: $icon-size-sm; + } + } + + &.icon-lg { + width: $icon-shape-lg; + height: $icon-shape-lg; + svg { + height: $icon-size-lg; + } + } + + &.icon-xl { + width: $icon-shape-xl; + height: $icon-shape-xl; + svg { + height: $icon-size-xl; + } + } + + &.icon-xxl { + width: $icon-shape-xxl; + height: $icon-shape-xxl; + svg { + height: $icon-size-xxl; + } + } +} + +// Inbox star Icons +.rating-star { + &:hover { + cursor: pointer; + color: $warning; + } +} + +.toggle-icon { + height: 1.875rem; +} + +//Icons inside table fixed width +.w--20 { + width: 20px; +} + +//Calendar Icon + +.calendar { + width: 3.125rem; + line-height: 1; + flex-direction: column; + text-align: center; + border-radius: $border-radius; + .calendar-month { + background-color: $danger; + color: $white; + border-radius: $border-radius $border-radius 0 0; + padding: 0.275rem; + font-weight: $font-weight-bold; + } + .calendar-day { + font-size: $font-size-xl; + padding: 0.25rem; + background-color: $gray-100; + border-top: 0; + border-radius: 0 0 $border-radius $border-radius; + color: $dark; + font-weight: $font-weight-bold; + } +} + +//Legend dot + +.dot { + width: 12px; + height: 12px; +} + +//Bell notification dot +.bell-dot { + display: inline-block; + position: absolute; + top: -11px; + right: 6px; + height: 10px; + width: 10px; + border: 2px solid $gray-100; +} + +.notification-bell.unread { + &::before { + position: absolute; + content: ""; + background-color: $danger; + right: 12px; + top: 7px; + height: 0.75rem; + width: 0.75rem; + border-radius: 50%; + border: 2px solid $gray-100; + } +} + +//Index Big Icon +.bootstrap-big-icon { + position: absolute; + opacity: 0.05; + transform: rotate(17deg); + @include media-breakpoint-up(lg) { + right: -20%; + bottom: 6%; + } + + @include media-breakpoint-up(xl) { + right: -10%; + bottom: 6%; + } +} + +.github-big-icon { + position: absolute; + right: 80px; + svg { + color: $gray-400; + height:800px; + opacity: 0.2; + } +} + +//Colors for icons, shapes and svg's +@each $color, $value in $theme-colors { + .icon-shape-#{$color} { + @include icon-shape-variant($value); + } +} diff --git a/app/src/resources/volt/scss/volt/components/_images.scss b/app/src/resources/volt/scss/volt/components/_images.scss new file mode 100644 index 0000000..a4cb8f7 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_images.scss @@ -0,0 +1,67 @@ +/** + * = Images + */ + .image-xl { + height: 20rem; + img{ + height: 20rem; + } +} + +.image-lg { + height: 12rem; + img{ + height: 12rem; + } +} + +.image-md{ + height: 5.5rem; + img{ + height: 5.5rem; + } +} + +.image-sm { + height: 3rem; + img{ + height: 3rem; + } +} + +.image-xs { + height: 1.5rem; + img{ + height: 1.5rem; + } +} + +.image-small { + height: 1rem; + img{ + height: 1rem; + } +} + +.full-image{ + height:100%; +} + + +.language-flag{ + width: auto; + height: 1rem; + margin-right: 0.4rem; + position: relative; + top: -2px; +} + +.home-pattern{ + fill: $gray-100; +} + +.form-bg-image { + background-repeat: no-repeat!important; + background-position: top center!important; +} + diff --git a/app/src/resources/volt/scss/volt/components/_list-group.scss b/app/src/resources/volt/scss/volt/components/_list-group.scss new file mode 100755 index 0000000..160e468 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_list-group.scss @@ -0,0 +1,96 @@ +/** + * = List groups + */ + +// Space list items +.list-group-space { + .list-group-item { + margin-bottom: 1.5rem; + @include border-radius($list-group-border-radius); + } +} + + +// List group components +.list-group-item{ + border:0; + &.active { + z-index: 2; // Place active items above their siblings for proper border styling + color: $list-group-active-color; + background-color: $list-group-active-bg; + border-color: $list-group-active-border-color; + } + + i{ + width: 1rem; + } +} + +.list-group-img { + width: 3rem; + height: 3rem; + border-radius: 50%; + vertical-align: top; + margin: -.1rem 1.2rem 0 -.2rem; +} +.list-group-content { + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + min-width: 0; + + > p { + color: $gray-500; + line-height: 1.5; + margin: .2rem 0 0; + } +} +.list-group-heading { + font-size: $font-size-base; + color: $gray-800; + + > small { + float: right; + color: $gray-500; + font-weight: 500; + } +} + + +.list-group{ + &.simple-list{ + .list-group-item{ + background: transparent; + border: none; + padding: 0.375rem 0.125rem; + i{ + vertical-align: middle; + width: 35px; + display: inline-block; + } + } + } + +} + + +//News list for widgets + +.news-list{ + .row{ + > [class*='col']{ + padding: 0 $spacer/4; + } + } + + > li{ + &:not(:last-child){ + margin-bottom: .75rem; + } + } + + img{ + min-height: 100%; + object-fit: cover; + } +} diff --git a/app/src/resources/volt/scss/volt/components/_modal.scss b/app/src/resources/volt/scss/volt/components/_modal.scss new file mode 100755 index 0000000..5fe4bc7 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_modal.scss @@ -0,0 +1,36 @@ +/** + * = Modals + */ + +.modal{ + &.static-example{ + position: relative; + display: block; + } +} + +.modal-content { + border: 0; + @if $enable-rounded { + border-radius: $modal-content-border-radius; + } @else { + border-radius: 0; + } +} + +.modal-fluid { + .modal-dialog { + margin-top: 0; + margin-bottom: 0; + } + .modal-content { + border-radius: 0; + } +} + +@each $color, $value in $theme-colors { + .modal-#{$color} { + @include modal-variant($value); + } +} + diff --git a/app/src/resources/volt/scss/volt/components/_nav.scss b/app/src/resources/volt/scss/volt/components/_nav.scss new file mode 100755 index 0000000..ab1907c --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_nav.scss @@ -0,0 +1,256 @@ +/** + * = Navs + */ + +.nav-link { + color: $nav-link-color; + + &:hover, + &.active { + color: $nav-link-hover-color; + + img { + opacity : inherit; + transition: $transition-base; + } + } + + span { + position: relative; + } +} + +//Tabs + +.nav-tabs { + .nav-item { + margin-bottom: 0; + } + + .nav-link { + border : 0; + padding : 1rem 1rem; + background-color: $white; + + &.active { + color : $white; + background-color: $primary; + } + } + + &.nav-dark { + .nav-link { + &.active { + color : $white; + background-color: #12358a; + } + } + } + + &.nav-light { + .nav-link { + &.active { + color : $black; + background-color: $light; + } + + &:hover { + color: $black; + } + } + } +} + +// Pills + +.nav-pills { + .nav-item:not(:last-child) { + padding-right: $nav-pills-space-x; + } + + .nav-link { + padding : $nav-pills-padding-y $nav-pills-padding-x; + transition: $transition-base; + box-shadow: $nav-link-shadow; + border : $nav-pills-border-width solid $nav-pills-border-color; + + &.avatar-link { + border: 0; + } + + &:hover { + color: $nav-pills-link-hover-color; + } + } + + .nav-link.active, + .show>.nav-link { + color : $nav-pills-link-active-color; + background-color: $nav-pills-link-active-bg; + border-color : $nav-pills-link-active-color; + } + + &.rounded { + .nav-link { + border-radius: 30px; + } + + &.vertical-tab { + .nav-link { + margin-bottom: .625rem; + min-width : 100px; + } + + .nav-item:not(:last-child) { + padding-right: 0; + } + } + } + + &.bordered-pill-md { + .nav-link { + border : $border-width-md solid $gray-200; + font-weight: $font-weight-bold; + } + } + + &.vertical-tab { + .nav-link { + margin-bottom: .625rem; + } + + .nav-item:not(:last-child) { + padding-right: 0; + } + } + + @include media-breakpoint-down(xs) { + .nav-item { + margin-bottom: $spacer; + } + } +} + +@include media-breakpoint-down(sm) { + .nav-pills:not(.nav-pills-circle) { + .nav-item { + padding-right: 0; + } + } +} + + +// Navs circle + +.nav-pill-circle { + .nav-link { + @include display-flex(); + text-align : center; + height : 80px; + width : 80px; + padding : 0; + box-shadow : $nav-link-shadow; + border-radius : $nav-pills-border-circle; + align-items : center; + justify-content: center; + + &.avatar-link { + box-shadow: none; + } + } + + &.vertical-tab { + .nav-link-icon { + + i, + svg { + font-size: 1.5rem; + } + } + + .nav-item:not(:last-child) { + padding-right: 0; + } + } + + .nav-link-icon { + + i, + svg { + font-size: 1.25rem; + margin : 0; + display : block; + } + } +} + +// Navs square + +.nav-pill-square { + .nav-link { + text-align: center; + min-width : 80px; + box-shadow: $nav-link-shadow; + @include display-flex(); + align-items : center; + justify-content: center; + } + + &.vertical-tab { + .nav-link { + margin-bottom: .625rem; + min-width : 100px; + } + + .nav-item:not(:last-child) { + padding-right: 0; + } + } + + .nav-link-icon { + + i, + svg { + font-size : 1.25rem; + margin : 0; + display : block; + line-height: 50px; + } + } +} + +// Nav wrapper +.nav-wrapper { + padding: 1rem 0; + @include border-top-radius($card-border-radius); + + +.card { + @include border-top-radius(0); + @include border-bottom-radius($card-border-radius); + } +} + +// Tabbable tabs +// +// Hide tabbable panes to start, show them when `.active` + +.tab-content { + >.tab-pane { + display: none; + + pre { + padding: 0; + margin : 0; + } + } + + >.active { + display: block; + } +} + +.nav-pills .nav-item { + @include media-breakpoint-up(lg) { + margin-bottom: 0; + } +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_pagination.scss b/app/src/resources/volt/scss/volt/components/_pagination.scss new file mode 100755 index 0000000..106973b --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_pagination.scss @@ -0,0 +1,16 @@ +/** + * = Paginations + */ + .circle-pagination{ + .page-link, + span{ + @include display-flex(); + align-items: center; + justify-content: center; + width: 34px; + height: 34px; + padding: 0; + @include border-radius($circle-radius); + } +} + diff --git a/app/src/resources/volt/scss/volt/components/_popover.scss b/app/src/resources/volt/scss/volt/components/_popover.scss new file mode 100755 index 0000000..520acd8 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_popover.scss @@ -0,0 +1,19 @@ +/** + * = Popovers + */ + +.popover { + border: 0; +} + + +.popover-header { + font-weight: $font-weight-bold; +} + +// Alternative colors +@each $color, $value in $theme-colors { + .popover-#{$color} { + @include popover-variant($value); + } +} \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_progress.scss b/app/src/resources/volt/scss/volt/components/_progress.scss new file mode 100755 index 0000000..c974813 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_progress.scss @@ -0,0 +1,116 @@ +/** + * = Progress bars + */ + +.progress-wrapper { + position: relative; +} + +.progress-bar { + box-shadow: none; + border-radius: 0; + height: auto; +} + +.progress { + height: 6px; + margin-bottom: $spacer; + overflow: hidden; + background-color: $progress-bg; + font-size: $font-size-xs; + font-weight: $font-weight-bold; + @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, .1)) +} + +.progress-xl { + height: $progress-xl-size; +} +.progress-lg { + height: $progress-lg-size; +} +.progress-sm { + height: $progress-sm-size; +} + +.progress-info{ + @include display-flex(); + @include align-items(center); + @include justify-content(space-between); + margin-bottom: .5rem; + + .progress-label { + span { + display: inline-block; + color: $primary; + font-size: $font-size-sm; + font-weight: $font-weight-bold; + } + } + + .progress-percentage { + text-align: right; + span { + display: inline-block; + color: $gray-500; + font-size: $font-size-xs; + font-weight: $font-weight-bold; + } + } +} + +.info-xl{ + .progress-label, + .progress-percentage { + span { + font-size: $font-size-sm; + } + } + + .progress-percentage { + text-align: right; + } + +} + +.progress-tooltip { + background: $primary; + color: $white; + font-weight: $font-weight-bold; + padding: .25rem .375rem; + line-height: 1; + font-size: $font-size-xs; + position: relative; + border-radius: $border-radius-sm; + + &:after { + content: " "; + position: absolute; + top: 100%; + left: 10px; + border: solid transparent; + height: 0; + width: 0; + pointer-events: none; + border-top-color: $gray; + border-width: 6px; + } +} + +@-webkit-keyframes animate-positive{ + 0% { width: 0%; } +} +@keyframes animate-positive{ + 0% { width: 0%; } +} + +//Tooltip arrow color +@each $color, +$value in $theme-colors { + .progress-info{ + .bg-#{$color} { + &::after{ + border-top-color: $value; + } + } + } +} diff --git a/app/src/resources/volt/scss/volt/components/_scrollbar.scss b/app/src/resources/volt/scss/volt/components/_scrollbar.scss new file mode 100644 index 0000000..e757b73 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_scrollbar.scss @@ -0,0 +1,228 @@ +[data-simplebar] { + position: fixed; + flex-direction: column; + flex-wrap: wrap; + justify-content: flex-start; + align-content: flex-start; + align-items: flex-start; + } + + .simplebar-wrapper { + overflow: hidden; + width: inherit; + height: inherit; + max-width: inherit; + max-height: inherit; + } + + .simplebar-mask { + direction: inherit; + position: absolute; + overflow: hidden; + padding: 0; + margin: 0; + left: 0; + top: 0; + bottom: 0; + right: 0; + width: auto !important; + height: auto !important; + z-index: 0; + } + + .simplebar-offset { + direction: inherit !important; + box-sizing: inherit !important; + resize: none !important; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + padding: 0; + margin: 0; + -webkit-overflow-scrolling: touch; + } + + .simplebar-content-wrapper { + direction: inherit; + box-sizing: border-box !important; + position: relative; + display: block; + height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */ + width: auto; + max-width: 100%; /* Not required for horizontal scroll to trigger */ + max-height: 100%; /* Needed for vertical scroll to trigger */ + scrollbar-width: none; + -ms-overflow-style: none; + } + + .simplebar-content-wrapper::-webkit-scrollbar, + .simplebar-hide-scrollbar::-webkit-scrollbar { + width: 0; + height: 0; + } + + .simplebar-content:before, + .simplebar-content:after { + content: ' '; + display: table; + } + + .simplebar-placeholder { + max-height: 100%; + max-width: 100%; + width: 100%; + pointer-events: none; + } + + .simplebar-height-auto-observer-wrapper { + box-sizing: inherit !important; + height: 100%; + width: 100%; + max-width: 1px; + position: relative; + float: left; + max-height: 1px; + overflow: hidden; + z-index: -1; + padding: 0; + margin: 0; + pointer-events: none; + flex-grow: inherit; + flex-shrink: 0; + flex-basis: 0; + } + + .simplebar-height-auto-observer { + box-sizing: inherit; + display: block; + opacity: 0; + position: absolute; + top: 0; + left: 0; + height: 1000%; + width: 1000%; + min-height: 1px; + min-width: 1px; + overflow: hidden; + pointer-events: none; + z-index: -1; + } + + .simplebar-track { + z-index: 1; + position: absolute; + right: 0; + bottom: 0; + pointer-events: none; + overflow: hidden; + } + + [data-simplebar].simplebar-dragging .simplebar-content { + pointer-events: none; + user-select: none; + -webkit-user-select: none; + } + + [data-simplebar].simplebar-dragging .simplebar-track { + pointer-events: all; + } + + .simplebar-scrollbar { + position: absolute; + left: 0; + right: 0; + min-height: 10px; + } + + .simplebar-scrollbar:before { + position: absolute; + content: ''; + background: black; + border-radius: 7px; + left: 2px; + right: 2px; + opacity: 0; + transition: opacity 0.2s 0.5s linear; + } + + .simplebar-scrolling .simplebar-scrollbar:before, + .simplebar-hover .simplebar-scrollbar:before, + .simplebar-mouse-entered .simplebar-scrollbar:before { + opacity: 0.5; + transition-delay: 0s; + transition-duration: 0s; + } + + .simplebar-scrollbar.simplebar-visible:before { + /* When hovered, remove all transitions from drag handle */ + opacity: 0.5; + transition-delay: 0s; + transition-duration: 0s; + } + + .simplebar-track.simplebar-vertical { + top: 0; + width: 11px; + } + + .simplebar-scrollbar:before { + top: 2px; + bottom: 2px; + left: 2px; + right: 2px; + } + + .simplebar-track.simplebar-horizontal { + left: 0; + height: 11px; + } + + .simplebar-track.simplebar-horizontal .simplebar-scrollbar { + right: auto; + left: 0; + top: 0; + bottom: 0; + min-height: 0; + min-width: 10px; + width: auto; + } + + /* Rtl support */ + [data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical { + right: auto; + left: 0; + } + + .simplebar-dummy-scrollbar-size { + direction: rtl; + position: fixed; + opacity: 0; + visibility: hidden; + height: 500px; + width: 500px; + overflow-y: hidden; + overflow-x: scroll; + -ms-overflow-style: scrollbar !important; + } + + .simplebar-dummy-scrollbar-size > div { + width: 200%; + height: 200%; + margin: 10px 0; + } + + .simplebar-hide-scrollbar { + position: fixed; + left: 0; + visibility: hidden; + overflow-y: scroll; + scrollbar-width: none; + -ms-overflow-style: none; + } + + .simplebar-scrollbar::before { + background-color: darken($dark, 10%); + } + \ No newline at end of file diff --git a/app/src/resources/volt/scss/volt/components/_shapes.scss b/app/src/resources/volt/scss/volt/components/_shapes.scss new file mode 100755 index 0000000..160267f --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_shapes.scss @@ -0,0 +1,18 @@ +/** + * = Shapes + */ + +.avatar-sm { + width: $avatar-sm-y; + height: $avatar-sm-x; +} + +.avatar-md { + width: $avatar-md-y; + height: $avatar-md-x; +} + +.avatar-lg { + width: $avatar-lg-y; + height: $avatar-lg-x; +} diff --git a/app/src/resources/volt/scss/volt/components/_steps.scss b/app/src/resources/volt/scss/volt/components/_steps.scss new file mode 100755 index 0000000..33b71cd --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_steps.scss @@ -0,0 +1,61 @@ +/**steps + * = Accordions + */ + +.step{ + position: relative; + margin-bottom: 4rem; + border-radius: 6px; + + .step-shape{ + display: inline-flex; + width: $step-shape-size; + height: $step-shape-size; + text-align: center; + @include align-items(center); + @include justify-content(center); + + i, svg { + font-size: $icon-size; + } + + .step-number{ + position: absolute; + font-weight: $font-weight-bold; + top: -10px; + width: 32px; + height: 32px; + border-width: $step-border-width; + border-style: solid; + line-height: 1.7; + } + + &.bordered { + border-width: $step-border-width; + border-style: solid; + + .step-number { + background-color: $white; + top:-12px; + } + } + + &.rounded-circle{ + .step-number{ + margin-right:1.275rem; + } + } + } + + .icon-lg{ + font-size: $step-icon-size; + } + + .back-layer{ + @include display-flex(); + position: absolute; + font-size: $step-number-size; + z-index: 0; + top: 0; + } +} diff --git a/app/src/resources/volt/scss/volt/components/_tables.scss b/app/src/resources/volt/scss/volt/components/_tables.scss new file mode 100644 index 0000000..2aded49 --- /dev/null +++ b/app/src/resources/volt/scss/volt/components/_tables.scss @@ -0,0 +1,394 @@ +// General styles + +.table { + + thead th { + padding-top: $table-head-spacer-y; + padding-bottom: $table-head-spacer-y; + font-size: $table-head-font-size; + text-transform: $table-head-text-transform; + font-weight: $font-weight-bolder; + border-top: 0; + } + + th { + font-weight: $font-weight-bold; + padding:1rem; + } + + td { + .progress { + height: 3px; + width: 120px; + margin: 0; + } + } + + td, + th { + font-size: $table-body-font-size; + white-space: nowrap; + } + + // User Table + + &.user-table{ + thead th{ + border-top:0; + } + } + + // Vetical align table content + + &.align-items-center { + td, + th { + vertical-align: middle; + } + } + + + // Styles for dark table + + .thead-dark { + th { + background-color: $gray-800; + color: $white; + + a { + color: $dark; + } + } + } + + + // Styles for light table + + .thead-light { + th { + background-color: $gray-100; + color: $dark; + + a { + color: $dark; + } + } + } +} + + +// Add transition for hover state + +.table-hover { + tr { + @include transition($transition-base); + } +} + + +// Flush tables + +.table-flush { + td, + th { + border-left: 0; + border-right: 0; + } + + tbody { + tr { + &:first-child { + td, + th { + border-top: 0; + } + } + + &:last-child { + td, + th { + border-bottom: 0; + } + } + } + } +} + + +// Tables inside cards + +.card { + .table { + margin-bottom: 0; + + td, + th { + padding-left: $card-spacer-x; + padding-right: $card-spacer-x; + } + } +} + +.table { + [data-sort] { + cursor: pointer; + } + + .custom-toggle { + display: block; + } + + .thead-dark { + [data-sort] { + &::after { + content: str-replace(url("data:image/svg+xml;utf8,"), "#", "%23"); + margin-left: .25rem; + } + } + } + + .thead-light { + [data-sort] { + &::after { + content: str-replace(url("data:image/svg+xml;utf8,"), "#", "%23"); + margin-left: .25rem; + } + } + } +} + +.dataTables_wrapper { + + .dataTables_info{ + padding-left: 1.5rem; + } + + .dataTables_paginate{ + padding-right: 1.5rem; + } + + .dataTables_length { + label{ + padding-left:1.5rem; + } + } + + .dataTables_filter { + padding-right: 1.5rem; + } +} + +.dataTable-top, +.dataTable-bottom { + display: flex; + width: 100%; + justify-content: space-between; + + @include media-breakpoint-down(md) { + flex-direction: column; + + .dataTable-info { + margin-bottom: 1rem; + } + } +} + +.dataTable-top { + padding: 0 0 1rem 0; +} + +.dataTable-bottom { + padding: 1.5rem 0 0 0; +} + +.dataTable-pagination { + display: flex; + @include list-unstyled(); + + a { + padding: $pagination-padding-y $pagination-padding-x; + @include font-size(null); + } + + li { + @if $pagination-margin-left == (-$pagination-border-width) { + &:first-child { + a { + @include border-start-radius($pagination-border-radius); + } + } + + &:last-child { + a { + @include border-end-radius($pagination-border-radius); + } + } + } @else { + //Add border-radius to all pageLinks in case they have left margin + a { + @include border-radius($pagination-border-radius); + } + } + } + + > li { + &:not(:first-child) a { + margin-left: $pagination-margin-left; + } + + &.active a { + z-index: 3; + color: $pagination-active-color; + @include gradient-bg($pagination-active-bg); + border-color: $pagination-active-border-color; + } + + &.disabled a { + color: $pagination-disabled-color; + pointer-events: none; + background-color: $pagination-disabled-bg; + border-color: $pagination-disabled-border-color; + } + + a { + position: relative; + display: block; + color: $pagination-color; + text-decoration: if($link-decoration == none, null, none); + background-color: $pagination-bg; + border: $pagination-border-width solid $pagination-border-color; + + &:hover { + z-index: 2; + color: $pagination-hover-color; + text-decoration: if($link-hover-decoration == underline, none, null); + background-color: $pagination-hover-bg; + border-color: $pagination-hover-border-color; + } + + &:focus { + z-index: 3; + outline: $pagination-focus-outline; + box-shadow: $pagination-focus-box-shadow; + } + } + } +} + +.dataTable-selector { + display: inline-block; + width: auto; + height: $form-select-height; + padding: $form-select-padding-y ($form-select-padding-x + $form-select-indicator-padding) $form-select-padding-y $form-select-padding-x; + font-family: $form-select-font-family; + @include font-size($form-select-font-size); + font-weight: $form-select-font-weight; + line-height: $form-select-line-height; + color: $form-select-color; + vertical-align: middle; + background-color: $form-select-bg; + background-image: escape-svg($form-select-indicator); + background-repeat: no-repeat; + background-position: $form-select-bg-position; + background-size: $form-select-bg-size; + border: $form-select-border-width solid $form-select-border-color; + @include border-radius($form-select-border-radius, 0); + @include box-shadow($form-select-box-shadow); + appearance: none; + + &:focus { + border-color: $form-select-focus-border-color; + outline: 0; + @if $enable-shadows { + @include box-shadow($form-select-box-shadow, $form-select-focus-box-shadow); + } @else { + // Avoid using mixin so we can pass custom focus shadow properly + box-shadow: $form-select-focus-box-shadow; + } + + &::-ms-value { + // For visual consistency with other platforms/browsers, + // suppress the default white text on blue background highlight given to + // the selected option text when the (still closed) s in some browsers, due to the limited stylability of ` +@error($requestName) + {{ $message }} +@enderror diff --git a/app/src/resources/views/components/volt/forms/input.blade.php b/app/src/resources/views/components/volt/forms/input.blade.php index 2550e3a..f9794b2 100644 --- a/app/src/resources/views/components/volt/forms/input.blade.php +++ b/app/src/resources/views/components/volt/forms/input.blade.php @@ -1,7 +1,11 @@
    - + - @error($name) + @error($requestName) {{ $message }} @enderror
    diff --git a/app/src/resources/views/components/volt/forms/languages.blade.php b/app/src/resources/views/components/volt/forms/languages.blade.php new file mode 100644 index 0000000..fc5b6d0 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/languages.blade.php @@ -0,0 +1,94 @@ +
    +
    + +
    + + + + + + + + + + + + @foreach($value as $index => $lang) + + @include('components.volt.forms.languages.language', ['index' => $index, 'name' => $name, 'lang' => $lang]) + + @endforeach + + + + + + +
    {{ __('validation.attributes.title') }}{{ __('validation.attributes.code') }}{{ __('validation.attributes.sort') }}{{ __('validation.attributes.is_default') }}
    + + +
    +
    +
    +@pushOnce('scripts') + +@endPushOnce diff --git a/app/src/resources/views/components/volt/forms/languages/input.blade.php b/app/src/resources/views/components/volt/forms/languages/input.blade.php new file mode 100644 index 0000000..49d9ba7 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/languages/input.blade.php @@ -0,0 +1,4 @@ + +@error(\App\Helpers\Helpers::formatAttributeNameToRequestName($name)) + {{ $message }} +@enderror diff --git a/app/src/resources/views/components/volt/forms/languages/language.blade.php b/app/src/resources/views/components/volt/forms/languages/language.blade.php new file mode 100644 index 0000000..6f8b4a1 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/languages/language.blade.php @@ -0,0 +1,34 @@ + + @if(isset($lang['id'])) + + @endif + @include('components.volt.forms.languages.input', [ + 'value' => $lang['title'], + 'name' => $name . '[items][' .$index . '][title]', + 'type' => 'text', + ]) + + + @include('components.volt.forms.languages.input', [ + 'value' => $lang['code'], + 'name' => $name . '[items][' . $index . '][code]', + 'type' => 'text', + ]) + + + @include('components.volt.forms.languages.input', [ + 'value' => $lang['sort'], + 'name' => $name . '[items][' . $index . '][sort]', + 'type' => 'number', + ]) + + + @include('components.volt.forms.languages.radio', [ + 'value' => $index, + 'checked' => $lang['is_default'], + 'name' => $name . '[default]', + ]) + + + + diff --git a/app/src/resources/views/components/volt/forms/languages/radio.blade.php b/app/src/resources/views/components/volt/forms/languages/radio.blade.php new file mode 100644 index 0000000..9d52021 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/languages/radio.blade.php @@ -0,0 +1,4 @@ + +@error(\App\Helpers\Helpers::formatAttributeNameToRequestName($name)) + {{ $message }} +@enderror diff --git a/app/src/resources/views/components/volt/forms/select.blade.php b/app/src/resources/views/components/volt/forms/select.blade.php index 341fde5..59f05c7 100644 --- a/app/src/resources/views/components/volt/forms/select.blade.php +++ b/app/src/resources/views/components/volt/forms/select.blade.php @@ -6,7 +6,7 @@ @endforeach - @error($name) + @error($requestName) {{ $message }} @enderror diff --git a/app/src/resources/views/components/volt/forms/upload/image.blade.php b/app/src/resources/views/components/volt/forms/upload/image.blade.php new file mode 100644 index 0000000..415b7b7 --- /dev/null +++ b/app/src/resources/views/components/volt/forms/upload/image.blade.php @@ -0,0 +1,32 @@ +
    + +
    +
    id)) style="display: none;" @endif> +
    + + +
    +
    + + +
    + + + +
    diff --git a/app/src/resources/views/layout/private.blade.php b/app/src/resources/views/layout/private.blade.php index 45d9e5d..995457e 100644 --- a/app/src/resources/views/layout/private.blade.php +++ b/app/src/resources/views/layout/private.blade.php @@ -9,6 +9,7 @@ @vite('resources/volt/scss/app.scss') + diff --git a/app/src/resources/volt/images/brand/dark.png b/app/src/resources/volt/images/brand/dark.png deleted file mode 100644 index 2c5a026382e1982ad71d052a9323162edf62d7b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1189 zcmV;W1X}xvP)_E@REOp+Oy9sUj)Q&QR@M zy@@|_pDpj?1@~B2v3fx^x&j>-0YX9r_a{2R7!N{v=K!SMK|uX_pbx7+W>U2^cDhm* z++$vy;syV1Tv65w65<442{Q}?43OR_*Q!lz?}KLE0`x%@N{0Yq#{lS)Ga$rmb-`jh ziSmLw#-kk<19Xc8kdin|#&OVwXF=|p1o<3RtC9gSF6=Zw3cn6)>18OCU$Rg~CI%xBj9tUH%Vgz%)pP4>KZxva z3NDk>mh+qs5*Z0V1LH6pw7^K%&H~wL0|pM1vDjqcfP0Bmm!Oe^(}}+GLE{t+BC8rq zi4Y`S>~Wy+=i8v1AFl(pbHJUG@!p1DL=(D$C(FlYLD=FJq_>ZN%p^eS(SbUM163;4 z!1?`S7z$cI5tsrjX*`{ShzTSPiiP5-{R*PKq`xc}vEP5T-m?}7 zC!+mVf--s__kXCKTTfm0H>h-%lGi>AwvR>-ORmCBc(XQV|2k^ZF0}}*D+GaC-FVVS zUIEIqr)xT9XnKbK#AFJxqXq29JL*QB;w@K;svbHS@n3+j3Q57UZ;$Q`lAUm{mI>Bdv$y9(bsf>$X7 zvEOdjMII?VrL@XZO1Ep59{%S+x{7{&>U@jwbrbvza*qh(lWs!N00000NkvXXu0mjf D#r!Fq diff --git a/app/src/resources/volt/images/brand/light.png b/app/src/resources/volt/images/brand/light.png deleted file mode 100644 index f0eb3cd33b8b4514eddad824ee1776f494a7f3b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1180 zcmV;N1Y`S&P)bri=BNJDXi28or(mJ4I-hC@&^*A~OLKzG1g ziUMiPAWYO?gi?uS4F+4_S||{32@nvt!3}x4KnM)tUbwtW-a+03mxbYYQF;5e=V@H- z1s=E%^xeMy{m%L9{LXov-yvG9J{xII;?Cplz1V7l4+t-s@Au^KK)Xs5ClJ>p?!yUK;9{ahu*c+fKSh(<_E?S$F3& znftVpLq<9`*!*ngngQqA{9Fe&c+cm}>jt*)ZQ=&+{i0#H1Ug#`VR0f9hrdb(|2q*5 zU5LbshC7xATVAZ=23rMIa0R}gtpol=F(U3hL(>o-e>ezXO*&$vxd;$-1cj_9ge5K40}@N@=}&ifEVRzpWme{t}k zuxxIyO;o~SL4t@9h*~8`l;xu9$rxL0$M7hUYb6*MpTXc$;Cg8yvf7Fu2rpS2Y#S@& z1`D#o<_DPZ-EcX-99gY*kX~Pgxaus#{Vry!WPptOM<)?enTf)lVtkoj0n@|B7J{Ag znA{w4Z*nHxoioY-4xzay=qX~8W;W*_v-wxttVl!u*pvdCAk9H;S0Q^Qzq<(bp*iz^ zC^O{I{ysN20D83h_#@?@<1yuILdNmZOq6srp?_>z0WH1Xg0y>L#Tmw~(PgS&(~lm~ zd2FF2wLhp*Imk7t3__U*sd5R@>VH!J71hdeRiKRBVk=a^2fk&#mSx0Gict1aQA*2qAN3z zB)@~2!3Qk3Z*&qVatY#P*$}tqvCzbZV!Y#fV-EU~*>mz}UZTIV3W63{UaC|4I5uvE z|Ls4}J2HWIX}Y4<8I7fi%9#m|lm1(|t562*&AM~o{a0k{i>HVp~Cr~b@t7D|cqjZEMWk^@g+BZ7;bvGz^w z#(VxE=)P>M3T1B0AtRPnEbk#BGCkF?>SvJmY5VGzLFfD++GL=ZaJ8+oeS(gZ1k$P% z1WmI2DUV1)eJIl&{;gc~Cz(s0qpz?Vrn=w**Q)8IGs$z5(v>mskeUZZy-CA3k0ZvEY4Fhw>|1$1U~JFTmNphZsk u*NErYMLe%Aa* 0) { + elementImage.forEach(addDropzoneImage); +} +function addDropzoneImage(element) { + let blockError = element.querySelector('.upload-image__error'), + blockProgressBar = element.querySelector('.progress-wrapper'), + progressBarText = blockProgressBar.querySelector('.upload-image__progressbar-text'), + progressBar = blockProgressBar.querySelector('.progress-bar'), + storageType = element.dataset.storageType, + morph = element.dataset.morph, + imageBlock = element.querySelector('.add-image'); + + imageBlock.querySelector('button.add-image__remove').addEventListener('click', (e) => { + element.querySelector('input.save').value = ''; + element.querySelector('input.delete').value = 1; + imageBlock.style.display = 'none'; + }); + + let myDropzone = new Dropzone(element.querySelector('button.upload-image__button'), { + url: "/storage/image/upload-resize", + uploadMultiple: false, + parallelUploads: 1, + maxFiles: 1, + acceptedFiles: element.dataset.acceptedFiles, + sending: function (file, response, formData) { + blockError.textContent = ''; + blockError.style.display = 'none'; + formData.append('_token', document.querySelector('meta[name="csrf-token"]').content); + formData.append('storage_type', storageType); + formData.append('morph', morph); + blockProgressBar.style.display = 'block'; + }, + thumbnail: function(file, dataUrl) { + + }, + addedfile: function(file) { + + }, + totaluploadprogress: function(progress) { + progressBarText.textContent = progress + '%'; + progressBar.style.width = progress + '%'; + progressBar.setAttribute('aria-valuenow', progress); + }, + complete: function(file) { + this.removeFile(file); + + progressBarText.textContent = '0%'; + progressBar.style.width = '0%'; + progressBar.setAttribute('aria-valuenow', 0); + blockProgressBar.style.display = 'none'; + }, + success: function (file, image) { + imageBlock.querySelector('img').setAttribute('src', image.url); + element.querySelector('input.save').value = image.id; + element.querySelector('input.delete').value = 0; + imageBlock.style.display = 'block'; + }, + error: function (file, response) { + let message = ''; + + if (response.errors) { + for (let errorKey in response.errors) { + message += response.errors[errorKey] + '
    ' + } + if(response.message) { + message += response.message + '
    ' + } + } else if(response.message) { + message += response.message + '
    ' + } else { + message += response + '
    ' + } + + blockError.innerHTML = message; + blockError.style.display = 'block'; + }, + }); +} diff --git a/app/src/resources/volt/scss/volt/components/_alerts.scss b/app/src/resources/volt/scss/volt/components/_alerts.scss index 6fd954d..b745fb6 100644 --- a/app/src/resources/volt/scss/volt/components/_alerts.scss +++ b/app/src/resources/volt/scss/volt/components/_alerts.scss @@ -7,4 +7,10 @@ span{ font-size: $alert-icon-font-size; } -} \ No newline at end of file +} +.alert__close { + position: absolute; + top: 0.4rem; + right: 0.4rem; + font-size: 0.7rem; +} diff --git a/app/src/resources/volt/scss/volt/components/_body.scss b/app/src/resources/volt/scss/volt/components/_body.scss index 002688a..f02f2b8 100644 --- a/app/src/resources/volt/scss/volt/components/_body.scss +++ b/app/src/resources/volt/scss/volt/components/_body.scss @@ -28,4 +28,14 @@ button:focus { label { font-weight: $font-weight-bold; margin-bottom:.5rem; -} \ No newline at end of file +} +.label__example { + color: #6b7280; + font-size: 85%; + display: inline-block; + font-style: italic; + + strong { + font-weight: 600; + } +} diff --git a/app/src/routes/web.php b/app/src/routes/web.php index 490b229..1107c8e 100644 --- a/app/src/routes/web.php +++ b/app/src/routes/web.php @@ -17,6 +17,10 @@ Route::middleware(['auth', 'verified', \App\Http\Middleware\UserLocale::class])- Route::put('users/{id}/password', [\App\Http\Controllers\Admin\UsersController::class, 'updatePassword'])->name('users.update-password')->where(['id' => '[0-9]+']); Route::resource('roles', \App\Http\Controllers\Admin\RolesController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy'])->where(['role' => '[0-9]+']); + + Route::resource('projects', \App\Http\Controllers\Admin\ProjectsController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy'])->where(['project' => '[0-9]+']); + + Route::post('languages/new-language', [\App\Http\Controllers\Admin\LanguagesController::class, 'newLanguage'])->name('new-language'); }); Route::prefix('profile')->as('profile.')->group(function () { @@ -26,5 +30,9 @@ Route::middleware(['auth', 'verified', \App\Http\Middleware\UserLocale::class])- Route::get('settings', [\App\Http\Controllers\Private\ProfileController::class, 'settings'])->name('settings'); Route::put('settings', [\App\Http\Controllers\Private\ProfileController::class, 'updateSettings'])->name('update-settings'); }); + + Route::prefix('storage')->as('storage.')->group(function () { + Route::post('image/upload-resize', [\App\Http\Controllers\Storage\ImagesController::class, 'uploadAndResize'])->name('image_upload_and_resize'); + }); }); From b7d0a2453ee548eedbd61e4e3e752c2ea7baa3a4 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 11 Apr 2024 19:52:37 +0500 Subject: [PATCH 05/20] Moved from "app/src" to "app/application". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise phpstorm doesn't understand the paths correctly. He thinks that this is not a complete application, but a package. And when creating a class, the namespace indicates “app” with a small letter, but should be “App”. --- app/{src => application}/.editorconfig | 0 app/{src => application}/.env.example | 0 app/{src => application}/.gitattributes | 0 app/{src => application}/.gitignore | 0 app/{src => application}/README.md | 0 .../app/Console/Commands/CreateUserAdmin.php | 0 app/{src => application}/app/Contracts/FormRequestDto.php | 0 app/{src => application}/app/Contracts/Models/Storage.php | 0 app/{src => application}/app/Contracts/Search.php | 0 app/{src => application}/app/Contracts/ServiceResult.php | 0 .../app/Contracts/ServiceResultError.php | 0 app/{src => application}/app/Contracts/StorageType.php | 0 .../app/Contracts/StorageType/Audio.php | 0 .../app/Contracts/StorageType/Image.php | 0 .../app/Contracts/StorageType/Video.php | 0 app/{src => application}/app/Dto/Builder/Project.php | 0 app/{src => application}/app/Dto/Builder/Role.php | 0 app/{src => application}/app/Dto/Builder/User.php | 0 app/{src => application}/app/Dto/QuerySettingsDto.php | 0 .../app/Dto/Service/Admin/Language/NewLanguage.php | 0 .../app/Dto/Service/Admin/Project/Index.php | 0 .../app/Dto/Service/Admin/Project/Language.php | 0 .../app/Dto/Service/Admin/Project/Languages.php | 0 .../app/Dto/Service/Admin/Project/StoreUpdate.php | 0 .../app/Dto/Service/Admin/Role/Index.php | 0 .../app/Dto/Service/Admin/Role/StoreUpdate.php | 0 .../app/Dto/Service/Admin/User/Index.php | 0 .../app/Dto/Service/Admin/User/StoreUpdate.php | 0 .../app/Dto/Service/Authorization.php | 0 app/{src => application}/app/Dto/Service/Dto.php | 0 app/{src => application}/app/Dto/Service/Pages.php | 0 .../app/Dto/Service/Private/Profile/Update.php | 0 .../app/Dto/Service/Private/Profile/UpdateSettings.php | 0 app/{src => application}/app/Dto/Service/Storage/File.php | 0 .../app/Dto/Service/Storage/Storage.php | 0 .../app/Dto/Service/Storage/Storages.php | 0 .../app/Dto/Service/Storage/Upload.php | 0 .../app/Dto/Service/User/UpdatePassword.php | 0 app/{src => application}/app/Dto/User/ManyRoleDto.php | 0 app/{src => application}/app/Enums/Lang.php | 0 app/{src => application}/app/Enums/Morph.php | 0 app/{src => application}/app/Enums/Permission.php | 0 app/{src => application}/app/Enums/StorageType.php | 0 app/{src => application}/app/Enums/SystemRole.php | 0 .../app/Exceptions/Dto/Storage/FileException.php | 0 .../app/Exceptions/Dto/Storage/StorageException.php | 0 .../app/Exceptions/Dto/Storage/StoragesException.php | 0 .../app/Exceptions/Dto/User/ManyRoleDtoException.php | 0 .../Services/Storage/StorageCommandHandlerException.php | 0 .../Services/Storage/StorageSaveFileException.php | 0 app/{src => application}/app/Helpers/Helpers.php | 0 .../app/Http/Controllers/Admin/Controller.php | 0 .../app/Http/Controllers/Admin/DashboardController.php | 0 .../app/Http/Controllers/Admin/LanguagesController.php | 0 .../app/Http/Controllers/Admin/ProjectsController.php | 0 .../app/Http/Controllers/Admin/RolesController.php | 0 .../app/Http/Controllers/Admin/UsersController.php | 0 .../app/Http/Controllers/AuthController.php | 0 .../app/Http/Controllers/Controller.php | 0 .../app/Http/Controllers/Private/Controller.php | 0 .../app/Http/Controllers/Private/ProfileController.php | 0 .../app/Http/Controllers/Storage/Controller.php | 0 .../app/Http/Controllers/Storage/ImagesController.php | 0 .../app/Http/Middleware/AdminPanel.php | 0 .../app/Http/Middleware/UserLocale.php | 0 .../Http/Requests/Admin/Languages/NewLanguageRequest.php | 0 .../app/Http/Requests/Admin/Projects/IndexRequest.php | 0 .../Http/Requests/Admin/Projects/StoreUpdateRequest.php | 0 .../app/Http/Requests/Admin/Roles/IndexRequest.php | 0 .../app/Http/Requests/Admin/Roles/StoreUpdateRequest.php | 0 .../app/Http/Requests/Admin/Users/IndexRequest.php | 0 .../app/Http/Requests/Admin/Users/StoreUpdateRequest.php | 0 .../Http/Requests/Admin/Users/UpdatePasswordRequest.php | 0 .../app/Http/Requests/AuthorizationRequest.php | 0 .../Requests/Private/Profile/UpdatePasswordRequest.php | 0 .../app/Http/Requests/Private/Profile/UpdateRequest.php | 0 .../Requests/Private/Profile/UpdateSettingsRequest.php | 0 .../app/Http/Requests/Storage/ImageRequest.php | 0 .../app/Http/Resources/Admin/Languages/NewLanguage.php | 0 .../app/Http/Resources/Storage/Upload.php | 0 app/{src => application}/app/Models/Project.php | 0 app/{src => application}/app/Models/ProjectLanguage.php | 0 app/{src => application}/app/Models/Role.php | 0 app/{src => application}/app/Models/RolePermission.php | 0 app/{src => application}/app/Models/Scopes/SortScope.php | 0 app/{src => application}/app/Models/Storage.php | 0 .../app/Models/Traits/StorageTrait.php | 0 app/{src => application}/app/Models/User.php | 0 app/{src => application}/app/Policies/AdminPanel.php | 0 app/{src => application}/app/Policies/Policy.php | 0 app/{src => application}/app/Policies/ProjectPolicy.php | 0 app/{src => application}/app/Policies/RolePolicy.php | 0 app/{src => application}/app/Policies/UserPolicy.php | 0 .../app/Providers/AppServiceProvider.php | 0 .../app/Repositories/ProjectRepository.php | 0 .../app/Repositories/RoleRepository.php | 0 .../app/Repositories/StorageRepository.php | 0 .../app/Repositories/UserRepository.php | 0 app/{src => application}/app/Rules/HttpHost.php | 0 app/{src => application}/app/Rules/Permission.php | 0 .../Admin/LanguageService/NewLanguageResult.php | 0 .../app/ServiceResults/ServiceResult.php | 0 .../app/ServiceResults/ServiceResultArray.php | 0 .../app/ServiceResults/ServiceResultError.php | 0 .../app/ServiceResults/ServiceResultSuccess.php | 0 .../ServiceResults/Storage/SaveDeleteStorageResult.php | 0 .../app/ServiceResults/Storage/UploadResult.php | 0 .../app/ServiceResults/StoreUpdateResult.php | 0 .../app/Services/Admin/LanguageService.php | 0 .../app/Services/Admin/ProjectService.php | 0 .../app/Services/Admin/RoleService.php | 0 .../app/Services/Admin/UserService.php | 0 app/{src => application}/app/Services/AuthService.php | 0 .../app/Services/Private/ProfileService.php | 0 .../app/Services/Project/BuilderCommand.php | 0 .../app/Services/Project/ProjectCommandHandler.php | 0 .../app/Services/ProjectLanguage/ModelSyncCommand.php | 0 .../app/Services/Role/BuilderCommand.php | 0 .../Services/Role/CreateAdminRoleForProjectCommand.php | 0 .../app/Services/Role/RoleCommandHandler.php | 0 .../Services/Role/RoleSyncPermissionsCommandHandler.php | 0 .../app/Services/Search/CreateSearchInstanceCommand.php | 0 app/{src => application}/app/Services/Search/Search.php | 0 app/{src => application}/app/Services/Service.php | 0 .../app/Services/Storage/Image/ResizeCommandHandler.php | 0 .../app/Services/Storage/ImageService.php | 0 .../app/Services/Storage/StorageCommandHandler.php | 0 .../app/Services/Storage/StorageService.php | 0 .../app/Services/Storage/ValidationService.php | 0 .../app/Services/User/BuilderCommand.php | 0 .../app/Services/User/UserCommandHandler.php | 0 .../app/View/Components/Admin/Layout.php | 0 .../app/View/Components/AuthLayout.php | 0 .../app/View/Components/Private/Layout.php | 0 .../app/View/Components/PrivateLayout.php | 0 .../app/View/Components/Volt/Forms/Checkbox.php | 0 .../app/View/Components/Volt/Forms/Form.php | 0 .../app/View/Components/Volt/Forms/Input.php | 0 .../app/View/Components/Volt/Forms/InputTypeHidden.php | 0 .../app/View/Components/Volt/Forms/Languages.php | 0 .../app/View/Components/Volt/Forms/MultiCheckbox.php | 0 .../app/View/Components/Volt/Forms/PermissionsForRole.php | 0 .../app/View/Components/Volt/Forms/Select.php | 0 .../app/View/Components/Volt/Forms/Upload/Image.php | 0 app/{src => application}/artisan | 0 app/{src => application}/bootstrap/app.php | 0 app/{src => application}/bootstrap/cache/.gitignore | 0 app/{src => application}/bootstrap/providers.php | 0 app/{src => application}/composer.json | 0 app/{src => application}/composer.lock | 0 app/{src => application}/config/app.php | 0 app/{src => application}/config/auth.php | 0 app/{src => application}/config/cache.php | 0 app/{src => application}/config/database.php | 0 app/{src => application}/config/filesystems.php | 0 app/{src => application}/config/image.php | 0 app/{src => application}/config/logging.php | 0 app/{src => application}/config/mail.php | 0 app/{src => application}/config/queue.php | 0 app/{src => application}/config/rate_limiting.php | 0 app/{src => application}/config/services.php | 0 app/{src => application}/config/session.php | 0 app/{src => application}/config/storage.php | 0 app/{src => application}/database/.gitignore | 0 .../database/factories/UserFactory.php | 0 .../migrations/0001_01_01_000000_create_users_table.php | 0 .../migrations/0001_01_01_000001_create_cache_table.php | 0 .../migrations/0001_01_01_000002_create_jobs_table.php | 0 .../database/migrations/2024_04_01_184305_roles.php | 0 .../migrations/2024_04_03_062346_create_projects.php | 0 .../database/seeders/DatabaseSeeder.php | 0 app/{src => application}/lang/en.json | 0 app/{src => application}/lang/en/actions.php | 0 app/{src => application}/lang/en/admin-sections.php | 0 app/{src => application}/lang/en/auth.php | 0 app/{src => application}/lang/en/http-statuses.php | 0 app/{src => application}/lang/en/pagination.php | 0 app/{src => application}/lang/en/passwords.php | 0 app/{src => application}/lang/en/permissions.php | 0 app/{src => application}/lang/en/storage.php | 0 app/{src => application}/lang/en/validation.php | 0 app/{src => application}/lang/ru.json | 0 app/{src => application}/lang/ru/actions.php | 0 app/{src => application}/lang/ru/admin-sections.php | 0 app/{src => application}/lang/ru/auth.php | 0 app/{src => application}/lang/ru/http-statuses.php | 0 app/{src => application}/lang/ru/pagination.php | 0 app/{src => application}/lang/ru/passwords.php | 0 app/{src => application}/lang/ru/permissions.php | 0 app/{src => application}/lang/ru/storage.php | 0 app/{src => application}/lang/ru/validation.php | 0 app/{src => application}/package-lock.json | 0 app/{src => application}/package.json | 0 app/{src => application}/phpunit.xml | 0 app/{src => application}/public/.htaccess | 0 app/{src => application}/public/favicon.ico | 0 app/{src => application}/public/index.php | 0 app/{src => application}/public/robots.txt | 0 .../views/admin/_scripts/_click-confirm.blade.php | 0 .../resources/views/admin/dashboard/index.blade.php | 0 .../resources/views/admin/layout/_navigation.blade.php | 0 .../resources/views/admin/projects/_from.blade.php | 0 .../resources/views/admin/projects/_top.blade.php | 0 .../resources/views/admin/projects/create.blade.php | 0 .../resources/views/admin/projects/edit.blade.php | 0 .../resources/views/admin/projects/index.blade.php | 0 .../resources/views/admin/roles/_from.blade.php | 0 .../resources/views/admin/roles/_top.blade.php | 0 .../resources/views/admin/roles/create.blade.php | 0 .../resources/views/admin/roles/edit.blade.php | 0 .../resources/views/admin/roles/index.blade.php | 0 .../resources/views/admin/users/_from.blade.php | 0 .../resources/views/admin/users/_top.blade.php | 0 .../resources/views/admin/users/create.blade.php | 0 .../resources/views/admin/users/edit.blade.php | 0 .../resources/views/admin/users/index.blade.php | 0 .../views/components/volt/forms/checkbox.blade.php | 0 .../components/volt/forms/input-type-hidden.blade.php | 0 .../resources/views/components/volt/forms/input.blade.php | 0 .../views/components/volt/forms/languages.blade.php | 0 .../views/components/volt/forms/languages/input.blade.php | 0 .../components/volt/forms/languages/language.blade.php | 0 .../views/components/volt/forms/languages/radio.blade.php | 0 .../views/components/volt/forms/multi_checkbox.blade.php | 0 .../components/volt/forms/permissions_for_role.blade.php | 0 .../views/components/volt/forms/select.blade.php | 0 .../views/components/volt/forms/upload/image.blade.php | 0 .../resources/views/layout/auth.blade.php | 0 .../resources/views/layout/private.blade.php | 0 .../resources/views/layout/private/_errors.blade.php | 0 .../resources/views/layout/private/_success.blade.php | 0 app/{src => application}/resources/views/login.blade.php | 0 .../resources/views/private/layout/_navigation.blade.php | 0 .../resources/views/private/profile/profile.blade.php | 0 .../resources/views/private/profile/settings.blade.php | 0 app/{src => application}/resources/volt/LICENSE.md | 0 .../resources/volt/images/illustrations/signin.svg | 0 app/{src => application}/resources/volt/js/app.js | 0 app/{src => application}/resources/volt/js/bootstrap.js | 0 app/{src => application}/resources/volt/js/image.js | 0 app/{src => application}/resources/volt/js/volt.js | 0 .../resources/volt/scss/_variables.scss | 0 app/{src => application}/resources/volt/scss/app.scss | 0 .../resources/volt/scss/volt/_components.scss | 0 .../resources/volt/scss/volt/_forms.scss | 0 .../resources/volt/scss/volt/_functions.scss | 0 .../resources/volt/scss/volt/_layout.scss | 0 .../resources/volt/scss/volt/_mixins.scss | 0 .../resources/volt/scss/volt/_utilities.scss | 0 .../resources/volt/scss/volt/_variables.scss | 0 .../resources/volt/scss/volt/_vendor.scss | 0 .../resources/volt/scss/volt/components/_accordions.scss | 0 .../resources/volt/scss/volt/components/_alerts.scss | 0 .../resources/volt/scss/volt/components/_animations.scss | 0 .../resources/volt/scss/volt/components/_avatars.scss | 0 .../resources/volt/scss/volt/components/_badge.scss | 0 .../resources/volt/scss/volt/components/_body.scss | 0 .../resources/volt/scss/volt/components/_breadcrumb.scss | 0 .../resources/volt/scss/volt/components/_buttons.scss | 0 .../resources/volt/scss/volt/components/_card.scss | 0 .../resources/volt/scss/volt/components/_carousel.scss | 0 .../resources/volt/scss/volt/components/_charts.scss | 0 .../resources/volt/scss/volt/components/_close.scss | 0 .../volt/scss/volt/components/_custom-forms.scss | 0 .../resources/volt/scss/volt/components/_datepicker.scss | 0 .../resources/volt/scss/volt/components/_dropdown.scss | 0 .../resources/volt/scss/volt/components/_icons.scss | 0 .../resources/volt/scss/volt/components/_images.scss | 0 .../resources/volt/scss/volt/components/_list-group.scss | 0 .../resources/volt/scss/volt/components/_modal.scss | 0 .../resources/volt/scss/volt/components/_nav.scss | 0 .../resources/volt/scss/volt/components/_pagination.scss | 0 .../resources/volt/scss/volt/components/_popover.scss | 0 .../resources/volt/scss/volt/components/_progress.scss | 0 .../resources/volt/scss/volt/components/_scrollbar.scss | 0 .../resources/volt/scss/volt/components/_shapes.scss | 0 .../resources/volt/scss/volt/components/_steps.scss | 0 .../resources/volt/scss/volt/components/_tables.scss | 0 .../resources/volt/scss/volt/components/_timelines.scss | 0 .../resources/volt/scss/volt/components/_tooltip.scss | 0 .../resources/volt/scss/volt/components/_type.scss | 0 .../resources/volt/scss/volt/forms/_form-check.scss | 0 .../resources/volt/scss/volt/forms/_form-control.scss | 0 .../resources/volt/scss/volt/forms/_form-select.scss | 0 .../resources/volt/scss/volt/forms/_input-group.scss | 0 .../resources/volt/scss/volt/layout/_footer.scss | 0 .../resources/volt/scss/volt/layout/_navbar.scss | 0 .../resources/volt/scss/volt/layout/_section.scss | 0 .../resources/volt/scss/volt/layout/_sidebar.scss | 0 .../resources/volt/scss/volt/layout/_sidenav.scss | 0 .../resources/volt/scss/volt/mixins/_animations.scss | 0 .../volt/scss/volt/mixins/_background-variant.scss | 0 .../resources/volt/scss/volt/mixins/_icon.scss | 0 .../resources/volt/scss/volt/mixins/_modals.scss | 0 .../resources/volt/scss/volt/mixins/_popover.scss | 0 .../resources/volt/scss/volt/mixins/_transform.scss | 0 .../resources/volt/scss/volt/mixins/_utilities.scss | 0 app/{src => application}/routes/console.php | 0 app/{src => application}/routes/web.php | 0 app/{src => application}/storage/app/.gitignore | 0 app/{src => application}/storage/app/public/.gitignore | 0 app/{src => application}/storage/framework/.gitignore | 0 .../storage/framework/cache/.gitignore | 0 .../storage/framework/cache/data/.gitignore | 0 .../storage/framework/sessions/.gitignore | 0 .../storage/framework/testing/.gitignore | 0 .../storage/framework/views/.gitignore | 0 app/{src => application}/storage/logs/.gitignore | 0 app/{src => application}/tests/Feature/ExampleTest.php | 0 app/{src => application}/tests/TestCase.php | 0 app/{src => application}/tests/Unit/ExampleTest.php | 0 app/{src => application}/vite.config.js | 0 app/docker/Dockerfile | 2 +- docker-compose.yml | 8 ++++---- 314 files changed, 5 insertions(+), 5 deletions(-) rename app/{src => application}/.editorconfig (100%) rename app/{src => application}/.env.example (100%) rename app/{src => application}/.gitattributes (100%) rename app/{src => application}/.gitignore (100%) rename app/{src => application}/README.md (100%) rename app/{src => application}/app/Console/Commands/CreateUserAdmin.php (100%) rename app/{src => application}/app/Contracts/FormRequestDto.php (100%) rename app/{src => application}/app/Contracts/Models/Storage.php (100%) rename app/{src => application}/app/Contracts/Search.php (100%) rename app/{src => application}/app/Contracts/ServiceResult.php (100%) rename app/{src => application}/app/Contracts/ServiceResultError.php (100%) rename app/{src => application}/app/Contracts/StorageType.php (100%) rename app/{src => application}/app/Contracts/StorageType/Audio.php (100%) rename app/{src => application}/app/Contracts/StorageType/Image.php (100%) rename app/{src => application}/app/Contracts/StorageType/Video.php (100%) rename app/{src => application}/app/Dto/Builder/Project.php (100%) rename app/{src => application}/app/Dto/Builder/Role.php (100%) rename app/{src => application}/app/Dto/Builder/User.php (100%) rename app/{src => application}/app/Dto/QuerySettingsDto.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Language/NewLanguage.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Project/Index.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Project/Language.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Project/Languages.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Project/StoreUpdate.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Role/Index.php (100%) rename app/{src => application}/app/Dto/Service/Admin/Role/StoreUpdate.php (100%) rename app/{src => application}/app/Dto/Service/Admin/User/Index.php (100%) rename app/{src => application}/app/Dto/Service/Admin/User/StoreUpdate.php (100%) rename app/{src => application}/app/Dto/Service/Authorization.php (100%) rename app/{src => application}/app/Dto/Service/Dto.php (100%) rename app/{src => application}/app/Dto/Service/Pages.php (100%) rename app/{src => application}/app/Dto/Service/Private/Profile/Update.php (100%) rename app/{src => application}/app/Dto/Service/Private/Profile/UpdateSettings.php (100%) rename app/{src => application}/app/Dto/Service/Storage/File.php (100%) rename app/{src => application}/app/Dto/Service/Storage/Storage.php (100%) rename app/{src => application}/app/Dto/Service/Storage/Storages.php (100%) rename app/{src => application}/app/Dto/Service/Storage/Upload.php (100%) rename app/{src => application}/app/Dto/Service/User/UpdatePassword.php (100%) rename app/{src => application}/app/Dto/User/ManyRoleDto.php (100%) rename app/{src => application}/app/Enums/Lang.php (100%) rename app/{src => application}/app/Enums/Morph.php (100%) rename app/{src => application}/app/Enums/Permission.php (100%) rename app/{src => application}/app/Enums/StorageType.php (100%) rename app/{src => application}/app/Enums/SystemRole.php (100%) rename app/{src => application}/app/Exceptions/Dto/Storage/FileException.php (100%) rename app/{src => application}/app/Exceptions/Dto/Storage/StorageException.php (100%) rename app/{src => application}/app/Exceptions/Dto/Storage/StoragesException.php (100%) rename app/{src => application}/app/Exceptions/Dto/User/ManyRoleDtoException.php (100%) rename app/{src => application}/app/Exceptions/Services/Storage/StorageCommandHandlerException.php (100%) rename app/{src => application}/app/Exceptions/Services/Storage/StorageSaveFileException.php (100%) rename app/{src => application}/app/Helpers/Helpers.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/Controller.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/DashboardController.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/LanguagesController.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/ProjectsController.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/RolesController.php (100%) rename app/{src => application}/app/Http/Controllers/Admin/UsersController.php (100%) rename app/{src => application}/app/Http/Controllers/AuthController.php (100%) rename app/{src => application}/app/Http/Controllers/Controller.php (100%) rename app/{src => application}/app/Http/Controllers/Private/Controller.php (100%) rename app/{src => application}/app/Http/Controllers/Private/ProfileController.php (100%) rename app/{src => application}/app/Http/Controllers/Storage/Controller.php (100%) rename app/{src => application}/app/Http/Controllers/Storage/ImagesController.php (100%) rename app/{src => application}/app/Http/Middleware/AdminPanel.php (100%) rename app/{src => application}/app/Http/Middleware/UserLocale.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Languages/NewLanguageRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Projects/IndexRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Roles/IndexRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Users/IndexRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Users/StoreUpdateRequest.php (100%) rename app/{src => application}/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php (100%) rename app/{src => application}/app/Http/Requests/AuthorizationRequest.php (100%) rename app/{src => application}/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php (100%) rename app/{src => application}/app/Http/Requests/Private/Profile/UpdateRequest.php (100%) rename app/{src => application}/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php (100%) rename app/{src => application}/app/Http/Requests/Storage/ImageRequest.php (100%) rename app/{src => application}/app/Http/Resources/Admin/Languages/NewLanguage.php (100%) rename app/{src => application}/app/Http/Resources/Storage/Upload.php (100%) rename app/{src => application}/app/Models/Project.php (100%) rename app/{src => application}/app/Models/ProjectLanguage.php (100%) rename app/{src => application}/app/Models/Role.php (100%) rename app/{src => application}/app/Models/RolePermission.php (100%) rename app/{src => application}/app/Models/Scopes/SortScope.php (100%) rename app/{src => application}/app/Models/Storage.php (100%) rename app/{src => application}/app/Models/Traits/StorageTrait.php (100%) rename app/{src => application}/app/Models/User.php (100%) rename app/{src => application}/app/Policies/AdminPanel.php (100%) rename app/{src => application}/app/Policies/Policy.php (100%) rename app/{src => application}/app/Policies/ProjectPolicy.php (100%) rename app/{src => application}/app/Policies/RolePolicy.php (100%) rename app/{src => application}/app/Policies/UserPolicy.php (100%) rename app/{src => application}/app/Providers/AppServiceProvider.php (100%) rename app/{src => application}/app/Repositories/ProjectRepository.php (100%) rename app/{src => application}/app/Repositories/RoleRepository.php (100%) rename app/{src => application}/app/Repositories/StorageRepository.php (100%) rename app/{src => application}/app/Repositories/UserRepository.php (100%) rename app/{src => application}/app/Rules/HttpHost.php (100%) rename app/{src => application}/app/Rules/Permission.php (100%) rename app/{src => application}/app/ServiceResults/Admin/LanguageService/NewLanguageResult.php (100%) rename app/{src => application}/app/ServiceResults/ServiceResult.php (100%) rename app/{src => application}/app/ServiceResults/ServiceResultArray.php (100%) rename app/{src => application}/app/ServiceResults/ServiceResultError.php (100%) rename app/{src => application}/app/ServiceResults/ServiceResultSuccess.php (100%) rename app/{src => application}/app/ServiceResults/Storage/SaveDeleteStorageResult.php (100%) rename app/{src => application}/app/ServiceResults/Storage/UploadResult.php (100%) rename app/{src => application}/app/ServiceResults/StoreUpdateResult.php (100%) rename app/{src => application}/app/Services/Admin/LanguageService.php (100%) rename app/{src => application}/app/Services/Admin/ProjectService.php (100%) rename app/{src => application}/app/Services/Admin/RoleService.php (100%) rename app/{src => application}/app/Services/Admin/UserService.php (100%) rename app/{src => application}/app/Services/AuthService.php (100%) rename app/{src => application}/app/Services/Private/ProfileService.php (100%) rename app/{src => application}/app/Services/Project/BuilderCommand.php (100%) rename app/{src => application}/app/Services/Project/ProjectCommandHandler.php (100%) rename app/{src => application}/app/Services/ProjectLanguage/ModelSyncCommand.php (100%) rename app/{src => application}/app/Services/Role/BuilderCommand.php (100%) rename app/{src => application}/app/Services/Role/CreateAdminRoleForProjectCommand.php (100%) rename app/{src => application}/app/Services/Role/RoleCommandHandler.php (100%) rename app/{src => application}/app/Services/Role/RoleSyncPermissionsCommandHandler.php (100%) rename app/{src => application}/app/Services/Search/CreateSearchInstanceCommand.php (100%) rename app/{src => application}/app/Services/Search/Search.php (100%) rename app/{src => application}/app/Services/Service.php (100%) rename app/{src => application}/app/Services/Storage/Image/ResizeCommandHandler.php (100%) rename app/{src => application}/app/Services/Storage/ImageService.php (100%) rename app/{src => application}/app/Services/Storage/StorageCommandHandler.php (100%) rename app/{src => application}/app/Services/Storage/StorageService.php (100%) rename app/{src => application}/app/Services/Storage/ValidationService.php (100%) rename app/{src => application}/app/Services/User/BuilderCommand.php (100%) rename app/{src => application}/app/Services/User/UserCommandHandler.php (100%) rename app/{src => application}/app/View/Components/Admin/Layout.php (100%) rename app/{src => application}/app/View/Components/AuthLayout.php (100%) rename app/{src => application}/app/View/Components/Private/Layout.php (100%) rename app/{src => application}/app/View/Components/PrivateLayout.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Checkbox.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Form.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Input.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/InputTypeHidden.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Languages.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/MultiCheckbox.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/PermissionsForRole.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Select.php (100%) rename app/{src => application}/app/View/Components/Volt/Forms/Upload/Image.php (100%) rename app/{src => application}/artisan (100%) rename app/{src => application}/bootstrap/app.php (100%) rename app/{src => application}/bootstrap/cache/.gitignore (100%) rename app/{src => application}/bootstrap/providers.php (100%) rename app/{src => application}/composer.json (100%) rename app/{src => application}/composer.lock (100%) rename app/{src => application}/config/app.php (100%) rename app/{src => application}/config/auth.php (100%) rename app/{src => application}/config/cache.php (100%) rename app/{src => application}/config/database.php (100%) rename app/{src => application}/config/filesystems.php (100%) rename app/{src => application}/config/image.php (100%) rename app/{src => application}/config/logging.php (100%) rename app/{src => application}/config/mail.php (100%) rename app/{src => application}/config/queue.php (100%) rename app/{src => application}/config/rate_limiting.php (100%) rename app/{src => application}/config/services.php (100%) rename app/{src => application}/config/session.php (100%) rename app/{src => application}/config/storage.php (100%) rename app/{src => application}/database/.gitignore (100%) rename app/{src => application}/database/factories/UserFactory.php (100%) rename app/{src => application}/database/migrations/0001_01_01_000000_create_users_table.php (100%) rename app/{src => application}/database/migrations/0001_01_01_000001_create_cache_table.php (100%) rename app/{src => application}/database/migrations/0001_01_01_000002_create_jobs_table.php (100%) rename app/{src => application}/database/migrations/2024_04_01_184305_roles.php (100%) rename app/{src => application}/database/migrations/2024_04_03_062346_create_projects.php (100%) rename app/{src => application}/database/seeders/DatabaseSeeder.php (100%) rename app/{src => application}/lang/en.json (100%) rename app/{src => application}/lang/en/actions.php (100%) rename app/{src => application}/lang/en/admin-sections.php (100%) rename app/{src => application}/lang/en/auth.php (100%) rename app/{src => application}/lang/en/http-statuses.php (100%) rename app/{src => application}/lang/en/pagination.php (100%) rename app/{src => application}/lang/en/passwords.php (100%) rename app/{src => application}/lang/en/permissions.php (100%) rename app/{src => application}/lang/en/storage.php (100%) rename app/{src => application}/lang/en/validation.php (100%) rename app/{src => application}/lang/ru.json (100%) rename app/{src => application}/lang/ru/actions.php (100%) rename app/{src => application}/lang/ru/admin-sections.php (100%) rename app/{src => application}/lang/ru/auth.php (100%) rename app/{src => application}/lang/ru/http-statuses.php (100%) rename app/{src => application}/lang/ru/pagination.php (100%) rename app/{src => application}/lang/ru/passwords.php (100%) rename app/{src => application}/lang/ru/permissions.php (100%) rename app/{src => application}/lang/ru/storage.php (100%) rename app/{src => application}/lang/ru/validation.php (100%) rename app/{src => application}/package-lock.json (100%) rename app/{src => application}/package.json (100%) rename app/{src => application}/phpunit.xml (100%) rename app/{src => application}/public/.htaccess (100%) rename app/{src => application}/public/favicon.ico (100%) rename app/{src => application}/public/index.php (100%) rename app/{src => application}/public/robots.txt (100%) rename app/{src => application}/resources/views/admin/_scripts/_click-confirm.blade.php (100%) rename app/{src => application}/resources/views/admin/dashboard/index.blade.php (100%) rename app/{src => application}/resources/views/admin/layout/_navigation.blade.php (100%) rename app/{src => application}/resources/views/admin/projects/_from.blade.php (100%) rename app/{src => application}/resources/views/admin/projects/_top.blade.php (100%) rename app/{src => application}/resources/views/admin/projects/create.blade.php (100%) rename app/{src => application}/resources/views/admin/projects/edit.blade.php (100%) rename app/{src => application}/resources/views/admin/projects/index.blade.php (100%) rename app/{src => application}/resources/views/admin/roles/_from.blade.php (100%) rename app/{src => application}/resources/views/admin/roles/_top.blade.php (100%) rename app/{src => application}/resources/views/admin/roles/create.blade.php (100%) rename app/{src => application}/resources/views/admin/roles/edit.blade.php (100%) rename app/{src => application}/resources/views/admin/roles/index.blade.php (100%) rename app/{src => application}/resources/views/admin/users/_from.blade.php (100%) rename app/{src => application}/resources/views/admin/users/_top.blade.php (100%) rename app/{src => application}/resources/views/admin/users/create.blade.php (100%) rename app/{src => application}/resources/views/admin/users/edit.blade.php (100%) rename app/{src => application}/resources/views/admin/users/index.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/checkbox.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/input-type-hidden.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/input.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/languages.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/languages/input.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/languages/language.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/languages/radio.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/multi_checkbox.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/permissions_for_role.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/select.blade.php (100%) rename app/{src => application}/resources/views/components/volt/forms/upload/image.blade.php (100%) rename app/{src => application}/resources/views/layout/auth.blade.php (100%) rename app/{src => application}/resources/views/layout/private.blade.php (100%) rename app/{src => application}/resources/views/layout/private/_errors.blade.php (100%) rename app/{src => application}/resources/views/layout/private/_success.blade.php (100%) rename app/{src => application}/resources/views/login.blade.php (100%) rename app/{src => application}/resources/views/private/layout/_navigation.blade.php (100%) rename app/{src => application}/resources/views/private/profile/profile.blade.php (100%) rename app/{src => application}/resources/views/private/profile/settings.blade.php (100%) rename app/{src => application}/resources/volt/LICENSE.md (100%) rename app/{src => application}/resources/volt/images/illustrations/signin.svg (100%) rename app/{src => application}/resources/volt/js/app.js (100%) rename app/{src => application}/resources/volt/js/bootstrap.js (100%) rename app/{src => application}/resources/volt/js/image.js (100%) rename app/{src => application}/resources/volt/js/volt.js (100%) rename app/{src => application}/resources/volt/scss/_variables.scss (100%) rename app/{src => application}/resources/volt/scss/app.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_components.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_forms.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_functions.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_layout.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_mixins.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_utilities.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_variables.scss (100%) rename app/{src => application}/resources/volt/scss/volt/_vendor.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_accordions.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_alerts.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_animations.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_avatars.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_badge.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_body.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_breadcrumb.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_buttons.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_card.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_carousel.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_charts.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_close.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_custom-forms.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_datepicker.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_dropdown.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_icons.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_images.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_list-group.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_modal.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_nav.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_pagination.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_popover.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_progress.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_scrollbar.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_shapes.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_steps.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_tables.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_timelines.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_tooltip.scss (100%) rename app/{src => application}/resources/volt/scss/volt/components/_type.scss (100%) rename app/{src => application}/resources/volt/scss/volt/forms/_form-check.scss (100%) rename app/{src => application}/resources/volt/scss/volt/forms/_form-control.scss (100%) rename app/{src => application}/resources/volt/scss/volt/forms/_form-select.scss (100%) rename app/{src => application}/resources/volt/scss/volt/forms/_input-group.scss (100%) rename app/{src => application}/resources/volt/scss/volt/layout/_footer.scss (100%) rename app/{src => application}/resources/volt/scss/volt/layout/_navbar.scss (100%) rename app/{src => application}/resources/volt/scss/volt/layout/_section.scss (100%) rename app/{src => application}/resources/volt/scss/volt/layout/_sidebar.scss (100%) rename app/{src => application}/resources/volt/scss/volt/layout/_sidenav.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_animations.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_background-variant.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_icon.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_modals.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_popover.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_transform.scss (100%) rename app/{src => application}/resources/volt/scss/volt/mixins/_utilities.scss (100%) rename app/{src => application}/routes/console.php (100%) rename app/{src => application}/routes/web.php (100%) rename app/{src => application}/storage/app/.gitignore (100%) rename app/{src => application}/storage/app/public/.gitignore (100%) rename app/{src => application}/storage/framework/.gitignore (100%) rename app/{src => application}/storage/framework/cache/.gitignore (100%) rename app/{src => application}/storage/framework/cache/data/.gitignore (100%) rename app/{src => application}/storage/framework/sessions/.gitignore (100%) rename app/{src => application}/storage/framework/testing/.gitignore (100%) rename app/{src => application}/storage/framework/views/.gitignore (100%) rename app/{src => application}/storage/logs/.gitignore (100%) rename app/{src => application}/tests/Feature/ExampleTest.php (100%) rename app/{src => application}/tests/TestCase.php (100%) rename app/{src => application}/tests/Unit/ExampleTest.php (100%) rename app/{src => application}/vite.config.js (100%) diff --git a/app/src/.editorconfig b/app/application/.editorconfig similarity index 100% rename from app/src/.editorconfig rename to app/application/.editorconfig diff --git a/app/src/.env.example b/app/application/.env.example similarity index 100% rename from app/src/.env.example rename to app/application/.env.example diff --git a/app/src/.gitattributes b/app/application/.gitattributes similarity index 100% rename from app/src/.gitattributes rename to app/application/.gitattributes diff --git a/app/src/.gitignore b/app/application/.gitignore similarity index 100% rename from app/src/.gitignore rename to app/application/.gitignore diff --git a/app/src/README.md b/app/application/README.md similarity index 100% rename from app/src/README.md rename to app/application/README.md diff --git a/app/src/app/Console/Commands/CreateUserAdmin.php b/app/application/app/Console/Commands/CreateUserAdmin.php similarity index 100% rename from app/src/app/Console/Commands/CreateUserAdmin.php rename to app/application/app/Console/Commands/CreateUserAdmin.php diff --git a/app/src/app/Contracts/FormRequestDto.php b/app/application/app/Contracts/FormRequestDto.php similarity index 100% rename from app/src/app/Contracts/FormRequestDto.php rename to app/application/app/Contracts/FormRequestDto.php diff --git a/app/src/app/Contracts/Models/Storage.php b/app/application/app/Contracts/Models/Storage.php similarity index 100% rename from app/src/app/Contracts/Models/Storage.php rename to app/application/app/Contracts/Models/Storage.php diff --git a/app/src/app/Contracts/Search.php b/app/application/app/Contracts/Search.php similarity index 100% rename from app/src/app/Contracts/Search.php rename to app/application/app/Contracts/Search.php diff --git a/app/src/app/Contracts/ServiceResult.php b/app/application/app/Contracts/ServiceResult.php similarity index 100% rename from app/src/app/Contracts/ServiceResult.php rename to app/application/app/Contracts/ServiceResult.php diff --git a/app/src/app/Contracts/ServiceResultError.php b/app/application/app/Contracts/ServiceResultError.php similarity index 100% rename from app/src/app/Contracts/ServiceResultError.php rename to app/application/app/Contracts/ServiceResultError.php diff --git a/app/src/app/Contracts/StorageType.php b/app/application/app/Contracts/StorageType.php similarity index 100% rename from app/src/app/Contracts/StorageType.php rename to app/application/app/Contracts/StorageType.php diff --git a/app/src/app/Contracts/StorageType/Audio.php b/app/application/app/Contracts/StorageType/Audio.php similarity index 100% rename from app/src/app/Contracts/StorageType/Audio.php rename to app/application/app/Contracts/StorageType/Audio.php diff --git a/app/src/app/Contracts/StorageType/Image.php b/app/application/app/Contracts/StorageType/Image.php similarity index 100% rename from app/src/app/Contracts/StorageType/Image.php rename to app/application/app/Contracts/StorageType/Image.php diff --git a/app/src/app/Contracts/StorageType/Video.php b/app/application/app/Contracts/StorageType/Video.php similarity index 100% rename from app/src/app/Contracts/StorageType/Video.php rename to app/application/app/Contracts/StorageType/Video.php diff --git a/app/src/app/Dto/Builder/Project.php b/app/application/app/Dto/Builder/Project.php similarity index 100% rename from app/src/app/Dto/Builder/Project.php rename to app/application/app/Dto/Builder/Project.php diff --git a/app/src/app/Dto/Builder/Role.php b/app/application/app/Dto/Builder/Role.php similarity index 100% rename from app/src/app/Dto/Builder/Role.php rename to app/application/app/Dto/Builder/Role.php diff --git a/app/src/app/Dto/Builder/User.php b/app/application/app/Dto/Builder/User.php similarity index 100% rename from app/src/app/Dto/Builder/User.php rename to app/application/app/Dto/Builder/User.php diff --git a/app/src/app/Dto/QuerySettingsDto.php b/app/application/app/Dto/QuerySettingsDto.php similarity index 100% rename from app/src/app/Dto/QuerySettingsDto.php rename to app/application/app/Dto/QuerySettingsDto.php diff --git a/app/src/app/Dto/Service/Admin/Language/NewLanguage.php b/app/application/app/Dto/Service/Admin/Language/NewLanguage.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Language/NewLanguage.php rename to app/application/app/Dto/Service/Admin/Language/NewLanguage.php diff --git a/app/src/app/Dto/Service/Admin/Project/Index.php b/app/application/app/Dto/Service/Admin/Project/Index.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Project/Index.php rename to app/application/app/Dto/Service/Admin/Project/Index.php diff --git a/app/src/app/Dto/Service/Admin/Project/Language.php b/app/application/app/Dto/Service/Admin/Project/Language.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Project/Language.php rename to app/application/app/Dto/Service/Admin/Project/Language.php diff --git a/app/src/app/Dto/Service/Admin/Project/Languages.php b/app/application/app/Dto/Service/Admin/Project/Languages.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Project/Languages.php rename to app/application/app/Dto/Service/Admin/Project/Languages.php diff --git a/app/src/app/Dto/Service/Admin/Project/StoreUpdate.php b/app/application/app/Dto/Service/Admin/Project/StoreUpdate.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Project/StoreUpdate.php rename to app/application/app/Dto/Service/Admin/Project/StoreUpdate.php diff --git a/app/src/app/Dto/Service/Admin/Role/Index.php b/app/application/app/Dto/Service/Admin/Role/Index.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Role/Index.php rename to app/application/app/Dto/Service/Admin/Role/Index.php diff --git a/app/src/app/Dto/Service/Admin/Role/StoreUpdate.php b/app/application/app/Dto/Service/Admin/Role/StoreUpdate.php similarity index 100% rename from app/src/app/Dto/Service/Admin/Role/StoreUpdate.php rename to app/application/app/Dto/Service/Admin/Role/StoreUpdate.php diff --git a/app/src/app/Dto/Service/Admin/User/Index.php b/app/application/app/Dto/Service/Admin/User/Index.php similarity index 100% rename from app/src/app/Dto/Service/Admin/User/Index.php rename to app/application/app/Dto/Service/Admin/User/Index.php diff --git a/app/src/app/Dto/Service/Admin/User/StoreUpdate.php b/app/application/app/Dto/Service/Admin/User/StoreUpdate.php similarity index 100% rename from app/src/app/Dto/Service/Admin/User/StoreUpdate.php rename to app/application/app/Dto/Service/Admin/User/StoreUpdate.php diff --git a/app/src/app/Dto/Service/Authorization.php b/app/application/app/Dto/Service/Authorization.php similarity index 100% rename from app/src/app/Dto/Service/Authorization.php rename to app/application/app/Dto/Service/Authorization.php diff --git a/app/src/app/Dto/Service/Dto.php b/app/application/app/Dto/Service/Dto.php similarity index 100% rename from app/src/app/Dto/Service/Dto.php rename to app/application/app/Dto/Service/Dto.php diff --git a/app/src/app/Dto/Service/Pages.php b/app/application/app/Dto/Service/Pages.php similarity index 100% rename from app/src/app/Dto/Service/Pages.php rename to app/application/app/Dto/Service/Pages.php diff --git a/app/src/app/Dto/Service/Private/Profile/Update.php b/app/application/app/Dto/Service/Private/Profile/Update.php similarity index 100% rename from app/src/app/Dto/Service/Private/Profile/Update.php rename to app/application/app/Dto/Service/Private/Profile/Update.php diff --git a/app/src/app/Dto/Service/Private/Profile/UpdateSettings.php b/app/application/app/Dto/Service/Private/Profile/UpdateSettings.php similarity index 100% rename from app/src/app/Dto/Service/Private/Profile/UpdateSettings.php rename to app/application/app/Dto/Service/Private/Profile/UpdateSettings.php diff --git a/app/src/app/Dto/Service/Storage/File.php b/app/application/app/Dto/Service/Storage/File.php similarity index 100% rename from app/src/app/Dto/Service/Storage/File.php rename to app/application/app/Dto/Service/Storage/File.php diff --git a/app/src/app/Dto/Service/Storage/Storage.php b/app/application/app/Dto/Service/Storage/Storage.php similarity index 100% rename from app/src/app/Dto/Service/Storage/Storage.php rename to app/application/app/Dto/Service/Storage/Storage.php diff --git a/app/src/app/Dto/Service/Storage/Storages.php b/app/application/app/Dto/Service/Storage/Storages.php similarity index 100% rename from app/src/app/Dto/Service/Storage/Storages.php rename to app/application/app/Dto/Service/Storage/Storages.php diff --git a/app/src/app/Dto/Service/Storage/Upload.php b/app/application/app/Dto/Service/Storage/Upload.php similarity index 100% rename from app/src/app/Dto/Service/Storage/Upload.php rename to app/application/app/Dto/Service/Storage/Upload.php diff --git a/app/src/app/Dto/Service/User/UpdatePassword.php b/app/application/app/Dto/Service/User/UpdatePassword.php similarity index 100% rename from app/src/app/Dto/Service/User/UpdatePassword.php rename to app/application/app/Dto/Service/User/UpdatePassword.php diff --git a/app/src/app/Dto/User/ManyRoleDto.php b/app/application/app/Dto/User/ManyRoleDto.php similarity index 100% rename from app/src/app/Dto/User/ManyRoleDto.php rename to app/application/app/Dto/User/ManyRoleDto.php diff --git a/app/src/app/Enums/Lang.php b/app/application/app/Enums/Lang.php similarity index 100% rename from app/src/app/Enums/Lang.php rename to app/application/app/Enums/Lang.php diff --git a/app/src/app/Enums/Morph.php b/app/application/app/Enums/Morph.php similarity index 100% rename from app/src/app/Enums/Morph.php rename to app/application/app/Enums/Morph.php diff --git a/app/src/app/Enums/Permission.php b/app/application/app/Enums/Permission.php similarity index 100% rename from app/src/app/Enums/Permission.php rename to app/application/app/Enums/Permission.php diff --git a/app/src/app/Enums/StorageType.php b/app/application/app/Enums/StorageType.php similarity index 100% rename from app/src/app/Enums/StorageType.php rename to app/application/app/Enums/StorageType.php diff --git a/app/src/app/Enums/SystemRole.php b/app/application/app/Enums/SystemRole.php similarity index 100% rename from app/src/app/Enums/SystemRole.php rename to app/application/app/Enums/SystemRole.php diff --git a/app/src/app/Exceptions/Dto/Storage/FileException.php b/app/application/app/Exceptions/Dto/Storage/FileException.php similarity index 100% rename from app/src/app/Exceptions/Dto/Storage/FileException.php rename to app/application/app/Exceptions/Dto/Storage/FileException.php diff --git a/app/src/app/Exceptions/Dto/Storage/StorageException.php b/app/application/app/Exceptions/Dto/Storage/StorageException.php similarity index 100% rename from app/src/app/Exceptions/Dto/Storage/StorageException.php rename to app/application/app/Exceptions/Dto/Storage/StorageException.php diff --git a/app/src/app/Exceptions/Dto/Storage/StoragesException.php b/app/application/app/Exceptions/Dto/Storage/StoragesException.php similarity index 100% rename from app/src/app/Exceptions/Dto/Storage/StoragesException.php rename to app/application/app/Exceptions/Dto/Storage/StoragesException.php diff --git a/app/src/app/Exceptions/Dto/User/ManyRoleDtoException.php b/app/application/app/Exceptions/Dto/User/ManyRoleDtoException.php similarity index 100% rename from app/src/app/Exceptions/Dto/User/ManyRoleDtoException.php rename to app/application/app/Exceptions/Dto/User/ManyRoleDtoException.php diff --git a/app/src/app/Exceptions/Services/Storage/StorageCommandHandlerException.php b/app/application/app/Exceptions/Services/Storage/StorageCommandHandlerException.php similarity index 100% rename from app/src/app/Exceptions/Services/Storage/StorageCommandHandlerException.php rename to app/application/app/Exceptions/Services/Storage/StorageCommandHandlerException.php diff --git a/app/src/app/Exceptions/Services/Storage/StorageSaveFileException.php b/app/application/app/Exceptions/Services/Storage/StorageSaveFileException.php similarity index 100% rename from app/src/app/Exceptions/Services/Storage/StorageSaveFileException.php rename to app/application/app/Exceptions/Services/Storage/StorageSaveFileException.php diff --git a/app/src/app/Helpers/Helpers.php b/app/application/app/Helpers/Helpers.php similarity index 100% rename from app/src/app/Helpers/Helpers.php rename to app/application/app/Helpers/Helpers.php diff --git a/app/src/app/Http/Controllers/Admin/Controller.php b/app/application/app/Http/Controllers/Admin/Controller.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/Controller.php rename to app/application/app/Http/Controllers/Admin/Controller.php diff --git a/app/src/app/Http/Controllers/Admin/DashboardController.php b/app/application/app/Http/Controllers/Admin/DashboardController.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/DashboardController.php rename to app/application/app/Http/Controllers/Admin/DashboardController.php diff --git a/app/src/app/Http/Controllers/Admin/LanguagesController.php b/app/application/app/Http/Controllers/Admin/LanguagesController.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/LanguagesController.php rename to app/application/app/Http/Controllers/Admin/LanguagesController.php diff --git a/app/src/app/Http/Controllers/Admin/ProjectsController.php b/app/application/app/Http/Controllers/Admin/ProjectsController.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/ProjectsController.php rename to app/application/app/Http/Controllers/Admin/ProjectsController.php diff --git a/app/src/app/Http/Controllers/Admin/RolesController.php b/app/application/app/Http/Controllers/Admin/RolesController.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/RolesController.php rename to app/application/app/Http/Controllers/Admin/RolesController.php diff --git a/app/src/app/Http/Controllers/Admin/UsersController.php b/app/application/app/Http/Controllers/Admin/UsersController.php similarity index 100% rename from app/src/app/Http/Controllers/Admin/UsersController.php rename to app/application/app/Http/Controllers/Admin/UsersController.php diff --git a/app/src/app/Http/Controllers/AuthController.php b/app/application/app/Http/Controllers/AuthController.php similarity index 100% rename from app/src/app/Http/Controllers/AuthController.php rename to app/application/app/Http/Controllers/AuthController.php diff --git a/app/src/app/Http/Controllers/Controller.php b/app/application/app/Http/Controllers/Controller.php similarity index 100% rename from app/src/app/Http/Controllers/Controller.php rename to app/application/app/Http/Controllers/Controller.php diff --git a/app/src/app/Http/Controllers/Private/Controller.php b/app/application/app/Http/Controllers/Private/Controller.php similarity index 100% rename from app/src/app/Http/Controllers/Private/Controller.php rename to app/application/app/Http/Controllers/Private/Controller.php diff --git a/app/src/app/Http/Controllers/Private/ProfileController.php b/app/application/app/Http/Controllers/Private/ProfileController.php similarity index 100% rename from app/src/app/Http/Controllers/Private/ProfileController.php rename to app/application/app/Http/Controllers/Private/ProfileController.php diff --git a/app/src/app/Http/Controllers/Storage/Controller.php b/app/application/app/Http/Controllers/Storage/Controller.php similarity index 100% rename from app/src/app/Http/Controllers/Storage/Controller.php rename to app/application/app/Http/Controllers/Storage/Controller.php diff --git a/app/src/app/Http/Controllers/Storage/ImagesController.php b/app/application/app/Http/Controllers/Storage/ImagesController.php similarity index 100% rename from app/src/app/Http/Controllers/Storage/ImagesController.php rename to app/application/app/Http/Controllers/Storage/ImagesController.php diff --git a/app/src/app/Http/Middleware/AdminPanel.php b/app/application/app/Http/Middleware/AdminPanel.php similarity index 100% rename from app/src/app/Http/Middleware/AdminPanel.php rename to app/application/app/Http/Middleware/AdminPanel.php diff --git a/app/src/app/Http/Middleware/UserLocale.php b/app/application/app/Http/Middleware/UserLocale.php similarity index 100% rename from app/src/app/Http/Middleware/UserLocale.php rename to app/application/app/Http/Middleware/UserLocale.php diff --git a/app/src/app/Http/Requests/Admin/Languages/NewLanguageRequest.php b/app/application/app/Http/Requests/Admin/Languages/NewLanguageRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Languages/NewLanguageRequest.php rename to app/application/app/Http/Requests/Admin/Languages/NewLanguageRequest.php diff --git a/app/src/app/Http/Requests/Admin/Projects/IndexRequest.php b/app/application/app/Http/Requests/Admin/Projects/IndexRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Projects/IndexRequest.php rename to app/application/app/Http/Requests/Admin/Projects/IndexRequest.php diff --git a/app/src/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php rename to app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php diff --git a/app/src/app/Http/Requests/Admin/Roles/IndexRequest.php b/app/application/app/Http/Requests/Admin/Roles/IndexRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Roles/IndexRequest.php rename to app/application/app/Http/Requests/Admin/Roles/IndexRequest.php diff --git a/app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php rename to app/application/app/Http/Requests/Admin/Roles/StoreUpdateRequest.php diff --git a/app/src/app/Http/Requests/Admin/Users/IndexRequest.php b/app/application/app/Http/Requests/Admin/Users/IndexRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Users/IndexRequest.php rename to app/application/app/Http/Requests/Admin/Users/IndexRequest.php diff --git a/app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Users/StoreUpdateRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Users/StoreUpdateRequest.php rename to app/application/app/Http/Requests/Admin/Users/StoreUpdateRequest.php diff --git a/app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php b/app/application/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php similarity index 100% rename from app/src/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php rename to app/application/app/Http/Requests/Admin/Users/UpdatePasswordRequest.php diff --git a/app/src/app/Http/Requests/AuthorizationRequest.php b/app/application/app/Http/Requests/AuthorizationRequest.php similarity index 100% rename from app/src/app/Http/Requests/AuthorizationRequest.php rename to app/application/app/Http/Requests/AuthorizationRequest.php diff --git a/app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php b/app/application/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php similarity index 100% rename from app/src/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php rename to app/application/app/Http/Requests/Private/Profile/UpdatePasswordRequest.php diff --git a/app/src/app/Http/Requests/Private/Profile/UpdateRequest.php b/app/application/app/Http/Requests/Private/Profile/UpdateRequest.php similarity index 100% rename from app/src/app/Http/Requests/Private/Profile/UpdateRequest.php rename to app/application/app/Http/Requests/Private/Profile/UpdateRequest.php diff --git a/app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php b/app/application/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php similarity index 100% rename from app/src/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php rename to app/application/app/Http/Requests/Private/Profile/UpdateSettingsRequest.php diff --git a/app/src/app/Http/Requests/Storage/ImageRequest.php b/app/application/app/Http/Requests/Storage/ImageRequest.php similarity index 100% rename from app/src/app/Http/Requests/Storage/ImageRequest.php rename to app/application/app/Http/Requests/Storage/ImageRequest.php diff --git a/app/src/app/Http/Resources/Admin/Languages/NewLanguage.php b/app/application/app/Http/Resources/Admin/Languages/NewLanguage.php similarity index 100% rename from app/src/app/Http/Resources/Admin/Languages/NewLanguage.php rename to app/application/app/Http/Resources/Admin/Languages/NewLanguage.php diff --git a/app/src/app/Http/Resources/Storage/Upload.php b/app/application/app/Http/Resources/Storage/Upload.php similarity index 100% rename from app/src/app/Http/Resources/Storage/Upload.php rename to app/application/app/Http/Resources/Storage/Upload.php diff --git a/app/src/app/Models/Project.php b/app/application/app/Models/Project.php similarity index 100% rename from app/src/app/Models/Project.php rename to app/application/app/Models/Project.php diff --git a/app/src/app/Models/ProjectLanguage.php b/app/application/app/Models/ProjectLanguage.php similarity index 100% rename from app/src/app/Models/ProjectLanguage.php rename to app/application/app/Models/ProjectLanguage.php diff --git a/app/src/app/Models/Role.php b/app/application/app/Models/Role.php similarity index 100% rename from app/src/app/Models/Role.php rename to app/application/app/Models/Role.php diff --git a/app/src/app/Models/RolePermission.php b/app/application/app/Models/RolePermission.php similarity index 100% rename from app/src/app/Models/RolePermission.php rename to app/application/app/Models/RolePermission.php diff --git a/app/src/app/Models/Scopes/SortScope.php b/app/application/app/Models/Scopes/SortScope.php similarity index 100% rename from app/src/app/Models/Scopes/SortScope.php rename to app/application/app/Models/Scopes/SortScope.php diff --git a/app/src/app/Models/Storage.php b/app/application/app/Models/Storage.php similarity index 100% rename from app/src/app/Models/Storage.php rename to app/application/app/Models/Storage.php diff --git a/app/src/app/Models/Traits/StorageTrait.php b/app/application/app/Models/Traits/StorageTrait.php similarity index 100% rename from app/src/app/Models/Traits/StorageTrait.php rename to app/application/app/Models/Traits/StorageTrait.php diff --git a/app/src/app/Models/User.php b/app/application/app/Models/User.php similarity index 100% rename from app/src/app/Models/User.php rename to app/application/app/Models/User.php diff --git a/app/src/app/Policies/AdminPanel.php b/app/application/app/Policies/AdminPanel.php similarity index 100% rename from app/src/app/Policies/AdminPanel.php rename to app/application/app/Policies/AdminPanel.php diff --git a/app/src/app/Policies/Policy.php b/app/application/app/Policies/Policy.php similarity index 100% rename from app/src/app/Policies/Policy.php rename to app/application/app/Policies/Policy.php diff --git a/app/src/app/Policies/ProjectPolicy.php b/app/application/app/Policies/ProjectPolicy.php similarity index 100% rename from app/src/app/Policies/ProjectPolicy.php rename to app/application/app/Policies/ProjectPolicy.php diff --git a/app/src/app/Policies/RolePolicy.php b/app/application/app/Policies/RolePolicy.php similarity index 100% rename from app/src/app/Policies/RolePolicy.php rename to app/application/app/Policies/RolePolicy.php diff --git a/app/src/app/Policies/UserPolicy.php b/app/application/app/Policies/UserPolicy.php similarity index 100% rename from app/src/app/Policies/UserPolicy.php rename to app/application/app/Policies/UserPolicy.php diff --git a/app/src/app/Providers/AppServiceProvider.php b/app/application/app/Providers/AppServiceProvider.php similarity index 100% rename from app/src/app/Providers/AppServiceProvider.php rename to app/application/app/Providers/AppServiceProvider.php diff --git a/app/src/app/Repositories/ProjectRepository.php b/app/application/app/Repositories/ProjectRepository.php similarity index 100% rename from app/src/app/Repositories/ProjectRepository.php rename to app/application/app/Repositories/ProjectRepository.php diff --git a/app/src/app/Repositories/RoleRepository.php b/app/application/app/Repositories/RoleRepository.php similarity index 100% rename from app/src/app/Repositories/RoleRepository.php rename to app/application/app/Repositories/RoleRepository.php diff --git a/app/src/app/Repositories/StorageRepository.php b/app/application/app/Repositories/StorageRepository.php similarity index 100% rename from app/src/app/Repositories/StorageRepository.php rename to app/application/app/Repositories/StorageRepository.php diff --git a/app/src/app/Repositories/UserRepository.php b/app/application/app/Repositories/UserRepository.php similarity index 100% rename from app/src/app/Repositories/UserRepository.php rename to app/application/app/Repositories/UserRepository.php diff --git a/app/src/app/Rules/HttpHost.php b/app/application/app/Rules/HttpHost.php similarity index 100% rename from app/src/app/Rules/HttpHost.php rename to app/application/app/Rules/HttpHost.php diff --git a/app/src/app/Rules/Permission.php b/app/application/app/Rules/Permission.php similarity index 100% rename from app/src/app/Rules/Permission.php rename to app/application/app/Rules/Permission.php diff --git a/app/src/app/ServiceResults/Admin/LanguageService/NewLanguageResult.php b/app/application/app/ServiceResults/Admin/LanguageService/NewLanguageResult.php similarity index 100% rename from app/src/app/ServiceResults/Admin/LanguageService/NewLanguageResult.php rename to app/application/app/ServiceResults/Admin/LanguageService/NewLanguageResult.php diff --git a/app/src/app/ServiceResults/ServiceResult.php b/app/application/app/ServiceResults/ServiceResult.php similarity index 100% rename from app/src/app/ServiceResults/ServiceResult.php rename to app/application/app/ServiceResults/ServiceResult.php diff --git a/app/src/app/ServiceResults/ServiceResultArray.php b/app/application/app/ServiceResults/ServiceResultArray.php similarity index 100% rename from app/src/app/ServiceResults/ServiceResultArray.php rename to app/application/app/ServiceResults/ServiceResultArray.php diff --git a/app/src/app/ServiceResults/ServiceResultError.php b/app/application/app/ServiceResults/ServiceResultError.php similarity index 100% rename from app/src/app/ServiceResults/ServiceResultError.php rename to app/application/app/ServiceResults/ServiceResultError.php diff --git a/app/src/app/ServiceResults/ServiceResultSuccess.php b/app/application/app/ServiceResults/ServiceResultSuccess.php similarity index 100% rename from app/src/app/ServiceResults/ServiceResultSuccess.php rename to app/application/app/ServiceResults/ServiceResultSuccess.php diff --git a/app/src/app/ServiceResults/Storage/SaveDeleteStorageResult.php b/app/application/app/ServiceResults/Storage/SaveDeleteStorageResult.php similarity index 100% rename from app/src/app/ServiceResults/Storage/SaveDeleteStorageResult.php rename to app/application/app/ServiceResults/Storage/SaveDeleteStorageResult.php diff --git a/app/src/app/ServiceResults/Storage/UploadResult.php b/app/application/app/ServiceResults/Storage/UploadResult.php similarity index 100% rename from app/src/app/ServiceResults/Storage/UploadResult.php rename to app/application/app/ServiceResults/Storage/UploadResult.php diff --git a/app/src/app/ServiceResults/StoreUpdateResult.php b/app/application/app/ServiceResults/StoreUpdateResult.php similarity index 100% rename from app/src/app/ServiceResults/StoreUpdateResult.php rename to app/application/app/ServiceResults/StoreUpdateResult.php diff --git a/app/src/app/Services/Admin/LanguageService.php b/app/application/app/Services/Admin/LanguageService.php similarity index 100% rename from app/src/app/Services/Admin/LanguageService.php rename to app/application/app/Services/Admin/LanguageService.php diff --git a/app/src/app/Services/Admin/ProjectService.php b/app/application/app/Services/Admin/ProjectService.php similarity index 100% rename from app/src/app/Services/Admin/ProjectService.php rename to app/application/app/Services/Admin/ProjectService.php diff --git a/app/src/app/Services/Admin/RoleService.php b/app/application/app/Services/Admin/RoleService.php similarity index 100% rename from app/src/app/Services/Admin/RoleService.php rename to app/application/app/Services/Admin/RoleService.php diff --git a/app/src/app/Services/Admin/UserService.php b/app/application/app/Services/Admin/UserService.php similarity index 100% rename from app/src/app/Services/Admin/UserService.php rename to app/application/app/Services/Admin/UserService.php diff --git a/app/src/app/Services/AuthService.php b/app/application/app/Services/AuthService.php similarity index 100% rename from app/src/app/Services/AuthService.php rename to app/application/app/Services/AuthService.php diff --git a/app/src/app/Services/Private/ProfileService.php b/app/application/app/Services/Private/ProfileService.php similarity index 100% rename from app/src/app/Services/Private/ProfileService.php rename to app/application/app/Services/Private/ProfileService.php diff --git a/app/src/app/Services/Project/BuilderCommand.php b/app/application/app/Services/Project/BuilderCommand.php similarity index 100% rename from app/src/app/Services/Project/BuilderCommand.php rename to app/application/app/Services/Project/BuilderCommand.php diff --git a/app/src/app/Services/Project/ProjectCommandHandler.php b/app/application/app/Services/Project/ProjectCommandHandler.php similarity index 100% rename from app/src/app/Services/Project/ProjectCommandHandler.php rename to app/application/app/Services/Project/ProjectCommandHandler.php diff --git a/app/src/app/Services/ProjectLanguage/ModelSyncCommand.php b/app/application/app/Services/ProjectLanguage/ModelSyncCommand.php similarity index 100% rename from app/src/app/Services/ProjectLanguage/ModelSyncCommand.php rename to app/application/app/Services/ProjectLanguage/ModelSyncCommand.php diff --git a/app/src/app/Services/Role/BuilderCommand.php b/app/application/app/Services/Role/BuilderCommand.php similarity index 100% rename from app/src/app/Services/Role/BuilderCommand.php rename to app/application/app/Services/Role/BuilderCommand.php diff --git a/app/src/app/Services/Role/CreateAdminRoleForProjectCommand.php b/app/application/app/Services/Role/CreateAdminRoleForProjectCommand.php similarity index 100% rename from app/src/app/Services/Role/CreateAdminRoleForProjectCommand.php rename to app/application/app/Services/Role/CreateAdminRoleForProjectCommand.php diff --git a/app/src/app/Services/Role/RoleCommandHandler.php b/app/application/app/Services/Role/RoleCommandHandler.php similarity index 100% rename from app/src/app/Services/Role/RoleCommandHandler.php rename to app/application/app/Services/Role/RoleCommandHandler.php diff --git a/app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php b/app/application/app/Services/Role/RoleSyncPermissionsCommandHandler.php similarity index 100% rename from app/src/app/Services/Role/RoleSyncPermissionsCommandHandler.php rename to app/application/app/Services/Role/RoleSyncPermissionsCommandHandler.php diff --git a/app/src/app/Services/Search/CreateSearchInstanceCommand.php b/app/application/app/Services/Search/CreateSearchInstanceCommand.php similarity index 100% rename from app/src/app/Services/Search/CreateSearchInstanceCommand.php rename to app/application/app/Services/Search/CreateSearchInstanceCommand.php diff --git a/app/src/app/Services/Search/Search.php b/app/application/app/Services/Search/Search.php similarity index 100% rename from app/src/app/Services/Search/Search.php rename to app/application/app/Services/Search/Search.php diff --git a/app/src/app/Services/Service.php b/app/application/app/Services/Service.php similarity index 100% rename from app/src/app/Services/Service.php rename to app/application/app/Services/Service.php diff --git a/app/src/app/Services/Storage/Image/ResizeCommandHandler.php b/app/application/app/Services/Storage/Image/ResizeCommandHandler.php similarity index 100% rename from app/src/app/Services/Storage/Image/ResizeCommandHandler.php rename to app/application/app/Services/Storage/Image/ResizeCommandHandler.php diff --git a/app/src/app/Services/Storage/ImageService.php b/app/application/app/Services/Storage/ImageService.php similarity index 100% rename from app/src/app/Services/Storage/ImageService.php rename to app/application/app/Services/Storage/ImageService.php diff --git a/app/src/app/Services/Storage/StorageCommandHandler.php b/app/application/app/Services/Storage/StorageCommandHandler.php similarity index 100% rename from app/src/app/Services/Storage/StorageCommandHandler.php rename to app/application/app/Services/Storage/StorageCommandHandler.php diff --git a/app/src/app/Services/Storage/StorageService.php b/app/application/app/Services/Storage/StorageService.php similarity index 100% rename from app/src/app/Services/Storage/StorageService.php rename to app/application/app/Services/Storage/StorageService.php diff --git a/app/src/app/Services/Storage/ValidationService.php b/app/application/app/Services/Storage/ValidationService.php similarity index 100% rename from app/src/app/Services/Storage/ValidationService.php rename to app/application/app/Services/Storage/ValidationService.php diff --git a/app/src/app/Services/User/BuilderCommand.php b/app/application/app/Services/User/BuilderCommand.php similarity index 100% rename from app/src/app/Services/User/BuilderCommand.php rename to app/application/app/Services/User/BuilderCommand.php diff --git a/app/src/app/Services/User/UserCommandHandler.php b/app/application/app/Services/User/UserCommandHandler.php similarity index 100% rename from app/src/app/Services/User/UserCommandHandler.php rename to app/application/app/Services/User/UserCommandHandler.php diff --git a/app/src/app/View/Components/Admin/Layout.php b/app/application/app/View/Components/Admin/Layout.php similarity index 100% rename from app/src/app/View/Components/Admin/Layout.php rename to app/application/app/View/Components/Admin/Layout.php diff --git a/app/src/app/View/Components/AuthLayout.php b/app/application/app/View/Components/AuthLayout.php similarity index 100% rename from app/src/app/View/Components/AuthLayout.php rename to app/application/app/View/Components/AuthLayout.php diff --git a/app/src/app/View/Components/Private/Layout.php b/app/application/app/View/Components/Private/Layout.php similarity index 100% rename from app/src/app/View/Components/Private/Layout.php rename to app/application/app/View/Components/Private/Layout.php diff --git a/app/src/app/View/Components/PrivateLayout.php b/app/application/app/View/Components/PrivateLayout.php similarity index 100% rename from app/src/app/View/Components/PrivateLayout.php rename to app/application/app/View/Components/PrivateLayout.php diff --git a/app/src/app/View/Components/Volt/Forms/Checkbox.php b/app/application/app/View/Components/Volt/Forms/Checkbox.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Checkbox.php rename to app/application/app/View/Components/Volt/Forms/Checkbox.php diff --git a/app/src/app/View/Components/Volt/Forms/Form.php b/app/application/app/View/Components/Volt/Forms/Form.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Form.php rename to app/application/app/View/Components/Volt/Forms/Form.php diff --git a/app/src/app/View/Components/Volt/Forms/Input.php b/app/application/app/View/Components/Volt/Forms/Input.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Input.php rename to app/application/app/View/Components/Volt/Forms/Input.php diff --git a/app/src/app/View/Components/Volt/Forms/InputTypeHidden.php b/app/application/app/View/Components/Volt/Forms/InputTypeHidden.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/InputTypeHidden.php rename to app/application/app/View/Components/Volt/Forms/InputTypeHidden.php diff --git a/app/src/app/View/Components/Volt/Forms/Languages.php b/app/application/app/View/Components/Volt/Forms/Languages.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Languages.php rename to app/application/app/View/Components/Volt/Forms/Languages.php diff --git a/app/src/app/View/Components/Volt/Forms/MultiCheckbox.php b/app/application/app/View/Components/Volt/Forms/MultiCheckbox.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/MultiCheckbox.php rename to app/application/app/View/Components/Volt/Forms/MultiCheckbox.php diff --git a/app/src/app/View/Components/Volt/Forms/PermissionsForRole.php b/app/application/app/View/Components/Volt/Forms/PermissionsForRole.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/PermissionsForRole.php rename to app/application/app/View/Components/Volt/Forms/PermissionsForRole.php diff --git a/app/src/app/View/Components/Volt/Forms/Select.php b/app/application/app/View/Components/Volt/Forms/Select.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Select.php rename to app/application/app/View/Components/Volt/Forms/Select.php diff --git a/app/src/app/View/Components/Volt/Forms/Upload/Image.php b/app/application/app/View/Components/Volt/Forms/Upload/Image.php similarity index 100% rename from app/src/app/View/Components/Volt/Forms/Upload/Image.php rename to app/application/app/View/Components/Volt/Forms/Upload/Image.php diff --git a/app/src/artisan b/app/application/artisan similarity index 100% rename from app/src/artisan rename to app/application/artisan diff --git a/app/src/bootstrap/app.php b/app/application/bootstrap/app.php similarity index 100% rename from app/src/bootstrap/app.php rename to app/application/bootstrap/app.php diff --git a/app/src/bootstrap/cache/.gitignore b/app/application/bootstrap/cache/.gitignore similarity index 100% rename from app/src/bootstrap/cache/.gitignore rename to app/application/bootstrap/cache/.gitignore diff --git a/app/src/bootstrap/providers.php b/app/application/bootstrap/providers.php similarity index 100% rename from app/src/bootstrap/providers.php rename to app/application/bootstrap/providers.php diff --git a/app/src/composer.json b/app/application/composer.json similarity index 100% rename from app/src/composer.json rename to app/application/composer.json diff --git a/app/src/composer.lock b/app/application/composer.lock similarity index 100% rename from app/src/composer.lock rename to app/application/composer.lock diff --git a/app/src/config/app.php b/app/application/config/app.php similarity index 100% rename from app/src/config/app.php rename to app/application/config/app.php diff --git a/app/src/config/auth.php b/app/application/config/auth.php similarity index 100% rename from app/src/config/auth.php rename to app/application/config/auth.php diff --git a/app/src/config/cache.php b/app/application/config/cache.php similarity index 100% rename from app/src/config/cache.php rename to app/application/config/cache.php diff --git a/app/src/config/database.php b/app/application/config/database.php similarity index 100% rename from app/src/config/database.php rename to app/application/config/database.php diff --git a/app/src/config/filesystems.php b/app/application/config/filesystems.php similarity index 100% rename from app/src/config/filesystems.php rename to app/application/config/filesystems.php diff --git a/app/src/config/image.php b/app/application/config/image.php similarity index 100% rename from app/src/config/image.php rename to app/application/config/image.php diff --git a/app/src/config/logging.php b/app/application/config/logging.php similarity index 100% rename from app/src/config/logging.php rename to app/application/config/logging.php diff --git a/app/src/config/mail.php b/app/application/config/mail.php similarity index 100% rename from app/src/config/mail.php rename to app/application/config/mail.php diff --git a/app/src/config/queue.php b/app/application/config/queue.php similarity index 100% rename from app/src/config/queue.php rename to app/application/config/queue.php diff --git a/app/src/config/rate_limiting.php b/app/application/config/rate_limiting.php similarity index 100% rename from app/src/config/rate_limiting.php rename to app/application/config/rate_limiting.php diff --git a/app/src/config/services.php b/app/application/config/services.php similarity index 100% rename from app/src/config/services.php rename to app/application/config/services.php diff --git a/app/src/config/session.php b/app/application/config/session.php similarity index 100% rename from app/src/config/session.php rename to app/application/config/session.php diff --git a/app/src/config/storage.php b/app/application/config/storage.php similarity index 100% rename from app/src/config/storage.php rename to app/application/config/storage.php diff --git a/app/src/database/.gitignore b/app/application/database/.gitignore similarity index 100% rename from app/src/database/.gitignore rename to app/application/database/.gitignore diff --git a/app/src/database/factories/UserFactory.php b/app/application/database/factories/UserFactory.php similarity index 100% rename from app/src/database/factories/UserFactory.php rename to app/application/database/factories/UserFactory.php diff --git a/app/src/database/migrations/0001_01_01_000000_create_users_table.php b/app/application/database/migrations/0001_01_01_000000_create_users_table.php similarity index 100% rename from app/src/database/migrations/0001_01_01_000000_create_users_table.php rename to app/application/database/migrations/0001_01_01_000000_create_users_table.php diff --git a/app/src/database/migrations/0001_01_01_000001_create_cache_table.php b/app/application/database/migrations/0001_01_01_000001_create_cache_table.php similarity index 100% rename from app/src/database/migrations/0001_01_01_000001_create_cache_table.php rename to app/application/database/migrations/0001_01_01_000001_create_cache_table.php diff --git a/app/src/database/migrations/0001_01_01_000002_create_jobs_table.php b/app/application/database/migrations/0001_01_01_000002_create_jobs_table.php similarity index 100% rename from app/src/database/migrations/0001_01_01_000002_create_jobs_table.php rename to app/application/database/migrations/0001_01_01_000002_create_jobs_table.php diff --git a/app/src/database/migrations/2024_04_01_184305_roles.php b/app/application/database/migrations/2024_04_01_184305_roles.php similarity index 100% rename from app/src/database/migrations/2024_04_01_184305_roles.php rename to app/application/database/migrations/2024_04_01_184305_roles.php diff --git a/app/src/database/migrations/2024_04_03_062346_create_projects.php b/app/application/database/migrations/2024_04_03_062346_create_projects.php similarity index 100% rename from app/src/database/migrations/2024_04_03_062346_create_projects.php rename to app/application/database/migrations/2024_04_03_062346_create_projects.php diff --git a/app/src/database/seeders/DatabaseSeeder.php b/app/application/database/seeders/DatabaseSeeder.php similarity index 100% rename from app/src/database/seeders/DatabaseSeeder.php rename to app/application/database/seeders/DatabaseSeeder.php diff --git a/app/src/lang/en.json b/app/application/lang/en.json similarity index 100% rename from app/src/lang/en.json rename to app/application/lang/en.json diff --git a/app/src/lang/en/actions.php b/app/application/lang/en/actions.php similarity index 100% rename from app/src/lang/en/actions.php rename to app/application/lang/en/actions.php diff --git a/app/src/lang/en/admin-sections.php b/app/application/lang/en/admin-sections.php similarity index 100% rename from app/src/lang/en/admin-sections.php rename to app/application/lang/en/admin-sections.php diff --git a/app/src/lang/en/auth.php b/app/application/lang/en/auth.php similarity index 100% rename from app/src/lang/en/auth.php rename to app/application/lang/en/auth.php diff --git a/app/src/lang/en/http-statuses.php b/app/application/lang/en/http-statuses.php similarity index 100% rename from app/src/lang/en/http-statuses.php rename to app/application/lang/en/http-statuses.php diff --git a/app/src/lang/en/pagination.php b/app/application/lang/en/pagination.php similarity index 100% rename from app/src/lang/en/pagination.php rename to app/application/lang/en/pagination.php diff --git a/app/src/lang/en/passwords.php b/app/application/lang/en/passwords.php similarity index 100% rename from app/src/lang/en/passwords.php rename to app/application/lang/en/passwords.php diff --git a/app/src/lang/en/permissions.php b/app/application/lang/en/permissions.php similarity index 100% rename from app/src/lang/en/permissions.php rename to app/application/lang/en/permissions.php diff --git a/app/src/lang/en/storage.php b/app/application/lang/en/storage.php similarity index 100% rename from app/src/lang/en/storage.php rename to app/application/lang/en/storage.php diff --git a/app/src/lang/en/validation.php b/app/application/lang/en/validation.php similarity index 100% rename from app/src/lang/en/validation.php rename to app/application/lang/en/validation.php diff --git a/app/src/lang/ru.json b/app/application/lang/ru.json similarity index 100% rename from app/src/lang/ru.json rename to app/application/lang/ru.json diff --git a/app/src/lang/ru/actions.php b/app/application/lang/ru/actions.php similarity index 100% rename from app/src/lang/ru/actions.php rename to app/application/lang/ru/actions.php diff --git a/app/src/lang/ru/admin-sections.php b/app/application/lang/ru/admin-sections.php similarity index 100% rename from app/src/lang/ru/admin-sections.php rename to app/application/lang/ru/admin-sections.php diff --git a/app/src/lang/ru/auth.php b/app/application/lang/ru/auth.php similarity index 100% rename from app/src/lang/ru/auth.php rename to app/application/lang/ru/auth.php diff --git a/app/src/lang/ru/http-statuses.php b/app/application/lang/ru/http-statuses.php similarity index 100% rename from app/src/lang/ru/http-statuses.php rename to app/application/lang/ru/http-statuses.php diff --git a/app/src/lang/ru/pagination.php b/app/application/lang/ru/pagination.php similarity index 100% rename from app/src/lang/ru/pagination.php rename to app/application/lang/ru/pagination.php diff --git a/app/src/lang/ru/passwords.php b/app/application/lang/ru/passwords.php similarity index 100% rename from app/src/lang/ru/passwords.php rename to app/application/lang/ru/passwords.php diff --git a/app/src/lang/ru/permissions.php b/app/application/lang/ru/permissions.php similarity index 100% rename from app/src/lang/ru/permissions.php rename to app/application/lang/ru/permissions.php diff --git a/app/src/lang/ru/storage.php b/app/application/lang/ru/storage.php similarity index 100% rename from app/src/lang/ru/storage.php rename to app/application/lang/ru/storage.php diff --git a/app/src/lang/ru/validation.php b/app/application/lang/ru/validation.php similarity index 100% rename from app/src/lang/ru/validation.php rename to app/application/lang/ru/validation.php diff --git a/app/src/package-lock.json b/app/application/package-lock.json similarity index 100% rename from app/src/package-lock.json rename to app/application/package-lock.json diff --git a/app/src/package.json b/app/application/package.json similarity index 100% rename from app/src/package.json rename to app/application/package.json diff --git a/app/src/phpunit.xml b/app/application/phpunit.xml similarity index 100% rename from app/src/phpunit.xml rename to app/application/phpunit.xml diff --git a/app/src/public/.htaccess b/app/application/public/.htaccess similarity index 100% rename from app/src/public/.htaccess rename to app/application/public/.htaccess diff --git a/app/src/public/favicon.ico b/app/application/public/favicon.ico similarity index 100% rename from app/src/public/favicon.ico rename to app/application/public/favicon.ico diff --git a/app/src/public/index.php b/app/application/public/index.php similarity index 100% rename from app/src/public/index.php rename to app/application/public/index.php diff --git a/app/src/public/robots.txt b/app/application/public/robots.txt similarity index 100% rename from app/src/public/robots.txt rename to app/application/public/robots.txt diff --git a/app/src/resources/views/admin/_scripts/_click-confirm.blade.php b/app/application/resources/views/admin/_scripts/_click-confirm.blade.php similarity index 100% rename from app/src/resources/views/admin/_scripts/_click-confirm.blade.php rename to app/application/resources/views/admin/_scripts/_click-confirm.blade.php diff --git a/app/src/resources/views/admin/dashboard/index.blade.php b/app/application/resources/views/admin/dashboard/index.blade.php similarity index 100% rename from app/src/resources/views/admin/dashboard/index.blade.php rename to app/application/resources/views/admin/dashboard/index.blade.php diff --git a/app/src/resources/views/admin/layout/_navigation.blade.php b/app/application/resources/views/admin/layout/_navigation.blade.php similarity index 100% rename from app/src/resources/views/admin/layout/_navigation.blade.php rename to app/application/resources/views/admin/layout/_navigation.blade.php diff --git a/app/src/resources/views/admin/projects/_from.blade.php b/app/application/resources/views/admin/projects/_from.blade.php similarity index 100% rename from app/src/resources/views/admin/projects/_from.blade.php rename to app/application/resources/views/admin/projects/_from.blade.php diff --git a/app/src/resources/views/admin/projects/_top.blade.php b/app/application/resources/views/admin/projects/_top.blade.php similarity index 100% rename from app/src/resources/views/admin/projects/_top.blade.php rename to app/application/resources/views/admin/projects/_top.blade.php diff --git a/app/src/resources/views/admin/projects/create.blade.php b/app/application/resources/views/admin/projects/create.blade.php similarity index 100% rename from app/src/resources/views/admin/projects/create.blade.php rename to app/application/resources/views/admin/projects/create.blade.php diff --git a/app/src/resources/views/admin/projects/edit.blade.php b/app/application/resources/views/admin/projects/edit.blade.php similarity index 100% rename from app/src/resources/views/admin/projects/edit.blade.php rename to app/application/resources/views/admin/projects/edit.blade.php diff --git a/app/src/resources/views/admin/projects/index.blade.php b/app/application/resources/views/admin/projects/index.blade.php similarity index 100% rename from app/src/resources/views/admin/projects/index.blade.php rename to app/application/resources/views/admin/projects/index.blade.php diff --git a/app/src/resources/views/admin/roles/_from.blade.php b/app/application/resources/views/admin/roles/_from.blade.php similarity index 100% rename from app/src/resources/views/admin/roles/_from.blade.php rename to app/application/resources/views/admin/roles/_from.blade.php diff --git a/app/src/resources/views/admin/roles/_top.blade.php b/app/application/resources/views/admin/roles/_top.blade.php similarity index 100% rename from app/src/resources/views/admin/roles/_top.blade.php rename to app/application/resources/views/admin/roles/_top.blade.php diff --git a/app/src/resources/views/admin/roles/create.blade.php b/app/application/resources/views/admin/roles/create.blade.php similarity index 100% rename from app/src/resources/views/admin/roles/create.blade.php rename to app/application/resources/views/admin/roles/create.blade.php diff --git a/app/src/resources/views/admin/roles/edit.blade.php b/app/application/resources/views/admin/roles/edit.blade.php similarity index 100% rename from app/src/resources/views/admin/roles/edit.blade.php rename to app/application/resources/views/admin/roles/edit.blade.php diff --git a/app/src/resources/views/admin/roles/index.blade.php b/app/application/resources/views/admin/roles/index.blade.php similarity index 100% rename from app/src/resources/views/admin/roles/index.blade.php rename to app/application/resources/views/admin/roles/index.blade.php diff --git a/app/src/resources/views/admin/users/_from.blade.php b/app/application/resources/views/admin/users/_from.blade.php similarity index 100% rename from app/src/resources/views/admin/users/_from.blade.php rename to app/application/resources/views/admin/users/_from.blade.php diff --git a/app/src/resources/views/admin/users/_top.blade.php b/app/application/resources/views/admin/users/_top.blade.php similarity index 100% rename from app/src/resources/views/admin/users/_top.blade.php rename to app/application/resources/views/admin/users/_top.blade.php diff --git a/app/src/resources/views/admin/users/create.blade.php b/app/application/resources/views/admin/users/create.blade.php similarity index 100% rename from app/src/resources/views/admin/users/create.blade.php rename to app/application/resources/views/admin/users/create.blade.php diff --git a/app/src/resources/views/admin/users/edit.blade.php b/app/application/resources/views/admin/users/edit.blade.php similarity index 100% rename from app/src/resources/views/admin/users/edit.blade.php rename to app/application/resources/views/admin/users/edit.blade.php diff --git a/app/src/resources/views/admin/users/index.blade.php b/app/application/resources/views/admin/users/index.blade.php similarity index 100% rename from app/src/resources/views/admin/users/index.blade.php rename to app/application/resources/views/admin/users/index.blade.php diff --git a/app/src/resources/views/components/volt/forms/checkbox.blade.php b/app/application/resources/views/components/volt/forms/checkbox.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/checkbox.blade.php rename to app/application/resources/views/components/volt/forms/checkbox.blade.php diff --git a/app/src/resources/views/components/volt/forms/input-type-hidden.blade.php b/app/application/resources/views/components/volt/forms/input-type-hidden.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/input-type-hidden.blade.php rename to app/application/resources/views/components/volt/forms/input-type-hidden.blade.php diff --git a/app/src/resources/views/components/volt/forms/input.blade.php b/app/application/resources/views/components/volt/forms/input.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/input.blade.php rename to app/application/resources/views/components/volt/forms/input.blade.php diff --git a/app/src/resources/views/components/volt/forms/languages.blade.php b/app/application/resources/views/components/volt/forms/languages.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/languages.blade.php rename to app/application/resources/views/components/volt/forms/languages.blade.php diff --git a/app/src/resources/views/components/volt/forms/languages/input.blade.php b/app/application/resources/views/components/volt/forms/languages/input.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/languages/input.blade.php rename to app/application/resources/views/components/volt/forms/languages/input.blade.php diff --git a/app/src/resources/views/components/volt/forms/languages/language.blade.php b/app/application/resources/views/components/volt/forms/languages/language.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/languages/language.blade.php rename to app/application/resources/views/components/volt/forms/languages/language.blade.php diff --git a/app/src/resources/views/components/volt/forms/languages/radio.blade.php b/app/application/resources/views/components/volt/forms/languages/radio.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/languages/radio.blade.php rename to app/application/resources/views/components/volt/forms/languages/radio.blade.php diff --git a/app/src/resources/views/components/volt/forms/multi_checkbox.blade.php b/app/application/resources/views/components/volt/forms/multi_checkbox.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/multi_checkbox.blade.php rename to app/application/resources/views/components/volt/forms/multi_checkbox.blade.php diff --git a/app/src/resources/views/components/volt/forms/permissions_for_role.blade.php b/app/application/resources/views/components/volt/forms/permissions_for_role.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/permissions_for_role.blade.php rename to app/application/resources/views/components/volt/forms/permissions_for_role.blade.php diff --git a/app/src/resources/views/components/volt/forms/select.blade.php b/app/application/resources/views/components/volt/forms/select.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/select.blade.php rename to app/application/resources/views/components/volt/forms/select.blade.php diff --git a/app/src/resources/views/components/volt/forms/upload/image.blade.php b/app/application/resources/views/components/volt/forms/upload/image.blade.php similarity index 100% rename from app/src/resources/views/components/volt/forms/upload/image.blade.php rename to app/application/resources/views/components/volt/forms/upload/image.blade.php diff --git a/app/src/resources/views/layout/auth.blade.php b/app/application/resources/views/layout/auth.blade.php similarity index 100% rename from app/src/resources/views/layout/auth.blade.php rename to app/application/resources/views/layout/auth.blade.php diff --git a/app/src/resources/views/layout/private.blade.php b/app/application/resources/views/layout/private.blade.php similarity index 100% rename from app/src/resources/views/layout/private.blade.php rename to app/application/resources/views/layout/private.blade.php diff --git a/app/src/resources/views/layout/private/_errors.blade.php b/app/application/resources/views/layout/private/_errors.blade.php similarity index 100% rename from app/src/resources/views/layout/private/_errors.blade.php rename to app/application/resources/views/layout/private/_errors.blade.php diff --git a/app/src/resources/views/layout/private/_success.blade.php b/app/application/resources/views/layout/private/_success.blade.php similarity index 100% rename from app/src/resources/views/layout/private/_success.blade.php rename to app/application/resources/views/layout/private/_success.blade.php diff --git a/app/src/resources/views/login.blade.php b/app/application/resources/views/login.blade.php similarity index 100% rename from app/src/resources/views/login.blade.php rename to app/application/resources/views/login.blade.php diff --git a/app/src/resources/views/private/layout/_navigation.blade.php b/app/application/resources/views/private/layout/_navigation.blade.php similarity index 100% rename from app/src/resources/views/private/layout/_navigation.blade.php rename to app/application/resources/views/private/layout/_navigation.blade.php diff --git a/app/src/resources/views/private/profile/profile.blade.php b/app/application/resources/views/private/profile/profile.blade.php similarity index 100% rename from app/src/resources/views/private/profile/profile.blade.php rename to app/application/resources/views/private/profile/profile.blade.php diff --git a/app/src/resources/views/private/profile/settings.blade.php b/app/application/resources/views/private/profile/settings.blade.php similarity index 100% rename from app/src/resources/views/private/profile/settings.blade.php rename to app/application/resources/views/private/profile/settings.blade.php diff --git a/app/src/resources/volt/LICENSE.md b/app/application/resources/volt/LICENSE.md similarity index 100% rename from app/src/resources/volt/LICENSE.md rename to app/application/resources/volt/LICENSE.md diff --git a/app/src/resources/volt/images/illustrations/signin.svg b/app/application/resources/volt/images/illustrations/signin.svg similarity index 100% rename from app/src/resources/volt/images/illustrations/signin.svg rename to app/application/resources/volt/images/illustrations/signin.svg diff --git a/app/src/resources/volt/js/app.js b/app/application/resources/volt/js/app.js similarity index 100% rename from app/src/resources/volt/js/app.js rename to app/application/resources/volt/js/app.js diff --git a/app/src/resources/volt/js/bootstrap.js b/app/application/resources/volt/js/bootstrap.js similarity index 100% rename from app/src/resources/volt/js/bootstrap.js rename to app/application/resources/volt/js/bootstrap.js diff --git a/app/src/resources/volt/js/image.js b/app/application/resources/volt/js/image.js similarity index 100% rename from app/src/resources/volt/js/image.js rename to app/application/resources/volt/js/image.js diff --git a/app/src/resources/volt/js/volt.js b/app/application/resources/volt/js/volt.js similarity index 100% rename from app/src/resources/volt/js/volt.js rename to app/application/resources/volt/js/volt.js diff --git a/app/src/resources/volt/scss/_variables.scss b/app/application/resources/volt/scss/_variables.scss similarity index 100% rename from app/src/resources/volt/scss/_variables.scss rename to app/application/resources/volt/scss/_variables.scss diff --git a/app/src/resources/volt/scss/app.scss b/app/application/resources/volt/scss/app.scss similarity index 100% rename from app/src/resources/volt/scss/app.scss rename to app/application/resources/volt/scss/app.scss diff --git a/app/src/resources/volt/scss/volt/_components.scss b/app/application/resources/volt/scss/volt/_components.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_components.scss rename to app/application/resources/volt/scss/volt/_components.scss diff --git a/app/src/resources/volt/scss/volt/_forms.scss b/app/application/resources/volt/scss/volt/_forms.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_forms.scss rename to app/application/resources/volt/scss/volt/_forms.scss diff --git a/app/src/resources/volt/scss/volt/_functions.scss b/app/application/resources/volt/scss/volt/_functions.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_functions.scss rename to app/application/resources/volt/scss/volt/_functions.scss diff --git a/app/src/resources/volt/scss/volt/_layout.scss b/app/application/resources/volt/scss/volt/_layout.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_layout.scss rename to app/application/resources/volt/scss/volt/_layout.scss diff --git a/app/src/resources/volt/scss/volt/_mixins.scss b/app/application/resources/volt/scss/volt/_mixins.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_mixins.scss rename to app/application/resources/volt/scss/volt/_mixins.scss diff --git a/app/src/resources/volt/scss/volt/_utilities.scss b/app/application/resources/volt/scss/volt/_utilities.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_utilities.scss rename to app/application/resources/volt/scss/volt/_utilities.scss diff --git a/app/src/resources/volt/scss/volt/_variables.scss b/app/application/resources/volt/scss/volt/_variables.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_variables.scss rename to app/application/resources/volt/scss/volt/_variables.scss diff --git a/app/src/resources/volt/scss/volt/_vendor.scss b/app/application/resources/volt/scss/volt/_vendor.scss similarity index 100% rename from app/src/resources/volt/scss/volt/_vendor.scss rename to app/application/resources/volt/scss/volt/_vendor.scss diff --git a/app/src/resources/volt/scss/volt/components/_accordions.scss b/app/application/resources/volt/scss/volt/components/_accordions.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_accordions.scss rename to app/application/resources/volt/scss/volt/components/_accordions.scss diff --git a/app/src/resources/volt/scss/volt/components/_alerts.scss b/app/application/resources/volt/scss/volt/components/_alerts.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_alerts.scss rename to app/application/resources/volt/scss/volt/components/_alerts.scss diff --git a/app/src/resources/volt/scss/volt/components/_animations.scss b/app/application/resources/volt/scss/volt/components/_animations.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_animations.scss rename to app/application/resources/volt/scss/volt/components/_animations.scss diff --git a/app/src/resources/volt/scss/volt/components/_avatars.scss b/app/application/resources/volt/scss/volt/components/_avatars.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_avatars.scss rename to app/application/resources/volt/scss/volt/components/_avatars.scss diff --git a/app/src/resources/volt/scss/volt/components/_badge.scss b/app/application/resources/volt/scss/volt/components/_badge.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_badge.scss rename to app/application/resources/volt/scss/volt/components/_badge.scss diff --git a/app/src/resources/volt/scss/volt/components/_body.scss b/app/application/resources/volt/scss/volt/components/_body.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_body.scss rename to app/application/resources/volt/scss/volt/components/_body.scss diff --git a/app/src/resources/volt/scss/volt/components/_breadcrumb.scss b/app/application/resources/volt/scss/volt/components/_breadcrumb.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_breadcrumb.scss rename to app/application/resources/volt/scss/volt/components/_breadcrumb.scss diff --git a/app/src/resources/volt/scss/volt/components/_buttons.scss b/app/application/resources/volt/scss/volt/components/_buttons.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_buttons.scss rename to app/application/resources/volt/scss/volt/components/_buttons.scss diff --git a/app/src/resources/volt/scss/volt/components/_card.scss b/app/application/resources/volt/scss/volt/components/_card.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_card.scss rename to app/application/resources/volt/scss/volt/components/_card.scss diff --git a/app/src/resources/volt/scss/volt/components/_carousel.scss b/app/application/resources/volt/scss/volt/components/_carousel.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_carousel.scss rename to app/application/resources/volt/scss/volt/components/_carousel.scss diff --git a/app/src/resources/volt/scss/volt/components/_charts.scss b/app/application/resources/volt/scss/volt/components/_charts.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_charts.scss rename to app/application/resources/volt/scss/volt/components/_charts.scss diff --git a/app/src/resources/volt/scss/volt/components/_close.scss b/app/application/resources/volt/scss/volt/components/_close.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_close.scss rename to app/application/resources/volt/scss/volt/components/_close.scss diff --git a/app/src/resources/volt/scss/volt/components/_custom-forms.scss b/app/application/resources/volt/scss/volt/components/_custom-forms.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_custom-forms.scss rename to app/application/resources/volt/scss/volt/components/_custom-forms.scss diff --git a/app/src/resources/volt/scss/volt/components/_datepicker.scss b/app/application/resources/volt/scss/volt/components/_datepicker.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_datepicker.scss rename to app/application/resources/volt/scss/volt/components/_datepicker.scss diff --git a/app/src/resources/volt/scss/volt/components/_dropdown.scss b/app/application/resources/volt/scss/volt/components/_dropdown.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_dropdown.scss rename to app/application/resources/volt/scss/volt/components/_dropdown.scss diff --git a/app/src/resources/volt/scss/volt/components/_icons.scss b/app/application/resources/volt/scss/volt/components/_icons.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_icons.scss rename to app/application/resources/volt/scss/volt/components/_icons.scss diff --git a/app/src/resources/volt/scss/volt/components/_images.scss b/app/application/resources/volt/scss/volt/components/_images.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_images.scss rename to app/application/resources/volt/scss/volt/components/_images.scss diff --git a/app/src/resources/volt/scss/volt/components/_list-group.scss b/app/application/resources/volt/scss/volt/components/_list-group.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_list-group.scss rename to app/application/resources/volt/scss/volt/components/_list-group.scss diff --git a/app/src/resources/volt/scss/volt/components/_modal.scss b/app/application/resources/volt/scss/volt/components/_modal.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_modal.scss rename to app/application/resources/volt/scss/volt/components/_modal.scss diff --git a/app/src/resources/volt/scss/volt/components/_nav.scss b/app/application/resources/volt/scss/volt/components/_nav.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_nav.scss rename to app/application/resources/volt/scss/volt/components/_nav.scss diff --git a/app/src/resources/volt/scss/volt/components/_pagination.scss b/app/application/resources/volt/scss/volt/components/_pagination.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_pagination.scss rename to app/application/resources/volt/scss/volt/components/_pagination.scss diff --git a/app/src/resources/volt/scss/volt/components/_popover.scss b/app/application/resources/volt/scss/volt/components/_popover.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_popover.scss rename to app/application/resources/volt/scss/volt/components/_popover.scss diff --git a/app/src/resources/volt/scss/volt/components/_progress.scss b/app/application/resources/volt/scss/volt/components/_progress.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_progress.scss rename to app/application/resources/volt/scss/volt/components/_progress.scss diff --git a/app/src/resources/volt/scss/volt/components/_scrollbar.scss b/app/application/resources/volt/scss/volt/components/_scrollbar.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_scrollbar.scss rename to app/application/resources/volt/scss/volt/components/_scrollbar.scss diff --git a/app/src/resources/volt/scss/volt/components/_shapes.scss b/app/application/resources/volt/scss/volt/components/_shapes.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_shapes.scss rename to app/application/resources/volt/scss/volt/components/_shapes.scss diff --git a/app/src/resources/volt/scss/volt/components/_steps.scss b/app/application/resources/volt/scss/volt/components/_steps.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_steps.scss rename to app/application/resources/volt/scss/volt/components/_steps.scss diff --git a/app/src/resources/volt/scss/volt/components/_tables.scss b/app/application/resources/volt/scss/volt/components/_tables.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_tables.scss rename to app/application/resources/volt/scss/volt/components/_tables.scss diff --git a/app/src/resources/volt/scss/volt/components/_timelines.scss b/app/application/resources/volt/scss/volt/components/_timelines.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_timelines.scss rename to app/application/resources/volt/scss/volt/components/_timelines.scss diff --git a/app/src/resources/volt/scss/volt/components/_tooltip.scss b/app/application/resources/volt/scss/volt/components/_tooltip.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_tooltip.scss rename to app/application/resources/volt/scss/volt/components/_tooltip.scss diff --git a/app/src/resources/volt/scss/volt/components/_type.scss b/app/application/resources/volt/scss/volt/components/_type.scss similarity index 100% rename from app/src/resources/volt/scss/volt/components/_type.scss rename to app/application/resources/volt/scss/volt/components/_type.scss diff --git a/app/src/resources/volt/scss/volt/forms/_form-check.scss b/app/application/resources/volt/scss/volt/forms/_form-check.scss similarity index 100% rename from app/src/resources/volt/scss/volt/forms/_form-check.scss rename to app/application/resources/volt/scss/volt/forms/_form-check.scss diff --git a/app/src/resources/volt/scss/volt/forms/_form-control.scss b/app/application/resources/volt/scss/volt/forms/_form-control.scss similarity index 100% rename from app/src/resources/volt/scss/volt/forms/_form-control.scss rename to app/application/resources/volt/scss/volt/forms/_form-control.scss diff --git a/app/src/resources/volt/scss/volt/forms/_form-select.scss b/app/application/resources/volt/scss/volt/forms/_form-select.scss similarity index 100% rename from app/src/resources/volt/scss/volt/forms/_form-select.scss rename to app/application/resources/volt/scss/volt/forms/_form-select.scss diff --git a/app/src/resources/volt/scss/volt/forms/_input-group.scss b/app/application/resources/volt/scss/volt/forms/_input-group.scss similarity index 100% rename from app/src/resources/volt/scss/volt/forms/_input-group.scss rename to app/application/resources/volt/scss/volt/forms/_input-group.scss diff --git a/app/src/resources/volt/scss/volt/layout/_footer.scss b/app/application/resources/volt/scss/volt/layout/_footer.scss similarity index 100% rename from app/src/resources/volt/scss/volt/layout/_footer.scss rename to app/application/resources/volt/scss/volt/layout/_footer.scss diff --git a/app/src/resources/volt/scss/volt/layout/_navbar.scss b/app/application/resources/volt/scss/volt/layout/_navbar.scss similarity index 100% rename from app/src/resources/volt/scss/volt/layout/_navbar.scss rename to app/application/resources/volt/scss/volt/layout/_navbar.scss diff --git a/app/src/resources/volt/scss/volt/layout/_section.scss b/app/application/resources/volt/scss/volt/layout/_section.scss similarity index 100% rename from app/src/resources/volt/scss/volt/layout/_section.scss rename to app/application/resources/volt/scss/volt/layout/_section.scss diff --git a/app/src/resources/volt/scss/volt/layout/_sidebar.scss b/app/application/resources/volt/scss/volt/layout/_sidebar.scss similarity index 100% rename from app/src/resources/volt/scss/volt/layout/_sidebar.scss rename to app/application/resources/volt/scss/volt/layout/_sidebar.scss diff --git a/app/src/resources/volt/scss/volt/layout/_sidenav.scss b/app/application/resources/volt/scss/volt/layout/_sidenav.scss similarity index 100% rename from app/src/resources/volt/scss/volt/layout/_sidenav.scss rename to app/application/resources/volt/scss/volt/layout/_sidenav.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_animations.scss b/app/application/resources/volt/scss/volt/mixins/_animations.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_animations.scss rename to app/application/resources/volt/scss/volt/mixins/_animations.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_background-variant.scss b/app/application/resources/volt/scss/volt/mixins/_background-variant.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_background-variant.scss rename to app/application/resources/volt/scss/volt/mixins/_background-variant.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_icon.scss b/app/application/resources/volt/scss/volt/mixins/_icon.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_icon.scss rename to app/application/resources/volt/scss/volt/mixins/_icon.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_modals.scss b/app/application/resources/volt/scss/volt/mixins/_modals.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_modals.scss rename to app/application/resources/volt/scss/volt/mixins/_modals.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_popover.scss b/app/application/resources/volt/scss/volt/mixins/_popover.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_popover.scss rename to app/application/resources/volt/scss/volt/mixins/_popover.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_transform.scss b/app/application/resources/volt/scss/volt/mixins/_transform.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_transform.scss rename to app/application/resources/volt/scss/volt/mixins/_transform.scss diff --git a/app/src/resources/volt/scss/volt/mixins/_utilities.scss b/app/application/resources/volt/scss/volt/mixins/_utilities.scss similarity index 100% rename from app/src/resources/volt/scss/volt/mixins/_utilities.scss rename to app/application/resources/volt/scss/volt/mixins/_utilities.scss diff --git a/app/src/routes/console.php b/app/application/routes/console.php similarity index 100% rename from app/src/routes/console.php rename to app/application/routes/console.php diff --git a/app/src/routes/web.php b/app/application/routes/web.php similarity index 100% rename from app/src/routes/web.php rename to app/application/routes/web.php diff --git a/app/src/storage/app/.gitignore b/app/application/storage/app/.gitignore similarity index 100% rename from app/src/storage/app/.gitignore rename to app/application/storage/app/.gitignore diff --git a/app/src/storage/app/public/.gitignore b/app/application/storage/app/public/.gitignore similarity index 100% rename from app/src/storage/app/public/.gitignore rename to app/application/storage/app/public/.gitignore diff --git a/app/src/storage/framework/.gitignore b/app/application/storage/framework/.gitignore similarity index 100% rename from app/src/storage/framework/.gitignore rename to app/application/storage/framework/.gitignore diff --git a/app/src/storage/framework/cache/.gitignore b/app/application/storage/framework/cache/.gitignore similarity index 100% rename from app/src/storage/framework/cache/.gitignore rename to app/application/storage/framework/cache/.gitignore diff --git a/app/src/storage/framework/cache/data/.gitignore b/app/application/storage/framework/cache/data/.gitignore similarity index 100% rename from app/src/storage/framework/cache/data/.gitignore rename to app/application/storage/framework/cache/data/.gitignore diff --git a/app/src/storage/framework/sessions/.gitignore b/app/application/storage/framework/sessions/.gitignore similarity index 100% rename from app/src/storage/framework/sessions/.gitignore rename to app/application/storage/framework/sessions/.gitignore diff --git a/app/src/storage/framework/testing/.gitignore b/app/application/storage/framework/testing/.gitignore similarity index 100% rename from app/src/storage/framework/testing/.gitignore rename to app/application/storage/framework/testing/.gitignore diff --git a/app/src/storage/framework/views/.gitignore b/app/application/storage/framework/views/.gitignore similarity index 100% rename from app/src/storage/framework/views/.gitignore rename to app/application/storage/framework/views/.gitignore diff --git a/app/src/storage/logs/.gitignore b/app/application/storage/logs/.gitignore similarity index 100% rename from app/src/storage/logs/.gitignore rename to app/application/storage/logs/.gitignore diff --git a/app/src/tests/Feature/ExampleTest.php b/app/application/tests/Feature/ExampleTest.php similarity index 100% rename from app/src/tests/Feature/ExampleTest.php rename to app/application/tests/Feature/ExampleTest.php diff --git a/app/src/tests/TestCase.php b/app/application/tests/TestCase.php similarity index 100% rename from app/src/tests/TestCase.php rename to app/application/tests/TestCase.php diff --git a/app/src/tests/Unit/ExampleTest.php b/app/application/tests/Unit/ExampleTest.php similarity index 100% rename from app/src/tests/Unit/ExampleTest.php rename to app/application/tests/Unit/ExampleTest.php diff --git a/app/src/vite.config.js b/app/application/vite.config.js similarity index 100% rename from app/src/vite.config.js rename to app/application/vite.config.js diff --git a/app/docker/Dockerfile b/app/docker/Dockerfile index 7afaf50..8bd5856 100644 --- a/app/docker/Dockerfile +++ b/app/docker/Dockerfile @@ -51,7 +51,7 @@ RUN apk --no-cache add pcre2 libbz2 libpng libwebp libjpeg-turbo icu-libs freety FROM BUILD as APP_BUILD_FOR_PRODUCTION WORKDIR /home/app -COPY src /home/app +COPY application /home/app RUN apk --no-cache add git nodejs npm \ && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ diff --git a/docker-compose.yml b/docker-compose.yml index 82340f4..6045f4d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: ports: - ${DOCKER_APP_PORT}:9000 volumes: - - ./app/src:/var/www/html + - ./app/application:/var/www/html app-redis: image: redis:3.0-alpine @@ -54,7 +54,7 @@ services: target: ARTISAN user: "${UID}:${GID}" volumes: - - ./app/src:/var/www/html + - ./app/application:/var/www/html composer: build: @@ -63,7 +63,7 @@ services: target: COMPOSER user: "${UID}:${GID}" volumes: - - ./app/src:/var/www/html + - ./app/application:/var/www/html npm: build: @@ -72,4 +72,4 @@ services: target: NPM user: "${UID}:${GID}" volumes: - - ./app/src:/var/www/html + - ./app/application:/var/www/html From 2769585de0fbe751413ed528956cfc61d163dc6c Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 14 Apr 2024 15:27:51 +0500 Subject: [PATCH 06/20] Added the ability to add project information. --- app/application/.env.example | 2 + .../Admin/Project/About/StoreUpdate.php | 23 ++ app/application/app/Enums/Permission.php | 6 + .../Admin/Projects/AboutController.php | 54 +++++ .../Controllers/Admin/ProjectsController.php | 11 + .../Projects/About/StoreUpdateRequest.php | 29 +++ app/application/app/Models/Project.php | 5 + app/application/app/Models/ProjectContent.php | 19 ++ .../app/Policies/ProjectContentPolicy.php | 29 +++ .../Repositories/ProjectContentRepository.php | 15 ++ .../ProjectLanguageRepository.php | 15 ++ .../Services/Admin/Project/AboutService.php | 132 ++++++++++++ .../app/Services/Admin/ProjectService.php | 17 ++ .../ProjectContentCommandHandler.php | 27 +++ .../View/Components/Volt/Forms/Textarea.php | 43 ++++ .../Components/Volt/Forms/TextareaWysiwyg.php | 46 ++++ app/application/config/tinymce.php | 4 + app/application/lang/en.json | 3 +- app/application/lang/en/admin-sections.php | 5 + app/application/lang/en/permissions.php | 1 + app/application/lang/ru.json | 3 +- app/application/lang/ru/admin-sections.php | 5 + app/application/lang/ru/permissions.php | 1 + app/application/package-lock.json | 200 +++++++++++++++++- app/application/package.json | 4 +- app/application/resources/tinymce/langs/ru.js | 1 + .../admin/projects/about/_from.blade.php | 7 + .../views/admin/projects/about/edit.blade.php | 17 ++ .../admin/projects/about/languages.blade.php | 42 ++++ .../views/admin/projects/index.blade.php | 27 ++- .../views/admin/projects/show.blade.php | 32 +++ .../volt/forms/textarea-wysiwyg.blade.php | 24 +++ .../components/volt/forms/textarea.blade.php | 7 + app/application/routes/web.php | 9 +- app/application/vite.config.js | 11 +- 35 files changed, 862 insertions(+), 14 deletions(-) create mode 100644 app/application/app/Dto/Service/Admin/Project/About/StoreUpdate.php create mode 100644 app/application/app/Http/Controllers/Admin/Projects/AboutController.php create mode 100644 app/application/app/Http/Requests/Admin/Projects/About/StoreUpdateRequest.php create mode 100644 app/application/app/Models/ProjectContent.php create mode 100644 app/application/app/Policies/ProjectContentPolicy.php create mode 100644 app/application/app/Repositories/ProjectContentRepository.php create mode 100644 app/application/app/Repositories/ProjectLanguageRepository.php create mode 100644 app/application/app/Services/Admin/Project/AboutService.php create mode 100644 app/application/app/Services/ProjectContent/ProjectContentCommandHandler.php create mode 100644 app/application/app/View/Components/Volt/Forms/Textarea.php create mode 100644 app/application/app/View/Components/Volt/Forms/TextareaWysiwyg.php create mode 100644 app/application/config/tinymce.php create mode 100644 app/application/resources/tinymce/langs/ru.js create mode 100644 app/application/resources/views/admin/projects/about/_from.blade.php create mode 100644 app/application/resources/views/admin/projects/about/edit.blade.php create mode 100644 app/application/resources/views/admin/projects/about/languages.blade.php create mode 100644 app/application/resources/views/admin/projects/show.blade.php create mode 100644 app/application/resources/views/components/volt/forms/textarea-wysiwyg.blade.php create mode 100644 app/application/resources/views/components/volt/forms/textarea.blade.php diff --git a/app/application/.env.example b/app/application/.env.example index 4c6a973..61089d6 100644 --- a/app/application/.env.example +++ b/app/application/.env.example @@ -22,6 +22,8 @@ APP_MAINTENANCE_STORE=database #LOGIN_MAX_REQUEST=50 #LOGIN_MAX_EMAIL_REQUEST=10 +TINYMCE_LICENSE_KEY="gpl" + BCRYPT_ROUNDS=12 LOG_CHANNEL=stack diff --git a/app/application/app/Dto/Service/Admin/Project/About/StoreUpdate.php b/app/application/app/Dto/Service/Admin/Project/About/StoreUpdate.php new file mode 100644 index 0000000..548fe32 --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/About/StoreUpdate.php @@ -0,0 +1,23 @@ +title; + } + + public function getDescription(): string + { + return $this->description; + } +} diff --git a/app/application/app/Enums/Permission.php b/app/application/app/Enums/Permission.php index ed427e9..c4e7416 100644 --- a/app/application/app/Enums/Permission.php +++ b/app/application/app/Enums/Permission.php @@ -8,6 +8,7 @@ enum Permission: string case Role = 'role'; case User = 'user'; case Project = 'project'; + case ProjectContent = 'project-content'; public function getPermissions(): array { @@ -15,6 +16,11 @@ public function getPermissions(): array self::AdminPanel => [ 'view' => __('permissions.Administrative panel allowed'), ], + self::ProjectContent => [ + 'view' => __('permissions.Allowed to watch'), + 'create' => __('permissions.Allowed to create'), + 'update' => __('permissions.Allowed to edit'), + ], default => $this->getBasePermissions() }; diff --git a/app/application/app/Http/Controllers/Admin/Projects/AboutController.php b/app/application/app/Http/Controllers/Admin/Projects/AboutController.php new file mode 100644 index 0000000..d315844 --- /dev/null +++ b/app/application/app/Http/Controllers/Admin/Projects/AboutController.php @@ -0,0 +1,54 @@ +user(); + $result = $this->aboutService->languages($project, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/about/languages', $result->getData()); + } + + public function edit(int $project, int $language, Request $request): View + { + $user = $request->user(); + $result = $this->aboutService->edit($project, $language, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/about/edit', $result->getData()); + } + + public function update(int $project, int $language, StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->aboutService->storeOrUpdate($project, $language, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.projects.about.edit', [ + 'project' => $project, + 'language' => $language, + ])->withSuccess($result->getMessage()); + } +} diff --git a/app/application/app/Http/Controllers/Admin/ProjectsController.php b/app/application/app/Http/Controllers/Admin/ProjectsController.php index a2253a2..3ab7a46 100644 --- a/app/application/app/Http/Controllers/Admin/ProjectsController.php +++ b/app/application/app/Http/Controllers/Admin/ProjectsController.php @@ -34,6 +34,17 @@ public function index(IndexRequest $request): View return view('admin/projects/index', $result->getData()); } + public function show(int $id, Request $request): View + { + $user = $request->user(); + $result = $this->projectService->show($id, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/show', $result->getData()); + } + public function create(Request $request): View { $user = $request->user(); diff --git a/app/application/app/Http/Requests/Admin/Projects/About/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/About/StoreUpdateRequest.php new file mode 100644 index 0000000..f814182 --- /dev/null +++ b/app/application/app/Http/Requests/Admin/Projects/About/StoreUpdateRequest.php @@ -0,0 +1,29 @@ + ['required', 'string', 'max:255',], + 'description' => ['nullable', 'string',], + ]; + } + + public function getDto(): StoreUpdate + { + return new StoreUpdate( + title: $this->input('title'), + description: $this->input('description'), + ); + } +} diff --git a/app/application/app/Models/Project.php b/app/application/app/Models/Project.php index 2f6db89..6b94acb 100644 --- a/app/application/app/Models/Project.php +++ b/app/application/app/Models/Project.php @@ -47,4 +47,9 @@ public function languages(): HasMany { return $this->hasMany(ProjectLanguage::class); } + + public function contents(): HasMany + { + return $this->hasMany(ProjectContent::class); + } } diff --git a/app/application/app/Models/ProjectContent.php b/app/application/app/Models/ProjectContent.php new file mode 100644 index 0000000..b719f2e --- /dev/null +++ b/app/application/app/Models/ProjectContent.php @@ -0,0 +1,19 @@ +hasPermission('project-content.view'); + } + + public function view(User $user, ProjectContent $projectContent): bool + { + return $user->hasPermission('project-content.view'); + } + + public function create(User $user): bool + { + return $user->hasPermission('project-content.create'); + } + + public function update(User $user, ProjectContent $projectContent): bool + { + return $user->hasPermission('project-content.update'); + } +} diff --git a/app/application/app/Repositories/ProjectContentRepository.php b/app/application/app/Repositories/ProjectContentRepository.php new file mode 100644 index 0000000..0d5fc30 --- /dev/null +++ b/app/application/app/Repositories/ProjectContentRepository.php @@ -0,0 +1,15 @@ +where(['project_id' => $projectId, 'language_id' => $languageId]) + ->first(); + } +} diff --git a/app/application/app/Repositories/ProjectLanguageRepository.php b/app/application/app/Repositories/ProjectLanguageRepository.php new file mode 100644 index 0000000..eec7bb7 --- /dev/null +++ b/app/application/app/Repositories/ProjectLanguageRepository.php @@ -0,0 +1,15 @@ +where(['id' => $languageId, 'project_id' => $projectId]) + ->exists(); + } +} diff --git a/app/application/app/Services/Admin/Project/AboutService.php b/app/application/app/Services/Admin/Project/AboutService.php new file mode 100644 index 0000000..4026425 --- /dev/null +++ b/app/application/app/Services/Admin/Project/AboutService.php @@ -0,0 +1,132 @@ +projectRepository->getProjectById($projectId); + + if (is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('viewAny', ProjectContent::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'project' => $project, + ]); + } + + public function edit(int $projectId, int $languageId, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($projectId); + $language = $project?->languages()->firstWhere('id', $languageId); + + if (\is_null($project) || \is_null($language)) { + return $this->errNotFound(__('Not Found')); + } + + $content = $project->contents()->firstWhere('language_id', $languageId); + if (\is_null($content)) { + if ($user->cannot('create', ProjectContent::class)) { + return $this->errFobidden(__('Access is denied')); + } + $content = new ProjectContent(); + $content->project_id = $project->id; + $content->language_id = $language->id; + } else if($user->cannot('update', $content)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'project' => $project, + 'language' => $language, + 'content' => $content, + ]); + } + + public function storeOrUpdate(int $projectId, int $languageId, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if (! $this->projectLanguageRepository->isExistsLanguageById($projectId, $languageId)) { + return $this->errNotFound(__('Not Found')); + } + + $content = $this->projectContentRepository->getContentByLanguageId($projectId, $languageId); + if (is_null($content)) { + return $this->store($projectId, $languageId, $data, $user); + } + + return $this->update($content, $data, $user); + } + + private function store(int $projectId, int $languageId, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if ($user->cannot('create', ProjectContent::class)) { + return $this->errFobidden(__('Access is denied')); + } + try { + $aboutProject = DB::transaction(function () use ($data, $projectId, $languageId) { + $dataAboutProject = $this->getDataAboutProject($data); + + return $this->projectContentCommandHandler->handleStore($projectId, $languageId, $dataAboutProject); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($aboutProject, __('Project information has been successfully updated')); + } + + private function update(ProjectContent $content, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if ($user->cannot('update', $content)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + $aboutProject = DB::transaction(function () use ($data, $content) { + $dataAboutProject = $this->getDataAboutProject($data); + + return $this->projectContentCommandHandler->handleUpdate($content, $dataAboutProject); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($aboutProject, __('Project information has been successfully updated')); + } + + private function getDataAboutProject(StoreUpdate $data): array + { + return [ + 'title' => $data->getTitle(), + 'description' => $data->getDescription(), + ]; + } +} diff --git a/app/application/app/Services/Admin/ProjectService.php b/app/application/app/Services/Admin/ProjectService.php index a2f4d28..7b6334c 100644 --- a/app/application/app/Services/Admin/ProjectService.php +++ b/app/application/app/Services/Admin/ProjectService.php @@ -50,6 +50,23 @@ public function index(ProjectBuilderDto $projectBuilderDto, QuerySettingsDto $qu ]); } + public function show(int $id, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($id); + + if (is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('view', $project)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'project' => $project, + ]); + } + public function create(User $user): ServiceResultError | ServiceResultArray { if ($user->cannot('create', Project::class)) { diff --git a/app/application/app/Services/ProjectContent/ProjectContentCommandHandler.php b/app/application/app/Services/ProjectContent/ProjectContentCommandHandler.php new file mode 100644 index 0000000..dc4e711 --- /dev/null +++ b/app/application/app/Services/ProjectContent/ProjectContentCommandHandler.php @@ -0,0 +1,27 @@ +project_id = $projectId; + $content->language_id = $languageId; + + $content->fill($data); + $content->save(); + + return $content; + } + + public function handleUpdate(ProjectContent $content, array $data): ProjectContent + { + $content->update($data); + + return $content; + } +} diff --git a/app/application/app/View/Components/Volt/Forms/Textarea.php b/app/application/app/View/Components/Volt/Forms/Textarea.php new file mode 100644 index 0000000..15d1b90 --- /dev/null +++ b/app/application/app/View/Components/Volt/Forms/Textarea.php @@ -0,0 +1,43 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + /** + * @inheritDoc + */ + public function render(): View + { + return view('components.volt.forms.textarea', [ + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'value' => $this->getValue(), + ]); + } +} diff --git a/app/application/app/View/Components/Volt/Forms/TextareaWysiwyg.php b/app/application/app/View/Components/Volt/Forms/TextareaWysiwyg.php new file mode 100644 index 0000000..79e02dc --- /dev/null +++ b/app/application/app/View/Components/Volt/Forms/TextareaWysiwyg.php @@ -0,0 +1,46 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + /** + * @inheritDoc + */ + public function render(): View + { + $tinymceLicenseKey = config('tinymce.license_key'); + + return view('components.volt.forms.textarea-wysiwyg', [ + 'tinymceLicenseKey' => $tinymceLicenseKey, + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'value' => $this->getValue(), + ]); + } +} diff --git a/app/application/config/tinymce.php b/app/application/config/tinymce.php new file mode 100644 index 0000000..543a20c --- /dev/null +++ b/app/application/config/tinymce.php @@ -0,0 +1,4 @@ + (string) env('TINYMCE_LICENSE_KEY', 'gpl'), +]; diff --git a/app/application/lang/en.json b/app/application/lang/en.json index 431d292..a4fd870 100644 --- a/app/application/lang/en.json +++ b/app/application/lang/en.json @@ -248,5 +248,6 @@ "Add language": "Add language", "There was an error adding a language": "There was an error adding a language", "Select images": "Select images", - "loading": "loading" + "loading": "loading", + "Project information has been successfully updated": "Project information has been successfully updated" } diff --git a/app/application/lang/en/admin-sections.php b/app/application/lang/en/admin-sections.php index 2a252ee..503d7f2 100644 --- a/app/application/lang/en/admin-sections.php +++ b/app/application/lang/en/admin-sections.php @@ -5,4 +5,9 @@ 'Users' => 'Users', 'AdminPanel' => 'Admin Panel', 'Projects' => 'Projects', + 'Project' => 'Project', + 'Sections' => 'Sections', + 'About project' => 'About the project', + 'Languages' => 'Languages', + 'Last update' => 'Last update', ]; diff --git a/app/application/lang/en/permissions.php b/app/application/lang/en/permissions.php index a7ff33b..063e379 100644 --- a/app/application/lang/en/permissions.php +++ b/app/application/lang/en/permissions.php @@ -10,4 +10,5 @@ 'Administrative panel allowed' => 'Administrative panel allowed', 'AdminPanel' => 'Administrative panel allowed', 'Project' => 'Projects', + 'ProjectContent' => 'About the project', ]; diff --git a/app/application/lang/ru.json b/app/application/lang/ru.json index 07de063..0547a0e 100644 --- a/app/application/lang/ru.json +++ b/app/application/lang/ru.json @@ -248,5 +248,6 @@ "Add language": "Добавить язык", "There was an error adding a language": "Произошла ошибка при добавлении языка", "Select images": "Выберите изображения", - "loading": "загрузка" + "loading": "загрузка", + "Project information has been successfully updated": "Информация о проекте успешно обновлена" } diff --git a/app/application/lang/ru/admin-sections.php b/app/application/lang/ru/admin-sections.php index 735c23d..06e553e 100644 --- a/app/application/lang/ru/admin-sections.php +++ b/app/application/lang/ru/admin-sections.php @@ -5,4 +5,9 @@ 'Users' => 'Пользователи', 'AdminPanel' => 'Админка', 'Projects' => 'Проекты', + 'Project' => 'Проект', + 'Sections' => 'Разделы', + 'About project' => 'О проекте', + 'Languages' => 'Языки', + 'Last update' => 'Последнее обновление', ]; diff --git a/app/application/lang/ru/permissions.php b/app/application/lang/ru/permissions.php index 5444134..fac9c56 100644 --- a/app/application/lang/ru/permissions.php +++ b/app/application/lang/ru/permissions.php @@ -11,4 +11,5 @@ 'Administrative panel allowed' => 'Административная панель разрешена', 'AdminPanel' => 'Административная панель разрешена', 'Project' => 'Проекты', + 'ProjectContent' => 'О проекте', ]; diff --git a/app/application/package-lock.json b/app/application/package-lock.json index 0d815f9..85bd7ef 100644 --- a/app/application/package-lock.json +++ b/app/application/package-lock.json @@ -17,6 +17,7 @@ "simplebar": "^5.3.4", "smooth-scroll": "^16.1.3", "sweetalert2": "^11.0.18", + "tinymce": "^7.0.1", "vanillajs-datepicker": "^1.2.0", "waypoints": "^4.0.1" }, @@ -24,7 +25,8 @@ "axios": "^1.6.4", "laravel-vite-plugin": "^1.0", "sass-loader": "^13.3.2", - "vite": "^5.0" + "vite": "^5.0", + "vite-plugin-static-copy": "^1.0.2" } }, "node_modules/@esbuild/aix-ppc64": { @@ -464,6 +466,41 @@ "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==" }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -1308,6 +1345,22 @@ "dev": true, "peer": true }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -1315,6 +1368,15 @@ "dev": true, "peer": true }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -1360,6 +1422,20 @@ "node": ">= 6" } }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -1395,8 +1471,7 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/has-flag": { "version": "4.0.0", @@ -1480,6 +1555,18 @@ "dev": true, "peer": true }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/just-extend": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-5.1.1.tgz", @@ -1536,6 +1623,28 @@ "dev": true, "peer": true }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -1673,6 +1782,26 @@ "node": ">=6" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -1694,6 +1823,16 @@ "node": ">=8.10.0" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rollup": { "version": "4.13.2", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.13.2.tgz", @@ -1728,6 +1867,29 @@ "fsevents": "~2.3.2" } }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -1967,6 +2129,11 @@ } } }, + "node_modules/tinymce": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-7.0.1.tgz", + "integrity": "sha512-0a7DJnhniBx2psRuKcVQ9g4hujN6PAR4fPS0NSF1T1luH1RBDZVVEn2pGND6Ly+AW1lUm/cHOHjsasqBelMhbw==" + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -1985,6 +2152,15 @@ "dev": true, "peer": true }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -2096,6 +2272,24 @@ "picomatch": "^2.3.1" } }, + "node_modules/vite-plugin-static-copy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/vite-plugin-static-copy/-/vite-plugin-static-copy-1.0.2.tgz", + "integrity": "sha512-AfmEF+a/mfjsUsrgjbCkhzUCeIUF4EKQXXt3Ie1cour9MBpy6f6GphbdW2td28oYfOrwCyRzFCksgLkpk58q6Q==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.3", + "fast-glob": "^3.2.11", + "fs-extra": "^11.1.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0" + } + }, "node_modules/watchpack": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.1.tgz", diff --git a/app/application/package.json b/app/application/package.json index 93712ee..7fd2962 100644 --- a/app/application/package.json +++ b/app/application/package.json @@ -18,6 +18,7 @@ "simplebar": "^5.3.4", "smooth-scroll": "^16.1.3", "sweetalert2": "^11.0.18", + "tinymce": "^7.0.1", "vanillajs-datepicker": "^1.2.0", "waypoints": "^4.0.1" }, @@ -25,6 +26,7 @@ "axios": "^1.6.4", "laravel-vite-plugin": "^1.0", "sass-loader": "^13.3.2", - "vite": "^5.0" + "vite": "^5.0", + "vite-plugin-static-copy": "^1.0.2" } } diff --git a/app/application/resources/tinymce/langs/ru.js b/app/application/resources/tinymce/langs/ru.js new file mode 100644 index 0000000..eb669f9 --- /dev/null +++ b/app/application/resources/tinymce/langs/ru.js @@ -0,0 +1 @@ +tinymce.addI18n("ru",{"#":"#","Accessibility":"\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438","Accordion":"","Accordion body...":"","Accordion summary...":"","Action":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435","Activity":"\u0414\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c","Address":"\u0410\u0434\u0440\u0435\u0441","Advanced":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435","Align":"\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c","Align center":"\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443","Align left":"\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e","Align right":"\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e","Alignment":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435","Alignment {0}":"","All":"\u0412\u0441\u0435","Alternative description":"\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Alternative source":"\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a","Alternative source URL":"URL \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430","Anchor":"\u042f\u043a\u043e\u0440\u044c","Anchor...":"\u042f\u043a\u043e\u0440\u044c...","Anchors":"\u042f\u043a\u043e\u0440\u044f","Animals and Nature":"\u0416\u0438\u0432\u043e\u0442\u043d\u044b\u0435 \u0438 \u043f\u0440\u0438\u0440\u043e\u0434\u0430","Arrows":"\u0421\u0442\u0440\u0435\u043b\u043a\u0438","B":"B","Background color":"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430","Background color {0}":"","Black":"\u0427\u0435\u0440\u043d\u044b\u0439","Block":"\u0411\u043b\u043e\u043a","Block {0}":"","Blockquote":"\u0411\u043b\u043e\u043a \u0446\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f","Blocks":"\u0411\u043b\u043e\u043a\u0438","Blue":"\u0421\u0438\u043d\u0438\u0439","Blue component":"\u0421\u0438\u043d\u044f\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430","Body":"\u0422\u0435\u043b\u043e","Bold":"\u0416\u0438\u0440\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442","Border":"\u0413\u0440\u0430\u043d\u0438\u0446\u0430","Border color":"\u0426\u0432\u0435\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u044b","Border style":"\u0421\u0442\u0438\u043b\u044c \u0440\u0430\u043c\u043a\u0438","Border width":"\u0428\u0438\u0440\u0438\u043d\u0430 \u0440\u0430\u043c\u043a\u0438","Bottom":"\u041f\u043e \u043d\u0438\u0437\u0443","Browse files":"","Browse for an image":"\u0412\u044b\u0431\u043e\u0440 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f","Browse links":"","Bullet list":"\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","Caption":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","Cell":"\u042f\u0447\u0435\u0439\u043a\u0430","Cell padding":"\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u044f\u0447\u0435\u0439\u043a\u0438","Cell properties":"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u0447\u0435\u0439\u043a\u0438","Cell spacing":"\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u044f\u0447\u0435\u0439\u043a\u0438","Cell styles":"\u0421\u0442\u0438\u043b\u0438 \u044f\u0447\u0435\u0439\u043a\u0438","Cell type":"\u0422\u0438\u043f \u044f\u0447\u0435\u0439\u043a\u0438","Center":"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443","Characters":"\u0421\u0438\u043c\u0432\u043e\u043b\u044b","Characters (no spaces)":"\u0421\u0438\u043c\u0432\u043e\u043b\u044b (\u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432)","Circle":"\u041a\u0440\u0443\u0436\u043e\u043a","Class":"\u041a\u043b\u0430\u0441\u0441","Clear formatting":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","Close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","Code":"\u041a\u043e\u0434","Code sample...":"\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430...","Code view":"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043a\u043e\u0434\u0430","Color Picker":"\u041f\u0438\u043f\u0435\u0442\u043a\u0430 \u0446\u0432\u0435\u0442\u0430","Color swatch":"\u041e\u0431\u0440\u0430\u0437\u0435\u0446 \u0446\u0432\u0435\u0442\u0430","Cols":"\u0421\u0442\u043e\u043b\u0431\u0446\u044b","Column":"\u0421\u0442\u043e\u043b\u0431\u0435\u0446","Column clipboard actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0431\u0443\u0444\u0435\u0440\u043e\u043c \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430","Column group":"\u0413\u0440\u0443\u043f\u043f\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432","Column header":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u043e\u043b\u0431\u0446\u0430","Constrain proportions":"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438","Copy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Copy column":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446","Copy row":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443","Could not find the specified string.":"\u0417\u0430\u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430/","Could not load emojis":"\u041d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u0438","Count":"\u041f\u043e\u0434\u0441\u0447\u0435\u0442","Currency":"\u0412\u0430\u043b\u044e\u0442\u0430","Current window":"\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u043e\u043a\u043d\u043e","Custom color":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0446\u0432\u0435\u0442","Custom...":"\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0439...","Cut":"\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c","Cut column":"\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446","Cut row":"\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443","Dark Blue":"\u0422\u0435\u043c\u043d\u043e-\u0441\u0438\u043d\u0438\u0439","Dark Gray":"\u0422\u0435\u043c\u043d\u043e-\u0441\u0435\u0440\u044b\u0439","Dark Green":"\u0422\u0435\u043c\u043d\u043e-\u0437\u0435\u043b\u0435\u043d\u044b\u0439","Dark Orange":"\u0422\u0435\u043c\u043d\u043e-\u043e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u0439","Dark Purple":"\u0422\u0435\u043c\u043d\u043e-\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439","Dark Red":"\u0422\u0435\u043c\u043d\u043e-\u043a\u0440\u0430\u0441\u043d\u044b\u0439","Dark Turquoise":"\u0422\u0435\u043c\u043d\u043e-\u0431\u0438\u0440\u044e\u0437\u043e\u0432\u044b\u0439","Dark Yellow":"\u0422\u0435\u043c\u043d\u043e-\u0436\u0435\u043b\u0442\u044b\u0439","Dashed":"\u0427\u0435\u0440\u0442\u043e\u0447\u043a\u0430\u043c\u0438","Date/time":"\u0414\u0430\u0442\u0430/\u0432\u0440\u0435\u043c\u044f","Decrease indent":"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f","Default":"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","Delete accordion":"","Delete column":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446","Delete row":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443","Delete table":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443","Dimensions":"\u0420\u0430\u0437\u043c\u0435\u0440\u044b","Disc":"\u0422\u043e\u0447\u043a\u0430","Div":"Div","Document":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442","Dotted":"\u0422\u043e\u0447\u043a\u0430\u043c\u0438","Double":"\u0414\u0432\u043e\u0439\u043d\u043e\u0439","Drop an image here":"\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u044e\u0434\u0430","Dropped file type is not supported":"\u0422\u0438\u043f \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f","Edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Embed":"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434","Emojis":"\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438","Emojis...":"\u0421\u043c\u0430\u0439\u043b\u0438\u043a\u0438...","Error":"\u041e\u0448\u0438\u0431\u043a\u0430","Error: Form submit field collision.":"\u041e\u0448\u0438\u0431\u043a\u0430: \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442 \u043f\u043e\u043b\u0435\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0444\u043e\u0440\u043c\u044b.","Error: No form element found.":"\u041e\u0448\u0438\u0431\u043a\u0430: \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0444\u043e\u0440\u043c\u044b.","Extended Latin":"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u0430\u044f \u043b\u0430\u0442\u044b\u043d\u044c","Failed to initialize plugin: {0}":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430: {0}","Failed to load plugin url: {0}":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 URL \u043f\u043b\u0430\u0433\u0438\u043d\u0430: {0}","Failed to load plugin: {0} from url {1}":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430: {0} \u0438\u0437 URL {1}","Failed to upload image: {0}":"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f: {0}","File":"\u0424\u0430\u0439\u043b","Find":"\u041d\u0430\u0439\u0442\u0438","Find (if searchreplace plugin activated)":"\u041d\u0430\u0439\u0442\u0438 (\u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d searchreplace \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d)","Find and Replace":"\u041d\u0430\u0439\u0442\u0438 \u0438 \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c","Find and replace...":"\u041d\u0430\u0439\u0442\u0438 \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c...","Find in selection":"\u0418\u0441\u043a\u0430\u0442\u044c \u0432 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c","Find whole words only":"\u041d\u0430\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043b\u044b\u0435 \u0441\u043b\u043e\u0432\u0430","Flags":"\u0424\u043b\u0430\u0433\u0438","Focus to contextual toolbar":"\u0424\u043e\u043a\u0443\u0441 \u043d\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432","Focus to element path":"\u0424\u043e\u043a\u0443\u0441 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u043f\u0443\u0442\u0438","Focus to menubar":"\u0424\u043e\u043a\u0443\u0441 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u043c\u0435\u043d\u044e","Focus to toolbar":"\u0424\u043e\u043a\u0443\u0441 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432","Font":"\u0428\u0440\u0438\u0444\u0442","Font size {0}":"","Font sizes":"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430","Font {0}":"","Fonts":"\u0428\u0440\u0438\u0444\u0442\u044b","Food and Drink":"\u0415\u0434\u0430 \u0438 \u043d\u0430\u043f\u0438\u0442\u043a\u0438","Footer":"\u041d\u0438\u0436\u043d\u0438\u0439 \u043a\u043e\u043b\u043e\u043d\u0442\u0438\u0442\u0443\u043b","Format":"\u0424\u043e\u0440\u043c\u0430\u0442","Format {0}":"","Formats":"\u0424\u043e\u0440\u043c\u0430\u0442\u044b","Fullscreen":"\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d","G":"G","General":"\u041e\u0431\u0449\u0438\u0435","Gray":"\u0421\u0435\u0440\u044b\u0439","Green":"\u0417\u0435\u043b\u0435\u043d\u044b\u0439","Green component":"\u0417\u0435\u043b\u0435\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430","Groove":"\u041f\u0430\u0437","Handy Shortcuts":"\u0413\u043e\u0440\u044f\u0447\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438","Header":"\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u043a\u043e\u043b\u043e\u043d\u0442\u0438\u0442\u0443\u043b","Header cell":"\u042f\u0447\u0435\u0439\u043a\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u043a\u043e\u043b\u043e\u043d\u0442\u0438\u0442\u0443\u043b\u0430","Heading 1":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 1","Heading 2":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 2","Heading 3":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 3","Heading 4":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 4","Heading 5":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 5","Heading 6":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a 6","Headings":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438","Height":"\u0412\u044b\u0441\u043e\u0442\u0430","Help":"\u0421\u043f\u0440\u0430\u0432\u043a\u0430","Hex color code":"HEX-\u043a\u043e\u0434 \u0446\u0432\u0435\u0442\u0430","Hidden":"\u0421\u043a\u0440\u044b\u0442\u044b\u0439","Horizontal align":"\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435","Horizontal line":"\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f","Horizontal space":"\u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438","ID":"ID","ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"ID \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 \u0431\u0443\u043a\u0432\u044b \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u043a\u0432\u044b, \u0446\u0438\u0444\u0440\u044b, \u0447\u0435\u0440\u0442\u043e\u0447\u043a\u0443, \u0442\u043e\u0447\u043a\u0443, \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u0438\u043b\u0438 \u0437\u043d\u0430\u043a \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f.","Image is decorative":"\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","Image list":"\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439","Image title":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f","Image...":"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435...","ImageProxy HTTP error: Could not find Image Proxy":"\u041e\u0448\u0438\u0431\u043a\u0430 HTTP ImageProxy: \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 Image Proxy","ImageProxy HTTP error: Incorrect Image Proxy URL":"\u041e\u0448\u0438\u0431\u043a\u0430 HTTP ImageProxy: \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 URL-\u0430\u0434\u0440\u0435\u0441 Image Proxy","ImageProxy HTTP error: Rejected request":"\u041e\u0448\u0438\u0431\u043a\u0430 HTTP ImageProxy: \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d","ImageProxy HTTP error: Unknown ImageProxy error":"\u041e\u0448\u0438\u0431\u043a\u0430 HTTP ImageProxy: \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 ImageProxy","Increase indent":"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f","Inline":"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439","Insert":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c","Insert Template":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d","Insert accordion":"","Insert column after":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430","Insert column before":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430","Insert date/time":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0443/\u0432\u0440\u0435\u043c\u044f","Insert image":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","Insert link (if link plugin activated)":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 (\u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d link \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d)","Insert row after":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043d\u0438\u0437\u0443","Insert row before":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443","Insert table":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443","Insert template...":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d...","Insert video":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e","Insert/Edit code sample":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c/\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430","Insert/edit image":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c/\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435","Insert/edit link":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","Insert/edit media":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430","Insert/edit video":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e","Inset":"\u0412\u0441\u0442\u0430\u0432\u043a\u0430","Invalid hex color code: {0}":"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 HEX-\u043a\u043e\u0434 \u0446\u0432\u0435\u0442\u0430: {0}","Invalid input":"\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435","Italic":"\u041a\u0443\u0440\u0441\u0438\u0432","Justify":"\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0448\u0438\u0440\u0438\u043d\u0435","Keyboard Navigation":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b","Language":"\u042f\u0437\u044b\u043a","Learn more...":"\u0423\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435...","Left":"\u041f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e","Left to right":"\u0421\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e","Light Blue":"\u0421\u0432\u0435\u0442\u043b\u043e-\u0441\u0438\u043d\u0438\u0439","Light Gray":"\u0421\u0432\u0435\u0442\u043b\u043e-\u0441\u0435\u0440\u044b\u0439","Light Green":"\u0421\u0432\u0435\u0442\u043b\u043e-\u0437\u0435\u043b\u0435\u043d\u044b\u0439","Light Purple":"\u0421\u0432\u0435\u0442\u043b\u043e-\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439","Light Red":"\u0421\u0432\u0435\u0442\u043b\u043e-\u043a\u0440\u0430\u0441\u043d\u044b\u0439","Light Yellow":"\u0421\u0432\u0435\u0442\u043b\u043e-\u0436\u0435\u043b\u0442\u044b\u0439","Line height":"\u0412\u044b\u0441\u043e\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0438","Link list":"\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0441\u044b\u043b\u043e\u043a","Link...":"\u0421\u0441\u044b\u043b\u043a\u0430...","List Properties":"\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432","List properties...":"\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432...","Loading emojis...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u043e\u0432...","Loading...":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...","Lower Alpha":"\u0421\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435","Lower Greek":"\u0421\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0433\u0440\u0435\u0447\u0435\u0441\u043a\u0438\u0435","Lower Roman":"\u0421\u0442\u0440\u043e\u0447\u043d\u044b\u0435 \u0440\u0438\u043c\u0441\u043a\u0438\u0435","Match case":"\u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430","Mathematical":"\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435","Media poster (Image URL)":"\u041f\u043e\u0441\u0442\u0435\u0440 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 (URL \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f)","Media...":"\u041c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430...","Medium Blue":"\u0421\u0440\u0435\u0434\u043d\u0438\u0439 \u0441\u0438\u043d\u0438\u0439","Medium Gray":"\u0423\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0435\u0440\u044b\u0439","Medium Purple":"\u0423\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439","Merge cells":"\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0438","Middle":"\u041f\u043e \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435","Midnight Blue":"\u0427\u0435\u0440\u043d\u043e-\u0441\u0438\u043d\u0438\u0439","More...":"\u0411\u043e\u043b\u044c\u0448\u0435...","Name":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435/\u0418\u043c\u044f","Navy Blue":"\u0422\u0435\u043c\u043d\u043e-\u0441\u0438\u043d\u0438\u0439","New document":"\u041d\u043e\u0432\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442","New window":"\u041d\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e","Next":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c","No":"\u041d\u0435\u0442","No alignment":"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u043e","No color":"\u0411\u0435\u0437 \u0446\u0432\u0435\u0442\u0430","Nonbreaking space":"\u041d\u0435\u0440\u0430\u0437\u0440\u044b\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0431\u0435\u043b","None":"\u041d\u0435\u0442","Numbered list":"\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a","OR":"\u0418\u041b\u0418","Objects":"\u041e\u0431\u044a\u0435\u043a\u0442\u044b","Ok":"OK","Open help dialog":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u043a\u0443","Open link":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435","Open link in...":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u0432...","Open popup menu for split buttons":"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a","Orange":"\u041e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u0439","Outset":"\u0412\u044b\u0440\u0435\u0437\u043a\u0430","Page break":"\u0420\u0430\u0437\u0440\u044b\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","Paragraph":"\u0410\u0431\u0437\u0430\u0446","Paste":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c","Paste as text":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442","Paste column after":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430","Paste column before":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"\u0412\u0441\u0442\u0430\u0432\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u043e\u043f\u0446\u0438\u044e.","Paste or type a link":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043b\u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443","Paste row after":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u043d\u0438\u0437\u0443","Paste row before":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0432\u0435\u0440\u0445\u0443","Paste your embed code below:":"\u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0438\u0436\u0435:","People":"\u041b\u044e\u0434\u0438","Plugins":"\u041f\u043b\u0430\u0433\u0438\u043d\u044b","Plugins installed ({0}):":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b ({0}):","Powered by {0}":"\u041f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c {0}","Pre":"Pre","Preferences":"\u041f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f","Preformatted":"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439","Premium plugins:":"\u041f\u0440\u0435\u043c\u0438\u0443\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u044b:","Press the Up and Down arrow keys to resize the editor.":"","Press the arrow keys to resize the editor.":"","Press {0} for help":"","Preview":"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440","Previous":"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439","Print":"\u041f\u0435\u0447\u0430\u0442\u044c","Print...":"\u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c...","Purple":"\u0420\u043e\u0437\u043e\u0432\u044b\u0439","Quotations":"\u0426\u0438\u0442\u0430\u0442\u044b","R":"R","Range 0 to 255":"\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442 0 \u0434\u043e 255","Red":"\u041a\u0440\u0430\u0441\u043d\u044b\u0439","Red component":"\u041a\u0440\u0430\u0441\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430","Redo":"Redo","Remove":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","Remove color":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0446\u0432\u0435\u0442","Remove link":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443","Replace":"\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c","Replace all":"\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u0441\u0435","Replace with":"\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430","Resize":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440","Restore last draft":"\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a","Reveal or hide additional toolbar items":"","Rich Text Area":"\u041f\u043e\u043b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430","Rich Text Area. Press ALT-0 for help.":"\u041f\u043e\u043b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 ALT-0, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u043a\u0443.","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"\u041f\u043e\u043b\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 ALT-F9, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043c\u0435\u043d\u044e, ALT-F10, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, ALT-0, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u043a\u0443.","Ridge":"\u0428\u0438\u043f","Right":"\u041f\u043e \u043f\u0440\u0430\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e","Right to left":"\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e","Row":"\u0421\u0442\u0440\u043e\u043a\u0430","Row clipboard actions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0431\u0443\u0444\u0435\u0440\u043e\u043c \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a\u0438","Row group":"\u0413\u0440\u0443\u043f\u043f\u0430 \u0441\u0442\u0440\u043e\u043a","Row header":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0441\u0442\u0440\u043e\u043a\u0438","Row properties":"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0442\u0440\u043e\u043a\u0438","Row type":"\u0422\u0438\u043f \u0441\u0442\u0440\u043e\u043a\u0438","Rows":"\u0421\u0442\u0440\u043e\u043a\u0438","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Save (if save plugin activated)":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (\u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d save \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d)","Scope":"\u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f","Search":"\u041f\u043e\u0438\u0441\u043a","Select all":"\u0412\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0441\u0435","Select...":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c...","Selection":"\u0412\u044b\u0431\u043e\u0440","Shortcut":"\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0430","Show blocks":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438","Show caption":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c","Show invisible characters":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b","Size":"\u0420\u0430\u0437\u043c\u0435\u0440","Solid":"\u0421\u043f\u043b\u043e\u0448\u043d\u043e\u0439","Source":"\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442","Source code":"\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434","Special Character":"\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b","Special character...":"\u0421\u043f\u0435\u0446. \u0441\u0438\u043c\u0432\u043e\u043b\u044b...","Split cell":"\u0420\u0430\u0437\u0431\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0443","Square":"\u041a\u0432\u0430\u0434\u0440\u0430\u0442","Start list at number":"\u041d\u0430\u0447\u0430\u0442\u044c \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e \u0441","Strikethrough":"\u0417\u0430\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","Style":"\u0421\u0442\u0438\u043b\u044c","Subscript":"\u041f\u043e\u0434\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439","Superscript":"\u041d\u0430\u0434\u0441\u0442\u0440\u043e\u0447\u043d\u044b\u0439","Switch to or from fullscreen mode":"\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c","Symbols":"\u0421\u0438\u043c\u0432\u043e\u043b\u044b","System Font":"\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442","Table":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430","Table caption":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u044b","Table properties":"\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b","Table styles":"\u0421\u0442\u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b","Template":"\u0428\u0430\u0431\u043b\u043e\u043d","Templates":"\u0428\u0430\u0431\u043b\u043e\u043d\u044b","Text":"\u0422\u0435\u043a\u0441\u0442","Text color":"\u0426\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430","Text color {0}":"","Text to display":"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"\u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 URL \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b. \u0412\u044b \u0436\u0435\u043b\u0430\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \xabmailto:\xbb?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"\u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 URL \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439. \u0412\u044b \u0436\u0435\u043b\u0430\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \xabhttp://\xbb?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"\u0412\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0412\u0430\u043c\u0438 URL-\u0430\u0434\u0440\u0435\u0441 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439. \u0425\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 https: //?","Title":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","To open the popup, press Shift+Enter":"\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Shift+Enter","Toggle accordion":"","Tools":"\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b","Top":"\u041f\u043e \u0432\u0435\u0440\u0445\u0443","Travel and Places":"\u041f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u044f \u0438 \u043c\u0435\u0441\u0442\u0430","Turquoise":"\u0411\u0438\u0440\u044e\u0437\u043e\u0432\u044b\u0439","Underline":"\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435","Undo":"Undo","Upload":"\u041f\u0435\u0440\u0435\u0434\u0430\u0442\u044c","Uploading image":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438","Upper Alpha":"\u0417\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435","Upper Roman":"\u041f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435 \u0440\u0438\u043c\u0441\u043a\u0438\u0435","Url":"URL-\u0430\u0434\u0440\u0435\u0441","User Defined":"\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c","Valid":"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0439","Version":"\u0412\u0435\u0440\u0441\u0438\u044f","Vertical align":"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435","Vertical space":"\u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438","View":"\u0412\u0438\u0434","Visual aids":"\u0412\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","Warn":"\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435","White":"\u0411\u0435\u043b\u044b\u0439","Width":"\u0428\u0438\u0440\u0438\u043d\u0430","Word count":"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432","Words":"\u0421\u043b\u043e\u0432\u0430","Words: {0}":"\u0421\u043b\u043e\u0432: {0}","Yellow":"\u0416\u0435\u043b\u0442\u044b\u0439","Yes":"\u0414\u0430","You are using {0}":"\u0412\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 {0}","You have unsaved changes are you sure you want to navigate away?":"\u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0439\u0442\u0438?","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"\u0412\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0431\u0443\u0444\u0435\u0440\u0443 \u043e\u0431\u043c\u0435\u043d\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0432\u0438\u0448: Ctrl+X/C/V.","alignment":"\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435","austral sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0430\u0443\u0441\u0442\u0440\u0430\u043b\u0430","cedi sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0441\u0435\u0434\u0438","colon sign":"\u0414\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435","cruzeiro sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043a\u0440\u0443\u0437\u0435\u0439\u0440\u043e","currency sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0432\u0430\u043b\u044e\u0442\u044b","dollar sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0434\u043e\u043b\u043b\u0430\u0440\u0430","dong sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0434\u043e\u043d\u0433\u0430","drachma sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0434\u0440\u0430\u0445\u043c\u044b","euro-currency sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0435\u0432\u0440\u043e","example":"\u043f\u0440\u0438\u043c\u0435\u0440","formatting":"\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","french franc sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u0441\u043a\u043e\u0433\u043e \u0444\u0440\u0430\u043d\u043a\u0430","german penny symbol":"\u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0444\u0435\u043d\u043d\u0438\u0433\u0430","guarani sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0433\u0443\u0430\u0440\u0430\u043d\u0438","history":"\u0438\u0441\u0442\u043e\u0440\u0438\u044f","hryvnia sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0433\u0440\u0438\u0432\u043d\u0438","indentation":"\u043e\u0442\u0441\u0442\u0443\u043f","indian rupee sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0438\u043d\u0434\u0438\u0439\u0441\u043a\u043e\u0439 \u0440\u0443\u043f\u0438\u0438","kip sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043a\u0438\u043f\u044b","lira sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043b\u0438\u0440\u044b","livre tournois sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043b\u0438\u0432\u0440\u044b","manat sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043c\u0430\u043d\u0430\u0442\u0430","mill sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0434\u0435\u0441\u044f\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0446\u0435\u043d\u0442\u0430","naira sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043d\u0430\u0439\u0440\u044b","new sheqel sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0448\u0435\u043a\u0435\u043b\u044f","nordic mark sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043c\u0430\u0440\u043a\u0438","peseta sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043f\u0435\u0441\u0435\u0442\u044b","peso sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u043f\u0435\u0441\u043e","ruble sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0440\u0443\u0431\u043b\u044f","rupee sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0440\u0443\u043f\u0438\u0438","spesmilo sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0441\u043f\u0435\u0441\u043c\u0438\u043b\u043e","styles":"\u0441\u0442\u0438\u043b\u0438","tenge sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0442\u0435\u043d\u044c\u0433\u0435","tugrik sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0442\u0443\u0433\u0440\u0438\u043a\u0430","turkish lira sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0442\u0443\u0440\u0435\u0446\u043a\u043e\u0439 \u043b\u0438\u0440\u044b","won sign":"\u0421\u0438\u043c\u0432\u043e\u043b \u0432\u043e\u043d\u044b","yen character":"\u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0435\u043d\u044b","yen/yuan character variant one":"\u0441\u0438\u043c\u0432\u043e\u043b \u0438\u0435\u043d\u044b/\u044e\u0430\u043d\u044f, \u0432\u0430\u0440\u0438\u0430\u043d\u0442 1","yuan character":"\u0441\u0438\u043c\u0432\u043e\u043b \u044e\u0430\u043d\u044f","yuan character, in hong kong and taiwan":"\u0421\u0438\u043c\u0432\u043e\u043b \u044e\u0430\u043d\u044f, \u0413\u043e\u043d\u043a\u043e\u043d\u0433 \u0438 \u0422\u0430\u0439\u0432\u0430\u043d\u044c","{0} characters":"{0} \u0441\u0438\u043c\u0432\u043e\u043b.","{0} columns, {1} rows":"","{0} words":"{0} \u0441\u043b\u043e\u0432"}); \ No newline at end of file diff --git a/app/application/resources/views/admin/projects/about/_from.blade.php b/app/application/resources/views/admin/projects/about/_from.blade.php new file mode 100644 index 0000000..6057481 --- /dev/null +++ b/app/application/resources/views/admin/projects/about/_from.blade.php @@ -0,0 +1,7 @@ +@csrf + + + +@canany(['create', 'update'], $content) + +@endcanany diff --git a/app/application/resources/views/admin/projects/about/edit.blade.php b/app/application/resources/views/admin/projects/about/edit.blade.php new file mode 100644 index 0000000..bfd057d --- /dev/null +++ b/app/application/resources/views/admin/projects/about/edit.blade.php @@ -0,0 +1,17 @@ +@section('meta_title', __('admin-sections.Project') . ': ' . $project->name) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + +
    +
    +
    +
    +

    {{ __('admin-sections.About project') }} ({{ $language->title }})

    +
    + @method('PUT') + @include('admin.projects.about._from') +
    +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/admin/projects/about/languages.blade.php b/app/application/resources/views/admin/projects/about/languages.blade.php new file mode 100644 index 0000000..8ee9395 --- /dev/null +++ b/app/application/resources/views/admin/projects/about/languages.blade.php @@ -0,0 +1,42 @@ +@section('meta_title', __('admin-sections.Project') . ': ' . $project->name) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) +@php + $contents = $project->contents; +@endphp + +
    +
    +

    {{ __('admin-sections.About project') }}

    +
    + + + + + + + + + @foreach($project->languages as $language) + @php + $content = $contents->firstWhere('language_id', $language->id); + @endphp + + + + + @endforeach + +
    {{ __('admin-sections.Languages') }}{{ __('admin-sections.Last update') }}
    + + + + + {{ $language->title }} + + + {{ $content?->updated_at }} +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/admin/projects/index.blade.php b/app/application/resources/views/admin/projects/index.blade.php index 08ca5f1..637b497 100644 --- a/app/application/resources/views/admin/projects/index.blade.php +++ b/app/application/resources/views/admin/projects/index.blade.php @@ -11,6 +11,7 @@ {{ __('validation.attributes.name') }} {{ __('validation.attributes.code') }} {{ __('validation.attributes.http_host') }} + {{ __('validation.attributes.is_public') }} @@ -18,9 +19,9 @@ @foreach($projects as $project) - - - + + {{ $project->name }} @@ -32,12 +33,26 @@ {{ $project->http_host }} + @if($project->is_public) + {{ __('Yes') }} + @else + {{ __('No') }} + @endif + + + + + + + @can('delete', $project) -
    +
    @csrf @method('DELETE') -
    @endcan diff --git a/app/application/resources/views/admin/projects/show.blade.php b/app/application/resources/views/admin/projects/show.blade.php new file mode 100644 index 0000000..119d2a6 --- /dev/null +++ b/app/application/resources/views/admin/projects/show.blade.php @@ -0,0 +1,32 @@ +@section('meta_title', __('admin-sections.Project') . ': ' . $project->name) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + + @include('admin.projects._top') +
    +
    +
    + + + + + + + + @can('viewAny', \App\Models\ProjectContent::class) + + + + @endcan + +
    {{ __('admin-sections.Sections') }}
    + + + + + {{ __('admin-sections.About project') }} + +
    +
    +
    +
    + diff --git a/app/application/resources/views/components/volt/forms/textarea-wysiwyg.blade.php b/app/application/resources/views/components/volt/forms/textarea-wysiwyg.blade.php new file mode 100644 index 0000000..32ddf08 --- /dev/null +++ b/app/application/resources/views/components/volt/forms/textarea-wysiwyg.blade.php @@ -0,0 +1,24 @@ +
    + + + @error($requestName) + {{ $message }} + @enderror +
    +@pushOnce('scripts') + + +@endpushonce diff --git a/app/application/resources/views/components/volt/forms/textarea.blade.php b/app/application/resources/views/components/volt/forms/textarea.blade.php new file mode 100644 index 0000000..0be825c --- /dev/null +++ b/app/application/resources/views/components/volt/forms/textarea.blade.php @@ -0,0 +1,7 @@ +
    + + + @error($requestName) + {{ $message }} + @enderror +
    diff --git a/app/application/routes/web.php b/app/application/routes/web.php index 1107c8e..9e6b87d 100644 --- a/app/application/routes/web.php +++ b/app/application/routes/web.php @@ -18,7 +18,14 @@ Route::resource('roles', \App\Http\Controllers\Admin\RolesController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy'])->where(['role' => '[0-9]+']); - Route::resource('projects', \App\Http\Controllers\Admin\ProjectsController::class)->only(['index', 'create', 'store', 'edit', 'update', 'destroy'])->where(['project' => '[0-9]+']); + Route::resource('projects', \App\Http\Controllers\Admin\ProjectsController::class)->where(['project' => '[0-9]+']); + Route::prefix('projects/{project}')->as('projects.')->group(function () { + + Route::get('about', [\App\Http\Controllers\Admin\Projects\AboutController::class, 'languages'])->name('about.languages'); + Route::get('about/{language}', [\App\Http\Controllers\Admin\Projects\AboutController::class, 'edit'])->name('about.edit')->where(['language' => '[0-9]+']); + Route::put('about/{language}', [\App\Http\Controllers\Admin\Projects\AboutController::class, 'update'])->name('about.update')->where(['language' => '[0-9]+']); + + })->where(['project' => '[0-9]+']); Route::post('languages/new-language', [\App\Http\Controllers\Admin\LanguagesController::class, 'newLanguage'])->name('new-language'); }); diff --git a/app/application/vite.config.js b/app/application/vite.config.js index 1563b46..dd794b1 100644 --- a/app/application/vite.config.js +++ b/app/application/vite.config.js @@ -1,14 +1,23 @@ import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; +import { viteStaticCopy } from 'vite-plugin-static-copy' export default defineConfig({ plugins: [ laravel({ input: [ 'resources/volt/scss/app.scss', - 'resources/volt/js/app.js' + 'resources/volt/js/app.js', ], refresh: true, }), + viteStaticCopy({ + targets: [ + { + src: ['node_modules/tinymce/*', 'resources/tinymce/*'], + dest: 'tinymce' + } + ] + }) ], }); From 4583908230b5ee34b7cf31c13514cd152a484f1b Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sun, 14 Apr 2024 15:29:00 +0500 Subject: [PATCH 07/20] Added package barryvdh/laravel-debugbar. --- app/application/composer.json | 1 + app/application/composer.lock | 154 +++++++++++++++++++- app/application/storage/debugbar/.gitignore | 2 + 3 files changed, 156 insertions(+), 1 deletion(-) create mode 100755 app/application/storage/debugbar/.gitignore diff --git a/app/application/composer.json b/app/application/composer.json index 6f27f4e..71e3603 100644 --- a/app/application/composer.json +++ b/app/application/composer.json @@ -12,6 +12,7 @@ "laravel/tinker": "^2.9" }, "require-dev": { + "barryvdh/laravel-debugbar": "^3.13", "fakerphp/faker": "^1.23", "laravel-lang/common": "^6.2", "laravel/pint": "^1.13", diff --git a/app/application/composer.lock b/app/application/composer.lock index 5b53c28..0b3bc9f 100644 --- a/app/application/composer.lock +++ b/app/application/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "69cad3ad961845edc7e2ac7c0f9fb5e6", + "content-hash": "5e3226c3090c81571c830e2c383433ab", "packages": [ { "name": "brick/math", @@ -5994,6 +5994,90 @@ }, "time": "2024-01-28T17:52:47+00:00" }, + { + "name": "barryvdh/laravel-debugbar", + "version": "v3.13.4", + "source": { + "type": "git", + "url": "https://github.com/barryvdh/laravel-debugbar.git", + "reference": "00201bcd1eaf9b1d3debddcdc13c219e4835fb61" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/00201bcd1eaf9b1d3debddcdc13c219e4835fb61", + "reference": "00201bcd1eaf9b1d3debddcdc13c219e4835fb61", + "shasum": "" + }, + "require": { + "illuminate/routing": "^9|^10|^11", + "illuminate/session": "^9|^10|^11", + "illuminate/support": "^9|^10|^11", + "maximebf/debugbar": "~1.22.0", + "php": "^8.0", + "symfony/finder": "^6|^7" + }, + "require-dev": { + "mockery/mockery": "^1.3.3", + "orchestra/testbench-dusk": "^5|^6|^7|^8|^9", + "phpunit/phpunit": "^9.6|^10.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.13-dev" + }, + "laravel": { + "providers": [ + "Barryvdh\\Debugbar\\ServiceProvider" + ], + "aliases": { + "Debugbar": "Barryvdh\\Debugbar\\Facades\\Debugbar" + } + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Barryvdh\\Debugbar\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" + } + ], + "description": "PHP Debugbar integration for Laravel", + "keywords": [ + "debug", + "debugbar", + "laravel", + "profiler", + "webprofiler" + ], + "support": { + "issues": "https://github.com/barryvdh/laravel-debugbar/issues", + "source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.13.4" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2024-04-10T09:15:45+00:00" + }, { "name": "composer/semver", "version": "3.4.0", @@ -7463,6 +7547,74 @@ }, "time": "2024-03-20T20:09:31+00:00" }, + { + "name": "maximebf/debugbar", + "version": "v1.22.3", + "source": { + "type": "git", + "url": "https://github.com/maximebf/php-debugbar.git", + "reference": "7aa9a27a0b1158ed5ad4e7175e8d3aee9a818b96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/7aa9a27a0b1158ed5ad4e7175e8d3aee9a818b96", + "reference": "7aa9a27a0b1158ed5ad4e7175e8d3aee9a818b96", + "shasum": "" + }, + "require": { + "php": "^7.2|^8", + "psr/log": "^1|^2|^3", + "symfony/var-dumper": "^4|^5|^6|^7" + }, + "require-dev": { + "dbrekelmans/bdi": "^1", + "phpunit/phpunit": "^8|^9", + "symfony/panther": "^1|^2.1", + "twig/twig": "^1.38|^2.7|^3.0" + }, + "suggest": { + "kriswallsmith/assetic": "The best way to manage assets", + "monolog/monolog": "Log using Monolog", + "predis/predis": "Redis storage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.22-dev" + } + }, + "autoload": { + "psr-4": { + "DebugBar\\": "src/DebugBar/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maxime Bouroumeau-Fuseau", + "email": "maxime.bouroumeau@gmail.com", + "homepage": "http://maximebf.com" + }, + { + "name": "Barry vd. Heuvel", + "email": "barryvdh@gmail.com" + } + ], + "description": "Debug bar in the browser for php application", + "homepage": "https://github.com/maximebf/php-debugbar", + "keywords": [ + "debug", + "debugbar" + ], + "support": { + "issues": "https://github.com/maximebf/php-debugbar/issues", + "source": "https://github.com/maximebf/php-debugbar/tree/v1.22.3" + }, + "time": "2024-04-03T19:39:26+00:00" + }, { "name": "mockery/mockery", "version": "1.6.11", diff --git a/app/application/storage/debugbar/.gitignore b/app/application/storage/debugbar/.gitignore new file mode 100755 index 0000000..d6b7ef3 --- /dev/null +++ b/app/application/storage/debugbar/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore From 63ea5dac9245bc6f457e3c25e3b075569843dabf Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Mon, 15 Apr 2024 22:53:34 +0500 Subject: [PATCH 08/20] Added the ability to add links to the project. --- .../app/Dto/Builder/ProjectLink.php | 10 + .../Dto/Service/Admin/Project/Link/Index.php | 21 ++ .../Admin/Project/Link/StoreUpdate.php | 35 +++ app/application/app/Enums/Permission.php | 1 + .../Admin/Projects/LinksController.php | 100 +++++++++ .../Admin/Projects/Links/IndexRequest.php | 29 +++ .../Projects/Links/StoreUpdateRequest.php | 38 ++++ app/application/app/Models/Project.php | 5 + app/application/app/Models/ProjectLink.php | 46 ++++ .../app/Policies/ProjectLinkPolicy.php | 34 +++ .../Repositories/ProjectLinkRepository.php | 32 +++ .../Services/Admin/Project/LinkService.php | 203 ++++++++++++++++++ .../Services/ProjectLink/BuilderCommand.php | 15 ++ .../ProjectLink/ProjectLinkCommandHandler.php | 25 +++ app/application/lang/en.json | 6 +- app/application/lang/en/admin-sections.php | 1 + app/application/lang/en/permissions.php | 12 +- app/application/lang/en/validation.php | 2 + app/application/lang/ru.json | 6 +- app/application/lang/ru/admin-sections.php | 1 + app/application/lang/ru/permissions.php | 13 +- app/application/lang/ru/validation.php | 2 + .../admin/projects/links/_from.blade.php | 11 + .../views/admin/projects/links/_top.blade.php | 8 + .../admin/projects/links/create.blade.php | 17 ++ .../views/admin/projects/links/edit.blade.php | 18 ++ .../admin/projects/links/index.blade.php | 61 ++++++ .../views/admin/projects/show.blade.php | 14 +- app/application/routes/web.php | 3 +- 29 files changed, 756 insertions(+), 13 deletions(-) create mode 100644 app/application/app/Dto/Builder/ProjectLink.php create mode 100644 app/application/app/Dto/Service/Admin/Project/Link/Index.php create mode 100644 app/application/app/Dto/Service/Admin/Project/Link/StoreUpdate.php create mode 100644 app/application/app/Http/Controllers/Admin/Projects/LinksController.php create mode 100644 app/application/app/Http/Requests/Admin/Projects/Links/IndexRequest.php create mode 100644 app/application/app/Http/Requests/Admin/Projects/Links/StoreUpdateRequest.php create mode 100644 app/application/app/Models/ProjectLink.php create mode 100644 app/application/app/Policies/ProjectLinkPolicy.php create mode 100644 app/application/app/Repositories/ProjectLinkRepository.php create mode 100644 app/application/app/Services/Admin/Project/LinkService.php create mode 100644 app/application/app/Services/ProjectLink/BuilderCommand.php create mode 100644 app/application/app/Services/ProjectLink/ProjectLinkCommandHandler.php create mode 100644 app/application/resources/views/admin/projects/links/_from.blade.php create mode 100644 app/application/resources/views/admin/projects/links/_top.blade.php create mode 100644 app/application/resources/views/admin/projects/links/create.blade.php create mode 100644 app/application/resources/views/admin/projects/links/edit.blade.php create mode 100644 app/application/resources/views/admin/projects/links/index.blade.php diff --git a/app/application/app/Dto/Builder/ProjectLink.php b/app/application/app/Dto/Builder/ProjectLink.php new file mode 100644 index 0000000..4d858d4 --- /dev/null +++ b/app/application/app/Dto/Builder/ProjectLink.php @@ -0,0 +1,10 @@ +linkBuilderDto; + } +} diff --git a/app/application/app/Dto/Service/Admin/Project/Link/StoreUpdate.php b/app/application/app/Dto/Service/Admin/Project/Link/StoreUpdate.php new file mode 100644 index 0000000..755719b --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/Link/StoreUpdate.php @@ -0,0 +1,35 @@ +title; + } + + public function getLink(): string + { + return $this->link; + } + + public function getSort(): int + { + return $this->sort; + } + + public function getLanguageId(): ?int + { + return $this->languageId; + } +} diff --git a/app/application/app/Enums/Permission.php b/app/application/app/Enums/Permission.php index c4e7416..bdf8d14 100644 --- a/app/application/app/Enums/Permission.php +++ b/app/application/app/Enums/Permission.php @@ -9,6 +9,7 @@ enum Permission: string case User = 'user'; case Project = 'project'; case ProjectContent = 'project-content'; + case ProjectLink = 'project-link'; public function getPermissions(): array { diff --git a/app/application/app/Http/Controllers/Admin/Projects/LinksController.php b/app/application/app/Http/Controllers/Admin/Projects/LinksController.php new file mode 100644 index 0000000..c937267 --- /dev/null +++ b/app/application/app/Http/Controllers/Admin/Projects/LinksController.php @@ -0,0 +1,100 @@ +user(); + $data = $request->getDto(); + $querySettingsDto = new QuerySettingsDto( + limit: 20, + page: $data->getPage(), + queryWith: ['language'] + ); + + $result = $this->linkService->index($projectId, $data->getLinkBuilderDto(), $querySettingsDto, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/links/index', $result->getData()); + } + + public function create(int $projectId, Request $request): View + { + $user = $request->user(); + $result = $this->linkService->create($projectId, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/links/create', $result->getData()); + } + + public function edit(int $projectId, int $id, Request $request): View + { + $user = $request->user(); + $result = $this->linkService->edit($projectId, $id, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/links/edit', $result->getData()); + } + + public function store(int $projectId, StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->linkService->store($projectId, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.projects.links.edit', [ + 'project' => $projectId, + 'link' => $result->getModel()->id, + ])->withSuccess($result->getMessage()); + } + + public function update(int $projectId, int $id, StoreUpdateRequest $request): RedirectResponse + { + $data = $request->getDto(); + $user = $request->user(); + $result = $this->linkService->update($projectId, $id, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.projects.links.edit', [ + 'project' => $projectId, + 'link' => $result->getModel()->id, + ])->withSuccess($result->getMessage()); + } + + public function destroy(int $projectId, int $id, Request $request): RedirectResponse + { + $user = $request->user(); + $result = $this->linkService->destroy($projectId, $id, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.projects.links.index', ['project' => $projectId])->withSuccess($result->getMessage()); + } +} diff --git a/app/application/app/Http/Requests/Admin/Projects/Links/IndexRequest.php b/app/application/app/Http/Requests/Admin/Projects/Links/IndexRequest.php new file mode 100644 index 0000000..b51ebe7 --- /dev/null +++ b/app/application/app/Http/Requests/Admin/Projects/Links/IndexRequest.php @@ -0,0 +1,29 @@ + ['nullable', 'numeric', 'min:1'] + ]; + } + + public function getDto(): Index + { + return new Index( + linkBuilderDto: new ProjectLink(), + page: (int) $this->input('page', 1), + ); + } +} diff --git a/app/application/app/Http/Requests/Admin/Projects/Links/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/Links/StoreUpdateRequest.php new file mode 100644 index 0000000..e9ac344 --- /dev/null +++ b/app/application/app/Http/Requests/Admin/Projects/Links/StoreUpdateRequest.php @@ -0,0 +1,38 @@ + ['required', 'string', 'max:255'], + 'link' => ['required', 'string', 'max:255', 'url:http,https'], + 'sort' => ['required', 'integer', 'min:-1000', 'max:1000'], + 'language_id' => ['nullable', 'integer', 'min:1'], + ]; + } + + public function getDto(): StoreUpdate + { + $languageId = $this->input('language_id'); + if (! \is_null($languageId)) { + $languageId = (int) $languageId; + } + + return new StoreUpdate( + title: $this->input('title'), + link: $this->input('link'), + sort: (int) $this->input('sort'), + languageId: $languageId, + ); + } +} diff --git a/app/application/app/Models/Project.php b/app/application/app/Models/Project.php index 6b94acb..5e2862b 100644 --- a/app/application/app/Models/Project.php +++ b/app/application/app/Models/Project.php @@ -52,4 +52,9 @@ public function contents(): HasMany { return $this->hasMany(ProjectContent::class); } + + public function links(): HasMany + { + return $this->hasMany(ProjectLink::class); + } } diff --git a/app/application/app/Models/ProjectLink.php b/app/application/app/Models/ProjectLink.php new file mode 100644 index 0000000..738150f --- /dev/null +++ b/app/application/app/Models/ProjectLink.php @@ -0,0 +1,46 @@ + 100, + ]; + + protected $fillable = [ + 'title', + 'link', + 'sort', + 'language_id', + ]; + + public function language(): BelongsTo + { + return $this->belongsTo(ProjectLanguage::class); + } +} diff --git a/app/application/app/Policies/ProjectLinkPolicy.php b/app/application/app/Policies/ProjectLinkPolicy.php new file mode 100644 index 0000000..a8ed52a --- /dev/null +++ b/app/application/app/Policies/ProjectLinkPolicy.php @@ -0,0 +1,34 @@ +hasPermission('project-link.view'); + } + + public function view(User $user, ProjectLink $link): bool + { + return $user->hasPermission('project-link.view'); + } + + public function create(User $user): bool + { + return $user->hasPermission('project-link.create'); + } + + public function update(User $user, ProjectLink $link): bool + { + return $user->hasPermission('project-link.update'); + } + + public function delete(User $user, ProjectLink $link): bool + { + return $user->hasPermission('project-link.delete'); + } +} diff --git a/app/application/app/Repositories/ProjectLinkRepository.php b/app/application/app/Repositories/ProjectLinkRepository.php new file mode 100644 index 0000000..3491e7a --- /dev/null +++ b/app/application/app/Repositories/ProjectLinkRepository.php @@ -0,0 +1,32 @@ +builderCommand->execute( + query: ProjectLink::query()->where('project_id', $projectId)->with($with), + projectLinkBuilderDto: $projectLinkBuilderDto, + ); + + return $this->createSearchInstanceCommand->execute($query); + } + + public function getLinkById(int $id): ?ProjectLink + { + return ProjectLink::query()->where('id', $id)->first(); + } +} diff --git a/app/application/app/Services/Admin/Project/LinkService.php b/app/application/app/Services/Admin/Project/LinkService.php new file mode 100644 index 0000000..e2b6930 --- /dev/null +++ b/app/application/app/Services/Admin/Project/LinkService.php @@ -0,0 +1,203 @@ +projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('viewAny', ProjectLink::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $links = $this->projectLinkRepository->getLinksFromProject( + $project->id, + $linkBuilderDto, + $querySettingsDto->getQueryWith() + )->pagination( + $querySettingsDto->getLimit(), + $querySettingsDto->getPage() + ); + + return $this->result([ + 'links' => $links, + 'project' => $project, + ]); + } + + public function create(int $projectId, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('create', ProjectLink::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'link' => new ProjectLink(), + 'project' => $project, + ]); + } + + public function edit(int $projectId, int $linkId, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + $link = $this->projectLinkRepository->getLinkById($linkId); + if (\is_null($link)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('view', $link)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'link' => $link, + 'project' => $project, + ]); + } + + public function store(int $projectId, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + if ($user->cannot('create', ProjectLink::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ( + $data->getLanguageId() !== null + && $project->languages()->where('id', $data->getLanguageId())->exists() === false + ) { + return $this->errValidate( + __('validation.exists', ['attribute' => __('validation.attributes.language_id')]), + ['language_id' => __('validation.exists', ['attribute' => __('validation.attributes.language_id')])] + ); + } + + try { + $link = DB::transaction(function () use ($data, $project, $user) { + $dataLink = $this->getDataLink($data); + return $this->projectLinkCommandHandler->handleStore($project, $dataLink); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($link, __('The link was successfully created')); + } + + public function update(int $projectId, int $linkId, StoreUpdate $data, User $user): ServiceResultError | StoreUpdateResult + { + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ( + $data->getLanguageId() !== null + && $project->languages()->where('id', $data->getLanguageId())->exists() === false + ) { + return $this->errValidate( + __('validation.exists', ['attribute' => __('validation.attributes.language_id')]), + ['language_id' => __('validation.exists', ['attribute' => __('validation.attributes.language_id')])] + ); + } + + $link = $this->projectLinkRepository->getLinkById($linkId); + if (\is_null($link)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('update', $link)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + $link = DB::transaction(function () use ($data, $link) { + $dataLink = $this->getDataLink($data); + return $this->projectLinkCommandHandler->handleUpdate($link, $dataLink); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->resultStoreUpdateModel($link, __('The link was successfully updated')); + } + + public function destroy(int $projectId, int $linkId, User $user): ServiceResultError|ServiceResultSuccess + { + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + $link = $this->projectLinkRepository->getLinkById($linkId); + if (\is_null($link)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('delete', $link)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + DB::transaction(function () use ($link) { + $this->projectLinkCommandHandler->handleDestroy($link); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->ok(__('The link has been deleted')); + } + + private function getDataLink(StoreUpdate $data): array + { + return [ + 'title' => $data->getTitle(), + 'link' => $data->getLink(), + 'sort' => $data->getSort(), + 'language_id' => $data->getLanguageId(), + ]; + } +} diff --git a/app/application/app/Services/ProjectLink/BuilderCommand.php b/app/application/app/Services/ProjectLink/BuilderCommand.php new file mode 100644 index 0000000..22c62b9 --- /dev/null +++ b/app/application/app/Services/ProjectLink/BuilderCommand.php @@ -0,0 +1,15 @@ +links()->create($data); + } + + public function handleUpdate(ProjectLink $link, array $data): ProjectLink + { + $link->update($data); + return $link; + } + + public function handleDestroy(ProjectLink $link): void + { + $link->delete(); + } +} diff --git a/app/application/lang/en.json b/app/application/lang/en.json index a4fd870..c30cdf8 100644 --- a/app/application/lang/en.json +++ b/app/application/lang/en.json @@ -249,5 +249,9 @@ "There was an error adding a language": "There was an error adding a language", "Select images": "Select images", "loading": "loading", - "Project information has been successfully updated": "Project information has been successfully updated" + "Project information has been successfully updated": "Project information has been successfully updated", + "in all languages": "in all languages", + "The link was successfully created": "The link was successfully created", + "The link was successfully updated": "The link was successfully updated", + "The link has been deleted": "The link has been deleted", } diff --git a/app/application/lang/en/admin-sections.php b/app/application/lang/en/admin-sections.php index 503d7f2..946a4c3 100644 --- a/app/application/lang/en/admin-sections.php +++ b/app/application/lang/en/admin-sections.php @@ -10,4 +10,5 @@ 'About project' => 'About the project', 'Languages' => 'Languages', 'Last update' => 'Last update', + 'Links project' => 'Links from the project', ]; diff --git a/app/application/lang/en/permissions.php b/app/application/lang/en/permissions.php index 063e379..88b02d2 100644 --- a/app/application/lang/en/permissions.php +++ b/app/application/lang/en/permissions.php @@ -3,12 +3,16 @@ return [ 'Role' => 'User group', 'User' => 'Users', - 'Allowed to watch' => 'Allowed to watch', + + 'Allowed to watch' => 'Allowed to watch', 'Allowed to create' => 'Allowed to create', - 'Allowed to edit' => 'Allowed to edit', + 'Allowed to edit' => 'Allowed to edit', 'Allowed to delete' => 'Allowed to delete', + 'Administrative panel allowed' => 'Administrative panel allowed', - 'AdminPanel' => 'Administrative panel allowed', - 'Project' => 'Projects', + 'AdminPanel' => 'Administrative panel allowed', + + 'Project' => 'Projects', 'ProjectContent' => 'About the project', + 'ProjectLink' => 'Links from the project', ]; diff --git a/app/application/lang/en/validation.php b/app/application/lang/en/validation.php index c8a8fc9..11fdad1 100644 --- a/app/application/lang/en/validation.php +++ b/app/application/lang/en/validation.php @@ -292,5 +292,7 @@ 'logo' => 'logo', 'logo.file' => 'logo file', 'logo.delete' => 'remove logo', + 'link' => 'link', + 'language_id' => 'language', ], ]; diff --git a/app/application/lang/ru.json b/app/application/lang/ru.json index 0547a0e..9a93a3c 100644 --- a/app/application/lang/ru.json +++ b/app/application/lang/ru.json @@ -249,5 +249,9 @@ "There was an error adding a language": "Произошла ошибка при добавлении языка", "Select images": "Выберите изображения", "loading": "загрузка", - "Project information has been successfully updated": "Информация о проекте успешно обновлена" + "Project information has been successfully updated": "Информация о проекте успешно обновлена", + "in all languages": "на всех языках", + "The link was successfully created": "Ссылка успешно создана", + "The link was successfully updated": "Ссылка успешно обновлена", + "The link has been deleted": "Ссылка удалена" } diff --git a/app/application/lang/ru/admin-sections.php b/app/application/lang/ru/admin-sections.php index 06e553e..5ec768a 100644 --- a/app/application/lang/ru/admin-sections.php +++ b/app/application/lang/ru/admin-sections.php @@ -10,4 +10,5 @@ 'About project' => 'О проекте', 'Languages' => 'Языки', 'Last update' => 'Последнее обновление', + 'Links project' => 'Ссылки от проекта', ]; diff --git a/app/application/lang/ru/permissions.php b/app/application/lang/ru/permissions.php index fac9c56..dfe8cd7 100644 --- a/app/application/lang/ru/permissions.php +++ b/app/application/lang/ru/permissions.php @@ -3,13 +3,16 @@ return [ 'Role' => 'Группа пользователей', 'User' => 'Пользователи', - 'CaptchaToken' => 'Токены для создания капчи', - 'Allowed to watch' => 'Разрешено смотреть', + + 'Allowed to watch' => 'Разрешено смотреть', 'Allowed to create' => 'Разрешено создать', - 'Allowed to edit' => 'Разрешено редактировать', + 'Allowed to edit' => 'Разрешено редактировать', 'Allowed to delete' => 'Разрешено удалять', + 'Administrative panel allowed' => 'Административная панель разрешена', - 'AdminPanel' => 'Административная панель разрешена', - 'Project' => 'Проекты', + 'AdminPanel' => 'Административная панель разрешена', + + 'Project' => 'Проекты', 'ProjectContent' => 'О проекте', + 'ProjectLink' => 'Ссылки от проекта', ]; diff --git a/app/application/lang/ru/validation.php b/app/application/lang/ru/validation.php index 22e30cc..5f48b83 100644 --- a/app/application/lang/ru/validation.php +++ b/app/application/lang/ru/validation.php @@ -292,5 +292,7 @@ 'logo' => 'логотип', 'logo.file' => 'файл логотипа', 'logo.delete' => 'удалить логотип', + 'link' => 'ссылка', + 'language_id' => 'язык', ], ]; diff --git a/app/application/resources/views/admin/projects/links/_from.blade.php b/app/application/resources/views/admin/projects/links/_from.blade.php new file mode 100644 index 0000000..0fd6dd4 --- /dev/null +++ b/app/application/resources/views/admin/projects/links/_from.blade.php @@ -0,0 +1,11 @@ +@csrf + + + + + + + +@canany(['create', 'update'], $link) + +@endcanany diff --git a/app/application/resources/views/admin/projects/links/_top.blade.php b/app/application/resources/views/admin/projects/links/_top.blade.php new file mode 100644 index 0000000..d6d356a --- /dev/null +++ b/app/application/resources/views/admin/projects/links/_top.blade.php @@ -0,0 +1,8 @@ +@can('create', \App\Models\ProjectLink::class) +
    +@endcan diff --git a/app/application/resources/views/admin/projects/links/create.blade.php b/app/application/resources/views/admin/projects/links/create.blade.php new file mode 100644 index 0000000..196e3f5 --- /dev/null +++ b/app/application/resources/views/admin/projects/links/create.blade.php @@ -0,0 +1,17 @@ +@section('meta_title', __('admin-sections.Links project')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + + @include('admin.projects.links._top') +
    +
    +
    +
    +

    {{ __('admin-sections.Links project') }}

    +
    + @include('admin.projects.links._from') +
    +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/admin/projects/links/edit.blade.php b/app/application/resources/views/admin/projects/links/edit.blade.php new file mode 100644 index 0000000..4d2bc86 --- /dev/null +++ b/app/application/resources/views/admin/projects/links/edit.blade.php @@ -0,0 +1,18 @@ +@section('meta_title', __('admin-sections.Links project')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + + @include('admin.projects._top') +
    +
    +
    +
    +

    {{ __('admin-sections.Links project') }}

    +
    + @method('PUT') + @include('admin.projects.links._from') +
    +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/admin/projects/links/index.blade.php b/app/application/resources/views/admin/projects/links/index.blade.php new file mode 100644 index 0000000..fb2419a --- /dev/null +++ b/app/application/resources/views/admin/projects/links/index.blade.php @@ -0,0 +1,61 @@ +@section('meta_title', __('admin-sections.Links project')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + + @include('admin.projects.links._top') +
    +
    +

    {{ __('admin-sections.Links project') }}

    +
    + + + + + + + + + + + @foreach($links as $link) + + + + + + + @endforeach + +
    {{ __('validation.attributes.title') }}{{ __('validation.attributes.link') }}{{ __('validation.attributes.language_id') }}
    + + + + + {{ $link->title }} + + + {{ $link->link }} + + {{ $link->language?->title ?? __('in all languages') }} + + @can('delete', $link) +
    + @csrf + @method('DELETE') + +
    + @endcan +
    + +
    +
    +
    + @push('scripts') + @include('admin._scripts._click-confirm', ['alert' => __('Do you want to delete?')]) + @endpush +
    diff --git a/app/application/resources/views/admin/projects/show.blade.php b/app/application/resources/views/admin/projects/show.blade.php index 119d2a6..59e8ebc 100644 --- a/app/application/resources/views/admin/projects/show.blade.php +++ b/app/application/resources/views/admin/projects/show.blade.php @@ -15,7 +15,7 @@ @can('viewAny', \App\Models\ProjectContent::class) - + @@ -24,6 +24,18 @@ @endcan + @can('viewAny', \App\Models\ProjectLink::class) + + + + + {{ __('admin-sections.Links project') }} + + + + @endcan diff --git a/app/application/routes/web.php b/app/application/routes/web.php index 9e6b87d..4ae5654 100644 --- a/app/application/routes/web.php +++ b/app/application/routes/web.php @@ -25,6 +25,8 @@ Route::get('about/{language}', [\App\Http\Controllers\Admin\Projects\AboutController::class, 'edit'])->name('about.edit')->where(['language' => '[0-9]+']); Route::put('about/{language}', [\App\Http\Controllers\Admin\Projects\AboutController::class, 'update'])->name('about.update')->where(['language' => '[0-9]+']); + Route::resource('links', \App\Http\Controllers\Admin\Projects\LinksController::class)->except(['show'])->where(['link' => '[0-9]+']); + })->where(['project' => '[0-9]+']); Route::post('languages/new-language', [\App\Http\Controllers\Admin\LanguagesController::class, 'newLanguage'])->name('new-language'); @@ -42,4 +44,3 @@ Route::post('image/upload-resize', [\App\Http\Controllers\Storage\ImagesController::class, 'uploadAndResize'])->name('image_upload_and_resize'); }); }); - From 24e0cf0eea05c625e466340f00a25cdde250a373 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 18 Apr 2024 19:41:31 +0500 Subject: [PATCH 09/20] The page about the project has been revived. --- app/application/app/Dto/Builder/Project.php | 9 +- app/application/app/Enums/CacheTag.php | 16 ++ .../app/Enums/Site/ProjectSection.php | 31 +++ .../app/Http/Controllers/Site/Controller.php | 18 ++ .../Controllers/Site/ProjectsController.php | 62 +++++ .../app/Http/Middleware/AdminPanel.php | 2 +- .../app/Http/Middleware/Project.php | 50 ++++ .../app/Http/Middleware/ProjectDomain.php | 32 +++ .../Admin/Projects/StoreUpdateRequest.php | 8 +- .../app/Providers/AppServiceProvider.php | 4 + .../ProjectLanguageRepository.php | 10 + .../Repositories/ProjectLinkRepository.php | 10 + .../app/Repositories/ProjectRepository.php | 5 + .../Site/PagePossibleWithoutTranslation.php | 37 +++ .../app/Services/Admin/ProjectService.php | 6 + .../app/Services/ClearCacheCommandHandler.php | 13 + .../app/Services/Project/BuilderCommand.php | 4 + app/application/app/Services/Service.php | 9 + .../app/Services/Site/ProjectService.php | 73 +++++ .../app/View/Components/HomeLayout.php | 14 + .../View/Components/Site/ChooseLanguage.php | 31 +++ .../app/View/Components/Site/Layout.php | 26 ++ app/application/bootstrap/app.php | 11 + app/application/lang/en.json | 2 + app/application/lang/en/site.php | 10 + app/application/lang/ru.json | 4 +- app/application/lang/ru/site.php | 10 + app/application/resources/home/scss/app.scss | 72 +++++ .../resources/home/scss/reset.scss | 73 +++++ .../resources/site/js/_choose-language.js | 8 + app/application/resources/site/js/_menu.js | 8 + app/application/resources/site/js/app.js | 2 + app/application/resources/site/scss/app.scss | 252 ++++++++++++++++++ .../resources/site/scss/reset.scss | 73 +++++ .../components/site/choose-language.blade.php | 26 ++ .../resources/views/layout/home.blade.php | 16 ++ .../resources/views/layout/site.blade.php | 55 ++++ .../site/page-without-translation.blade.php | 5 + .../views/site/projects/about.blade.php | 6 + .../views/site/projects/index.blade.php | 18 ++ app/application/routes/web-project.php | 6 + app/application/vite.config.js | 5 + 42 files changed, 1126 insertions(+), 6 deletions(-) create mode 100644 app/application/app/Enums/CacheTag.php create mode 100644 app/application/app/Enums/Site/ProjectSection.php create mode 100644 app/application/app/Http/Controllers/Site/Controller.php create mode 100644 app/application/app/Http/Controllers/Site/ProjectsController.php create mode 100644 app/application/app/Http/Middleware/Project.php create mode 100644 app/application/app/Http/Middleware/ProjectDomain.php create mode 100644 app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php create mode 100644 app/application/app/Services/ClearCacheCommandHandler.php create mode 100644 app/application/app/Services/Site/ProjectService.php create mode 100644 app/application/app/View/Components/HomeLayout.php create mode 100644 app/application/app/View/Components/Site/ChooseLanguage.php create mode 100644 app/application/app/View/Components/Site/Layout.php create mode 100644 app/application/lang/en/site.php create mode 100644 app/application/lang/ru/site.php create mode 100644 app/application/resources/home/scss/app.scss create mode 100644 app/application/resources/home/scss/reset.scss create mode 100644 app/application/resources/site/js/_choose-language.js create mode 100644 app/application/resources/site/js/_menu.js create mode 100644 app/application/resources/site/js/app.js create mode 100644 app/application/resources/site/scss/app.scss create mode 100644 app/application/resources/site/scss/reset.scss create mode 100644 app/application/resources/views/components/site/choose-language.blade.php create mode 100644 app/application/resources/views/layout/home.blade.php create mode 100644 app/application/resources/views/layout/site.blade.php create mode 100644 app/application/resources/views/site/page-without-translation.blade.php create mode 100644 app/application/resources/views/site/projects/about.blade.php create mode 100644 app/application/resources/views/site/projects/index.blade.php create mode 100644 app/application/routes/web-project.php diff --git a/app/application/app/Dto/Builder/Project.php b/app/application/app/Dto/Builder/Project.php index 19127b0..8d777fa 100644 --- a/app/application/app/Dto/Builder/Project.php +++ b/app/application/app/Dto/Builder/Project.php @@ -2,9 +2,16 @@ namespace App\Dto\Builder; +use App\Models\User; + final readonly class Project { public function __construct( - + private ?bool $isPublic = null, ) { } + + public function isPublic(): ?bool + { + return $this->isPublic; + } } diff --git a/app/application/app/Enums/CacheTag.php b/app/application/app/Enums/CacheTag.php new file mode 100644 index 0000000..1ff3862 --- /dev/null +++ b/app/application/app/Enums/CacheTag.php @@ -0,0 +1,16 @@ +value); + } +} diff --git a/app/application/app/Enums/Site/ProjectSection.php b/app/application/app/Enums/Site/ProjectSection.php new file mode 100644 index 0000000..e8287db --- /dev/null +++ b/app/application/app/Enums/Site/ProjectSection.php @@ -0,0 +1,31 @@ +http_host === null) { + $prefixProject = 'project.'; + $parameters['project'] = $project->code; + } + + $prefixLanguage = ''; + if ($language?->is_default === false) { + $parameters['language'] = $language->code; + $prefixLanguage = '-language'; + } + + return match ($this) { + self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters), + }; + } +} diff --git a/app/application/app/Http/Controllers/Site/Controller.php b/app/application/app/Http/Controllers/Site/Controller.php new file mode 100644 index 0000000..28edf22 --- /dev/null +++ b/app/application/app/Http/Controllers/Site/Controller.php @@ -0,0 +1,18 @@ + $result->getProject(), + 'language' => $result->getLanguage(), + ]); + } +} diff --git a/app/application/app/Http/Controllers/Site/ProjectsController.php b/app/application/app/Http/Controllers/Site/ProjectsController.php new file mode 100644 index 0000000..3c61c3d --- /dev/null +++ b/app/application/app/Http/Controllers/Site/ProjectsController.php @@ -0,0 +1,62 @@ +user(); + + if (\is_null($request->project)) { + if (!\is_null($language)) { + abort(404); + } + + $with = ['storage']; + $result = $this->projectService->getProjects($user, $with); + if ($result->isError()) { + $this->errors($result); + } + + return \view('site.projects.index', $result->getData()); + } + + $result = $this->projectService->getAboutByProject($request->project, $language, $request->user()); + if ($result->isError()) { + $this->errors($result); + } + if ($result->isTranslation()) { + return $this->viewPageWithoutTranslation($result); + } + + return \view('site.projects.about', $result->getData()); + } + + public function about(string $project, Request $request, ?string $language = null) + { + $result = $this->projectService->getAbout($project, $language, $request->user()); + if ($result->isError()) { + $this->errors($result); + } + if ($result->isTranslation()) { + return $this->viewPageWithoutTranslation($result); + } + + if ($result->getProject()->http_href !== null) { + $link = ProjectSection::Home->url($result->getProject(), $result->getLanguage()); + return \redirect($result->getProject()->http_href . $link, 302); + } + + return \view('site.projects.about', $result->getData()); + } +} diff --git a/app/application/app/Http/Middleware/AdminPanel.php b/app/application/app/Http/Middleware/AdminPanel.php index 4ff3f8b..ec9355f 100644 --- a/app/application/app/Http/Middleware/AdminPanel.php +++ b/app/application/app/Http/Middleware/AdminPanel.php @@ -6,7 +6,7 @@ use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; -class AdminPanel +final class AdminPanel { /** * Handle an incoming request. diff --git a/app/application/app/Http/Middleware/Project.php b/app/application/app/Http/Middleware/Project.php new file mode 100644 index 0000000..a374785 --- /dev/null +++ b/app/application/app/Http/Middleware/Project.php @@ -0,0 +1,50 @@ +route()?->parameter('project'); + if ($projectCode === null) { + abort(404); + } + + $seconds = 3600; + $project = CacheTag::Project->getCache()->remember(self::class . $projectCode, $seconds, function () use ($projectCode) { + return $this->projectRepository->getProjectByCode($projectCode) ?? false; + }); + if ($project === false) { + abort(404); + } + + unset($request->route()->parameters['project']); + + $routeName = $request->route()->getName(); + if ( + $routeName !== null + && $project->http_host !== null + && $project->http_host !== $request->getSchemeAndHttpHost() + ) { + $routeName = Str::of($routeName)->replaceStart('project.', '')->toString(); + $route = \route($routeName, $request->route()->parameters(), false); + return redirect($project->http_host . $route, 302); + } + + $request->merge(['project' => $project]); + + return $next($request); + } +} diff --git a/app/application/app/Http/Middleware/ProjectDomain.php b/app/application/app/Http/Middleware/ProjectDomain.php new file mode 100644 index 0000000..be4a7a5 --- /dev/null +++ b/app/application/app/Http/Middleware/ProjectDomain.php @@ -0,0 +1,32 @@ +getSchemeAndHttpHost(); + + $seconds = 3600; + $project = CacheTag::Project->getCache()->remember(self::class . $httpHost, $seconds, function () use ($httpHost) { + return $this->projectRepository->getProjectByHttpHost($httpHost) ?? false; + }); + if ($project === false) { + $project = null; + } + $request->merge(['project' => $project]); + + return $next($request); + } +} diff --git a/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php index cf68e57..6af4e5e 100644 --- a/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php +++ b/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php @@ -18,10 +18,12 @@ class StoreUpdateRequest extends FormRequest implements FormRequestDto */ public function rules(): array { + $projectId = $this->project ?? null; + return [ 'name' => ['required', 'string', 'max:255'], - 'code' => ['required', 'string', 'min:3', 'max:255', 'regex:/^[a-z0-9_-]+$/i'], - 'http_host' => ['nullable', 'string', 'max:255', new HttpHost()], + 'code' => ['required', 'string', 'min:3', 'max:255', 'regex:/^[a-z0-9_-]+$/'], + 'http_host' => ['nullable', 'string', 'max:255', new HttpHost(), 'unique:projects,http_host,' . $projectId], 'is_public' => ['required', 'boolean'], 'logo.file' => ['nullable', 'numeric', 'min:1'], @@ -29,7 +31,7 @@ public function rules(): array 'languages.items.*.id' => ['nullable', 'numeric'], 'languages.items.*.title' => ['required', 'string', 'max:255'], - 'languages.items.*.code' => ['required', 'string', 'min:2', 'max:30', 'regex:/^[a-zA-Z_]+$/i'], + 'languages.items.*.code' => ['required', 'string', 'min:2', 'max:30', 'regex:/^[a-z_]+$/'], 'languages.items.*.sort' => ['required', 'numeric', 'min:-1000', 'max:1000'], 'languages.default' => ['required', 'numeric', function (string $attribute, mixed $value, \Closure $fail) { $languages = $this->input('languages.items', []); diff --git a/app/application/app/Providers/AppServiceProvider.php b/app/application/app/Providers/AppServiceProvider.php index cdf595d..20abed2 100644 --- a/app/application/app/Providers/AppServiceProvider.php +++ b/app/application/app/Providers/AppServiceProvider.php @@ -12,6 +12,7 @@ use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Contracts\Foundation\Application; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\ServiceProvider; @@ -56,6 +57,9 @@ public function boot(): void Relation::enforceMorphMap(Morph::map()); + Route::pattern('language', '[a-z_]+'); + Route::pattern('project', '[a-z0-9_-]+'); + $this->configureRateLimiting(); Gate::define('AdminPanel', [\App\Policies\AdminPanel::class, 'view']); } diff --git a/app/application/app/Repositories/ProjectLanguageRepository.php b/app/application/app/Repositories/ProjectLanguageRepository.php index eec7bb7..6b7e4b5 100644 --- a/app/application/app/Repositories/ProjectLanguageRepository.php +++ b/app/application/app/Repositories/ProjectLanguageRepository.php @@ -2,10 +2,20 @@ namespace App\Repositories; +use App\Models\Project; use App\Models\ProjectLanguage; final class ProjectLanguageRepository { + public function getProjectLanguageByCodeOrDefault(Project $project, ?string $code): ?ProjectLanguage + { + if (\is_null($code)) { + return $project->languages()->where('is_default', true)->first(); + } + + return $project->languages()->where('code', $code)->first(); + } + public function isExistsLanguageById(int $projectId, int $languageId): bool { return ProjectLanguage::query() diff --git a/app/application/app/Repositories/ProjectLinkRepository.php b/app/application/app/Repositories/ProjectLinkRepository.php index 3491e7a..6c29ba4 100644 --- a/app/application/app/Repositories/ProjectLinkRepository.php +++ b/app/application/app/Repositories/ProjectLinkRepository.php @@ -3,10 +3,13 @@ namespace App\Repositories; use App\Contracts\Search; +use App\Models\Project; use App\Services\ProjectLink\BuilderCommand; use App\Services\Search\CreateSearchInstanceCommand; use App\Dto\Builder\ProjectLink as ProjectLinkBuilderDto; use App\Models\ProjectLink; +use Illuminate\Support\Collection; +use Illuminate\Database\Eloquent\Builder; final readonly class ProjectLinkRepository { @@ -29,4 +32,11 @@ public function getLinkById(int $id): ?ProjectLink { return ProjectLink::query()->where('id', $id)->first(); } + + public function getLinksByProject(Project $project, int $languageId): Collection + { + return $project->links()->where(function (Builder $query) use ($languageId) { + $query->whereNull('language_id')->orWhere('language_id', $languageId); + })->get(); + } } diff --git a/app/application/app/Repositories/ProjectRepository.php b/app/application/app/Repositories/ProjectRepository.php index a28e88e..59c424a 100644 --- a/app/application/app/Repositories/ProjectRepository.php +++ b/app/application/app/Repositories/ProjectRepository.php @@ -26,6 +26,11 @@ public function getProjects(ProjectBuilderDto $projectBuilderDto, array $with = return $this->createSearchInstanceCommand->execute($query); } + public function getProjectByHttpHost(string $httpHost): ?Project + { + return Project::query()->where('http_host', $httpHost)->first(); + } + public function getProjectById(int $id): ?Project { return Project::query()->where('id', $id)->first(); diff --git a/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php b/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php new file mode 100644 index 0000000..af3e03d --- /dev/null +++ b/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php @@ -0,0 +1,37 @@ +isTranslation; + } + + public function getData(): array + { + return $this->data; + } + + public function getProject(): Project + { + return $this->project; + } + + public function getLanguage(): ProjectLanguage + { + return $this->language; + } +} diff --git a/app/application/app/Services/Admin/ProjectService.php b/app/application/app/Services/Admin/ProjectService.php index 7b6334c..ccc05dd 100644 --- a/app/application/app/Services/Admin/ProjectService.php +++ b/app/application/app/Services/Admin/ProjectService.php @@ -5,6 +5,7 @@ use App\Dto\Builder\Project as ProjectBuilderDto; use App\Dto\QuerySettingsDto; use App\Dto\Service\Admin\Project\StoreUpdate; +use App\Enums\CacheTag; use App\Enums\Morph; use App\Models\Project; use App\Models\ProjectLanguage; @@ -14,6 +15,7 @@ use App\ServiceResults\ServiceResultError; use App\ServiceResults\ServiceResultSuccess; use App\ServiceResults\StoreUpdateResult; +use App\Services\ClearCacheCommandHandler; use App\Services\Project\ProjectCommandHandler; use App\Services\ProjectLanguage\ModelSyncCommand; use App\Services\Role\CreateAdminRoleForProjectCommand; @@ -29,6 +31,7 @@ public function __construct( private readonly CreateAdminRoleForProjectCommand $createAdminRoleForProjectCommand, private readonly ModelSyncCommand $languageModelSyncCommand, private readonly StorageService $storageService, + private readonly ClearCacheCommandHandler $clearCacheCommandHandler, ) { } public function index(ProjectBuilderDto $projectBuilderDto, QuerySettingsDto $querySettingsDto, User $user): ServiceResultError | ServiceResultArray @@ -130,6 +133,7 @@ public function store(StoreUpdate $data, User $user): ServiceResultError | Store return $project; }); + $this->clearCacheCommandHandler->byTag(CacheTag::Project); } catch (\Throwable $e) { report($e); return $this->errService(__('Server Error')); @@ -172,6 +176,7 @@ public function update(int $id, StoreUpdate $data, User $user): ServiceResultErr return $project; }); + $this->clearCacheCommandHandler->byTag(CacheTag::Project); } catch (\Throwable $e) { report($e); return $this->errService(__('Server Error')); @@ -196,6 +201,7 @@ public function destroy(int $id, User $user): ServiceResultError|ServiceResultSu DB::transaction(function () use ($project) { $this->projectCommandHandler->handleDestroy($project); }); + $this->clearCacheCommandHandler->byTag(CacheTag::Project); } catch (\Throwable $e) { report($e); return $this->errService(__('Server Error')); diff --git a/app/application/app/Services/ClearCacheCommandHandler.php b/app/application/app/Services/ClearCacheCommandHandler.php new file mode 100644 index 0000000..73c9ff9 --- /dev/null +++ b/app/application/app/Services/ClearCacheCommandHandler.php @@ -0,0 +1,13 @@ +getCache()->flush(); + } +} diff --git a/app/application/app/Services/Project/BuilderCommand.php b/app/application/app/Services/Project/BuilderCommand.php index 3bafbea..abf10df 100644 --- a/app/application/app/Services/Project/BuilderCommand.php +++ b/app/application/app/Services/Project/BuilderCommand.php @@ -10,6 +10,10 @@ { public function execute(Relation | Builder $query, ProjectBuilderDto $projectBuilderDto): Relation | Builder { + if ($projectBuilderDto->isPublic() !== null) { + $query->where('is_public', $projectBuilderDto->isPublic()); + } + return $query; } } diff --git a/app/application/app/Services/Service.php b/app/application/app/Services/Service.php index 947ec95..44adf5e 100644 --- a/app/application/app/Services/Service.php +++ b/app/application/app/Services/Service.php @@ -2,12 +2,16 @@ namespace App\Services; +use App\Models\Project; +use App\Models\ProjectLanguage; use App\ServiceResults\ServiceResultArray; use App\ServiceResults\ServiceResultError; use App\ServiceResults\ServiceResultSuccess; +use App\ServiceResults\Site\PagePossibleWithoutTranslation; use App\ServiceResults\StoreUpdateResult; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Response; +use Illuminate\Support\Facades\Cache; abstract class Service { @@ -56,6 +60,11 @@ final protected function result(array $data = []): ServiceResultArray return new ServiceResultArray(data: $data); } + final protected function resultSitePage(Project $project, ProjectLanguage $language, array $data, bool $isTranslation): PagePossibleWithoutTranslation + { + return new PagePossibleWithoutTranslation($project, $language, $data, $isTranslation); + } + final protected function error(int $code, string $message, array $errors = []): ServiceResultError { return new ServiceResultError( diff --git a/app/application/app/Services/Site/ProjectService.php b/app/application/app/Services/Site/ProjectService.php new file mode 100644 index 0000000..8573a23 --- /dev/null +++ b/app/application/app/Services/Site/ProjectService.php @@ -0,0 +1,73 @@ +cannot('viewAny', Project::class)) { + $isPublic = true; + } + $projectBuilderDto = new ProjectBuilderDto( + isPublic: $isPublic, + ); + $projects = $this->projectRepository->getProjects($projectBuilderDto, $with); + + return $this->result([ + 'projects' => $projects->all(), + ]); + } + + public function getAbout(string $projectCode, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation + { + $project = $this->projectRepository->getProjectByCode($projectCode); + if (\is_null($project)) { + return $this->errNotFound('Project not found'); + } + + return $this->getAboutByProject($project, $languageCode, $user); + } + + public function getAboutByProject(Project $project, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation + { + if ( + $project->is_public === false + && ( $user === null || $user->cannot('view', $project) ) + ) { + return $this->errFobidden(__('Access is denied')); + } + $language = $this->projectLanguageRepository->getProjectLanguageByCodeOrDefault($project, $languageCode); + if (!$language) { + return $this->errNotFound(__('Language not found')); + } + + $data = [ + 'project' => $project, + 'language' => $language, + 'content' => $this->projectContentRepository->getContentByLanguageId($project->id, $language->id), + 'links' => $this->projectLinkRepository->getLinksByProject($project, $language->id), + ]; + return $this->resultSitePage($project, $language, $data, \is_null($data['content'])); + } +} diff --git a/app/application/app/View/Components/HomeLayout.php b/app/application/app/View/Components/HomeLayout.php new file mode 100644 index 0000000..64c1fb4 --- /dev/null +++ b/app/application/app/View/Components/HomeLayout.php @@ -0,0 +1,14 @@ +getRequestUri() )->rtrim('/'); + if ($link->endsWith('/language/' . $this->language->code)) { + $link = $link->replace('/language/' . $this->language->code, '', false); + } + + return view('components.site.choose-language', [ + 'language' => $this->language, + 'languages' => $this->languages, + 'link' => (string) $link, + ]); + } +} diff --git a/app/application/app/View/Components/Site/Layout.php b/app/application/app/View/Components/Site/Layout.php new file mode 100644 index 0000000..a0f13f5 --- /dev/null +++ b/app/application/app/View/Components/Site/Layout.php @@ -0,0 +1,26 @@ + $this->project, + 'logo' => $this->project->getStorageOne(StorageType::Logo), + 'language' => $this->language, + ]); + } +} diff --git a/app/application/bootstrap/app.php b/app/application/bootstrap/app.php index 7b162da..f877115 100644 --- a/app/application/bootstrap/app.php +++ b/app/application/bootstrap/app.php @@ -3,12 +3,23 @@ use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; +use Illuminate\Support\Facades\Route; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', + then: function () { + Route::middleware([\App\Http\Middleware\ProjectDomain::class])->group(base_path('routes/web-project.php')); + Route::middleware([ + \App\Http\Middleware\ProjectDomain::class, + \App\Http\Middleware\Project::class, + ]) + ->prefix('project/{project}') + ->as('project.') + ->group(base_path('routes/web-project.php')); + }, ) ->withMiddleware(function (Middleware $middleware) { // diff --git a/app/application/lang/en.json b/app/application/lang/en.json index c30cdf8..1e550c9 100644 --- a/app/application/lang/en.json +++ b/app/application/lang/en.json @@ -254,4 +254,6 @@ "The link was successfully created": "The link was successfully created", "The link was successfully updated": "The link was successfully updated", "The link has been deleted": "The link has been deleted", + "Language not found": "Language not found", + "Project not found": "Project not found" } diff --git a/app/application/lang/en/site.php b/app/application/lang/en/site.php new file mode 100644 index 0000000..7dded98 --- /dev/null +++ b/app/application/lang/en/site.php @@ -0,0 +1,10 @@ + "Menu", + 'Projects' => 'Projects', + 'Project' => 'Project', + 'About project' => 'About the project', + 'Page without translation' => 'Page without translation', + 'Powered by service' => 'Powered by the My Projects website engine', + 'Choose language' => 'Choose language', +]; diff --git a/app/application/lang/ru.json b/app/application/lang/ru.json index 9a93a3c..c513d72 100644 --- a/app/application/lang/ru.json +++ b/app/application/lang/ru.json @@ -253,5 +253,7 @@ "in all languages": "на всех языках", "The link was successfully created": "Ссылка успешно создана", "The link was successfully updated": "Ссылка успешно обновлена", - "The link has been deleted": "Ссылка удалена" + "The link has been deleted": "Ссылка удалена", + "Language not found": "Язык не найден", + "Project not found": "Проект не найден" } diff --git a/app/application/lang/ru/site.php b/app/application/lang/ru/site.php new file mode 100644 index 0000000..380df94 --- /dev/null +++ b/app/application/lang/ru/site.php @@ -0,0 +1,10 @@ + "Меню", + 'Projects' => 'Проекты', + 'Project' => 'Проект', + 'About project' => 'О проекте', + 'Page without translation' => 'Страница без перевода', + 'Powered by service' => 'Работает на движке сайта «Мои проекты»', + 'Choose language' => 'Выберите язык', +]; diff --git a/app/application/resources/home/scss/app.scss b/app/application/resources/home/scss/app.scss new file mode 100644 index 0000000..288c278 --- /dev/null +++ b/app/application/resources/home/scss/app.scss @@ -0,0 +1,72 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); +@import "reset"; + +body { + margin: 0 20px; + font-family: "Roboto", sans-serif; +} + +.projects-list { + padding: 0; + list-style: none; + a { + display: block; + text-decoration: none; + } + a:hover .projects-list__title { + box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.7); + } + li { + padding-bottom: 20px; + } +} +.projects-list__img { + display: block; + background: #ddd; + height: 150px; + img { + object-fit: contain; + max-width: 100%; + max-height: 100%; + margin: auto; + } +} +.projects-list__title { + background: #ccc; + font-size: 18px; + font-weight: bold; + display: block; + padding: 10px; + box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.3); + transition: box-shadow 0.3s ease-out; +} + +@media (min-width: 600px) { + .projects-list { + display: grid; + margin-left: -20px; + li { + margin-left: 20px; + } + } +} + +@media (min-width: 600px) and (max-width: 899px) { + .projects-list { + grid-template-columns: 1fr 1fr; + } +} +@media (min-width: 900px) and (max-width: 1100px) { + .projects-list { + grid-template-columns: 1fr 1fr 1fr; + } +} +@media (min-width: 1001px) { + body { + max-width: 1200px; + margin: 0 auto; + } + .projects-list { + grid-template-columns: 1fr 1fr 1fr 1fr; + } +} diff --git a/app/application/resources/home/scss/reset.scss b/app/application/resources/home/scss/reset.scss new file mode 100644 index 0000000..263554a --- /dev/null +++ b/app/application/resources/home/scss/reset.scss @@ -0,0 +1,73 @@ +/* Box sizing rules */ +*, +*::before, +*::after { + box-sizing: border-box; +} + +/* Prevent font size inflation */ +html { + -moz-text-size-adjust: none; + -webkit-text-size-adjust: none; + text-size-adjust: none; +} + +/* Remove default margin in favour of better control in authored CSS */ +body, h1, h2, h3, h4, p, +figure, blockquote, dl, dd { + margin-block-end: 0; +} + +/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ +ul[role='list'], +ol[role='list'] { + list-style: none; +} + +/* Set core body defaults */ +body { + min-height: 100vh; + line-height: 1.5; +} + +/* Set shorter line heights on headings and interactive elements */ +h1, h2, h3, h4, +button, input, label { + line-height: 1.1; +} + +/* Balance text wrapping on headings */ +h1, h2, +h3, h4 { + text-wrap: balance; +} + +/* A elements that don't have a class get default styles */ +a:not([class]) { + text-decoration-skip-ink: auto; + color: currentColor; +} + +/* Make images easier to work with */ +img, +picture { + max-width: 100%; + display: block; +} + +/* Inherit fonts for inputs and buttons */ +input, button, +textarea, select { + font-family: inherit; + font-size: inherit; +} + +/* Make sure textareas without a rows attribute are not tiny */ +textarea:not([rows]) { + min-height: 10em; +} + +/* Anything that has been anchored to should have extra scroll margin */ +:target { + scroll-margin-block: 5ex; +} diff --git a/app/application/resources/site/js/_choose-language.js b/app/application/resources/site/js/_choose-language.js new file mode 100644 index 0000000..3c62e18 --- /dev/null +++ b/app/application/resources/site/js/_choose-language.js @@ -0,0 +1,8 @@ +let blockLanguage = document.querySelector('#language'); +blockLanguage.querySelector('.language__button').addEventListener('click', (e) => { + if (blockLanguage.classList.contains('active')) { + blockLanguage.classList.remove('active'); + } else { + blockLanguage.classList.add('active'); + } +}); diff --git a/app/application/resources/site/js/_menu.js b/app/application/resources/site/js/_menu.js new file mode 100644 index 0000000..8ef4d10 --- /dev/null +++ b/app/application/resources/site/js/_menu.js @@ -0,0 +1,8 @@ +let body = document.querySelector('body'); +document.querySelector('#mobile-menu').addEventListener('click', (e) => { + if (body.classList.contains('mobile-menu-open')) { + body.classList.remove('mobile-menu-open'); + } else { + body.classList.add('mobile-menu-open'); + } +}); diff --git a/app/application/resources/site/js/app.js b/app/application/resources/site/js/app.js new file mode 100644 index 0000000..ade6ee6 --- /dev/null +++ b/app/application/resources/site/js/app.js @@ -0,0 +1,2 @@ +import './_menu.js'; +import './_choose-language.js'; diff --git a/app/application/resources/site/scss/app.scss b/app/application/resources/site/scss/app.scss new file mode 100644 index 0000000..e032aa3 --- /dev/null +++ b/app/application/resources/site/scss/app.scss @@ -0,0 +1,252 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap'); +@import "reset"; + +html, +body { + height: 100%; +} + +body { + font-family: "Roboto", sans-serif; + margin: 0; +} + +.wrapper { + display: flex; + flex-direction: column; + min-height: 100%; + + .main-container { + flex: 1 0 auto; + } + + .section-container { + display: flex; + flex: 1 0 auto; + min-height: 100%; + flex-direction: column; + + .content { + flex: 1 0 auto; + } + + .footer { + flex: 0 0 auto; + } + } +} + +.header { + display: grid; + grid-template-rows: 1fr; + grid-template-columns: 1fr 1fr; + grid-template-areas: + "logo menu" + "language language"; + padding: 8px; + box-shadow: 0 3px 9px rgba(0,0,0,0.48); + background: #eee; +} +.header_logo { + grid-area: logo; + max-height: 50px; + + a { + text-decoration: none; + } + + img { + max-height: 100%; + } + + strong { + color: #0a0e17; + font-size: 20px; + display: inline-block; + vertical-align: middle; + padding: 5px 10px; + border: 1px solid #0a0e17; + border-radius: 4px; + } +} +#mobile-menu { + grid-area: menu; + border: 0; + background: none; + color: #FF2D20; + margin-left: auto; + cursor: pointer; + position: relative; + z-index: 10; + + .open { + display: block; + } + + .close { + display: none; + margin-top: -5px; + } +} +#menu { + display: none; + + ul { + padding: 10px 0 0 20px; + margin: 0; + list-style: none; + } + + a { + display: block; + text-decoration: none; + font-size: 16px; + padding-top: 10px; + padding-bottom: 10px; + color: #0a0e17; + } + + a.active { + font-weight: bold; + } +} +.menu__title { + background: #ccc; + font-size: 24px; + font-weight: bold; + padding: 12px 0 12px 20px; + box-shadow: 0 3px 9px rgba(0,0,0,0.48); +} +body.mobile-menu-open { + #mobile-menu { + .open { + display: none; + } + + .close { + display: block; + } + } + #menu { + background: #ddd; + display: block; + position: fixed; + left: 0; + top: 0; + overflow: auto; + width: 100%; + height: 100%; + } +} +#language { + grid-area: language; + margin-top: 10px; +} +.language__block { + position: relative; +} +.language__button { + border: 0; + box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.48); + background: #ccc; + width: 100%; + cursor: pointer; + font-size: 18px; + position: relative; + padding: 10px; + border-radius: 5px; + color: #000; +} +.language__button__str { + position: absolute; + top: calc(50% - 8px); + right: 10px; +} +.language__list { + background: #ddd; + display: none; + position: absolute; + top: 100%; + left: 0; + width: 100%; + list-style: none; + box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.48); + padding: 10px 0; + margin: 0; + border-radius: 0 0 5px 5px; + + a { + text-decoration: none; + color: #000; + font-size: 16px; + display: block; + padding: 10px 20px; + } +} +#language.active { + .language__list { + display: block; + } + .language__button { + border-radius: 5px 5px 0 0; + } +} +.main-container { + display: flex; + flex-direction: column; +} +.content { + padding-left: 20px; + padding-right: 20px; + margin-bottom: 20px; + + h1 { + font-size: 24px; + font-weight: bold; + padding-bottom: 10px; + margin-bottom: 10px; + border-bottom: 1px solid #eee; + } +} + +.footer { + background-color: #eee; + padding: 15px 0 15px 15px; + box-shadow: 5px 0px 5px rgba(0,0,0,0.48); + + a { + text-decoration: none; + color: #0a0e17; + font-size: 18px; + font-weight: bold; + } +} + +@media (min-width: 1000px) { + body { + max-width: 1400px; + margin: 0 auto; + } + .header { + grid-template-areas: "logo language"; + grid-template-columns: 1fr 200px; + } + #mobile-menu { + display: none; + } + .main-container { + flex-direction: row; + } + .language__button { + padding: 7px 10px 7px 0; + } + #menu { + background: #eee; + display: block; + width: 175px; + box-shadow: 0px 7px 8px rgba(0,0,0,0.48); + } + .menu__title { + display: none; + } +} diff --git a/app/application/resources/site/scss/reset.scss b/app/application/resources/site/scss/reset.scss new file mode 100644 index 0000000..263554a --- /dev/null +++ b/app/application/resources/site/scss/reset.scss @@ -0,0 +1,73 @@ +/* Box sizing rules */ +*, +*::before, +*::after { + box-sizing: border-box; +} + +/* Prevent font size inflation */ +html { + -moz-text-size-adjust: none; + -webkit-text-size-adjust: none; + text-size-adjust: none; +} + +/* Remove default margin in favour of better control in authored CSS */ +body, h1, h2, h3, h4, p, +figure, blockquote, dl, dd { + margin-block-end: 0; +} + +/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ +ul[role='list'], +ol[role='list'] { + list-style: none; +} + +/* Set core body defaults */ +body { + min-height: 100vh; + line-height: 1.5; +} + +/* Set shorter line heights on headings and interactive elements */ +h1, h2, h3, h4, +button, input, label { + line-height: 1.1; +} + +/* Balance text wrapping on headings */ +h1, h2, +h3, h4 { + text-wrap: balance; +} + +/* A elements that don't have a class get default styles */ +a:not([class]) { + text-decoration-skip-ink: auto; + color: currentColor; +} + +/* Make images easier to work with */ +img, +picture { + max-width: 100%; + display: block; +} + +/* Inherit fonts for inputs and buttons */ +input, button, +textarea, select { + font-family: inherit; + font-size: inherit; +} + +/* Make sure textareas without a rows attribute are not tiny */ +textarea:not([rows]) { + min-height: 10em; +} + +/* Anything that has been anchored to should have extra scroll margin */ +:target { + scroll-margin-block: 5ex; +} diff --git a/app/application/resources/views/components/site/choose-language.blade.php b/app/application/resources/views/components/site/choose-language.blade.php new file mode 100644 index 0000000..9c15d25 --- /dev/null +++ b/app/application/resources/views/components/site/choose-language.blade.php @@ -0,0 +1,26 @@ +
    +
    + +
      + @foreach($languages as $lang) + @php + $code = ''; + if ($lang->is_default !== true) { + $code = '/language/' . $lang->code; + } else if($link === '') { + $code = '/'; + } + @endphp +
    • {{ $lang->title }}
    • + @endforeach +
    +
    +
    diff --git a/app/application/resources/views/layout/home.blade.php b/app/application/resources/views/layout/home.blade.php new file mode 100644 index 0000000..5e1a6af --- /dev/null +++ b/app/application/resources/views/layout/home.blade.php @@ -0,0 +1,16 @@ + + + + + + + @yield('meta_title', '') + + + + @vite('resources/home/scss/app.scss') + + + {{ $slot }} + + diff --git a/app/application/resources/views/layout/site.blade.php b/app/application/resources/views/layout/site.blade.php new file mode 100644 index 0000000..3440be9 --- /dev/null +++ b/app/application/resources/views/layout/site.blade.php @@ -0,0 +1,55 @@ + + + + + + + @yield('meta_title', '') + + + + @vite('resources/site/scss/app.scss') + + + + @vite('resources/site/js/app.js') + + diff --git a/app/application/resources/views/site/page-without-translation.blade.php b/app/application/resources/views/site/page-without-translation.blade.php new file mode 100644 index 0000000..a405f3b --- /dev/null +++ b/app/application/resources/views/site/page-without-translation.blade.php @@ -0,0 +1,5 @@ +@section('h1', __('site.Page without translation')) + + + + diff --git a/app/application/resources/views/site/projects/about.blade.php b/app/application/resources/views/site/projects/about.blade.php new file mode 100644 index 0000000..ff8225f --- /dev/null +++ b/app/application/resources/views/site/projects/about.blade.php @@ -0,0 +1,6 @@ +@section('meta_title', __('site.Project') . ': ' . $content->title) +@section('h1', $content->title) + + + {!! $content->description !!} + diff --git a/app/application/resources/views/site/projects/index.blade.php b/app/application/resources/views/site/projects/index.blade.php new file mode 100644 index 0000000..386f2ba --- /dev/null +++ b/app/application/resources/views/site/projects/index.blade.php @@ -0,0 +1,18 @@ +@section('meta_title', __('site.Projects')) + + +

    {{ __('site.Projects') }}

    + +
    diff --git a/app/application/routes/web-project.php b/app/application/routes/web-project.php new file mode 100644 index 0000000..5692160 --- /dev/null +++ b/app/application/routes/web-project.php @@ -0,0 +1,6 @@ +name('home'); +Route::get('/language/{language}', [\App\Http\Controllers\Site\ProjectsController::class, 'index'])->name('home-language'); diff --git a/app/application/vite.config.js b/app/application/vite.config.js index dd794b1..04dcacf 100644 --- a/app/application/vite.config.js +++ b/app/application/vite.config.js @@ -8,6 +8,11 @@ export default defineConfig({ input: [ 'resources/volt/scss/app.scss', 'resources/volt/js/app.js', + + 'resources/home/scss/app.scss', + + 'resources/site/scss/app.scss', + 'resources/site/js/app.js', ], refresh: true, }), From 05fabd7650f26dd55cbd3ce554799693c981cb93 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 18 Apr 2024 21:46:22 +0500 Subject: [PATCH 10/20] Refactoring. Removed unnecessary methods. --- .../Controllers/Site/ProjectsController.php | 18 ------------------ .../app/Services/Site/ProjectService.php | 10 ---------- 2 files changed, 28 deletions(-) diff --git a/app/application/app/Http/Controllers/Site/ProjectsController.php b/app/application/app/Http/Controllers/Site/ProjectsController.php index 3c61c3d..8febecd 100644 --- a/app/application/app/Http/Controllers/Site/ProjectsController.php +++ b/app/application/app/Http/Controllers/Site/ProjectsController.php @@ -41,22 +41,4 @@ public function index(Request $request, ?string $language = null): View return \view('site.projects.about', $result->getData()); } - - public function about(string $project, Request $request, ?string $language = null) - { - $result = $this->projectService->getAbout($project, $language, $request->user()); - if ($result->isError()) { - $this->errors($result); - } - if ($result->isTranslation()) { - return $this->viewPageWithoutTranslation($result); - } - - if ($result->getProject()->http_href !== null) { - $link = ProjectSection::Home->url($result->getProject(), $result->getLanguage()); - return \redirect($result->getProject()->http_href . $link, 302); - } - - return \view('site.projects.about', $result->getData()); - } } diff --git a/app/application/app/Services/Site/ProjectService.php b/app/application/app/Services/Site/ProjectService.php index 8573a23..8cfb9c1 100644 --- a/app/application/app/Services/Site/ProjectService.php +++ b/app/application/app/Services/Site/ProjectService.php @@ -39,16 +39,6 @@ public function getProjects(?User $user, array $with): ServiceResultError | Serv ]); } - public function getAbout(string $projectCode, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation - { - $project = $this->projectRepository->getProjectByCode($projectCode); - if (\is_null($project)) { - return $this->errNotFound('Project not found'); - } - - return $this->getAboutByProject($project, $languageCode, $user); - } - public function getAboutByProject(Project $project, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation { if ( From 435e793eb2ac96fb084a3838c70c762e6113aadc Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 18 Apr 2024 21:46:58 +0500 Subject: [PATCH 11/20] Added target="_blank". --- app/application/resources/views/site/projects/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/application/resources/views/site/projects/index.blade.php b/app/application/resources/views/site/projects/index.blade.php index 386f2ba..636b25c 100644 --- a/app/application/resources/views/site/projects/index.blade.php +++ b/app/application/resources/views/site/projects/index.blade.php @@ -8,7 +8,7 @@ $logo = $project->getStorageOne(\App\Enums\StorageType::Logo); @endphp
  • - + @if($logo){{ $project->name }}@endif {{ $project->name }} From a648ba3db9af7539aecbe14a5ee063bfbd40eae3 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 18 Apr 2024 21:47:47 +0500 Subject: [PATCH 12/20] Correcting the link to the project with your domain. --- app/application/app/Enums/Site/ProjectSection.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/application/app/Enums/Site/ProjectSection.php b/app/application/app/Enums/Site/ProjectSection.php index e8287db..5ab5228 100644 --- a/app/application/app/Enums/Site/ProjectSection.php +++ b/app/application/app/Enums/Site/ProjectSection.php @@ -24,8 +24,10 @@ public function url(Project $project, ?ProjectLanguage $language = null): string $prefixLanguage = '-language'; } - return match ($this) { - self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters), + $route = match ($this) { + self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters, false), }; + + return $project->http_host . $route; } } From 491249c8d8b2b6069fac2f042f8869c66f3ee691 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Mon, 22 Apr 2024 23:52:04 +0500 Subject: [PATCH 13/20] Added the ability to dynamically translate on the project website. --- .../Dto/Service/Admin/Project/Language.php | 23 ++++- .../Admin/Project/Translation/Translation.php | 23 +++++ .../Project/Translation/Translations.php | 35 +++++++ .../Admin/Project/Translation/Update.php | 17 ++++ app/application/app/Enums/CacheTag.php | 1 + app/application/app/Enums/Permission.php | 5 + .../Transaction/TranslationsException.php | 8 ++ .../Admin/Projects/TranslationsController.php | 54 +++++++++++ .../app/Http/Controllers/Site/Controller.php | 2 +- .../Controllers/Site/ProjectsController.php | 15 ++- .../{Project.php => ProjectAndLanguage.php} | 40 ++++---- ...omain.php => ProjectDomainAndLanguage.php} | 21 +++-- .../app/Http/Middleware/ProjectLanguage.php | 43 +++++++++ .../Admin/Projects/StoreUpdateRequest.php | 10 ++ .../Projects/Translations/UpdateRequest.php | 38 ++++++++ .../app/Models/ProjectLanguage.php | 27 +++++- .../app/Models/ProjectTranslation.php | 26 ++++++ .../app/Policies/ProjectTranslationPolicy.php | 24 +++++ .../ProjectTranslationRepository.php | 25 +++++ .../Site/PagePossibleWithoutTranslation.php | 8 +- .../Admin/Project/TranslationService.php | 91 +++++++++++++++++++ .../ProjectLanguage/ModelSyncCommand.php | 2 + .../ProjectTranslation/ModelSyncCommand.php | 60 ++++++++++++ app/application/app/Services/Service.php | 6 +- .../app/Services/Site/ProjectService.php | 17 ++-- .../app/Services/WebsiteTranslations.php | 23 +++++ .../View/Components/Site/ChooseLanguage.php | 24 +++-- .../app/View/Components/Site/Layout.php | 6 +- .../View/Components/Volt/Forms/Languages.php | 16 +++- app/application/bootstrap/app.php | 7 +- ...em_language_to_project_languages_table.php | 30 ++++++ ..._19_084614_create_project_translations.php | 36 ++++++++ app/application/lang/en.json | 3 +- app/application/lang/en/admin-sections.php | 1 + app/application/lang/en/permissions.php | 1 + app/application/lang/en/validation.php | 7 ++ app/application/lang/ru.json | 3 +- app/application/lang/ru/admin-sections.php | 1 + app/application/lang/ru/permissions.php | 1 + app/application/lang/ru/validation.php | 7 ++ app/application/resources/site/scss/app.scss | 15 ++- .../views/admin/projects/links/edit.blade.php | 2 +- .../views/admin/projects/show.blade.php | 12 +++ .../projects/translations/edit.blade.php | 42 +++++++++ .../projects/translations/languages.blade.php | 36 ++++++++ .../components/site/choose-language.blade.php | 4 +- .../components/volt/forms/input.blade.php | 12 ++- .../components/volt/forms/languages.blade.php | 6 +- .../volt/forms/languages/input.blade.php | 2 +- .../volt/forms/languages/language.blade.php | 35 +++++-- .../forms/languages/system_lang.blade.php | 9 ++ .../resources/views/layout/site.blade.php | 12 +-- .../site/page-without-translation.blade.php | 4 +- .../views/site/projects/about.blade.php | 4 +- app/application/routes/web.php | 4 + 55 files changed, 867 insertions(+), 119 deletions(-) create mode 100644 app/application/app/Dto/Service/Admin/Project/Translation/Translation.php create mode 100644 app/application/app/Dto/Service/Admin/Project/Translation/Translations.php create mode 100644 app/application/app/Dto/Service/Admin/Project/Translation/Update.php create mode 100644 app/application/app/Exceptions/Dto/Admin/Project/Transaction/TranslationsException.php create mode 100644 app/application/app/Http/Controllers/Admin/Projects/TranslationsController.php rename app/application/app/Http/Middleware/{Project.php => ProjectAndLanguage.php} (56%) rename app/application/app/Http/Middleware/{ProjectDomain.php => ProjectDomainAndLanguage.php} (52%) create mode 100644 app/application/app/Http/Middleware/ProjectLanguage.php create mode 100644 app/application/app/Http/Requests/Admin/Projects/Translations/UpdateRequest.php create mode 100644 app/application/app/Models/ProjectTranslation.php create mode 100644 app/application/app/Policies/ProjectTranslationPolicy.php create mode 100644 app/application/app/Repositories/ProjectTranslationRepository.php create mode 100644 app/application/app/Services/Admin/Project/TranslationService.php create mode 100644 app/application/app/Services/ProjectTranslation/ModelSyncCommand.php create mode 100644 app/application/app/Services/WebsiteTranslations.php create mode 100644 app/application/database/migrations/2024_04_18_144547_add_system_language_to_project_languages_table.php create mode 100644 app/application/database/migrations/2024_04_19_084614_create_project_translations.php create mode 100644 app/application/resources/views/admin/projects/translations/edit.blade.php create mode 100644 app/application/resources/views/admin/projects/translations/languages.blade.php create mode 100644 app/application/resources/views/components/volt/forms/languages/system_lang.blade.php diff --git a/app/application/app/Dto/Service/Admin/Project/Language.php b/app/application/app/Dto/Service/Admin/Project/Language.php index c8fb97d..468db45 100644 --- a/app/application/app/Dto/Service/Admin/Project/Language.php +++ b/app/application/app/Dto/Service/Admin/Project/Language.php @@ -3,15 +3,18 @@ namespace App\Dto\Service\Admin\Project; use App\Dto\Service\Dto; +use App\Enums\Lang; final readonly class Language extends Dto { public function __construct( - private string $title, - private string $code, - private int $sort, - private bool $isDefault, - private ?int $id, + private string $title, + private string $code, + private int $sort, + private bool $isDefault, + private ?string $isoCode = null, + private ?Lang $systemLang = null, + private ?int $id = null, ) { } public function getTitle(): string @@ -38,4 +41,14 @@ public function getId(): ?int { return $this->id; } + + public function getIsoCode(): ?string + { + return $this->isoCode; + } + + public function getSystemLang(): ?Lang + { + return $this->systemLang; + } } diff --git a/app/application/app/Dto/Service/Admin/Project/Translation/Translation.php b/app/application/app/Dto/Service/Admin/Project/Translation/Translation.php new file mode 100644 index 0000000..0dc89fb --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/Translation/Translation.php @@ -0,0 +1,23 @@ +code; + } + + public function getText(): ?string + { + return $this->text; + } +} diff --git a/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php b/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php new file mode 100644 index 0000000..a0ac031 --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php @@ -0,0 +1,35 @@ +translations[] = new Translation($code, $text); + } + + public function getTranslations(): array + { + return $this->translations; + } + + public static function getTranslationCodes(): array + { + return [ + 'site.Menu', + 'site.Powered by service', + 'site.About project', + 'site.Choose language', + 'site.Page without translation', + 'site.Project', + ]; + } +} diff --git a/app/application/app/Dto/Service/Admin/Project/Translation/Update.php b/app/application/app/Dto/Service/Admin/Project/Translation/Update.php new file mode 100644 index 0000000..3ce9e24 --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/Translation/Update.php @@ -0,0 +1,17 @@ +translations; + } +} diff --git a/app/application/app/Enums/CacheTag.php b/app/application/app/Enums/CacheTag.php index 1ff3862..316900c 100644 --- a/app/application/app/Enums/CacheTag.php +++ b/app/application/app/Enums/CacheTag.php @@ -8,6 +8,7 @@ enum CacheTag: string { case Project = 'project'; + case ProjectTranslation = 'project_translation'; public function getCache(): TaggedCache { diff --git a/app/application/app/Enums/Permission.php b/app/application/app/Enums/Permission.php index bdf8d14..652a7d5 100644 --- a/app/application/app/Enums/Permission.php +++ b/app/application/app/Enums/Permission.php @@ -10,6 +10,7 @@ enum Permission: string case Project = 'project'; case ProjectContent = 'project-content'; case ProjectLink = 'project-link'; + case ProjectTranslation = 'project-translation'; public function getPermissions(): array { @@ -22,6 +23,10 @@ public function getPermissions(): array 'create' => __('permissions.Allowed to create'), 'update' => __('permissions.Allowed to edit'), ], + self::ProjectTranslation => [ + 'view' => __('permissions.Allowed to watch'), + 'update' => __('permissions.Allowed to edit'), + ], default => $this->getBasePermissions() }; diff --git a/app/application/app/Exceptions/Dto/Admin/Project/Transaction/TranslationsException.php b/app/application/app/Exceptions/Dto/Admin/Project/Transaction/TranslationsException.php new file mode 100644 index 0000000..b0b04a7 --- /dev/null +++ b/app/application/app/Exceptions/Dto/Admin/Project/Transaction/TranslationsException.php @@ -0,0 +1,8 @@ +user(); + $result = $this->translationService->languages($projectId, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/translations/languages', $result->getData()); + } + + public function edit(int $projectId, int $languageId, Request $request): View + { + $user = $request->user(); + $result = $this->translationService->edit($projectId, $languageId, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin/projects/translations/edit', $result->getData()); + } + + public function update(int $projectId, int $languageId, UpdateRequest $request): RedirectResponse + { + $user = $request->user(); + $data = $request->getDto(); + $result = $this->translationService->update($projectId, $languageId, $data, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + return redirect()->route('admin.projects.translations.edit', [ + 'project' => $projectId, + 'language' => $languageId, + ])->withSuccess($result->getMessage()); + } +} diff --git a/app/application/app/Http/Controllers/Site/Controller.php b/app/application/app/Http/Controllers/Site/Controller.php index 28edf22..1a23afd 100644 --- a/app/application/app/Http/Controllers/Site/Controller.php +++ b/app/application/app/Http/Controllers/Site/Controller.php @@ -12,7 +12,7 @@ protected function viewPageWithoutTranslation(PagePossibleWithoutTranslation $re { return \view('site.page-without-translation', [ 'project' => $result->getProject(), - 'language' => $result->getLanguage(), + 'websiteTranslations' => $result->getWebsiteTranslations(), ]); } } diff --git a/app/application/app/Http/Controllers/Site/ProjectsController.php b/app/application/app/Http/Controllers/Site/ProjectsController.php index 8febecd..cd227ac 100644 --- a/app/application/app/Http/Controllers/Site/ProjectsController.php +++ b/app/application/app/Http/Controllers/Site/ProjectsController.php @@ -2,7 +2,6 @@ namespace App\Http\Controllers\Site; -use App\Enums\Site\ProjectSection; use App\Services\Site\ProjectService; use Illuminate\Http\Request; use Illuminate\View\View; @@ -13,15 +12,13 @@ public function __construct( private readonly ProjectService $projectService, ) { } - public function index(Request $request, ?string $language = null): View + public function index(Request $request): View { - $user = $request->user(); - - if (\is_null($request->project)) { - if (!\is_null($language)) { - abort(404); - } + $user = $request->user(); + $project = $request->get('project'); + $websiteTranslations = $request->get('websiteTranslations'); + if (\is_null($project)) { $with = ['storage']; $result = $this->projectService->getProjects($user, $with); if ($result->isError()) { @@ -31,7 +28,7 @@ public function index(Request $request, ?string $language = null): View return \view('site.projects.index', $result->getData()); } - $result = $this->projectService->getAboutByProject($request->project, $language, $request->user()); + $result = $this->projectService->getAboutByProject($project, $websiteTranslations, $request->user()); if ($result->isError()) { $this->errors($result); } diff --git a/app/application/app/Http/Middleware/Project.php b/app/application/app/Http/Middleware/ProjectAndLanguage.php similarity index 56% rename from app/application/app/Http/Middleware/Project.php rename to app/application/app/Http/Middleware/ProjectAndLanguage.php index a374785..15215af 100644 --- a/app/application/app/Http/Middleware/Project.php +++ b/app/application/app/Http/Middleware/ProjectAndLanguage.php @@ -3,23 +3,17 @@ namespace App\Http\Middleware; use App\Enums\CacheTag; -use App\Repositories\ProjectRepository; use Illuminate\Http\Request; -use Illuminate\Support\Str; use Symfony\Component\HttpFoundation\Response; use Closure; -class Project +class ProjectAndLanguage extends ProjectLanguage { - public function __construct( - private readonly ProjectRepository $projectRepository, - ) { } - public function handle(Request $request, Closure $next): Response { $projectCode = $request->route()?->parameter('project'); if ($projectCode === null) { - abort(404); + abort(Response::HTTP_NOT_FOUND); } $seconds = 3600; @@ -27,23 +21,27 @@ public function handle(Request $request, Closure $next): Response return $this->projectRepository->getProjectByCode($projectCode) ?? false; }); if ($project === false) { - abort(404); + abort(Response::HTTP_NOT_FOUND); + } + + if ( + $project->http_host !== null + && $project->http_host !== $request->getSchemeAndHttpHost() + ) { + return redirect($project->http_host, 302); + } + + $languageCode = $request->route()?->parameter('language'); + $websiteTranslations = $this->getWebsiteTranslations($project, $languageCode); + if (\is_null($websiteTranslations)) { + abort(Response::HTTP_NOT_FOUND); } unset($request->route()->parameters['project']); + unset($request->route()->parameters['language']); - $routeName = $request->route()->getName(); - if ( - $routeName !== null - && $project->http_host !== null - && $project->http_host !== $request->getSchemeAndHttpHost() - ) { - $routeName = Str::of($routeName)->replaceStart('project.', '')->toString(); - $route = \route($routeName, $request->route()->parameters(), false); - return redirect($project->http_host . $route, 302); - } - - $request->merge(['project' => $project]); + $request->attributes->set('project', $project); + $request->attributes->set('websiteTranslations', $websiteTranslations); return $next($request); } diff --git a/app/application/app/Http/Middleware/ProjectDomain.php b/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php similarity index 52% rename from app/application/app/Http/Middleware/ProjectDomain.php rename to app/application/app/Http/Middleware/ProjectDomainAndLanguage.php index be4a7a5..6503c95 100644 --- a/app/application/app/Http/Middleware/ProjectDomain.php +++ b/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php @@ -3,17 +3,12 @@ namespace App\Http\Middleware; use App\Enums\CacheTag; -use App\Repositories\ProjectRepository; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; -final class ProjectDomain +final class ProjectDomainAndLanguage extends ProjectLanguage { - public function __construct( - private readonly ProjectRepository $projectRepository, - ) { } - public function handle(Request $request, Closure $next): Response { $httpHost = $request->getSchemeAndHttpHost(); @@ -25,7 +20,19 @@ public function handle(Request $request, Closure $next): Response if ($project === false) { $project = null; } - $request->merge(['project' => $project]); + + $websiteTranslations = null; + if ($project !== null) { + $languageCode = $request->route()?->parameter('language'); + $websiteTranslations = $this->getWebsiteTranslations($project, $languageCode); + if (\is_null($websiteTranslations)) { + abort(Response::HTTP_NOT_FOUND); + } + } + + unset($request->route()->parameters['language']); + $request->attributes->set('project', $project); + $request->attributes->set('websiteTranslations', $websiteTranslations); return $next($request); } diff --git a/app/application/app/Http/Middleware/ProjectLanguage.php b/app/application/app/Http/Middleware/ProjectLanguage.php new file mode 100644 index 0000000..efaea63 --- /dev/null +++ b/app/application/app/Http/Middleware/ProjectLanguage.php @@ -0,0 +1,43 @@ +getCache()->remember(self::class . $project->id . '-' . $languageCode, $seconds, function () use ($project, $languageCode) { + return $this->projectLanguageRepository->getProjectLanguageByCodeOrDefault($project, $languageCode) ?? false; + }); + if ($language === false) { + return null; + } + if ($language !== null) { + if ($language->system_lang) { + App::setLocale($language->system_lang->getLocale()); + } + } + + $seconds = 3600 * 24; + $translations = CacheTag::ProjectTranslation->getCache()->remember(self::class . '-translations-' . $project->id . '-' . $language->id, $seconds, function () use ($project, $language) { + return $this->projectTranslationRepository->getProjectTranslations($project->id, $language->id)->all()->pluck('text', 'code')->toArray(); + }); + + return new WebsiteTranslations($language, $translations); + } +} diff --git a/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php index 6af4e5e..9917b3f 100644 --- a/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php +++ b/app/application/app/Http/Requests/Admin/Projects/StoreUpdateRequest.php @@ -7,9 +7,11 @@ use App\Dto\Service\Admin\Project\Languages; use App\Dto\Service\Admin\Project\StoreUpdate; use App\Dto\Service\Storage\Storages; +use App\Enums\Lang; use App\Enums\StorageType; use App\Rules\HttpHost; use Illuminate\Foundation\Http\FormRequest; +use Illuminate\Validation\Rules\Enum; class StoreUpdateRequest extends FormRequest implements FormRequestDto { @@ -33,6 +35,8 @@ public function rules(): array 'languages.items.*.title' => ['required', 'string', 'max:255'], 'languages.items.*.code' => ['required', 'string', 'min:2', 'max:30', 'regex:/^[a-z_]+$/'], 'languages.items.*.sort' => ['required', 'numeric', 'min:-1000', 'max:1000'], + 'languages.items.*.system_lang' => ['nullable', new Enum(Lang::class)], + 'languages.items.*.iso_code' => ['nullable', 'string', 'max:30', 'regex:/^[a-zA-Z-]+$/'], 'languages.default' => ['required', 'numeric', function (string $attribute, mixed $value, \Closure $fail) { $languages = $this->input('languages.items', []); if (!isset($languages[$value])) { @@ -81,11 +85,17 @@ private function languages(): Languages if ($languageId !== null) { $languageId = (int) $languageId; } + $systemLang = null; + if ($lang['system_lang'] !== null) { + $systemLang = Lang::tryFrom((int) $lang['system_lang']); + } $language = new Language( title: $lang['title'], code: $lang['code'], sort: (int) $lang['sort'], isDefault: ($default === $index), + isoCode: $lang['iso_code'] ?? null, + systemLang: $systemLang, id: $languageId, ); $languages->addLanguage($language); diff --git a/app/application/app/Http/Requests/Admin/Projects/Translations/UpdateRequest.php b/app/application/app/Http/Requests/Admin/Projects/Translations/UpdateRequest.php new file mode 100644 index 0000000..f185a2d --- /dev/null +++ b/app/application/app/Http/Requests/Admin/Projects/Translations/UpdateRequest.php @@ -0,0 +1,38 @@ + ['nullable', 'array'], + 'translations.*.code' => ['required', 'string', new In(Translations::getTranslationCodes())], + 'translations.*.text' => ['nullable', 'string', 'max:1000'], + ]; + } + + public function getDto(): Update + { + $translations = new Translations(); + foreach ($this->input('translations', []) as $translation) { + $translations->addTranslation( + code: $translation['code'], + text: $translation['text'] ?? null, + ); + } + + return new Update($translations); + } +} diff --git a/app/application/app/Models/ProjectLanguage.php b/app/application/app/Models/ProjectLanguage.php index a7b8f77..b6268ff 100644 --- a/app/application/app/Models/ProjectLanguage.php +++ b/app/application/app/Models/ProjectLanguage.php @@ -2,7 +2,9 @@ namespace App\Models; +use App\Enums\Lang; use App\Models\Scopes\SortScope; +use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; @@ -33,6 +35,8 @@ final class ProjectLanguage extends Model 'code', 'is_default', 'sort', + 'system_lang', + 'iso_code', ]; /** @@ -43,8 +47,27 @@ final class ProjectLanguage extends Model protected function casts(): array { return [ - 'is_default' => 'boolean', - 'sort' => 'integer', + 'is_default' => 'boolean', + 'sort' => 'integer', + 'system_lang' => Lang::class, ]; } + + protected function attributeLang(): Attribute + { + return Attribute::make( + get: function () { + + if ($this->iso_code) { + return $this->iso_code; + } + + if ($this->system_lang) { + return $this->system_lang->getLocale(); + } + + return $this->code; + }, + )->shouldCache(); + } } diff --git a/app/application/app/Models/ProjectTranslation.php b/app/application/app/Models/ProjectTranslation.php new file mode 100644 index 0000000..4961a96 --- /dev/null +++ b/app/application/app/Models/ProjectTranslation.php @@ -0,0 +1,26 @@ +hasPermission('project.view'); + } + + public function view(User $user, ProjectTranslation $translation): bool + { + return $user->hasPermission('project-translation.view'); + } + + public function update(User $user): bool + { + return $user->hasPermission('project-translation.update'); + } +} diff --git a/app/application/app/Repositories/ProjectTranslationRepository.php b/app/application/app/Repositories/ProjectTranslationRepository.php new file mode 100644 index 0000000..10bce6a --- /dev/null +++ b/app/application/app/Repositories/ProjectTranslationRepository.php @@ -0,0 +1,25 @@ +where('project_id', $projectId)->where('language_id', $languageId); + return $this->createSearchInstanceCommand->execute($query); + } + + public function getProjectTranslationsWithTrashed(int $projectId, int $languageId): Search + { + $query = ProjectTranslation::query()->withTrashed()->where('project_id', $projectId)->where('language_id', $languageId); + return $this->createSearchInstanceCommand->execute($query); + } +} diff --git a/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php b/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php index af3e03d..4ebc4fc 100644 --- a/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php +++ b/app/application/app/ServiceResults/Site/PagePossibleWithoutTranslation.php @@ -3,14 +3,14 @@ namespace app\ServiceResults\Site; use App\Models\Project; -use App\Models\ProjectLanguage; use App\ServiceResults\ServiceResult; +use App\Services\WebsiteTranslations; final class PagePossibleWithoutTranslation extends ServiceResult { public function __construct( private readonly Project $project, - private readonly ProjectLanguage $language, + private readonly WebsiteTranslations $websiteTranslations, private readonly array $data, private readonly bool $isTranslation, ) { } @@ -30,8 +30,8 @@ public function getProject(): Project return $this->project; } - public function getLanguage(): ProjectLanguage + public function getWebsiteTranslations(): WebsiteTranslations { - return $this->language; + return $this->websiteTranslations; } } diff --git a/app/application/app/Services/Admin/Project/TranslationService.php b/app/application/app/Services/Admin/Project/TranslationService.php new file mode 100644 index 0000000..b8482e5 --- /dev/null +++ b/app/application/app/Services/Admin/Project/TranslationService.php @@ -0,0 +1,91 @@ +projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('viewAny', ProjectTranslation::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'project' => $project, + ]); + } + + public function edit(int $projectId, int $languageId, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($projectId); + $language = $project?->languages()->firstWhere('id', $languageId); + + if (\is_null($project) || \is_null($language)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('viewAny', ProjectTranslation::class)) { + return $this->errFobidden(__('Access is denied')); + } + + return $this->result([ + 'project' => $project, + 'language' => $language, + 'projectTranslations' => $this->projectTranslationRepository->getProjectTranslations($projectId, $languageId)->all()->pluck('text', 'code')->toArray(), + 'translations' => Translations::getTranslationCodes(), + ]); + } + + public function update(int $projectId, int $languageId, Update $data, User $user): ServiceResultError | ServiceResultSuccess + { + $project = $this->projectRepository->getProjectById($projectId); + $language = $project?->languages()->firstWhere('id', $languageId); + + if (\is_null($project) || \is_null($language)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('update', ProjectTranslation::class)) { + return $this->errFobidden(__('Access is denied')); + } + + try { + DB::transaction(function () use ($data, $project, $language) { + $this->translationModelSyncCommand->execute($project, $language, $data->getTranslations()); + }); + $this->clearCacheCommandHandler->byTag(CacheTag::ProjectTranslation); + } catch (\Throwable $e) { + report($e); + return $this->errService(__('Server Error')); + } + + return $this->ok(__('Translations successfully updated')); + } +} diff --git a/app/application/app/Services/ProjectLanguage/ModelSyncCommand.php b/app/application/app/Services/ProjectLanguage/ModelSyncCommand.php index 51816fb..869363a 100644 --- a/app/application/app/Services/ProjectLanguage/ModelSyncCommand.php +++ b/app/application/app/Services/ProjectLanguage/ModelSyncCommand.php @@ -23,6 +23,8 @@ public function execute(Project $project, Languages $languages): void 'title' => $language->getTitle(), 'sort' => $language->getSort(), 'is_default' => $language->isDefault(), + 'system_lang' => $language->getSystemLang(), + 'iso_code' => $language->getIsoCode(), ]; if ($language->getId() !== null) { diff --git a/app/application/app/Services/ProjectTranslation/ModelSyncCommand.php b/app/application/app/Services/ProjectTranslation/ModelSyncCommand.php new file mode 100644 index 0000000..fce52d9 --- /dev/null +++ b/app/application/app/Services/ProjectTranslation/ModelSyncCommand.php @@ -0,0 +1,60 @@ +projectTranslationRepository->getProjectTranslationsWithTrashed($project->id, $language->id)->all(); + $insert = []; + foreach ($update->getTranslations() as $translation) { + /** @var Translation $translation */ + /** @var ProjectTranslation $modelTranslation */ + $modelTranslation = $modelTranslations->firstWhere('code', $translation->getCode()); + + if ($modelTranslation === null && $translation->getText() === null) { + continue; + } + + if ($modelTranslation === null && $translation->getText() !== null) { + $insert[] = [ + 'created_at' => Carbon::now(), + 'updated_at' => Carbon::now(), + 'project_id' => $project->id, + 'language_id' => $language->id, + 'code' => $translation->getCode(), + 'text' => $translation->getText(), + ]; + continue; + } + + if ($modelTranslation !== null && $translation->getText() === null) { + $modelTranslation->delete(); + continue; + } + + if ($modelTranslation->trashed()) { + $modelTranslation->deleted_at = null; + } + $modelTranslation->text = $translation->getText(); + $modelTranslation->save(); + } + + if (!empty($insert)) { + ProjectTranslation::query()->insert($insert); + } + } +} diff --git a/app/application/app/Services/Service.php b/app/application/app/Services/Service.php index 44adf5e..7d77602 100644 --- a/app/application/app/Services/Service.php +++ b/app/application/app/Services/Service.php @@ -3,7 +3,6 @@ namespace App\Services; use App\Models\Project; -use App\Models\ProjectLanguage; use App\ServiceResults\ServiceResultArray; use App\ServiceResults\ServiceResultError; use App\ServiceResults\ServiceResultSuccess; @@ -11,7 +10,6 @@ use App\ServiceResults\StoreUpdateResult; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Response; -use Illuminate\Support\Facades\Cache; abstract class Service { @@ -60,9 +58,9 @@ final protected function result(array $data = []): ServiceResultArray return new ServiceResultArray(data: $data); } - final protected function resultSitePage(Project $project, ProjectLanguage $language, array $data, bool $isTranslation): PagePossibleWithoutTranslation + final protected function resultSitePage(Project $project, WebsiteTranslations $websiteTranslations, array $data, bool $isTranslation): PagePossibleWithoutTranslation { - return new PagePossibleWithoutTranslation($project, $language, $data, $isTranslation); + return new PagePossibleWithoutTranslation($project, $websiteTranslations, $data, $isTranslation); } final protected function error(int $code, string $message, array $errors = []): ServiceResultError diff --git a/app/application/app/Services/Site/ProjectService.php b/app/application/app/Services/Site/ProjectService.php index 8cfb9c1..d39ff20 100644 --- a/app/application/app/Services/Site/ProjectService.php +++ b/app/application/app/Services/Site/ProjectService.php @@ -6,19 +6,18 @@ use App\Models\User; use App\Dto\Builder\Project as ProjectBuilderDto; use App\Repositories\ProjectContentRepository; -use App\Repositories\ProjectLanguageRepository; use App\Repositories\ProjectLinkRepository; use App\Repositories\ProjectRepository; use App\ServiceResults\ServiceResultArray; use App\ServiceResults\ServiceResultError; use App\ServiceResults\Site\PagePossibleWithoutTranslation; use App\Services\Service; +use App\Services\WebsiteTranslations; final class ProjectService extends Service { public function __construct( private readonly ProjectRepository $projectRepository, - private readonly ProjectLanguageRepository $projectLanguageRepository, private readonly ProjectContentRepository $projectContentRepository, private readonly ProjectLinkRepository $projectLinkRepository, ) { } @@ -39,7 +38,7 @@ public function getProjects(?User $user, array $with): ServiceResultError | Serv ]); } - public function getAboutByProject(Project $project, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation + public function getAboutByProject(Project $project, WebsiteTranslations $websiteTranslations, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation { if ( $project->is_public === false @@ -47,17 +46,13 @@ public function getAboutByProject(Project $project, ?string $languageCode, ?User ) { return $this->errFobidden(__('Access is denied')); } - $language = $this->projectLanguageRepository->getProjectLanguageByCodeOrDefault($project, $languageCode); - if (!$language) { - return $this->errNotFound(__('Language not found')); - } $data = [ 'project' => $project, - 'language' => $language, - 'content' => $this->projectContentRepository->getContentByLanguageId($project->id, $language->id), - 'links' => $this->projectLinkRepository->getLinksByProject($project, $language->id), + 'websiteTranslations' => $websiteTranslations, + 'content' => $this->projectContentRepository->getContentByLanguageId($project->id, $websiteTranslations->getLanguage()->id), + 'links' => $this->projectLinkRepository->getLinksByProject($project, $websiteTranslations->getLanguage()->id), ]; - return $this->resultSitePage($project, $language, $data, \is_null($data['content'])); + return $this->resultSitePage($project, $websiteTranslations, $data, \is_null($data['content'])); } } diff --git a/app/application/app/Services/WebsiteTranslations.php b/app/application/app/Services/WebsiteTranslations.php new file mode 100644 index 0000000..3cf633f --- /dev/null +++ b/app/application/app/Services/WebsiteTranslations.php @@ -0,0 +1,23 @@ +transactions[$text] ?? __($text); + } + + public function getLanguage(): ProjectLanguage + { + return $this->language; + } +} diff --git a/app/application/app/View/Components/Site/ChooseLanguage.php b/app/application/app/View/Components/Site/ChooseLanguage.php index 58e2647..17c78b5 100644 --- a/app/application/app/View/Components/Site/ChooseLanguage.php +++ b/app/application/app/View/Components/Site/ChooseLanguage.php @@ -2,8 +2,9 @@ namespace app\View\Components\Site; -use App\Models\ProjectLanguage; -use Illuminate\Support\Collection; +use App\Enums\CacheTag; +use App\Models\Project; +use App\Services\WebsiteTranslations; use Illuminate\Support\Str; use Illuminate\View\Component; use Illuminate\View\View; @@ -11,20 +12,25 @@ final class ChooseLanguage extends Component { public function __construct( - private readonly ProjectLanguage $language, - private readonly Collection $languages, + private readonly WebsiteTranslations $websiteTranslations, + private readonly Project $project, ) { } public function render(): View { - $link = Str::of( request()->getRequestUri() )->rtrim('/'); - if ($link->endsWith('/language/' . $this->language->code)) { - $link = $link->replace('/language/' . $this->language->code, '', false); + $link = Str::of( request()->url() )->rtrim('/'); + if ($link->endsWith('/language/' . $this->websiteTranslations->getLanguage()->code)) { + $link = $link->replace('/language/' . $this->websiteTranslations->getLanguage()->code, '', false); } + $seconds = 3600 * 12; + $languages = CacheTag::Project->getCache()->remember(self::class . $this->project->id, $seconds, function () { + return $this->project->languages; + }); + return view('components.site.choose-language', [ - 'language' => $this->language, - 'languages' => $this->languages, + 'websiteTranslations' => $this->websiteTranslations, + 'languages' => $languages, 'link' => (string) $link, ]); } diff --git a/app/application/app/View/Components/Site/Layout.php b/app/application/app/View/Components/Site/Layout.php index a0f13f5..2a99cb4 100644 --- a/app/application/app/View/Components/Site/Layout.php +++ b/app/application/app/View/Components/Site/Layout.php @@ -4,7 +4,7 @@ use App\Enums\StorageType; use App\Models\Project; -use App\Models\ProjectLanguage; +use App\Services\WebsiteTranslations; use Illuminate\View\Component; use Illuminate\View\View; @@ -12,7 +12,7 @@ final class Layout extends Component { public function __construct( private readonly Project $project, - private readonly ProjectLanguage $language, + private readonly WebsiteTranslations $websiteTranslations, ) { } public function render(): View @@ -20,7 +20,7 @@ public function render(): View return view('layout.site', [ 'project' => $this->project, 'logo' => $this->project->getStorageOne(StorageType::Logo), - 'language' => $this->language, + 'websiteTranslations' => $this->websiteTranslations, ]); } } diff --git a/app/application/app/View/Components/Volt/Forms/Languages.php b/app/application/app/View/Components/Volt/Forms/Languages.php index a4c3e41..f422d6f 100644 --- a/app/application/app/View/Components/Volt/Forms/Languages.php +++ b/app/application/app/View/Components/Volt/Forms/Languages.php @@ -29,12 +29,18 @@ private function getValue(): array $default = (int) $default; } foreach ($value['items'] as $index => $lang) { + $systemLang = null; + if (!empty($lang['system_lang'])) { + $systemLang = (int) $lang['system_lang']; + } $langs[$index] = [ - 'title' => $lang['title'] ?? '', - 'code' => $lang['code'] ?? '', - 'is_default' => ($index === $default), - 'sort' => $lang['sort'] ?? '', - 'id' => $lang['id'] ?? null, + 'title' => $lang['title'] ?? '', + 'code' => $lang['code'] ?? '', + 'is_default' => ($index === $default), + 'sort' => $lang['sort'] ?? '', + 'system_lang' => $systemLang, + 'iso_code' => $lang['iso_code'] ?? null, + 'id' => $lang['id'] ?? null, ]; } diff --git a/app/application/bootstrap/app.php b/app/application/bootstrap/app.php index f877115..1f526b3 100644 --- a/app/application/bootstrap/app.php +++ b/app/application/bootstrap/app.php @@ -11,11 +11,8 @@ commands: __DIR__.'/../routes/console.php', health: '/up', then: function () { - Route::middleware([\App\Http\Middleware\ProjectDomain::class])->group(base_path('routes/web-project.php')); - Route::middleware([ - \App\Http\Middleware\ProjectDomain::class, - \App\Http\Middleware\Project::class, - ]) + Route::middleware(['web', \App\Http\Middleware\ProjectDomainAndLanguage::class])->group(base_path('routes/web-project.php')); + Route::middleware(['web', \App\Http\Middleware\ProjectAndLanguage::class]) ->prefix('project/{project}') ->as('project.') ->group(base_path('routes/web-project.php')); diff --git a/app/application/database/migrations/2024_04_18_144547_add_system_language_to_project_languages_table.php b/app/application/database/migrations/2024_04_18_144547_add_system_language_to_project_languages_table.php new file mode 100644 index 0000000..46f4f29 --- /dev/null +++ b/app/application/database/migrations/2024_04_18_144547_add_system_language_to_project_languages_table.php @@ -0,0 +1,30 @@ +unsignedInteger('system_lang')->nullable()->after('sort'); + $table->string('iso_code', 30)->nullable()->after('system_lang'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('project_languages', function (Blueprint $table) { + $table->dropColumn('system_lang'); + $table->dropColumn('iso_code'); + }); + } +}; diff --git a/app/application/database/migrations/2024_04_19_084614_create_project_translations.php b/app/application/database/migrations/2024_04_19_084614_create_project_translations.php new file mode 100644 index 0000000..867deb3 --- /dev/null +++ b/app/application/database/migrations/2024_04_19_084614_create_project_translations.php @@ -0,0 +1,36 @@ +id(); + $table->string('code'); + $table->text('text'); + $table->unsignedBigInteger('project_id')->index(); + $table->foreign('project_id')->references('id')->on('projects'); + $table->unsignedBigInteger('language_id')->index(); + $table->foreign('language_id')->references('id')->on('project_languages'); + $table->timestamps(); + $table->softDeletes(); + $table->index(['project_id', 'language_id', 'deleted_at']); + $table->unique(['project_id', 'language_id', 'code']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('project_translations'); + } +}; diff --git a/app/application/lang/en.json b/app/application/lang/en.json index 1e550c9..8376977 100644 --- a/app/application/lang/en.json +++ b/app/application/lang/en.json @@ -255,5 +255,6 @@ "The link was successfully updated": "The link was successfully updated", "The link has been deleted": "The link has been deleted", "Language not found": "Language not found", - "Project not found": "Project not found" + "Project not found": "Project not found", + "Translations successfully updated": "Translations successfully updated" } diff --git a/app/application/lang/en/admin-sections.php b/app/application/lang/en/admin-sections.php index 946a4c3..a4283b1 100644 --- a/app/application/lang/en/admin-sections.php +++ b/app/application/lang/en/admin-sections.php @@ -11,4 +11,5 @@ 'Languages' => 'Languages', 'Last update' => 'Last update', 'Links project' => 'Links from the project', + 'Translations' => 'Translations', ]; diff --git a/app/application/lang/en/permissions.php b/app/application/lang/en/permissions.php index 88b02d2..8800e50 100644 --- a/app/application/lang/en/permissions.php +++ b/app/application/lang/en/permissions.php @@ -15,4 +15,5 @@ 'Project' => 'Projects', 'ProjectContent' => 'About the project', 'ProjectLink' => 'Links from the project', + 'ProjectTranslation' => 'Translations', ]; diff --git a/app/application/lang/en/validation.php b/app/application/lang/en/validation.php index 11fdad1..90940c1 100644 --- a/app/application/lang/en/validation.php +++ b/app/application/lang/en/validation.php @@ -281,11 +281,15 @@ 'is_public' => 'public', 'http_host' => 'hostname', 'sort' => 'sorting', + 'system_lang' => 'system language', + 'iso_code' => 'ISO code', 'is_default' => 'default', 'language-code' => 'language code', 'languages.items.*.code' => 'language code', 'languages.items.*.title' => 'language title', 'languages.items.*.sort' => 'language sorting', + 'languages.items.*.system_lang' => 'system language', + 'languages.items.*.iso_code' => 'ISO code', 'languages.items.*.id' => 'language ID', 'languages.default' => 'default language', 'language-default' => 'default language', @@ -294,5 +298,8 @@ 'logo.delete' => 'remove logo', 'link' => 'link', 'language_id' => 'language', + 'translations' => 'translations', + 'translations.*.code' => 'translations code', + 'translations.*.text' => 'translations', ], ]; diff --git a/app/application/lang/ru.json b/app/application/lang/ru.json index c513d72..2f1f239 100644 --- a/app/application/lang/ru.json +++ b/app/application/lang/ru.json @@ -255,5 +255,6 @@ "The link was successfully updated": "Ссылка успешно обновлена", "The link has been deleted": "Ссылка удалена", "Language not found": "Язык не найден", - "Project not found": "Проект не найден" + "Project not found": "Проект не найден", + "Translations successfully updated": "Переводы успешно обновлены" } diff --git a/app/application/lang/ru/admin-sections.php b/app/application/lang/ru/admin-sections.php index 5ec768a..d8751b7 100644 --- a/app/application/lang/ru/admin-sections.php +++ b/app/application/lang/ru/admin-sections.php @@ -11,4 +11,5 @@ 'Languages' => 'Языки', 'Last update' => 'Последнее обновление', 'Links project' => 'Ссылки от проекта', + 'Translations' => 'Переводы', ]; diff --git a/app/application/lang/ru/permissions.php b/app/application/lang/ru/permissions.php index dfe8cd7..03d89bf 100644 --- a/app/application/lang/ru/permissions.php +++ b/app/application/lang/ru/permissions.php @@ -15,4 +15,5 @@ 'Project' => 'Проекты', 'ProjectContent' => 'О проекте', 'ProjectLink' => 'Ссылки от проекта', + 'ProjectTranslation' => 'Переводы', ]; diff --git a/app/application/lang/ru/validation.php b/app/application/lang/ru/validation.php index 5f48b83..d6865b9 100644 --- a/app/application/lang/ru/validation.php +++ b/app/application/lang/ru/validation.php @@ -282,10 +282,14 @@ 'http_host' => 'имя хоста', 'sort' => 'сортировка', 'is_default' => 'по умолчанию', + 'system_lang' => 'системный язык', + 'iso_code' => 'ISO-код', 'language-code' => 'код языка', 'languages.items.*.code' => 'код языка', 'languages.items.*.title' => 'заголовок языка', 'languages.items.*.sort' => 'языковая сортировка', + 'languages.items.*.system_lang' => 'системный язык', + 'languages.items.*.iso_code' => 'ISO-код', 'languages.items.*.id' => 'ID языка', 'languages.default' => 'язык по умолчанию', 'language-default' => 'язык по умолчанию', @@ -294,5 +298,8 @@ 'logo.delete' => 'удалить логотип', 'link' => 'ссылка', 'language_id' => 'язык', + 'translations' => 'переводы', + 'translations.*.code' => 'код перевода', + 'translations.*.text' => 'переводы', ], ]; diff --git a/app/application/resources/site/scss/app.scss b/app/application/resources/site/scss/app.scss index e032aa3..0b3f177 100644 --- a/app/application/resources/site/scss/app.scss +++ b/app/application/resources/site/scss/app.scss @@ -49,7 +49,7 @@ body { } .header_logo { grid-area: logo; - max-height: 50px; + height: 50px; a { text-decoration: none; @@ -67,6 +67,7 @@ body { padding: 5px 10px; border: 1px solid #0a0e17; border-radius: 4px; + white-space: nowrap; } } #mobile-menu { @@ -231,12 +232,24 @@ body.mobile-menu-open { grid-template-areas: "logo language"; grid-template-columns: 1fr 200px; } + .header_logo { + width: 150px; + margin-left: 12px; + margin-top: 10px; + margin-bottom: 10px; + } #mobile-menu { display: none; } .main-container { flex-direction: row; } + #language { + margin-right: 10px; + } + .language__block { + margin-top: 6px; + } .language__button { padding: 7px 10px 7px 0; } diff --git a/app/application/resources/views/admin/projects/links/edit.blade.php b/app/application/resources/views/admin/projects/links/edit.blade.php index 4d2bc86..189a52a 100644 --- a/app/application/resources/views/admin/projects/links/edit.blade.php +++ b/app/application/resources/views/admin/projects/links/edit.blade.php @@ -1,7 +1,7 @@ @section('meta_title', __('admin-sections.Links project')) @section('h1', __('admin-sections.Project') . ': ' . $project->name) - @include('admin.projects._top') + @include('admin.projects.links._top')
    diff --git a/app/application/resources/views/admin/projects/show.blade.php b/app/application/resources/views/admin/projects/show.blade.php index 59e8ebc..fe9ecbe 100644 --- a/app/application/resources/views/admin/projects/show.blade.php +++ b/app/application/resources/views/admin/projects/show.blade.php @@ -36,6 +36,18 @@ @endcan + @can('viewAny', \App\Models\ProjectTranslation::class) + + + + + {{ __('admin-sections.Translations') }} + + + + @endcan
    diff --git a/app/application/resources/views/admin/projects/translations/edit.blade.php b/app/application/resources/views/admin/projects/translations/edit.blade.php new file mode 100644 index 0000000..f3504d3 --- /dev/null +++ b/app/application/resources/views/admin/projects/translations/edit.blade.php @@ -0,0 +1,42 @@ +@section('meta_title', __('admin-sections.Translations')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + +
    +
    +
    +
    +

    {{ __('admin-sections.Translations') }}

    +
    +
    + + + + + + + + + @foreach($translations as $index => $code) + + + + + @endforeach + +
    {{ __('validation.attributes.text') }}{{ __('admin-sections.Translations') }}
    + {{ __($code) }} + + + +
    + @canany(['update'], \App\Models\ProjectTranslation::class) + @csrf + + @endcanany +
    +
    +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/admin/projects/translations/languages.blade.php b/app/application/resources/views/admin/projects/translations/languages.blade.php new file mode 100644 index 0000000..d14db7e --- /dev/null +++ b/app/application/resources/views/admin/projects/translations/languages.blade.php @@ -0,0 +1,36 @@ +@section('meta_title', __('admin-sections.Translations')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + +
    +
    +
    +
    +

    {{ __('admin-sections.Translations') }}

    +
    + + + + + + + + @foreach($project->languages as $language) + + + + @endforeach + +
    {{ __('admin-sections.Languages') }}
    + + + + + {{ $language->title }} + +
    +
    +
    +
    +
    +
    +
    diff --git a/app/application/resources/views/components/site/choose-language.blade.php b/app/application/resources/views/components/site/choose-language.blade.php index 9c15d25..d8aa52d 100644 --- a/app/application/resources/views/components/site/choose-language.blade.php +++ b/app/application/resources/views/components/site/choose-language.blade.php @@ -1,10 +1,10 @@
    - - +
    diff --git a/app/application/resources/views/site/page-without-translation.blade.php b/app/application/resources/views/site/page-without-translation.blade.php index a405f3b..1e10a74 100644 --- a/app/application/resources/views/site/page-without-translation.blade.php +++ b/app/application/resources/views/site/page-without-translation.blade.php @@ -1,5 +1,5 @@ -@section('h1', __('site.Page without translation')) +@section('h1', $websiteTranslations->translate('site.Page without translation')) - + diff --git a/app/application/resources/views/site/projects/about.blade.php b/app/application/resources/views/site/projects/about.blade.php index ff8225f..5f4a118 100644 --- a/app/application/resources/views/site/projects/about.blade.php +++ b/app/application/resources/views/site/projects/about.blade.php @@ -1,6 +1,6 @@ -@section('meta_title', __('site.Project') . ': ' . $content->title) +@section('meta_title', $websiteTranslations->translate('site.Project') . ': ' . $content->title) @section('h1', $content->title) - + {!! $content->description !!} diff --git a/app/application/routes/web.php b/app/application/routes/web.php index 4ae5654..48d8468 100644 --- a/app/application/routes/web.php +++ b/app/application/routes/web.php @@ -27,6 +27,10 @@ Route::resource('links', \App\Http\Controllers\Admin\Projects\LinksController::class)->except(['show'])->where(['link' => '[0-9]+']); + Route::get('translations', [\App\Http\Controllers\Admin\Projects\TranslationsController::class, 'languages'])->name('translations.languages'); + Route::get('translations/{language}', [\App\Http\Controllers\Admin\Projects\TranslationsController::class, 'edit'])->name('translations.edit')->where(['language' => '[0-9]+']); + Route::post('translations/{language}', [\App\Http\Controllers\Admin\Projects\TranslationsController::class, 'update'])->name('translations.update')->where(['language' => '[0-9]+']); + })->where(['project' => '[0-9]+']); Route::post('languages/new-language', [\App\Http\Controllers\Admin\LanguagesController::class, 'newLanguage'])->name('new-language'); From 8c353a49b7f5e601ed0ee9273a0585e85a5c8282 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 23 Apr 2024 19:30:56 +0500 Subject: [PATCH 14/20] Added Feedback section. --- .../app/Dto/Builder/ProjectFeedback.php | 10 +++ app/application/app/Dto/HttpUserData.php | 21 +++++ .../Service/Admin/Project/Feedback/Index.php | 21 +++++ .../Project/Translation/Translations.php | 8 ++ .../app/Dto/Service/Site/Feedback/Send.php | 36 ++++++++ app/application/app/Enums/Permission.php | 4 + .../app/Enums/Site/ProjectSection.php | 5 ++ .../Admin/Projects/FeedbacksController.php | 52 +++++++++++ .../Controllers/Site/FeedbackController.php | 41 +++++++++ .../Admin/Projects/Feedbacks/IndexRequest.php | 29 +++++++ .../Requests/Site/Feedback/SendRequest.php | 57 ++++++++++++ app/application/app/Models/Project.php | 5 ++ .../app/Models/ProjectFeedback.php | 52 +++++++++++ .../app/Models/Scopes/CreatedScope.php | 18 ++++ .../app/Policies/ProjectFeedbackPolicy.php | 19 ++++ .../ProjectFeedbackRepository.php | 38 ++++++++ .../Admin/Project/FeedbackService.php | 66 ++++++++++++++ .../ProjectFeedback/BuilderCommand.php | 15 ++++ .../ProjectFeedbackCommandHandler.php | 15 ++++ .../app/Services/Site/FeedbackService.php | 53 ++++++++++++ .../app/View/Components/Site/Forms/Form.php | 26 ++++++ .../app/View/Components/Site/Forms/Input.php | 58 +++++++++++++ .../Components/Site/Forms/TextareaWysiwyg.php | 54 ++++++++++++ ...4_04_22_091519_create_project_feedback.php | 40 +++++++++ app/application/lang/en/admin-sections.php | 1 + app/application/lang/en/permissions.php | 1 + app/application/lang/en/site.php | 9 ++ app/application/lang/ru/admin-sections.php | 1 + app/application/lang/ru/permissions.php | 1 + app/application/lang/ru/site.php | 9 ++ app/application/resources/site/scss/app.scss | 1 + .../resources/site/scss/forms.scss | 86 +++++++++++++++++++ .../views/admin/layout/_navigation.blade.php | 16 ++++ .../admin/projects/feedbacks/index.blade.php | 37 ++++++++ .../projects/feedbacks/project.blade.php | 36 ++++++++ .../views/admin/projects/show.blade.php | 12 +++ .../components/site/forms/input.blade.php | 12 +++ .../site/forms/textarea-wysiwyg.blade.php | 36 ++++++++ .../resources/views/layout/site.blade.php | 6 ++ .../views/layout/site/_errors.blade.php | 7 ++ .../views/layout/site/_success.blade.php | 3 + .../views/site/feedback/index.blade.php | 22 +++++ app/application/routes/web-project.php | 7 ++ app/application/routes/web.php | 4 + 44 files changed, 1050 insertions(+) create mode 100644 app/application/app/Dto/Builder/ProjectFeedback.php create mode 100644 app/application/app/Dto/HttpUserData.php create mode 100644 app/application/app/Dto/Service/Admin/Project/Feedback/Index.php create mode 100644 app/application/app/Dto/Service/Site/Feedback/Send.php create mode 100644 app/application/app/Http/Controllers/Admin/Projects/FeedbacksController.php create mode 100644 app/application/app/Http/Controllers/Site/FeedbackController.php create mode 100644 app/application/app/Http/Requests/Admin/Projects/Feedbacks/IndexRequest.php create mode 100644 app/application/app/Http/Requests/Site/Feedback/SendRequest.php create mode 100644 app/application/app/Models/ProjectFeedback.php create mode 100644 app/application/app/Models/Scopes/CreatedScope.php create mode 100644 app/application/app/Policies/ProjectFeedbackPolicy.php create mode 100644 app/application/app/Repositories/ProjectFeedbackRepository.php create mode 100644 app/application/app/Services/Admin/Project/FeedbackService.php create mode 100644 app/application/app/Services/ProjectFeedback/BuilderCommand.php create mode 100644 app/application/app/Services/ProjectFeedback/ProjectFeedbackCommandHandler.php create mode 100644 app/application/app/Services/Site/FeedbackService.php create mode 100644 app/application/app/View/Components/Site/Forms/Form.php create mode 100644 app/application/app/View/Components/Site/Forms/Input.php create mode 100644 app/application/app/View/Components/Site/Forms/TextareaWysiwyg.php create mode 100644 app/application/database/migrations/2024_04_22_091519_create_project_feedback.php create mode 100644 app/application/resources/site/scss/forms.scss create mode 100644 app/application/resources/views/admin/projects/feedbacks/index.blade.php create mode 100644 app/application/resources/views/admin/projects/feedbacks/project.blade.php create mode 100644 app/application/resources/views/components/site/forms/input.blade.php create mode 100644 app/application/resources/views/components/site/forms/textarea-wysiwyg.blade.php create mode 100644 app/application/resources/views/layout/site/_errors.blade.php create mode 100644 app/application/resources/views/layout/site/_success.blade.php create mode 100644 app/application/resources/views/site/feedback/index.blade.php diff --git a/app/application/app/Dto/Builder/ProjectFeedback.php b/app/application/app/Dto/Builder/ProjectFeedback.php new file mode 100644 index 0000000..0186427 --- /dev/null +++ b/app/application/app/Dto/Builder/ProjectFeedback.php @@ -0,0 +1,10 @@ +clientIp; + } + + public function getUserAgent(): ?string + { + return $this->userAgent; + } +} diff --git a/app/application/app/Dto/Service/Admin/Project/Feedback/Index.php b/app/application/app/Dto/Service/Admin/Project/Feedback/Index.php new file mode 100644 index 0000000..1352071 --- /dev/null +++ b/app/application/app/Dto/Service/Admin/Project/Feedback/Index.php @@ -0,0 +1,21 @@ +projectFeedbackBuilderDto; + } +} diff --git a/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php b/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php index a0ac031..ed702cb 100644 --- a/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php +++ b/app/application/app/Dto/Service/Admin/Project/Translation/Translations.php @@ -30,6 +30,14 @@ public static function getTranslationCodes(): array 'site.Choose language', 'site.Page without translation', 'site.Project', + 'site.Feedback', + 'site.Feedback-send', + 'site.required field', + 'site.attributes.name', + 'site.attributes.email', + 'site.attributes.message', + 'site.Message sent successfully', + 'Server Error', ]; } } diff --git a/app/application/app/Dto/Service/Site/Feedback/Send.php b/app/application/app/Dto/Service/Site/Feedback/Send.php new file mode 100644 index 0000000..749b8f7 --- /dev/null +++ b/app/application/app/Dto/Service/Site/Feedback/Send.php @@ -0,0 +1,36 @@ +name; + } + + public function getEmail(): ?string + { + return $this->email; + } + + public function getMessage(): string + { + return $this->message; + } + + public function getHttpUserData(): HttpUserData + { + return $this->httpUserData; + } +} diff --git a/app/application/app/Enums/Permission.php b/app/application/app/Enums/Permission.php index 652a7d5..f939554 100644 --- a/app/application/app/Enums/Permission.php +++ b/app/application/app/Enums/Permission.php @@ -11,6 +11,7 @@ enum Permission: string case ProjectContent = 'project-content'; case ProjectLink = 'project-link'; case ProjectTranslation = 'project-translation'; + case ProjectFeedback = 'project-feedback'; public function getPermissions(): array { @@ -27,6 +28,9 @@ public function getPermissions(): array 'view' => __('permissions.Allowed to watch'), 'update' => __('permissions.Allowed to edit'), ], + self::ProjectFeedback => [ + 'view' => __('permissions.Allowed to watch'), + ], default => $this->getBasePermissions() }; diff --git a/app/application/app/Enums/Site/ProjectSection.php b/app/application/app/Enums/Site/ProjectSection.php index 5ab5228..740c7d8 100644 --- a/app/application/app/Enums/Site/ProjectSection.php +++ b/app/application/app/Enums/Site/ProjectSection.php @@ -8,6 +8,8 @@ enum ProjectSection { case Home; + case Feedback; + case FeedbackSend; public function url(Project $project, ?ProjectLanguage $language = null): string { @@ -26,6 +28,9 @@ public function url(Project $project, ?ProjectLanguage $language = null): string $route = match ($this) { self::Home => \route($prefixProject . 'home' . $prefixLanguage, $parameters, false), + + self::Feedback => \route($prefixProject . 'feedback' . $prefixLanguage, $parameters, false), + self::FeedbackSend => \route($prefixProject . 'feedback.send' . $prefixLanguage, $parameters, false), }; return $project->http_host . $route; diff --git a/app/application/app/Http/Controllers/Admin/Projects/FeedbacksController.php b/app/application/app/Http/Controllers/Admin/Projects/FeedbacksController.php new file mode 100644 index 0000000..370c3ac --- /dev/null +++ b/app/application/app/Http/Controllers/Admin/Projects/FeedbacksController.php @@ -0,0 +1,52 @@ +user(); + $data = $request->getDto(); + $querySettingsDto = new QuerySettingsDto( + limit: 20, + page: $data->getPage(), + queryWith: ['project'] + ); + + $result = $this->feedbackService->index($data->getProjectFeedbackBuilderDto(), $querySettingsDto, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin.projects.feedbacks.index', $result->getData()); + } + + public function project(int $projectId, IndexRequest $request): View + { + $user = $request->user(); + $data = $request->getDto(); + $querySettingsDto = new QuerySettingsDto( + limit: 20, + page: $data->getPage(), + queryWith: [] + ); + + $result = $this->feedbackService->project($projectId, $data->getProjectFeedbackBuilderDto(), $querySettingsDto, $user); + if ($result->isError()) { + $this->errors($result); + } + + return view('admin.projects.feedbacks.project', $result->getData()); + } +} diff --git a/app/application/app/Http/Controllers/Site/FeedbackController.php b/app/application/app/Http/Controllers/Site/FeedbackController.php new file mode 100644 index 0000000..5448daa --- /dev/null +++ b/app/application/app/Http/Controllers/Site/FeedbackController.php @@ -0,0 +1,41 @@ + $request->get('project'), + 'websiteTranslations' => $request->get('websiteTranslations'), + ]); + } + + public function send(SendRequest $request): RedirectResponse + { + $project = $request->get('project'); + $websiteTranslations = $request->get('websiteTranslations'); + $user = $request->user(); + $data = $request->getDto(); + + $result = $this->feedbackService->send($data, $project, $websiteTranslations, $user); + if ($result->isError()) { + return redirect()->back()->withInput()->withErrors($result->getErrorsOrMessage()); + } + + $url = \App\Enums\Site\ProjectSection::Feedback->url($project, $websiteTranslations->getLanguage()); + return redirect($url)->withSuccess($result->getMessage()); + } +} diff --git a/app/application/app/Http/Requests/Admin/Projects/Feedbacks/IndexRequest.php b/app/application/app/Http/Requests/Admin/Projects/Feedbacks/IndexRequest.php new file mode 100644 index 0000000..0ae2b2d --- /dev/null +++ b/app/application/app/Http/Requests/Admin/Projects/Feedbacks/IndexRequest.php @@ -0,0 +1,29 @@ + ['nullable', 'numeric', 'min:1'] + ]; + } + + public function getDto(): Index + { + return new Index( + projectFeedbackBuilderDto: new ProjectFeedback(), + page: (int) $this->input('page', 1), + ); + } +} diff --git a/app/application/app/Http/Requests/Site/Feedback/SendRequest.php b/app/application/app/Http/Requests/Site/Feedback/SendRequest.php new file mode 100644 index 0000000..befefb6 --- /dev/null +++ b/app/application/app/Http/Requests/Site/Feedback/SendRequest.php @@ -0,0 +1,57 @@ +request->get('websiteTranslations', null); + if ($websiteTranslations) { + /** @var WebsiteTranslations $websiteTranslations */ + $attributes = [ + 'name' => $websiteTranslations->translate('site.attributes.name'), + 'email' => $websiteTranslations->translate('site.attributes.email'), + 'message' => $websiteTranslations->translate('site.attributes.message'), + ]; + } + + return $attributes; + } + + /** + * Get the validation rules that apply to the request. + */ + public function rules(): array + { + return [ + 'name' => ['nullable', 'string', 'max:255'], + 'email' => ['nullable', 'string', 'max:255', 'email'], + 'message' => ['required', 'string', 'max:5000'], + 'captcha-verified' => ['captcha'], + ]; + } + + public function getDto(): Send + { + $httpUserData = new HttpUserData( + clientIp: $this->getClientIp(), + userAgent: $this->userAgent(), + ); + + return new Send( + message: $this->input('message'), + httpUserData: $httpUserData, + name: $this->input('name', null), + email: $this->input('email', null), + ); + } +} diff --git a/app/application/app/Models/Project.php b/app/application/app/Models/Project.php index 5e2862b..fc2e671 100644 --- a/app/application/app/Models/Project.php +++ b/app/application/app/Models/Project.php @@ -57,4 +57,9 @@ public function links(): HasMany { return $this->hasMany(ProjectLink::class); } + + public function feedbacks(): HasMany + { + return $this->hasMany(ProjectFeedback::class); + } } diff --git a/app/application/app/Models/ProjectFeedback.php b/app/application/app/Models/ProjectFeedback.php new file mode 100644 index 0000000..04e7e3c --- /dev/null +++ b/app/application/app/Models/ProjectFeedback.php @@ -0,0 +1,52 @@ + + */ + protected function casts(): array + { + return [ + 'name' => 'encrypted', + 'email' => 'encrypted', + 'message' => 'encrypted', + ]; + } + + public function project(): BelongsTo + { + return $this->belongsTo(Project::class); + } +} diff --git a/app/application/app/Models/Scopes/CreatedScope.php b/app/application/app/Models/Scopes/CreatedScope.php new file mode 100644 index 0000000..6206e89 --- /dev/null +++ b/app/application/app/Models/Scopes/CreatedScope.php @@ -0,0 +1,18 @@ +orderBy('created_at', 'desc'); + } +} diff --git a/app/application/app/Policies/ProjectFeedbackPolicy.php b/app/application/app/Policies/ProjectFeedbackPolicy.php new file mode 100644 index 0000000..45f7ffb --- /dev/null +++ b/app/application/app/Policies/ProjectFeedbackPolicy.php @@ -0,0 +1,19 @@ +hasPermission('project-feedback.view'); + } + + public function view(User $user, ProjectFeedback $projectFeedback): bool + { + return $user->hasPermission('project-feedback.view'); + } +} diff --git a/app/application/app/Repositories/ProjectFeedbackRepository.php b/app/application/app/Repositories/ProjectFeedbackRepository.php new file mode 100644 index 0000000..6bb730b --- /dev/null +++ b/app/application/app/Repositories/ProjectFeedbackRepository.php @@ -0,0 +1,38 @@ +builderCommand->execute( + query: ProjectFeedback::query()->with($with), + projectFeedbackBuilderDto: $projectFeedbackBuilderDto + ); + + return $this->createSearchInstanceCommand->execute($query); + } + + public function getFeedbacksByProject(Project $project, ProjectFeedbackBuilderDto $projectFeedbackBuilderDto, array $with = []): Search + { + $query = $this->builderCommand->execute( + query: $project->feedbacks()->with($with), + projectFeedbackBuilderDto: $projectFeedbackBuilderDto + ); + + return $this->createSearchInstanceCommand->execute($query); + } +} diff --git a/app/application/app/Services/Admin/Project/FeedbackService.php b/app/application/app/Services/Admin/Project/FeedbackService.php new file mode 100644 index 0000000..a374b7d --- /dev/null +++ b/app/application/app/Services/Admin/Project/FeedbackService.php @@ -0,0 +1,66 @@ +cannot('viewAny', ProjectFeedback::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $feedbacks = $this->projectFeedbackRepository->getFeedbacks( + $projectFeedbackBuilderDto, + $querySettingsDto->getQueryWith() + )->pagination( + $querySettingsDto->getLimit(), + $querySettingsDto->getPage() + ); + + return $this->result([ + 'feedbacks' => $feedbacks, + ]); + } + + public function project(int $projectId, ProjectFeedbackBuilderDto $projectFeedbackBuilderDto, QuerySettingsDto $querySettingsDto, User $user): ServiceResultError | ServiceResultArray + { + $project = $this->projectRepository->getProjectById($projectId); + if (\is_null($project)) { + return $this->errNotFound(__('Not Found')); + } + + if ($user->cannot('viewAny', ProjectFeedback::class)) { + return $this->errFobidden(__('Access is denied')); + } + + $feedbacks = $this->projectFeedbackRepository->getFeedbacksByProject( + $project, + $projectFeedbackBuilderDto, + $querySettingsDto->getQueryWith() + )->pagination( + $querySettingsDto->getLimit(), + $querySettingsDto->getPage() + ); + + return $this->result([ + 'project' => $project, + 'feedbacks' => $feedbacks, + ]); + } +} diff --git a/app/application/app/Services/ProjectFeedback/BuilderCommand.php b/app/application/app/Services/ProjectFeedback/BuilderCommand.php new file mode 100644 index 0000000..b4ed779 --- /dev/null +++ b/app/application/app/Services/ProjectFeedback/BuilderCommand.php @@ -0,0 +1,15 @@ +feedbacks()->create($data); + return $feedback; + } +} diff --git a/app/application/app/Services/Site/FeedbackService.php b/app/application/app/Services/Site/FeedbackService.php new file mode 100644 index 0000000..7bbe72f --- /dev/null +++ b/app/application/app/Services/Site/FeedbackService.php @@ -0,0 +1,53 @@ +getDataFeedback($send); + $data['user_id'] = $user?->id; + $this->feedbackCommandHandler->handleStore($project, $data); + }); + } catch (\Throwable $e) { + report($e); + return $this->errService($websiteTranslations->translate('Server Error')); + } + + return $this->ok($websiteTranslations->translate('site.Message sent successfully')); + } + + private function getDataFeedback(Send $send): array + { + $name = $send->getName(); + if ($name !== null) { + $name = strip_tags($name); + } + $message = $send->getMessage(); + $message = strip_tags($message, ['', '', '

    ', '
    ', '

      ', '
    • ', '
        ', '', '', ' @endcan + @can('viewAny', \App\Models\ProjectFeedback::class) + + + + @endcan
        ', '', '',]); + return [ + 'name' => $name, + 'email' => $send->getEmail(), + 'message' => $message, + 'ip' => $send->getHttpUserData()->getClientIp(), + 'user_agent' => $send->getHttpUserData()->getUserAgent(), + ]; + } +} diff --git a/app/application/app/View/Components/Site/Forms/Form.php b/app/application/app/View/Components/Site/Forms/Form.php new file mode 100644 index 0000000..956f702 --- /dev/null +++ b/app/application/app/View/Components/Site/Forms/Form.php @@ -0,0 +1,26 @@ +requestName)) { + return $this->requestName; + } + + $this->requestName = Helpers::formatAttributeNameToRequestName($this->getName()); + + return $this->requestName; + } +} diff --git a/app/application/app/View/Components/Site/Forms/Input.php b/app/application/app/View/Components/Site/Forms/Input.php new file mode 100644 index 0000000..b3a7383 --- /dev/null +++ b/app/application/app/View/Components/Site/Forms/Input.php @@ -0,0 +1,58 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getType(): string + { + return $this->type; + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + private function getWebsiteTranslations(): WebsiteTranslations + { + return $this->websiteTranslations; + } + + /** + * @inheritDoc + */ + public function render(): View + { + return view('components.site.forms.input', [ + 'websiteTranslations' => $this->getWebsiteTranslations(), + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'type' => $this->getType(), + 'value' => $this->getValue(), + ]); + } +} diff --git a/app/application/app/View/Components/Site/Forms/TextareaWysiwyg.php b/app/application/app/View/Components/Site/Forms/TextareaWysiwyg.php new file mode 100644 index 0000000..3e0922b --- /dev/null +++ b/app/application/app/View/Components/Site/Forms/TextareaWysiwyg.php @@ -0,0 +1,54 @@ +name; + } + + private function getTitle(): string + { + return Str::ucfirst($this->title); + } + + private function getValue(): string + { + return (string) old($this->getRequestName(), $this->value); + } + + private function getWebsiteTranslations(): WebsiteTranslations + { + return $this->websiteTranslations; + } + + /** + * @inheritDoc + */ + public function render(): View + { + $tinymceLicenseKey = config('tinymce.license_key'); + + return view('components.site.forms.textarea-wysiwyg', [ + 'websiteTranslations' => $this->getWebsiteTranslations(), + 'tinymceLicenseKey' => $tinymceLicenseKey, + 'title' => $this->getTitle(), + 'name' => $this->getName(), + 'requestName' => $this->getRequestName(), + 'value' => $this->getValue(), + ]); + } +} diff --git a/app/application/database/migrations/2024_04_22_091519_create_project_feedback.php b/app/application/database/migrations/2024_04_22_091519_create_project_feedback.php new file mode 100644 index 0000000..08e278d --- /dev/null +++ b/app/application/database/migrations/2024_04_22_091519_create_project_feedback.php @@ -0,0 +1,40 @@ +uuid('id')->primary(); + $table->unsignedBigInteger('project_id')->index(); + $table->foreign('project_id')->references('id')->on('projects'); + $table->unsignedBigInteger('user_id')->nullable()->index(); + $table->foreign('user_id')->references('id')->on('users'); + $table->text('name')->nullable(); + $table->text('email')->nullable(); + $table->text('message'); + $table->ipAddress('ip')->nullable(); + $table->string('user_agent')->nullable(); + $table->timestamps(); + $table->softDeletes(); + $table->index(['created_at']); + $table->index(['project_id', 'deleted_at']); + $table->index(['user_id', 'deleted_at']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('project_feedback'); + } +}; diff --git a/app/application/lang/en/admin-sections.php b/app/application/lang/en/admin-sections.php index a4283b1..1fd967f 100644 --- a/app/application/lang/en/admin-sections.php +++ b/app/application/lang/en/admin-sections.php @@ -12,4 +12,5 @@ 'Last update' => 'Last update', 'Links project' => 'Links from the project', 'Translations' => 'Translations', + 'Feedback' => 'Feedback', ]; diff --git a/app/application/lang/en/permissions.php b/app/application/lang/en/permissions.php index 8800e50..31c6a21 100644 --- a/app/application/lang/en/permissions.php +++ b/app/application/lang/en/permissions.php @@ -16,4 +16,5 @@ 'ProjectContent' => 'About the project', 'ProjectLink' => 'Links from the project', 'ProjectTranslation' => 'Translations', + 'ProjectFeedback' => 'Feedback', ]; diff --git a/app/application/lang/en/site.php b/app/application/lang/en/site.php index 7dded98..edb4844 100644 --- a/app/application/lang/en/site.php +++ b/app/application/lang/en/site.php @@ -7,4 +7,13 @@ 'Page without translation' => 'Page without translation', 'Powered by service' => 'Powered by the My Projects website engine', 'Choose language' => 'Choose language', + 'Feedback' => 'Feedback', + 'Feedback-send' => 'Send review', + 'required field' => 'required field', + 'Message sent successfully' => 'Message sent successfully', + 'attributes' => [ + 'name' => 'name', + 'email' => 'email', + 'message' => 'message', + ], ]; diff --git a/app/application/lang/ru/admin-sections.php b/app/application/lang/ru/admin-sections.php index d8751b7..c900541 100644 --- a/app/application/lang/ru/admin-sections.php +++ b/app/application/lang/ru/admin-sections.php @@ -12,4 +12,5 @@ 'Last update' => 'Последнее обновление', 'Links project' => 'Ссылки от проекта', 'Translations' => 'Переводы', + 'Feedback' => 'Обратная связь', ]; diff --git a/app/application/lang/ru/permissions.php b/app/application/lang/ru/permissions.php index 03d89bf..cd7954a 100644 --- a/app/application/lang/ru/permissions.php +++ b/app/application/lang/ru/permissions.php @@ -16,4 +16,5 @@ 'ProjectContent' => 'О проекте', 'ProjectLink' => 'Ссылки от проекта', 'ProjectTranslation' => 'Переводы', + 'ProjectFeedback' => 'Обратная связь', ]; diff --git a/app/application/lang/ru/site.php b/app/application/lang/ru/site.php index 380df94..c7fa6e4 100644 --- a/app/application/lang/ru/site.php +++ b/app/application/lang/ru/site.php @@ -7,4 +7,13 @@ 'Page without translation' => 'Страница без перевода', 'Powered by service' => 'Работает на движке сайта «Мои проекты»', 'Choose language' => 'Выберите язык', + 'Feedback' => 'Обратная связь', + 'Feedback-send' => 'Отправить отзыв', + 'required field' => 'обязательное поле', + 'Message sent successfully' => 'Сообщение успешно отправлено', + 'attributes' => [ + 'name' => 'имя', + 'email' => 'email', + 'message' => 'сообщение', + ], ]; diff --git a/app/application/resources/site/scss/app.scss b/app/application/resources/site/scss/app.scss index 0b3f177..8842c1b 100644 --- a/app/application/resources/site/scss/app.scss +++ b/app/application/resources/site/scss/app.scss @@ -1,5 +1,6 @@ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap'); @import "reset"; +@import "forms"; html, body { diff --git a/app/application/resources/site/scss/forms.scss b/app/application/resources/site/scss/forms.scss new file mode 100644 index 0000000..4b76b5d --- /dev/null +++ b/app/application/resources/site/scss/forms.scss @@ -0,0 +1,86 @@ +.form-block { + padding: 10px 0; + + label { + display: block; + font-size: 16px; + font-weight: 600; + padding-bottom: 7px; + color: #000; + + span { + font-size: 14px; + font-weight: 400; + color: #555; + } + } + + .form-control { + display: block; + width: 100%; + padding: 6px 12px; + border-radius: 6px; + border: 1px solid #ddd; + } + + .form-control.is-invalid { + border-color: #dc3545; + } + + .form-control:focus, + .form-control:focus-visible { + outline: 2px solid #006ce7; + } + + .invalid-feedback { + display: block; + padding: 7px 10px; + color: #dc3545; + font-size: 14px; + border: 1px solid #dc3545; + border-radius: 6px; + margin-top: 10px; + margin-bottom: 10px; + } +} + +.button { + background: #006ce7; + border: 1px solid #002452; + border-radius: 6px; + cursor: pointer; + font-weight: 600; + font-size: 16px; + padding: 14px 24px; + color: #fff; +} +.button:hover { + opacity: 0.8; + border-color: #006ce7; + color: #ccc; +} + +.captcha-service-kor-elf { + position: relative; + z-index: 10; +} + +.alert { + border-radius: 6px; + font-size: 16px; + padding: 14px 24px; + + ul { + padding: 0; + margin: 0; + list-style: none; + } +} +.alert.alert-success { + border: 1px solid #0a6f4d; + color: #0a6f4d; +} +.alert.alert-danger { + border: 1px solid #dc3545; + color: #dc3545; +} diff --git a/app/application/resources/views/admin/layout/_navigation.blade.php b/app/application/resources/views/admin/layout/_navigation.blade.php index 146d8a4..2312c1b 100644 --- a/app/application/resources/views/admin/layout/_navigation.blade.php +++ b/app/application/resources/views/admin/layout/_navigation.blade.php @@ -26,6 +26,22 @@ @endcan +@can('viewAny', \App\Models\ProjectFeedback::class) +
      1. request()->route()->named('admin.feedbacks.*'), + ])> + + + + + {{ __('admin-sections.Feedback') }} + +
      2. +@endcan + @can('viewAny', \App\Models\User::class)
      3. +
        +
        +
        + + + + + + + + + + + @foreach($feedbacks as $feedback) + + + + + + + @endforeach + +
        {{ __('admin-sections.Project') }}{{ __('site.attributes.message') }}{{ __('site.attributes.name') }}{{ __('site.attributes.email') }}
        {{ $feedback->project->name }}{!! $feedback->message !!} +

        {{ $feedback->name }}

        +

        IP: {{ $feedback->ip }}

        +

        UserAgent: {{ $feedback->user_agent }}

        +
        {{ $feedback->email }}
        + +
        +
        +
        + diff --git a/app/application/resources/views/admin/projects/feedbacks/project.blade.php b/app/application/resources/views/admin/projects/feedbacks/project.blade.php new file mode 100644 index 0000000..9b7a4b5 --- /dev/null +++ b/app/application/resources/views/admin/projects/feedbacks/project.blade.php @@ -0,0 +1,36 @@ +@section('meta_title', __('admin-sections.Project') . ': ' . $project->name . ' - ' . __('admin-sections.Feedback')) +@section('h1', __('admin-sections.Project') . ': ' . $project->name) + +
        +
        +

        {{ __('admin-sections.Feedback') }}

        +
        + + + + + + + + + + @foreach($feedbacks as $feedback) + + + + + + @endforeach + +
        {{ __('site.attributes.message') }}{{ __('site.attributes.name') }}{{ __('site.attributes.email') }}
        {!! $feedback->message !!} +

        {{ $feedback->name }}

        +

        IP: {{ $feedback->ip }}

        +

        UserAgent: {{ $feedback->user_agent }}

        +
        {{ $feedback->email }}
        + +
        +
        +
        +
        diff --git a/app/application/resources/views/admin/projects/show.blade.php b/app/application/resources/views/admin/projects/show.blade.php index fe9ecbe..1217b98 100644 --- a/app/application/resources/views/admin/projects/show.blade.php +++ b/app/application/resources/views/admin/projects/show.blade.php @@ -48,6 +48,18 @@
      4. + + + {{ __('admin-sections.Feedback') }} + +
    diff --git a/app/application/resources/views/components/site/forms/input.blade.php b/app/application/resources/views/components/site/forms/input.blade.php new file mode 100644 index 0000000..602c7cb --- /dev/null +++ b/app/application/resources/views/components/site/forms/input.blade.php @@ -0,0 +1,12 @@ +
    + + + @error($requestName) + {{ $message }} + @enderror +
    diff --git a/app/application/resources/views/components/site/forms/textarea-wysiwyg.blade.php b/app/application/resources/views/components/site/forms/textarea-wysiwyg.blade.php new file mode 100644 index 0000000..24646e5 --- /dev/null +++ b/app/application/resources/views/components/site/forms/textarea-wysiwyg.blade.php @@ -0,0 +1,36 @@ +
    + + + @error($requestName) + {{ $message }} + @enderror +
    +@pushOnce('scripts') + + +@endpushonce diff --git a/app/application/resources/views/layout/site.blade.php b/app/application/resources/views/layout/site.blade.php index 120e4c6..570c009 100644 --- a/app/application/resources/views/layout/site.blade.php +++ b/app/application/resources/views/layout/site.blade.php @@ -37,11 +37,16 @@

    @yield('h1', '')

    + + @includeWhen($errors->any(), 'layout.site._errors', ['errors' => $errors->all()]) + @includeWhen(Session::has('success'), 'layout.site._success', ['success' => Session::get('success')]) + {{ $slot }}
    @@ -51,5 +56,6 @@
    @vite('resources/site/js/app.js') + @stack('scripts') diff --git a/app/application/resources/views/layout/site/_errors.blade.php b/app/application/resources/views/layout/site/_errors.blade.php new file mode 100644 index 0000000..a7d2f91 --- /dev/null +++ b/app/application/resources/views/layout/site/_errors.blade.php @@ -0,0 +1,7 @@ +
    +
      + @foreach($errors as $error) +
    • {{ $error }}
    • + @endforeach +
    +
    diff --git a/app/application/resources/views/layout/site/_success.blade.php b/app/application/resources/views/layout/site/_success.blade.php new file mode 100644 index 0000000..55f0f4c --- /dev/null +++ b/app/application/resources/views/layout/site/_success.blade.php @@ -0,0 +1,3 @@ +
    + {{ $success }} +
    diff --git a/app/application/resources/views/site/feedback/index.blade.php b/app/application/resources/views/site/feedback/index.blade.php new file mode 100644 index 0000000..fae1980 --- /dev/null +++ b/app/application/resources/views/site/feedback/index.blade.php @@ -0,0 +1,22 @@ +@section('meta_title', $websiteTranslations->translate('site.Feedback')) +@section('h1', $websiteTranslations->translate('site.Feedback')) + + + @if(Session::has('success') !== true) +
    + @csrf + + + +
    + @captcha + @error('captcha-verified') + {{ $message }} + @enderror +
    +
    + +
    + + @endif +
    diff --git a/app/application/routes/web-project.php b/app/application/routes/web-project.php index 5692160..bd15ea9 100644 --- a/app/application/routes/web-project.php +++ b/app/application/routes/web-project.php @@ -4,3 +4,10 @@ Route::get('/', [\App\Http\Controllers\Site\ProjectsController::class, 'index'])->name('home'); Route::get('/language/{language}', [\App\Http\Controllers\Site\ProjectsController::class, 'index'])->name('home-language'); + +Route::get('feedback', [\App\Http\Controllers\Site\FeedbackController::class, 'index'])->name('feedback'); +Route::get('feedback/language/{language}', [\App\Http\Controllers\Site\FeedbackController::class, 'index'])->name('feedback-language'); +Route::get('feedback/success', [\App\Http\Controllers\Site\FeedbackController::class, 'index'])->name('feedback.success'); +Route::get('feedback/success/language/{language}', [\App\Http\Controllers\Site\FeedbackController::class, 'index'])->name('feedback.success-language'); +Route::post('feedback', [\App\Http\Controllers\Site\FeedbackController::class, 'send'])->name('feedback.send'); +Route::post('feedback/language/{language}', [\App\Http\Controllers\Site\FeedbackController::class, 'send'])->name('feedback.send-language'); diff --git a/app/application/routes/web.php b/app/application/routes/web.php index 48d8468..9ad267d 100644 --- a/app/application/routes/web.php +++ b/app/application/routes/web.php @@ -31,8 +31,12 @@ Route::get('translations/{language}', [\App\Http\Controllers\Admin\Projects\TranslationsController::class, 'edit'])->name('translations.edit')->where(['language' => '[0-9]+']); Route::post('translations/{language}', [\App\Http\Controllers\Admin\Projects\TranslationsController::class, 'update'])->name('translations.update')->where(['language' => '[0-9]+']); + Route::get('feedbacks', [\App\Http\Controllers\Admin\Projects\FeedbacksController::class, 'project'])->name('feedbacks.index'); + })->where(['project' => '[0-9]+']); + Route::get('feedbacks', [\App\Http\Controllers\Admin\Projects\FeedbacksController::class, 'index'])->name('feedbacks.index'); + Route::post('languages/new-language', [\App\Http\Controllers\Admin\LanguagesController::class, 'newLanguage'])->name('new-language'); }); From 371395ddd5ab698adca25b282213aa9dbb039ec6 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 23 Apr 2024 19:36:24 +0500 Subject: [PATCH 15/20] Changed the project descriptions. --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c204bfe..ff87655 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# my-projects-website +## О проекте -Сайт для моих проектов. \ No newline at end of file +Свой сервис, что бы быстро создавать сайты для своих проектов. + +## Зависимости + +php 8.3 (модули: redis, gd) + +redis + +mysql 8 + +## Лицензия + +[MIT license](https://opensource.org/licenses/MIT). From e8b79ca4578f789cf1e6e3e7d6a63afea92f9c6c Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 23 Apr 2024 19:43:17 +0500 Subject: [PATCH 16/20] Changed the project descriptions. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ff87655..d392f37 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ redis mysql 8 +[Service Captcha](https://git.kor-elf.net/kor-elf/service-captcha) + ## Лицензия [MIT license](https://opensource.org/licenses/MIT). From 481dcac2cc1a616a7f398d86665f6e4bb8ef6ffc Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 24 Apr 2024 20:53:59 +0500 Subject: [PATCH 17/20] Fixed an error when the APP_FORCE_HTTPS=true parameter is set, and nginx sends the http scheme. --- .../app/Http/Middleware/ProjectDomainAndLanguage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php b/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php index 6503c95..99d6236 100644 --- a/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php +++ b/app/application/app/Http/Middleware/ProjectDomainAndLanguage.php @@ -5,6 +5,7 @@ use App\Enums\CacheTag; use Closure; use Illuminate\Http\Request; +use Illuminate\Support\Str; use Symfony\Component\HttpFoundation\Response; final class ProjectDomainAndLanguage extends ProjectLanguage @@ -12,6 +13,12 @@ final class ProjectDomainAndLanguage extends ProjectLanguage public function handle(Request $request, Closure $next): Response { $httpHost = $request->getSchemeAndHttpHost(); + if ( + config('app.force_https') === true + && Str::startsWith($httpHost, 'http://') + ) { + $httpHost = Str::of($httpHost)->replaceFirst('http://', 'https://')->toString(); + } $seconds = 3600; $project = CacheTag::Project->getCache()->remember(self::class . $httpHost, $seconds, function () use ($httpHost) { From 6a2991eb5e00fe3abb1187b0ee82b93bbcef4b59 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 24 Apr 2024 20:54:49 +0500 Subject: [PATCH 18/20] Docker-compose for production. --- app/application/.env.example | 1 + app/docker/.dockerignore | 10 +++--- docker-compose-prod.yml | 52 ++++++++++++++++++++++++++++++ docker-compose-prod_docker-hub.yml | 51 +++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 docker-compose-prod.yml create mode 100644 docker-compose-prod_docker-hub.yml diff --git a/app/application/.env.example b/app/application/.env.example index 61089d6..0f7ae55 100644 --- a/app/application/.env.example +++ b/app/application/.env.example @@ -11,6 +11,7 @@ CAPTCHA_STATIC_PATH=http://your-domain-captcha-or-IP:8081/captcha CAPTCHA_PUBLIC_TOKEN= APP_FORCE_HTTPS=false +#UNIT_SOURCE="\"172.16.0.0/12\"" APP_DEFAULT_LOCALE=ru APP_FAKER_LOCALE=ru_RU diff --git a/app/docker/.dockerignore b/app/docker/.dockerignore index 996b0fd..c286cf9 100644 --- a/app/docker/.dockerignore +++ b/app/docker/.dockerignore @@ -1,6 +1,8 @@ **/*.env **/*.env.example -app/bootstrap/cache/* -app/storage/** -app/vendor/** -app/node_modules/** +application/bootstrap/cache/* +application/storage/** +application/vendor/** +application/node_modules/** +application/public/build/** +application/public/storage diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml new file mode 100644 index 0000000..4240172 --- /dev/null +++ b/docker-compose-prod.yml @@ -0,0 +1,52 @@ +version: '3.7' +services: + app: + build: + context: app + dockerfile: docker/Dockerfile + target: PRODUCTION + # restart: always + depends_on: + - db + - app-redis + - captcha-app + ports: + - ${DOCKER_APP_PORT}:9000 + volumes: + - ./app/application:/var/www/html + app-redis: + image: redis:3.0-alpine + # restart: always + + captcha-app: + image: korelf/service-captcha:0.7.1 + # restart: always + cap_drop: + - ALL + cap_add: + - SETGID + - SETUID + - CHOWN + - FOWNER + depends_on: + - db + - captcha-redis + env_file: captcha-app/.env + ports: + - ${DOCKER_CAPTCHA_PORT}:9000 + captcha-redis: + image: redis:3.0-alpine + # restart: always + db: + image: docker.io/mysql:8.0.33 + command: --default-authentication-plugin=mysql_native_password + #restart: always + ports: + - ${DOCKER_DB_PORT}:3306 + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: ${DB_DATABASE} + MYSQL_USER: ${DB_USERNAME} + MYSQL_PASSWORD: ${DB_PASSWORD} + volumes: + - ./db/data:/var/lib/mysql diff --git a/docker-compose-prod_docker-hub.yml b/docker-compose-prod_docker-hub.yml new file mode 100644 index 0000000..2713baf --- /dev/null +++ b/docker-compose-prod_docker-hub.yml @@ -0,0 +1,51 @@ +version: '3.7' +services: + app: + image: korelf/my-projects-website:0.1.0 + # restart: always + depends_on: + - db + - app-redis + - captcha-app + ports: + - ${DOCKER_APP_PORT}:9000 + env_file: app/.env + volumes: + - ./app/storage/app:/var/www/html/storage/app + - ./app/storage/logs:/var/www/html/storage/logs + app-redis: + image: redis:3.0-alpine + # restart: always + + captcha-app: + image: korelf/service-captcha:0.7.1 + # restart: always + cap_drop: + - ALL + cap_add: + - SETGID + - SETUID + - CHOWN + - FOWNER + depends_on: + - db + - captcha-redis + env_file: captcha-app/.env + ports: + - ${DOCKER_CAPTCHA_PORT}:9000 + captcha-redis: + image: redis:3.0-alpine + # restart: always + db: + image: docker.io/mysql:8.0.33 + command: --default-authentication-plugin=mysql_native_password + #restart: always + ports: + - ${DOCKER_DB_PORT}:3306 + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: ${DB_DATABASE} + MYSQL_USER: ${DB_USERNAME} + MYSQL_PASSWORD: ${DB_PASSWORD} + volumes: + - ./db/data:/var/lib/mysql From 0c5f2317fd5d1eb2b24428761f644784c536740c Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 24 Apr 2024 21:00:27 +0500 Subject: [PATCH 19/20] Links are provided on the project page. --- .../resources/views/site/projects/about.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/application/resources/views/site/projects/about.blade.php b/app/application/resources/views/site/projects/about.blade.php index 5f4a118..6f2d3fd 100644 --- a/app/application/resources/views/site/projects/about.blade.php +++ b/app/application/resources/views/site/projects/about.blade.php @@ -3,4 +3,9 @@ {!! $content->description !!} + +
    + @foreach($links as $link) +

    {{ $link->title }}

    + @endforeach
    From d6cb0588300cac6183a63d366418bd781ff8dd47 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 24 Apr 2024 21:06:23 +0500 Subject: [PATCH 20/20] Added a link to the project website. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d392f37..454037d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Свой сервис, что бы быстро создавать сайты для своих проектов. +[Сайт проекта](https://my-projects-website.projects.kor-elf.net/) + ## Зависимости php 8.3 (модули: redis, gd)