2020-01-07 07:49:27 -05:00
|
|
|
export enum IWindowList {
|
|
|
|
SETTING_WINDOW = 'SETTING_WINDOW',
|
|
|
|
TRAY_WINDOW = 'TRAY_WINDOW',
|
|
|
|
MINI_WINDOW = 'MINI_WINDOW',
|
|
|
|
RENAME_WINDOW = 'RENAME_WINDOW'
|
|
|
|
}
|
|
|
|
|
|
|
|
const isDevelopment = process.env.NODE_ENV !== 'production'
|
|
|
|
|
|
|
|
export const TRAY_WINDOW_URL = isDevelopment
|
|
|
|
? (process.env.WEBPACK_DEV_SERVER_URL as string)
|
|
|
|
: `picgo://./index.html`
|
|
|
|
|
|
|
|
export const SETTING_WINDOW_URL = isDevelopment
|
2020-03-19 09:03:21 -04:00
|
|
|
? `${(process.env.WEBPACK_DEV_SERVER_URL as string)}#main-page/upload`
|
|
|
|
: `picgo://./index.html#main-page/upload`
|
2020-01-07 07:49:27 -05:00
|
|
|
|
|
|
|
export const MINI_WINDOW_URL = isDevelopment
|
|
|
|
? `${(process.env.WEBPACK_DEV_SERVER_URL as string)}#mini-page`
|
|
|
|
: `picgo://./index.html#mini-page`
|
|
|
|
|
|
|
|
export const RENAME_WINDOW_URL = process.env.NODE_ENV === 'development'
|
|
|
|
? `${(process.env.WEBPACK_DEV_SERVER_URL as string)}#rename-page`
|
|
|
|
: `picgo://./index.html#rename-page`
|