Commit Graph

63 Commits

Author SHA1 Message Date
Jeremy
41234a52bf Merge branch 'feature/alpha-completion' into development 2025-11-20 20:32:10 -05:00
Wikid82
2eab570d54 Add comprehensive tests for services and middleware
- Implement tests for AuthMiddleware to handle cookie and token authentication.
- Create tests for the Importer and Manager in the Caddy package.
- Enhance AuthService tests with password change and token validation scenarios.
- Introduce tests for CertificateService to validate certificate listing and expiry.
- Expand LogService tests to cover log querying and pagination.
- Add NotificationService tests for creating, listing, and marking notifications as read.
- Implement ProxyHostService tests for CRUD operations and unique domain validation.
- Create RemoteServerService tests for CRUD operations.
- Add UpdateService tests to mock GitHub API responses for version checking.
- Introduce UptimeService tests to check host availability and notifications for down hosts.
2025-11-20 20:14:35 -05:00
Wikid82
234427a195 feat: add fake_caddy.sh script for testing purposes 2025-11-20 20:06:57 -05:00
Wikid82
77e530ac20 feat: Implement backend support for advanced access logging 2025-11-20 13:19:09 -05:00
Wikid82
56ab9486a4 feat: implement settings refactor, system status, notifications, and pre-commit hooks 2025-11-20 11:37:10 -05:00
Wikid82
6098df2d68 feat: add cron and lumberjack dependencies for scheduling and log rotation 2025-11-20 10:28:03 -05:00
Wikid82
12e74d1c84 feat: implement backup and log services with backup creation and log reading functionality 2025-11-20 10:27:55 -05:00
Wikid82
cf368f107c feat: implement logging configuration with access log setup 2025-11-20 10:27:45 -05:00
Wikid82
c63fa70414 feat: add backup and log routes with corresponding handlers 2025-11-20 10:27:37 -05:00
Wikid82
166b493629 feat: add backup and logs handlers with corresponding tests 2025-11-20 10:27:31 -05:00
Wikid82
556426841f feat: implement logging setup with rotation and fallback directory 2025-11-20 10:27:08 -05:00
renovate[bot]
0322605f45 fix(deps): update module github.com/gin-gonic/gin to v1.11.0 2025-11-20 14:56:05 +00:00
Wikid82
9d39241c61 feat: update health check API response and integrate versioning in Layout component 2025-11-20 09:54:55 -05:00
renovate[bot]
299f2a1631 chore(deps): update npm minor/patch 2025-11-20 13:41:09 +00:00
Wikid82
24711cbf28 fix: handle ForwardPort parsing error and update navigation expectation in Setup tests 2025-11-20 01:12:49 -05:00
Jeremy
e6826a440b Merge pull request #143 from Wikid82/renovate/github.com-gin-gonic-gin-1.x
fix(deps): update module github.com/gin-gonic/gin to v1.11.0
2025-11-19 23:42:26 -05:00
renovate[bot]
e44359f5ed fix(deps): update module github.com/gin-gonic/gin to v1.11.0 2025-11-20 04:41:50 +00:00
renovate[bot]
7fab85d5a1 chore(deps): update dependency go to v1.25.4 2025-11-20 04:41:32 +00:00
Wikid82
c97c16a752 feat: add Settings and Setup pages for user management
- Implemented Settings page for changing user passwords with validation and feedback.
- Created Setup page for initial admin account setup with form handling and navigation.
- Added API service layer for handling requests related to proxy hosts, remote servers, and import functionality.
- Introduced mock data for testing purposes and set up testing framework with vitest.
- Configured Tailwind CSS for styling and Vite for development and build processes.
- Added scripts for Dockerfile validation, Python syntax checking, and Sourcery integration.
- Implemented release and coverage scripts for better CI/CD practices.
2025-11-19 22:54:35 -05:00
Wikid82
1e2d87755d Remove Settings and Setup pages along with their tests and related API services
- Deleted Settings.tsx and Setup.tsx pages, which included functionality for changing passwords and setting up an admin account.
- Removed associated test files for Setup page.
- Eliminated API service definitions related to proxy hosts, remote servers, import functionality, and health checks.
- Cleaned up mock data and test setup files.
- Removed configuration files for TypeScript, Vite, and Tailwind CSS.
- Deleted scripts for testing coverage, release management, Dockerfile validation, and Python compilation checks.
- Removed Sourcery pre-commit wrapper script.
2025-11-19 22:53:32 -05:00
Wikid82
d10911bfbc docs: update required Go version to 1.24 across docs 2025-11-19 22:01:43 -05:00
Wikid82
4f17dad816 fix: downgrade Go version to 1.24.0 and update toolchain 2025-11-19 21:50:30 -05:00
Wikid82
d6bfb0c3c9 chore: update gitignore and restore backend files
- Add backend/node_modules to .gitignore
- Untrack backend/node_modules from git
- Restore backend source files (go.mod, main.go, etc.) that were missing in HEAD
- Include frontend test updates
2025-11-19 21:45:21 -05:00
Wikid82
f7ce1df847 feat: add TypeScript definitions for Babel parser 2025-11-19 21:40:24 -05:00
Wikid82
9c7ef43851 feat: add LICENSE, README, and package.json for @babel/helper-validator-identifier 2025-11-19 21:39:18 -05:00
Wikid82
0af08ee627 feat: add babel-parser script for parsing files and generating AST 2025-11-19 21:38:58 -05:00
Wikid82
685a6c810a feat: add helper functions for identifier and keyword validation
- Introduced `index.js` and `index.js.map` to export functions for checking identifier characters and names.
- Added `keyword.js` and `keyword.js.map` to implement functions for validating keywords and reserved words in JavaScript.
- Implemented various checks for strict and non-strict reserved words, including binding-specific checks.
2025-11-19 21:38:33 -05:00
Wikid82
6d449f33c3 feat: Add LICENSE and README files for @babel/helper-string-parser package 2025-11-19 21:38:07 -05:00
Wikid82
f0789dd8af Add helper functions for string parsing in Babel
- Introduced `readStringContents`, `readEscapedChar`, `readHexChar`, and `readCodePoint` functions to enhance string parsing capabilities.
- Implemented error handling for unterminated strings and invalid escape sequences.
- Added support for numeric separators in different numeral systems (binary, octal, decimal, hexadecimal).
- Included source maps for better debugging and traceability.
2025-11-19 21:37:43 -05:00
Wikid82
c510830181 feat: Add symlinks for various CLI tools in node_modules 2025-11-19 21:37:33 -05:00
Wikid82
d93779cb37 feat: Add versioning information and Full function for application version string 2025-11-19 21:37:25 -05:00
Wikid82
4662d00643 feat: Add services for authentication, certificate management, proxy host, and remote server 2025-11-19 21:37:14 -05:00
Wikid82
fd6987e4a1 feat: Implement NewRouter function for serving frontend static files 2025-11-19 21:37:06 -05:00
Wikid82
619c6f2129 feat: Add model definitions for access control, proxy configuration, and user management 2025-11-19 21:36:58 -05:00
Wikid82
7e0b2abad0 feat: Implement SQLite database connection functionality 2025-11-19 21:36:50 -05:00
Wikid82
47edce1eae feat: Add configuration management with environment variable support 2025-11-19 21:36:26 -05:00
Wikid82
8919fc7655 feat: Implement Caddy configuration management, including client, validation, and import functionality 2025-11-19 21:36:15 -05:00
Wikid82
bf089c2d09 feat: Add database seeding functionality for remote servers, proxy hosts, settings, and default admin user 2025-11-19 21:36:06 -05:00
Wikid82
304561303a feat: Implement certificate management handler and routes
- Added CertificateHandler for listing certificates.
- Created health check handler for service metadata.
- Introduced ImportHandler for handling Caddyfile imports.
- Developed ProxyHostHandler for CRUD operations on proxy hosts.
- Added RemoteServerHandler for managing remote servers.
- Implemented UserHandler for initial setup and user management.
- Created authentication middleware for secure API access.
- Registered all handlers and routes in the main API router.
- Added tests for proxy host and remote server handlers.
2025-11-19 21:35:20 -05:00
Wikid82
5e8f79b8dd feat: implement main application logic for backend server 2025-11-19 21:34:52 -05:00
Wikid82
512e6f858f refactor: remove unused Caddy configuration and validation code
- Deleted Caddy configuration types and validation logic from the backend.
- Removed associated test files for validation.
- Cleaned up related service and model files that are no longer needed.
- Removed unnecessary environment configuration and database connection code.
- Eliminated unused models related to access control, SSL certificates, and user management.
- Cleaned up node modules by removing unnecessary binaries.
2025-11-19 21:32:24 -05:00
Wikid82
4a63eaaec8 feat: Add symlinks for various CLI tools in node_modules/.bin 2025-11-19 21:17:50 -05:00
Wikid82
906d15fc9b test: Add CRUD tests for RemoteServer and ProxyHost handlers 2025-11-19 21:17:39 -05:00
renovate[bot]
b95c353c97 fix(deps): update module golang.org/x/crypto to v0.45.0 2025-11-20 01:00:40 +00:00
Wikid82
8f35d08dfa Merge branch 'feature/Automatic-HTTPS-&-Certificate-Management' into development 2025-11-19 19:57:46 -05:00
Wikid82
70a28e53ee feat: Add Change Password functionality 2025-11-19 19:57:38 -05:00
renovate[bot]
dbc3df904b fix(deps): update module gorm.io/gorm to v1.31.1 2025-11-20 00:49:24 +00:00
Jeremy
e529fcbb83 Merge pull request #116 from Wikid82/renovate/gorm.io-driver-sqlite-1.x
fix(deps): update module gorm.io/driver/sqlite to v1.6.0
2025-11-19 19:48:02 -05:00
renovate[bot]
7120678910 fix(deps): update module gorm.io/driver/sqlite to v1.6.0 2025-11-20 00:44:44 +00:00
Wikid82
945b18ab3e feat: Implement User Authentication and Fix Frontend Startup
- Implemented Issue #9: User Authentication & Authorization
  - Added User model fields (FailedLoginAttempts, LockedUntil, LastLogin)
  - Created AuthService with JWT support, bcrypt hashing, and account lockout
  - Added AuthMiddleware and AuthHandler
  - Registered auth routes in backend
  - Created AuthContext and RequireAuth component in frontend
  - Implemented Login page and integrated with backend
- Fixed 'Blank Page' issue in local Docker environment
  - Added QueryClientProvider to main.tsx
  - Installed missing lucide-react dependency
  - Fixed TypeScript linting errors in SetupGuard.tsx
- Updated docker-entrypoint.sh to use 127.0.0.1 for reliable Caddy checks
- Verified with local Docker build
2025-11-19 19:44:22 -05:00