@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.
Files changed (72) hide show
  1. package/AGENTS.md +28 -25
  2. package/README.MD +7 -57
  3. package/client/agent-annotations-host.ts +8 -2
  4. package/client/app.ts +0 -2
  5. package/client/components/brand-loading-mark.tsx +46 -0
  6. package/client/components/brand-mark-geometry.ts +7 -0
  7. package/client/components/brand-spinner.tsx +22 -0
  8. package/client/components/brand-watermark.tsx +32 -0
  9. package/client/components/loading.tsx +4 -3
  10. package/client/components/route-overlay.tsx +15 -4
  11. package/client/components/status-badge.tsx +29 -0
  12. package/client/components/ui/alert-dialog.tsx +186 -0
  13. package/client/components/ui/card.tsx +102 -0
  14. package/client/components/ui/dialog.tsx +2 -2
  15. package/client/components/ui/radio-group.tsx +35 -0
  16. package/client/components/ui/spinner.tsx +2 -20
  17. package/client/components/ui/toast.tsx +3 -2
  18. package/client/extensions/nocobase-file-component-ui/components/file-upload-field.tsx +3 -3
  19. package/client/extensions/nocobase-inbox/inbox-item.tsx +4 -3
  20. package/client/layouts/app-layout.tsx +8 -28
  21. package/client/layouts/components/app-sidebar.tsx +4 -4
  22. package/client/layouts/components/header-actions.tsx +3 -36
  23. package/client/layouts/index.ts +0 -1
  24. package/client/lib/toaster.ts +1 -1
  25. package/client/locales/en-US.ts +8 -164
  26. package/client/locales/system/en-US.ts +344 -0
  27. package/client/locales/system/zh-CN.ts +320 -0
  28. package/client/locales/zh-CN.ts +3 -155
  29. package/client/pages/auth/login.tsx +1 -0
  30. package/client/pages/auth/shared.tsx +9 -9
  31. package/client/pages/home/capabilities.ts +52 -0
  32. package/client/pages/home/index.tsx +190 -0
  33. package/client/pages/home/prompt-dialog.tsx +122 -0
  34. package/client/pages/home/use-copy.ts +38 -0
  35. package/client/plugins.ts +2 -2
  36. package/client/routes.ts +5 -11
  37. package/client/routing/app-router.tsx +5 -55
  38. package/client/routing/route-navigation.ts +1 -1
  39. package/client/styles.css +244 -0
  40. package/client/theme/theme-settings.tsx +22 -20
  41. package/client/theme/themes/compact.css +34 -16
  42. package/client/theme/themes/default.css +34 -16
  43. package/eslint.config.js +0 -13
  44. package/index.html +48 -16
  45. package/package.json +23 -27
  46. package/tests/components/app-layout-routes.test.tsx +1 -1
  47. package/tests/components/home.test.tsx +174 -0
  48. package/tests/components/inbox.test.tsx +0 -19
  49. package/tests/components/layout-i18n.test.tsx +5 -92
  50. package/tests/components/primitive-labels.test.tsx +61 -1
  51. package/tests/fixtures/theme-tokens.html +1 -1
  52. package/tests/fixtures/theme-tokens.tsx +7 -0
  53. package/tests/logic/app-server.test.ts +0 -15
  54. package/tests/logic/client-plugin-registry.test.ts +0 -21
  55. package/tests/logic/client-routes.test.ts +2 -6
  56. package/tests/logic/client-shell.test.tsx +11 -107
  57. package/tests/logic/client-theme.test.tsx +17 -1
  58. package/tests/logic/config.test.ts +0 -1
  59. package/tests/logic/plugin-commands.test.ts +1 -1
  60. package/tsconfig.json +1 -4
  61. package/tsconfig.server.json +1 -6
  62. package/vitest.config.ts +1 -8
  63. package/client/components/inbox-badge.ts +0 -49
  64. package/client/components/inbox-button.tsx +0 -132
  65. package/client/components/inbox-header-button.tsx +0 -25
  66. package/client/layouts/components/surface-empty.tsx +0 -35
  67. package/client/layouts/settings-layout.tsx +0 -172
  68. package/client/pages/home.tsx +0 -16
  69. package/server/config/workflow.ts +0 -24
  70. package/tests/logic/client-settings.test.tsx +0 -841
  71. package/tests/logic/dev-routes-production-build.test.ts +0 -168
  72. package/tests/logic/plugin-page-authz.test.ts +0 -53
@@ -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;