mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-04 23:30:22 +08:00
Finished: custom picbed setting for displaying visible or none
This commit is contained in:
@@ -3,29 +3,39 @@ import qiniuUpload from '../main/utils/qiniuUpload'
|
||||
import tcYunUpload from '../main/utils/tcYunUpload'
|
||||
import upYunUpload from '../main/utils/upYunUpload'
|
||||
import githubUpload from '../main/utils/githubUpload'
|
||||
import db from './index'
|
||||
|
||||
const picBed = [
|
||||
{
|
||||
type: 'weibo',
|
||||
name: '微博图床'
|
||||
},
|
||||
{
|
||||
type: 'qiniu',
|
||||
name: '七牛图床'
|
||||
},
|
||||
{
|
||||
type: 'tcyun',
|
||||
name: '腾讯云COS'
|
||||
},
|
||||
{
|
||||
type: 'upyun',
|
||||
name: '又拍云图床'
|
||||
},
|
||||
{
|
||||
type: 'github',
|
||||
name: 'GitHub图床'
|
||||
}
|
||||
]
|
||||
let picBed = db.read().get('picBed.list').value()
|
||||
|
||||
if (!picBed) {
|
||||
picBed = [
|
||||
{
|
||||
type: 'weibo',
|
||||
name: '微博图床',
|
||||
visible: true
|
||||
},
|
||||
{
|
||||
type: 'qiniu',
|
||||
name: '七牛图床',
|
||||
visible: true
|
||||
},
|
||||
{
|
||||
type: 'tcyun',
|
||||
name: '腾讯云COS',
|
||||
visible: true
|
||||
},
|
||||
{
|
||||
type: 'upyun',
|
||||
name: '又拍云图床',
|
||||
visible: true
|
||||
},
|
||||
{
|
||||
type: 'github',
|
||||
name: 'GitHub图床',
|
||||
visible: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
const picBedHandler = {
|
||||
weibo: weiboUpload,
|
||||
|
||||
Reference in New Issue
Block a user