-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
123 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
startꓽstorypad( | ||
{ | ||
demo: storiesⵧdemo, | ||
//demo: storiesⵧdemo, | ||
shared: storiesⵧshared, | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 4 additions & 36 deletions
40
stack--2022/4-tools/storypad/src/flux/state--in-mem/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,13 @@ | ||
import { FileSystemNodeⳇFolder } from '@offirmo-private/data-structures' | ||
import { Config } from '../../types/config' | ||
import { | ||
Story, isꓽStory, | ||
Meta, | ||
} from '../../types/csf' | ||
|
||
///////////////////////////////////////////////// | ||
|
||
export type StoryUId = string | ||
export type FolderUId = string | ||
|
||
export interface StoryEntry { | ||
uid: StoryUId // for convenience when passing the payload around | ||
|
||
story: Story | ||
|
||
meta: Meta | undefined | ||
} | ||
export function isꓽStoryEntry(x: any): x is StoryEntry { | ||
return isꓽStory(x?.story) | ||
} | ||
|
||
export interface StoryFolder { | ||
uid: FolderUId // for convenience when passing the payload around | ||
|
||
isꓽexpandedⵧinitially: boolean | ||
} | ||
export function isꓽStoryFolder(x: any): x is StoryFolder { | ||
return !isꓽStoryEntry(x) // simple for now ;) | ||
} | ||
import { Config } from '../../types/config' | ||
import { StoryUId, StoryTree } from '../types' | ||
|
||
///////////////////////////////////////////////// | ||
|
||
export interface State { | ||
config: Config | ||
/* | ||
stories_by_uid: { [k: StoryUId]: StoryEntry } | ||
folders_by_uid: { [k: FolderUId]: StoryFolder } | ||
*/ | ||
last_explicitly_activated_story‿uid: StoryUId | undefined | ||
|
||
first_encountered_story‿uid: StoryUId | undefined | ||
|
||
tree: FileSystemNodeⳇFolder<StoryEntry, StoryFolder> | ||
tree: StoryTree | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,3 @@ export const QUERYPARAMS = { | |
|
||
// globals=theme:dark | ||
} | ||
|
||
//const SEP_FOR_UID = 'Ⳇ' // : | ||
//const ROOT_ID = '╣ROOT╠' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './types' | ||
export * from './selectors' | ||
export * from './reducers' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.