shrug
This commit is contained in:
@@ -135,7 +135,7 @@ const availableVersion = ref([11, 12])
|
|||||||
const tableName = ref()
|
const tableName = ref()
|
||||||
const tableLink = ref()
|
const tableLink = ref()
|
||||||
|
|
||||||
var interval
|
var interval: number
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
interval = setInterval(() => {
|
interval = setInterval(() => {
|
||||||
@@ -195,7 +195,7 @@ function readFoundryStatus() {
|
|||||||
if (table.active) {
|
if (table.active) {
|
||||||
axios.get(`/${table.table_link}/api/status`).then((resp) => {
|
axios.get(`/${table.table_link}/api/status`).then((resp) => {
|
||||||
if (resp.status = 200) {
|
if (resp.status = 200) {
|
||||||
foundryStatus.running = !!resp.data.version
|
foundryStatus.running = resp.data.version
|
||||||
console.log(resp)
|
console.log(resp)
|
||||||
console.log(foundryStatus)
|
console.log(foundryStatus)
|
||||||
foundryStatus.active = resp.data.active
|
foundryStatus.active = resp.data.active
|
||||||
@@ -205,7 +205,7 @@ function readFoundryStatus() {
|
|||||||
foundryStatus.running = false
|
foundryStatus.running = false
|
||||||
foundryStatus.active = false
|
foundryStatus.active = false
|
||||||
foundryStatus.world = 'Not Loaded'
|
foundryStatus.world = 'Not Loaded'
|
||||||
foundryStatus.users = '-'
|
foundryStatus.users = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -232,7 +232,7 @@ function stopTable() {
|
|||||||
foundryStatus.running = false
|
foundryStatus.running = false
|
||||||
foundryStatus.active = false
|
foundryStatus.active = false
|
||||||
foundryStatus.world = 'Not Loaded'
|
foundryStatus.world = 'Not Loaded'
|
||||||
foundryStatus.users = '-'
|
foundryStatus.users = 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ function buildButtonModel(table: any) {
|
|||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
|
|
||||||
<Column header="Close">
|
<Column header="Close">
|
||||||
<template #body="slotProps">
|
<template #body="slotProps">
|
||||||
<Button label="Close" @click="stopTable(slotProps.data.id)" />
|
<Button label="Close" @click="stopTable(slotProps.data.id)" />
|
||||||
|
|||||||
@@ -20,6 +20,6 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
allowedHosts: true,
|
allowedHosts: true,
|
||||||
host: true,
|
host: true,
|
||||||
port: 5173
|
port: 5173,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user