@origen-ui/admin-cli 1.1.0 → 2.0.1
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 +11 -7
- package/package.json +18 -2
- package/templates/current/clean/CHANGELOG.md +103 -0
- package/templates/current/clean/component-catalog.json +58 -17
- package/templates/current/clean/e2e/admin-shell.spec.ts +6 -0
- package/templates/current/clean/e2e/demo-shell.spec.ts +90 -46
- package/templates/current/clean/package.json +35 -21
- package/templates/current/clean/playwright.config.ts +1 -0
- package/templates/current/clean/playwright.demo.config.ts +1 -1
- package/templates/current/clean/scaffold.lock.json +2 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/clean/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/clean/scripts/clean-overlay/src/main.ts +23 -14
- package/templates/current/clean/scripts/clean-overlay/src/router/componentCache.ts +12 -0
- package/templates/current/clean/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
- package/templates/current/clean/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/clean/scripts/clean-overlay/src/router/paths.ts +21 -0
- package/templates/current/clean/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
- package/templates/current/clean/scripts/demo-api.ts +84 -8
- package/templates/current/clean/scripts/generate-api.ts +87 -3
- package/templates/current/clean/scripts/vite-build-policy.spec.ts +1 -0
- package/templates/current/clean/src/api/generated/data-contracts.ts +2 -5
- package/templates/current/clean/src/api/generated/http-client.ts +28 -26
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +8 -10
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +11 -12
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +8 -10
- package/templates/current/clean/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +8 -10
- package/templates/current/clean/src/api/generated//350/256/244/350/257/201.ts +3 -6
- package/templates/current/clean/src/app/errorMessage.spec.ts +76 -0
- package/templates/current/clean/src/app/errorMessage.ts +53 -0
- package/templates/current/clean/src/app/menu-host.spec.ts +77 -0
- package/templates/current/clean/src/app/menu.spec.ts +39 -0
- package/templates/current/clean/src/app/menu.ts +48 -12
- package/templates/current/clean/src/app/runtimeConfig.ts +1 -1
- package/templates/current/clean/src/demo-api.spec.ts +311 -0
- package/templates/current/clean/src/features/auth/pages/Login.vue +8 -2
- package/templates/current/clean/src/features/auth/store/auth.ts +6 -19
- package/templates/current/clean/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/clean/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/clean/src/features/system/access/api/admin-repository.ts +2 -6
- package/templates/current/clean/src/features/system/access/api/rbac.ts +19 -9
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
- package/templates/current/clean/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
- package/templates/current/clean/src/features/workspace/pages/Profile.vue +1 -1
- package/templates/current/clean/src/layouts/AdminLayout.vue +3 -0
- package/templates/current/clean/src/layouts/TopBar.vue +37 -6
- package/templates/current/clean/src/layouts/topBarMenuSearch.spec.ts +24 -1
- package/templates/current/clean/src/layouts/topBarMenuSearch.ts +10 -0
- package/templates/current/clean/src/locales/en-US.json +30 -3
- package/templates/current/clean/src/locales/en-US.runtime.ts +2 -0
- package/templates/current/clean/src/locales/index.ts +39 -26
- package/templates/current/clean/src/locales/zh-CN.json +30 -3
- package/templates/current/clean/src/locales/zh-CN.runtime.ts +2 -0
- package/templates/current/clean/src/locales/zh-TW.json +30 -3
- package/templates/current/clean/src/locales/zh-TW.runtime.ts +2 -0
- package/templates/current/clean/src/main.ts +23 -14
- package/templates/current/clean/src/router/bootstrap.ts +10 -16
- package/templates/current/clean/src/router/componentCache.ts +12 -0
- package/templates/current/clean/src/router/componentRegistry.ts +2 -13
- package/templates/current/clean/src/router/dynamicMenuRefresh.spec.ts +101 -0
- package/templates/current/clean/src/router/dynamicMenuRefresh.ts +24 -0
- package/templates/current/clean/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/clean/src/router/dynamicRoutes.ts +14 -3
- package/templates/current/clean/src/router/paths.spec.ts +50 -0
- package/templates/current/clean/src/router/paths.ts +21 -0
- package/templates/current/clean/src/router/staticRoutes.ts +6 -6
- package/templates/current/clean/src/templates/og-table.ts +2 -4
- package/templates/current/clean/tsconfig.json +0 -1
- package/templates/current/clean/vite.build-policy.ts +55 -8
- package/templates/current/clean/vite.config.ts +30 -0
- package/templates/current/examples/CHANGELOG.md +103 -0
- package/templates/current/examples/component-catalog.json +58 -17
- package/templates/current/examples/e2e/admin-shell.spec.ts +6 -0
- package/templates/current/examples/e2e/demo-shell.spec.ts +90 -46
- package/templates/current/examples/package.json +35 -21
- package/templates/current/examples/playwright.config.ts +1 -0
- package/templates/current/examples/playwright.demo.config.ts +1 -1
- package/templates/current/examples/scaffold.lock.json +2 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/Forbidden.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/NotFound.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/ServerError.vue +7 -2
- package/templates/current/examples/scripts/clean-overlay/src/features/errors/pages/error-pages.spec.ts +11 -2
- package/templates/current/examples/scripts/clean-overlay/src/main.ts +23 -14
- package/templates/current/examples/scripts/clean-overlay/src/router/componentCache.ts +12 -0
- package/templates/current/examples/scripts/clean-overlay/src/router/componentRegistry.ts +2 -13
- package/templates/current/examples/scripts/clean-overlay/src/router/dynamicRoutes.spec.ts +34 -4
- package/templates/current/examples/scripts/clean-overlay/src/router/paths.ts +21 -0
- package/templates/current/examples/scripts/clean-overlay/src/router/staticRoutes.ts +6 -6
- package/templates/current/examples/scripts/demo-api.ts +84 -8
- package/templates/current/examples/scripts/generate-api.ts +87 -3
- package/templates/current/examples/scripts/vite-build-policy.spec.ts +1 -0
- package/templates/current/examples/src/api/generated/data-contracts.ts +2 -5
- package/templates/current/examples/src/api/generated/http-client.ts +28 -26
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/206/205/345/256/271/346/226/207/347/253/240.ts +5 -8
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/345/256/241/350/256/241.ts +1 -4
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/346/226/207/344/273/266/344/270/212/344/274/240.ts +2 -5
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/347/224/250/346/210/267.ts +8 -10
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/217/234/345/215/225.ts +11 -12
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/247/222/350/211/262.ts +8 -10
- package/templates/current/examples/src/api/generated//347/263/273/347/273/237/347/256/241/347/220/206/350/256/242/345/215/225/350/215/211/347/250/277.ts +8 -10
- package/templates/current/examples/src/api/generated//350/256/244/350/257/201.ts +3 -6
- package/templates/current/examples/src/app/errorMessage.spec.ts +76 -0
- package/templates/current/examples/src/app/errorMessage.ts +53 -0
- package/templates/current/examples/src/app/menu-host.spec.ts +77 -0
- package/templates/current/examples/src/app/menu.spec.ts +39 -0
- package/templates/current/examples/src/app/menu.ts +48 -12
- package/templates/current/examples/src/app/runtimeConfig.ts +1 -1
- package/templates/current/examples/src/demo-api.spec.ts +311 -0
- package/templates/current/examples/src/features/auth/pages/Login.vue +8 -2
- package/templates/current/examples/src/features/auth/store/auth.ts +6 -19
- package/templates/current/examples/src/features/errors/pages/Forbidden.vue +2 -1
- package/templates/current/examples/src/features/errors/pages/NotFound.vue +2 -1
- package/templates/current/examples/src/features/errors/pages/ServerError.vue +2 -1
- package/templates/current/examples/src/features/feature-composables.spec.ts +11 -1
- package/templates/current/examples/src/features/system/access/api/admin-repository.ts +2 -6
- package/templates/current/examples/src/features/system/access/api/rbac.ts +19 -9
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.spec.ts +134 -0
- package/templates/current/examples/src/features/system/access/composables/useAuthorizationPolling.ts +96 -0
- package/templates/current/examples/src/features/system/menus/components/MenuEditorForm.vue +115 -28
- package/templates/current/examples/src/features/system/menus/composables/useMenuManagement.ts +162 -66
- package/templates/current/examples/src/features/system/menus/menuDraft.spec.ts +204 -0
- package/templates/current/examples/src/features/system/menus/menuDraft.ts +116 -0
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.spec.ts +268 -0
- package/templates/current/examples/src/features/system/menus/menuTreePrecheck.ts +317 -0
- package/templates/current/examples/src/features/system/roles/components/RoleEditorForm.vue +1 -0
- package/templates/current/examples/src/features/workspace/pages/Profile.vue +1 -1
- package/templates/current/examples/src/layouts/AdminLayout.vue +3 -0
- package/templates/current/examples/src/layouts/TopBar.vue +37 -6
- package/templates/current/examples/src/layouts/topBarMenuSearch.spec.ts +24 -1
- package/templates/current/examples/src/layouts/topBarMenuSearch.ts +10 -0
- package/templates/current/examples/src/locales/en-US.json +30 -3
- package/templates/current/examples/src/locales/en-US.runtime.ts +2 -0
- package/templates/current/examples/src/locales/index.ts +39 -26
- package/templates/current/examples/src/locales/zh-CN.json +30 -3
- package/templates/current/examples/src/locales/zh-CN.runtime.ts +2 -0
- package/templates/current/examples/src/locales/zh-TW.json +30 -3
- package/templates/current/examples/src/locales/zh-TW.runtime.ts +2 -0
- package/templates/current/examples/src/main.ts +24 -22
- package/templates/current/examples/src/router/bootstrap.ts +10 -16
- package/templates/current/examples/src/router/componentCache.ts +18 -0
- package/templates/current/examples/src/router/componentRegistry.ts +1 -18
- package/templates/current/examples/src/router/dynamicMenuRefresh.spec.ts +101 -0
- package/templates/current/examples/src/router/dynamicMenuRefresh.ts +24 -0
- package/templates/current/examples/src/router/dynamicRoutes.spec.ts +20 -2
- package/templates/current/examples/src/router/dynamicRoutes.ts +14 -3
- package/templates/current/examples/src/router/paths.spec.ts +50 -0
- package/templates/current/examples/src/router/paths.ts +21 -0
- package/templates/current/examples/src/router/staticRoutes.ts +3 -3
- package/templates/current/examples/src/templates/og-table.ts +2 -4
- package/templates/current/examples/tsconfig.json +0 -1
- package/templates/current/examples/vite.build-policy.ts +55 -8
- package/templates/current/examples/vite.config.ts +30 -0
|
@@ -7,10 +7,7 @@ const packageBuildDirectories = new Set(['dist', 'es', 'esm', 'lib', 'src'])
|
|
|
7
7
|
const MAX_INITIAL_VENDOR_CHUNK_BYTES = 300 * 1024
|
|
8
8
|
const MAX_ASYNC_VENDOR_CHUNK_BYTES = 400 * 1024
|
|
9
9
|
|
|
10
|
-
type AdminCodeSplitting = Exclude<
|
|
11
|
-
NonNullable<Rolldown.OutputOptions['codeSplitting']>,
|
|
12
|
-
boolean
|
|
13
|
-
>
|
|
10
|
+
type AdminCodeSplitting = Exclude<NonNullable<Rolldown.OutputOptions['codeSplitting']>, boolean>
|
|
14
11
|
|
|
15
12
|
function chunkName(value: string): string {
|
|
16
13
|
return value
|
|
@@ -20,7 +17,12 @@ function chunkName(value: string): string {
|
|
|
20
17
|
.toLowerCase()
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
interface ModuleLocation {
|
|
21
|
+
name: string
|
|
22
|
+
path: string[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function dependencyPath(normalized: string): ModuleLocation | undefined {
|
|
24
26
|
const marker = '/node_modules/'
|
|
25
27
|
const nodeModulesIndex = normalized.lastIndexOf(marker)
|
|
26
28
|
if (nodeModulesIndex < 0) return undefined
|
|
@@ -35,7 +37,7 @@ function dependencyPath(normalized: string): { name: string, path: string[] } |
|
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
function workspacePackagePath(normalized: string):
|
|
40
|
+
function workspacePackagePath(normalized: string): ModuleLocation | undefined {
|
|
39
41
|
const match = normalized.match(/\/packages\/([^/]+)\/(?:dist|src)\/(.+)$/)
|
|
40
42
|
if (!match) return undefined
|
|
41
43
|
return { name: `og-${match[1]}`, path: match[2].split('/') }
|
|
@@ -62,7 +64,9 @@ function vendorLocation(id: string) {
|
|
|
62
64
|
|
|
63
65
|
function matchesPackageFamily(id: string, names: readonly string[]): boolean {
|
|
64
66
|
const name = vendorLocation(id)?.name
|
|
65
|
-
return Boolean(
|
|
67
|
+
return Boolean(
|
|
68
|
+
name && names.some((candidate) => name === candidate || name.startsWith(`${candidate}/`)),
|
|
69
|
+
)
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
function matchesPackageEntry(id: string, packageName: string, entry: string): boolean {
|
|
@@ -70,6 +74,24 @@ function matchesPackageEntry(id: string, packageName: string, entry: string): bo
|
|
|
70
74
|
return location?.name === packageName && location.path[0] === entry
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Element Plus table internals are extracted from the table-suite chunk they
|
|
79
|
+
* would otherwise co-locate with. The og-table family chunk itself must stay
|
|
80
|
+
* a single chunk — splitting it creates circular chunk-evaluation edges
|
|
81
|
+
* before Element Plus initializes (see the vendor-table-suite note) — but the
|
|
82
|
+
* Element Plus table code it pulls in is a leaf dependency and splits safely.
|
|
83
|
+
* This separation is what keeps the family chunk under the single-chunk
|
|
84
|
+
* budget instead of carrying the whole Element Plus table surface.
|
|
85
|
+
*
|
|
86
|
+
* `moduleLocation` strips the build directory, so published `es/components/…`
|
|
87
|
+
* paths start at `components`.
|
|
88
|
+
*/
|
|
89
|
+
function matchesElementPlusTableModule(id: string, component: 'table' | 'table-v2'): boolean {
|
|
90
|
+
const location = vendorLocation(id)
|
|
91
|
+
if (!location || location.name !== 'element-plus') return false
|
|
92
|
+
return location.path[0] === 'components' && location.path[1] === component
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
function dynamicPackageGroup(
|
|
74
96
|
id: string,
|
|
75
97
|
directory?: 'components' | 'languages' | 'locale',
|
|
@@ -77,7 +99,8 @@ function dynamicPackageGroup(
|
|
|
77
99
|
const location = vendorLocation(id)
|
|
78
100
|
if (!location || location.name === 'element-plus') return undefined
|
|
79
101
|
if (directory && location.path[0] !== directory) return undefined
|
|
80
|
-
const suffix =
|
|
102
|
+
const suffix =
|
|
103
|
+
directory === 'components' ? '-components' : directory ? `-${chunkName(directory)}` : ''
|
|
81
104
|
return `vendor-${chunkName(location.name)}${suffix}`
|
|
82
105
|
}
|
|
83
106
|
|
|
@@ -104,6 +127,14 @@ export function createAdminCodeSplitting(): AdminCodeSplitting {
|
|
|
104
127
|
test: (id) => matchesPackageFamily(id, ['@floating-ui', '@sxzz/popperjs-es']),
|
|
105
128
|
priority: 85,
|
|
106
129
|
},
|
|
130
|
+
{
|
|
131
|
+
// async-validator is a leaf dependency shared by the form and table
|
|
132
|
+
// surfaces. Keeping it outside the table family avoids making the
|
|
133
|
+
// deliberately single-chunk family carry validation internals.
|
|
134
|
+
name: 'vendor-async-validator',
|
|
135
|
+
test: (id) => matchesPackageFamily(id, ['async-validator']),
|
|
136
|
+
priority: 83,
|
|
137
|
+
},
|
|
107
138
|
{
|
|
108
139
|
name: 'vendor-table-suite',
|
|
109
140
|
test: (id) =>
|
|
@@ -122,6 +153,22 @@ export function createAdminCodeSplitting(): AdminCodeSplitting {
|
|
|
122
153
|
// circular chunk-evaluation edge before Element Plus initializes.
|
|
123
154
|
priority: 80,
|
|
124
155
|
},
|
|
156
|
+
{
|
|
157
|
+
// Leaf dependency of the table-suite family: extracted so the family
|
|
158
|
+
// chunk stays under the single-chunk budget. The priority must sit
|
|
159
|
+
// ABOVE vendor-table-suite — Rolldown lets a higher-priority chunk
|
|
160
|
+
// pull lower-priority-grouped dependencies into itself, which is
|
|
161
|
+
// exactly how the Element Plus table internals ended up inside the
|
|
162
|
+
// family chunk — but still below the positioning/vueuse families.
|
|
163
|
+
name: 'vendor-element-table-v2',
|
|
164
|
+
test: (id) => matchesElementPlusTableModule(id, 'table-v2'),
|
|
165
|
+
priority: 82,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'vendor-element-table',
|
|
169
|
+
test: (id) => matchesElementPlusTableModule(id, 'table'),
|
|
170
|
+
priority: 81,
|
|
171
|
+
},
|
|
125
172
|
{
|
|
126
173
|
name: 'vendor-initial',
|
|
127
174
|
test: (id) => Boolean(vendorLocation(id)),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { existsSync, readdirSync } from 'node:fs'
|
|
2
|
+
import { dirname, join } from 'node:path'
|
|
1
3
|
import process from 'node:process'
|
|
2
4
|
import { fileURLToPath } from 'node:url'
|
|
3
5
|
import vue from '@vitejs/plugin-vue'
|
|
@@ -9,6 +11,17 @@ import { defineConfig } from 'vitest/config'
|
|
|
9
11
|
// with the application source as ./vite.build-policy.ts.
|
|
10
12
|
import { createAdminBuildOptions, createAdminBuildPlugins } from './vite.build-policy.js'
|
|
11
13
|
|
|
14
|
+
const elementPlusPackageRoot = dirname(dirname(fileURLToPath(import.meta.resolve('element-plus'))))
|
|
15
|
+
const elementPlusStyleIncludes = readdirSync(join(elementPlusPackageRoot, 'es/components'), {
|
|
16
|
+
withFileTypes: true,
|
|
17
|
+
})
|
|
18
|
+
.filter(
|
|
19
|
+
(entry) =>
|
|
20
|
+
entry.isDirectory() &&
|
|
21
|
+
existsSync(join(elementPlusPackageRoot, 'es/components', entry.name, 'style/index.mjs')),
|
|
22
|
+
)
|
|
23
|
+
.map((entry) => `element-plus/es/components/${entry.name}/style/index`)
|
|
24
|
+
|
|
12
25
|
export default defineConfig(({ command, mode }) => {
|
|
13
26
|
const loadedEnv = loadEnv(mode, process.cwd(), '')
|
|
14
27
|
const apiTarget = loadedEnv.VITE_API_TARGET || 'http://127.0.0.1:8080'
|
|
@@ -17,6 +30,23 @@ export default defineConfig(({ command, mode }) => {
|
|
|
17
30
|
return {
|
|
18
31
|
plugins: [vue(), vueJsx(), ...createAdminBuildPlugins(), ElementPlus({ useSource: true })],
|
|
19
32
|
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
33
|
+
optimizeDeps: {
|
|
34
|
+
// Element Plus injects these entries only after lazy SFCs transform.
|
|
35
|
+
// Pre-bundle them up front and keep the dependency set fixed for route loads.
|
|
36
|
+
noDiscovery: true,
|
|
37
|
+
include: [
|
|
38
|
+
'@element-plus/icons-vue',
|
|
39
|
+
'@vueuse/core',
|
|
40
|
+
'axios',
|
|
41
|
+
'element-plus',
|
|
42
|
+
'pinia',
|
|
43
|
+
'sortablejs',
|
|
44
|
+
'vue',
|
|
45
|
+
'vue-i18n',
|
|
46
|
+
'vue-router',
|
|
47
|
+
...elementPlusStyleIncludes,
|
|
48
|
+
],
|
|
49
|
+
},
|
|
20
50
|
oxc: {
|
|
21
51
|
jsx: { runtime: 'automatic', importSource: 'vue' },
|
|
22
52
|
...(command === 'build' && !isDebugBuild ? { dropConsole: true, dropDebugger: true } : {}),
|
|
@@ -1,5 +1,108 @@
|
|
|
1
1
|
# @origen-ui/admin
|
|
2
2
|
|
|
3
|
+
## 1.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- Updated dependencies [d37826a]
|
|
9
|
+
- Updated dependencies [d37826a]
|
|
10
|
+
- Updated dependencies [bb0b902]
|
|
11
|
+
- Updated dependencies [cdbd053]
|
|
12
|
+
- @origen-ui/shared@2.0.1
|
|
13
|
+
- @origen-ui/permission@2.0.1
|
|
14
|
+
- @origen-ui/http@2.0.1
|
|
15
|
+
- @origen-ui/dialog@2.0.1
|
|
16
|
+
- @origen-ui/editor@2.0.1
|
|
17
|
+
- @origen-ui/upload@2.0.1
|
|
18
|
+
- @origen-ui/search@2.0.1
|
|
19
|
+
- @origen-ui/table@2.0.1
|
|
20
|
+
- @origen-ui/tabs@2.0.1
|
|
21
|
+
- @origen-ui/router@2.0.1
|
|
22
|
+
- @origen-ui/form@2.0.1
|
|
23
|
+
- @origen-ui/form-table@2.0.1
|
|
24
|
+
- @origen-ui/table-search@2.0.1
|
|
25
|
+
- origen-ui@2.0.1
|
|
26
|
+
|
|
27
|
+
## 1.0.5
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [ea4fecb]
|
|
32
|
+
- Updated dependencies [ea4fecb]
|
|
33
|
+
- Updated dependencies [608aade]
|
|
34
|
+
- Updated dependencies [8026b2c]
|
|
35
|
+
- Updated dependencies [608aade]
|
|
36
|
+
- Updated dependencies [e0a0dd0]
|
|
37
|
+
- Updated dependencies [013595e]
|
|
38
|
+
- Updated dependencies [2a33f03]
|
|
39
|
+
- Updated dependencies [3ad1c7d]
|
|
40
|
+
- Updated dependencies [2a33f03]
|
|
41
|
+
- Updated dependencies [2a33f03]
|
|
42
|
+
- Updated dependencies [e7b866d]
|
|
43
|
+
- Updated dependencies [013595e]
|
|
44
|
+
- Updated dependencies [005939a]
|
|
45
|
+
- Updated dependencies [e0a0dd0]
|
|
46
|
+
- Updated dependencies [005939a]
|
|
47
|
+
- Updated dependencies [9365e91]
|
|
48
|
+
- Updated dependencies [2a33f03]
|
|
49
|
+
- Updated dependencies [74c09ae]
|
|
50
|
+
- Updated dependencies [2a33f03]
|
|
51
|
+
- Updated dependencies [2a33f03]
|
|
52
|
+
- Updated dependencies [987d611]
|
|
53
|
+
- Updated dependencies [2a33f03]
|
|
54
|
+
- Updated dependencies [013595e]
|
|
55
|
+
- Updated dependencies [3ad1c7d]
|
|
56
|
+
- Updated dependencies [013595e]
|
|
57
|
+
- Updated dependencies [313f8bc]
|
|
58
|
+
- Updated dependencies [013595e]
|
|
59
|
+
- Updated dependencies [013595e]
|
|
60
|
+
- Updated dependencies [013595e]
|
|
61
|
+
- Updated dependencies [013595e]
|
|
62
|
+
- Updated dependencies [987d611]
|
|
63
|
+
- Updated dependencies [ae45cc4]
|
|
64
|
+
- Updated dependencies [8026b2c]
|
|
65
|
+
- Updated dependencies [24aaae4]
|
|
66
|
+
- Updated dependencies [007abdc]
|
|
67
|
+
- Updated dependencies [005939a]
|
|
68
|
+
- Updated dependencies [007abdc]
|
|
69
|
+
- Updated dependencies [007abdc]
|
|
70
|
+
- Updated dependencies [007abdc]
|
|
71
|
+
- Updated dependencies [007abdc]
|
|
72
|
+
- Updated dependencies [007abdc]
|
|
73
|
+
- Updated dependencies [005939a]
|
|
74
|
+
- Updated dependencies [2a33f03]
|
|
75
|
+
- Updated dependencies [2a33f03]
|
|
76
|
+
- Updated dependencies [013595e]
|
|
77
|
+
- Updated dependencies [7d9a7fe]
|
|
78
|
+
- Updated dependencies [987d611]
|
|
79
|
+
- Updated dependencies [ae45cc4]
|
|
80
|
+
- Updated dependencies [ae45cc4]
|
|
81
|
+
- Updated dependencies [15f8a34]
|
|
82
|
+
- Updated dependencies [2a33f03]
|
|
83
|
+
- Updated dependencies [2a33f03]
|
|
84
|
+
- Updated dependencies [987d611]
|
|
85
|
+
- Updated dependencies [005939a]
|
|
86
|
+
- Updated dependencies [825186e]
|
|
87
|
+
- Updated dependencies [a0456b5]
|
|
88
|
+
- Updated dependencies [e7010c6]
|
|
89
|
+
- Updated dependencies [e7010c6]
|
|
90
|
+
- Updated dependencies [e7010c6]
|
|
91
|
+
- @origen-ui/http@2.0.0
|
|
92
|
+
- @origen-ui/editor@2.0.0
|
|
93
|
+
- @origen-ui/form@2.0.0
|
|
94
|
+
- @origen-ui/form-table@2.0.0
|
|
95
|
+
- @origen-ui/router@2.0.0
|
|
96
|
+
- @origen-ui/table@2.0.0
|
|
97
|
+
- @origen-ui/table-search@2.0.0
|
|
98
|
+
- @origen-ui/upload@2.0.0
|
|
99
|
+
- @origen-ui/dialog@2.0.0
|
|
100
|
+
- @origen-ui/search@2.0.0
|
|
101
|
+
- @origen-ui/tabs@2.0.0
|
|
102
|
+
- @origen-ui/permission@2.0.0
|
|
103
|
+
- @origen-ui/shared@2.0.0
|
|
104
|
+
- origen-ui@2.0.0
|
|
105
|
+
|
|
3
106
|
## 1.0.4
|
|
4
107
|
|
|
5
108
|
### Patch Changes
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"mode": "prop-bag-and-expose",
|
|
52
52
|
"surface": "dialogProps, drawerProps, getSurfaceInstance"
|
|
53
53
|
},
|
|
54
|
-
"compatibilityVersion": "2.14.
|
|
54
|
+
"compatibilityVersion": "2.14.7"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
@@ -125,15 +125,52 @@
|
|
|
125
125
|
"props": [
|
|
126
126
|
"setup",
|
|
127
127
|
"toolbar",
|
|
128
|
-
"
|
|
128
|
+
"readonly",
|
|
129
|
+
"disabled",
|
|
130
|
+
"placeholder",
|
|
131
|
+
"minHeight",
|
|
132
|
+
"maxHeight",
|
|
133
|
+
"maxLength",
|
|
134
|
+
"autofocus",
|
|
135
|
+
"locale",
|
|
136
|
+
"upload",
|
|
137
|
+
"sanitize",
|
|
138
|
+
"videoResolvers"
|
|
129
139
|
],
|
|
130
140
|
"events": [
|
|
131
141
|
"update:modelValue",
|
|
132
|
-
"
|
|
142
|
+
"change",
|
|
143
|
+
"ready",
|
|
144
|
+
"focus",
|
|
145
|
+
"blur",
|
|
146
|
+
"limit",
|
|
147
|
+
"upload-start",
|
|
148
|
+
"upload-progress",
|
|
149
|
+
"upload-success",
|
|
150
|
+
"upload-error",
|
|
151
|
+
"upload-cancel",
|
|
152
|
+
"media-remove"
|
|
153
|
+
],
|
|
154
|
+
"slots": [
|
|
155
|
+
"toolbar-prefix",
|
|
156
|
+
"toolbar-suffix",
|
|
157
|
+
"status"
|
|
133
158
|
],
|
|
134
|
-
"slots": [],
|
|
135
159
|
"methods": [
|
|
136
160
|
"focus",
|
|
161
|
+
"blur",
|
|
162
|
+
"clear",
|
|
163
|
+
"getHTML",
|
|
164
|
+
"getJSON",
|
|
165
|
+
"getText",
|
|
166
|
+
"setContent",
|
|
167
|
+
"insertContent",
|
|
168
|
+
"undo",
|
|
169
|
+
"redo",
|
|
170
|
+
"isEmpty",
|
|
171
|
+
"cancelUpload",
|
|
172
|
+
"retryUpload",
|
|
173
|
+
"removeMedia",
|
|
137
174
|
"getEditor"
|
|
138
175
|
]
|
|
139
176
|
},
|
|
@@ -141,7 +178,7 @@
|
|
|
141
178
|
"mode": "expose",
|
|
142
179
|
"surface": "OgEditorExpose.getEditor"
|
|
143
180
|
},
|
|
144
|
-
"compatibilityVersion": "2.14.
|
|
181
|
+
"compatibilityVersion": "2.14.7"
|
|
145
182
|
}
|
|
146
183
|
},
|
|
147
184
|
{
|
|
@@ -169,8 +206,10 @@
|
|
|
169
206
|
],
|
|
170
207
|
"owned": {
|
|
171
208
|
"props": [
|
|
172
|
-
"
|
|
173
|
-
"emptyText"
|
|
209
|
+
"content",
|
|
210
|
+
"emptyText",
|
|
211
|
+
"locale",
|
|
212
|
+
"sanitize"
|
|
174
213
|
],
|
|
175
214
|
"events": [],
|
|
176
215
|
"slots": [],
|
|
@@ -229,7 +268,7 @@
|
|
|
229
268
|
"mode": "prop-bag-and-expose",
|
|
230
269
|
"surface": "formProps, formRef"
|
|
231
270
|
},
|
|
232
|
-
"compatibilityVersion": "2.14.
|
|
271
|
+
"compatibilityVersion": "2.14.7"
|
|
233
272
|
}
|
|
234
273
|
},
|
|
235
274
|
{
|
|
@@ -276,7 +315,9 @@
|
|
|
276
315
|
"slots": [],
|
|
277
316
|
"methods": [
|
|
278
317
|
"addRow",
|
|
279
|
-
"removeRow"
|
|
318
|
+
"removeRow",
|
|
319
|
+
"validate",
|
|
320
|
+
"validateRows"
|
|
280
321
|
]
|
|
281
322
|
},
|
|
282
323
|
"nativeAccess": {
|
|
@@ -332,7 +373,7 @@
|
|
|
332
373
|
"mode": "prop-bag-and-expose",
|
|
333
374
|
"surface": "formProps, formRef"
|
|
334
375
|
},
|
|
335
|
-
"compatibilityVersion": "2.14.
|
|
376
|
+
"compatibilityVersion": "2.14.7"
|
|
336
377
|
},
|
|
337
378
|
"legacyTokens": [
|
|
338
379
|
"defaultExpanded",
|
|
@@ -388,7 +429,7 @@
|
|
|
388
429
|
"mode": "config-and-expose",
|
|
389
430
|
"surface": "config.virtual.enabled selects the surface; config.nativeTable.standard or config.nativeTable.virtual, getNativeTable"
|
|
390
431
|
},
|
|
391
|
-
"compatibilityVersion": "2.14.
|
|
432
|
+
"compatibilityVersion": "2.14.7"
|
|
392
433
|
},
|
|
393
434
|
"legacyTokens": [
|
|
394
435
|
"config.plugins",
|
|
@@ -542,7 +583,7 @@
|
|
|
542
583
|
"mode": "prop-bag-and-expose",
|
|
543
584
|
"surface": "tabsProps, getNativeTabs"
|
|
544
585
|
},
|
|
545
|
-
"compatibilityVersion": "2.14.
|
|
586
|
+
"compatibilityVersion": "2.14.7"
|
|
546
587
|
},
|
|
547
588
|
"legacyTokens": [
|
|
548
589
|
"allowActions",
|
|
@@ -594,10 +635,10 @@
|
|
|
594
635
|
]
|
|
595
636
|
},
|
|
596
637
|
"nativeAccess": {
|
|
597
|
-
"mode": "prop-bag
|
|
598
|
-
"surface": "uploadProps
|
|
638
|
+
"mode": "prop-bag",
|
|
639
|
+
"surface": "uploadProps"
|
|
599
640
|
},
|
|
600
|
-
"compatibilityVersion": "2.14.
|
|
641
|
+
"compatibilityVersion": "2.14.7"
|
|
601
642
|
},
|
|
602
643
|
"legacyTokens": [
|
|
603
644
|
"withCredentials"
|
|
@@ -638,7 +679,7 @@
|
|
|
638
679
|
"unsupportedRoute": [
|
|
639
680
|
"Use ElFormItem directly for raw Element Plus form-item behavior outside OgForm context."
|
|
640
681
|
],
|
|
641
|
-
"compatibilityVersion": "2.14.
|
|
682
|
+
"compatibilityVersion": "2.14.7"
|
|
642
683
|
}
|
|
643
684
|
},
|
|
644
685
|
{
|
|
@@ -674,7 +715,7 @@
|
|
|
674
715
|
"unsupportedRoute": [
|
|
675
716
|
"Use the required Element Plus control directly when the schema renderer contract is not needed."
|
|
676
717
|
],
|
|
677
|
-
"compatibilityVersion": "2.14.
|
|
718
|
+
"compatibilityVersion": "2.14.7"
|
|
678
719
|
}
|
|
679
720
|
},
|
|
680
721
|
{
|
|
@@ -14,6 +14,7 @@ const menus = [
|
|
|
14
14
|
code: 'dashboard',
|
|
15
15
|
path: '/dashboard',
|
|
16
16
|
title: '工作台',
|
|
17
|
+
titleKey: 'menu.dashboard',
|
|
17
18
|
componentKey: 'dashboard',
|
|
18
19
|
icon: 'dashboard',
|
|
19
20
|
permissions: ['workspace:dashboard:read'],
|
|
@@ -25,6 +26,7 @@ const menus = [
|
|
|
25
26
|
code: 'system',
|
|
26
27
|
path: '/system',
|
|
27
28
|
title: '系统管理',
|
|
29
|
+
titleKey: 'menu.system',
|
|
28
30
|
componentKey: 'outlet',
|
|
29
31
|
icon: 'system',
|
|
30
32
|
menu: true,
|
|
@@ -34,6 +36,7 @@ const menus = [
|
|
|
34
36
|
code: 'users',
|
|
35
37
|
path: 'users',
|
|
36
38
|
title: '用户管理',
|
|
39
|
+
titleKey: 'menu.users',
|
|
37
40
|
componentKey: 'user-list',
|
|
38
41
|
permissions: ['system:user:read'],
|
|
39
42
|
menu: true,
|
|
@@ -43,6 +46,7 @@ const menus = [
|
|
|
43
46
|
code: 'roles',
|
|
44
47
|
path: 'roles',
|
|
45
48
|
title: '角色管理',
|
|
49
|
+
titleKey: 'menu.roles',
|
|
46
50
|
componentKey: 'role-list',
|
|
47
51
|
permissions: ['system:role:read'],
|
|
48
52
|
menu: true,
|
|
@@ -52,6 +56,7 @@ const menus = [
|
|
|
52
56
|
code: 'menus',
|
|
53
57
|
path: 'menus',
|
|
54
58
|
title: '菜单管理',
|
|
59
|
+
titleKey: 'menu.menus',
|
|
55
60
|
componentKey: 'menu-list',
|
|
56
61
|
permissions: ['system:menu:read'],
|
|
57
62
|
menu: true,
|
|
@@ -61,6 +66,7 @@ const menus = [
|
|
|
61
66
|
code: 'audit',
|
|
62
67
|
path: 'audit',
|
|
63
68
|
title: '审计日志',
|
|
69
|
+
titleKey: 'menu.audit',
|
|
64
70
|
componentKey: 'audit-list',
|
|
65
71
|
permissions: ['system:audit:read'],
|
|
66
72
|
menu: true,
|