Add tauri commands for single repo and cobs

This commit is contained in:
Sebastian Martinez
2024-09-06 15:33:55 +02:00
committed by Rūdolfs Ošiņš
parent 0a059da762
commit 560891d1a6
14 changed files with 282 additions and 25 deletions
+15
View File
@@ -4,9 +4,24 @@
import Header from "@app/components/Header.svelte";
import RepoCard from "@app/components/RepoCard.svelte";
import { onMount } from "svelte";
import { invoke } from "@tauri-apps/api/core";
export let repos: RepoInfo[];
export let config: Config;
onMount(async () => {
const patches = await invoke("list_patches", {
rid: "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
status: "open",
});
const issues = await invoke("list_issues", {
rid: "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
status: "open",
});
console.log(patches, issues);
});
</script>
<style>