-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.js
More file actions
executable file
·52 lines (48 loc) · 1.24 KB
/
Copy pathsettings.js
File metadata and controls
executable file
·52 lines (48 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const Store = require('electron-store');
const windowStateKeeper = require('electron-window-state');
const settings = new Store();
settings.set('defaults', {
server: {
port: 9600,
},
widget: {
gameMode: false,
general: {
/*
* These values are treated as query params so they are represented in a string format
*/
'ws-port': 8080,
'debug': true,
'char-limit': 150,
'theme': 'ziegmaster',
'spam-protection' : 20,
'hide-links' : true,
'bots' : [
'ExampleBot1',
'ExampleBot2',
'ZiegmaBot'
]
},
themes: {
/*
* Dynamic object. Content is generated from ziegmachat.config.json
*/
},
},
});
if (!settings.get('app')) settings.set('app', settings.get('defaults'));
module.exports = {
settings,
mainWindowState : () => {
return windowStateKeeper({
file: 'main.json',
});
},
chatWindowState : () => {
return windowStateKeeper({
file: 'chat.json',
defaultWidth: 800,
defaultHeight: 600,
});
}
};