generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use module export for local server global variable
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
declare global { | ||
const SIMULARIUM_USE_LOCAL_BACKEND: boolean; | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import React from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
|
||
import Viewer from './Viewer'; | ||
import Viewer from "./Viewer"; | ||
|
||
const container: HTMLElement | null = document.getElementById("root"); | ||
|
||
const root = createRoot(container!); | ||
root.render( | ||
<Viewer | ||
localBackendServer={false /*SIMULARIUM_USE_LOCAL_BACKEND*/} | ||
/> | ||
); | ||
root.render(<Viewer localBackendServer={SIMULARIUM_USE_LOCAL_BACKEND} />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.base", | ||
"include": ["src/**/*", "vitest.config.ts"], | ||
"include": ["src/**/*", "examples/src/**/*", "vitest.config.ts"], | ||
"exclude": ["src/visGeometry/workers/**/*"], | ||
"compilerOptions": {"types": ["vitest/globals"]} | ||
} |