mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-06 16:20:09 +08:00
🔨 Refactor: upload module && notification module
This commit is contained in:
@@ -17,7 +17,7 @@ function dbChecker () {
|
||||
if (!fs.existsSync(configFilePath)) {
|
||||
return
|
||||
}
|
||||
let configFile: string = ''
|
||||
let configFile: string = '{}'
|
||||
let optionsTpl = {
|
||||
title: '注意',
|
||||
body: ''
|
||||
|
||||
@@ -14,10 +14,9 @@ if (process.type !== 'renderer') {
|
||||
if (!fs.pathExistsSync(STORE_PATH)) {
|
||||
fs.mkdirpSync(STORE_PATH)
|
||||
}
|
||||
dbChecker()
|
||||
}
|
||||
|
||||
dbChecker()
|
||||
|
||||
class DB {
|
||||
private db: Datastore.LowdbSync<Datastore.AdapterSync>
|
||||
constructor () {
|
||||
|
||||
8
src/universal/types/types.d.ts
vendored
8
src/universal/types/types.d.ts
vendored
@@ -196,6 +196,14 @@ type IUploadOption = string[]
|
||||
interface IShowNotificationOption {
|
||||
title: string
|
||||
body: string
|
||||
icon?: string | import('electron').NativeImage
|
||||
}
|
||||
|
||||
interface IPrivateShowNotificationOption extends IShowNotificationOption{
|
||||
/**
|
||||
* click notification to copy the body
|
||||
*/
|
||||
clickToCopy?: boolean
|
||||
}
|
||||
|
||||
interface IShowMessageBoxOption {
|
||||
|
||||
Reference in New Issue
Block a user