histoire 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/client/app/App.vue +16 -1
- package/dist/client/app/components/app/AppHeader.vue +7 -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/base/BaseCheckbox.vue +76 -0
- package/dist/client/app/components/misc/HatchedPattern.vue +11 -23
- package/dist/client/app/components/search/SearchItem.vue +5 -2
- package/dist/client/app/components/search/SearchModal.vue +6 -6
- package/dist/client/app/components/story/StoryControls.vue +1 -1
- package/dist/client/app/components/story/StoryDocs.vue +1 -0
- package/dist/client/app/components/story/StoryListFolder.vue +3 -3
- package/dist/client/app/components/story/StoryListItem.vue +6 -3
- package/dist/client/app/components/story/StoryResponsivePreview.vue +53 -8
- package/dist/client/app/components/story/StorySidePanel.vue +69 -0
- package/dist/client/app/components/story/StorySourceCode.vue +4 -1
- package/dist/client/app/components/story/StoryVariantListItem.vue +6 -3
- package/dist/client/app/components/story/StoryVariantSingleView.vue +14 -10
- package/dist/client/app/components/story/StoryView.vue +10 -121
- package/dist/client/app/components/story/StoryViewer.vue +175 -0
- package/dist/client/app/stores/story.d.ts +6 -6
- 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/types.d.ts +1 -1
- package/dist/client/app/types.ts +1 -1
- 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/node/bin.js +7 -0
- package/dist/node/build.js +1 -1
- package/dist/node/{collect.d.ts → collect/index.d.ts} +2 -2
- package/dist/node/{collect.js → collect/index.js} +37 -27
- package/dist/node/collect/worker.d.ts +14 -0
- package/dist/node/collect/worker.js +36 -0
- package/dist/node/commands/preview.d.ts +4 -0
- package/dist/node/commands/preview.js +36 -0
- package/dist/node/server.js +1 -1
- package/dist/node/types.d.ts +1 -1
- package/dist/style.css +231 -104
- package/package.json +8 -4
- package/src/client/app/App.vue +16 -1
- package/src/client/app/components/app/AppHeader.vue +7 -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/base/BaseCheckbox.vue +76 -0
- package/src/client/app/components/misc/HatchedPattern.vue +11 -23
- package/src/client/app/components/search/SearchItem.vue +5 -2
- package/src/client/app/components/search/SearchModal.vue +6 -6
- package/src/client/app/components/story/StoryControls.vue +1 -1
- package/src/client/app/components/story/StoryDocs.vue +1 -0
- package/src/client/app/components/story/StoryListFolder.vue +3 -3
- package/src/client/app/components/story/StoryListItem.vue +6 -3
- package/src/client/app/components/story/StoryResponsivePreview.vue +53 -8
- package/src/client/app/components/story/StorySidePanel.vue +69 -0
- package/src/client/app/components/story/StorySourceCode.vue +4 -1
- package/src/client/app/components/story/StoryVariantListItem.vue +6 -3
- package/src/client/app/components/story/StoryVariantSingleView.vue +14 -10
- package/src/client/app/components/story/StoryView.vue +10 -121
- package/src/client/app/components/story/StoryViewer.vue +175 -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/types.ts +1 -1
- package/src/client/app/util/responsive.ts +3 -0
- package/src/node/bin.ts +8 -0
- package/src/node/build.ts +1 -1
- package/src/node/{collect.ts → collect/index.ts} +48 -30
- package/src/node/collect/worker.ts +61 -0
- package/src/node/commands/preview.ts +50 -0
- package/src/node/server.ts +1 -1
- package/src/node/types.ts +1 -1
- package/dist/client/app/style/transitions.css +0 -12
- package/src/client/app/style/transitions.css +0 -12
package/src/node/server.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { createServer as createViteServer } from 'vite'
|
|
|
2
2
|
import { Context } from './context.js'
|
|
3
3
|
import { createVitePlugins, RESOLVED_STORIES_ID } from './plugin.js'
|
|
4
4
|
import { notifyStoryChange, onStoryChange, watchStories } from './stories.js'
|
|
5
|
-
import { useCollectStories } from './collect.js'
|
|
5
|
+
import { useCollectStories } from './collect/index.js'
|
|
6
6
|
import type { StoryFile } from './types.js'
|
|
7
7
|
|
|
8
8
|
export async function createServer (ctx: Context, port: number) {
|
package/src/node/types.ts
CHANGED