-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: MenuWrapper to ButtonGroup (#59)
- Loading branch information
Showing
21 changed files
with
92 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { Pencil } from '@icon-park/vue-next' | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
import { toolBox } from '@Kernel/index' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.draw.tools.title')"> | ||
<ButtonGroup :name="$t('ToolBar.draw.tools.title')"> | ||
<button class="menu-btn flex flex-col items-center" @click="toolBox.events.toolChange.emit('Pen')"> | ||
<Pencil theme="outline" size="32" fill="#333" :strokeWidth="2" /> | ||
<span class="text-xs mt-1">{{ $t('ToolBar.draw.tools.pen') }}</span> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { Comment, Down } from '@icon-park/vue-next' | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.comments.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.comments.title')"> | ||
<button class="flex flex-col items-center py-0 menu-btn"> | ||
<Comment class="mb-1" theme="multi-color" size="32" :fill="['#333', '#83beec', '#FFF', '#43CCF8']" :strokeWidth="2" /> | ||
<Comment | ||
class="mb-1" | ||
theme="multi-color" | ||
size="32" | ||
:fill="['#333', '#83beec', '#FFF', '#43CCF8']" | ||
:strokeWidth="2" | ||
/> | ||
<span class="text-xs">{{ $t('ToolBar.insert.comments.btnName') }}</span> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2" /> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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,14 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { DocDetail, Down } from '@icon-park/vue-next'; | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import { DocDetail, Down } from '@icon-park/vue-next' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.footer.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.footer.title')"> | ||
<button class="flex flex-col items-center py-0 menu-btn"> | ||
<DocDetail class="mb-1" theme="multi-color" size="32" :fill="['#333' ,'#83beec' ,'#FFF' ,'#43CCF8']" :strokeWidth="2"/> | ||
<DocDetail | ||
class="mb-1" | ||
theme="multi-color" | ||
size="32" | ||
:fill="['#333', '#83beec', '#FFF', '#43CCF8']" | ||
:strokeWidth="2" | ||
/> | ||
<span class="text-xs">{{ $t('ToolBar.insert.footer.title') }}</span> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2"/> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2" /> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { LinkTwo, Down } from '@icon-park/vue-next'; | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import { LinkTwo, Down } from '@icon-park/vue-next' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.link.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.link.title')"> | ||
<button class="flex flex-col items-center py-0 menu-btn"> | ||
<LinkTwo class="mb-1" theme="multi-color" size="32" :fill="['#333' ,'#83beec' ,'#FFF' ,'#43CCF8']" :strokeWidth="2"/> | ||
<LinkTwo | ||
class="mb-1" | ||
theme="multi-color" | ||
size="32" | ||
:fill="['#333', '#83beec', '#FFF', '#43CCF8']" | ||
:strokeWidth="2" | ||
/> | ||
<span class="text-xs">{{ $t('ToolBar.insert.link.title') }}</span> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2"/> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2" /> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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,20 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { Down, SpeakerOne, Video } from '@icon-park/vue-next' | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.media.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.media.title')"> | ||
<div class="flex"> | ||
<button class="flex flex-col items-center justify-center -mt-4 menu-btn"> | ||
<SpeakerOne theme="outline" size="32" fill="#333" :strokeWidth="2"/> | ||
<SpeakerOne theme="outline" size="32" fill="#333" :strokeWidth="2" /> | ||
<span class="mt-1 text-xs">{{ $t('ToolBar.insert.media.audio') }}</span> | ||
</button> | ||
<button class="flex flex-col items-center justify-center py-0 menu-btn"> | ||
<Video theme="outline" size="32" fill="#333" :strokeWidth="2"/> | ||
<Video theme="outline" size="32" fill="#333" :strokeWidth="2" /> | ||
<span class="mt-1 text-xs">{{ $t('ToolBar.insert.media.video') }}</span> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2"/> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2" /> | ||
</button> | ||
</div> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { Slide } from '@icon-park/vue-next' | ||
import { slideManager } from '@Kernel/index' | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.slides.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.slides.title')"> | ||
<button class="menu-btn flex flex-col items-center" @click="slideManager.insertSlide()"> | ||
<Slide theme="multi-color" size="32" :fill="['#333', '#FFF', '#379E4E', '#379E4E']" :strokeWidth="2" /> | ||
<span class="text-xs mt-1">{{ $t('ToolBar.home.slides.add') }}</span> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</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,14 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { Symbol, Down } from '@icon-park/vue-next'; | ||
import MenuWrapper from '../MenuWrapper.vue' | ||
import { Symbol, Down } from '@icon-park/vue-next' | ||
import ButtonGroup from '../ButtonGroup.vue' | ||
</script> | ||
|
||
<template> | ||
<MenuWrapper :name="$t('ToolBar.insert.symbol.title')"> | ||
<ButtonGroup :name="$t('ToolBar.insert.symbol.title')"> | ||
<button class="flex flex-col items-center py-0 menu-btn"> | ||
<Symbol class="mb-1" theme="outline" size="32" fill="#333" :strokeWidth="2"/> | ||
<Symbol class="mb-1" theme="outline" size="32" fill="#333" :strokeWidth="2" /> | ||
<span class="text-xs">{{ $t('ToolBar.insert.symbol.title') }}</span> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2"/> | ||
<Down class="-mt-1" theme="outline" size="17" fill="#333" :strokeWidth="2" /> | ||
</button> | ||
</MenuWrapper> | ||
</ButtonGroup> | ||
</template> |
Oops, something went wrong.