Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ `web/src/app.d.ts` : define new type `Smithereens` + `web/src/lib/constants.ts` : define new type `defaultSmithereens` Both of `Smithereens` and `defaultSmithereens` have `fragmentsData`, `fragmentsLibrary`, `muropeptidesData` and `muropeptidesLibrary` defined. + Remove `fragmentsLibraries` and `muropeptidesLibraries` from `web/src/lib/pgfinder.ts` + Add new `web/src/lib/smithereens.ts` this imports the `defaultSmithereens` and uses it to create a new `smithereens` object of type `Smithereens` with values from `defaultSmithereens`. There is then an `async` command which should load the `static/data/{reference_masses,target_structures}/index.json` and then `onMount()` when `Ready` return these. + `web/src/routes/+page.svelte` then... + imports `Smithereens` from `web/src/lib/smithereens.ts` as a worker. + Meant to start Smithereens with if/else statements for different messages and hoping to get the `fragmentsLibrariesIndex` and `muropeptidesLibrariesIndex` returned but it seems not to happen. Questions + + What should the types of `proxy` in `postResult()` and `error` in `postError()` (both within `web/src/lib/smithereens.ts`) be?
- Loading branch information