@finema/finework-layer 0.2.18 → 0.2.20
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/.husky/pre-commit +1 -1
- package/.playground/app/pages/layout-admin/[id]/index.vue +145 -145
- package/.playground/app/pages/layout-admin.vue +130 -130
- package/.playground/app/pages/submenu/layout-admin.vue +210 -210
- package/.vscode/extensions.json +26 -26
- package/CHANGELOG.md +167 -159
- package/app/app.config.ts +35 -35
- package/app/app.vue +10 -10
- package/app/components/Button/ActionIcon.vue +29 -29
- package/app/components/Button/Back.vue +22 -22
- package/app/components/InfoItemList.vue +202 -202
- package/app/components/Layout/Admin/Sidebar.vue +304 -304
- package/app/components/Layout/Admin/index.vue +213 -213
- package/app/components/Layout/Apps.vue +45 -45
- package/app/components/Layout/User/index.vue +99 -99
- package/app/components/StatusBox.vue +56 -56
- package/app/composables/useAuth.ts +2 -2
- package/app/composables/useRequestOptions.ts +50 -50
- package/app/error.vue +218 -218
- package/app/middleware/auth.ts +45 -0
- package/app/middleware/common.ts +12 -0
- package/app/middleware/guest.ts +7 -0
- package/app/middleware/permissions.ts +29 -0
- package/bun.lock +2730 -2730
- package/index.d.ts +16 -16
- package/nuxt.config.ts +41 -41
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { IStatus } from '#core/types/lib'
|
|
2
|
-
import { ArrayHelper } from '#core/utils/ArrayHelper'
|
|
3
|
-
import { NumberHelper } from '#core/utils/NumberHelper'
|
|
4
|
-
import { StringHelper } from '#core/utils/StringHelper'
|
|
5
|
-
|
|
6
|
-
export {}
|
|
7
|
-
|
|
8
|
-
declare global {
|
|
9
|
-
export type { IStatus }
|
|
10
|
-
|
|
11
|
-
export { NumberHelper }
|
|
12
|
-
|
|
13
|
-
export { StringHelper }
|
|
14
|
-
|
|
15
|
-
export { ArrayHelper }
|
|
16
|
-
}
|
|
1
|
+
import type { IStatus } from '#core/types/lib'
|
|
2
|
+
import { ArrayHelper } from '#core/utils/ArrayHelper'
|
|
3
|
+
import { NumberHelper } from '#core/utils/NumberHelper'
|
|
4
|
+
import { StringHelper } from '#core/utils/StringHelper'
|
|
5
|
+
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
export type { IStatus }
|
|
10
|
+
|
|
11
|
+
export { NumberHelper }
|
|
12
|
+
|
|
13
|
+
export { StringHelper }
|
|
14
|
+
|
|
15
|
+
export { ArrayHelper }
|
|
16
|
+
}
|
package/nuxt.config.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { createResolver } from '@nuxt/kit'
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
3
|
-
import { dirname, join } from 'node:path'
|
|
4
|
-
|
|
5
|
-
const currentDir = dirname(fileURLToPath(import.meta.url))
|
|
6
|
-
|
|
7
|
-
const {
|
|
8
|
-
resolve,
|
|
9
|
-
} = createResolver(import.meta.url)
|
|
10
|
-
|
|
11
|
-
export default defineNuxtConfig({
|
|
12
|
-
modules: ['@nuxt/eslint', '@nuxt/test-utils', '@finema/core'],
|
|
13
|
-
imports: {
|
|
14
|
-
dirs: ['./constants', './loaders', './helpers', './types'],
|
|
15
|
-
},
|
|
16
|
-
devtools: {
|
|
17
|
-
enabled: true,
|
|
18
|
-
},
|
|
19
|
-
css: [join(currentDir, './app/assets/css/main.css'), '@vuepic/vue-datepicker/dist/main.css'],
|
|
20
|
-
alias: {
|
|
21
|
-
'#layer': resolve('./'),
|
|
22
|
-
},
|
|
23
|
-
build: {
|
|
24
|
-
transpile: ['@vuepic/vue-datepicker'],
|
|
25
|
-
},
|
|
26
|
-
compatibilityDate: '2025-07-15',
|
|
27
|
-
vite: {
|
|
28
|
-
optimizeDeps: {
|
|
29
|
-
include: [
|
|
30
|
-
'@vue/devtools-kit',
|
|
31
|
-
'@vue/devtools-core',
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
eslint: {
|
|
36
|
-
config: {
|
|
37
|
-
stylistic: true,
|
|
38
|
-
tooling: true,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
})
|
|
1
|
+
import { createResolver } from '@nuxt/kit'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
|
|
5
|
+
const currentDir = dirname(fileURLToPath(import.meta.url))
|
|
6
|
+
|
|
7
|
+
const {
|
|
8
|
+
resolve,
|
|
9
|
+
} = createResolver(import.meta.url)
|
|
10
|
+
|
|
11
|
+
export default defineNuxtConfig({
|
|
12
|
+
modules: ['@nuxt/eslint', '@nuxt/test-utils', '@finema/core'],
|
|
13
|
+
imports: {
|
|
14
|
+
dirs: ['./constants', './loaders', './helpers', './types'],
|
|
15
|
+
},
|
|
16
|
+
devtools: {
|
|
17
|
+
enabled: true,
|
|
18
|
+
},
|
|
19
|
+
css: [join(currentDir, './app/assets/css/main.css'), '@vuepic/vue-datepicker/dist/main.css'],
|
|
20
|
+
alias: {
|
|
21
|
+
'#layer': resolve('./'),
|
|
22
|
+
},
|
|
23
|
+
build: {
|
|
24
|
+
transpile: ['@vuepic/vue-datepicker'],
|
|
25
|
+
},
|
|
26
|
+
compatibilityDate: '2025-07-15',
|
|
27
|
+
vite: {
|
|
28
|
+
optimizeDeps: {
|
|
29
|
+
include: [
|
|
30
|
+
'@vue/devtools-kit',
|
|
31
|
+
'@vue/devtools-core',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
eslint: {
|
|
36
|
+
config: {
|
|
37
|
+
stylistic: true,
|
|
38
|
+
tooling: true,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
})
|