-
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.
getting it to compile (but its broken)
- Loading branch information
1 parent
111558d
commit b5f1549
Showing
13 changed files
with
101 additions
and
105 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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
// This file was generated by [rspc](https://github.com/oscartbeaumont/rspc). Do not edit this file manually. | ||
|
||
export type Procedures = { | ||
queries: | ||
{ key: "mods", input: number, result: Mod[] } | | ||
{ key: "version", input: never, result: string }, | ||
mutations: never, | ||
subscriptions: never | ||
}; | ||
|
||
export type Mod = { id: number; mod: string; version: string | null; name: string; file: string; size: number; hash: string | null; installed_files: string; sourceId: number; instanceId: number } | ||
|
||
export type String = string | ||
export type DbMod = any; | ||
export type Instance = any; | ||
export type ModLoader = any; | ||
export type ModLoaderType = any; | ||
export type Mod = any; | ||
export type Source = any; | ||
export type SourceMapping = any; | ||
export type ModVersion = any; | ||
export type PluginInfo = any; |
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,12 +1,11 @@ | ||
import { get } from "svelte/store"; | ||
import { commands } from "./bindings/app"; | ||
import { plugins } from "./stores"; | ||
import { unwrap } from "./util"; | ||
// import { unwrap } from "./util"; | ||
|
||
export const boot = async () => { | ||
console.log("Backend booting..."); | ||
|
||
plugins.set(unwrap(await commands.getPlugins(null)).sort((a, b) => a.game - b.game)); | ||
// plugins.set(unwrap(await commands.getPlugins(null)).sort((a, b) => a.game - b.game)); | ||
|
||
console.log(get(plugins)); | ||
}; |
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,4 +1,5 @@ | ||
import { writable } from "svelte/store"; | ||
import type { PluginInfo } from "./bindings/app"; | ||
|
||
type PluginInfo = any; | ||
|
||
export const plugins = writable<PluginInfo[]>([]); |
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
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
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
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
Oops, something went wrong.