@hywax/cms 3.9.1 → 3.9.3
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
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.3";
|
|
11
11
|
|
|
12
12
|
function createContext(options, nuxt) {
|
|
13
13
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:sizes="[{ width: 32, height: 32, descriptor: '1x' }]"
|
|
8
8
|
:ui="{ picture: 'aspect-square' }"
|
|
9
9
|
/>
|
|
10
|
-
<div v-else class="w-full h-full bg-elevated" />
|
|
10
|
+
<div v-else-if="image === null" class="w-full h-full bg-elevated" />
|
|
11
11
|
</div>
|
|
12
12
|
<div class="flex-1 truncate max-w-100">
|
|
13
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,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hywax/cms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.3",
|
|
5
5
|
"description": "Hywax CMS. ⚠️ This package is intended for internal use only.",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#build/cms/*": "./.nuxt/cms/*.ts",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@dicebear/collection": "^9.
|
|
64
|
-
"@dicebear/core": "^9.
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
63
|
+
"@dicebear/collection": "^9.3.0",
|
|
64
|
+
"@dicebear/core": "^9.3.0",
|
|
65
|
+
"@iconify-json/lucide": "^1.2.85",
|
|
66
66
|
"@nuxt/kit": "^4.2.2",
|
|
67
67
|
"@nuxt/ui": "^4.3.0",
|
|
68
|
-
"@nuxtjs/mdc": "^0.
|
|
68
|
+
"@nuxtjs/mdc": "^0.20.0",
|
|
69
69
|
"@sindresorhus/slugify": "^3.0.0",
|
|
70
70
|
"@uplora/formats": "^0.1.0",
|
|
71
71
|
"@uplora/serializer": "^0.1.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"defu": "^6.1.4",
|
|
75
75
|
"fast-copy": "^4.0.2",
|
|
76
76
|
"fast-equals": "^5.4.0",
|
|
77
|
-
"nuxt-auth-utils": "^0.5.
|
|
77
|
+
"nuxt-auth-utils": "^0.5.27",
|
|
78
78
|
"object-to-formdata": "^4.5.1",
|
|
79
79
|
"pathe": "^2.0.3",
|
|
80
80
|
"plural-ru": "^2.0.2",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"zod": "^4.3.5"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@antfu/eslint-config": "^7.0.
|
|
87
|
+
"@antfu/eslint-config": "^7.0.1",
|
|
88
88
|
"@commitlint/cli": "^20.3.1",
|
|
89
89
|
"@commitlint/config-conventional": "^20.3.1",
|
|
90
90
|
"@nuxt/devtools": "^3.1.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@vue/test-utils": "^2.4.6",
|
|
96
96
|
"changelogen-monorepo": "^0.5.0",
|
|
97
97
|
"eslint": "^9.39.2",
|
|
98
|
-
"happy-dom": "^20.
|
|
98
|
+
"happy-dom": "^20.3.0",
|
|
99
99
|
"husky": "^9.1.7",
|
|
100
100
|
"lint-staged": "^16.2.7",
|
|
101
101
|
"nuxt": "^4.2.2",
|