@hywax/cms 0.0.2 → 0.0.4
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/.nuxt/cms/http-codes.ts +8 -0
- package/.nuxt/cms/index.ts +2 -1
- package/.nuxt/cms/uplora-image.ts +8 -0
- package/cli/commands/make/component.mjs +75 -0
- package/cli/commands/make/index.mjs +12 -0
- package/cli/index.mjs +15 -0
- package/cli/package.json +13 -0
- package/cli/templates.mjs +101 -0
- package/cli/utils.mjs +31 -0
- package/dist/module.d.mts +27 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +122 -31
- package/dist/runtime/components/ButtonClear.vue +1 -2
- package/dist/runtime/components/UploraImage.vue +108 -0
- package/dist/runtime/components/UploraImage.vue.d.ts +34 -0
- package/dist/runtime/components/prose/UploraImage.vue +1 -2
- package/dist/runtime/composables/useApi.d.ts +14 -0
- package/dist/runtime/composables/useApi.js +16 -0
- package/dist/runtime/composables/useSeoStats.d.ts +12 -0
- package/dist/runtime/composables/useSeoStats.js +44 -0
- package/dist/runtime/plugins/api.d.ts +6 -0
- package/dist/runtime/plugins/api.js +23 -0
- package/dist/runtime/server/errors/InternalHttpError.d.ts +4 -0
- package/dist/runtime/server/errors/InternalHttpError.js +6 -0
- package/dist/runtime/server/errors/TimeoutError.d.ts +2 -0
- package/dist/runtime/server/errors/TimeoutError.js +2 -0
- package/dist/runtime/server/errors/index.d.ts +2 -0
- package/dist/runtime/server/errors/index.js +2 -0
- package/dist/runtime/server/types/errors.d.ts +8 -0
- package/dist/runtime/server/types/errors.js +0 -0
- package/dist/runtime/server/types/index.d.ts +1 -0
- package/dist/runtime/server/types/index.js +1 -0
- package/dist/runtime/server/utils/errors.d.ts +8 -0
- package/dist/runtime/server/utils/errors.js +57 -0
- package/dist/runtime/server/utils/httpHandler.d.ts +10 -0
- package/dist/runtime/server/utils/httpHandler.js +15 -0
- package/dist/runtime/server/utils/pagination.d.ts +11 -0
- package/dist/runtime/server/utils/pagination.js +12 -0
- package/dist/runtime/server/utils/timeout.d.ts +7 -0
- package/dist/runtime/server/utils/timeout.js +9 -0
- package/dist/runtime/server/utils/validation.d.ts +3 -0
- package/dist/runtime/server/utils/validation.js +26 -0
- package/dist/runtime/types/image.d.ts +48 -0
- package/dist/runtime/types/image.js +0 -0
- package/dist/runtime/types/index.d.ts +4 -0
- package/dist/runtime/types/index.js +4 -0
- package/dist/runtime/types/query.d.ts +20 -0
- package/dist/runtime/types/query.js +0 -0
- package/dist/runtime/types/seo.d.ts +4 -0
- package/dist/runtime/types/seo.js +0 -0
- package/dist/runtime/types/utils.d.ts +4 -1
- package/dist/runtime/utils/avatar.d.ts +1 -0
- package/dist/runtime/utils/avatar.js +9 -0
- package/dist/runtime/utils/dictionaries.d.ts +4 -0
- package/dist/runtime/utils/dictionaries.js +6 -0
- package/dist/runtime/utils/image.d.ts +30 -0
- package/dist/runtime/utils/image.js +81 -0
- package/dist/runtime/utils/index.d.ts +4 -1
- package/dist/runtime/utils/index.js +4 -0
- package/dist/runtime/utils/slugify.d.ts +1 -0
- package/dist/runtime/utils/slugify.js +12 -0
- package/dist/types.d.mts +6 -2
- package/package.json +17 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function slugify(text?: string): string;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
2
4
|
|
|
3
|
-
export
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
7
|
+
export { default } from './module.mjs'
|
|
4
8
|
|
|
5
9
|
export * from '../dist/runtime/types/index.js'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hywax/cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -44,22 +44,33 @@
|
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
"bin": {
|
|
48
|
+
"cms": "./cli/index.mjs"
|
|
49
|
+
},
|
|
47
50
|
"style": "./dist/runtime/index.css",
|
|
48
51
|
"files": [
|
|
49
52
|
".nuxt/cms",
|
|
50
53
|
".nuxt/cms.css",
|
|
54
|
+
"cli",
|
|
51
55
|
"dist"
|
|
52
56
|
],
|
|
53
57
|
"dependencies": {
|
|
58
|
+
"@dicebear/collection": "^9.2.2",
|
|
59
|
+
"@dicebear/core": "^9.2.2",
|
|
54
60
|
"@iconify-json/lucide": "1.2.50",
|
|
55
61
|
"@nuxt/kit": "^3.17.5",
|
|
56
62
|
"@nuxt/ui-pro": "^3.1.3",
|
|
57
63
|
"@nuxtjs/mdc": "^0.17.0",
|
|
58
64
|
"@unpress/mdc-prosemirror": "0.1.12-beta.2",
|
|
65
|
+
"@uplora/formats": "^0.1.0",
|
|
66
|
+
"@uplora/serializer": "^0.1.3",
|
|
59
67
|
"@vueuse/nuxt": "^13.4.0",
|
|
60
68
|
"defu": "^6.1.4",
|
|
61
69
|
"nuxt-auth-utils": "^0.5.20",
|
|
70
|
+
"pathe": "^2.0.3",
|
|
62
71
|
"prosekit": "^0.13.6",
|
|
72
|
+
"scule": "^1.3.0",
|
|
73
|
+
"slugify": "^1.6.6",
|
|
63
74
|
"zod": "^3.25.67"
|
|
64
75
|
},
|
|
65
76
|
"devDependencies": {
|
|
@@ -82,6 +93,9 @@
|
|
|
82
93
|
"vitest": "^3.2.3",
|
|
83
94
|
"vue-tsc": "^2.2.10"
|
|
84
95
|
},
|
|
96
|
+
"resolutions": {
|
|
97
|
+
"@hywax/cms": "workspace:*"
|
|
98
|
+
},
|
|
85
99
|
"lint-staged": {
|
|
86
100
|
"*.ts": "pnpm run lint"
|
|
87
101
|
},
|
|
@@ -93,13 +107,13 @@
|
|
|
93
107
|
"scripts": {
|
|
94
108
|
"release": "pnpm run build && changelogen --release --push && pnpm publish --access public",
|
|
95
109
|
"build": "nuxt-module-build build",
|
|
96
|
-
"build:
|
|
110
|
+
"build:playground": "nuxi build playground",
|
|
97
111
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
98
112
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
99
113
|
"lint": "eslint .",
|
|
100
114
|
"lint:fix": "eslint --fix .",
|
|
101
115
|
"test": "vitest run",
|
|
102
116
|
"test:watch": "vitest watch",
|
|
103
|
-
"typecheck": "vue-tsc --noEmit"
|
|
117
|
+
"typecheck": "vue-tsc --noEmit && nuxt typecheck playground"
|
|
104
118
|
}
|
|
105
119
|
}
|