@poveste/app 0.1.3 → 0.2.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/dist/app/style/floating.pcss +4 -4
- package/dist/app/style/main.pcss +2 -2
- package/dist/app/style/sandbox.css +1 -1
- package/dist/bundle-main.js +2 -0
- package/dist/bundled/App.vue2.js +81 -37
- package/dist/bundled/app.css +51 -46
- package/dist/bundled/components/HomeView.vue2.js +3 -3
- package/dist/bundled/components/app/AppActions.vue.js +5 -0
- package/dist/bundled/components/app/AppActions.vue2.js +76 -0
- package/dist/bundled/components/app/AppHeader.vue2.js +5 -47
- package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue2.js +9 -9
- package/dist/bundled/components/app/HomeCounter.vue2.js +5 -5
- package/dist/bundled/components/app/InitialLoading.vue2.js +5 -5
- package/dist/bundled/components/app/MobileOverlay.vue2.js +5 -5
- package/dist/bundled/components/app/TopBar.vue.js +5 -0
- package/dist/bundled/components/app/TopBar.vue2.js +73 -0
- package/dist/bundled/components/app/TopBarChip.vue.js +13 -0
- package/dist/bundled/components/app/TopBarChipItem.vue.js +13 -0
- package/dist/bundled/components/base/BaseButton.vue2.js +3 -3
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +8 -8
- package/dist/bundled/components/base/BaseEmpty.vue.js +2 -2
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
- package/dist/bundled/components/base/BaseListItem.vue2.js +2 -2
- package/dist/bundled/components/base/BaseListItemLink.vue.js +2 -2
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +4 -4
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +3 -3
- package/dist/bundled/components/base/BaseSelect.vue2.js +6 -6
- package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +20 -16
- package/dist/bundled/components/base/BaseTab.vue.js +3 -3
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +5 -5
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +3 -3
- package/dist/bundled/components/command/PromptSelect.vue2.js +12 -12
- package/dist/bundled/components/command/PromptText.vue2.js +4 -4
- package/dist/bundled/components/layout/LayoutItem.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutItem.vue2.js +44 -0
- package/dist/bundled/components/layout/LayoutItemGroup.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutItemGroup.vue2.js +25 -0
- package/dist/bundled/components/layout/LayoutModal.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutModal.vue2.js +68 -0
- package/dist/bundled/components/layout/LayoutPane.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutPane.vue2.js +59 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +2 -2
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +4 -4
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +2 -2
- package/dist/bundled/components/panel/PaneTabs.vue2.js +4 -4
- package/dist/bundled/components/panel/StatePresets.vue2.js +13 -13
- package/dist/bundled/components/panel/StoryControls.vue2.js +6 -6
- package/dist/bundled/components/panel/StoryDocs.vue2.js +4 -4
- package/dist/bundled/components/panel/StoryEvent.vue2.js +7 -7
- package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +58 -47
- package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +19 -19
- package/dist/bundled/components/search/SearchItem.vue.js +1 -1
- package/dist/bundled/components/search/SearchItem.vue2.js +3 -3
- package/dist/bundled/components/search/SearchItemContent.vue2.js +9 -9
- package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
- package/dist/bundled/components/search/SearchModal.vue2.js +3 -3
- package/dist/bundled/components/search/SearchPane.vue2.js +4 -4
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +21 -21
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +7 -26
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +36 -21
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +5 -5
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +10 -10
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +6 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +33 -8
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +8 -39
- package/dist/bundled/components/story/StoryView.vue2.js +21 -11
- package/dist/bundled/components/story/StoryViewer.vue.js +1 -1
- package/dist/bundled/components/story/StoryViewer.vue2.js +2 -2
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +13 -9
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +62 -33
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +13 -10
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +14 -14
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +13 -9
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +4 -1
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +30 -7
- package/dist/bundled/components/tree/StoryGroup.vue2.js +5 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +7 -7
- package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue2.js +8 -8
- package/dist/bundled/index.js +3 -0
- package/dist/bundled/sandbox.js +41 -15
- package/dist/bundled/stores/layout.js +16 -0
- package/dist/bundled/stores/preview-settings.js +19 -4
- package/dist/bundled/util/color-scheme.js +27 -0
- package/dist/bundled/util/const.js +2 -0
- package/dist/bundled/util/dark.js +3 -3
- package/dist/bundled/util/keyboard.js +60 -32
- package/dist/bundled/util/preview-settings.js +11 -0
- package/dist/bundled/util/tooltip.js +2 -2
- package/dist/style.css +644 -529
- package/package.json +8 -8
- package/src/app/App.vue +109 -66
- package/src/app/components/HomeView.vue +3 -3
- package/src/app/components/app/AppActions.vue +58 -0
- package/src/app/components/app/AppHeader.vue +4 -47
- package/src/app/components/app/Breadcrumb.vue +8 -8
- package/src/app/components/app/HomeCounter.vue +5 -5
- package/src/app/components/app/InitialLoading.vue +5 -5
- package/src/app/components/app/MobileOverlay.vue +5 -5
- package/src/app/components/app/TopBar.vue +60 -0
- package/src/app/components/app/TopBarChip.vue +5 -0
- package/src/app/components/app/TopBarChipItem.vue +7 -0
- package/src/app/components/base/BaseButton.vue +3 -3
- package/src/app/components/base/BaseCheckbox.vue +9 -9
- package/src/app/components/base/BaseCopyIcon.vue +1 -1
- package/src/app/components/base/BaseEmpty.vue +4 -4
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/BaseListItem.vue +3 -3
- package/src/app/components/base/BaseListItemLink.vue +3 -3
- package/src/app/components/base/BaseOverflowMenu.vue +4 -4
- package/src/app/components/base/BaseOverflowTab.vue +3 -3
- package/src/app/components/base/BaseSelect.vue +6 -6
- package/src/app/components/base/BaseSplitPane.vue +21 -16
- package/src/app/components/base/BaseTab.vue +3 -3
- package/src/app/components/base/BaseTag.vue +1 -1
- package/src/app/components/command/CommandPrompts.vue +5 -5
- package/src/app/components/command/CommandPromptsModal.vue +3 -3
- package/src/app/components/command/PromptSelect.vue +14 -14
- package/src/app/components/command/PromptText.vue +4 -4
- package/src/app/components/layout/LayoutItem.vue +36 -0
- package/src/app/components/layout/LayoutItemGroup.vue +18 -0
- package/src/app/components/layout/LayoutModal.vue +60 -0
- package/src/app/components/layout/LayoutPane.vue +45 -0
- package/src/app/components/panel/ControlsComponentPropItem.vue +2 -2
- package/src/app/components/panel/ControlsComponentProps.vue +3 -3
- package/src/app/components/panel/ControlsComponentState.vue +2 -2
- package/src/app/components/panel/PaneTabs.vue +4 -4
- package/src/app/components/panel/StatePresets.vue +13 -13
- package/src/app/components/panel/StoryControls.vue +6 -6
- package/src/app/components/panel/StoryDocs.vue +4 -4
- package/src/app/components/panel/StoryEvent.vue +7 -7
- package/src/app/components/panel/StoryEvents.vue +1 -1
- package/src/app/components/panel/StorySidePanel.vue +51 -41
- package/src/app/components/panel/StorySourceCode.vue +19 -19
- package/src/app/components/search/SearchItem.vue +2 -2
- package/src/app/components/search/SearchItemContent.vue +9 -9
- package/src/app/components/search/SearchLoading.vue +2 -2
- package/src/app/components/search/SearchModal.vue +3 -3
- package/src/app/components/search/SearchPane.vue +4 -4
- package/src/app/components/story/StoryResponsivePreview.vue +27 -27
- package/src/app/components/story/StoryVariantGrid.vue +5 -24
- package/src/app/components/story/StoryVariantGridItem.vue +36 -17
- package/src/app/components/story/StoryVariantListItem.vue +4 -4
- package/src/app/components/story/StoryVariantSingle.vue +9 -9
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +37 -7
- package/src/app/components/story/StoryVariantSingleView.vue +1 -34
- package/src/app/components/story/StoryView.vue +23 -8
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +5 -4
- package/src/app/components/toolbar/ToolbarBackground.vue +62 -25
- package/src/app/components/toolbar/ToolbarNewTab.vue +5 -4
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +15 -15
- package/src/app/components/toolbar/ToolbarTextDirection.vue +5 -4
- package/src/app/components/toolbar/ToolbarTitle.vue +32 -8
- package/src/app/components/tree/StoryGroup.vue +5 -5
- package/src/app/components/tree/StoryList.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +6 -6
- package/src/app/components/tree/StoryListItem.vue +6 -6
- package/src/app/index.ts +3 -0
- package/src/app/sandbox.ts +59 -15
- package/src/app/stores/layout.ts +22 -0
- package/src/app/stores/preview-settings.ts +26 -2
- package/src/app/style/floating.pcss +4 -4
- package/src/app/style/main.pcss +2 -2
- package/src/app/style/sandbox.css +1 -1
- package/src/app/types.ts +49 -0
- package/src/app/util/color-scheme.ts +36 -0
- package/src/app/util/const.ts +1 -0
- package/src/app/util/dark.ts +3 -3
- package/src/app/util/keyboard.ts +65 -32
- package/src/app/util/preview-settings.ts +16 -0
- package/src/app/util/tooltip.ts +2 -2
- package/src/bundle-main.js +2 -0
- package/src/shim.d.ts +2 -2
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.v-popper--theme-dropdown {
|
|
8
|
-
.
|
|
8
|
+
.ptw-dark & {
|
|
9
9
|
.v-popper__inner {
|
|
10
|
-
@apply
|
|
10
|
+
@apply ptw-bg-gray-700 ptw-border-gray-850 ptw-text-gray-100;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.v-popper__arrow-inner {
|
|
14
|
-
@apply
|
|
14
|
+
@apply ptw-border-gray-700;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.v-popper__arrow-outer {
|
|
18
|
-
@apply
|
|
18
|
+
@apply ptw-border-gray-850;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
package/dist/app/style/main.pcss
CHANGED
|
@@ -73,7 +73,7 @@ button {
|
|
|
73
73
|
background: transparent !important;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.
|
|
76
|
+
.ptw-prose {
|
|
77
77
|
h1, h2, h3, h4 {
|
|
78
78
|
&:not(:hover) {
|
|
79
79
|
.header-anchor[aria-hidden="true"] {
|
|
@@ -93,7 +93,7 @@ button {
|
|
|
93
93
|
background-repeat: no-repeat;
|
|
94
94
|
background-position: right;
|
|
95
95
|
|
|
96
|
-
.
|
|
96
|
+
.ptw-dark & {
|
|
97
97
|
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
|
|
98
98
|
}
|
|
99
99
|
}
|
package/dist/bundle-main.js
CHANGED
package/dist/bundled/App.vue2.js
CHANGED
|
@@ -1,36 +1,51 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
|
|
2
2
|
import { useTitle } from "@poveste/vendors/vue-use";
|
|
3
3
|
import { files, tree, onUpdate } from "virtual:$poveste-stories";
|
|
4
|
+
import "./components/app/AppActions.vue.js";
|
|
4
5
|
import "./components/app/AppHeader.vue.js";
|
|
5
6
|
import Breadcrumb from "./components/app/Breadcrumb.vue.js";
|
|
6
7
|
import "./components/app/InitialLoading.vue.js";
|
|
8
|
+
import "./components/app/TopBar.vue.js";
|
|
7
9
|
import BaseSplitPane from "./components/base/BaseSplitPane.vue.js";
|
|
8
10
|
import "./components/command/CommandPromptsModal.vue.js";
|
|
11
|
+
import "./components/layout/LayoutModal.vue.js";
|
|
9
12
|
import "./components/search/SearchModal.vue.js";
|
|
10
13
|
import "./components/story/GenericMountStory.vue.js";
|
|
11
14
|
import "./components/tree/StoryList.vue.js";
|
|
12
15
|
import { useCommandStore } from "./stores/command.js";
|
|
16
|
+
import { useLayoutStore } from "./stores/layout.js";
|
|
13
17
|
import { useStoryStore } from "./stores/story.js";
|
|
14
18
|
import { povesteConfig } from "./util/config.js";
|
|
19
|
+
import { toggleDark } from "./util/dark.js";
|
|
15
20
|
import { onKeyboardShortcut } from "./util/keyboard.js";
|
|
16
21
|
import { mapFile } from "./util/mapping.js";
|
|
17
22
|
import { isMobile } from "./util/responsive.js";
|
|
18
23
|
import _sfc_main$1 from "./components/story/GenericMountStory.vue2.js";
|
|
19
24
|
import _sfc_main$2 from "./components/app/AppHeader.vue2.js";
|
|
20
|
-
import _sfc_main$3 from "./components/
|
|
21
|
-
import _sfc_main$4 from "./components/
|
|
22
|
-
import _sfc_main$5 from "./components/
|
|
23
|
-
import _sfc_main$6 from "./components/
|
|
25
|
+
import _sfc_main$3 from "./components/app/AppActions.vue2.js";
|
|
26
|
+
import _sfc_main$4 from "./components/app/TopBar.vue2.js";
|
|
27
|
+
import _sfc_main$5 from "./components/tree/StoryList.vue2.js";
|
|
28
|
+
import _sfc_main$6 from "./components/layout/LayoutModal.vue2.js";
|
|
29
|
+
import _sfc_main$7 from "./components/search/SearchModal.vue2.js";
|
|
30
|
+
import _sfc_main$8 from "./components/command/CommandPromptsModal.vue2.js";
|
|
31
|
+
import _sfc_main$9 from "./components/app/InitialLoading.vue2.js";
|
|
24
32
|
"use strict";
|
|
25
|
-
const _hoisted_1 = {
|
|
33
|
+
const _hoisted_1 = { class: "poveste-app-root ptw-h-full" };
|
|
34
|
+
const _hoisted_2 = {
|
|
26
35
|
key: 0,
|
|
27
|
-
class: "poveste-app
|
|
36
|
+
class: "poveste-app ptw-hidden"
|
|
28
37
|
};
|
|
29
|
-
const
|
|
38
|
+
const _hoisted_3 = {
|
|
30
39
|
key: 0,
|
|
31
|
-
class: "
|
|
40
|
+
class: "ptw-h-full ptw-flex ptw-flex-col ptw-divide-y ptw-divide-gray-100 dark:ptw-divide-gray-800"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_4 = { class: "ptw-flex ptw-items-center ptw-gap-2 ptw-pr-4" };
|
|
43
|
+
const _hoisted_5 = { class: "ptw-flex ptw-flex-col ptw-h-full ptw-bg-gray-100 dark:ptw-bg-gray-750 __poveste-pane-shadow-from-right" };
|
|
44
|
+
const _hoisted_6 = { class: "ptw-flex ptw-flex-col ptw-h-full" };
|
|
45
|
+
const _hoisted_7 = {
|
|
46
|
+
key: 2,
|
|
47
|
+
class: "ptw-h-full ptw-flex ptw-flex-col"
|
|
32
48
|
};
|
|
33
|
-
const _hoisted_3 = { class: "htw-flex htw-flex-col htw-h-full htw-bg-gray-100 dark:htw-bg-gray-750 __poveste-pane-shadow-from-right" };
|
|
34
49
|
const __default__ = {
|
|
35
50
|
name: "PovesteApp"
|
|
36
51
|
};
|
|
@@ -69,6 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
84
|
}));
|
|
70
85
|
const loadSearch = ref(false);
|
|
71
86
|
const isSearchOpen = ref(false);
|
|
87
|
+
const isLayoutOpen = ref(false);
|
|
72
88
|
watch(isSearchOpen, (value) => {
|
|
73
89
|
if (value) {
|
|
74
90
|
loadSearch.value = true;
|
|
@@ -78,6 +94,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
94
|
isSearchOpen.value = true;
|
|
79
95
|
event.preventDefault();
|
|
80
96
|
});
|
|
97
|
+
onKeyboardShortcut(["ctrl+shift+l", "meta+shift+l"], (event) => {
|
|
98
|
+
isLayoutOpen.value = !isLayoutOpen.value;
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
});
|
|
101
|
+
onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
|
|
102
|
+
event.preventDefault();
|
|
103
|
+
toggleDark();
|
|
104
|
+
});
|
|
81
105
|
const loading = ref(false);
|
|
82
106
|
if (import.meta.hot && !files.length) {
|
|
83
107
|
loading.value = true;
|
|
@@ -90,75 +114,95 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
114
|
mounted.value = true;
|
|
91
115
|
});
|
|
92
116
|
const commandStore = useCommandStore();
|
|
117
|
+
const layoutStore = useLayoutStore();
|
|
93
118
|
return (_ctx, _cache) => {
|
|
94
119
|
const _component_RouterView = resolveComponent("RouterView");
|
|
95
|
-
return openBlock(), createElementBlock(
|
|
96
|
-
unref(storyStore).currentStory ? (openBlock(), createElementBlock("div",
|
|
120
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
121
|
+
unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
97
122
|
(openBlock(), createBlock(_sfc_main$1, {
|
|
98
123
|
key: unref(storyStore).currentStory.id,
|
|
99
124
|
story: unref(storyStore).currentStory
|
|
100
125
|
}, null, 8, ["story"]))
|
|
101
126
|
])) : createCommentVNode("", true),
|
|
102
127
|
createElementVNode("div", {
|
|
103
|
-
class: "
|
|
128
|
+
class: "ptw-h-screen ptw-bg-gray-100 dark:ptw-bg-gray-750 dark:ptw-text-gray-100",
|
|
104
129
|
style: normalizeStyle({
|
|
105
130
|
// Prevent flash of content
|
|
106
131
|
opacity: mounted.value ? 1 : 0
|
|
107
132
|
})
|
|
108
133
|
}, [
|
|
109
|
-
unref(isMobile) ? (openBlock(), createElementBlock("div",
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
134
|
+
unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
135
|
+
createElementVNode("div", _hoisted_4, [
|
|
136
|
+
createVNode(_sfc_main$2, { class: "ptw-flex-1" }),
|
|
137
|
+
createVNode(_sfc_main$3, {
|
|
138
|
+
class: "ptw-flex-none",
|
|
139
|
+
onLayout: _cache[0] || (_cache[0] = ($event) => isLayoutOpen.value = true),
|
|
140
|
+
onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
113
143
|
createVNode(Breadcrumb, {
|
|
114
144
|
tree: tree$1.value,
|
|
115
145
|
stories: stories.value
|
|
116
146
|
}, null, 8, ["tree", "stories"]),
|
|
117
|
-
createVNode(_component_RouterView, { class: "
|
|
118
|
-
])) : (openBlock(), createBlock(BaseSplitPane, {
|
|
147
|
+
createVNode(_component_RouterView, { class: "ptw-grow" })
|
|
148
|
+
])) : unref(layoutStore).settings.storyListVisible ? (openBlock(), createBlock(BaseSplitPane, {
|
|
119
149
|
key: 1,
|
|
120
150
|
"save-id": "main-horiz",
|
|
121
151
|
min: 5,
|
|
122
152
|
max: 50,
|
|
123
153
|
"default-split": 15,
|
|
124
|
-
class: "
|
|
154
|
+
class: "ptw-h-full"
|
|
125
155
|
}, {
|
|
126
156
|
first: withCtx(() => [
|
|
127
|
-
createElementVNode("div",
|
|
128
|
-
createVNode(_sfc_main$2, {
|
|
129
|
-
|
|
130
|
-
onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
|
|
131
|
-
}),
|
|
132
|
-
createVNode(_sfc_main$3, {
|
|
157
|
+
createElementVNode("div", _hoisted_5, [
|
|
158
|
+
createVNode(_sfc_main$2, { class: "ptw-flex-none" }),
|
|
159
|
+
createVNode(_sfc_main$5, {
|
|
133
160
|
tree: tree$1.value,
|
|
134
161
|
stories: stories.value,
|
|
135
|
-
class: "
|
|
162
|
+
class: "ptw-flex-1"
|
|
136
163
|
}, null, 8, ["tree", "stories"])
|
|
137
164
|
])
|
|
138
165
|
]),
|
|
139
166
|
last: withCtx(() => [
|
|
140
|
-
|
|
167
|
+
createElementVNode("div", _hoisted_6, [
|
|
168
|
+
createVNode(_sfc_main$4, {
|
|
169
|
+
onLayout: _cache[2] || (_cache[2] = ($event) => isLayoutOpen.value = true),
|
|
170
|
+
onSearch: _cache[3] || (_cache[3] = ($event) => isSearchOpen.value = true)
|
|
171
|
+
}),
|
|
172
|
+
createVNode(_component_RouterView, { class: "ptw-flex-1 ptw-min-h-0" })
|
|
173
|
+
])
|
|
141
174
|
]),
|
|
142
175
|
_: 1
|
|
143
|
-
})),
|
|
144
|
-
|
|
145
|
-
|
|
176
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
177
|
+
createVNode(_sfc_main$4, {
|
|
178
|
+
onLayout: _cache[4] || (_cache[4] = ($event) => isLayoutOpen.value = true),
|
|
179
|
+
onSearch: _cache[5] || (_cache[5] = ($event) => isSearchOpen.value = true)
|
|
180
|
+
}),
|
|
181
|
+
createVNode(_component_RouterView, { class: "ptw-flex-1 ptw-min-h-0" })
|
|
182
|
+
])),
|
|
183
|
+
!unref(isMobile) ? (openBlock(), createBlock(_sfc_main$6, {
|
|
184
|
+
key: 3,
|
|
185
|
+
shown: isLayoutOpen.value,
|
|
186
|
+
onClose: _cache[6] || (_cache[6] = ($event) => isLayoutOpen.value = false)
|
|
187
|
+
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
188
|
+
loadSearch.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
189
|
+
key: 4,
|
|
146
190
|
shown: isSearchOpen.value,
|
|
147
|
-
onClose: _cache[
|
|
191
|
+
onClose: _cache[7] || (_cache[7] = ($event) => isSearchOpen.value = false)
|
|
148
192
|
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
149
|
-
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$
|
|
150
|
-
key:
|
|
193
|
+
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$8, {
|
|
194
|
+
key: 5,
|
|
151
195
|
shown: unref(commandStore).showPromptsModal,
|
|
152
|
-
onClose: _cache[
|
|
196
|
+
onClose: _cache[8] || (_cache[8] = ($event) => unref(commandStore).showPromptsModal = false)
|
|
153
197
|
}, null, 8, ["shown"])) : createCommentVNode("", true)
|
|
154
198
|
], 4),
|
|
155
199
|
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
156
200
|
default: withCtx(() => [
|
|
157
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$
|
|
201
|
+
loading.value ? (openBlock(), createBlock(_sfc_main$9, { key: 0 })) : createCommentVNode("", true)
|
|
158
202
|
]),
|
|
159
203
|
_: 1
|
|
160
204
|
})
|
|
161
|
-
]
|
|
205
|
+
]);
|
|
162
206
|
};
|
|
163
207
|
}
|
|
164
208
|
});
|
package/dist/bundled/app.css
CHANGED
|
@@ -1,52 +1,63 @@
|
|
|
1
1
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
2
|
-
.bind-tree-margin[data-v-
|
|
3
|
-
margin-left: var(--
|
|
2
|
+
.bind-tree-margin[data-v-8b5cda46] {
|
|
3
|
+
margin-left: var(--v09275fa8);
|
|
4
4
|
}
|
|
5
|
-
.bind-icon-color[data-v-
|
|
6
|
-
color: var(--
|
|
5
|
+
.bind-icon-color[data-v-8b5cda46] {
|
|
6
|
+
color: var(--v8627d038);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
10
|
-
.bind-tree-padding[data-v-
|
|
11
|
-
padding-left: var(--
|
|
10
|
+
.bind-tree-padding[data-v-5a91a083] {
|
|
11
|
+
padding-left: var(--v32f93782);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
15
|
-
.bind-icon-color[data-v-
|
|
16
|
-
color: var(--
|
|
15
|
+
.bind-icon-color[data-v-b1aa3e2c] {
|
|
16
|
+
color: var(--v3db71ace);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
20
|
-
.
|
|
20
|
+
.bind-preview-bg[data-v-dcd1e9e2] {
|
|
21
|
+
background-color: var(--v2708c2ed);
|
|
22
|
+
color: var(--v4a6df57e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
26
|
+
.bind-icon-color[data-v-ced59894] {
|
|
27
|
+
color: var(--b13fe2b2);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
31
|
+
.landscape > div > .dragger[data-v-02634f87] {
|
|
21
32
|
width: .625rem;
|
|
22
33
|
}
|
|
23
|
-
.portrait > div > .dragger[data-v-
|
|
34
|
+
.portrait > div > .dragger[data-v-02634f87] {
|
|
24
35
|
height: .625rem;
|
|
25
36
|
}
|
|
26
|
-
.landscape > div > .dragger.dragger-offset-before[data-v-
|
|
37
|
+
.landscape > div > .dragger.dragger-offset-before[data-v-02634f87] {
|
|
27
38
|
right: 0;
|
|
28
39
|
}
|
|
29
|
-
.portrait > div > .dragger.dragger-offset-before[data-v-
|
|
40
|
+
.portrait > div > .dragger.dragger-offset-before[data-v-02634f87] {
|
|
30
41
|
bottom: 0;
|
|
31
42
|
}
|
|
32
|
-
.landscape > div > .dragger.dragger-offset-center[data-v-
|
|
43
|
+
.landscape > div > .dragger.dragger-offset-center[data-v-02634f87] {
|
|
33
44
|
right: -.3125rem;
|
|
34
45
|
}
|
|
35
|
-
.portrait > div > .dragger.dragger-offset-center[data-v-
|
|
46
|
+
.portrait > div > .dragger.dragger-offset-center[data-v-02634f87] {
|
|
36
47
|
bottom: -.3125rem;
|
|
37
48
|
}
|
|
38
|
-
.landscape > div > .dragger.dragger-offset-after[data-v-
|
|
49
|
+
.landscape > div > .dragger.dragger-offset-after[data-v-02634f87] {
|
|
39
50
|
right: -.625rem;
|
|
40
51
|
}
|
|
41
|
-
.portrait > div > .dragger.dragger-offset-after[data-v-
|
|
52
|
+
.portrait > div > .dragger.dragger-offset-after[data-v-02634f87] {
|
|
42
53
|
bottom: -.625rem;
|
|
43
54
|
}
|
|
44
55
|
}
|
|
45
56
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
46
|
-
.
|
|
47
|
-
animation:
|
|
57
|
+
.ptw-base-empty[data-v-176506c5]:not(.no-animation) {
|
|
58
|
+
animation: ptw-base-empty-176506c5 .15s .2s both;
|
|
48
59
|
}
|
|
49
|
-
@keyframes
|
|
60
|
+
@keyframes ptw-base-empty-176506c5 {
|
|
50
61
|
0% {
|
|
51
62
|
opacity: 0;
|
|
52
63
|
}
|
|
@@ -56,52 +67,46 @@
|
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
59
|
-
.__poveste-code-placeholder[data-v-
|
|
70
|
+
.__poveste-code-placeholder[data-v-5ee6b7f7] {
|
|
60
71
|
color: inherit;
|
|
61
72
|
font-size: inherit;
|
|
62
73
|
}
|
|
63
74
|
}
|
|
64
75
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
65
|
-
.
|
|
66
|
-
background
|
|
67
|
-
|
|
76
|
+
.__poveste-hatched-pattern[data-v-c1be54fa] {
|
|
77
|
+
background: repeating-linear-gradient(135deg,
|
|
78
|
+
transparent 0px,
|
|
79
|
+
transparent 32px,
|
|
80
|
+
currentColor 32px,
|
|
81
|
+
currentColor 64px);
|
|
68
82
|
}
|
|
69
83
|
}
|
|
70
84
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
71
|
-
.bind-
|
|
72
|
-
color: var(--
|
|
73
|
-
}
|
|
74
|
-
.bind-preview-bg[data-v-a3dc7302] {
|
|
75
|
-
background-color: var(--v960da962);
|
|
85
|
+
.bind-preview-bg[data-v-996dc779] {
|
|
86
|
+
background-color: var(--v2ebc4fb8);
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
89
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
79
|
-
.bind-icon-color[data-v-
|
|
80
|
-
color: var(--
|
|
81
|
-
}
|
|
90
|
+
.bind-icon-color[data-v-42097cb5] {
|
|
91
|
+
color: var(--v087cd7b6);
|
|
82
92
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
background: repeating-linear-gradient(135deg,
|
|
86
|
-
transparent 0px,
|
|
87
|
-
transparent 32px,
|
|
88
|
-
currentColor 32px,
|
|
89
|
-
currentColor 64px);
|
|
93
|
+
.bind-preview-bg[data-v-42097cb5] {
|
|
94
|
+
background-color: var(--v6d9d16a6);
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
93
|
-
.bind-
|
|
94
|
-
|
|
98
|
+
.bind-icon-color[data-v-363b3d4f] {
|
|
99
|
+
color: var(--v3223e976);
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
98
|
-
.bind-icon-color[data-v-
|
|
99
|
-
color: var(--
|
|
103
|
+
.bind-icon-color[data-v-ca14569e] {
|
|
104
|
+
color: var(--fcfb0a0c);
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
103
|
-
.bind-icon-color[data-v-
|
|
104
|
-
color: var(--
|
|
108
|
+
.bind-icon-color[data-v-14c2dacd] {
|
|
109
|
+
color: var(--e0c29708);
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
@@ -110,7 +115,7 @@ img.colorize-black[data-v-f632abed] {
|
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
113
|
-
.bind-icon-color[data-v-
|
|
114
|
-
color: var(--
|
|
118
|
+
.bind-icon-color[data-v-81e4dd33] {
|
|
119
|
+
color: var(--dacfd852);
|
|
115
120
|
}
|
|
116
121
|
}
|
|
@@ -5,9 +5,9 @@ import { customLogos, povesteConfig } from "../util/config.js";
|
|
|
5
5
|
import "./app/HomeCounter.vue.js";
|
|
6
6
|
import _sfc_main$1 from "./app/HomeCounter.vue2.js";
|
|
7
7
|
"use strict";
|
|
8
|
-
const _hoisted_1 = { class: "poveste-home-view
|
|
8
|
+
const _hoisted_1 = { class: "poveste-home-view ptw-flex md:ptw-flex-col ptw-gap-12 ptw-items-center ptw-justify-center ptw-h-full" };
|
|
9
9
|
const _hoisted_2 = ["src"];
|
|
10
|
-
const _hoisted_3 = { class: "
|
|
10
|
+
const _hoisted_3 = { class: "ptw-flex !md:ptw-flex-col ptw-flex-wrap ptw-justify-evenly ptw-gap-2 ptw-px-4 ptw-py-2 ptw-bg-gray-100 dark:ptw-bg-gray-750 ptw-rounded ptw-border ptw-border-gray-500/30" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "HomeView",
|
|
13
13
|
setup(__props) {
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
createElementVNode("img", {
|
|
39
39
|
src: logoUrl.value,
|
|
40
40
|
alt: "Logo",
|
|
41
|
-
class: "
|
|
41
|
+
class: "ptw-w-64 ptw-h-64 ptw-opacity-25 ptw-mb-8 ptw-hidden md:ptw-block"
|
|
42
42
|
}, null, 8, _hoisted_2),
|
|
43
43
|
createElementVNode("div", _hoisted_3, [
|
|
44
44
|
createVNode(_sfc_main$1, {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveDirective, createBlock, openBlock, withCtx, withDirectives, createCommentVNode, unref, createVNode } from "@poveste/vendors/vue";
|
|
2
|
+
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
+
import { povesteConfig } from "../../util/config.js";
|
|
4
|
+
import { isDark, toggleDark } from "../../util/dark.js";
|
|
5
|
+
import { isMobile } from "../../util/responsive.js";
|
|
6
|
+
import { makeTooltip } from "../../util/tooltip.js";
|
|
7
|
+
import TopBarChip from "./TopBarChip.vue.js";
|
|
8
|
+
import TopBarChipItem from "./TopBarChipItem.vue.js";
|
|
9
|
+
"use strict";
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "AppActions",
|
|
12
|
+
emits: {
|
|
13
|
+
search: () => true,
|
|
14
|
+
layout: () => true
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const themeIcon = computed(() => {
|
|
18
|
+
return isDark.value ? "carbon:moon" : "carbon:sun";
|
|
19
|
+
});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
const _directive_tooltip = resolveDirective("tooltip");
|
|
22
|
+
return openBlock(), createBlock(TopBarChip, null, {
|
|
23
|
+
default: withCtx(() => [
|
|
24
|
+
!unref(isMobile) ? withDirectives((openBlock(), createBlock(TopBarChipItem, {
|
|
25
|
+
key: 0,
|
|
26
|
+
"aria-label": "Open layout customization",
|
|
27
|
+
"data-test-id": "layout-btn",
|
|
28
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layout"))
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [
|
|
31
|
+
createVNode(unref(Icon), {
|
|
32
|
+
icon: "carbon:panel-expansion",
|
|
33
|
+
class: "ptw-w-4 ptw-h-4"
|
|
34
|
+
})
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
})), [
|
|
38
|
+
[_directive_tooltip, unref(makeTooltip)("Layout", ({ isMac }) => isMac ? "meta+shift+l" : "ctrl+shift+l")]
|
|
39
|
+
]) : createCommentVNode("", true),
|
|
40
|
+
withDirectives((openBlock(), createBlock(TopBarChipItem, {
|
|
41
|
+
"data-test-id": "search-btn",
|
|
42
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("search"))
|
|
43
|
+
}, {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
createVNode(unref(Icon), {
|
|
46
|
+
icon: "carbon:search",
|
|
47
|
+
class: "ptw-w-4 ptw-h-4"
|
|
48
|
+
})
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
})), [
|
|
52
|
+
[_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
|
|
53
|
+
]),
|
|
54
|
+
!unref(povesteConfig).theme.hideColorSchemeSwitch ? withDirectives((openBlock(), createBlock(TopBarChipItem, {
|
|
55
|
+
key: 1,
|
|
56
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(toggleDark)())
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createVNode(unref(Icon), {
|
|
60
|
+
icon: themeIcon.value,
|
|
61
|
+
class: "ptw-w-4 ptw-h-4"
|
|
62
|
+
}, null, 8, ["icon"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})), [
|
|
66
|
+
[_directive_tooltip, unref(makeTooltip)("Toggle dark mode", ({ isMac }) => isMac ? "meta+shift+d" : "ctrl+shift+d")]
|
|
67
|
+
]) : createCommentVNode("", true)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
_sfc_main as default
|
|
76
|
+
};
|
|
@@ -1,66 +1,24 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { Icon } from "@poveste/vendors/iconify";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, unref, createVNode } from "@poveste/vendors/vue";
|
|
3
2
|
import { povesteConfig } from "../../util/config.js";
|
|
4
|
-
import { isDark, toggleDark } from "../../util/dark.js";
|
|
5
|
-
import { onKeyboardShortcut } from "../../util/keyboard.js";
|
|
6
|
-
import { makeTooltip } from "../../util/tooltip.js";
|
|
7
3
|
import "./AppLogo.vue.js";
|
|
8
4
|
import _sfc_main$1 from "./AppLogo.vue2.js";
|
|
9
5
|
"use strict";
|
|
10
|
-
const _hoisted_1 = { class: "poveste-app-header
|
|
11
|
-
const _hoisted_2 = { class: "
|
|
6
|
+
const _hoisted_1 = { class: "poveste-app-header ptw-px-4 ptw-h-14 ptw-flex ptw-items-center ptw-gap-2" };
|
|
7
|
+
const _hoisted_2 = { class: "ptw-py-3 sm:ptw-py-4 ptw-flex-1 ptw-h-full ptw-flex ptw-items-center ptw-pr-2" };
|
|
12
8
|
const _hoisted_3 = ["href"];
|
|
13
|
-
const _hoisted_4 = { class: "htw-ml-auto htw-flex-none htw-flex" };
|
|
14
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
10
|
__name: "AppHeader",
|
|
16
|
-
emits: {
|
|
17
|
-
search: () => true
|
|
18
|
-
},
|
|
19
11
|
setup(__props) {
|
|
20
|
-
const themeIcon = computed(() => {
|
|
21
|
-
return isDark.value ? "carbon:moon" : "carbon:sun";
|
|
22
|
-
});
|
|
23
|
-
onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
|
|
24
|
-
event.preventDefault();
|
|
25
|
-
toggleDark();
|
|
26
|
-
});
|
|
27
12
|
return (_ctx, _cache) => {
|
|
28
|
-
const _directive_tooltip = resolveDirective("tooltip");
|
|
29
13
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
14
|
createElementVNode("div", _hoisted_2, [
|
|
31
15
|
createElementVNode("a", {
|
|
32
16
|
href: unref(povesteConfig).theme?.logoHref,
|
|
33
17
|
target: "_blank",
|
|
34
|
-
class: "
|
|
18
|
+
class: "ptw-w-full ptw-h-full ptw-flex ptw-items-center"
|
|
35
19
|
}, [
|
|
36
|
-
createVNode(_sfc_main$1, { class: "
|
|
20
|
+
createVNode(_sfc_main$1, { class: "ptw-max-w-full ptw-max-h-full" })
|
|
37
21
|
], 8, _hoisted_3)
|
|
38
|
-
]),
|
|
39
|
-
createElementVNode("div", _hoisted_4, [
|
|
40
|
-
withDirectives((openBlock(), createElementBlock("a", {
|
|
41
|
-
class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
|
|
42
|
-
"data-test-id": "search-btn",
|
|
43
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("search"))
|
|
44
|
-
}, [
|
|
45
|
-
createVNode(unref(Icon), {
|
|
46
|
-
icon: "carbon:search",
|
|
47
|
-
class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
|
|
48
|
-
})
|
|
49
|
-
])), [
|
|
50
|
-
[_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
|
|
51
|
-
]),
|
|
52
|
-
!unref(povesteConfig).theme.hideColorSchemeSwitch ? withDirectives((openBlock(), createElementBlock("a", {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
|
|
55
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(toggleDark)())
|
|
56
|
-
}, [
|
|
57
|
-
createVNode(unref(Icon), {
|
|
58
|
-
icon: themeIcon.value,
|
|
59
|
-
class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
|
|
60
|
-
}, null, 8, ["icon"])
|
|
61
|
-
])), [
|
|
62
|
-
[_directive_tooltip, unref(makeTooltip)("Toggle dark mode", ({ isMac }) => isMac ? "meta+shift+d" : "ctrl+shift+d")]
|
|
63
|
-
]) : createCommentVNode("", true)
|
|
64
22
|
])
|
|
65
23
|
]);
|
|
66
24
|
};
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./Breadcrumb.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1aa3e2c"]]);
|
|
6
6
|
export {
|
|
7
7
|
Breadcrumb as default
|
|
8
8
|
};
|