mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
add icebergs
This commit is contained in:
parent
880cb94dd3
commit
7d4a0efa09
1
Makefile
1
Makefile
@ -9,6 +9,7 @@ install:prepare
|
|||||||
@bin/boot.sh restart && date
|
@bin/boot.sh restart && date
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
|
@go get github.com/shylinux/icebergs
|
||||||
@go get github.com/shylinux/toolkits
|
@go get github.com/shylinux/toolkits
|
||||||
@go get github.com/nsf/termbox-go
|
@go get github.com/nsf/termbox-go
|
||||||
@go get github.com/gorilla/websocket
|
@go get github.com/gorilla/websocket
|
||||||
|
@ -2,6 +2,7 @@ package ctx
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
_ "github.com/shylinux/icebergs"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
kit share "共享" public "web.chat.share" \
|
kit share "共享" public "web.chat.share" \
|
||||||
select "" name type values "wiki file" \
|
select "" name kind values "wiki file" \
|
||||||
text "miss.md" name story imports plugin_story view long \
|
text "miss.md" name story imports plugin_story view long \
|
||||||
feature display chart \
|
|
||||||
button "共享"
|
button "共享"
|
||||||
|
|
||||||
kit note "记事本" public "_:web.wiki.note" "@you" \
|
kit note "记事本" public "_:web.wiki.note" "@you" \
|
||||||
@ -43,10 +42,10 @@ kit xls "表格" "index.js" "index.css" private "web.wiki.xls" \
|
|||||||
exports xls_id id
|
exports xls_id id
|
||||||
|
|
||||||
kit chart "图表" public "web.wiki.chart" \
|
kit chart "图表" public "web.wiki.chart" \
|
||||||
select "" name type values "chain block" action auto \
|
select "" name kind values "chain block" action auto \
|
||||||
textarea "" name happy half 4 height "200px" \
|
textarea "" name happy half 4 height "200px" \
|
||||||
select "" name type values "white red yellow green blue black" action auto \
|
select "" name kind values "white red yellow green blue black" action auto \
|
||||||
select "" name type values "black blue green yellow red white" action auto \
|
select "" name kind values "black blue green yellow red white" action auto \
|
||||||
feature display chart \
|
feature display inner \
|
||||||
button "查看"
|
button "查看"
|
||||||
|
|
||||||
|
@ -684,9 +684,18 @@ function Pane(page, field) {
|
|||||||
if (type == "plugin" && line.name || type == "field") {
|
if (type == "plugin" && line.name || type == "field") {
|
||||||
page.Require(line.init? line.group+"/"+line.init: "", function(init) {
|
page.Require(line.init? line.group+"/"+line.init: "", function(init) {
|
||||||
page.Require(line.view? line.group+"/"+line.view: "", function(view) {
|
page.Require(line.view? line.group+"/"+line.view: "", function(view) {
|
||||||
can.user.carte = page.carte.Pane.Show
|
can.user.carte = page.carte.Pane.Show;
|
||||||
can.user.toast = page.toast.Pane.Show
|
can.user.toast = page.toast.Pane.Show;
|
||||||
line.group == "favor" && can.Plugin(can, ui.item.Meta, function(event, cmds, cbs) {
|
(
|
||||||
|
line.group == "docker" ||
|
||||||
|
line.group == "story" ||
|
||||||
|
line.group == "favor"
|
||||||
|
) && can.Plugin(can, ui.item.Meta, function(event, cmds, cbs) {
|
||||||
|
var msg = ctx.Event(event)
|
||||||
|
kit.Selector(action, "input", function(item, index) {
|
||||||
|
item.value && msg.Option(item.name, item.value)
|
||||||
|
})
|
||||||
|
|
||||||
ctx.Run(event, option.dataset, [line.river, line.storm, line.action].concat(cmds), cbs)
|
ctx.Run(event, option.dataset, [line.river, line.storm, line.action].concat(cmds), cbs)
|
||||||
}, ui.item) ||
|
}, ui.item) ||
|
||||||
pane.Plugin(page, pane, ui.item, init, function(event, cmds, cbs) {
|
pane.Plugin(page, pane, ui.item, init, function(event, cmds, cbs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user