histoire 0.1.4 → 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
CHANGED
|
@@ -80,7 +80,7 @@ onKeyboardShortcut(['ctrl+k', 'meta+k'], (event) => {
|
|
|
80
80
|
/>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<div class="htw-h-screen dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
83
|
+
<div class="htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
84
84
|
<div
|
|
85
85
|
v-if="isMobile"
|
|
86
86
|
class="htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
import { computed, ref, watch } from 'vue';
|
|
3
3
|
import { router } from '../router';
|
|
4
|
+
import { useStorage } from '@vueuse/core';
|
|
4
5
|
export const useStoryStore = defineStore('story', () => {
|
|
5
6
|
const stories = ref([]);
|
|
6
7
|
function setStories(value) {
|
|
@@ -8,7 +9,7 @@ export const useStoryStore = defineStore('story', () => {
|
|
|
8
9
|
}
|
|
9
10
|
const currentStory = computed(() => stories.value.find(s => s.id === router.currentRoute.value.params.storyId));
|
|
10
11
|
const currentVariant = computed(() => currentStory.value?.variants.find(v => v.id === router.currentRoute.value.query.variantId));
|
|
11
|
-
const openedFolders =
|
|
12
|
+
const openedFolders = useStorage('_histoire-tree-state', new Map());
|
|
12
13
|
function getStringPath(path) {
|
|
13
14
|
return path.join('␜');
|
|
14
15
|
}
|
|
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia'
|
|
|
2
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('␜')
|
package/dist/style.css
CHANGED
|
@@ -1306,14 +1306,14 @@ button {
|
|
|
1306
1306
|
border-color:rgb(var(--_histoire-color-gray-300) / var(--tw-border-opacity))
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
|
-
.htw-bg-
|
|
1309
|
+
.htw-bg-white{
|
|
1310
1310
|
--tw-bg-opacity:1;
|
|
1311
|
-
background-color:rgb(
|
|
1311
|
+
background-color:rgb(255 255 255 / var(--tw-bg-opacity))
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
|
-
.htw-bg-
|
|
1314
|
+
.htw-bg-gray-500{
|
|
1315
1315
|
--tw-bg-opacity:1;
|
|
1316
|
-
background-color:rgb(
|
|
1316
|
+
background-color:rgb(var(--_histoire-color-gray-500) / var(--tw-bg-opacity))
|
|
1317
1317
|
}
|
|
1318
1318
|
|
|
1319
1319
|
.htw-bg-primary-500{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "histoire",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "A fast story book powered by Vite",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@iconify/vue": "^3.1.3",
|
|
37
|
-
"@histoire/controls": "^0.1.
|
|
37
|
+
"@histoire/controls": "^0.1.5",
|
|
38
38
|
"@vitejs/plugin-vue": "^2.2.0",
|
|
39
39
|
"@vueuse/core": "^8.1.1",
|
|
40
40
|
"case": "^1.6.3",
|
package/src/client/app/App.vue
CHANGED
|
@@ -80,7 +80,7 @@ onKeyboardShortcut(['ctrl+k', 'meta+k'], (event) => {
|
|
|
80
80
|
/>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<div class="htw-h-screen dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
83
|
+
<div class="htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100">
|
|
84
84
|
<div
|
|
85
85
|
v-if="isMobile"
|
|
86
86
|
class="htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
|
|
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia'
|
|
|
2
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('␜')
|