Commit Graph

31 Commits

Author SHA1 Message Date
14b959fcc2 feat(proxy): add edit and delete functionality for proxies
- Add new API endpoints for modifying and deleting proxies
- Implement UI components for edit and delete actions
- Update proxy form to handle both create and edit modes
- Add confirmation modal for delete operation
2026-03-31 23:04:05 +08:00
dcc2d06c8f feat(user-settings): add user settings modal with username and password update
Implement user settings functionality in TopBar component with a modal dialog
that allows users to update their username and password. The modal includes
form validation and error handling, with proper password confirmation checks.
2026-03-31 21:52:31 +08:00
11245a5b7f feat(users): add user type modification functionality
- Add modifyType API endpoint in userApi
- Implement user type modification in Users.vue
2026-03-30 14:22:12 +08:00
ba78f77243 style(ui): add custom scrollbar styling to multiple components
Implement consistent scrollbar styling across Home, SideBar, and InstanceDetail components using CSS variables for theming. The styling includes track and thumb colors with hover effects for better visual feedback.
2026-03-26 17:32:57 +08:00
198129b4c2 feat(instanceDetails): replace API logs with WebSocket for real-time updates
Implement WebSocket connection for instance logs to enable real-time updates instead of periodic API polling. Remove deprecated API endpoints and update log display styling with level-specific backgrounds. Add cleanup on component unmount to prevent memory leaks.
2026-03-26 17:29:30 +08:00
34f0d9f6d5 refactor(Logs): use APP_TARGET to read target websocket addr
refactor(config): use APP_TARGET constant for backend URL configuration

Centralize backend URL configuration by introducing APP_TARGET constant in vite.config.js and using it for both WebSocket connection and API proxy. This improves maintainability by having a single source of truth for the backend address.
2026-03-26 16:29:18 +08:00
f7a2f9fb3f refactor(Instances): simplify instance loading logic
Replace multiple API calls with a single call and simplify the data mapping. The new implementation directly uses the status field from the list response instead of making separate info requests for each instance.
2026-03-25 22:35:01 +08:00
c6a02548c0 feat(instance): add getInstanceInfo endpoint and refactor instance loading
- Add new getInstanceInfo API endpoint to fetch complete instance details
- Refactor instance loading logic to use single API call instead of multiple
- Update Instances.vue and InstanceDetail.vue to use new endpoint
- Remove redundant status/config loading functions
2026-03-25 22:23:05 +08:00
8f5928b66f fix(Instances): fix start/stop instance fault
Ensure consistent string type for instanceID parameter in API calls to prevent potential type-related issues. Also update status display to use more descriptive 'running'/'stopped' values.
2026-03-25 21:25:07 +08:00
d2b45d268c fix(InstanceDetail): update status mapping and config field names
- Map instance status from boolean to string values for consistency
- Rename config file fields to match camelCase convention
2026-03-25 21:09:23 +08:00
d70193c15d feat(InstanceDetail): add delete instance button and functionality
Implement instance deletion feature with confirmation notification and navigation back to instances list. Also adjust header layout to accommodate the new button.
2026-03-25 10:49:08 +08:00
ea49736779 refactor: replace instanceID - Details with instanceName - Details
- Change API endpoint from POST to GET for instance status
- Update proxy target URL in vite config
- Add instance name display and remove initSystem from detail view
- Improve instance data handling in InstanceDetail component
2026-03-25 10:44:18 +08:00
7fdf62da7a refactor(instance): migrate from name-based to ID-based instance management
feat(instanceDetail): add instance status display and restart && stop/start control

- Change instance identification from name to ID in API endpoints and routes
- Add instance status management functionality with start/stop/restart
- Implement user type checks for instance operations
- Update UI to reflect instance status changes
- Remove completed TODO notes for implemented APIs
2026-03-24 12:36:21 +08:00
5b7c866eb3 fix(listProxies): modify proxy key name to correct 2026-03-23 22:13:30 +08:00
3e4bd77641 feat(proxy): add instance proxy display
- Change API endpoint and parameter from instanceName to instanceID for getInstanceProxies
- Update proxy list UI with type badge and structured details display
- Add async/await for mounted lifecycle hooks
- Improve proxy item styling with better spacing and visual hierarchy
2026-03-21 09:14:25 +08:00
2e445de6e3 feat(instance): add proxy creation functionality
- Add createProxy API method to instanceApi
- Implement proxy creation form in InstanceDetail view
- Add modal for proxy creation with required fields
- Include validation for port numbers
2026-03-19 17:33:45 +08:00
8c62e25c12 feat(InstanceDetail): add configuration edit form with modal dialog
- Move form styles from Instances.vue to common.css for reusability
- Add edit configuration modal with form handling
- Rename back-btn to common-btn for consistent styling
- Implement configuration update logic with API calls
2026-03-18 23:36:07 +08:00
a020afbc50 fix(Logs): reverse log order and fix truncation logic
Change log display to show newest first by using unshift instead of push. Fix log truncation to remove oldest entries by using pop instead of shift when exceeding 100 logs.
2026-03-17 22:29:27 +08:00
fb074e203d refactor(views): improve layout and scroll behavior
- Update Home.vue to use flex layout and proper scrolling
- Enhance Logs.vue scrollbar styling and remove redundant padding
- Set Vite server to listen on all network interfaces
2026-03-17 22:21:42 +08:00
ce8376458e feat(logs): replace API polling with WebSocket for real-time updates
Implement WebSocket connection to receive live log updates instead of periodic API polling. The changes include:
- Add WebSocket connection management with token authentication
- Implement computed property for log filtering
- Maintain only the latest 100 logs in memory
- Handle WebSocket events and errors appropriately
2026-03-17 19:24:05 +08:00
3754829b42 fix(Users): fix abnormal color in dialog add/edit user when dark mode enabled
build: update vite to v7.3.1 and related dependencies
2026-03-12 22:29:33 +08:00
37af87f5af refactor(toggleThemes): move all theme toggle code to toggleThemes.js and all theme related CSS code to themes.css 2026-03-10 19:34:18 +08:00
a93cfaa45f fix(Sessions): correct session property names and adjust styling
Update session property names to match backend API (Username, UserID, CreateAt, ExpireAt).
Add left margin to session info and update font family for session ID.
2026-03-10 19:09:44 +08:00
f103858fe0 feat(TopBar): add user settings & logout btn and finish logout function
refactor(auth): rename login-token to token for consistency

Update all token references from 'login-token' to 'token' across the application. Also enhance TopBar with user menu functionality including logout and settings options.

- Standardize token cookie name for better maintainability
- Add dropdown menu to TopBar with logout functionality
- Implement click-outside behavior for menu
- Improve TopBar styling and user interaction
2026-03-10 19:05:56 +08:00
491c74e231 refactor(utils): remove debug log from cookie getter 2026-03-10 18:41:27 +08:00
dd1f82920b fix(Users): fix user do not display in user management page and add user dialog box
- Change user property names to match API response (UserID, Username, Type, CreatedAt)
- Remove lastActive field from display
- Add error handling for user list loading
- Improve UI styling with better padding and background
- Add null checks for Username display
2026-03-10 14:53:42 +08:00
ffaa78be94 feat(Instances): add instance creation modal with form and validation
Implement a modal dialog for creating new instances with comprehensive form fields for different authentication methods (token/OIDC). Includes form validation, loading states, and success/error handling. Also adds consistent card styling across views and updates the add user button with an icon.

Add api-backend.md to gitignore to prevent accidental commits of local documentation.
2026-03-10 13:53:03 +08:00
8380720d5e refactor(styles): move common styles to shared CSS file
Extract duplicated styles across multiple components into a common CSS file and import it where needed. This improves maintainability by reducing code duplication and centralizing style definitions.
2026-03-09 22:25:58 +08:00
b4c8b21142 feat(ui): replace emoji icons with fontawesome icons
Add Font Awesome dependency and replace all emoji icons with corresponding Font Awesome icons across components. This provides better visual consistency and scalability.
2026-03-09 22:16:55 +08:00
2f6cfe7704 Initial commit: finish basic WebUI interface 2026-03-09 21:17:22 +08:00
d2a2a4de36 Initial commit 2026-03-09 18:35:48 +08:00