From 5747a5502c44eaece4f9e1df18499e1402153fec Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 2 Jan 2024 22:35:46 +0800 Subject: [PATCH] Develop mobile pages --- components.d.ts | 74 +++++++++---------- src/App.vue | 8 +- src/components/BaseButton.vue | 2 +- src/components/BaseIcon.vue | 4 +- src/components/icon/Close.vue | 2 +- src/components/icon/VolumeIcon.vue | 4 +- src/pages/mobile/components/CollectList.vue | 4 +- src/pages/mobile/components/MobilePanel.vue | 12 +-- src/pages/mobile/components/SimpleList.vue | 4 +- src/pages/mobile/components/WrongList.vue | 4 +- src/pages/mobile/my/My.vue | 4 +- src/pages/mobile/practice/index-test.vue | 4 +- .../mobile/practice/practice-word/Typing.vue | 2 +- .../practice/practice-word/TypingWord.vue | 6 +- src/{ => pages/pc}/components/Backgorund.vue | 2 +- .../pc}/components/CollectNotice.vue | 0 .../pc}/components/DictListPanel.vue | 6 +- .../pc}/components/EditAbleText.vue | 0 src/{ => pages/pc}/components/Fireworks.vue | 0 src/{ => pages/pc}/components/IconWrapper.vue | 0 src/{ => pages/pc}/components/Input.vue | 2 +- src/{ => pages/pc}/components/Logo.vue | 0 src/{ => pages/pc}/components/PopConfirm.vue | 0 src/{ => pages/pc}/components/RightTopBar.vue | 6 +- src/{ => pages/pc}/components/Ring.vue | 2 +- src/{ => pages/pc}/components/Setting.vue | 2 +- src/{ => pages/pc}/components/Slide.vue | 0 src/{ => pages/pc}/components/Tooltip.vue | 2 +- .../pc}/components/article/EditArticle.vue | 4 +- .../article/EditBatchArticleModal.vue | 10 +-- .../article/EditSingleArticleModal.vue | 6 +- .../dialog/ArticleContentDialog.vue | 4 +- .../pc}/components/dialog/Dialog.vue | 4 +- .../pc}/components/dialog/DictDiglog.vue | 16 ++-- .../pc}/components/dialog/MiniDialog.vue | 2 +- .../pc}/components/dialog/SettingDialog.vue | 6 +- .../pc}/components/dialog/WordListDialog.vue | 4 +- .../pc}/components/list/ArticleList.vue | 4 +- .../pc}/components/list/BaseList.vue | 2 +- .../pc}/components/list/DictGroup.vue | 4 +- .../pc}/components/list/DictItem.vue | 0 .../pc}/components/list/DictList.vue | 2 +- src/{ => pages/pc}/components/list/List.vue | 2 +- .../pc}/components/list/WordList.vue | 2 +- src/{ => pages/pc}/components/toolbar/Add.vue | 4 +- .../pc}/components/toolbar/ChapterName.vue | 2 +- .../pc}/components/toolbar/FeedbackModal.vue | 4 +- .../pc}/components/toolbar/RepeatSetting.vue | 6 +- .../components/toolbar/TranslateSetting.vue | 10 +-- .../pc}/components/toolbar/VolumeSetting.vue | 6 +- .../pc}/components/toolbar/index.vue | 14 ++-- src/pages/pc/dict/DictManage.vue | 4 +- .../pc/dict/components/ArticleDictDetail.vue | 6 +- .../pc/dict/components/ChapterWordList.vue | 4 +- .../pc/dict/components/WordDictDetail.vue | 8 +- src/pages/pc/dict/index.vue | 4 +- src/pages/pc/practice/Options.vue | 4 +- src/pages/pc/practice/Panel.vue | 12 +-- src/pages/pc/practice/Statistics.vue | 8 +- src/pages/pc/practice/index.vue | 8 +- .../practice-article/TypingArticle.vue | 4 +- .../pc/practice/practice-article/index.vue | 8 +- .../pc/practice/practice-word/Typing.vue | 2 +- .../pc/practice/practice-word/TypingWord.vue | 8 +- src/utils/MessageBox.tsx | 2 +- 65 files changed, 178 insertions(+), 178 deletions(-) rename src/{ => pages/pc}/components/Backgorund.vue (96%) rename src/{ => pages/pc}/components/CollectNotice.vue (100%) rename src/{ => pages/pc}/components/DictListPanel.vue (96%) rename src/{ => pages/pc}/components/EditAbleText.vue (100%) rename src/{ => pages/pc}/components/Fireworks.vue (100%) rename src/{ => pages/pc}/components/IconWrapper.vue (100%) rename src/{ => pages/pc}/components/Input.vue (98%) rename src/{ => pages/pc}/components/Logo.vue (100%) rename src/{ => pages/pc}/components/PopConfirm.vue (100%) rename src/{ => pages/pc}/components/RightTopBar.vue (84%) rename src/{ => pages/pc}/components/Ring.vue (97%) rename src/{ => pages/pc}/components/Setting.vue (99%) rename src/{ => pages/pc}/components/Slide.vue (100%) rename src/{ => pages/pc}/components/Tooltip.vue (98%) rename src/{ => pages/pc}/components/article/EditArticle.vue (99%) rename src/{ => pages/pc}/components/article/EditBatchArticleModal.vue (96%) rename src/{ => pages/pc}/components/article/EditSingleArticleModal.vue (85%) rename src/{ => pages/pc}/components/dialog/ArticleContentDialog.vue (94%) rename src/{ => pages/pc}/components/dialog/Dialog.vue (98%) rename src/{ => pages/pc}/components/dialog/DictDiglog.vue (97%) rename src/{ => pages/pc}/components/dialog/MiniDialog.vue (96%) rename src/{ => pages/pc}/components/dialog/SettingDialog.vue (95%) rename src/{ => pages/pc}/components/dialog/WordListDialog.vue (89%) rename src/{ => pages/pc}/components/list/ArticleList.vue (95%) rename src/{ => pages/pc}/components/list/BaseList.vue (99%) rename src/{ => pages/pc}/components/list/DictGroup.vue (92%) rename src/{ => pages/pc}/components/list/DictItem.vue (100%) rename src/{ => pages/pc}/components/list/DictList.vue (90%) rename src/{ => pages/pc}/components/list/List.vue (98%) rename src/{ => pages/pc}/components/list/WordList.vue (96%) rename src/{ => pages/pc}/components/toolbar/Add.vue (83%) rename src/{ => pages/pc}/components/toolbar/ChapterName.vue (97%) rename src/{ => pages/pc}/components/toolbar/FeedbackModal.vue (95%) rename src/{ => pages/pc}/components/toolbar/RepeatSetting.vue (91%) rename src/{ => pages/pc}/components/toolbar/TranslateSetting.vue (92%) rename src/{ => pages/pc}/components/toolbar/VolumeSetting.vue (96%) rename src/{ => pages/pc}/components/toolbar/index.vue (92%) diff --git a/components.d.ts b/components.d.ts index 89fd2299..7ef9e93f 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,28 +7,28 @@ export {} declare module 'vue' { export interface GlobalComponents { - Add: typeof import('./src/components/toolbar/Add.vue')['default'] - ArticleContentDialog: typeof import('./src/components/dialog/ArticleContentDialog.vue')['default'] - ArticleList: typeof import('./src/components/list/ArticleList.vue')['default'] - Backgorund: typeof import('./src/components/Backgorund.vue')['default'] + Add: typeof import('./src/pages/pc/components/toolbar/Add.vue')['default'] + ArticleContentDialog: typeof import('./src/pages/pc/components/dialog/ArticleContentDialog.vue')['default'] + ArticleList: typeof import('./src/pages/pc/components/list/ArticleList.vue')['default'] + Backgorund: typeof import('./src/pages/pc/components/Backgorund.vue')['default'] BackIcon: typeof import('./src/components/icon/BackIcon.vue')['default'] BaseButton: typeof import('./src/components/BaseButton.vue')['default'] BaseIcon: typeof import('./src/components/BaseIcon.vue')['default'] - BaseList: typeof import('./src/components/list/BaseList.vue')['default'] - ChapterName: typeof import('./src/components/toolbar/ChapterName.vue')['default'] + BaseList: typeof import('./src/pages/pc/components/list/BaseList.vue')['default'] + ChapterName: typeof import('./src/pages/pc/components/toolbar/ChapterName.vue')['default'] Close: typeof import('./src/components/icon/Close.vue')['default'] - CollectNotice: typeof import('./src/components/CollectNotice.vue')['default'] + CollectNotice: typeof import('./src/pages/pc/components/CollectNotice.vue')['default'] DeleteIcon: typeof import('./src/components/icon/DeleteIcon.vue')['default'] - Dialog: typeof import('./src/components/dialog/Dialog.vue')['default'] - DictDiglog: typeof import('./src/components/dialog/DictDiglog.vue')['default'] - DictGroup: typeof import('./src/components/list/DictGroup.vue')['default'] - DictItem: typeof import('./src/components/list/DictItem.vue')['default'] - DictList: typeof import('./src/components/list/DictList.vue')['default'] - DictListPanel: typeof import('./src/components/DictListPanel.vue')['default'] - EditAbleText: typeof import('./src/components/EditAbleText.vue')['default'] - EditArticle: typeof import('./src/components/article/EditArticle.vue')['default'] - EditBatchArticleModal: typeof import('./src/components/article/EditBatchArticleModal.vue')['default'] - EditSingleArticleModal: typeof import('./src/components/article/EditSingleArticleModal.vue')['default'] + Dialog: typeof import('./src/pages/pc/components/dialog/Dialog.vue')['default'] + DictDiglog: typeof import('./src/pages/pc/components/dialog/DictDiglog.vue')['default'] + DictGroup: typeof import('./src/pages/pc/components/list/DictGroup.vue')['default'] + DictItem: typeof import('./src/pages/pc/components/list/DictItem.vue')['default'] + DictList: typeof import('./src/pages/pc/components/list/DictList.vue')['default'] + DictListPanel: typeof import('./src/pages/pc/components/DictListPanel.vue')['default'] + EditAbleText: typeof import('./src/pages/pc/components/EditAbleText.vue')['default'] + EditArticle: typeof import('./src/pages/pc/components/article/EditArticle.vue')['default'] + EditBatchArticleModal: typeof import('./src/pages/pc/components/article/EditBatchArticleModal.vue')['default'] + EditSingleArticleModal: typeof import('./src/pages/pc/components/article/EditSingleArticleModal.vue')['default'] ElButton: typeof import('element-plus/es')['ElButton'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElForm: typeof import('element-plus/es')['ElForm'] @@ -44,31 +44,31 @@ declare module 'vue' { ElSlider: typeof import('element-plus/es')['ElSlider'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] Empty: typeof import('./src/components/Empty.vue')['default'] - FeedbackModal: typeof import('./src/components/toolbar/FeedbackModal.vue')['default'] - Fireworks: typeof import('./src/components/Fireworks.vue')['default'] - IconWrapper: typeof import('./src/components/IconWrapper.vue')['default'] - Input: typeof import('./src/components/Input.vue')['default'] - List: typeof import('./src/components/list/List.vue')['default'] - Logo: typeof import('./src/components/Logo.vue')['default'] - MiniDialog: typeof import('./src/components/dialog/MiniDialog.vue')['default'] - PopConfirm: typeof import('./src/components/PopConfirm.vue')['default'] - RepeatSetting: typeof import('./src/components/toolbar/RepeatSetting.vue')['default'] - RightTopBar: typeof import('./src/components/RightTopBar.vue')['default'] - Ring: typeof import('./src/components/Ring.vue')['default'] + FeedbackModal: typeof import('./src/pages/pc/components/toolbar/FeedbackModal.vue')['default'] + Fireworks: typeof import('./src/pages/pc/components/Fireworks.vue')['default'] + IconWrapper: typeof import('./src/pages/pc/components/IconWrapper.vue')['default'] + Input: typeof import('./src/pages/pc/components/Input.vue')['default'] + List: typeof import('./src/pages/pc/components/list/List.vue')['default'] + Logo: typeof import('./src/pages/pc/components/Logo.vue')['default'] + MiniDialog: typeof import('./src/pages/pc/components/dialog/MiniDialog.vue')['default'] + PopConfirm: typeof import('./src/pages/pc/components/PopConfirm.vue')['default'] + RepeatSetting: typeof import('./src/pages/pc/components/toolbar/RepeatSetting.vue')['default'] + RightTopBar: typeof import('./src/pages/pc/components/RightTopBar.vue')['default'] + Ring: typeof import('./src/pages/pc/components/Ring.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - Setting: typeof import('./src/components/Setting.vue')['default'] - SettingDialog: typeof import('./src/components/dialog/SettingDialog.vue')['default'] - Slide: typeof import('./src/components/Slide.vue')['default'] + Setting: typeof import('./src/pages/pc/components/Setting.vue')['default'] + SettingDialog: typeof import('./src/pages/pc/components/dialog/SettingDialog.vue')['default'] + Slide: typeof import('./src/pages/pc/components/Slide.vue')['default'] SlideHorizontal: typeof import('./src/components/slide/SlideHorizontal.vue')['default'] SlideItem: typeof import('./src/components/slide/SlideItem.vue')['default'] - Toolbar: typeof import('./src/components/toolbar/index.vue')['default'] - Tooltip: typeof import('./src/components/Tooltip.vue')['default'] - TranslateSetting: typeof import('./src/components/toolbar/TranslateSetting.vue')['default'] + Toolbar: typeof import('./src/pages/pc/components/toolbar/index.vue')['default'] + Tooltip: typeof import('./src/pages/pc/components/Tooltip.vue')['default'] + TranslateSetting: typeof import('./src/pages/pc/components/toolbar/TranslateSetting.vue')['default'] VolumeIcon: typeof import('./src/components/icon/VolumeIcon.vue')['default'] - VolumeSetting: typeof import('./src/components/toolbar/VolumeSetting.vue')['default'] - WordList: typeof import('./src/components/list/WordList.vue')['default'] - WordListDialog: typeof import('./src/components/dialog/WordListDialog.vue')['default'] + VolumeSetting: typeof import('./src/pages/pc/components/toolbar/VolumeSetting.vue')['default'] + WordList: typeof import('./src/pages/pc/components/list/WordList.vue')['default'] + WordListDialog: typeof import('./src/pages/pc/components/dialog/WordListDialog.vue')['default'] } export interface ComponentCustomProperties { vLoading: typeof import('element-plus/es')['ElLoadingDirective'] diff --git a/src/App.vue b/src/App.vue index f79fa645..a10423d7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,12 +5,12 @@ import {BaseState, useBaseStore} from "@/stores/base.ts"; import {useRuntimeStore} from "@/stores/runtime.ts"; import {useSettingStore} from "@/stores/setting.ts"; import {cloneDeep} from "lodash-es"; -import Backgorund from "@/components/Backgorund.vue"; +import Backgorund from "@/pages/pc/components/Backgorund.vue"; import useTheme from "@/hooks/theme.ts"; import * as localforage from "localforage"; -import SettingDialog from "@/components/dialog/SettingDialog.vue"; -import ArticleContentDialog from "@/components/dialog/ArticleContentDialog.vue"; -import CollectNotice from "@/components/CollectNotice.vue"; +import SettingDialog from "@/pages/pc/components/dialog/SettingDialog.vue"; +import ArticleContentDialog from "@/pages/pc/components/dialog/ArticleContentDialog.vue"; +import CollectNotice from "@/pages/pc/components/CollectNotice.vue"; import {SAVE_DICT_KEY, SAVE_SETTING_KEY} from "@/utils/const.ts"; import {isMobile, shakeCommonDict} from "@/utils"; import router, {routes} from "@/router.ts"; diff --git a/src/components/BaseButton.vue b/src/components/BaseButton.vue index d2a2d22e..bb90d84d 100644 --- a/src/components/BaseButton.vue +++ b/src/components/BaseButton.vue @@ -1,5 +1,5 @@