feat: 添加prettier格式化代码
This commit is contained in:
1 parent
5823d5876b
commit
f33e9386cd
81 files changed
+8114
-7395
No files matched your search
@@ -1,26 +1,26 @@
|
||||
import { Plugin, PluginGroup } from "@/class/PluginCenter";
|
||||
import { PluginExportType } from "@/types/type";
|
||||
import { shallowRef } from "vue";
|
||||
import Disc from "@vicons/ionicons5/es/Disc";
|
||||
import { Plugin, PluginGroup } from '@/class/PluginCenter'
|
||||
import { PluginExportType } from '@/types/type'
|
||||
import { shallowRef } from 'vue'
|
||||
import Disc from '@vicons/ionicons5/es/Disc'
|
||||
|
||||
const pluginConfig: Plugin = {
|
||||
name: "音乐",
|
||||
icon: shallowRef(Disc),
|
||||
filter: (_, __, views) => {
|
||||
return views.find("miaoMusicPlayer").length === 0;
|
||||
},
|
||||
disable: false,
|
||||
group: [PluginGroup.mainMenu],
|
||||
func(_, __, hooks) {
|
||||
const { getPluginCenter } = hooks;
|
||||
const PluginCenter = getPluginCenter();
|
||||
PluginCenter.usePlugin("miaoMusicPlayer", [], []);
|
||||
},
|
||||
priority: -1
|
||||
};
|
||||
name: '音乐',
|
||||
icon: shallowRef(Disc),
|
||||
filter: (_, __, views) => {
|
||||
return views.find('miaoMusicPlayer').length === 0
|
||||
},
|
||||
disable: false,
|
||||
group: [PluginGroup.mainMenu],
|
||||
func(_, __, hooks) {
|
||||
const { getPluginCenter } = hooks
|
||||
const PluginCenter = getPluginCenter()
|
||||
PluginCenter.usePlugin('miaoMusicPlayer', [], [])
|
||||
},
|
||||
priority: -1
|
||||
}
|
||||
|
||||
export default pluginConfig;
|
||||
export default pluginConfig
|
||||
|
||||
export const type = PluginExportType.default;
|
||||
export const type = PluginExportType.default
|
||||
|
||||
export const key = "musicPlayer-mainMenu";
|
||||
export const key = 'musicPlayer-mainMenu'
|
||||
Reference in new issue
Block a user