@hywax/cms 1.3.0 → 1.5.0
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/config.ts +1 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -4
- package/dist/runtime/components/ButtonCopyText.d.vue.ts +3 -1
- package/dist/runtime/components/ButtonCopyText.vue +2 -2
- package/dist/runtime/components/ButtonCopyText.vue.d.ts +3 -1
- package/dist/runtime/utils/auth.d.ts +2 -0
- package/dist/runtime/utils/auth.js +5 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +1 -0
- package/package.json +1 -1
package/.nuxt/cms/config.ts
CHANGED
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 = "1.
|
|
9
|
+
const version = "1.5.0";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -184,6 +184,10 @@ function prepareMergeConfigs({ nuxt, options }) {
|
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
table: {
|
|
187
|
+
slots: {
|
|
188
|
+
tr: "group/row",
|
|
189
|
+
td: 'group-data-expanded/row:empty:after:content-["\u2014"] group-data-expanded/row:empty:after:text-dimmed'
|
|
190
|
+
},
|
|
187
191
|
variants: {
|
|
188
192
|
pinned: {
|
|
189
193
|
true: {
|
|
@@ -448,9 +452,10 @@ export {}
|
|
|
448
452
|
write: true,
|
|
449
453
|
getContents: () => {
|
|
450
454
|
const config = {
|
|
451
|
-
name: options.name
|
|
452
|
-
|
|
453
|
-
|
|
455
|
+
name: options.name
|
|
456
|
+
// Переменные есть в runtimeConfig
|
|
457
|
+
// uploraUrl: options.uploraUrl,
|
|
458
|
+
// fluxorUrl: options.fluxorUrl,
|
|
454
459
|
};
|
|
455
460
|
return `const cmsConfig = ${JSON.stringify(config, null, 2)} as const
|
|
456
461
|
|
|
@@ -14,7 +14,9 @@ export interface Props extends Pick<ButtonProps, 'target' | 'external' | 'label'
|
|
|
14
14
|
}
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
showAction: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
20
|
default?: (props: {}) => any;
|
|
19
21
|
} & {
|
|
20
22
|
default?: (props: {}) => any;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
>
|
|
25
25
|
<UButton
|
|
26
26
|
:class="ui.button({ class: props.ui?.button })"
|
|
27
|
-
:icon="copied ?
|
|
27
|
+
:icon="copied ? appConfig.ui.icons.check : appConfig.ui.icons.copy"
|
|
28
28
|
variant="link"
|
|
29
29
|
size="sm"
|
|
30
30
|
:color="copied ? 'success' : 'neutral'"
|
|
@@ -45,7 +45,7 @@ import { tv } from "../tv";
|
|
|
45
45
|
<script setup>
|
|
46
46
|
const props = defineProps({
|
|
47
47
|
text: { type: [String, Number, null], required: false },
|
|
48
|
-
showAction: { type: Boolean, required: false },
|
|
48
|
+
showAction: { type: Boolean, required: false, default: true },
|
|
49
49
|
alwaysShowTooltip: { type: Boolean, required: false },
|
|
50
50
|
to: { type: null, required: false },
|
|
51
51
|
class: { type: null, required: false },
|
|
@@ -14,7 +14,9 @@ export interface Props extends Pick<ButtonProps, 'target' | 'external' | 'label'
|
|
|
14
14
|
}
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
showAction: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
20
|
default?: (props: {}) => any;
|
|
19
21
|
} & {
|
|
20
22
|
default?: (props: {}) => any;
|