@hywax/cms 1.0.1 → 1.1.1
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
|
@@ -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.1.1";
|
|
10
10
|
|
|
11
11
|
function createContext(options, nuxt) {
|
|
12
12
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -158,9 +158,15 @@ const icons = {
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
function prepareMergeConfigs({ nuxt, options }) {
|
|
161
|
+
nuxt.options.experimental = defu(nuxt.options.experimental || {}, {
|
|
162
|
+
typedPages: true
|
|
163
|
+
});
|
|
164
|
+
nuxt.options.future = defu(nuxt.options.future || {}, {
|
|
165
|
+
compatibilityVersion: 5
|
|
166
|
+
});
|
|
161
167
|
nuxt.options.runtimeConfig.public = defu(nuxt.options.runtimeConfig.public || {}, {
|
|
162
168
|
fluxorUrl: options.fluxorUrl,
|
|
163
|
-
version: ""
|
|
169
|
+
version: "develop"
|
|
164
170
|
});
|
|
165
171
|
nuxt.options.runtimeConfig.nitro ||= {};
|
|
166
172
|
nuxt.options.runtimeConfig.nitro.envPrefix = options.envPrefix;
|
|
@@ -2,7 +2,7 @@ import type { NavigationMenuItem } from '@nuxt/ui';
|
|
|
2
2
|
import type { RouteLocationRaw } from 'vue-router';
|
|
3
3
|
interface LayoutProps {
|
|
4
4
|
navigation: NavigationMenuItem[];
|
|
5
|
-
version
|
|
5
|
+
version?: string;
|
|
6
6
|
logotype?: string;
|
|
7
7
|
logotypeIcon?: string;
|
|
8
8
|
logotypeShortIcon?: string;
|
|
@@ -10,7 +10,9 @@ interface LayoutProps {
|
|
|
10
10
|
}
|
|
11
11
|
interface DashboardLayoutSlots {
|
|
12
12
|
default: () => any;
|
|
13
|
-
logotype: (
|
|
13
|
+
logotype: (props: {
|
|
14
|
+
collapsed: boolean | undefined;
|
|
15
|
+
}) => any;
|
|
14
16
|
footer: (props: {
|
|
15
17
|
collapsed: boolean | undefined;
|
|
16
18
|
}) => any;
|
|
@@ -7,20 +7,21 @@
|
|
|
7
7
|
collapsible
|
|
8
8
|
>
|
|
9
9
|
<template #header="{ collapsed }">
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
<span class="text-lg">{{ logotype }}</span>
|
|
14
|
-
</slot>
|
|
10
|
+
<slot name="logotype" :collapsed="collapsed">
|
|
11
|
+
<NuxtLink :to="homeLink" class="flex items-center gap-2.5" :class="collapsed && 'mx-auto'">
|
|
12
|
+
<UIcon v-if="logotypeIcon && logotypeShortIcon" :name="collapsed ? logotypeShortIcon : logotypeIcon" />
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
<template v-if="version">
|
|
15
|
+
<UBadge
|
|
16
|
+
v-show="!collapsed"
|
|
17
|
+
color="primary"
|
|
18
|
+
variant="soft"
|
|
19
|
+
size="sm"
|
|
20
|
+
:label="version"
|
|
21
|
+
/>
|
|
22
|
+
</template>
|
|
23
|
+
</NuxtLink>
|
|
24
|
+
</slot>
|
|
24
25
|
</template>
|
|
25
26
|
|
|
26
27
|
<template #default="{ collapsed }">
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
</template>
|
|
43
44
|
|
|
44
45
|
<template v-if="$slots.footer" #footer="{ collapsed }">
|
|
45
|
-
<div class="my-1">
|
|
46
|
+
<div class="my-1 w-full">
|
|
46
47
|
<slot name="footer" :collapsed="collapsed" />
|
|
47
48
|
</div>
|
|
48
49
|
</template>
|
|
@@ -58,7 +59,7 @@ import { computed } from "vue";
|
|
|
58
59
|
import { useAdmin } from "../composables/useAdmin";
|
|
59
60
|
defineProps({
|
|
60
61
|
navigation: { type: Array, required: true },
|
|
61
|
-
version: { type: String, required:
|
|
62
|
+
version: { type: String, required: false },
|
|
62
63
|
logotype: { type: String, required: false },
|
|
63
64
|
logotypeIcon: { type: String, required: false },
|
|
64
65
|
logotypeShortIcon: { type: String, required: false },
|
|
@@ -2,7 +2,7 @@ import type { NavigationMenuItem } from '@nuxt/ui';
|
|
|
2
2
|
import type { RouteLocationRaw } from 'vue-router';
|
|
3
3
|
interface LayoutProps {
|
|
4
4
|
navigation: NavigationMenuItem[];
|
|
5
|
-
version
|
|
5
|
+
version?: string;
|
|
6
6
|
logotype?: string;
|
|
7
7
|
logotypeIcon?: string;
|
|
8
8
|
logotypeShortIcon?: string;
|
|
@@ -10,7 +10,9 @@ interface LayoutProps {
|
|
|
10
10
|
}
|
|
11
11
|
interface DashboardLayoutSlots {
|
|
12
12
|
default: () => any;
|
|
13
|
-
logotype: (
|
|
13
|
+
logotype: (props: {
|
|
14
|
+
collapsed: boolean | undefined;
|
|
15
|
+
}) => any;
|
|
14
16
|
footer: (props: {
|
|
15
17
|
collapsed: boolean | undefined;
|
|
16
18
|
}) => any;
|