-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04f33e4
commit f1462ab
Showing
9 changed files
with
87 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script setup lang="ts"> | ||
import { useServers } from '@stores/servers'; | ||
import { useWS } from '@stores/ws'; | ||
import { ref } from 'vue'; | ||
const ws = useWS(); | ||
const props = defineProps<{ | ||
server: string | ||
}>() | ||
const servers = useServers(); | ||
const server = ref(await servers.getServerByID(props.server)); | ||
const isInstalledResp = await ws.sendRequest("integrator", { | ||
id: props.server, | ||
action: "isInstalled" | ||
}); | ||
if(isInstalledResp.type != "isInstalled") throw new Error("bad type"); | ||
const status = ref(); | ||
async function getStatus() { | ||
const statusResp = await ws.sendRequest("integrator", { | ||
id: props.server, | ||
action: "status" | ||
}); | ||
if(statusResp.type != "status") return; | ||
status.value = statusResp.status; | ||
} | ||
</script> | ||
|
||
<template> | ||
Test<br/> | ||
{{ server.name }} | ||
{{ isInstalledResp.installed }} | ||
<button @click="getStatus">get status</button> | ||
<pre>{{ JSON.stringify(status, null, 2) }}</pre> | ||
</template> |