RoadSign Sideload now built-in web ui

This commit is contained in:
2024-01-01 18:16:57 +08:00
parent 86b65cd21f
commit 14a7d936d2
7 changed files with 54 additions and 5 deletions

View File

@ -0,0 +1,2 @@
/dist
/node_modules

View File

@ -92,7 +92,7 @@ const submitting = ref(false)
const publishing = ref(false)
const editing = ref(false)
const config = ref<string | null>(null)
const config = ref<string | undefined>(undefined)
async function editConfig() {
const resp = await fetch(`/cgi/sites/cfg/${props.id}`)
@ -101,6 +101,8 @@ async function editConfig() {
}
async function syncConfig() {
if (config.value == null) return
let content
try {
content = yaml.load(config.value)

View File

@ -21,7 +21,7 @@ import SitesTableExpand from "@/components/data/sites-table-expand.vue"
import SitesTableAction from "@/components/data/sites-table-action.vue"
import SitesTableAdd from "@/components/data/sites-table-add.vue"
const columns = [
const columns: any[] = [
{
type: "expand",
renderExpand(row: any) {