feat: add new stores for cron, locale, providers, script, shared data, skills, and user info

- Implemented `cron` store to manage scheduled tasks with CRUD operations.
- Created `locale` store for language settings with persistence and system language detection.
- Added `providers` store to handle provider accounts and configurations with API interactions.
- Developed `script` store for managing automation scripts, including recording and execution.
- Introduced `sharedStore` for managing shared data across components.
- Established `skills` store for fetching, installing, and managing skills from a marketplace.
- Created `userinfo` store for user authentication and session management.

chore: update path aliases from `@store` to `@stores` in TypeScript configuration and Vite config
This commit is contained in:
duanshuwen
2026-04-15 21:49:25 +08:00
parent 364db041eb
commit e77c815a86
32 changed files with 192 additions and 128 deletions

View File

@@ -14,7 +14,7 @@ function isMainProcessExternal(id: string): boolean {
// Project-specific aliases that should be bundled (not external)
const internalAliases = [
'@lib/', '@electron/', '@src/', '@locales/', '@service/', '@utils/',
'@assets/', '@api/', '@constant/', '@components/', '@hooks/', '@store/', '@shared/'
'@assets/', '@api/', '@constant/', '@components/', '@hooks/', '@stores/', '@shared/'
];
// Check if the ID starts with any internal alias
@@ -135,7 +135,7 @@ export default defineConfig(({ mode, command }) => {
"@constant": resolve(__dirname, "./src/constant"),
"@components": resolve(__dirname, "./src/components"),
"@hooks": resolve(__dirname, "./src/hooks"),
"@store": resolve(__dirname, "./src/store"),
"@stores": resolve(__dirname, "./src/stores"),
"@utils": resolve(__dirname, "./src/utils"),
"@shared": resolve(__dirname, "./src/shared"),
"@locales": resolve(__dirname, "./src/i18n/locales"),