-
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
100 additions
and
60 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 |
---|---|---|
@@ -1,19 +1,40 @@ | ||
<template> | ||
<div class="md:px-20 sm:px-0 px-0 bg-gray-600 h-screen flex justify-center items-center"> | ||
<div class="w-11/12 md:h-editor h-screen md:p-5 p-0 bg-gray-700 overflow-y-auto rounded-sm shadow-lg"> | ||
<TextInput v-model="entry" @enter="enterListener"/> | ||
<div | ||
class=" | ||
md:px-20 | ||
sm:px-0 | ||
px-0 | ||
bg-gray-600 | ||
h-screen | ||
flex | ||
justify-center | ||
items-center | ||
" | ||
> | ||
<div | ||
class=" | ||
w-11/12 | ||
md:h-editor | ||
h-screen | ||
md:p-5 | ||
p-0 | ||
bg-gray-700 | ||
overflow-y-auto | ||
rounded-sm | ||
shadow-lg | ||
" | ||
> | ||
<TextInput v-model="entry" @enter="enterListener" /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from "vue"; | ||
import { ref } from 'vue' | ||
const entry = ref('') | ||
const entry = ref('') | ||
const enterListener = () => { | ||
entry.value = '' | ||
} | ||
const enterListener = () => { | ||
entry.value = '' | ||
} | ||
</script> |
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,14 +1,32 @@ | ||
<template> | ||
<section> | ||
<HeroIcon class="text-gray-200 h-4 w-4 opacity-40"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"> | ||
<path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z" /> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
class="h-4 w-4" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
> | ||
<path | ||
d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z" | ||
/> | ||
</svg> | ||
</HeroIcon> | ||
<HeroIcon class="text-gray-200 h-4 w-4 opacity-40"> | ||
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | ||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4" /> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
class="h-4 w-4" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4" | ||
/> | ||
</svg> | ||
</HeroIcon> | ||
</section> | ||
</template> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<button><slot /></button> | ||
</template> | ||
</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 |
---|---|---|
|
@@ -7,5 +7,4 @@ | |
</section> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
</script> | ||
<script lang="ts" setup></script> |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ import editor from '@/store/module/editor' | |
export default createStore({ | ||
modules: { | ||
context, | ||
editor | ||
editor, | ||
}, | ||
}) |
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,23 +1,19 @@ | ||
export interface EditorState { | ||
styles: EditorStateStyles; | ||
contentRaw: EditorStateContentRaw; | ||
contentShow: EditorStateContentShow; | ||
styles: EditorStateStyles | ||
contentRaw: EditorStateContentRaw | ||
contentShow: EditorStateContentShow | ||
} | ||
|
||
export interface EditorStateStyles { | ||
input: EditorStateInput | ||
} | ||
|
||
export interface EditorStateInput { | ||
fontFamily: string; | ||
fontSize: string; | ||
fontColor: string; | ||
fontFamily: string | ||
fontSize: string | ||
fontColor: string | ||
} | ||
|
||
export interface EditorStateContentRaw { | ||
export interface EditorStateContentRaw {} | ||
|
||
} | ||
|
||
export interface EditorStateContentShow { | ||
|
||
} | ||
export interface EditorStateContentShow {} |