🔨 Refactor: refactored the import section of the code

This commit is contained in:
萌萌哒赫萝
2023-08-07 01:36:27 -07:00
parent 33b36d63c6
commit cb131d5250
64 changed files with 778 additions and 195 deletions
+23
View File
@@ -200,15 +200,28 @@
</div>
</template>
<script lang="ts" setup>
// Element Plus 图标
import { Close, Download, Goods, Remove, Tools } from '@element-plus/icons-vue'
// 国际化函数
import { T as $T } from '@/i18n/index'
// 组件
import ConfigForm from '@/components/ConfigFormForPlugin.vue'
// Lodash 函数节流
import { debounce, DebouncedFunc } from 'lodash'
// Electron 相关
import {
ipcRenderer,
IpcRendererEvent
} from 'electron'
// 工具函数
import { handleStreamlinePluginName } from '~/universal/utils/common'
// 事件常量
import {
OPEN_URL,
PICGO_CONFIG_PLUGIN,
@@ -218,10 +231,20 @@ import {
GET_PICBEDS,
PICGO_HANDLE_PLUGIN_DONE
} from '#/events/constants'
// Vue 相关
import { computed, ref, onBeforeMount, onBeforeUnmount, watch, onMounted } from 'vue'
// 数据发送工具函数
import { getConfig, saveConfig, sendRPC, sendToMain } from '@/utils/dataSender'
// Element Plus 消息框组件
import { ElMessageBox } from 'element-plus'
// Axios
import axios from 'axios'
// 枚举类型声明
import { IRPCActionType } from '~/universal/types/enum'
const $confirm = ElMessageBox.confirm