1 Star 0 Fork 1

小飞飞/vuepress-plugin-meting

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.js 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
SigureMo 提交于 2021-03-14 01:19 . 📝 docs: refine docs
const { resolve } = require('path')
module.exports = (options = {}, context) => ({
define() {
const {
metingApi = 'https://api.i-meto.com/meting/api',
meting = {},
aplayer = {},
mobile = {},
} = options
const { auto = '', server = '', type = '', mid = '' } = meting
const {
additionalAudios = [],
mini = null,
autoplay = false,
theme = '#b7daff',
loop = 'all',
order = 'list',
preload = 'auto',
volume = 0.7,
customAudioType,
mutex = true,
lrcType = 0,
listFolded = false,
listMaxHeight = 250,
storageName = 'vuepress-plugin-meting',
} = aplayer
const { cover = true, lrc = true } = mobile
return {
METING_API: metingApi,
METING_OPTIONS: {
auto,
server,
type,
mid,
},
APLAYER_OPTIONS: {
additionalAudios,
mini,
autoplay,
theme,
loop,
order,
preload,
volume,
customAudioType,
mutex,
lrcType,
listFolded,
listMaxHeight,
storageName,
},
MOBILE_OPTIONS: {
cover,
lrc,
},
}
},
enhanceAppFiles: resolve(__dirname, './lib/enhanceAppFile.js'),
globalUIComponents: options.meting !== undefined ? ['MetingGlobal'] : undefined,
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/birdie_1104/vuepress-plugin-meting.git
git@gitee.com:birdie_1104/vuepress-plugin-meting.git
birdie_1104
vuepress-plugin-meting
vuepress-plugin-meting
master

搜索帮助