@nocobase/app-template-default 1.0.0-beta.60 → 1.0.0-beta.61
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/README.MD +2 -0
- package/client/components/ui/sidebar.tsx +1 -1
- package/client/plugins.ts +2 -0
- package/config.example.yml +5 -0
- package/package.json +8 -6
- package/server/config/index.ts +3 -0
- package/server/config/mail.ts +3 -0
- package/server/plugins.ts +2 -0
package/README.MD
CHANGED
|
@@ -167,6 +167,8 @@ Database tasks support `--connection <name>` and `--all`; no argument targets `d
|
|
|
167
167
|
|
|
168
168
|
### Plugins
|
|
169
169
|
|
|
170
|
+
Mail (`@nocobase/app-plugin-mail`) is included and registered on the client and server. Configure mailbox providers under `mail.providers` in `config.yml` before connecting accounts; no provider credentials or demo mailboxes are included. See the [Mail configuration guide](.agents/skills/nocobase-app-plugin-mail/references/configuration-and-accounts.md). The plugin provides services and UI components; applications compose their own mailbox pages.
|
|
171
|
+
|
|
170
172
|
Plugins add features to your application. Let these commands edit `package.json`, `client/plugins.ts`, and `server/plugins.ts` for you rather than editing those files by hand.
|
|
171
173
|
|
|
172
174
|
| Command | What it does |
|
|
@@ -679,7 +679,7 @@ function SidebarMenuSubButton({
|
|
|
679
679
|
props: mergeProps<'a'>(
|
|
680
680
|
{
|
|
681
681
|
className: cn(
|
|
682
|
-
'flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0
|
|
682
|
+
'flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
|
|
683
683
|
className,
|
|
684
684
|
),
|
|
685
685
|
},
|
package/client/plugins.ts
CHANGED
|
@@ -15,6 +15,7 @@ import i18n from '@nocobase/app-plugin-i18n/client';
|
|
|
15
15
|
import notification from '@nocobase/app-plugin-notification/client';
|
|
16
16
|
import scheduler from '@nocobase/app-plugin-scheduler/client';
|
|
17
17
|
import file from '@nocobase/app-plugin-file/client';
|
|
18
|
+
import mail from '@nocobase/app-plugin-mail/client';
|
|
18
19
|
|
|
19
20
|
// Array order is contribution order. A plugin is enabled by appearing in this
|
|
20
21
|
// list; removing its entry and its import disables it.
|
|
@@ -32,6 +33,7 @@ const clientPlugins: AppClientPlugins = defineClientPlugins([
|
|
|
32
33
|
notification(),
|
|
33
34
|
file(),
|
|
34
35
|
scheduler(),
|
|
36
|
+
mail(),
|
|
35
37
|
]);
|
|
36
38
|
|
|
37
39
|
export default clientPlugins;
|
package/config.example.yml
CHANGED
|
@@ -137,6 +137,11 @@ snowflake:
|
|
|
137
137
|
# scheduler:
|
|
138
138
|
# jobs: redis
|
|
139
139
|
|
|
140
|
+
# Mail is registered by default. Configure mailbox provider instances before connecting accounts.
|
|
141
|
+
# See .agents/skills/nocobase-app-plugin-mail/references/configuration-and-accounts.md.
|
|
142
|
+
mail:
|
|
143
|
+
providers: {}
|
|
144
|
+
|
|
140
145
|
# File logging is independent of terminal formatting.
|
|
141
146
|
logging:
|
|
142
147
|
level: info
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/app-template-default",
|
|
3
3
|
"displayName": "Default Template",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.61",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"prettier": "@nocobase/dev-config/prettier",
|
|
7
7
|
"engines": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"nocobase": {
|
|
11
11
|
"templateKind": "app",
|
|
12
|
-
"defaultTemplateVersion": "1.0.0-beta.
|
|
12
|
+
"defaultTemplateVersion": "1.0.0-beta.61"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@ai-sdk/react": "2.0.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"tar": "^7.5.22",
|
|
78
78
|
"@nocobase/app-client": "^3.0.0-beta.0",
|
|
79
79
|
"@nocobase/app-plugin-template-print": "0.0.2-beta.1",
|
|
80
|
-
"@nocobase/app-skills": "0.1.0-beta.
|
|
80
|
+
"@nocobase/app-skills": "0.1.0-beta.29",
|
|
81
81
|
"@nocobase/app-testing": "0.1.0-beta.2",
|
|
82
82
|
"@nocobase/app-websocket": "^0.0.1",
|
|
83
83
|
"@nocobase/dev-config": "0.1.0-beta.21",
|
|
@@ -141,12 +141,13 @@
|
|
|
141
141
|
"@oclif/core": "^4.14.0",
|
|
142
142
|
"better-auth": "1.7.5",
|
|
143
143
|
"hono": "^4.13.2",
|
|
144
|
-
"@nocobase/app-plugin-authentication": "^2.0.0-beta.3",
|
|
145
144
|
"@nocobase/app-plugin-api-keys": "^1.0.0-beta.14",
|
|
145
|
+
"@nocobase/app-plugin-authentication": "^2.0.0-beta.4",
|
|
146
146
|
"@nocobase/app-plugin-authorization": "^1.0.0-beta.26",
|
|
147
147
|
"@nocobase/app-plugin-database-explorer": "^1.0.0-beta.12",
|
|
148
148
|
"@nocobase/app-plugin-file": "^1.0.0-beta.22",
|
|
149
149
|
"@nocobase/app-plugin-i18n": "^1.0.0-beta.14",
|
|
150
|
+
"@nocobase/app-plugin-mail": "^1.0.0-beta.10",
|
|
150
151
|
"@nocobase/app-plugin-notification": "^1.0.0-beta.25",
|
|
151
152
|
"@nocobase/app-plugin-notification-in-app": "^1.0.0-beta.23",
|
|
152
153
|
"@nocobase/app-plugin-notification-providers": "^0.2.0-beta.10",
|
|
@@ -163,11 +164,12 @@
|
|
|
163
164
|
"@nocobase/app-plugin-authz-restriction-rules": "^1.0.0-beta.10",
|
|
164
165
|
"@nocobase/authorization": "^1.0.0-beta.12",
|
|
165
166
|
"@nocobase/queue": "^0.1.0-beta.8",
|
|
167
|
+
"@nocobase/jobs": "^0.1.0-beta.2",
|
|
168
|
+
"@nocobase/lifecycle": "^0.1.0-beta.0",
|
|
166
169
|
"@nocobase/i18n": "^1.0.0-beta.6",
|
|
167
170
|
"@nocobase/caching": "^0.1.0-beta.2",
|
|
168
171
|
"@nocobase/repository-input": "^0.1.0-beta.2",
|
|
169
|
-
"@nocobase/app-cli": "^1.0.0-beta.
|
|
170
|
-
"@nocobase/jobs": "^0.1.0-beta.2"
|
|
172
|
+
"@nocobase/app-cli": "^1.0.0-beta.18"
|
|
171
173
|
},
|
|
172
174
|
"description": "NocoBase 3 application template with the standard product capabilities.",
|
|
173
175
|
"imports": {
|
package/server/config/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import auth from './auth.js';
|
|
6
6
|
import authorization from './authorization.js';
|
|
7
7
|
import notification from './notification.js';
|
|
8
|
+
import mail from './mail.js';
|
|
8
9
|
import secrets from './secrets.js';
|
|
9
10
|
import session from './session.js';
|
|
10
11
|
import server from './server.js';
|
|
@@ -26,6 +27,7 @@ const defaultConfigs: AppConfigFactory<{
|
|
|
26
27
|
auth: ReturnType<typeof auth>;
|
|
27
28
|
authorization: ReturnType<typeof authorization>;
|
|
28
29
|
notification: ReturnType<typeof notification>;
|
|
30
|
+
mail: ReturnType<typeof mail>;
|
|
29
31
|
secrets: ReturnType<typeof secrets>;
|
|
30
32
|
session: ReturnType<typeof session>;
|
|
31
33
|
server: ReturnType<typeof server>;
|
|
@@ -46,6 +48,7 @@ const defaultConfigs: AppConfigFactory<{
|
|
|
46
48
|
auth,
|
|
47
49
|
authorization,
|
|
48
50
|
notification,
|
|
51
|
+
mail,
|
|
49
52
|
secrets,
|
|
50
53
|
session,
|
|
51
54
|
server,
|
package/server/plugins.ts
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from '@nocobase/app-server/plugins';
|
|
17
17
|
import scheduler from '@nocobase/app-plugin-scheduler/server';
|
|
18
18
|
import file from '@nocobase/app-plugin-file/server';
|
|
19
|
+
import mail from '@nocobase/app-plugin-mail/server';
|
|
19
20
|
|
|
20
21
|
const serverPlugins: AppServerPlugins = defineServerPlugins([
|
|
21
22
|
authentication,
|
|
@@ -32,6 +33,7 @@ const serverPlugins: AppServerPlugins = defineServerPlugins([
|
|
|
32
33
|
notificationProviders,
|
|
33
34
|
file,
|
|
34
35
|
scheduler,
|
|
36
|
+
mail,
|
|
35
37
|
]);
|
|
36
38
|
|
|
37
39
|
export default serverPlugins;
|