@mouseless/baked 0.19.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/README.md +11 -0
- package/dist/module.d.mts +45 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +110 -0
- package/dist/runtime/assets/overrides.css +1 -0
- package/dist/runtime/assets/tailwind.css +1 -0
- package/dist/runtime/components/AuthorizedContent.d.vue.ts +10 -0
- package/dist/runtime/components/AuthorizedContent.vue +14 -0
- package/dist/runtime/components/AuthorizedContent.vue.d.ts +10 -0
- package/dist/runtime/components/Bake.d.vue.ts +20 -0
- package/dist/runtime/components/Bake.vue +50 -0
- package/dist/runtime/components/Bake.vue.d.ts +20 -0
- package/dist/runtime/components/BasePersistentPopover.d.vue.ts +178 -0
- package/dist/runtime/components/BasePersistentPopover.vue +41 -0
- package/dist/runtime/components/BasePersistentPopover.vue.d.ts +178 -0
- package/dist/runtime/components/CardLink.d.vue.ts +11 -0
- package/dist/runtime/components/CardLink.vue +57 -0
- package/dist/runtime/components/CardLink.vue.d.ts +11 -0
- package/dist/runtime/components/DataPanel.d.vue.ts +20 -0
- package/dist/runtime/components/DataPanel.vue +138 -0
- package/dist/runtime/components/DataPanel.vue.d.ts +20 -0
- package/dist/runtime/components/DataTable.d.vue.ts +11 -0
- package/dist/runtime/components/DataTable.vue +213 -0
- package/dist/runtime/components/DataTable.vue.d.ts +11 -0
- package/dist/runtime/components/DefaultLayout.d.vue.ts +18 -0
- package/dist/runtime/components/DefaultLayout.vue +44 -0
- package/dist/runtime/components/DefaultLayout.vue.d.ts +18 -0
- package/dist/runtime/components/DeferredTabContent.d.vue.ts +16 -0
- package/dist/runtime/components/DeferredTabContent.vue +23 -0
- package/dist/runtime/components/DeferredTabContent.vue.d.ts +16 -0
- package/dist/runtime/components/Error.d.vue.ts +3 -0
- package/dist/runtime/components/Error.vue +13 -0
- package/dist/runtime/components/Error.vue.d.ts +3 -0
- package/dist/runtime/components/ErrorPage.d.vue.ts +11 -0
- package/dist/runtime/components/ErrorPage.vue +65 -0
- package/dist/runtime/components/ErrorPage.vue.d.ts +11 -0
- package/dist/runtime/components/Filter.d.vue.ts +11 -0
- package/dist/runtime/components/Filter.vue +23 -0
- package/dist/runtime/components/Filter.vue.d.ts +11 -0
- package/dist/runtime/components/Header.d.vue.ts +11 -0
- package/dist/runtime/components/Header.vue +78 -0
- package/dist/runtime/components/Header.vue.d.ts +11 -0
- package/dist/runtime/components/Icon.d.vue.ts +11 -0
- package/dist/runtime/components/Icon.vue +14 -0
- package/dist/runtime/components/Icon.vue.d.ts +11 -0
- package/dist/runtime/components/LanguageSwitcher.d.vue.ts +11 -0
- package/dist/runtime/components/LanguageSwitcher.vue +57 -0
- package/dist/runtime/components/LanguageSwitcher.vue.d.ts +11 -0
- package/dist/runtime/components/Layout.d.vue.ts +10 -0
- package/dist/runtime/components/Layout.vue +38 -0
- package/dist/runtime/components/Layout.vue.d.ts +10 -0
- package/dist/runtime/components/Logo.d.vue.ts +9 -0
- package/dist/runtime/components/Logo.vue +18 -0
- package/dist/runtime/components/Logo.vue.d.ts +9 -0
- package/dist/runtime/components/MenuPage.d.vue.ts +11 -0
- package/dist/runtime/components/MenuPage.vue +93 -0
- package/dist/runtime/components/MenuPage.vue.d.ts +11 -0
- package/dist/runtime/components/Message.d.vue.ts +11 -0
- package/dist/runtime/components/Message.vue +33 -0
- package/dist/runtime/components/Message.vue.d.ts +11 -0
- package/dist/runtime/components/ModalLayout.d.vue.ts +18 -0
- package/dist/runtime/components/ModalLayout.vue +14 -0
- package/dist/runtime/components/ModalLayout.vue.d.ts +18 -0
- package/dist/runtime/components/Money.d.vue.ts +11 -0
- package/dist/runtime/components/Money.vue +27 -0
- package/dist/runtime/components/Money.vue.d.ts +11 -0
- package/dist/runtime/components/NavLink.d.vue.ts +11 -0
- package/dist/runtime/components/NavLink.vue +30 -0
- package/dist/runtime/components/NavLink.vue.d.ts +11 -0
- package/dist/runtime/components/None.d.vue.ts +11 -0
- package/dist/runtime/components/None.vue +25 -0
- package/dist/runtime/components/None.vue.d.ts +11 -0
- package/dist/runtime/components/Number.d.vue.ts +11 -0
- package/dist/runtime/components/Number.vue +27 -0
- package/dist/runtime/components/Number.vue.d.ts +11 -0
- package/dist/runtime/components/Page.d.vue.ts +3 -0
- package/dist/runtime/components/Page.vue +24 -0
- package/dist/runtime/components/Page.vue.d.ts +3 -0
- package/dist/runtime/components/PageTitle.d.vue.ts +22 -0
- package/dist/runtime/components/PageTitle.vue +171 -0
- package/dist/runtime/components/PageTitle.vue.d.ts +22 -0
- package/dist/runtime/components/Parameters.d.vue.ts +11 -0
- package/dist/runtime/components/Parameters.vue +60 -0
- package/dist/runtime/components/Parameters.vue.d.ts +11 -0
- package/dist/runtime/components/PersistentPopover.d.vue.ts +46 -0
- package/dist/runtime/components/PersistentPopover.vue +335 -0
- package/dist/runtime/components/PersistentPopover.vue.d.ts +46 -0
- package/dist/runtime/components/QueryParameters.d.vue.ts +11 -0
- package/dist/runtime/components/QueryParameters.vue +103 -0
- package/dist/runtime/components/QueryParameters.vue.d.ts +11 -0
- package/dist/runtime/components/Rate.d.vue.ts +11 -0
- package/dist/runtime/components/Rate.vue +22 -0
- package/dist/runtime/components/Rate.vue.d.ts +11 -0
- package/dist/runtime/components/ReportPage.d.vue.ts +11 -0
- package/dist/runtime/components/ReportPage.vue +147 -0
- package/dist/runtime/components/ReportPage.vue.d.ts +11 -0
- package/dist/runtime/components/Select.d.vue.ts +11 -0
- package/dist/runtime/components/Select.vue +120 -0
- package/dist/runtime/components/Select.vue.d.ts +11 -0
- package/dist/runtime/components/SelectButton.d.vue.ts +11 -0
- package/dist/runtime/components/SelectButton.vue +94 -0
- package/dist/runtime/components/SelectButton.vue.d.ts +11 -0
- package/dist/runtime/components/SideMenu.d.vue.ts +20 -0
- package/dist/runtime/components/SideMenu.vue +121 -0
- package/dist/runtime/components/SideMenu.vue.d.ts +20 -0
- package/dist/runtime/components/SideMenuItem.d.vue.ts +11 -0
- package/dist/runtime/components/SideMenuItem.vue +33 -0
- package/dist/runtime/components/SideMenuItem.vue.d.ts +11 -0
- package/dist/runtime/components/Text.d.vue.ts +11 -0
- package/dist/runtime/components/Text.vue +36 -0
- package/dist/runtime/components/Text.vue.d.ts +11 -0
- package/dist/runtime/composables/useBreakpoints.d.ts +1 -0
- package/dist/runtime/composables/useBreakpoints.js +48 -0
- package/dist/runtime/composables/useCache.d.ts +13 -0
- package/dist/runtime/composables/useCache.js +60 -0
- package/dist/runtime/composables/useComponentResolver.d.ts +3 -0
- package/dist/runtime/composables/useComponentResolver.js +13 -0
- package/dist/runtime/composables/useComposableResolver.d.ts +3 -0
- package/dist/runtime/composables/useComposableResolver.js +15 -0
- package/dist/runtime/composables/useConditional.d.ts +3 -0
- package/dist/runtime/composables/useConditional.js +15 -0
- package/dist/runtime/composables/useContext.d.ts +15 -0
- package/dist/runtime/composables/useContext.js +60 -0
- package/dist/runtime/composables/useDataFetcher.d.ts +15 -0
- package/dist/runtime/composables/useDataFetcher.js +203 -0
- package/dist/runtime/composables/useFormat.d.ts +16 -0
- package/dist/runtime/composables/useFormat.js +116 -0
- package/dist/runtime/composables/useLayouts.d.ts +3 -0
- package/dist/runtime/composables/useLayouts.js +21 -0
- package/dist/runtime/composables/useLocalization.d.ts +6 -0
- package/dist/runtime/composables/useLocalization.js +34 -0
- package/dist/runtime/composables/useLoginRedirect.d.ts +3 -0
- package/dist/runtime/composables/useLoginRedirect.js +15 -0
- package/dist/runtime/composables/useMutex.d.ts +3 -0
- package/dist/runtime/composables/useMutex.js +26 -0
- package/dist/runtime/composables/useNuxtError.d.ts +3 -0
- package/dist/runtime/composables/useNuxtError.js +13 -0
- package/dist/runtime/composables/useNuxtRoute.d.ts +3 -0
- package/dist/runtime/composables/useNuxtRoute.js +13 -0
- package/dist/runtime/composables/usePages.d.ts +5 -0
- package/dist/runtime/composables/usePages.js +27 -0
- package/dist/runtime/composables/useQuery.d.ts +3 -0
- package/dist/runtime/composables/useQuery.js +13 -0
- package/dist/runtime/composables/useToast.d.ts +1 -0
- package/dist/runtime/composables/useToast.js +5 -0
- package/dist/runtime/composables/useToken.d.ts +11 -0
- package/dist/runtime/composables/useToken.js +99 -0
- package/dist/runtime/composables/useUiStates.d.ts +9 -0
- package/dist/runtime/composables/useUiStates.js +9 -0
- package/dist/runtime/composables/useUnref.d.ts +3 -0
- package/dist/runtime/composables/useUnref.js +109 -0
- package/dist/runtime/plugins/auth.d.ts +2 -0
- package/dist/runtime/plugins/auth.js +81 -0
- package/dist/runtime/plugins/baked.d.ts +10 -0
- package/dist/runtime/plugins/baked.js +50 -0
- package/dist/runtime/plugins/cacheApplication.d.ts +2 -0
- package/dist/runtime/plugins/cacheApplication.js +27 -0
- package/dist/runtime/plugins/cacheUser.d.ts +2 -0
- package/dist/runtime/plugins/cacheUser.js +37 -0
- package/dist/runtime/plugins/errorHandling.d.ts +14 -0
- package/dist/runtime/plugins/errorHandling.js +96 -0
- package/dist/runtime/plugins/fetch.d.ts +2 -0
- package/dist/runtime/plugins/fetch.js +80 -0
- package/dist/runtime/plugins/localization.d.ts +2 -0
- package/dist/runtime/plugins/localization.js +18 -0
- package/dist/runtime/plugins/mutex.d.ts +7 -0
- package/dist/runtime/plugins/mutex.js +15 -0
- package/dist/runtime/plugins/primeVue.d.ts +2 -0
- package/dist/runtime/plugins/primeVue.js +75 -0
- package/dist/runtime/plugins/toast.d.ts +6 -0
- package/dist/runtime/plugins/toast.js +18 -0
- package/dist/runtime/plugins/trailingSlash.d.ts +2 -0
- package/dist/runtime/plugins/trailingSlash.js +18 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/types.d.mts +3 -0
- package/package.json +74 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-bind="$attrs"
|
|
4
|
+
class="
|
|
5
|
+
flex flex-row
|
|
6
|
+
max-md:flex-col-reverse
|
|
7
|
+
"
|
|
8
|
+
>
|
|
9
|
+
<Bake
|
|
10
|
+
name="sideMenu"
|
|
11
|
+
:descriptor="sideMenu"
|
|
12
|
+
/>
|
|
13
|
+
<article
|
|
14
|
+
class="
|
|
15
|
+
w-full px-4 flex flex-col bg-body mb-[5.5rem]
|
|
16
|
+
max-md:mb-24
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<Bake
|
|
20
|
+
:key="route.path"
|
|
21
|
+
name="header"
|
|
22
|
+
:descriptor="header"
|
|
23
|
+
/>
|
|
24
|
+
<slot />
|
|
25
|
+
</article>
|
|
26
|
+
</div>
|
|
27
|
+
<ScrollTop :threshold="250" />
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup>
|
|
31
|
+
import { useRoute } from "#app";
|
|
32
|
+
import { ScrollTop } from "primevue";
|
|
33
|
+
import { Bake } from "#components";
|
|
34
|
+
const route = useRoute();
|
|
35
|
+
const { schema } = defineProps({
|
|
36
|
+
schema: { type: null, required: true },
|
|
37
|
+
data: { type: null, default: null }
|
|
38
|
+
});
|
|
39
|
+
const { header, sideMenu } = schema;
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style>
|
|
43
|
+
.p-scrolltop{padding-bottom:calc(var(--p-button-icon-only-width)/2);padding-top:calc(var(--p-button-icon-only-width)/2);@apply right-6 bottom-6 max-md:bottom-24}
|
|
44
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
|
+
$props: Partial<typeof __VLS_props>;
|
|
9
|
+
schema: any;
|
|
10
|
+
data: any;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_props: {
|
|
16
|
+
readonly schema: any;
|
|
17
|
+
readonly data: any;
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
|
+
$props: Partial<typeof __VLS_props>;
|
|
9
|
+
when: string;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
type __VLS_Slots = {
|
|
12
|
+
default?: ((props: {}) => any) | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_props: {
|
|
15
|
+
readonly when: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="{ hidden: !show }">
|
|
3
|
+
<slot v-if="loaded || show" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
import { computed, ref, watch } from "vue";
|
|
9
|
+
const { when } = defineProps({
|
|
10
|
+
when: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const model = defineModel({ type: String, required: true });
|
|
16
|
+
const show = computed(() => model.value === when);
|
|
17
|
+
const loaded = ref(show.value);
|
|
18
|
+
watch(show, () => {
|
|
19
|
+
if (show.value) {
|
|
20
|
+
loaded.value = true;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
|
+
$props: Partial<typeof __VLS_props>;
|
|
9
|
+
when: string;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
type __VLS_Slots = {
|
|
12
|
+
default?: ((props: {}) => any) | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_props: {
|
|
15
|
+
readonly when: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Bake
|
|
3
|
+
v-if="error"
|
|
4
|
+
name="error"
|
|
5
|
+
:descriptor="error"
|
|
6
|
+
/>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
import { useRuntimeConfig } from "#app";
|
|
11
|
+
import { Bake } from "#components";
|
|
12
|
+
const { public: { error } } = useRuntimeConfig();
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="data"
|
|
4
|
+
data-testid="error-page"
|
|
5
|
+
class="p-8"
|
|
6
|
+
>
|
|
7
|
+
<div class="pt-8 space-y-4">
|
|
8
|
+
<Tag
|
|
9
|
+
severity="danger"
|
|
10
|
+
:value="statusCode"
|
|
11
|
+
class="!text-4xl"
|
|
12
|
+
/>
|
|
13
|
+
<h1 class="text-6xl">
|
|
14
|
+
{{ l(errorInfo.title) }}
|
|
15
|
+
</h1>
|
|
16
|
+
<div class="text-2xl">
|
|
17
|
+
{{ l(errorInfo.message) }}
|
|
18
|
+
</div>
|
|
19
|
+
<AuthorizedContent>
|
|
20
|
+
<div class="text-2xl">
|
|
21
|
+
{{ l(safeLinksMessage) }}
|
|
22
|
+
</div>
|
|
23
|
+
</AuthorizedContent>
|
|
24
|
+
</div>
|
|
25
|
+
<AuthorizedContent>
|
|
26
|
+
<Divider
|
|
27
|
+
type="dashed"
|
|
28
|
+
class="my-8"
|
|
29
|
+
/>
|
|
30
|
+
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6">
|
|
31
|
+
<Bake
|
|
32
|
+
v-for="(link, i) in safeLinks"
|
|
33
|
+
:key="link.schema.route"
|
|
34
|
+
:name="`links/${i}`"
|
|
35
|
+
:descriptor="link"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</AuthorizedContent>
|
|
39
|
+
<Divider
|
|
40
|
+
type="dashed"
|
|
41
|
+
class="my-8"
|
|
42
|
+
/>
|
|
43
|
+
<Message severity="warn">
|
|
44
|
+
<i class="pi pi-exclamation-circle mr-2" />
|
|
45
|
+
{{ l(footerInfo) }}
|
|
46
|
+
</Message>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
|
|
50
|
+
<script setup>
|
|
51
|
+
import { computed } from "vue";
|
|
52
|
+
import { Divider, Message, Tag } from "primevue";
|
|
53
|
+
import { useLocalization } from "#imports";
|
|
54
|
+
const { localize: l } = useLocalization();
|
|
55
|
+
const { schema, data } = defineProps({
|
|
56
|
+
schema: { type: null, required: true },
|
|
57
|
+
data: { type: null, default: null }
|
|
58
|
+
});
|
|
59
|
+
const { errorInfos, footerInfo, safeLinks, safeLinksMessage } = schema;
|
|
60
|
+
const statusCode = computed(() => {
|
|
61
|
+
const code = data.value?.data?.status ?? data.value?.statusCode ?? 999;
|
|
62
|
+
return code === 999 ? "APP" : code;
|
|
63
|
+
});
|
|
64
|
+
const errorInfo = computed(() => errorInfos[`${statusCode.value}`] ?? errorInfos["999"]);
|
|
65
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<IconField>
|
|
3
|
+
<InputIcon class="pi pi-search" />
|
|
4
|
+
<InputText
|
|
5
|
+
v-model="page[pageContextKey]"
|
|
6
|
+
autofocus
|
|
7
|
+
:placeholder="placeholder ? l(placeholder) : undefined"
|
|
8
|
+
/>
|
|
9
|
+
</IconField>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { IconField, InputIcon, InputText } from "primevue";
|
|
14
|
+
import { useContext, useLocalization } from "#imports";
|
|
15
|
+
const context = useContext();
|
|
16
|
+
const { localize: l } = useLocalization();
|
|
17
|
+
const { schema } = defineProps({
|
|
18
|
+
schema: { type: null, required: true },
|
|
19
|
+
data: { type: null, required: true }
|
|
20
|
+
});
|
|
21
|
+
const { placeholder, pageContextKey } = schema;
|
|
22
|
+
const page = context.injectPage();
|
|
23
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<header
|
|
3
|
+
:class="{ 'mb-4': shown || loading }"
|
|
4
|
+
class="mt-4"
|
|
5
|
+
>
|
|
6
|
+
<Skeleton
|
|
7
|
+
v-if="loading"
|
|
8
|
+
height="1.28rem"
|
|
9
|
+
width="15rem"
|
|
10
|
+
/>
|
|
11
|
+
<Breadcrumb
|
|
12
|
+
v-else-if="data && shown"
|
|
13
|
+
:home="sitemap['/']"
|
|
14
|
+
:model="parts"
|
|
15
|
+
class="!bg-inherit text-sm !p-0"
|
|
16
|
+
>
|
|
17
|
+
<template #item="{ item }">
|
|
18
|
+
<RouterLink
|
|
19
|
+
:to="item.route"
|
|
20
|
+
class="p-breadcrumb-item-link"
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
v-if="item.icon"
|
|
24
|
+
:class="[item.icon, 'p-breadcrumb-item-icon']"
|
|
25
|
+
/>
|
|
26
|
+
<span
|
|
27
|
+
v-if="item.title"
|
|
28
|
+
class="p-breadcrumb-item-label max-sm:truncate"
|
|
29
|
+
>{{ l(item.title) }}</span>
|
|
30
|
+
</RouterLink>
|
|
31
|
+
</template>
|
|
32
|
+
</Breadcrumb>
|
|
33
|
+
</header>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup>
|
|
37
|
+
import { computed } from "vue";
|
|
38
|
+
import { RouterLink } from "vue-router";
|
|
39
|
+
import { Breadcrumb, Skeleton } from "primevue";
|
|
40
|
+
import { useContext, useLocalization } from "#imports";
|
|
41
|
+
const context = useContext();
|
|
42
|
+
const { localize: l } = useLocalization();
|
|
43
|
+
const { schema, data } = defineProps({
|
|
44
|
+
schema: { type: null, required: true },
|
|
45
|
+
data: { type: null, required: true }
|
|
46
|
+
});
|
|
47
|
+
const { sitemap } = schema;
|
|
48
|
+
const loading = context.injectLoading();
|
|
49
|
+
const parts = computed(() => {
|
|
50
|
+
if (!data) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
const result = [];
|
|
54
|
+
let page = findItem(data.path);
|
|
55
|
+
while (page) {
|
|
56
|
+
result.splice(0, 0, page);
|
|
57
|
+
page = findItem(page.parentRoute);
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
});
|
|
61
|
+
const shown = computed(() => data?.path !== "/" && parts.value.length > 0);
|
|
62
|
+
function findItem(route) {
|
|
63
|
+
if (sitemap[route]) {
|
|
64
|
+
return sitemap[route];
|
|
65
|
+
}
|
|
66
|
+
for (const key in sitemap) {
|
|
67
|
+
const expression = key.replaceAll(/[{][\w\d\-:]*[}]/g, "[\\w\\d\\-]*");
|
|
68
|
+
const matcher = new RegExp(`^${expression}$`, "g");
|
|
69
|
+
if (matcher.test(route)) {
|
|
70
|
+
return {
|
|
71
|
+
...sitemap[key],
|
|
72
|
+
route
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
;
|
|
77
|
+
}
|
|
78
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<i
|
|
3
|
+
class="pi"
|
|
4
|
+
:class="iconClass"
|
|
5
|
+
/>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script setup>
|
|
9
|
+
const { schema } = defineProps({
|
|
10
|
+
schema: { type: null, required: true },
|
|
11
|
+
data: { type: null, default: null }
|
|
12
|
+
});
|
|
13
|
+
const { iconClass } = schema;
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<Button
|
|
4
|
+
v-tooltip="{
|
|
5
|
+
value: lc('Languages'),
|
|
6
|
+
showDelay: 300,
|
|
7
|
+
class: 'max-md:!hidden 2xl:!hidden'
|
|
8
|
+
}"
|
|
9
|
+
:pt="{
|
|
10
|
+
label: { class: 'hidden max-md:inline 2xl:inline' }
|
|
11
|
+
}"
|
|
12
|
+
class="
|
|
13
|
+
py-3 px-4 gap-4 justify-start
|
|
14
|
+
max-md:w-full max-md:py-2
|
|
15
|
+
2xl:w-full 2xl:py-2
|
|
16
|
+
"
|
|
17
|
+
type="button"
|
|
18
|
+
size="large"
|
|
19
|
+
severity="secondary"
|
|
20
|
+
aria-haspopup="true"
|
|
21
|
+
aria-controls="overlay_menu"
|
|
22
|
+
:text="true"
|
|
23
|
+
:icon="'pi pi-language'"
|
|
24
|
+
:label="lc('Languages')"
|
|
25
|
+
@click="toggle"
|
|
26
|
+
/>
|
|
27
|
+
<Menu
|
|
28
|
+
id="overlay_menu"
|
|
29
|
+
ref="menu"
|
|
30
|
+
:model
|
|
31
|
+
:popup="true"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup>
|
|
37
|
+
import { computed, ref } from "vue";
|
|
38
|
+
import { Button, Menu } from "primevue";
|
|
39
|
+
import { useLocalization } from "#imports";
|
|
40
|
+
const { locale, getLocales, setLocale, localize: l } = useLocalization();
|
|
41
|
+
const { localize: lc } = useLocalization({ group: "LanguageSwitcher" });
|
|
42
|
+
defineProps({
|
|
43
|
+
schema: { type: null, required: true },
|
|
44
|
+
data: { type: null, default: null }
|
|
45
|
+
});
|
|
46
|
+
const menu = ref();
|
|
47
|
+
const model = computed(
|
|
48
|
+
() => getLocales().map((currentLocale) => ({
|
|
49
|
+
label: `${l(currentLocale.name)} (${currentLocale.code.toUpperCase()})`,
|
|
50
|
+
class: locale.value === currentLocale.code ? "opacity-50" : "",
|
|
51
|
+
command: () => setLocale(currentLocale.code)
|
|
52
|
+
}))
|
|
53
|
+
);
|
|
54
|
+
function toggle(event) {
|
|
55
|
+
menu.value.toggle(event);
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: ((props: {}) => any) | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Toast
|
|
3
|
+
:pt="{ root: 'z-20' }"
|
|
4
|
+
position="top-center"
|
|
5
|
+
/>
|
|
6
|
+
<Bake
|
|
7
|
+
:key="descriptor.type"
|
|
8
|
+
name="root"
|
|
9
|
+
:descriptor="descriptor"
|
|
10
|
+
>
|
|
11
|
+
<slot />
|
|
12
|
+
</Bake>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup>
|
|
16
|
+
import { ref, watch } from "vue";
|
|
17
|
+
import { useRoute } from "#app";
|
|
18
|
+
import { Toast } from "primevue";
|
|
19
|
+
import { useLayouts, usePages } from "#imports";
|
|
20
|
+
import { Bake } from "#components";
|
|
21
|
+
const route = useRoute();
|
|
22
|
+
const layouts = useLayouts();
|
|
23
|
+
const pages = usePages();
|
|
24
|
+
const descriptor = ref(await findLayout(route.params.baked?.[0]));
|
|
25
|
+
watch(
|
|
26
|
+
() => route.params.baked?.[0],
|
|
27
|
+
async (newPageName, oldPageName) => {
|
|
28
|
+
if (newPageName === oldPageName) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
descriptor.value = await findLayout(newPageName);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
async function findLayout(pageName) {
|
|
35
|
+
const pageDescriptor = await pages.fetch(pageName || "index", { throwNotFound: false });
|
|
36
|
+
return await layouts.fetch(pageDescriptor?.schema?.layout || "default");
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: ((props: {}) => any) | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
src: any;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_props: {
|
|
8
|
+
readonly src: any;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="mx-auto">
|
|
3
|
+
<img
|
|
4
|
+
:src="`/${src}`"
|
|
5
|
+
class="h-8 dark:hidden"
|
|
6
|
+
>
|
|
7
|
+
<img
|
|
8
|
+
:src="`/dark--${src}`"
|
|
9
|
+
class="h-8 hidden dark:block"
|
|
10
|
+
>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup>
|
|
15
|
+
defineProps({
|
|
16
|
+
src: { type: null, required: true }
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
src: any;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_props: {
|
|
8
|
+
readonly src: any;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof __VLS_props>;
|
|
5
|
+
schema: any;
|
|
6
|
+
data: any;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_props: {
|
|
9
|
+
readonly schema: any;
|
|
10
|
+
readonly data: any;
|
|
11
|
+
};
|