Commit Graph
66 Commits
Author SHA1 Message Date
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
bincxz 92ae9ed6f4 Improves macOS settings window appearance and behavior
Updates the frame, title bar, and traffic light positioning for the settings window on macOS to better match platform conventions.
Ensures window button visibility and adjusts fullscreen capabilities for greater consistency across platforms.
2025-12-26 01:40:20 +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 21a17accce Removes SSH debug logging for cleaner output
Eliminates verbose debug messages during SSH connection setup
to reduce noise in application logs and improve readability.
Debug logging can be re-enabled as needed for troubleshooting.
2025-12-23 11:10:50 +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 252d1e237f Improves window show logic and updates settings window size
Adds an option to skip waiting for renderer readiness before showing windows, enabling faster display when appropriate. Updates the default and minimum dimensions of the settings window for a more spacious layout. Adjusts show timeouts to further reduce perceived load time and improve user experience.
2025-12-22 16:29:19 +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
bincxz cd367fa44a 添加全屏支持,更新窗口控制逻辑和图标资源
Adds fullscreen support and updates window controls

Introduces fullscreen detection and change events for windows,
adjusts UI logic for fullscreen state on macOS, and updates icon
and logo assets for improved appearance. Enhances user experience
by better accommodating fullscreen workflows.
2025-12-19 03:24:00 +08:00
LAPTOP-O016UC3M\Qi Chen 920fa89510 Improves startup UX and cross-window settings sync
Adds a splash screen with fade-out animation for smoother startup and reduces initial blank window time in production.
Implements robust cross-window settings synchronization via IPC, ensuring changes propagate instantly across all open windows.
Optimizes settings persistence, theme/color validation, and settings change notifications.
Refactors Electron protocol handling for more secure, maintainable app resource serving.
Enhances chunk splitting strategy for faster initial load and better caching.
2025-12-18 23:04:57 +08:00
LAPTOP-O016UC3M\Qi Chen 0ac351b41a Eliminates white flash by deferring window show until paint
Defers Electron window display until the renderer signals first
meaningful paint, avoiding initial blank screens or white flashes,
especially on startup and settings windows. Implements a handshake
using a renderer-to-main process message, color-matches background
to the current theme, and falls back to a timeout in development.

Also migrates font loading to npm packages, replaces Google Fonts
usage, and adds code-splitting for dialogs and quick switcher to
improve performance. Restricts console debug output to development.
2025-12-18 17:41:38 +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 23b57e3fd6 Adds detailed packaging configs and safer dev detection
Introduces explicit OS/arch packaging targets and artifact naming for all platforms, and adds advanced installer options for Windows. Refines dev/prod environment detection to avoid accidental dev mode in packaged apps, improving build reliability and distribution clarity.
2025-12-18 16:09:23 +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 e238c4c20c Modularizes settings UI and removes modal settings dialog
Refactors the settings interface by deleting the monolithic modal dialog and splitting settings into dedicated tabs and components, improving maintainability and user experience. Enables application info retrieval through a new IPC bridge for use in About/Application screens. Streamlines code by removing redundant state and logic tied to the old settings modal.
2025-12-17 01:48:46 +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 3d4c30fd0c Switches Windows biometric auth to WebAuthn/Hello
Moves Windows biometric SSH key protection from native modules to direct WebAuthn (Windows Hello) in the renderer for more reliable user gesture handling. Integrates a new communication flow between main and renderer processes for credential creation and verification, updates session and permission handling for WebAuthn, and removes the native dependency. Ensures the biometric key flow is robust, cross-platform, and compatible with OS-level security UI requirements.
2025-12-16 21:16:23 +08:00
LAPTOP-O016UC3M\Qi Chen bc64043681 Removes FIDO2/WebAuthn support and related code
Drops all FIDO2 hardware security key and WebAuthn passkey functionality,
including backend bridges, UI components, state hooks, and type definitions.
Simplifies authentication to use only standard, certificate, and biometric
(Windows Hello/Touch ID) keys, improving maintainability and reducing code
complexity. Updates UI, application state, and backend logic to fully remove
FIDO2 options and code paths.
2025-12-16 16:59:13 +08:00
LAPTOP-O016UC3M\Qi Chen 267e5a31c4 Adds biometric SSH key support using OS secure storage
Introduces Termius-style biometric SSH key generation and usage, leveraging ED25519 keys encrypted with a random passphrase stored securely via OS Keychain or Windows Credential Manager. Enhances key management UI, integrates passphrase retrieval prompts for biometrics, and ensures proper cleanup of secure storage on key deletion. Enables cross-platform biometric authentication for SSH keys, improving security and usability.
2025-12-16 14:24:25 +08:00
LAPTOP-O016UC3M\Qi Chen d719dfdc69 Add integrated FIDO2 SSH key generation workflow
Implements a comprehensive UI and backend bridge for FIDO2 hardware and platform authenticator SSH key creation, including device selection, PIN entry, and touch prompts. Modernizes the key generation panel with enhanced options, feedback, and error handling, and establishes Electron IPC support for seamless device communication.

Improves security, user experience, and support for modern authentication hardware.
2025-12-16 11:40:43 +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
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 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 3b608834f6 Adds connection log capture and replay for terminals
Implements persistent logging of terminal sessions, capturing system info and terminal output for each connection, including local and remote. Introduces a logs section in the UI to view, save, delete, and replay connection logs in read-only tabs. Adds deduplication for known hosts and improves tab management to support log replays alongside terminal and workspace tabs.

Enables future auditing, troubleshooting, and session review by storing terminal data and session metadata.
2025-12-14 21:37:46 +08:00
bincxz 6ca8b18148 Add SSH certificate and passkey authentication support
Enables SSH certificate and WebAuthn/FIDO2 passkey authentication
for both terminal and SFTP connections, including UI for key and
certificate selection and passphrase entry. Updates agent and SSH
bridge logic to handle certificate, passkey, and fallback methods,
and patches signature algorithm handling for certificate auth to
ensure correct signature formats and algorithm negotiation.

Improves compatibility with modern SSH deployments and enhances
security by supporting hardware-backed and certificate-based keys.
2025-12-14 20:00:30 +08:00
bincxz 20843c0379 Improves macOS WebAuthn UX, updates packaging, cleans deps
Enhances biometric WebAuthn handling on macOS by preferring the browser helper flow in development/unpackaged environments, reducing UI hangs and improving reliability. Refines the logic for detecting packaged apps and adds configuration for explicitly selecting biometric flows.

Updates packaging scripts to use electron-builder's install-app-deps and disables a noisy Node warning, while removing @electron/rebuild from dependencies for faster, more reliable builds.

Cleans up package-lock.json by removing unused or redundant dev dependencies. Updates the application icon asset to a new version.
2025-12-14 14:58:12 +08:00
bincxz 04e720dcd6 Enables OpenSSH WebAuthn SK signature compatibility
Updates WebAuthn signature handling to advertise and produce
the correct OpenSSH WebAuthn SK signature algorithm and format,
ensuring interoperability with sshd's verification process.
Removes unused file-based logging for cleaner output and
applies a required protocol patch at startup.
2025-12-13 23:32:27 +08:00
bincxz 1e87a685c7 Improves WebAuthn reliability and browser helper UX
Enhances the WebAuthn browser fallback flow for biometric SSH keys on macOS by introducing deep link handling to refocus the app after authentication, updating the helper page with a clearer, more user-friendly UI, and expanding debug logging throughout the authentication workflow.

Adjusts SSH agent signature formatting for better FIDO2/OpenSSH compatibility and improves key migration logic by inferring key source types more accurately.

Aims to prevent user confusion during biometric prompts, ensure seamless return from browser flows, and facilitate troubleshooting of authentication issues.
2025-12-13 19:36:54 +08:00
bincxz e91940005b Adds WebAuthn browser fallback for macOS Touch ID
Implements a browser-based WebAuthn fallback for biometric key creation and authentication, improving reliability of Touch ID prompts on macOS, especially when Electron's embedded WebAuthn flow fails. Integrates helper flows, IPC, and UI feedback to guide users through the browser prompt and ensure cross-platform consistency.
2025-12-13 13:39:01 +08:00
bincxz 9e2abac86a Enables WebAuthn in production via local HTTP server
Serves production builds over a localhost HTTP server to ensure WebAuthn compatibility, working around Chromium's restriction on custom protocols. Adds diagnostics and timeouts for biometric credential creation, improves error handling, and clarifies sandbox usage for macOS. Cleans up static server processes on app exit to avoid resource leaks.
2025-12-13 04:58:56 +08:00
bincxz 092afeee57 Switches Electron production app to custom app:// protocol
Replaces the local HTTP server approach with a custom privileged protocol for loading the app in production, enabling secure WebAuthn (Touch ID/Windows Hello) without the overhead of an internal HTTP server. Improves platform authenticator error handling and ensures RP ID compatibility across environments. Updates development server configs for better cross-platform WebAuthn support and adds packaging scripts and dependencies for electron-builder.
2025-12-13 04:04:51 +08:00
bincxz 3e13f81f5a Adds full FIDO2 and biometric SSH/SFTP support
Integrates WebAuthn-based authentication for SSH and SFTP, enabling use of FIDO2 security keys and platform authenticators (Touch ID, Windows Hello) as SSH credentials. Updates UI for better credential selection and feedback. Improves error handling by routing errors through toast notifications instead of inline displays. Refactors backend to route credential details and agent logic for WebAuthn and certificate-based keys, ensuring agent-based authentication is prioritized and fallback to password is possible.
2025-12-13 02:50:44 +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 43154e7992 Enhances terminal customization and accessibility options
Expands terminal settings with advanced customization such as emulation type, font weights, line padding, keyword highlighting, link modifiers, and middle-click behavior.
Adds support for clickable URLs, cross-window settings sync, and context-aware right-click actions.
Improves accessibility with minimum contrast ratio controls and allows keyword-based output highlighting.
Refines theme/font selection UI for performance and clarity.
2025-12-12 22:06:03 +08:00
LAPTOP-O016UC3M\Qi Chen 49bb4f834c Adds cleanup of terminal sessions before app quit
Introduces a cleanup routine to gracefully close all terminal sessions when the application is about to quit, preventing potential node-pty assertion errors and resource leaks. Ensures reliable shutdown by handling exceptions during session termination.
2025-12-12 18:45:51 +08:00
LAPTOP-O016UC3M\Qi Chen dcd3f14b56 Adds directory listing cache and prevents stale updates
Introduces a time-limited directory listing cache to improve SFTP and local file navigation performance and responsiveness. Implements sequence tracking to avoid UI updates from outdated asynchronous results, preventing race conditions during rapid navigation or refreshes. Refactors local directory statting to use parallelism for faster performance in directories with many files. Improves user experience by ensuring directory views are always up to date and consistent.
2025-12-12 15:23:40 +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 dd2a0bcde8 Formats UI theme setting code for consistency
Removes unnecessary whitespace to improve code readability
and maintain consistent formatting in the settings panel.

Adds dedicated settings window and improves UI sync

Implements a separate settings window in desktop mode, enabling users to open settings as a standalone dialog via Electron integration and renderer routing.

Synchronizes theme and keybinding preferences across windows using storage events for a seamless experience. Enhances Quick Switcher hotkey display accuracy, focuses terminal tab on activation, and refines UI accent color usage for consistency and accessibility.

Improves visual coherence and formatting in the settings panel, addressing theme application and component styling.
2025-12-12 05:08:19 +08:00
bincxz be2073d94f Enables real-time terminal theme and font preview
Provides immediate feedback when customizing terminal appearance by applying theme, font, and font size changes in real time within the customization modal. Adds cancellation logic to revert unsaved changes, prevents duplicate IPC handler registration, and makes minor UI refinements for improved user experience.
2025-12-12 01:54:04 +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
bincxz dbc3a8a29b Improves tab drag UX and updates Electron for stability
Prevents drop indicator flickering during tab reordering and ensures reliable visual feedback.
Defers tab state notifications to avoid setState warnings in render phase.
Optimizes terminal performance by disabling transparency and custom glyphs.
Suppresses noisy DevTools autofill errors in Electron.
Upgrades Electron and related dependencies for compatibility and stability.
2025-12-11 23:40:38 +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 61cdc54096 Improves terminal performance and SSH responsiveness
Reduces terminal scrollback for faster rendering and preloads WASM for quicker terminal startup.

Optimizes SSH connection parameters for faster failure detection and lower latency (shorter timeout, longer keepalive interval, prioritized fast ciphers and key exchange).

Decreases IPC overhead by buffering terminal data output before sending to the frontend, reducing message frequency and improving efficiency.
2025-12-11 18:23:56 +08:00
LAPTOP-O016UC3M\Qi Chen 4bffff409a Refactors main process by modularizing core logic
Improves maintainability and scalability by extracting major functional areas
into dedicated bridge modules for SSH, SFTP, local filesystem, transfers,
port forwarding, terminal sessions, and window management.

Reduces code duplication and simplifies future updates by centralizing IPC
handler registration and dependency injection.

Prepares the codebase for easier testing and clearer separation of concerns.
2025-12-11 15:29:25 +08:00
LAPTOP-O016UC3M\Qi Chen bcad0c6865 Refactors UI and Electron main into modular subcomponents
Extracts major UI panels, file transfer, terminal controls, and SFTP logic into dedicated subcomponents for improved maintainability and clarity.
Modularizes Electron main process, delegating SSH, SFTP, terminal, port forwarding, and window management to bridge modules, reducing complexity and centralizing IPC registration.

Enables easier future development, clearer separation of concerns, and better scalability by making both frontend and backend architectures more modular and easier to reason about.
2025-12-11 15:20:42 +08:00
LAPTOP-O016UC3M\Qi Chen 48dc5aa6a8 Replaces popover menus with dropdowns and improves UX
Unifies UI controls by switching popover-based menus to dropdown components for view mode, sort, and tag filtering across multiple editors. Refactors dropdown rendering to use portals for more reliable positioning, and updates menu trigger icons for clarity.

Handles EPIPE and stream errors gracefully in Electron to prevent crashes when writing to closed streams, improving terminal stability.

Enhances code maintainability and ensures consistent user experience.
2025-12-11 12:05:06 +08:00
bincxz aff8a603d3 Adds protocol selection and native Telnet support
Improves host connection flow by allowing users to choose SSH, Mosh, or Telnet protocols when multiple are available.

Implements native Telnet client, removing system dependency and enabling proper Telnet negotiation, window resizing, and terminal type handling.

Ensures session protocol overrides persist during connection, improving accuracy of terminal sessions.

Enhances UI logic for protocol-specific host details and quick connect wizard navigation.
2025-12-11 03:28:44 +08:00