@poveste/app 0.1.0 → 0.1.2
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/assets/poveste-text-dark.svg +15 -0
- package/dist/app/assets/poveste-text.svg +15 -0
- package/dist/app/assets/poveste.svg +14 -0
- package/dist/app/style/main.pcss +3 -3
- package/dist/app/style/sandbox.css +1 -1
- package/dist/app/style/transitions.pcss +4 -4
- package/dist/bundled/App.vue2.js +9 -9
- package/dist/bundled/app.css +54 -54
- package/dist/bundled/assets/poveste-text-dark.svg.js +4 -0
- package/dist/bundled/assets/poveste-text.svg.js +4 -0
- package/dist/bundled/assets/poveste.svg.js +4 -0
- package/dist/bundled/components/HomeView.vue2.js +4 -4
- package/dist/bundled/components/app/AppHeader.vue2.js +4 -4
- package/dist/bundled/components/app/AppLogo.vue2.js +7 -7
- package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue2.js +2 -2
- package/dist/bundled/components/app/InitialLoading.vue2.js +3 -3
- package/dist/bundled/components/app/MobileOverlay.vue2.js +2 -2
- package/dist/bundled/components/base/BaseButton.vue2.js +1 -1
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +1 -1
- package/dist/bundled/components/base/BaseEmpty.vue.js +2 -2
- package/dist/bundled/components/base/BaseIcon.vue.js +1 -1
- package/dist/bundled/components/base/BaseIcon.vue2.js +2 -2
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
- package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +1 -1
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +2 -2
- package/dist/bundled/components/base/BaseSelect.vue2.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -2
- package/dist/bundled/components/base/BaseTab.vue.js +2 -2
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +1 -1
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +1 -1
- package/dist/bundled/components/command/PromptSelect.vue2.js +1 -1
- package/dist/bundled/components/command/PromptText.vue2.js +1 -1
- package/dist/bundled/components/misc/HatchedPattern.vue.js +2 -2
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +1 -1
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +1 -1
- package/dist/bundled/components/panel/PaneTabs.vue2.js +1 -1
- package/dist/bundled/components/panel/StatePresets.vue2.js +3 -3
- package/dist/bundled/components/panel/StoryControls.vue2.js +2 -2
- package/dist/bundled/components/panel/StoryDocs.vue2.js +6 -6
- package/dist/bundled/components/panel/StoryEvent.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +3 -3
- package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +4 -4
- package/dist/bundled/components/search/SearchItem.vue.js +1 -1
- package/dist/bundled/components/search/SearchItem.vue2.js +2 -2
- package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
- package/dist/bundled/components/search/SearchModal.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +3 -3
- package/dist/bundled/components/search/search-docs-data.js +1 -1
- package/dist/bundled/components/search/search-title-data.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue2.js +2 -2
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +2 -2
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +2 -2
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +8 -6
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +3 -3
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +7 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +2 -2
- package/dist/bundled/components/story/StoryView.vue2.js +2 -2
- 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 +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +6 -6
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +5 -5
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryGroup.vue2.js +1 -1
- 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 +4 -4
- package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue2.js +3 -3
- package/dist/bundled/index.js +2 -2
- package/dist/bundled/plugin.js +2 -2
- package/dist/bundled/router.js +2 -2
- package/dist/bundled/sandbox.js +6 -6
- package/dist/bundled/stores/folder.js +1 -1
- package/dist/bundled/stores/preview-settings.js +1 -1
- package/dist/bundled/util/commands.js +2 -2
- package/dist/bundled/util/config.js +3 -3
- package/dist/bundled/util/const.js +4 -4
- package/dist/bundled/util/dark.js +4 -4
- package/dist/bundled/util/docs.js +1 -1
- package/dist/bundled/util/events.js +1 -1
- package/dist/bundled/util/preview-settings.js +4 -3
- package/dist/style.css +348 -121
- package/package.json +8 -4
- package/src/app/App.vue +9 -9
- package/src/app/assets/poveste-text-dark.svg +15 -0
- package/src/app/assets/poveste-text.svg +15 -0
- package/src/app/assets/poveste.svg +14 -0
- package/src/app/components/HomeView.vue +4 -4
- package/src/app/components/app/AppHeader.vue +4 -4
- package/src/app/components/app/AppLogo.vue +7 -7
- package/src/app/components/app/Breadcrumb.vue +1 -1
- package/src/app/components/app/InitialLoading.vue +3 -3
- package/src/app/components/app/MobileOverlay.vue +2 -2
- package/src/app/components/base/BaseButton.vue +1 -1
- package/src/app/components/base/BaseCheckbox.vue +1 -1
- package/src/app/components/base/BaseCopyIcon.vue +1 -1
- package/src/app/components/base/BaseEmpty.vue +1 -1
- package/src/app/components/base/BaseIcon.vue +2 -2
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/BaseListItemLink.vue +1 -1
- package/src/app/components/base/BaseOverflowMenu.vue +1 -1
- package/src/app/components/base/BaseOverflowTab.vue +2 -2
- package/src/app/components/base/BaseSelect.vue +1 -1
- package/src/app/components/base/BaseSplitPane.vue +2 -2
- package/src/app/components/base/BaseTab.vue +2 -2
- package/src/app/components/base/BaseTag.vue +1 -1
- package/src/app/components/command/CommandPrompts.vue +1 -1
- package/src/app/components/command/CommandPromptsModal.vue +1 -1
- package/src/app/components/command/PromptSelect.vue +1 -1
- package/src/app/components/command/PromptText.vue +1 -1
- package/src/app/components/misc/HatchedPattern.vue +2 -2
- package/src/app/components/panel/ControlsComponentPropItem.vue +1 -1
- package/src/app/components/panel/ControlsComponentProps.vue +1 -1
- package/src/app/components/panel/ControlsComponentState.vue +1 -1
- package/src/app/components/panel/ControlsComponentStateItem.vue +1 -1
- package/src/app/components/panel/PaneTabs.vue +1 -1
- package/src/app/components/panel/StatePresets.vue +3 -3
- package/src/app/components/panel/StoryControls.vue +2 -2
- package/src/app/components/panel/StoryDocs.vue +6 -6
- package/src/app/components/panel/StoryEvent.vue +1 -1
- package/src/app/components/panel/StoryEvents.vue +1 -1
- package/src/app/components/panel/StorySidePanel.vue +3 -3
- package/src/app/components/panel/StorySourceCode.vue +5 -5
- package/src/app/components/search/SearchItem.vue +1 -1
- package/src/app/components/search/SearchLoading.vue +1 -1
- package/src/app/components/search/SearchModal.vue +1 -1
- package/src/app/components/search/SearchPane.vue +3 -3
- package/src/app/components/search/search-docs-data.ts +1 -1
- package/src/app/components/search/search-title-data.ts +1 -1
- package/src/app/components/story/GenericMountStory.vue +2 -2
- package/src/app/components/story/GenericRenderStory.vue +2 -2
- package/src/app/components/story/StoryResponsivePreview.vue +1 -1
- package/src/app/components/story/StoryVariantGrid.vue +2 -2
- package/src/app/components/story/StoryVariantGridItem.vue +6 -4
- package/src/app/components/story/StoryVariantListItem.vue +1 -1
- package/src/app/components/story/StoryVariantSingle.vue +2 -2
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +1 -1
- package/src/app/components/story/StoryVariantSingleView.vue +2 -2
- package/src/app/components/story/StoryView.vue +2 -2
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +1 -1
- package/src/app/components/toolbar/ToolbarBackground.vue +4 -4
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +5 -5
- package/src/app/components/toolbar/ToolbarTextDirection.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
- package/src/app/components/tree/StoryGroup.vue +1 -1
- package/src/app/components/tree/StoryList.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +3 -3
- package/src/app/components/tree/StoryListItem.vue +1 -1
- package/src/app/index.ts +2 -2
- package/src/app/plugin.ts +2 -2
- package/src/app/router.ts +2 -2
- package/src/app/sandbox.ts +6 -6
- package/src/app/stores/folder.ts +1 -1
- package/src/app/stores/preview-settings.ts +1 -1
- package/src/app/style/main.pcss +3 -3
- package/src/app/style/sandbox.css +1 -1
- package/src/app/style/transitions.pcss +4 -4
- package/src/app/types.ts +2 -2
- package/src/app/util/commands.ts +2 -2
- package/src/app/util/config.ts +2 -2
- package/src/app/util/const.ts +4 -4
- package/src/app/util/dark.ts +4 -4
- package/src/app/util/docs.ts +1 -1
- package/src/app/util/events.ts +1 -1
- package/src/app/util/preview-settings.ts +5 -3
- package/src/virtual.d.ts +1 -1
- package/dist/app/assets/histoire-text-dark.svg +0 -89
- package/dist/app/assets/histoire-text.svg +0 -89
- package/dist/app/assets/histoire.svg +0 -51
- package/dist/bundled/assets/histoire-text-dark.svg.js +0 -4
- package/dist/bundled/assets/histoire-text.svg.js +0 -4
- package/dist/bundled/assets/histoire.svg.js +0 -4
- package/postcss-scope-wrapper.cjs +0 -35
- package/postcss.config.cjs +0 -9
- package/scripts/copy.mjs +0 -12
- package/scripts/watchAndCopy.mjs +0 -15
- package/src/app/assets/histoire-text-dark.svg +0 -89
- package/src/app/assets/histoire-text.svg +0 -89
- package/src/app/assets/histoire.svg +0 -51
- package/tailwind.config.cjs +0 -137
- package/tsconfig.json +0 -53
- package/vite.config.ts +0 -88
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1870 512" fill="none">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="pvw" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#24C56A"/>
|
|
5
|
+
<stop offset="1" stop-color="#17A6C6"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pvw)"/>
|
|
9
|
+
<rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
|
|
10
|
+
<rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
|
|
11
|
+
<rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
|
|
12
|
+
<rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
|
|
13
|
+
<rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pvw)"/>
|
|
14
|
+
<text x="676" y="256" dominant-baseline="central" font-family="ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="320" font-weight="400" letter-spacing="-4" fill="#f8fafc">Poveste</text>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1870 512" fill="none">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="pvw" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#24C56A"/>
|
|
5
|
+
<stop offset="1" stop-color="#17A6C6"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pvw)"/>
|
|
9
|
+
<rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
|
|
10
|
+
<rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
|
|
11
|
+
<rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
|
|
12
|
+
<rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
|
|
13
|
+
<rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pvw)"/>
|
|
14
|
+
<text x="676" y="256" dominant-baseline="central" font-family="ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="320" font-weight="400" letter-spacing="-4" fill="#1e293b">Poveste</text>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512" fill="none">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="pv" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0" stop-color="#24C56A"/>
|
|
5
|
+
<stop offset="1" stop-color="#17A6C6"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pv)"/>
|
|
9
|
+
<rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
|
|
10
|
+
<rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
|
|
11
|
+
<rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
|
|
12
|
+
<rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
|
|
13
|
+
<rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pv)"/>
|
|
14
|
+
</svg>
|
package/dist/app/style/main.pcss
CHANGED
|
@@ -64,12 +64,12 @@ button {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.__poveste-render-story:not(.__poveste-render-custom-controls) {
|
|
68
68
|
overflow: auto;
|
|
69
69
|
min-height: 100%;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.
|
|
72
|
+
.__poveste-code .shiki {
|
|
73
73
|
background: transparent !important;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -87,7 +87,7 @@ button {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.__poveste-pane-shadow-from-right {
|
|
91
91
|
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
|
|
92
92
|
background-size: 24px;
|
|
93
93
|
background-repeat: no-repeat;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.__poveste-scale-x {
|
|
2
2
|
&-enter-active,
|
|
3
3
|
&-leave-active {
|
|
4
4
|
transition: transform .15s, opacity .15s;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.
|
|
14
|
+
.__poveste-scale-y {
|
|
15
15
|
&-enter-active,
|
|
16
16
|
&-leave-active {
|
|
17
17
|
transition: transform .15s, opacity .15s;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.
|
|
27
|
+
.__poveste-fade {
|
|
28
28
|
&-enter-active,
|
|
29
29
|
&-leave-active {
|
|
30
30
|
transition: opacity .15s;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.
|
|
39
|
+
.__poveste-fade-bottom {
|
|
40
40
|
&-enter-active,
|
|
41
41
|
&-leave-active {
|
|
42
42
|
transition: transform .15s, opacity .15s;
|
package/dist/bundled/App.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
|
|
2
2
|
import { useTitle } from "@poveste/vendors/vue-use";
|
|
3
|
-
import { files, tree, onUpdate } from "virtual:$
|
|
3
|
+
import { files, tree, onUpdate } from "virtual:$poveste-stories";
|
|
4
4
|
import "./components/app/AppHeader.vue.js";
|
|
5
5
|
import Breadcrumb from "./components/app/Breadcrumb.vue.js";
|
|
6
6
|
import "./components/app/InitialLoading.vue.js";
|
|
@@ -11,7 +11,7 @@ import "./components/story/GenericMountStory.vue.js";
|
|
|
11
11
|
import "./components/tree/StoryList.vue.js";
|
|
12
12
|
import { useCommandStore } from "./stores/command.js";
|
|
13
13
|
import { useStoryStore } from "./stores/story.js";
|
|
14
|
-
import {
|
|
14
|
+
import { povesteConfig } from "./util/config.js";
|
|
15
15
|
import { onKeyboardShortcut } from "./util/keyboard.js";
|
|
16
16
|
import { mapFile } from "./util/mapping.js";
|
|
17
17
|
import { isMobile } from "./util/responsive.js";
|
|
@@ -24,13 +24,13 @@ import _sfc_main$6 from "./components/app/InitialLoading.vue2.js";
|
|
|
24
24
|
"use strict";
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
|
-
class: "
|
|
27
|
+
class: "poveste-app htw-hidden"
|
|
28
28
|
};
|
|
29
29
|
const _hoisted_2 = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
|
|
32
32
|
};
|
|
33
|
-
const _hoisted_3 = { class: "htw-flex htw-flex-col htw-h-full htw-bg-gray-100 dark:htw-bg-gray-750
|
|
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
34
|
const __default__ = {
|
|
35
35
|
name: "PovesteApp"
|
|
36
36
|
};
|
|
@@ -63,9 +63,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
if (storyStore.currentVariant) {
|
|
64
64
|
title += ` › ${storyStore.currentVariant.title}`;
|
|
65
65
|
}
|
|
66
|
-
return `${title} | ${
|
|
66
|
+
return `${title} | ${povesteConfig.theme.title}`;
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return povesteConfig.theme.title;
|
|
69
69
|
}));
|
|
70
70
|
const loadSearch = ref(false);
|
|
71
71
|
const isSearchOpen = ref(false);
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
const loading = ref(false);
|
|
82
82
|
if (import.meta.hot && !files.length) {
|
|
83
83
|
loading.value = true;
|
|
84
|
-
import.meta.hot.on("
|
|
84
|
+
import.meta.hot.on("poveste:all-stories-loaded", () => {
|
|
85
85
|
loading.value = false;
|
|
86
86
|
});
|
|
87
87
|
}
|
|
@@ -146,13 +146,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
146
|
shown: isSearchOpen.value,
|
|
147
147
|
onClose: _cache[2] || (_cache[2] = ($event) => isSearchOpen.value = false)
|
|
148
148
|
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
149
|
-
_ctx.
|
|
149
|
+
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
|
|
150
150
|
key: 3,
|
|
151
151
|
shown: unref(commandStore).showPromptsModal,
|
|
152
152
|
onClose: _cache[3] || (_cache[3] = ($event) => unref(commandStore).showPromptsModal = false)
|
|
153
153
|
}, null, 8, ["shown"])) : createCommentVNode("", true)
|
|
154
154
|
], 4),
|
|
155
|
-
createVNode(Transition, { name: "
|
|
155
|
+
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
156
156
|
default: withCtx(() => [
|
|
157
157
|
loading.value ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("", true)
|
|
158
158
|
]),
|
package/dist/bundled/app.css
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
@scope (:root) to (.
|
|
2
|
-
.bind-tree-margin[data-v-
|
|
3
|
-
margin-left: var(--
|
|
1
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
2
|
+
.bind-tree-margin[data-v-a12ff9e7] {
|
|
3
|
+
margin-left: var(--v2411f6f6);
|
|
4
4
|
}
|
|
5
|
-
.bind-icon-color[data-v-
|
|
6
|
-
color: var(--
|
|
5
|
+
.bind-icon-color[data-v-a12ff9e7] {
|
|
6
|
+
color: var(--b2034f9c);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
@scope (:root) to (.
|
|
10
|
-
.bind-tree-padding[data-v-
|
|
11
|
-
padding-left: var(--
|
|
9
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
10
|
+
.bind-tree-padding[data-v-18510a3c] {
|
|
11
|
+
padding-left: var(--v8d8133ee);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
@scope (:root) to (.
|
|
15
|
-
.bind-icon-color[data-v-
|
|
16
|
-
color: var(--
|
|
14
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
15
|
+
.bind-icon-color[data-v-79fbe0df] {
|
|
16
|
+
color: var(--v2ff034b2);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
@scope (:root) to (.
|
|
20
|
-
.landscape > div > .dragger[data-v-
|
|
19
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
20
|
+
.landscape > div > .dragger[data-v-6c89c62e] {
|
|
21
21
|
width: .625rem;
|
|
22
22
|
}
|
|
23
|
-
.portrait > div > .dragger[data-v-
|
|
23
|
+
.portrait > div > .dragger[data-v-6c89c62e] {
|
|
24
24
|
height: .625rem;
|
|
25
25
|
}
|
|
26
|
-
.landscape > div > .dragger.dragger-offset-before[data-v-
|
|
26
|
+
.landscape > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
|
|
27
27
|
right: 0;
|
|
28
28
|
}
|
|
29
|
-
.portrait > div > .dragger.dragger-offset-before[data-v-
|
|
29
|
+
.portrait > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
|
|
30
30
|
bottom: 0;
|
|
31
31
|
}
|
|
32
|
-
.landscape > div > .dragger.dragger-offset-center[data-v-
|
|
32
|
+
.landscape > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
|
|
33
33
|
right: -.3125rem;
|
|
34
34
|
}
|
|
35
|
-
.portrait > div > .dragger.dragger-offset-center[data-v-
|
|
35
|
+
.portrait > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
|
|
36
36
|
bottom: -.3125rem;
|
|
37
37
|
}
|
|
38
|
-
.landscape > div > .dragger.dragger-offset-after[data-v-
|
|
38
|
+
.landscape > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
|
|
39
39
|
right: -.625rem;
|
|
40
40
|
}
|
|
41
|
-
.portrait > div > .dragger.dragger-offset-after[data-v-
|
|
41
|
+
.portrait > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
|
|
42
42
|
bottom: -.625rem;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
@scope (:root) to (.
|
|
46
|
-
.htw-base-empty[data-v-
|
|
47
|
-
animation: htw-base-empty-
|
|
45
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
46
|
+
.htw-base-empty[data-v-1adb09aa]:not(.no-animation) {
|
|
47
|
+
animation: htw-base-empty-1adb09aa .15s .2s both;
|
|
48
48
|
}
|
|
49
|
-
@keyframes htw-base-empty-
|
|
49
|
+
@keyframes htw-base-empty-1adb09aa {
|
|
50
50
|
0% {
|
|
51
51
|
opacity: 0;
|
|
52
52
|
}
|
|
@@ -55,33 +55,33 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
@scope (:root) to (.
|
|
59
|
-
.
|
|
58
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
59
|
+
.__poveste-code-placeholder[data-v-82d96c7f] {
|
|
60
60
|
color: inherit;
|
|
61
61
|
font-size: inherit;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
@scope (:root) to (.
|
|
65
|
-
.bind-preview-bg[data-v-
|
|
66
|
-
background-color: var(--
|
|
67
|
-
color: var(--
|
|
64
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
65
|
+
.bind-preview-bg[data-v-26d08825] {
|
|
66
|
+
background-color: var(--v57972cd3);
|
|
67
|
+
color: var(--v07febf58);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
@scope (:root) to (.
|
|
71
|
-
.bind-icon-color[data-v-
|
|
72
|
-
color: var(--
|
|
70
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
71
|
+
.bind-icon-color[data-v-a3dc7302] {
|
|
72
|
+
color: var(--v70ef7b9c);
|
|
73
73
|
}
|
|
74
|
-
.bind-preview-bg[data-v-
|
|
75
|
-
background-color: var(--
|
|
74
|
+
.bind-preview-bg[data-v-a3dc7302] {
|
|
75
|
+
background-color: var(--v960da962);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
@scope (:root) to (.
|
|
79
|
-
.bind-icon-color[data-v-
|
|
80
|
-
color: var(--
|
|
78
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
79
|
+
.bind-icon-color[data-v-e7e8e2de] {
|
|
80
|
+
color: var(--v6ef859d8);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
@scope (:root) to (.
|
|
84
|
-
.
|
|
83
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
84
|
+
.__poveste-hatched-pattern[data-v-c1be54fa] {
|
|
85
85
|
background: repeating-linear-gradient(135deg,
|
|
86
86
|
transparent 0px,
|
|
87
87
|
transparent 32px,
|
|
@@ -89,28 +89,28 @@
|
|
|
89
89
|
currentColor 64px);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
@scope (:root) to (.
|
|
93
|
-
.bind-preview-bg[data-v-
|
|
94
|
-
background-color: var(--
|
|
92
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
93
|
+
.bind-preview-bg[data-v-275bf3ef] {
|
|
94
|
+
background-color: var(--v30eb5fc0);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
@scope (:root) to (.
|
|
98
|
-
.bind-icon-color[data-v-
|
|
99
|
-
color: var(--
|
|
97
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
98
|
+
.bind-icon-color[data-v-b675426a] {
|
|
99
|
+
color: var(--v5162df32);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
@scope (:root) to (.
|
|
103
|
-
.bind-icon-color[data-v-
|
|
104
|
-
color: var(--
|
|
102
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
103
|
+
.bind-icon-color[data-v-1d298079] {
|
|
104
|
+
color: var(--v4009a800);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
@scope (:root) to (.
|
|
108
|
-
img.colorize-black[data-v-
|
|
107
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
108
|
+
img.colorize-black[data-v-f632abed] {
|
|
109
109
|
filter: grayscale(100) brightness(0);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
@scope (:root) to (.
|
|
113
|
-
.bind-icon-color[data-v-
|
|
114
|
-
color: var(--
|
|
112
|
+
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
113
|
+
.bind-icon-color[data-v-0c821aae] {
|
|
114
|
+
color: var(--v12a213a0);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const PovesteLogoDark = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODcwIDUxMiIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InB2dyIgeDE9Ijk2IiB5MT0iNDE2IiB4Mj0iNDE2IiB5Mj0iOTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMjRDNTZBIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE3QTZDNiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iNDgwIiBoZWlnaHQ9IjQ4MCIgcng9IjExMiIgZmlsbD0idXJsKCNwdncpIi8+CiAgPHJlY3QgeD0iMTQwIiB5PSIxNDIiIHdpZHRoPSIyMzIiIGhlaWdodD0iNDQiIHJ4PSIxNiIgZmlsbD0iI2ZmZiIvPgogIDxyZWN0IHg9IjE1MSIgeT0iMjE3IiB3aWR0aD0iODgiIGhlaWdodD0iMTQ2IiByeD0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIyIi8+CiAgPHJlY3QgeD0iMTcyIiB5PSIyNDQiIHdpZHRoPSIzMCIgaGVpZ2h0PSI5MiIgcng9IjEzIiBmaWxsPSIjZmZmIi8+CiAgPHJlY3QgeD0iMjYyIiB5PSIyMDYiIHdpZHRoPSIxMTAiIGhlaWdodD0iMTY4IiByeD0iMjAiIGZpbGw9IiNmZmYiLz4KICA8cmVjdCB4PSIyODQiIHk9IjIyNiIgd2lkdGg9IjY2IiBoZWlnaHQ9IjU4IiByeD0iMTMiIGZpbGw9InVybCgjcHZ3KSIvPgogIDx0ZXh0IHg9IjY3NiIgeT0iMjU2IiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9InVpLXNhbnMtc2VyaWYsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjMyMCIgZm9udC13ZWlnaHQ9IjQwMCIgbGV0dGVyLXNwYWNpbmc9Ii00IiBmaWxsPSIjZjhmYWZjIj5Qb3Zlc3RlPC90ZXh0Pgo8L3N2Zz4K";
|
|
2
|
+
export {
|
|
3
|
+
PovesteLogoDark as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const PovesteLogoLight = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODcwIDUxMiIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InB2dyIgeDE9Ijk2IiB5MT0iNDE2IiB4Mj0iNDE2IiB5Mj0iOTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMjRDNTZBIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE3QTZDNiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iNDgwIiBoZWlnaHQ9IjQ4MCIgcng9IjExMiIgZmlsbD0idXJsKCNwdncpIi8+CiAgPHJlY3QgeD0iMTQwIiB5PSIxNDIiIHdpZHRoPSIyMzIiIGhlaWdodD0iNDQiIHJ4PSIxNiIgZmlsbD0iI2ZmZiIvPgogIDxyZWN0IHg9IjE1MSIgeT0iMjE3IiB3aWR0aD0iODgiIGhlaWdodD0iMTQ2IiByeD0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIyIi8+CiAgPHJlY3QgeD0iMTcyIiB5PSIyNDQiIHdpZHRoPSIzMCIgaGVpZ2h0PSI5MiIgcng9IjEzIiBmaWxsPSIjZmZmIi8+CiAgPHJlY3QgeD0iMjYyIiB5PSIyMDYiIHdpZHRoPSIxMTAiIGhlaWdodD0iMTY4IiByeD0iMjAiIGZpbGw9IiNmZmYiLz4KICA8cmVjdCB4PSIyODQiIHk9IjIyNiIgd2lkdGg9IjY2IiBoZWlnaHQ9IjU4IiByeD0iMTMiIGZpbGw9InVybCgjcHZ3KSIvPgogIDx0ZXh0IHg9IjY3NiIgeT0iMjU2IiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9InVpLXNhbnMtc2VyaWYsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjMyMCIgZm9udC13ZWlnaHQ9IjQwMCIgbGV0dGVyLXNwYWNpbmc9Ii00IiBmaWxsPSIjMWUyOTNiIj5Qb3Zlc3RlPC90ZXh0Pgo8L3N2Zz4K";
|
|
2
|
+
export {
|
|
3
|
+
PovesteLogoLight as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const PovesteLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%20width='512'%20height='512'%20fill='none'%3e%3cdefs%3e%3clinearGradient%20id='pv'%20x1='96'%20y1='416'%20x2='416'%20y2='96'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2324C56A'/%3e%3cstop%20offset='1'%20stop-color='%2317A6C6'/%3e%3c/linearGradient%3e%3c/defs%3e%3crect%20x='16'%20y='16'%20width='480'%20height='480'%20rx='112'%20fill='url(%23pv)'/%3e%3crect%20x='140'%20y='142'%20width='232'%20height='44'%20rx='16'%20fill='%23fff'/%3e%3crect%20x='151'%20y='217'%20width='88'%20height='146'%20rx='9'%20stroke='%23fff'%20stroke-width='22'/%3e%3crect%20x='172'%20y='244'%20width='30'%20height='92'%20rx='13'%20fill='%23fff'/%3e%3crect%20x='262'%20y='206'%20width='110'%20height='168'%20rx='20'%20fill='%23fff'/%3e%3crect%20x='284'%20y='226'%20width='66'%20height='58'%20rx='13'%20fill='url(%23pv)'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
PovesteLogo as default
|
|
4
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode } from "@poveste/vendors/vue";
|
|
2
|
-
import PovesteLogo from "../assets/
|
|
2
|
+
import PovesteLogo from "../assets/poveste.svg.js";
|
|
3
3
|
import { useStoryStore } from "../stores/story.js";
|
|
4
|
-
import { customLogos,
|
|
4
|
+
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: "
|
|
8
|
+
const _hoisted_1 = { class: "poveste-home-view htw-flex md:htw-flex-col htw-gap-12 htw-items-center htw-justify-center htw-h-full" };
|
|
9
9
|
const _hoisted_2 = ["src"];
|
|
10
10
|
const _hoisted_3 = { class: "htw-flex !md:htw-flex-col htw-flex-wrap htw-justify-evenly htw-gap-2 htw-px-4 htw-py-2 htw-bg-gray-100 dark:htw-bg-gray-750 htw-rounded htw-border htw-border-gray-500/30" };
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "HomeView",
|
|
13
13
|
setup(__props) {
|
|
14
|
-
const logoUrl = computed(() =>
|
|
14
|
+
const logoUrl = computed(() => povesteConfig.theme?.logo?.square ? customLogos.square : PovesteLogo);
|
|
15
15
|
const storyStore = useStoryStore();
|
|
16
16
|
const stats = computed(() => {
|
|
17
17
|
let storyCount = 0;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveDirective, createElementBlock, openBlock, createElementVNode, unref, createVNode, withDirectives, createCommentVNode } from "@poveste/vendors/vue";
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
-
import {
|
|
3
|
+
import { povesteConfig } from "../../util/config.js";
|
|
4
4
|
import { isDark, toggleDark } from "../../util/dark.js";
|
|
5
5
|
import { onKeyboardShortcut } from "../../util/keyboard.js";
|
|
6
6
|
import { makeTooltip } from "../../util/tooltip.js";
|
|
7
7
|
import "./AppLogo.vue.js";
|
|
8
8
|
import _sfc_main$1 from "./AppLogo.vue2.js";
|
|
9
9
|
"use strict";
|
|
10
|
-
const _hoisted_1 = { class: "
|
|
10
|
+
const _hoisted_1 = { class: "poveste-app-header htw-px-4 htw-h-16 htw-flex htw-items-center htw-gap-2" };
|
|
11
11
|
const _hoisted_2 = { class: "htw-py-3 sm:htw-py-4 htw-flex-1 htw-h-full htw-flex htw-items-center htw-pr-2" };
|
|
12
12
|
const _hoisted_3 = ["href"];
|
|
13
13
|
const _hoisted_4 = { class: "htw-ml-auto htw-flex-none htw-flex" };
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
30
|
createElementVNode("div", _hoisted_2, [
|
|
31
31
|
createElementVNode("a", {
|
|
32
|
-
href: unref(
|
|
32
|
+
href: unref(povesteConfig).theme?.logoHref,
|
|
33
33
|
target: "_blank",
|
|
34
34
|
class: "htw-w-full htw-h-full htw-flex htw-items-center"
|
|
35
35
|
}, [
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
])), [
|
|
50
50
|
[_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
|
|
51
51
|
]),
|
|
52
|
-
!unref(
|
|
52
|
+
!unref(povesteConfig).theme.hideColorSchemeSwitch ? withDirectives((openBlock(), createElementBlock("a", {
|
|
53
53
|
key: 0,
|
|
54
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
55
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(toggleDark)())
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock } from "@poveste/vendors/vue";
|
|
2
|
-
import PovesteLogoDark from "../../assets/
|
|
3
|
-
import PovesteLogoLight from "../../assets/
|
|
4
|
-
import { customLogos,
|
|
2
|
+
import PovesteLogoDark from "../../assets/poveste-text-dark.svg.js";
|
|
3
|
+
import PovesteLogoLight from "../../assets/poveste-text.svg.js";
|
|
4
|
+
import { customLogos, povesteConfig } from "../../util/config.js";
|
|
5
5
|
import { isDark } from "../../util/dark.js";
|
|
6
6
|
"use strict";
|
|
7
7
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -10,14 +10,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const logoUrl = computed(() => {
|
|
12
12
|
if (isDark.value) {
|
|
13
|
-
return
|
|
13
|
+
return povesteConfig.theme.logo?.dark ? customLogos.dark : PovesteLogoDark;
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return povesteConfig.theme.logo?.light ? customLogos.light : PovesteLogoLight;
|
|
16
16
|
});
|
|
17
|
-
const altText = computed(() => `${
|
|
17
|
+
const altText = computed(() => `${povesteConfig.theme.title} logo`);
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createElementBlock("img", {
|
|
20
|
-
class: "
|
|
20
|
+
class: "poveste-app-logo",
|
|
21
21
|
src: logoUrl.value,
|
|
22
22
|
alt: altText.value
|
|
23
23
|
}, null, 8, _hoisted_1);
|
|
@@ -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-79fbe0df"]]);
|
|
6
6
|
export {
|
|
7
7
|
Breadcrumb as default
|
|
8
8
|
};
|
|
@@ -6,7 +6,7 @@ import "./MobileOverlay.vue.js";
|
|
|
6
6
|
import _sfc_main$1 from "./MobileOverlay.vue2.js";
|
|
7
7
|
import _sfc_main$2 from "../tree/StoryList.vue2.js";
|
|
8
8
|
"use strict";
|
|
9
|
-
const _hoisted_1 = { class: "
|
|
9
|
+
const _hoisted_1 = { class: "poveste-breadcrumb" };
|
|
10
10
|
const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2" };
|
|
11
11
|
const _hoisted_3 = { class: "htw-opacity-40 htw-text-sm" };
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
useCssVars((_ctx) => ({
|
|
20
|
-
"
|
|
20
|
+
"v2ff034b2": story.value?.iconColor
|
|
21
21
|
}));
|
|
22
22
|
const storyStore = useStoryStore();
|
|
23
23
|
const story = computed(() => storyStore.currentStory);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
|
-
const _hoisted_1 = { class: "
|
|
3
|
+
const _hoisted_1 = { class: "poveste-initial-loading htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "InitialLoading",
|
|
6
6
|
setup(__props) {
|
|
@@ -10,14 +10,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
});
|
|
11
11
|
const maxCols = window.innerWidth / 20;
|
|
12
12
|
if (import.meta.hot) {
|
|
13
|
-
import.meta.hot.on("
|
|
13
|
+
import.meta.hot.on("poveste:stories-loading-progress", (data) => {
|
|
14
14
|
progress.loaded = data.loadedFileCount;
|
|
15
15
|
progress.total = data.totalFileCount;
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20
|
-
createVNode(Transition, { name: "
|
|
20
|
+
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
21
21
|
default: withCtx(() => [
|
|
22
22
|
progress.total > 0 ? (openBlock(), createElementBlock("div", {
|
|
23
23
|
key: 0,
|
|
@@ -3,7 +3,7 @@ import { Icon } from "@poveste/vendors/iconify";
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "
|
|
6
|
+
class: "poveste-mobile-overlay htw-absolute htw-z-10 htw-bg-white dark:htw-bg-gray-700 htw-w-screen htw-h-screen htw-inset-0 htw-overflow-hidden htw-flex htw-flex-col"
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_2 = { class: "htw-p-4 htw-h-16 htw-flex htw-border-b htw-border-gray-100 dark:htw-border-gray-800 htw-items-center htw-place-content-between" };
|
|
9
9
|
const _hoisted_3 = { class: "htw-text-gray-500" };
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
setup(__props, { emit: __emit }) {
|
|
18
18
|
const emit = __emit;
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(Transition, { name: "
|
|
20
|
+
return openBlock(), createBlock(Transition, { name: "__poveste-fade-bottom" }, {
|
|
21
21
|
default: withCtx(() => [
|
|
22
22
|
__props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
23
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
});
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
23
|
return openBlock(), createBlock(resolveDynamicComponent(comp.value), {
|
|
24
|
-
class: normalizeClass(["
|
|
24
|
+
class: normalizeClass(["poveste-base-button htw-rounded htw-cursor-pointer", {
|
|
25
25
|
"htw-bg-primary-200 dark:htw-bg-primary-800 hover:htw-bg-primary-300 dark:hover:htw-bg-primary-700": __props.color === "primary" || !__props.color,
|
|
26
26
|
"htw-bg-grey-100 dark:htw-bg-grey-900 hover:htw-bg-grey-200 dark:hover:htw-bg-grey-800": __props.color === "grey"
|
|
27
27
|
}])
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
return openBlock(), createElementBlock("div", {
|
|
39
39
|
role: "checkbox",
|
|
40
40
|
tabindex: "0",
|
|
41
|
-
class: "
|
|
41
|
+
class: "poveste-base-checkbox htw-flex htw-items-center htw-gap-2 htw-select-none htw-px-4 htw-py-3 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700",
|
|
42
42
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
43
43
|
onKeydown: [
|
|
44
44
|
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
|
|
@@ -2,13 +2,13 @@ import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue"
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "
|
|
5
|
+
const _hoisted_1 = { class: "poveste-base-empty htw-base-empty htw-flex htw-flex-col htw-items-center htw-justify-center htw-space-y-4 htw-py-12 htw-h-full htw-text-center htw-text-gray-400 htw-text-lg" };
|
|
6
6
|
function _sfc_render(_ctx, _cache) {
|
|
7
7
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
8
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9
9
|
]);
|
|
10
10
|
}
|
|
11
|
-
const BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
11
|
+
const BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1adb09aa"]]);
|
|
12
12
|
export {
|
|
13
13
|
BaseEmpty as default
|
|
14
14
|
};
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./BaseIcon.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const BaseIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const BaseIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f632abed"]]);
|
|
6
6
|
export {
|
|
7
7
|
BaseIcon as default
|
|
8
8
|
};
|
|
@@ -15,11 +15,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
key: 0,
|
|
16
16
|
src: __props.icon,
|
|
17
17
|
alt: __props.icon,
|
|
18
|
-
class: "
|
|
18
|
+
class: "poveste-base-icon"
|
|
19
19
|
}, null, 8, _hoisted_1)) : (openBlock(), createBlock(unref(Icon), {
|
|
20
20
|
key: 1,
|
|
21
21
|
icon: __props.icon,
|
|
22
|
-
class: "
|
|
22
|
+
class: "poveste-base-icon"
|
|
23
23
|
}, null, 8, ["icon"]));
|
|
24
24
|
};
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, toDisplayString } from "@poveste/vendors/vue";
|
|
2
2
|
import { formatKey } from "../../util/keyboard.js";
|
|
3
3
|
"use strict";
|
|
4
|
-
const _hoisted_1 = { class: "
|
|
4
|
+
const _hoisted_1 = { class: "poveste-base-keyboard-shortcut htw-border htw-border-current htw-opacity-50 htw-px-1 htw-rounded-sm" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "BaseKeyboardShortcut",
|
|
7
7
|
props: {
|
|
@@ -5,7 +5,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
|
5
5
|
const _hoisted_1 = ["href", "onClick", "onKeyup"];
|
|
6
6
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7
7
|
const _component_RouterLink = resolveComponent("RouterLink");
|
|
8
|
-
return openBlock(), createBlock(_component_RouterLink, mergeProps({ class: "
|
|
8
|
+
return openBlock(), createBlock(_component_RouterLink, mergeProps({ class: "poveste-base-list-item-link" }, _ctx.$attrs, { custom: "" }), {
|
|
9
9
|
default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
|
|
10
10
|
createElementVNode("a", {
|
|
11
11
|
href,
|