This commit is contained in:
lyswhut
2023-02-01 12:50:52 +08:00
parent ba3b2f613a
commit 6075f413dc
50 changed files with 74 additions and 70 deletions
@@ -3,7 +3,7 @@ import { defaultList } from '@renderer/store/list/state'
import { getListMusics, addListMusics } from '@renderer/store/list/action'
import { addTempPlayList } from '@renderer/store/player/action'
import { appSetting } from '@renderer/store/setting'
import { Ref } from '@common/utils/vueTools'
import { type Ref } from '@common/utils/vueTools'
import { playList } from '@renderer/core/player'
import { LIST_IDS } from '@common/constants'
+1 -1
View File
@@ -1,4 +1,4 @@
import { ref, computed, ComputedRef } from '@common/utils/vueTools'
import { ref, computed, type ComputedRef } from '@common/utils/vueTools'
import { isPlay } from '@renderer/store/player/state'
import { appSetting } from '@renderer/store/setting'
// import { interval, intervalCancel } from '@renderer/utils/ipc'
+1 -1
View File
@@ -1,5 +1,5 @@
// import './axios'
import { App } from 'vue'
import { type App } from 'vue'
import dialog from './Dialog'
import './Tips'
import svgIcon from './SvgIcon'
+1 -1
View File
@@ -2,7 +2,7 @@ import { ref, reactive, shallowRef, markRaw, computed, watch } from '@common/uti
import { windowSizeList as configWindowSizeList } from '@common/config'
import { appSetting } from './setting'
import pkg from '../../../package.json'
import { ProgressInfo } from 'electron-updater'
import { type ProgressInfo } from 'electron-updater'
import music from '@renderer/utils/musicSdk'
process.versions.app = pkg.version
+1 -1
View File
@@ -2,7 +2,7 @@
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import musicSdk from '@renderer/utils/musicSdk'
import { markRaw, markRawList } from '@common/utils/vueTools'
import { boards, Board, listDetailInfo, ListDetailInfo } from './state'
import { boards, type Board, listDetailInfo, type ListDetailInfo } from './state'
const cache = new Map<string, any>()
+1 -1
View File
@@ -1,6 +1,6 @@
// import { reactive, ref, shallowRef } from '@common/utils/vueTools'
import {
PlayerMusicInfo,
type PlayerMusicInfo,
musicInfo,
isPlay,
status,
+1 -1
View File
@@ -3,7 +3,7 @@ import music from '@renderer/utils/musicSdk'
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import { sortInsert, similar } from '@common/utils/common'
import { sources, maxPages, listInfos, ListInfo } from './state'
import { sources, maxPages, listInfos, type ListInfo } from './state'
interface SearchResult {
list: LX.Music.MusicInfo[]
+1 -1
View File
@@ -3,7 +3,7 @@ import music from '@renderer/utils/musicSdk'
// import { deduplicationList } from '@common/utils/renderer'
import { ListInfo } from '@renderer/store/songList/state'
import { type ListInfo } from '@renderer/store/songList/state'
export type { ListInfoItem } from '@renderer/store/songList/state'
+6 -2
View File
@@ -2,16 +2,20 @@
import { deduplicationList, toNewMusicInfo } from '@renderer/utils'
import musicSdk from '@renderer/utils/musicSdk'
import { markRaw, markRawList } from '@common/utils/vueTools'
import type { ListDetailInfo, ListInfoItem, ListInfo } from './state'
import {
tags,
TagInfo,
listInfo,
listDetailInfo,
selectListInfo,
isVisibleListDetail,
openSongListInputInfo,
} from './state'
import type {
ListDetailInfo,
ListInfoItem,
ListInfo,
TagInfo,
} from './state'
const cache = new Map<string, any>()
+3 -3
View File
@@ -1,6 +1,6 @@
import { AppEventTypes, KeyEventTypes } from '@renderer/event'
import { MainTypes, DownloadTypes } from '@renderer/worker/utils'
import { I18n } from '@renderer/plugins/i18n'
import { type AppEventTypes, type KeyEventTypes } from '@renderer/event'
import { type MainTypes, type DownloadTypes } from '@renderer/worker/utils'
import { type I18n } from '@renderer/plugins/i18n'
// interface LX.EnvParams {
// deeplink?: string | null
// cmdParams: LX.CmdParams
+1 -1
View File
@@ -1,4 +1,4 @@
import { I18n } from '@/lang'
import { type I18n } from '@/lang'
declare module 'vue' {
interface ComponentCustomProperties {
+2 -2
View File
@@ -1,5 +1,5 @@
import { workerMainTypes } from '@renderer/worker/main/index'
import { workerDownloadTypes } from '@renderer/worker/download/index'
import { type workerMainTypes } from '@renderer/worker/main/index'
import { type workerDownloadTypes } from '@renderer/worker/download/index'
declare global {
+1 -1
View File
@@ -15,7 +15,7 @@ import {
saveViewPrevState as saveViewPrevStateFromData,
} from '@renderer/utils/ipc'
import { throttle } from '@common/utils'
import { DEFAULT_SETTING, LIST_IDS } from '@common/constants'
import { type DEFAULT_SETTING, LIST_IDS } from '@common/constants'
import { dateFormat } from './index'
import { setUpdateTime } from '@renderer/store/list/action'
+1 -1
View File
@@ -53,7 +53,7 @@ export const getFontSizeWithScreen = (screenWidth: number = window.innerWidth):
export const deduplicationList = <T extends LX.Music.MusicInfo>(list: T[]): T[] => {
const ids: Set<string> = new Set()
const ids = new Set<string>()
return list.filter(s => {
if (ids.has(s.id)) return false
ids.add(s.id)
+1 -1
View File
@@ -1,6 +1,6 @@
import { isMac } from '@common/utils'
const downKeys: Set<string> = new Set()
const downKeys = new Set<string>()
export declare type KeyActionType = LX.KeyDownEevent['type']
export declare type Keys = LX.KeyDownEevent['keys']
+1 -1
View File
@@ -1,4 +1,4 @@
import { onBeforeUnmount, ref, Ref, useCssModule } from '@common/utils/vueTools'
import { onBeforeUnmount, ref, type Ref, useCssModule } from '@common/utils/vueTools'
import { updateUserListPosition } from '@renderer/store/list/action'
import { userLists } from '@renderer/store/list/state'
import useDarg from '@renderer/utils/compositions/useDrag'
@@ -1,4 +1,4 @@
import { ref, nextTick, useCssModule, Ref } from '@common/utils/vueTools'
import { ref, nextTick, useCssModule, type Ref } from '@common/utils/vueTools'
import { userLists } from '@renderer/store/list/state'
import { updateUserList, createUserList } from '@renderer/store/list/action'
@@ -1,4 +1,4 @@
import { onMounted, useCssModule, Ref } from '@common/utils/vueTools'
import { onMounted, useCssModule, type Ref } from '@common/utils/vueTools'
export default ({ dom_lists_list }: {
@@ -5,7 +5,7 @@ import { getListMusics, addListMusics } from '@renderer/store/list/action'
import { addHistoryWord } from '@renderer/store/search/action'
// import { useI18n } from '@renderer/plugins/i18n'
// import { } from '@renderer/store/search/state'
import { search as searchMusic, listInfos, ListInfo } from '@renderer/store/search/music'
import { search as searchMusic, listInfos, type ListInfo } from '@renderer/store/search/music'
import { assertApiSupport } from '@renderer/store/utils'
export declare type SearchSource = LX.OnlineSource | 'all'
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const app_bg_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const aside_font_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const badge_primary_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const badge_secondary_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const badge_tertiary_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const close_btn_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const font_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const hide_btn_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const main_bg_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const primary_color_ref = ref(null)
@@ -1,5 +1,5 @@
import { ref } from '@common/utils/vueTools'
import { pickrTools, PickrTools } from '@renderer/utils/pickrTools'
import { pickrTools, type PickrTools } from '@renderer/utils/pickrTools'
export default () => {
const min_btn_color_ref = ref(null)
+1 -1
View File
@@ -1,4 +1,4 @@
import { createDownload, DownloaderType, Options as DownloadOptions } from '@common/utils/download'
import { createDownload, type DownloaderType, type Options as DownloadOptions } from '@common/utils/download'
// import music from '@renderer/utils/musicSdk'
import { createDownloadInfo } from './utils'
// import {