@nocobase/app-template-default 1.0.0-beta.58 → 1.0.0-beta.60
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 +28 -25
- package/README.MD +7 -57
- 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 +8 -164
- package/client/locales/system/en-US.ts +344 -0
- package/client/locales/system/zh-CN.ts +320 -0
- package/client/locales/zh-CN.ts +3 -155
- package/client/pages/auth/login.tsx +1 -0
- package/client/pages/auth/shared.tsx +9 -9
- package/client/pages/home/capabilities.ts +52 -0
- package/client/pages/home/index.tsx +190 -0
- package/client/pages/home/prompt-dialog.tsx +122 -0
- package/client/pages/home/use-copy.ts +38 -0
- package/client/plugins.ts +2 -2
- package/client/routes.ts +5 -11
- 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/eslint.config.js +0 -13
- package/index.html +48 -16
- package/package.json +23 -27
- package/tests/components/app-layout-routes.test.tsx +1 -1
- package/tests/components/home.test.tsx +174 -0
- 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/vitest.config.ts +1 -8
- 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/client/pages/home.tsx +0 -16
- 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 -53
package/client/pages/home.tsx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useTranslation } from '@nocobase/i18n/client';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
export default function HomePage(): ReactElement {
|
|
5
|
-
const { t } = useTranslation();
|
|
6
|
-
return (
|
|
7
|
-
<section className='mx-auto grid min-h-[calc(100svh-4rem)] w-full max-w-5xl place-items-center px-6 py-10'>
|
|
8
|
-
<div className='max-w-xl space-y-6 text-center'>
|
|
9
|
-
<h1 className='font-heading text-3xl font-semibold tracking-tight'>
|
|
10
|
-
{t('home.title')}
|
|
11
|
-
</h1>
|
|
12
|
-
<p className='text-muted-foreground'>{t('home.description')}</p>
|
|
13
|
-
</div>
|
|
14
|
-
</section>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
@@ -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;
|