forked from x/icebergs
add some
This commit is contained in:
parent
c28a382295
commit
d3a7c38d5c
1
conf.go
1
conf.go
@ -364,6 +364,7 @@ const ( // gdb
|
|||||||
ROUTINE = "routine"
|
ROUTINE = "routine"
|
||||||
)
|
)
|
||||||
const ( // nfs
|
const ( // nfs
|
||||||
|
SIZE = "size"
|
||||||
SOURCE = "source"
|
SOURCE = "source"
|
||||||
SCRIPT = "script"
|
SCRIPT = "script"
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,7 @@ Volcanos(chat.ONIMPORT, {
|
|||||||
can.isCmdMode() && (can.user.toast = function() {})
|
can.isCmdMode() && (can.user.toast = function() {})
|
||||||
can.db.prefix = location.pathname.indexOf(p) > 0? location.pathname.split(p)[0]+p: "/wiki/portal/"
|
can.db.prefix = location.pathname.indexOf(p) > 0? location.pathname.split(p)[0]+p: "/wiki/portal/"
|
||||||
can.db.current = can.isCmdMode()? can.base.trimPrefix(location.pathname, can.db.prefix+"/", can.db.prefix): can.Option(nfs.PATH)
|
can.db.current = can.isCmdMode()? can.base.trimPrefix(location.pathname, can.db.prefix+"/", can.db.prefix): can.Option(nfs.PATH)
|
||||||
can.sup.onexport.link = function() { return can.db.prefix }
|
can.sup.onexport.link = function() { return can.misc.MergeURL(can, {pod: can.ConfSpace(), cmd: can.ConfIndex()}) }
|
||||||
can.require(["/plugin/local/wiki/word.js"])
|
can.require(["/plugin/local/wiki/word.js"])
|
||||||
can.Conf(html.PADDING, can.page.styleValueInt(can, "--portal-main-padding", can._output))
|
can.Conf(html.PADDING, can.page.styleValueInt(can, "--portal-main-padding", can._output))
|
||||||
can.onmotion.clear(can), can.isCmdMode() && can.onappend.style(can, html.OUTPUT)
|
can.onmotion.clear(can), can.isCmdMode() && can.onappend.style(can, html.OUTPUT)
|
||||||
|
@ -80,6 +80,7 @@ func (m *Message) Status(arg ...Any) *Message {
|
|||||||
}
|
}
|
||||||
func (m *Message) StatusTime(arg ...Any) *Message {
|
func (m *Message) StatusTime(arg ...Any) *Message {
|
||||||
args := []string{}
|
args := []string{}
|
||||||
|
kit.If(m.Option(MSG_DEBUG) == TRUE, func() { args = append(args, SIZE, "") })
|
||||||
kit.If(m.Option(MSG_DEBUG) == TRUE, func() { args = append(args, m.OptionSimple(LOG_TRACEID)...) })
|
kit.If(m.Option(MSG_DEBUG) == TRUE, func() { args = append(args, m.OptionSimple(LOG_TRACEID)...) })
|
||||||
kit.If(m.Option(MSG_USERPOD), func(p string) { args = append(args, SPACE, p) })
|
kit.If(m.Option(MSG_USERPOD), func(p string) { args = append(args, SPACE, p) })
|
||||||
return m.Status(TIME, m.Time(), arg, kit.MDB_COST, m.FormatCost(), args)
|
return m.Status(TIME, m.Time(), arg, kit.MDB_COST, m.FormatCost(), args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user