Commit Graph
100 Commits
Author SHA1 Message Date
kor-elf ab2c173ceb Updated docker-compose-prod_docker-hub.yml to switch image sources from Docker Hub to MDHub and added environment variables, volumes, and services for better configuration and scalability. 2026-10-23 23:53:06 +05:00
kor-elf 76262c8190 Removed unused third-party SCSS imports from app.scss. 2026-10-23 22:41:55 +05:00
kor-elf 0f9dda9bdb Removed unused JS imports from app.js. 2026-10-23 22:41:48 +05:00
kor-elf d99b5dbf74 Added SCSS base structure for Volt Admin, including components, mixins, functions, and layout styling. 2026-10-23 22:41:17 +05:00
kor-elf 0279807def Removed unused $info variable in CaptchaVerificationInformation.php. 2026-10-23 20:48:06 +05:00
kor-elf 0cc1901720 Removed __destruct method from Image contract. 2026-10-23 20:43:22 +05:00
kor-elf f7810819e6 Removed redundant imagedestroy calls in Image.php. 2026-10-23 20:41:38 +05:00
kor-elf e1fe94f920 Added @throws CaptchaException annotation to createImageFromPathToFile method in Image.php. 2026-10-23 20:35:47 +05:00
kor-elf 62dcd6c0b9 Added @throws CaptchaException annotation to insertBackground method in Image.php. 2026-10-23 20:34:58 +05:00
kor-elf 643776336e Added ext-fileinfo to Composer dependencies. 2026-10-23 20:34:49 +05:00
kor-elf 4b21b75ded Added ext-gd to Composer dependencies. 2026-10-23 20:34:05 +05:00
kor-elf a2b37d99c4 Refactored Docker Compose: updated service names, adjusted build contexts and targets, added missing environment variables, and updated volumes for consistency across development and production. 2026-10-23 20:32:18 +05:00
kor-elf cf55fa3ac9 Refactored index.php: simplified bootstrapping, replaced kernel handling with handleRequest, and removed redundant comments. 2026-10-23 20:32:05 +05:00
kor-elf 6234b9b5fc Refactored artisan script: simplified bootstrapping, replaced kernel handling with handleCommand, and removed redundant comments. 2026-10-23 20:31:58 +05:00
kor-elf 253cfebbef Updated Vite configuration: defined globalThis, adjusted optimizeDeps, and enabled eager loading with query params for import.meta.glob. 2026-10-23 20:31:51 +05:00
kor-elf 646f3ee21a Updated npm dependencies and scripts: bumped package versions, added new optional dependencies, adjusted configuration, and set schema and module type in package.json. 2026-10-23 20:31:42 +05:00
kor-elf 5b66e715ab Updated Composer dependencies and scripts: bumped package versions, added new Composer scripts, and adjusted configuration settings. 2026-10-23 20:31:26 +05:00
kor-elf f300a566f0 Refactored Docker setup: replaced NGINX Unit with PHP-FPM and NGINX, simplified configurations, and removed redundant files. 2026-10-22 21:40:22 +05:00
kor-elf 995b34ead5 Fixed UNIT_SOURCE. 2024-06-12 00:44:14 +05:00
kor-elf e2b9e60b36 Updated to korelf/service-captcha:0.8.2. 2024-06-11 23:19:32 +05:00
kor-elf 47ef821c0f Added environment UNIT_SOURCE as an example. 2024-06-11 23:02:48 +05:00
kor-elf 0f07c8c6ab Improved queue launch in Docker.
Now it does not die, but in a loop inside it restarts php /var/www/html/artisan queue:work --verbose --sleep=5 --tries=10 --max-time=3600.
2024-06-11 22:44:48 +05:00
kor-elf af053b4d53 Добавил к Redis Volumes. 2024-06-11 22:42:58 +05:00
kor-elf de69776bc8 Added php artisan storage:link. 2024-06-11 22:42:10 +05:00
kor-elf cce94cd210 Added autocomplete="off" attribute to input password. 2024-06-11 22:39:15 +05:00
kor-elf ed6a036d8d Deleted sweetalert2. 2024-06-11 22:34:55 +05:00
kor-elf 3871670c91 Removed extra code. 2024-06-11 22:30:56 +05:00
kor-elf 0e93b2e780 Fixed .dockerignore. 2024-05-19 21:01:26 +05:00
kor-elf 1b5f805195 Captcha update to 0.8.1. 2024-04-28 20:00:01 +05:00
kor-elf b662a85572 Fixed the use of the UNIT_SOURCE parameter for Nginx Unit. 2024-04-28 19:48:20 +05:00
kor-elf bd91cdef0c BROADCAST_DRIVER changed to reverb. 2024-04-28 13:13:27 +05:00
kor-elf 1532cecedc For demo mode, I hid the display of IP and UserAgent. 2024-04-28 02:12:09 +05:00
kor-elf 5703015874 Revived the dashboard. 2024-04-28 01:26:30 +05:00
kor-elf 4bc170ed00 Added final to UsersController. 2024-04-26 20:36:32 +05:00
kor-elf 20ed4860da Added the ability to enable captcha when logging in. 2024-04-25 23:45:07 +05:00
kor-elf e059f09e2f Updated Laravel to 11. 2024-04-25 20:58:52 +05:00
kor-elf 8794b8af4e I returned the LICENSE.md file back. 2024-04-25 20:07:13 +05:00
kor-elf 85e181e51c Changed the project structure. 2024-04-25 19:56:34 +05:00
kor-elf 01153867b3 Update README.md.
Fixed link to JavaScript GUI repository.
2023-12-13 23:27:45 +06:00
kor-elf 172a9460df Fix https on prod.
Added the force_https parameter to env APP_FORCE_HTTPS. This will force https to be enabled.
2023-12-09 00:55:56 +06:00
kor-elf a5ba9eb3f8 I added (int) to the configuration in the parameters, where we get the numbers through the env function. 2023-12-09 00:54:12 +06:00
kor-elf e72dc03589 Update README with project specifics.
The README file has been updated to provide specific details about the current project.
2023-12-08 21:15:51 +06:00
kor-elf 6bf2bc793b Add Docker setup for production environment. 2023-12-08 21:10:31 +06:00
kor-elf 8ccbd5000d Add demo mode restriction to CaptchaToken destroy method.
This commit adds a check to the `destroy` method in the `CaptchaTokenService`. It uses the `Helpers::isDemoModeAndUserDenyUpdate` function to prevent users from deleting tokens while the application is in demo mode. This was added to protect the application's state during presentations or demos.
2023-12-05 21:48:02 +06:00
kor-elf a52b148101 Add license information for captcha backgrounds. 2023-12-05 21:01:49 +06:00
kor-elf b5db913c24 Add demo mode restrictions to user operations.
Added functionalities to restrict certain user operations like update, password change, and deletion in demo mode. This is done to prevent demo users from modifying crucial data. Helper methods are created for standard re-usable checks. Also, Blade directive is added for frontend UI demo checks.
2023-12-05 00:53:04 +06:00
kor-elf ebc2dfd944 Update copyright link in footer.
The copyright link in the footer of the private layout app has been updated in this revision. Previously, it was pointing to a Github account, kor-elf. It is now pointing to the actual repository, which now resides on git.kor-elf.net. In addition to this, the full name of the owner, Leonid Nikitin (kor-elf), has been added for better transparency and clarity.
2023-12-04 22:46:37 +06:00
kor-elf 63d3c8cc6e Add captcha code integration instructions to edit page.
In the captcha tokens edit page, a new section has been added to provide instructions for integrating the captcha code in user's website. This aims to facilitate ease of integration for users, by providing them a readily available code snippet.
2023-12-04 22:44:40 +06:00
kor-elf 630c316aaf Added service-captcha-gui. 2023-12-04 22:42:35 +06:00
kor-elf fcb8532b9d Added file LICENSE. 2023-12-04 22:41:23 +06:00
kor-elf 2a7aaed0db Correct typo in swagger.json
Fixed a typo in the 'user_agent' variable of the 'GetCaptchaKeyInfo' object in swagger.json. This was important to rectify in order to achieve accuracy and prevent potential errors during API documentation generation.
2023-12-03 00:57:33 +06:00
kor-elf 9221e089dd Revived API POST /captcha/{captcha_uuid}.
Receiving captcha information for validation.
2023-11-26 22:42:22 +06:00
kor-elf 10425db5e0 Fixed a bug where two identical symbols appeared in a captcha.
The commit fixes an issue where wrong variable was passed as second argument to randomSymbols method. Previously it was using an uninitialized variable 'fakes' which was supposed to be populated by 'success' variable. The 'success' variable already has the set of valid symbols which should be used to generate fake symbols for captcha.
2023-11-26 15:25:36 +06:00
kor-elf 520a3ba068 Revived API POST /api/v1/captcha.
Captcha validation has been adjusted.
2023-11-26 15:09:42 +06:00
kor-elf 18899c81f2 Increase captcha image dimensions
The dimensions for both the 'image_head' and 'image_body' captcha images have been increased to provide a clearer and more readable captcha for users. 'Image_head' has been updated from 150x40 to 500x75, and 'image_body' from 300x240 to 500x500.
2023-11-23 00:26:47 +06:00
kor-elf 17fcc6e976 Removed unnecessary copying in Docker for development. 2023-09-19 17:26:26 +06:00
kor-elf 35c734d840 Add CaptchaToken to permissions language files
This commit adds 'CaptchaToken' key to both English and Russian versions of the permissions language files. The addition of the 'CaptchaToken' key was necessary to provide translations for tokens used in captcha creation. The lack of these labels was causing readability issues in UI.
2023-09-19 15:19:48 +06:00
kor-elf c3e4c68a41 Add CryptographyContract and its implementation
Added a new CryptographyContract interface and CryptographyString class that implements this contract. The CryptographyContract encapsulates the encryption and decryption of strings, enforcing these operations to be standardized across the application. The CryptographyString class uses Laravel's native crypt facades to perform these actions. In the AppServiceProvider, CryptographyContract is now bound to CryptographyString class, allowing the container to automatically resolve the dependencies wherever the interface is type hinted.
2023-09-19 14:29:01 +06:00
kor-elf 27046e6674 Revived API /api/v1/captcha.
Now a new captcha is created to check for a bot.
2023-09-19 14:27:33 +06:00
kor-elf 56cd409301 The return comment of the getCoordinators method has been changed. 2023-09-19 14:21:56 +06:00
kor-elf d8bf5dd116 Remove commented volumes from docker-compose.yml.
The lines setting up volumes for the 'swagger' service were commented out and redundant, leading to potential confusion. This commit removes those lines to clean up and simplify the file.
2023-08-27 22:25:09 +06:00
kor-elf 61cc272e2f Rename parameter names in Swagger API documentation.
In our Swagger API documentation, the parameter names 'public_token' and 'private_token' have been renamed to match our established naming conventions. The hyphenated form ('public-token' and 'private-token') is more consistent with other parameters.
2023-08-23 23:45:57 +06:00
kor-elf d72d6ff614 Update swagger.json for accurate API path.
The "servers" section was deleted and the "/api/v1" part was added to "paths" values for a more refined URL structure. This change makes it more clear that the API version is part of the API route.
2023-08-23 21:56:06 +06:00
kor-elf 9bfd3fef1a Add Swagger API documentation and proxy routing.
Added Swagger as a new service in the docker-compose file for generating the API documentation. The new API documentation is provided via an OpenAPI file located at `public/swagger.json`. Changes in routing were done to handle /api-docs requests and redirect them to the running Swagger UI instance. This will make API easier to understand and debug.
2023-08-23 01:02:56 +06:00
kor-elf 742b0feaf0 Add captcha tokens management. 2023-08-22 00:15:35 +06:00
kor-elf d2b29e2225 The refactoring added final readonly to App\Services\Role\BuilderCommand. 2023-08-01 23:43:03 +06:00
kor-elf 8f143c031f Fixed warning in analysis PHP Storm. 2023-08-01 23:40:10 +06:00
kor-elf 3e18ca6510 Fixed warning in analysis PHP Storm. 2023-08-01 23:38:09 +06:00
kor-elf faa706a79a Removed duplicate "Toggle Navigation" keys in languages. 2023-08-01 23:36:16 +06:00
kor-elf 941699f473 Added @can('delete', $role). 2023-08-01 22:09:39 +06:00
kor-elf 9c1ed593b5 Added method getRolesForSelect in the RoleRepository. 2023-08-01 22:09:06 +06:00
kor-elf 73d99a0432 Fixed typo deleting RolePolicy: Role to role. 2023-08-01 22:07:47 +06:00
kor-elf 52c6fd88d7 Added the ability to manage users. 2023-08-01 22:04:35 +06:00
kor-elf dc6b6b0d42 Added @canany(['create', 'update'], $role) to resources/views/private/roles/_from.blade.php. 2023-08-01 21:53:07 +06:00
kor-elf 4083e2ec5e Added the ability to manage a group of users. 2023-07-16 19:21:09 +06:00
kor-elf ba7e52f8ac Added a new function 'errors' in Private Controller to handle service errors. This function checks if the resulted error code matches HTTP_UNPROCESSABLE_ENTITY and in that case, it redirects back with input and errors. For any other case, it aborts with the resulted error code and message. The main purpose of this change is to centralize error handling in one place and make the controller's actions cleaner. 2023-07-12 23:44:53 +06:00
kor-elf 1facb19efb Refactor Role.php for improved code clarity.
The Role class in app/Models has been refactored to improve readability and maintainability. The 'slug' field was replaced with 'code' for consistency with the rest of the codebase. In addition, the 'isRemove' and 'isAdmin' methods were rewritten using new 'Attribute' Eloquent cast. This refactor enhances the code's clarity, promotes better comprehension, and clears redundant code comments.
2023-07-12 23:42:29 +06:00
kor-elf 919f6e1e42 Added click confirmation script. 2023-07-12 23:31:20 +06:00
kor-elf ec5be8167e Add @stack('scripts') to main layout. 2023-07-12 23:23:51 +06:00
kor-elf d10cc8603e The color of the links in the footer was changed from primary (probably blue) to gray-700 (dark gray) to improve readability against the white background. The change affects the link to the author's Github page and the link to the Volt - Bootstrap 5 Dashboard Template product page. 2023-07-12 22:53:27 +06:00
kor-elf adb20f70a5 Update primary color variable in SCSS. 2023-07-12 22:52:29 +06:00
kor-elf 2121af2914 Renamed the "slug" field in the roles table to "code" to facilitate coding standards and improve readability. This unique identifier will now be referred to as 'code' across the application, creating consistency and reducing potential confusion in the future.
!!! Since the project has not yet been launched, therefore, I do not create a new migration, but change the current one. !!!
2023-07-12 22:30:05 +06:00
kor-elf a3fa966643 Adjusted padding in sidebar for large screens. 2023-07-10 23:12:38 +06:00
kor-elf 9319c2d92d A new middleware UserLocale.php has been added. This middleware sets the language locale based on each user's preference. It operates by checking if the user's preferred language is set during the request cycle and if so, it changes the app's locale accordingly. This feature facilitates personalization by displaying the app in a user's preferred language.
Also, registering the middleware in the `Kernel.php` allows it to be used throughout the application
2023-07-10 21:44:00 +06:00
kor-elf 907bac5586 Added the ability to save user settings. 2023-07-10 21:42:55 +06:00
kor-elf b1c9dac3cc The type for 'timezone' in the 'users' table was previously assigned as an unsigned integer. For flexible usage and to support a larger range of timezones, it has been altered to a string. The maximum length is set to 50 characters. This change ensures a more universal and user-friendly handling of various timezone situations.
!!! Since the project has not yet been launched, therefore, I do not create a new migration, but change the current one. !!!
2023-07-10 21:39:40 +06:00
kor-elf 79112680bd Updated the visibility of getTitle, getType, and getValue methods in the Input class from protected to private. This was done to limit and control access to these methods to only within the class, enhancing encapsulation and improving security. 2023-07-09 19:39:37 +06:00
kor-elf 524bf569e3 The 'locale' column in the users table migration was renamed to 'lang'. This change was made to improve the clarity and consistency of naming conventions across the database. The term 'lang' is more universally recognized and thus provides better code readability.
!!! Since the project has not yet been launched, therefore, I do not create a new migration, but change the current one. !!!
2023-07-09 19:31:42 +06:00
kor-elf e5d0cac07d Changed the data type and default value of 'locale' and 'timezone' fields in the users table. Instead of using strings, we are now using unsigned integers.
!!! Since the project has not yet been launched, therefore, I do not create a new migration, but change the current one. !!!
2023-07-08 15:12:10 +06:00
kor-elf 39eae7f196 Added a new feature to allow users to update their passwords. 2023-07-07 18:08:14 +06:00
kor-elf 00a0624eea This commit adds update functionality to user profiles. New routes, views, and controller methods have been created to facilitate this along with form requests for validation. Significant changes include new methods in the ProfileController, addition of an UpdateRequest class for validation purposes and the creation of a profile update view. These changes allow users to edit and update their profile information on the application. 2023-07-07 00:07:19 +06:00
kor-elf 55cd927f12 This commit adds two new components for handling form inputs in the private section of the site. 'Form.php' provides a base class for forms with methods for retrieving request names. 'Input.php' extends this to handle input fields specifically, allowing title, name, type, and value to be specified. An associated Blade view 'input.blade.php' has been added to render these inputs in views. This helps in reusability and maintainability. 2023-07-07 00:05:38 +06:00
kor-elf 24098415b5 Changed the way bootstrap is imported and added Chartist for charting functionality. This update provides wider access to Bootstrap features and integrates Chartist for better data representation. 2023-07-07 00:03:57 +06:00
kor-elf 398f5e2097 Added necessary template files and view components for scaffolding of the private area of the application. This includes error and success message components for efficient handling of user feedback messages. Added navigation components and dashboard structure to the private layout. This will streamline the implementation of features in the private area and ensure a consistent user interface. 2023-07-07 00:03:03 +06:00
kor-elf 92206a028a Refactor error check in AuthController.
Changed the error check in the AuthController from checking if the result is not successful to checking if the result has an error. This change was made to clarify the code and ensure that errors are handled properly.
2023-07-06 22:32:29 +06:00
kor-elf 6dd24ac1d3 A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity. 2023-07-06 22:31:39 +06:00
kor-elf 91810190b7 Introduced a new class ServiceResultSuccess to distinctively handle successful service responses. Changes were made in AuthService and Service base class to replace ServiceResultArray with ServiceResultSuccess for successful operations. This provides a more accurate response type and improves code readability. 2023-07-06 21:54:10 +06:00
kor-elf c18e7e54b7 Modified the Middleware Kernel to use a new method for request throttling that uses Redis and created a new middleware to ensure that user email is verified.
These changes allow for more efficient request throttling by utilizing Redis. The new EnsureUserIsVerified middleware improves security by validating that a user's email has been verified or if the user is active before granting access, returning a 403 error if the user fails these checks.
2023-07-06 19:52:39 +06:00
kor-elf 00910831a4 The authorization method of the AuthController has been updated to specify a return type. This was done to ensure that the method always returns an instance of a RedirectResponse, thereby enhancing the code's readability and preventing unexpected return types. 2023-07-06 19:50:22 +06:00
kor-elf 5d61ab425e Extended rate limiting functionality within the RouteServiceProvider to limit the login requests. Now the application limits the number of requests both per IP address and per email. This will drastically improve security by minimizing automated spam and brute-force attack attempts. 2023-07-06 10:50:15 +06:00