mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
wio
This commit is contained in:
@@ -28,7 +28,7 @@ export default {
|
||||
appEmbedIndex: resolveSrc("core/client/embed/index.ts"),
|
||||
appEmbedHTML: resolveSrc("core/client/embed/index.html"),
|
||||
|
||||
appAuthIndex: resolveSrc("core/client/auth/index.ts"),
|
||||
appAuthIndex: resolveSrc("core/client/auth/index.tsx"),
|
||||
appAuthHTML: resolveSrc("core/client/auth/index.html"),
|
||||
|
||||
appDistStatic: resolveApp("dist/static"),
|
||||
|
||||
@@ -4,7 +4,7 @@ import { StatelessComponent } from "react";
|
||||
import { Flex } from "talk-ui/components";
|
||||
|
||||
const App: StatelessComponent = () => {
|
||||
return <Flex justifyContent="center">Holaaaaa</Flex>;
|
||||
return <Flex justifyContent="center">Auth</Flex>;
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
||||
@@ -3,23 +3,15 @@ import ReactDOM from "react-dom";
|
||||
|
||||
import {
|
||||
createContext,
|
||||
TalkContext,
|
||||
TalkContextProvider,
|
||||
} from "talk-framework/lib/bootstrap";
|
||||
|
||||
import AppContainer from "./containers/AppContainer";
|
||||
import { initLocalState } from "./local";
|
||||
import localesData from "./locales";
|
||||
|
||||
// This is called when the context is first initialized.
|
||||
async function init(context: TalkContext) {
|
||||
await initLocalState(context.relayEnvironment);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
// Bootstrap our context.
|
||||
const context = await createContext({
|
||||
init,
|
||||
localesData,
|
||||
userLocales: navigator.languages,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user