mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 17:24:05 +08:00
mac add code.ccc
This commit is contained in:
parent
dbe0234629
commit
67d8923ca8
@ -148,6 +148,20 @@ var Index = &ctx.Context{Name: "code", Help: "代码中心",
|
|||||||
map[string]interface{}{"type": "button", "label": "refresh"},
|
map[string]interface{}{"type": "button", "label": "refresh"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
map[string]interface{}{"componet_name": "ccc", "componet_help": "ccc", "template": "componet",
|
||||||
|
"context": "cli.shy", "componet_cmd": "context", "arguments": []interface{}{"@current_ctx", "@ccc"},
|
||||||
|
"display_result": "",
|
||||||
|
"inputs": []interface{}{
|
||||||
|
map[string]interface{}{"type": "choice", "name": "ccc",
|
||||||
|
"label": "ccc", "value": "command", "choice": []interface{}{
|
||||||
|
map[string]interface{}{"name": "command", "value": "command"},
|
||||||
|
map[string]interface{}{"name": "config", "value": "config"},
|
||||||
|
map[string]interface{}{"name": "cache", "value": "cache"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
map[string]interface{}{"type": "button", "label": "refresh"},
|
||||||
|
},
|
||||||
|
},
|
||||||
map[string]interface{}{"componet_name": "cmd", "componet_help": "cmd", "template": "componet",
|
map[string]interface{}{"componet_name": "cmd", "componet_help": "cmd", "template": "componet",
|
||||||
"context": "cli.shy", "componet_cmd": "context", "arguments": []interface{}{"@current_ctx", "command", "list"},
|
"context": "cli.shy", "componet_cmd": "context", "arguments": []interface{}{"@current_ctx", "command", "list"},
|
||||||
"pre_run": true, "display_result": "",
|
"pre_run": true, "display_result": "",
|
||||||
@ -155,7 +169,7 @@ var Index = &ctx.Context{Name: "code", Help: "代码中心",
|
|||||||
map[string]interface{}{"type": "button", "label": "refresh"},
|
map[string]interface{}{"type": "button", "label": "refresh"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
map[string]interface{}{"componet_name": "command_list", "componet_help": "command_list", "template": "componet",
|
map[string]interface{}{"componet_name": "history", "componet_help": "history", "template": "componet",
|
||||||
"context": "cli", "componet_cmd": "config", "arguments": []interface{}{"source_list"},
|
"context": "cli", "componet_cmd": "config", "arguments": []interface{}{"source_list"},
|
||||||
"pre_run": true, "display_result": "",
|
"pre_run": true, "display_result": "",
|
||||||
"inputs": []interface{}{
|
"inputs": []interface{}{
|
||||||
|
@ -387,7 +387,7 @@ function init_context() {
|
|||||||
send_command(option)
|
send_command(option)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function init_context() {
|
function init_command() {
|
||||||
var append = document.querySelector("table.append.command")
|
var append = document.querySelector("table.append.command")
|
||||||
var option = document.querySelector("form.option.command")
|
var option = document.querySelector("form.option.command")
|
||||||
insert_before(append, "input", {
|
insert_before(append, "input", {
|
||||||
|
@ -124,12 +124,9 @@
|
|||||||
{{if eq $form_type "upload"}}
|
{{if eq $form_type "upload"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<form class="option {{option .Meta "componet_name"}}"
|
<form class="option {{option .Meta "componet_name"}}"
|
||||||
data-last_componet_group="{{option . "last_componet_group"|meta}}"
|
|
||||||
data-last_componet_order="{{option . "last_componet_order"|meta}}"
|
|
||||||
data-componet_group="{{option . "componet_group"|meta}}"
|
data-componet_group="{{option . "componet_group"|meta}}"
|
||||||
data-componet_order="{{option . "componet_order"|meta}}"
|
data-componet_order="{{option . "componet_order"|meta}}"
|
||||||
data-componet_name="{{option . "componet_name"|meta}}"
|
data-componet_name="{{option . "componet_name"|meta}}"
|
||||||
data-componet_help="{{option . "componet_help"|meta}}"
|
|
||||||
{{if eq $form_type "upload"}}
|
{{if eq $form_type "upload"}}
|
||||||
method="POST" action="/upload" enctype="multipart/form-data"
|
method="POST" action="/upload" enctype="multipart/form-data"
|
||||||
onsubmit="onaction(event,'upload')"
|
onsubmit="onaction(event,'upload')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user