@hywax/cms 0.0.14 → 0.0.16
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.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const HTTP_CODE_BAD_REQUEST = '400: Неверный запрос'
|
|
2
|
+
export const HTTP_CODE_UNAUTHORIZED = '401: Не авторизован'
|
|
3
|
+
export const HTTP_CODE_FORBIDDEN = '403: Доступ запрещен'
|
|
4
|
+
export const HTTP_CODE_NOT_FOUND = '404: Не найдено'
|
|
5
|
+
export const HTTP_CODE_REQUEST_TIMEOUT = '408: Время ожидания запроса истекло'
|
|
6
|
+
export const HTTP_CODE_INTERNAL_SERVER_ERROR = '500: Внутренняя ошибка сервера'
|
|
7
|
+
export const HTTP_CODE_BAD_GATEWAY = '502: Ошибка шлюза'
|
|
8
|
+
export const HTTP_CODE_SERVICE_UNAVAILABLE = '503: Сервис недоступен'
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { snakeCase, kebabCase } from 'scule';
|
|
|
6
6
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
7
7
|
|
|
8
8
|
const name = "@hywax/cms";
|
|
9
|
-
const version = "0.0.
|
|
9
|
+
const version = "0.0.16";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function prepareAutoImports({ resolve, options, nuxt }) {
|
|
|
55
55
|
"dictionaries",
|
|
56
56
|
"image",
|
|
57
57
|
"slugify"
|
|
58
|
-
].map((name) =>
|
|
58
|
+
].map((name) => resolve(`./runtime/utils/${name}`));
|
|
59
59
|
addComponentsDir({
|
|
60
60
|
path: resolve("./runtime/components"),
|
|
61
61
|
pathPrefix: false,
|
|
@@ -71,20 +71,20 @@ function prepareAutoImports({ resolve, options, nuxt }) {
|
|
|
71
71
|
addPlugin(resolve("./runtime/plugins/api"));
|
|
72
72
|
addImports([
|
|
73
73
|
...httpCodesImports,
|
|
74
|
-
...sharedUtils,
|
|
75
74
|
{ name: "docToMarkdown", from: resolve("./runtime/editor/markdown") },
|
|
76
75
|
{ name: "markdownToDoc", from: resolve("./runtime/editor/markdown") }
|
|
77
76
|
]);
|
|
78
77
|
addImportsDir([
|
|
78
|
+
...sharedUtils,
|
|
79
79
|
resolve("./runtime/composables")
|
|
80
80
|
]);
|
|
81
81
|
addServerImports([
|
|
82
82
|
...httpCodesImports,
|
|
83
|
-
...sharedUtils,
|
|
84
83
|
{ name: "docToMarkdown", from: resolve("./runtime/editor/markdown") },
|
|
85
84
|
{ name: "markdownToDoc", from: resolve("./runtime/editor/markdown") }
|
|
86
85
|
]);
|
|
87
86
|
addServerImportsDir([
|
|
87
|
+
...sharedUtils,
|
|
88
88
|
resolve("./runtime/server/utils")
|
|
89
89
|
]);
|
|
90
90
|
nuxt.options.nitro.alias ||= {};
|
|
@@ -520,7 +520,7 @@ export {}
|
|
|
520
520
|
`
|
|
521
521
|
});
|
|
522
522
|
templates.push({
|
|
523
|
-
filename: "http-codes.
|
|
523
|
+
filename: "cms/http-codes.ts",
|
|
524
524
|
write: true,
|
|
525
525
|
getContents: () => {
|
|
526
526
|
const httpCodes = transformHttpCodes(options.httpCodes);
|
|
@@ -20,14 +20,14 @@ export interface InputUploraImageModelValue {
|
|
|
20
20
|
declare const _default: import("vue").DefineComponent<InputUploraImageProps & {
|
|
21
21
|
modelValue?: InputUploraImageModelValue;
|
|
22
22
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
delete: () => any;
|
|
24
23
|
"update:modelValue": (value: InputUploraImageModelValue) => any;
|
|
24
|
+
delete: () => any;
|
|
25
25
|
upload: (args_0: InputUploraImageModelValue) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<InputUploraImageProps & {
|
|
27
27
|
modelValue?: InputUploraImageModelValue;
|
|
28
28
|
}> & Readonly<{
|
|
29
|
-
onDelete?: (() => any) | undefined;
|
|
30
29
|
"onUpdate:modelValue"?: ((value: InputUploraImageModelValue) => any) | undefined;
|
|
30
|
+
onDelete?: (() => any) | undefined;
|
|
31
31
|
onUpload?: ((args_0: InputUploraImageModelValue) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
showExtensions: boolean;
|
|
@@ -18,7 +18,7 @@ declare const _default: <T extends object>(__VLS_props: NonNullable<Awaited<type
|
|
|
18
18
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
19
19
|
readonly onReset?: (() => any) | undefined;
|
|
20
20
|
readonly onSubmit?: (() => any) | undefined;
|
|
21
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "
|
|
21
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onReset"> & TablePanelFiltersProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
22
22
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: {
|