✨ RoadSign Sideload now built-in web ui
This commit is contained in:
2
pkg/sideload/view/.dockerignore
Normal file
2
pkg/sideload/view/.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
/dist
|
||||
/node_modules
|
@ -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)
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user