-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
29 lines (21 loc) · 873 Bytes
/
index.js
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
// @ts-ignore
const { init_images } = require('./server/data/image');
const { init_socket_server } = require('./server/sockets');
const { init_webserver } = require('./server/webs');
module.exports = {
...require('./server/actions/settings.js'),
...require('./server/actions/notify.js'),
...require('./server/actions/status.js'),
...require('./server/actions/progress.js'),
...require('./server/actions/feed.js'),
...require('./server/actions/sorted_list.js'),
...require('./server/actions/style.js'),
...require('./server/actions/screen.js'),
run: async (WEB_PORT, SOCKET_PORT) => {
init_images();
this.SOCKET_PORT = SOCKET_PORT;
this.SOCKET_SERVER = init_socket_server(SOCKET_PORT);
this.WEB_PORT = WEB_PORT;
this.WEB_SERVER = await init_webserver(WEB_PORT, SOCKET_PORT);
},
}