@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.
- package/AGENTS.md +26 -21
- package/README.MD +7 -53
- package/cli/plugins.ts +1 -7
- package/client/agent-annotations-host.ts +8 -2
- package/client/app.ts +0 -2
- package/client/components/brand-loading-mark.tsx +46 -0
- package/client/components/brand-mark-geometry.ts +7 -0
- package/client/components/brand-spinner.tsx +22 -0
- package/client/components/brand-watermark.tsx +32 -0
- package/client/components/loading.tsx +4 -3
- package/client/components/route-overlay.tsx +15 -4
- package/client/components/status-badge.tsx +29 -0
- package/client/components/ui/alert-dialog.tsx +186 -0
- package/client/components/ui/card.tsx +102 -0
- package/client/components/ui/dialog.tsx +2 -2
- package/client/components/ui/radio-group.tsx +35 -0
- package/client/components/ui/spinner.tsx +2 -20
- package/client/components/ui/toast.tsx +3 -2
- package/client/extensions/nocobase-file-component-ui/components/file-upload-field.tsx +3 -3
- package/client/extensions/nocobase-inbox/inbox-item.tsx +4 -3
- package/client/layouts/app-layout.tsx +8 -28
- package/client/layouts/components/app-sidebar.tsx +4 -4
- package/client/layouts/components/header-actions.tsx +3 -36
- package/client/layouts/index.ts +0 -1
- package/client/lib/toaster.ts +1 -1
- package/client/locales/en-US.ts +31 -17
- package/client/locales/zh-CN.ts +24 -14
- package/client/pages/auth/login.tsx +1 -0
- package/client/pages/auth/shared.tsx +9 -9
- package/client/pages/home.tsx +80 -7
- package/client/plugins.ts +2 -6
- package/client/routes.ts +4 -10
- package/client/routing/app-router.tsx +5 -55
- package/client/routing/route-navigation.ts +1 -1
- package/client/styles.css +244 -0
- package/client/theme/theme-settings.tsx +22 -20
- package/client/theme/themes/compact.css +34 -16
- package/client/theme/themes/default.css +34 -16
- package/config.example.yml +0 -16
- package/eslint.config.js +0 -13
- package/index.html +48 -16
- package/package.json +24 -30
- package/server/config/index.ts +0 -6
- package/server/plugins.ts +0 -4
- package/tests/components/app-layout-routes.test.tsx +1 -1
- package/tests/components/inbox.test.tsx +0 -19
- package/tests/components/layout-i18n.test.tsx +5 -92
- package/tests/components/primitive-labels.test.tsx +61 -1
- package/tests/fixtures/theme-tokens.html +1 -1
- package/tests/fixtures/theme-tokens.tsx +7 -0
- package/tests/logic/app-server.test.ts +0 -15
- package/tests/logic/client-plugin-registry.test.ts +0 -21
- package/tests/logic/client-routes.test.ts +2 -6
- package/tests/logic/client-shell.test.tsx +11 -107
- package/tests/logic/client-theme.test.tsx +17 -1
- package/tests/logic/config.test.ts +0 -1
- package/tests/logic/plugin-commands.test.ts +1 -1
- package/tsconfig.json +1 -4
- package/tsconfig.server.json +1 -6
- package/client/components/inbox-badge.ts +0 -49
- package/client/components/inbox-button.tsx +0 -132
- package/client/components/inbox-header-button.tsx +0 -25
- package/client/layouts/components/surface-empty.tsx +0 -35
- package/client/layouts/settings-layout.tsx +0 -172
- package/server/config/ai.ts +0 -27
- package/server/config/workflow.ts +0 -24
- package/tests/logic/client-settings.test.tsx +0 -841
- package/tests/logic/dev-routes-production-build.test.ts +0 -168
- package/tests/logic/plugin-page-authz.test.ts +0 -76
package/server/config/ai.ts
DELETED
|
@@ -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;
|