@hywax/cms 3.9.0 → 3.9.2
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/EditorFull.vue +2 -2
- package/dist/runtime/components/TablePreviewLink.vue +3 -2
- package/dist/runtime/server/utils/validation.d.ts +1 -1
- package/dist/runtime/server/utils/validation.js +3 -3
- package/package.json +14 -13
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { pascalCase, kebabCase, camelCase } from 'scule';
|
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
|
|
9
9
|
const name = "@hywax/cms";
|
|
10
|
-
const version = "3.9.
|
|
10
|
+
const version = "3.9.2";
|
|
11
11
|
|
|
12
12
|
function createContext(options, nuxt) {
|
|
13
13
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
v-if="madeRaw"
|
|
4
4
|
v-bind="forwardedTextarea"
|
|
5
5
|
:ui="{
|
|
6
|
-
root: 'w-full px-
|
|
7
|
-
base: 'text-md text-default min-h-screen'
|
|
6
|
+
root: 'w-full px-5',
|
|
7
|
+
base: 'text-md text-default min-h-screen leading-7 py-0 px-3'
|
|
8
8
|
}"
|
|
9
9
|
variant="none"
|
|
10
10
|
placeholder="Введите текст..."
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative flex items-center gap-2">
|
|
3
|
-
|
|
4
|
-
<div v-if="image" class="overflow-hidden rounded-lg shrink-0 size-8">
|
|
3
|
+
<div class="overflow-hidden rounded-lg shrink-0 size-8">
|
|
5
4
|
<CUploraImage
|
|
5
|
+
v-if="image"
|
|
6
6
|
v-bind="image"
|
|
7
7
|
:sizes="[{ width: 32, height: 32, descriptor: '1x' }]"
|
|
8
8
|
:ui="{ picture: 'aspect-square' }"
|
|
9
9
|
/>
|
|
10
|
+
<div v-else-if="image === null" class="w-full h-full bg-elevated" />
|
|
10
11
|
</div>
|
|
11
12
|
<div class="flex-1 truncate max-w-100">
|
|
12
13
|
<ULink
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { H3Event, InferEventInput, ValidateFunction } from 'h3';
|
|
2
2
|
import type { PaginationQuery, PaginationQueryRaw, SortQuery, SortQueryRaw } from '../../types';
|
|
3
3
|
export declare function getValidatedSort<T extends string[]>(query: SortQueryRaw, availableColumns: readonly [...T]): SortQuery<T[number]>;
|
|
4
|
-
export declare function getValidatedPagination(query: PaginationQueryRaw): PaginationQuery & {
|
|
4
|
+
export declare function getValidatedPagination(query: PaginationQueryRaw, maxPerPage?: number): PaginationQuery & {
|
|
5
5
|
pageOffset: number;
|
|
6
6
|
};
|
|
7
7
|
export declare function readValidatedMultipartFormData<T, Event extends H3Event = H3Event, _T = InferEventInput<'body', Event, T>>(event: Event, validate: ValidateFunction<_T>): Promise<_T>;
|
|
@@ -11,9 +11,9 @@ export function getValidatedSort(query, availableColumns) {
|
|
|
11
11
|
sortColumn
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export function getValidatedPagination(query) {
|
|
15
|
-
const perPage = Number(query.perPage);
|
|
16
|
-
if (
|
|
14
|
+
export function getValidatedPagination(query, maxPerPage = 20) {
|
|
15
|
+
const perPage = Number.parseInt(query.perPage || "0", 10) || maxPerPage;
|
|
16
|
+
if (perPage < 1 || perPage > maxPerPage) {
|
|
17
17
|
throw createHttpError("badRequest");
|
|
18
18
|
}
|
|
19
19
|
const page = Number(query.page) || 1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hywax/cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.2",
|
|
5
|
+
"packageManager": "pnpm@10.28.0",
|
|
5
6
|
"description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
|
|
6
7
|
"imports": {
|
|
7
8
|
"#build/cms/*": "./.nuxt/cms/*.ts",
|
|
@@ -60,31 +61,31 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@dicebear/collection": "^9.
|
|
64
|
-
"@dicebear/core": "^9.
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
64
|
+
"@dicebear/collection": "^9.3.0",
|
|
65
|
+
"@dicebear/core": "^9.3.0",
|
|
66
|
+
"@iconify-json/lucide": "^1.2.85",
|
|
66
67
|
"@nuxt/kit": "^4.2.2",
|
|
67
68
|
"@nuxt/ui": "^4.3.0",
|
|
68
|
-
"@nuxtjs/mdc": "^0.
|
|
69
|
+
"@nuxtjs/mdc": "^0.20.0",
|
|
69
70
|
"@sindresorhus/slugify": "^3.0.0",
|
|
70
71
|
"@uplora/formats": "^0.1.0",
|
|
71
72
|
"@uplora/serializer": "^0.1.3",
|
|
72
73
|
"@vueuse/nuxt": "^14.1.0",
|
|
73
|
-
"consola": "
|
|
74
|
-
"defu": "
|
|
74
|
+
"consola": "catalog:",
|
|
75
|
+
"defu": "catalog:",
|
|
75
76
|
"fast-copy": "^4.0.2",
|
|
76
77
|
"fast-equals": "^5.4.0",
|
|
77
|
-
"nuxt-auth-utils": "^0.5.
|
|
78
|
+
"nuxt-auth-utils": "^0.5.27",
|
|
78
79
|
"object-to-formdata": "^4.5.1",
|
|
79
|
-
"pathe": "
|
|
80
|
+
"pathe": "catalog:",
|
|
80
81
|
"plural-ru": "^2.0.2",
|
|
81
|
-
"scule": "
|
|
82
|
+
"scule": "catalog:",
|
|
82
83
|
"sortablejs": "^1.15.6",
|
|
83
84
|
"tinyglobby": "^0.2.15",
|
|
84
85
|
"zod": "^4.3.5"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"@antfu/eslint-config": "^
|
|
88
|
+
"@antfu/eslint-config": "^7.0.1",
|
|
88
89
|
"@commitlint/cli": "^20.3.1",
|
|
89
90
|
"@commitlint/config-conventional": "^20.3.1",
|
|
90
91
|
"@nuxt/devtools": "^3.1.1",
|
|
@@ -95,10 +96,10 @@
|
|
|
95
96
|
"@vue/test-utils": "^2.4.6",
|
|
96
97
|
"changelogen-monorepo": "^0.5.0",
|
|
97
98
|
"eslint": "^9.39.2",
|
|
98
|
-
"happy-dom": "^20.
|
|
99
|
+
"happy-dom": "^20.3.0",
|
|
99
100
|
"husky": "^9.1.7",
|
|
100
101
|
"lint-staged": "^16.2.7",
|
|
101
|
-
"nuxt": "
|
|
102
|
+
"nuxt": "catalog:",
|
|
102
103
|
"typescript": "^5.9.3",
|
|
103
104
|
"vitest": "^3.2.4",
|
|
104
105
|
"vue-tsc": "^3.2.2"
|