histoire 0.1.2 → 0.1.5
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/client/app/App.vue +16 -1
- package/dist/client/app/components/app/AppHeader.vue +6 -6
- package/dist/client/app/components/app/Breadcrumb.vue +98 -0
- package/dist/client/app/components/app/MobileOverlay.vue +34 -0
- package/dist/client/app/components/misc/HatchedPattern.vue +11 -23
- package/dist/client/app/components/search/SearchItem.vue +1 -1
- package/dist/client/app/components/search/SearchModal.vue +2 -2
- package/dist/client/app/components/story/StoryListFolder.vue +2 -2
- package/dist/client/app/components/story/StoryListItem.vue +2 -2
- package/dist/client/app/components/story/StoryResponsivePreview.vue +94 -9
- package/dist/client/app/components/story/StorySidePanel.vue +68 -0
- package/dist/client/app/components/story/StoryVariantListItem.vue +2 -2
- package/dist/client/app/components/story/StoryVariantSingleView.vue +6 -2
- package/dist/client/app/components/story/StoryView.vue +10 -121
- package/dist/client/app/components/story/StoryViewer.vue +157 -0
- package/dist/client/app/stores/story.js +2 -1
- package/dist/client/app/stores/story.ts +6 -2
- package/dist/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
- package/dist/client/app/style/{main.css → main.pcss} +13 -3
- package/dist/client/app/style/transitions.pcss +26 -0
- package/dist/client/app/util/responsive.d.ts +1 -0
- package/dist/client/app/util/responsive.js +2 -0
- package/dist/client/app/util/responsive.ts +3 -0
- package/dist/style.css +158 -67
- package/package.json +4 -4
- package/src/client/app/App.vue +16 -1
- package/src/client/app/components/app/AppHeader.vue +6 -6
- package/src/client/app/components/app/Breadcrumb.vue +98 -0
- package/src/client/app/components/app/MobileOverlay.vue +34 -0
- package/src/client/app/components/misc/HatchedPattern.vue +11 -23
- package/src/client/app/components/search/SearchItem.vue +1 -1
- package/src/client/app/components/search/SearchModal.vue +2 -2
- package/src/client/app/components/story/StoryListFolder.vue +2 -2
- package/src/client/app/components/story/StoryListItem.vue +2 -2
- package/src/client/app/components/story/StoryResponsivePreview.vue +94 -9
- package/src/client/app/components/story/StorySidePanel.vue +68 -0
- package/src/client/app/components/story/StoryVariantListItem.vue +2 -2
- package/src/client/app/components/story/StoryVariantSingleView.vue +6 -2
- package/src/client/app/components/story/StoryView.vue +10 -121
- package/src/client/app/components/story/StoryViewer.vue +157 -0
- package/src/client/app/stores/story.ts +6 -2
- package/src/client/app/style/{floating-vue.css → floating-vue.pcss} +0 -0
- package/src/client/app/style/{main.css → main.pcss} +13 -3
- package/src/client/app/style/transitions.pcss +26 -0
- package/src/client/app/util/responsive.ts +3 -0
- package/dist/client/app/style/transitions.css +0 -12
- package/src/client/app/style/transitions.css +0 -12
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineStore } from 'pinia'
|
|
2
|
-
import { computed,
|
|
2
|
+
import { computed, ref, watch } from 'vue'
|
|
3
3
|
import { router } from '../router'
|
|
4
4
|
import { Story } from '../types'
|
|
5
|
+
import { useStorage } from '@vueuse/core'
|
|
5
6
|
|
|
6
7
|
export const useStoryStore = defineStore('story', () => {
|
|
7
8
|
const stories = ref<Story[]>([])
|
|
@@ -13,7 +14,10 @@ export const useStoryStore = defineStore('story', () => {
|
|
|
13
14
|
|
|
14
15
|
const currentVariant = computed(() => currentStory.value?.variants.find(v => v.id === router.currentRoute.value.query.variantId))
|
|
15
16
|
|
|
16
|
-
const openedFolders =
|
|
17
|
+
const openedFolders = useStorage<Map<string, boolean>>(
|
|
18
|
+
'_histoire-tree-state',
|
|
19
|
+
new Map(),
|
|
20
|
+
)
|
|
17
21
|
|
|
18
22
|
function getStringPath (path: Array<string>) {
|
|
19
23
|
return path.join('␜')
|
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
|
|
2
2
|
@import 'floating-vue/dist/style.css';
|
|
3
|
-
|
|
4
|
-
@import '
|
|
3
|
+
|
|
4
|
+
@import 'floating-vue.pcss';
|
|
5
|
+
@import 'transitions.pcss';
|
|
5
6
|
|
|
6
7
|
*,
|
|
7
8
|
::before,
|
|
@@ -45,7 +46,16 @@ body,
|
|
|
45
46
|
#app {
|
|
46
47
|
height: 100%;
|
|
47
48
|
font-family: 'Lato', sans-serif;
|
|
48
|
-
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#app {
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (min-width: 640px) {
|
|
56
|
+
#app {
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
}
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
.__histoire-sandbox {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.__histoire-scale-x {
|
|
2
|
+
&-enter-active,
|
|
3
|
+
&-leave-active {
|
|
4
|
+
transition: transform .15s, opacity .15s;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&-enter-from,
|
|
8
|
+
&-leave-to {
|
|
9
|
+
transform: scaleX(0);
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.__histoire-fade {
|
|
15
|
+
&-enter-active,
|
|
16
|
+
&-leave-active {
|
|
17
|
+
transition: transform .15s, opacity .15s;
|
|
18
|
+
transform: translateY(0px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-enter-from,
|
|
22
|
+
&-leave-to {
|
|
23
|
+
transform: translateY(32px);
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|