
Substantially borrowed from upstream ref: 13a208ee88e55 (before they started editing generated artefacts instead of source). Integrated, including: - Remove previously removed features: emoji, hats, and name colors - Compensate for lack of unified root template - Add React build process to Dockerfile and `bootstrap/init.sh` - Preliminary integration of chat websocket workers For testing, modify `supervisord.conf.dev` to put chat on port 80 and the site service on some other port. Then visit: http://localhost/chat Still to do: - Access control for specific small-groups (and admins probably): Set the values somewhere (site_settings.json? Redis?) and use for authorization in `chat_is_allowed`. - Proxying only /chat to the websocket workers - Chat persistance across restarts: either Redis devops or to DB
15 lines
257 B
TypeScript
15 lines
257 B
TypeScript
declare const process: {
|
|
env: Record<string, any>;
|
|
};
|
|
|
|
declare interface IChatMessage {
|
|
id: string;
|
|
username: string;
|
|
user_id?: string;
|
|
avatar: string;
|
|
text: string;
|
|
text_html: string;
|
|
time: number;
|
|
quotes: null | string;
|
|
dm: boolean;
|
|
}
|