Last active
December 16, 2020 01:21
-
-
Save dimfeld/21e30bac2a21a80858cf8b57b2e272b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script lang="typescript"> | |
import debounce from 'just-debounce-it'; | |
import compare from 'just-compare'; | |
import type { | |
LoadableModel, | |
LoadableScenario, | |
Value, | |
} from '@carevoyance/reactive-data'; | |
import type { Graph } from '@carevoyance/reactive-data'; | |
import { | |
loadModel, | |
loadScenario, | |
buildGraph, | |
} from '@carevoyance/reactive-data'; | |
import { parse as parseToml } from '@iarna/toml'; | |
import { tick } from 'svelte'; | |
import NodesTable from '@carevoyance/reactive-data-ui/src/devtools/NodesTable.svelte'; | |
import ButtonRow from '@carevoyance/components/ButtonRow.svelte'; | |
import VwCentered from '@carevoyance/components/VwCentered.svelte'; | |
import NodeSearch from './NodeSearch.svelte'; | |
import StrRoi from '@carevoyance/reactive-data-ui/src/views/StrRoi.svelte'; | |
import { Boundary } from '@crownframework/svelte-error-boundary'; | |
import type { ModelProvider } from '@carevoyance/reactive-data-ui/src/types'; | |
function fakeCodeValues(codeKeys: string[]) { | |
return new Map( | |
codeKeys.map((key) => [key, Math.round(Math.random() * 20)]) | |
); | |
} |
This file contains hidden or 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
<script lang="typescript">import debounce from "just-debounce-it";\n' + | |
'import compare from "just-compare";\n' + | |
'import {\n' + | |
' loadModel,\n' + | |
' loadScenario,\n' + | |
' buildGraph\n' + | |
'} from "@carevoyance/reactive-data";\n' + | |
'import {parse as parseToml} from "@iarna/toml";\n' + | |
'import {tick} from "svelte";\n' + | |
'function fakeCodeValues(codeKeys) {\n' + | |
' return new Map(codeKeys.map((key) => [key, Math.round(Math.random() * 20)]));\n' + | |
'}\n' + |
This file contains hidden or 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
const sveltePreprocess = require('svelte-preprocess'); | |
const { typescript } = require('svelte-preprocess-esbuild'); | |
const dev = process.env.NODE_ENV === 'development'; | |
module.exports = { | |
preprocess: [ | |
typescript({ | |
define: { | |
'process.browser': 'true', | |
}, | |
}), | |
// sveltePreprocess({ | |
// postcss: require('./postcss.config'), | |
// typescript: false, | |
// }), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment