Commit Graph
44 Commits
Author SHA1 Message Date
bincxz eae5f16911 Adds option to clear local cloud sync data
Introduces UI and logic for users to reset local sync data, version, and history,
ensuring the next sync retrieves fresh data from the cloud. Enhances recovery from
sync issues and supports user control over local cloud data state. Updates
translations for both English and Chinese.
2026-01-01 20:18:03 +08:00
bincxz bef05e52d6 Load OAuth client secrets from environment variables
Improves configuration security and flexibility by reading OAuth
client IDs and secrets from environment variables instead of
hardcoding them. Enables easier key management across environments
and adds support for Google client secret in token exchange flows.
2025-12-30 02:11:17 +08:00
LAPTOP-O016UC3M\Qi Chen 49326ed909 Improves OAuth UX and removes verbose OneDrive logs
Enhances the OAuth authorization experience with modern, branded feedback pages and introduces loading overlays for popups. Refines popup window handling for consistency and security. Removes detailed OneDrive token logging and JWT inspection for cleaner logs and better privacy.
2025-12-23 15:39:30 +08:00
LAPTOP-O016UC3M\Qi Chen 49540882d3 Improves OneDrive auth, token handling, and error logging
Updates OneDrive OAuth flow to use the correct consumer endpoints and consistent, explicit scopes. Adds robust JWT decoding, token claim logging, and better error diagnostics for 401 responses. Implements automatic token refresh and retry logic for unauthorized errors, improving reliability and user experience during sync operations.
2025-12-23 14:55:30 +08:00
LAPTOP-O016UC3M\Qi Chen 4c382fcb62 Enables OneDrive sync via Electron bridge APIs
Integrates OneDrive cloud sync operations with Electron main process to bypass CORS and improve security.
Updates OAuth endpoints, client ID, and bridges all relevant sync file methods.
Simplifies error logging for provider connect failures.
Improves error message display in the UI.
2025-12-23 12:09:08 +08:00
LAPTOP-O016UC3M\Qi Chen c6fdfc0123 Adds main-process cloud sync support with detailed errors
Enables network operations for cloud sync providers (WebDAV, S3)
to be proxied via the main process, improving reliability and
support for Electron environments.

Improves error reporting for cloud sync connections with
detailed, context-rich error messages in the UI to assist
debugging and user support.

Refines hotkey debug logging, only enabling verbose output
when explicitly requested.

Relates to user-reported sync reliability and error clarity.
2025-12-22 18:15:50 +08:00
LAPTOP-O016UC3M\Qi Chen 9994748f23 Adds connecting state and improved error handling to cloud sync
Introduces a distinct "connecting" state for cloud sync providers, improving UI feedback during authentication flows. Enhances error messaging for network timeouts and unreachable services, helping users diagnose connection issues more easily. Updates translations and disables connect actions while connecting to prevent duplicate requests.
2025-12-22 15:44:53 +08:00
LAPTOP-O016UC3M\Qi Chen 4652e78e6a Adds WebDAV and S3 sync provider support
Introduces encrypted cloud sync via WebDAV and S3-compatible storage, including UI for configuration, validation, and connection management. Enables selection as active sync providers alongside existing options. Updates i18n, state, and domain types to accommodate new providers, unifying connection logic and improving extensibility for future sync backends.
2025-12-22 15:36:23 +08:00
LAPTOP-O016UC3M\Qi Chen d690c75a79 Adds customizable accent color and new UI themes
Introduces user-selectable accent color with custom and preset options, including UI and persistence updates. Enhances appearance settings with a toggle for custom accent mode and color picker support. Also adds several new light and dark UI theme presets for greater personalization.

Improves theme initialization for accent color and updates localization strings for related settings.
2025-12-19 17:57:02 +08:00
LAPTOP-O016UC3M\Qi Chen e64e71cc91 Refactors UI theme color system to use theme presets
Replaces the previous HSL-based accent color setting with selectable theme color presets for both light and dark modes. Updates settings state, storage, and UI to allow users to pick from predefined color palettes, improving consistency and customization. Syncs the new theme colors with Electron window backgrounds for native appearance integration. Updates language files and cleans up legacy color logic.
2025-12-19 17:42:13 +08:00
LAPTOP-O016UC3M\Qi Chen 1d1c509cbb Persists view mode selection across app sections
Introduces persistent view mode storage for hosts, keys, snippets,
known hosts, and port forwarding by using dedicated storage keys
and a reusable view mode hook. Improves user experience by
remembering individual section preferences instead of defaulting
to "grid" on each visit.
2025-12-19 16:23:52 +08:00
bincxz 9d4d349329 Prevents global hotkey handling during recording
Improves shortcut editing experience by disabling global hotkey interception while a keybinding is being recorded.
Ensures that hotkey recording state persists and synchronizes across settings and UI.
Prevents conflicts between shortcut editor and app-level key handling.
2025-12-19 07:03:00 +08:00
LAPTOP-O016UC3M\Qi Chen 01d446e98b Switches terminal engine to xterm.js and removes Ghostty
Replaces the Ghostty Web terminal backend with xterm.js, updating references, dependencies, and styles accordingly. Removes Ghostty-specific initialization, CSS, and dependencies for improved compatibility and maintainability. Updates terminal and SFTP mounting to use React lazy loading for better performance. Improves Electron window startup to avoid initial white flash. Cleans up cloud adapter dynamic imports for more efficient loading.

Updates documentation to reflect the terminal engine change.
2025-12-18 16:40:27 +08:00
LAPTOP-O016UC3M\Qi Chen 5b4a543fe3 Removes Google client secret from codebase
Eliminates storage and usage of the Google OAuth client secret
to enhance security and prevent accidental exposure of sensitive
credentials. Refactors authentication flows to operate without
the embedded secret.
2025-12-18 14:17:47 +08:00
LAPTOP-O016UC3M\Qi Chen 13f8e8cd59 Adds reusable SSH identities and integrates identity auth
Introduces reusable SSH identities for authentication, allowing hosts to reference centralized identity records containing usernames, passwords, and key/certificate associations. Updates connection, SFTP, terminal, and sync logic to resolve credentials via identities, improving credential management and reuse.

Enhances UI for identity selection, editing, and deletion. Updates localization for related identity and credential strings. Ensures identities are included in sync and vault persistence.

Streamlines SSH connection attempts by preferring key-based auth with fallback to password, both for host and identity-based authentication.

Facilitates safer, more flexible credential management across the application.
2025-12-18 11:45:20 +08:00
LAPTOP-O016UC3M\Qi Chen d8347582b4 Adds full UI internationalization and language switching
Implements comprehensive i18n support, replacing hardcoded UI strings with translation keys and introducing an i18n provider across the app. Adds persistent UI language selection, cross-window sync, and system menu localization. Updates settings and state to handle locale, propagates language changes to Electron, and adjusts components for runtime translation.

Enables a user-friendly, multi-language experience and prepares the app for further language expansion.
2025-12-17 12:06:28 +08:00
bincxz 2eb2ccd844 Removes biometric SSH key and WebAuthn support
Drops all biometric (Termius-style), WebAuthn, and FIDO2 SSH key logic, UI, and dependencies.
Simplifies key storage and authentication to only support standard and certificate keys.
Eliminates related backend, OS Secure Storage, and Windows Hello/Touch ID code.
Archives any legacy key records for migration safety.
Reduces complexity and potential maintenance/security burden.
2025-12-16 23:35:41 +08:00
LAPTOP-O016UC3M\Qi Chen b03042d4f4 Add Google Drive sync via main process to fix CORS
Implements Google Drive sync operations (find, create, update, download, delete) via the Electron main process to work around CORS and COEP restrictions in the renderer. Updates the preload bridge and type definitions to expose new API methods, and adapts the sync logic to prefer main process proxies when available. Improves error handling and ensures prompt UI updates on disconnect.

Enables more reliable Google Drive cloud sync across platforms.
2025-12-15 16:35:40 +08:00
LAPTOP-O016UC3M\Qi Chen 18b55c53d2 Adds Google OAuth IPC bridge for secure auth flows
Routes Google OAuth code exchange, token refresh, and user info requests through the main process to avoid CORS issues. Improves security and reliability of authentication and cloud sync by using IPC handlers instead of direct client-side HTTP requests.
2025-12-15 11:57:30 +08:00
LAPTOP-O016UC3M\Qi Chen 99762b3ec2 Adds secure cloud sync master key storage via OS keychain
Persists and auto-unlocks the cloud sync vault master key using the operating system's secure storage,
eliminating the need for repeated password entry after initial unlock. Enhances UX with dialog-based
unlock and key change flows, removes the dedicated locked screen, and synchronizes the key seamlessly
across app windows. Improves error handling for locked or conflicting states and ensures session password
is cleared on lock or failed unlock.
2025-12-15 11:42:29 +08:00
LAPTOP-O016UC3M\Qi Chen 0c721613be Enables real-time cross-window sync and improves UI updates
Implements cross-window data synchronization to ensure state
remains consistent across multiple windows (such as settings
or separate Electron windows) using storage events and state
listeners. Improves UI responsiveness by forcing re-renders
on relevant state changes and ensuring immediate updates after
sync actions and conflict resolutions. Also enhances modal and
component reactivity for better user experience.
2025-12-15 10:51:29 +08:00
bincxz fcee0eb61b Refactors cloud sync state with useSyncExternalStore
Improves real-time synchronization of cloud sync state across React components by adopting useSyncExternalStore. Removes manual state management and event subscription in favor of a direct, consistent state snapshot from the manager. Updates the sync manager to support snapshot-based subscriptions and deep cloning for reliable UI updates.

Enhances user feedback on manual sync actions through integrated toast notifications. Simplifies UI state logic and reduces redundant state update calls, making sync operations more robust and maintainable.
2025-12-15 02:06:42 +08:00
bincxz 8518b01d67 Adds sync versioning and history to cloud sync UI
Improves the cloud sync experience by displaying local/remote version info and detailed sync history in both the sync settings and status button popovers. Tracks sync actions and outcomes for better transparency and debugging. Updates provider connection logic and disables redundant connect buttons when a provider is already active.

Enhances user trust and control by making sync status and activity more visible and actionable.
2025-12-15 01:47:02 +08:00
bincxz e28a591554 Adds main process bridge for GitHub Device Flow auth
Enables GitHub Device Flow authentication through the main process
to bypass CORS issues by introducing IPC bridge handlers and updating
the adapter to use them when available. Improves error handling and
logging for easier debugging. Wraps settings in a toast provider to
support user notifications.
2025-12-15 01:15:51 +08:00
bincxz b297391f10 Enforces single cloud provider sync and improves UX
Ensures only one cloud provider is connected at a time by disconnecting others before authenticating a new provider, preventing sync conflicts and confusion. Improves error handling and logging for Google Drive sync file lookup, providing clearer user feedback for common API failures. Updates avatar image security and clarifies sync button behavior to enhance user experience.
2025-12-15 00:54:20 +08:00
bincxz d4399cd3d0 Integrates OAuth-based cloud sync and UI refactor
Replaces legacy GitHub Gist sync UI with a modular cloud sync component and introduces OAuth callback support in the bridge layer. Updates the top bar to use a sync status button linked to settings, improving user experience and future extensibility for cloud sync providers.
2025-12-15 00:48:15 +08:00
bincxz b7400f6a80 Improves formatting and readability of authentication dialog
Refactors conditional rendering and code formatting for clarity and consistency in the authentication dialog UI. Enhances maintainability without altering functionality or logic.
2025-12-14 20:00:41 +08:00
bincxz fb35f989b8 Refactors to enforce backend access via application hooks
Replaces all direct usage of browser globals and infrastructure service imports in UI components with dedicated application/state backend hooks. Introduces lint rules to prevent direct access to backend bridges and localStorage from components, promoting a cleaner separation of concerns and improved maintainability.

Moves user preferences (e.g., port forwarding form mode) to persistent state hooks, updates port forwarding and SFTP logic to rely on backend hooks, and centralizes logging through a logger utility. Cleans up debug code and removes obsolete scripts from HTML.

Improves testability, prepares for alternative backend implementations, and enforces architectural boundaries.
2025-12-13 01:38:44 +08:00
LAPTOP-O016UC3M\Qi Chen 1d7372480e Improves CJK font fallback and charset locale handling
Ensures terminal fonts include appropriate CJK fallbacks to prevent missing glyphs in East Asian languages, enhancing display consistency. Normalizes charset inputs to robust LANG values for remote shells, improving locale handling and reducing encoding issues. Adjusts dev script to use explicit loopback address for reliability.
2025-12-12 14:19:00 +08:00
bincxz 7c07290cfd Adds custom CSS support to settings dialog
Enables users to inject and persist custom CSS for personalized UI tweaks,
applying changes immediately. Improves appearance customization options
by expanding the color palette and adding a custom color picker.
2025-12-12 04:02:34 +08:00
bincxz 151cd4bfab Adds customizable global keyboard shortcut support
Implements a flexible system for configuring and persisting keyboard shortcuts across the app, enabling users to select hotkey schemes (Mac/PC), edit, disable, or reset shortcuts, and apply them globally and in terminal contexts.

Improves accessibility and workflow by allowing tailored key bindings, storing preferences in local storage, and integrating shortcut management into settings UI.

Refines styling for active UI elements, spinners, and borders for better theme consistency.
2025-12-12 03:24:28 +08:00
bincxz b272ae799c Enhances terminal settings customization and theme logic
Introduces granular terminal appearance and behavior controls,
including font ligatures, weights, cursor shape, mouse and keyboard
actions, and accessibility options, with persistent storage.

Replaces default terminal themes with new Netcatty variants and
updates theme selection logic to prioritize host-specific settings.

Improves settings dialog UI for better organization and clarity.
2025-12-12 02:38:16 +08:00
bincxz 2f8f5a3d51 Adds per-host and global terminal font size support
Enables customizing terminal font size both globally and for individual hosts,
with persistent storage and UI controls in settings and terminal toolbars.

Improves user experience and accessibility by allowing finer display adjustments.
2025-12-12 01:17:53 +08:00
bincxz d230ee02c7 Improves terminal performance and updates dependencies
Optimizes terminal rendering by tuning GPU settings, enabling dynamic renderer selection, and adding debounced resize handling for smoother user experience across platforms. Integrates XTerm serialization addon for enhanced terminal state management. Updates several project dependencies to improve compatibility, security, and maintainability. Removes obsolete refactoring documentation.
2025-12-12 00:40:03 +08:00
LAPTOP-O016UC3M\Qi Chen e00fa2733b Renames app and codebase from Nebula to Netcatty
Updates all code references, IPC channels, CSS classes, and storage keys
from "nebula" to "netcatty" to align with new branding and application identity.
Ensures consistency across frontend, Electron backend, global types,
and package metadata.
2025-12-11 18:42:01 +08:00
LAPTOP-O016UC3M\Qi Chen ba32d0d75b Migrates to Tailwind CSS v4 and improves hook deps clarity
Switches to Tailwind CSS v4 with theme configuration via CSS, removing inline CDN config for better maintainability and security.

Adds explicit eslint-disable comments in hooks to clarify dependency intent, aiding future development and preventing unnecessary warnings.

Renames props and variables reserved for future features to underscore-prefixed names, improving clarity and reducing confusion.

Removes unused catch parameters for cleaner error handling.

References to future UI and logic enhancements are annotated for maintainability and roadmap visibility.
2025-12-11 17:07:55 +08:00
LAPTOP-O016UC3M\Qi Chen b8c221d112 Organize and normalize imports across project
Reorder and normalize import statements, group icon imports, and add
missing utility imports (cn). Fix export/newline formatting and minor
type import tweaks. Add ESLint scripts to package.json and update the
lockfile.
2025-12-11 16:01:03 +08:00
LAPTOP-O016UC3M\Qi Chen 2068e5d245 Adds persistent shell history tracking and UI integration
Implements real-time shell command history capture from terminal sessions,
persisting up to 1000 entries with host and session metadata.

Integrates shell history into the UI with lazy-loading, snippet creation from
history, and improves host selection UX by reusing a shared panel component.

Enables users to review, reuse, and organize previously executed commands,
enhancing productivity and traceability across sessions.
2025-12-10 20:53:58 +08:00
LAPTOP-O016UC3M\Qi Chen 530da20a87 Removes AI assistant panel and Gemini service integration
Deprecates the in-app AI assistant by deleting its UI, related service functions, and all related props and state. Simplifies the interface and reduces dependency on external AI APIs, likely in favor of streamlining the app or due to maintenance concerns.
2025-12-10 10:57:45 +08:00
LAPTOP-O016UC3M\Qi Chen 80b2e9a9a0 feat: add KnownHostsManager component for managing SSH known hosts 2025-12-09 18:24:31 +08:00
bincxz 8c4e6df208 feat: 添加 ToastProvider 组件以支持全局通知功能,并在 PortForwarding 组件中集成错误提示 2025-12-09 03:22:39 +08:00
bincxz 46d3f8738e feat: Implement port forwarding functionality with SSH support
- Added port forwarding service to manage SSH tunnels.
- Integrated port forwarding UI in PortForwardingNew component.
- Enhanced VaultView to support new port forwarding props.
- Implemented IPC handlers in Electron main process for starting, stopping, and retrieving status of port forwarding tunnels.
- Added preload API for port forwarding operations and status listeners.
- Updated global types to include port forwarding options and results.
- Improved error handling and connection simulation for development mode.
2025-12-09 02:54:14 +08:00
bincxz 05adb89879 feat: Add TrafficDiagram component with animated port forwarding visualization
- Implemented TrafficDiagram component to visualize local, remote, and dynamic port forwarding.
- Added SVG icons for cloud, firewall, and server.
- Created animated line components for visual representation of connections.
- Integrated AppLogo and icons into the diagram for better UX.
- Included SVG assets for cloud, firewall, and server in the public folder.
2025-12-09 02:11:15 +08:00
bincxz 885d837fda feat: Implement agents architecture and core functionality
- Added agents overview documentation outlining the project structure and roles.
- Implemented `useSessionState` for managing terminal sessions and workspaces.
- Developed `useSettingsState` for handling user settings and theme management.
- Created `useVaultState` for managing hosts, SSH keys, snippets, and custom groups.
- Introduced domain logic for host normalization and sanitization.
- Defined models for Host, SSHKey, Snippet, TerminalSession, and Workspace.
- Implemented workspace management functions including creation, insertion, and pruning.
- Established local storage adapter for persistent data management.
- Integrated Gemini AI service for terminal simulation and command generation.
- Developed sync service for backing up and restoring configuration to/from GitHub Gists.
2025-12-08 01:29:49 +08:00