mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Restructure
This commit is contained in:
18
src-shared/Paths.ts
Normal file
18
src-shared/Paths.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { app } from 'electron'
|
||||
import { join } from 'path'
|
||||
|
||||
// Data paths
|
||||
export const dataPath = join(app.getPath('userData'), 'bridge_data')
|
||||
export const libraryPath = join(dataPath, 'library.db')
|
||||
export const settingsPath = join(dataPath, 'settings.json')
|
||||
export const tempPath = join(dataPath, 'temp')
|
||||
export const themesPath = join(dataPath, 'themes')
|
||||
|
||||
// URL
|
||||
export const serverURL = 'bridge-db.net'
|
||||
|
||||
// OAuth callback server
|
||||
export const SERVER_PORT = 42813
|
||||
export const REDIRECT_BASE = `http://127.0.0.1:${SERVER_PORT}`
|
||||
export const REDIRECT_PATH = `/oauth2callback`
|
||||
export const REDIRECT_URI = `${REDIRECT_BASE}${REDIRECT_PATH}`
|
||||
Reference in New Issue
Block a user