@nocobase/app-template-default 1.0.0-beta.57 → 1.0.0-beta.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/AGENTS.md +26 -21
  2. package/README.MD +7 -53
  3. package/cli/plugins.ts +1 -7
  4. package/client/agent-annotations-host.ts +8 -2
  5. package/client/app.ts +0 -2
  6. package/client/components/brand-loading-mark.tsx +46 -0
  7. package/client/components/brand-mark-geometry.ts +7 -0
  8. package/client/components/brand-spinner.tsx +22 -0
  9. package/client/components/brand-watermark.tsx +32 -0
  10. package/client/components/loading.tsx +4 -3
  11. package/client/components/route-overlay.tsx +15 -4
  12. package/client/components/status-badge.tsx +29 -0
  13. package/client/components/ui/alert-dialog.tsx +186 -0
  14. package/client/components/ui/card.tsx +102 -0
  15. package/client/components/ui/dialog.tsx +2 -2
  16. package/client/components/ui/radio-group.tsx +35 -0
  17. package/client/components/ui/spinner.tsx +2 -20
  18. package/client/components/ui/toast.tsx +3 -2
  19. package/client/extensions/nocobase-file-component-ui/components/file-upload-field.tsx +3 -3
  20. package/client/extensions/nocobase-inbox/inbox-item.tsx +4 -3
  21. package/client/layouts/app-layout.tsx +8 -28
  22. package/client/layouts/components/app-sidebar.tsx +4 -4
  23. package/client/layouts/components/header-actions.tsx +3 -36
  24. package/client/layouts/index.ts +0 -1
  25. package/client/lib/toaster.ts +1 -1
  26. package/client/locales/en-US.ts +31 -17
  27. package/client/locales/zh-CN.ts +24 -14
  28. package/client/pages/auth/login.tsx +1 -0
  29. package/client/pages/auth/shared.tsx +9 -9
  30. package/client/pages/home.tsx +80 -7
  31. package/client/plugins.ts +2 -6
  32. package/client/routes.ts +4 -10
  33. package/client/routing/app-router.tsx +5 -55
  34. package/client/routing/route-navigation.ts +1 -1
  35. package/client/styles.css +244 -0
  36. package/client/theme/theme-settings.tsx +22 -20
  37. package/client/theme/themes/compact.css +34 -16
  38. package/client/theme/themes/default.css +34 -16
  39. package/config.example.yml +0 -16
  40. package/eslint.config.js +0 -13
  41. package/index.html +48 -16
  42. package/package.json +24 -30
  43. package/server/config/index.ts +0 -6
  44. package/server/plugins.ts +0 -4
  45. package/tests/components/app-layout-routes.test.tsx +1 -1
  46. package/tests/components/inbox.test.tsx +0 -19
  47. package/tests/components/layout-i18n.test.tsx +5 -92
  48. package/tests/components/primitive-labels.test.tsx +61 -1
  49. package/tests/fixtures/theme-tokens.html +1 -1
  50. package/tests/fixtures/theme-tokens.tsx +7 -0
  51. package/tests/logic/app-server.test.ts +0 -15
  52. package/tests/logic/client-plugin-registry.test.ts +0 -21
  53. package/tests/logic/client-routes.test.ts +2 -6
  54. package/tests/logic/client-shell.test.tsx +11 -107
  55. package/tests/logic/client-theme.test.tsx +17 -1
  56. package/tests/logic/config.test.ts +0 -1
  57. package/tests/logic/plugin-commands.test.ts +1 -1
  58. package/tsconfig.json +1 -4
  59. package/tsconfig.server.json +1 -6
  60. package/client/components/inbox-badge.ts +0 -49
  61. package/client/components/inbox-button.tsx +0 -132
  62. package/client/components/inbox-header-button.tsx +0 -25
  63. package/client/layouts/components/surface-empty.tsx +0 -35
  64. package/client/layouts/settings-layout.tsx +0 -172
  65. package/server/config/ai.ts +0 -27
  66. package/server/config/workflow.ts +0 -24
  67. package/tests/logic/client-settings.test.tsx +0 -841
  68. package/tests/logic/dev-routes-production-build.test.ts +0 -168
  69. package/tests/logic/plugin-page-authz.test.ts +0 -76
@@ -1,27 +0,0 @@
1
- import type { AppConfigFactory } from '@nocobase/app-server/config';
2
- import {
3
- defineAIConfig,
4
- type AIApplicationConfig,
5
- } from '@nocobase/app-plugin-ai-employee/server/config';
6
-
7
- const ai: AppConfigFactory<AIApplicationConfig> = defineAIConfig({
8
- // Map a secret onto the field of one service it sets, keyed by that
9
- // service's name, such as
10
- // `OPENAI_API_KEY: envString('llmServices.openai.options.apiKey')` or
11
- // `GITHUB_MCP_TOKEN: envString('mcpServers.github.headers.Authorization')`.
12
- env: {},
13
- defaults: () => ({
14
- storage: {},
15
- aiEmployee: { storage: {} },
16
- aiKnowledgeBase: {
17
- storage: {},
18
- vectorDatabases: [],
19
- manifests: [],
20
- },
21
- llmServices: {},
22
- skills: { paths: [] },
23
- mcpServers: {},
24
- }),
25
- });
26
-
27
- export default ai;
@@ -1,24 +0,0 @@
1
- import {
2
- defineAppConfig,
3
- type AppConfigFactory,
4
- } from '@nocobase/app-server/config';
5
- import type { WorkflowRuntimeConfig } from '@nocobase/app-plugin-workflow/server';
6
- import { resolveWorkflowRuntimeConfig } from '@nocobase/app-plugin-workflow/server';
7
-
8
- const workflow: AppConfigFactory<WorkflowRuntimeConfig> = defineAppConfig(
9
- ({ paths, env }) =>
10
- resolveWorkflowRuntimeConfig(
11
- {
12
- sourceRoot: paths.root('workflows'),
13
- distRoot: paths.root('workflows'),
14
- artifactDisk: 'local',
15
- production: env.NODE_ENV === 'production',
16
- },
17
- {
18
- rootDir: paths.root(),
19
- serverDir: paths.server(),
20
- },
21
- ),
22
- );
23
-
24
- export default workflow;