diff --git a/package.json b/package.json index 7492369..34d375e 100644 --- a/package.json +++ b/package.json @@ -15,12 +15,22 @@ "dependencies": { "@ant-design/icons-vue": "^7.0.1", "@fingerprintjs/fingerprintjs": "^4.4.3", + "@milkdown-lab/plugin-menu": "^1.3.1", + "@milkdown/kit": "7.5.0", + "@milkdown/plugin-menu": "^6.5.4", + "@milkdown/plugin-prism": "^7.5.0", + "@milkdown/plugin-tooltip": "^7.5.3", + "@milkdown/theme-nord": "7.5.0", + "@milkdown/vue": "7.5.0", "@pixi/spine-pixi": "^2.1.0", + "@tailwindcss/typography": "^0.5.9", + "@type-config/strict": "^1.2.1", "ali-oss": "^6.21.0", "ant-design-vue": "4.x", "clsx": "^2.1.1", "crypto-js": "^4.2.0", "dayjs": "^1.11.13", + "echarts": "^5.5.1", "gsap": "^3.12.5", "localforage": "^1.10.0", "lunar-typescript": "^1.7.5", diff --git a/public/icons/classicPlay.png b/public/icons/classicPlay.png new file mode 100644 index 0000000..d801928 Binary files /dev/null and b/public/icons/classicPlay.png differ diff --git a/public/icons/game_video_bg_play.png b/public/icons/game_video_bg_play.png new file mode 100644 index 0000000..ae23531 Binary files /dev/null and b/public/icons/game_video_bg_play.png differ diff --git a/public/icons/notepad/decorative.png b/public/icons/notepad/decorative.png new file mode 100644 index 0000000..0551513 Binary files /dev/null and b/public/icons/notepad/decorative.png differ diff --git a/public/icons/notepad/delete.png b/public/icons/notepad/delete.png new file mode 100644 index 0000000..9bf9ab2 Binary files /dev/null and b/public/icons/notepad/delete.png differ diff --git a/public/icons/notepad/note_pad_line.png b/public/icons/notepad/note_pad_line.png new file mode 100644 index 0000000..a4293b7 Binary files /dev/null and b/public/icons/notepad/note_pad_line.png differ diff --git a/public/icons/notepad/top.png b/public/icons/notepad/top.png new file mode 100644 index 0000000..1f9bc8d Binary files /dev/null and b/public/icons/notepad/top.png differ diff --git a/public/icons/work/tomatoIconAdd.png b/public/icons/work/tomatoIconAdd.png new file mode 100644 index 0000000..d2b1047 Binary files /dev/null and b/public/icons/work/tomatoIconAdd.png differ diff --git a/public/icons/work/tomoto_gt.png b/public/icons/work/tomoto_gt.png new file mode 100644 index 0000000..046b405 Binary files /dev/null and b/public/icons/work/tomoto_gt.png differ diff --git a/src/App.vue b/src/App.vue index ae94a70..732fce1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,7 @@ const layout = useLayoutStore() - +
diff --git a/src/layout/adder/AdderPage.tsx b/src/layout/adder/AdderPage.tsx index a8f2206..c4e65b3 100644 --- a/src/layout/adder/AdderPage.tsx +++ b/src/layout/adder/AdderPage.tsx @@ -1,4 +1,4 @@ -import { computed, defineComponent, provide, ref, type InjectionKey, type Ref } from 'vue' +import { computed, defineComponent, inject, onMounted, onUnmounted, provide, ref, type InjectionKey, type Ref } from 'vue' import useLayoutStore from '../useLayoutStore' import { OhVueIcon, addIcons } from 'oh-vue-icons' import { @@ -14,7 +14,8 @@ import WidgetAdder from './WidgetAdder' import { Form, Input, Select } from 'ant-design-vue' import HotAdder from './HotAdder' import GameAdder from './GameAdder' -import work_add_main_checked from '/tab/icons/work_add_main_checked.png' +import work_add_main_checked from '/icons/work_add_main_checked.png' +import useAdderPageStore from './useAdderPageStore' addIcons(MdKeyboardcommandkey, FaCompass, FaPencilRuler, IoGameController) const ItemButton = defineComponent({ @@ -67,23 +68,21 @@ const ItemButton = defineComponent({ }) export const AddToToken = Symbol('addTo') as InjectionKey> - export default defineComponent(() => { const layout = useLayoutStore() const isGame = computed(() => layout.state.current === 0) - const type = ref(1) + const store = useAdderPageStore() const addTo = ref(layout.state.currentPage) provide(AddToToken, addTo) + onUnmounted(()=> { + store.type = 1 + }) return () => (
{ { - type.value = 0 + store.type = 0 }} /> { - type.value = 1 + store.type = 1 }} /> { - type.value = 2 + store.type = 2 }} /> { - type.value = 3 + store.type = 3 }} />
@@ -146,11 +145,11 @@ export default defineComponent(() => {