-
Notifications
You must be signed in to change notification settings - Fork 10
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
11 changed files
with
211 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<header class="h-6 flex items-center bg-gray-300 dark:bg-gray-900"> | ||
<div class="flex-1 flex items-center justify-start"> | ||
<p class="wb-text">test1</p> | ||
</div> | ||
<div class="flex-1 flex items-center justify-end"> | ||
<p class="wb-text">test2</p> | ||
</div> | ||
</header> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
import { ContextState, ContextStatePageContent } from '@/types/context' | ||
|
||
export default { | ||
state: () => ({}), | ||
mutations: {}, | ||
namespaced: true, | ||
state: () => | ||
({ | ||
entity: 0, | ||
page: [], | ||
} as ContextState), | ||
mutations: { | ||
addInPage(state: any, content: ContextStatePageContent) { | ||
state.entity++ | ||
state.page.push(content) | ||
}, | ||
}, | ||
actions: {}, | ||
getters: {}, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export interface ContextState { | ||
page: Array<ContextStatePageContent> | ||
} | ||
|
||
export interface ContextStatePageContent { | ||
id: number | ||
type: string | ||
raw: string | ||
} |
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,19 +1,18 @@ | ||
export interface EditorState { | ||
styles: EditorStateStyles | ||
contentRaw: EditorStateContentRaw | ||
contentShow: EditorStateContentShow | ||
} | ||
|
||
export interface EditorStateStyles { | ||
input: EditorStateInput | ||
show: EditorStateShow | ||
} | ||
|
||
export interface EditorStateInput { | ||
fontFamily: string | ||
fontSize: string | ||
fontColor: string | ||
} | ||
|
||
export interface EditorStateContentRaw {} | ||
|
||
export interface EditorStateContentShow {} | ||
export interface EditorStateShow { | ||
fontFamily: string | ||
fontColor: string | ||
} |