mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Add Redux and reducers.
Load i18n files and add dayjs.
This commit is contained in:
19
src/context/revoltjs/RevoltClient.tsx
Normal file
19
src/context/revoltjs/RevoltClient.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Client } from 'revolt.js';
|
||||
|
||||
export enum ClientStatus {
|
||||
LOADING,
|
||||
READY,
|
||||
OFFLINE,
|
||||
DISCONNECTED,
|
||||
CONNECTING,
|
||||
RECONNECTING,
|
||||
ONLINE
|
||||
}
|
||||
|
||||
export const RevoltJSClient = new Client({
|
||||
autoReconnect: false,
|
||||
apiURL: process.env.API_SERVER,
|
||||
debug: process.env.NODE_ENV === "development",
|
||||
// Match sw.js#13
|
||||
// db: new Db("state", 3, ["channels", "servers", "users", "members"])
|
||||
});
|
||||
Reference in New Issue
Block a user