mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
* feat: added server impl of ignore user * feat: added development error wrapping * feat: Add arror to popover * fix: dependencies * fix: server locals watch paths * feat: AuthorPopover & Member Since * chore: refactor stream file organization * feat: ignore user * fix: file case * feat: add support for useLocal hook! * test: test ignored users
33 lines
813 B
TypeScript
33 lines
813 B
TypeScript
import { Child as PymChild } from "pym.js";
|
|
import React from "react";
|
|
import { FunctionComponent } from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import { createManaged } from "coral-framework/lib/bootstrap";
|
|
|
|
import AppContainer from "./App";
|
|
import { initLocalState } from "./local";
|
|
import localesData from "./locales";
|
|
|
|
// Import css variables.
|
|
import "coral-ui/theme/variables.css";
|
|
|
|
async function main() {
|
|
const ManagedCoralContextProvider = await createManaged({
|
|
initLocalState,
|
|
localesData,
|
|
userLocales: navigator.languages,
|
|
pym: new PymChild({ polling: 100 }),
|
|
});
|
|
|
|
const Index: FunctionComponent = () => (
|
|
<ManagedCoralContextProvider>
|
|
<AppContainer />
|
|
</ManagedCoralContextProvider>
|
|
);
|
|
|
|
ReactDOM.render(<Index />, document.getElementById("app"));
|
|
}
|
|
|
|
main();
|