feat: 删除服务端依赖#1
Merged
Merged
Conversation
…tments - Added support for local-only mode in workspace creation, deletion, and updates. - Modified job handlers to cancel operations in local-only mode. - Updated file upload and download processes to handle local files. - Adjusted UI components to hide account and server settings when in local-only mode. - Introduced a utility function to check for local-only mode. - Created a migration plan for transitioning to a fully local desktop application.
- Deleted `mutations-sync.ts`, `server-sync.ts`, and `token-delete.ts` job handlers as they are no longer needed. - Removed corresponding mutation definitions for server sync and token deletion. - Updated the mutation service to directly call sync methods instead of scheduling jobs. - Refactored various services to check for local-only mode before executing sync operations. - Enhanced the UI to support changing the local storage directory with appropriate user feedback.
- Deleted email registration, password reset initialization, and completion forms to streamline authentication process. - Removed associated routes and components for registration and password reset. - Updated login component to remove unnecessary navigation links. - Refactored sidebar settings to eliminate logout option. - Cleaned up unused imports and components related to account settings and logout functionality.
- Deleted email login form, email verification form, and Google login components. - Removed login tab and main login logic from the application. - Cleaned up server-related components and contexts, including server provider and settings dialogs. - Updated routing to remove authentication-related routes and redirects. - Simplified workspace component by removing unnecessary server context.
- Deleted all test files related to API mutations, workspaces, synchronizers, and utility functions. - Removed global setup and environment setup files for tests. - Eliminated helper functions used for seeding test data. - Cleaned up tsconfig and build configurations for the server. - Removed turbo configuration for task management. - Deleted vitest configuration for testing framework setup.
…rfile - Deleted the entire Colanode Kubernetes Helm chart including README, templates, and values files. - Removed the custom PostgreSQL Dockerfile that included the pgvector extension. - This cleanup is part of the effort to streamline the deployment process and remove deprecated components.
There was a problem hiding this comment.
Code Review
This pull request transitions the repository to a local-first architecture by completely removing the server and mobile applications, focusing entirely on the desktop and web clients. Key updates include simplifying the documentation, adding macOS signing configurations to Electron Forge, and introducing local-only bootstrapping and custom storage directory management in the desktop app. The code review identified a critical issue in 'apps/desktop/src/main.ts' where 'fs' and 'path' are used without being imported, which would cause a runtime crash. Additionally, it was recommended to rename the 'app' parameter in 'ensureLocalOnlyBootstrap' to avoid shadowing the global 'app' variable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.