mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add git
This commit is contained in:
parent
bfe2f0cf95
commit
b2f9a84a5b
5
frame.js
5
frame.js
@ -429,6 +429,11 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
|||||||
can.page.style(can, target, html.HEIGHT, h, html.WIDTH, w), width -= w
|
can.page.style(can, target, html.HEIGHT, h, html.WIDTH, w), width -= w
|
||||||
}
|
}
|
||||||
}), can.core.List(list, function(item) { if (can.base.isArray(item)) { layout(type == FLOW? FLEX: FLOW, item, height, width) } }) }
|
}), can.core.List(list, function(item) { if (can.base.isArray(item)) { layout(type == FLOW? FLEX: FLOW, item, height, width) } }) }
|
||||||
|
ui.filter = can.onappend.input(can, {type: html.TEXT, name: web.FILTER, placeholder: "search in n items", onkeyup: function(event) {
|
||||||
|
can.page.Select(can, ui.project, html.DIV_ITEM, function(target) {
|
||||||
|
can.onmotion.toggle(can, target, target.innerText.indexOf(event.target.value) > -1 || target == ui.filter.parentNode)
|
||||||
|
})
|
||||||
|
}}, "", ui.project)
|
||||||
ui.layout = function(height, width, delay, cb) { can.onmotion.delay(can, function() { defer = [], layout(type, ui.list, height, width), defer.forEach(function(cb) { cb() }), cb && cb(content_height, content_width) }, delay||0) }; return ui
|
ui.layout = function(height, width, delay, cb) { can.onmotion.delay(can, function() { defer = [], layout(type, ui.list, height, width), defer.forEach(function(cb) { cb() }), cb && cb(content_height, content_width) }, delay||0) }; return ui
|
||||||
},
|
},
|
||||||
tabview: function(can, meta, list, target) { var ui = can.page.Append(can, target, [html.ACTION, html.OUTPUT])
|
tabview: function(can, meta, list, target) { var ui = can.page.Append(can, target, [html.ACTION, html.OUTPUT])
|
||||||
|
21
index.css
21
index.css
@ -219,6 +219,10 @@ div.item.select input { border-radius:0; min-width:60px; }
|
|||||||
div.project div.zone div.list { clear:both; }
|
div.project div.zone div.list { clear:both; }
|
||||||
div.layout.flex>div.output { float:left; clear:none; }
|
div.layout.flex>div.output { float:left; clear:none; }
|
||||||
fieldset>div.layout { clear:both; }
|
fieldset>div.layout { clear:both; }
|
||||||
|
fieldset>div.output>div.project>div.item.filter { padding:0; }
|
||||||
|
fieldset>div.output>div.project { border-right:gray solid 1px; min-width:120px; max-width:240px; }
|
||||||
|
fieldset>div.output div.profile { border-left:gray solid 1px; max-width:240px; }
|
||||||
|
fieldset>div.output div.display { border-top:gray solid 1px; }
|
||||||
/* hover */
|
/* hover */
|
||||||
legend:hover { background-color:skyblue; }
|
legend:hover { background-color:skyblue; }
|
||||||
select:hover { background-color:gray; color:cyan; }
|
select:hover { background-color:gray; color:cyan; }
|
||||||
@ -332,7 +336,7 @@ fieldset.cmd>div.item.avatar>img { height:32px; }
|
|||||||
fieldset.cmd>div.item.usernick { padding:5px 10px; line-height:22px; float:right; }
|
fieldset.cmd>div.item.usernick { padding:5px 10px; line-height:22px; float:right; }
|
||||||
fieldset.panel.Action.cmd>div.toggle.project { display:none; }
|
fieldset.panel.Action.cmd>div.toggle.project { display:none; }
|
||||||
fieldset.panel.Search div.story[data-type=spark] { margin:0; }
|
fieldset.panel.Search div.story[data-type=spark] { margin:0; }
|
||||||
fieldset.panel.Search a { color:yellow; }
|
// fieldset.panel.Search a { color:yellow; }
|
||||||
fieldset.plugin.location>div.action input[type=text] { width:40px; }
|
fieldset.plugin.location>div.action input[type=text] { width:40px; }
|
||||||
fieldset.plugin.config form.option input[name=key] { width:240px; }
|
fieldset.plugin.config form.option input[name=key] { width:240px; }
|
||||||
fieldset.plugin.parse.cmd>legend { display:none; }
|
fieldset.plugin.parse.cmd>legend { display:none; }
|
||||||
@ -343,10 +347,11 @@ fieldset.plugin.inner.cmd>legend { display:none; }
|
|||||||
fieldset.plugin.inner.cmd>div.action { display:none; }
|
fieldset.plugin.inner.cmd>div.action { display:none; }
|
||||||
fieldset.plugin.inner.cmd>form.option { display:none; }
|
fieldset.plugin.inner.cmd>form.option { display:none; }
|
||||||
fieldset.plan div.output div.content>table.content { height:100%; width:100%; }
|
fieldset.plan div.output div.content>table.content { height:100%; width:100%; }
|
||||||
fieldset.xterm div.output { border-left:gray solid 1px; border-top:gray solid 1px; }
|
fieldset.xterm div.layout div.output { border-left:gray solid 1px; border-top:gray solid 1px; }
|
||||||
fieldset.xterm div.layout div.output.select { border:blue solid 1px; }
|
fieldset.xterm div.layout div.output.select { border:blue solid 1px; }
|
||||||
fieldset.xterm div.action>div.tabs.select { color:blue; }
|
fieldset.xterm div.action>div.tabs.select { color:blue; }
|
||||||
fieldset.xterm.output>div.output { overflow:hidden; }
|
// fieldset.xterm.output>div.output { overflow:hidden; }
|
||||||
|
fieldset.draw>form.option>div.item.pid>input { width:60px; }
|
||||||
fieldset.draw div.output svg { margin-bottom:-4px; }
|
fieldset.draw div.output svg { margin-bottom:-4px; }
|
||||||
fieldset.draw.trend div.output svg { background-color:#1b5b738c; }
|
fieldset.draw.trend div.output svg { background-color:#1b5b738c; }
|
||||||
fieldset.draw.spide div.output svg text { cursor:pointer; }
|
fieldset.draw.spide div.output svg text { cursor:pointer; }
|
||||||
@ -381,11 +386,11 @@ body.mobile table.layout td.content div.toggle.profile { width:30px; padding-top
|
|||||||
body.mobile table.layout td.content div.toggle.display { margin-top:-30px; height:30px; }
|
body.mobile table.layout td.content div.toggle.display { margin-top:-30px; height:30px; }
|
||||||
body.mobile table.layout td.content div.toggle.display>div { translate:5px -15px; }
|
body.mobile table.layout td.content div.toggle.display>div { translate:5px -15px; }
|
||||||
/* table card */
|
/* table card */
|
||||||
div.output.card div.item.stop { color:gray; }
|
div.output.card>div.item.stop { color:gray; }
|
||||||
div.output.card div.item { padding:10px; border:#e7e7e7 solid 1px; margin:10px; width:240px; float:left; }
|
div.output.card>div.item { padding:10px; border:#e7e7e7 solid 1px; margin:10px; width:240px; float:left; }
|
||||||
div.output.card div.item>div.title { font-size:1.2rem; font-weight:bold; padding:10px; border-bottom:solid 1px #e7e7e7; }
|
div.output.card>div.item>div.title { font-size:1.2rem; font-weight:bold; padding:10px; border-bottom:solid 1px #e7e7e7; }
|
||||||
div.output.card div.item>div.content { padding:10px; height:45px; }
|
div.output.card>div.item>div.content { padding:10px; height:45px; }
|
||||||
div.output.card div.action { text-align:right; width:100%; }
|
div.output.card>div.item>div.action { text-align:right; width:100%; }
|
||||||
body.white div.output.card div.item input[type=button] { background-color:transparent; }
|
body.white div.output.card div.item input[type=button] { background-color:transparent; }
|
||||||
body.mobile div.output.card div.item { height:160px; float:none; }
|
body.mobile div.output.card div.item { height:160px; float:none; }
|
||||||
body.mobile.simple div.output.card div.item { width:100%; }
|
body.mobile.simple div.output.card div.item { width:100%; }
|
||||||
|
@ -59,6 +59,7 @@ Volcanos("user", {
|
|||||||
html.PLUGIN, "插件", html.LABEL, "标签", html.HEIGHT, "高度", html.WIDTH, "宽度", ice.SHOW, "显示", ice.HIDE, "隐藏", chat.PROJECT, "项目", chat.PROFILE, "详情", chat.ACTIONS, "参数",
|
html.PLUGIN, "插件", html.LABEL, "标签", html.HEIGHT, "高度", html.WIDTH, "宽度", ice.SHOW, "显示", ice.HIDE, "隐藏", chat.PROJECT, "项目", chat.PROFILE, "详情", chat.ACTIONS, "参数",
|
||||||
"full", "全屏", "Close", "关闭", "Close Other", "关闭其它",
|
"full", "全屏", "Close", "关闭", "Close Other", "关闭其它",
|
||||||
"confirm", "确定",
|
"confirm", "确定",
|
||||||
|
"today", "今天",
|
||||||
)[text]||text
|
)[text]||text
|
||||||
},
|
},
|
||||||
time: function(can, time, fmt) { var now = can.base.Date(time)
|
time: function(can, time, fmt) { var now = can.base.Date(time)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
fieldset.Search { background-color:#061c3ceb; padding:10px; position:fixed; left:230px; top:48px; }
|
fieldset.Search { background-color:#061c3ceb; padding:10px; position:fixed; left:230px; top:48px; }
|
||||||
fieldset.Search>div.action>div.item.filter>input { margin-right:0; width:320px; }
|
fieldset.Search>div.action>div.item.filter>input { margin-right:0; width:320px; }
|
||||||
fieldset.Search>div.output table.content { width:100%; }
|
fieldset.Search>div.output table.content { width:100%; }
|
||||||
|
fieldset.Search>div.output>div.profile { max-width:unset; }
|
||||||
|
@ -26,6 +26,7 @@ fieldset.inner>div.output>div.layout.flow>div.tabs { font-family:monospace; font
|
|||||||
fieldset.inner>div.output>div.layout.flow>div.path { font-family:monospace; font-size:14px; display:none; }
|
fieldset.inner>div.output>div.layout.flow>div.path { font-family:monospace; font-size:14px; display:none; }
|
||||||
fieldset.inner>div.output>div.layout.flow>div.display div.status>div { padding:5px; float:left; }
|
fieldset.inner>div.output>div.layout.flow>div.display div.status>div { padding:5px; float:left; }
|
||||||
fieldset.inner>div.output>div.layout.flow>div.layout>div.profile div.status>div { padding:5px; float:left; }
|
fieldset.inner>div.output>div.layout.flow>div.layout>div.profile div.status>div { padding:5px; float:left; }
|
||||||
|
fieldset.inner>div.output>div.layout.flow>div.layout>div.profile { max-width:unset; }
|
||||||
fieldset.inner>div.output>div.layout.flow { position:relative; }
|
fieldset.inner>div.output>div.layout.flow { position:relative; }
|
||||||
fieldset.inner.cmd>div.output>div.project { border-right:dimgray solid 1px; }
|
fieldset.inner.cmd>div.output>div.project { border-right:dimgray solid 1px; }
|
||||||
fieldset.inner.cmd>div.output div.profile { border-left:dimgray solid 1px; }
|
fieldset.inner.cmd>div.output div.profile { border-left:dimgray solid 1px; }
|
||||||
|
@ -14,6 +14,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.cl
|
|||||||
})
|
})
|
||||||
can.db = {paths: paths, tabview: {}, history: [], _history: [], toolkit: {}}, can.onengine.plugin(can, can.onplugin), can.sup.onimport._process = function() {}
|
can.db = {paths: paths, tabview: {}, history: [], _history: [], toolkit: {}}, can.onengine.plugin(can, can.onplugin), can.sup.onimport._process = function() {}
|
||||||
can.ui = can.onappend.layout(can, [html.PROJECT, [html.TABS, nfs.PATH, [html.CONTENT, html.PROFILE], html.DISPLAY, html.PLUG]])
|
can.ui = can.onappend.layout(can, [html.PROJECT, [html.TABS, nfs.PATH, [html.CONTENT, html.PROFILE], html.DISPLAY, html.PLUG]])
|
||||||
|
can.onmotion.clear(can, can.ui.project)
|
||||||
can.ui._content = can.ui.content, can.ui._profile = can.ui.profile, can.ui._display = can.ui.display, can.onmotion.hidden(can, can.ui.plug)
|
can.ui._content = can.ui.content, can.ui._profile = can.ui.profile, can.ui._display = can.ui.display, can.onmotion.hidden(can, can.ui.plug)
|
||||||
switch (can.Mode()) {
|
switch (can.Mode()) {
|
||||||
case chat.SIMPLE: // no break
|
case chat.SIMPLE: // no break
|
||||||
@ -142,7 +143,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb, target) { can.onmotion.cl
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function load(msg) { var skip = false; can.db.tabview[key] = msg
|
function load(msg) { var skip = false; can.db.tabview[key] = msg
|
||||||
can.onimport.tabs(can, [{name: can.base.beginWith(file, "http://")? file.split(ice.QS)[0]: file.split(isIndex()? ice.PT: ice.PS).pop(), text: file, _menu: shy([
|
can.onimport.tabs(can, [{name: can.base.beginWith(file, "http://")? file.split(ice.QS)[0]: file.split(ice.FS)[0].split(isIndex()? ice.PT: ice.PS).pop(), text: file, _menu: shy([
|
||||||
nfs.SAVE, nfs.TRASH, web.REFRESH,
|
nfs.SAVE, nfs.TRASH, web.REFRESH,
|
||||||
], function(event, button, meta) { can.onaction[button](event, can, button) })}], function(event, tabs) {
|
], function(event, button, meta) { can.onaction[button](event, can, button) })}], function(event, tabs) {
|
||||||
can._tab = msg._tab = tabs._target, show(skip), skip = true
|
can._tab = msg._tab = tabs._target, show(skip), skip = true
|
||||||
@ -266,6 +267,7 @@ Volcanos(chat.ONSYNTAX, {_init: function(can, msg, cb) {
|
|||||||
} else { can.onmotion.hidden(can, can.ui.profile), can.onmotion.hidden(can, can.ui.display) }
|
} else { can.onmotion.hidden(can, can.ui.profile), can.onmotion.hidden(can, can.ui.display) }
|
||||||
can.db.parse = can.base.Ext(can.db.file), can.Status(ice.MODE, mdb.PLUGIN); return can.db.file
|
can.db.parse = can.base.Ext(can.db.file), can.Status(ice.MODE, mdb.PLUGIN); return can.db.file
|
||||||
}, can.ui._content, can.ui._profile, can.ui._display)) { return can.base.isFunc(cb) && cb(msg._content) }
|
}, can.ui._content, can.ui._profile, can.ui._display)) { return can.base.isFunc(cb) && cb(msg._content) }
|
||||||
|
if (can.base.Ext(can.Option(nfs.FILE)) == nfs.SVG) { msg.Option(ctx.INDEX, web.WIKI_DRAW+ice.FS+can.Option(nfs.PATH)+can.Option(nfs.FILE)) }
|
||||||
if (msg.Option(ctx.INDEX)) { return can.onsyntax._index(can, msg, cb) }
|
if (msg.Option(ctx.INDEX)) { return can.onsyntax._index(can, msg, cb) }
|
||||||
function show(p) { can.db.max = 0, can.core.List(msg.Result().split(ice.NL), function(item) { can.onaction.appendLine(can, item) })
|
function show(p) { can.db.max = 0, can.core.List(msg.Result().split(ice.NL), function(item) { can.onaction.appendLine(can, item) })
|
||||||
can.onengine.signal(can, VIEW_CREATE, msg), can.base.isFunc(cb) && cb(msg._content = can.ui._content)
|
can.onengine.signal(can, VIEW_CREATE, msg), can.base.isFunc(cb) && cb(msg._content = can.ui._content)
|
||||||
@ -280,9 +282,8 @@ Volcanos(chat.ONSYNTAX, {_init: function(can, msg, cb) {
|
|||||||
src: can.misc.MergePodCmd(can, {pod: can.Option(nfs.FILE)}), height: can.ui.content.offsetHeight, width: can.ui.content.offsetWidth}], can.ui._content)), true
|
src: can.misc.MergePodCmd(can, {pod: can.Option(nfs.FILE)}), height: can.ui.content.offsetHeight, width: can.ui.content.offsetWidth}], can.ui._content)), true
|
||||||
} },
|
} },
|
||||||
_index: function(can, msg, cb) { if (msg._content) { return can.base.isFunc(cb) && cb(msg._content) } if (can.onsyntax._space(can, msg, cb)) { return }
|
_index: function(can, msg, cb) { if (msg._content) { return can.base.isFunc(cb) && cb(msg._content) } if (can.onsyntax._space(can, msg, cb)) { return }
|
||||||
|
|
||||||
var index = msg.Option(ctx.INDEX).split(ice.FS), item = {type: chat.STORY, index: index[0], args: index.slice(1)}
|
var index = msg.Option(ctx.INDEX).split(ice.FS), item = {type: chat.STORY, index: index[0], args: index.slice(1)}
|
||||||
if (can.base.isIn(item.index, web.WIKI_WORD)) { item.style = html.OUTPUT }
|
|
||||||
// if (can.base.isIn(item.index, web.CODE_XTERM, web.WIKI_WORD)) { item.style = html.OUTPUT }
|
|
||||||
can.onimport.plug(can, item, function(sub) { sub.onimport.size(sub, can.ui.content.offsetHeight, can.ui.content.offsetWidth, true)
|
can.onimport.plug(can, item, function(sub) { sub.onimport.size(sub, can.ui.content.offsetHeight, can.ui.content.offsetWidth, true)
|
||||||
sub.onimport._open = function(sub, msg, arg) { can.onimport.tabview(can, "", arg, web.SPACE), sub.Update() }
|
sub.onimport._open = function(sub, msg, arg) { can.onimport.tabview(can, "", arg, web.SPACE), sub.Update() }
|
||||||
sub.onaction.close = function() { can.onaction.back(can), msg._tab._close() }
|
sub.onaction.close = function() { can.onaction.back(can), msg._tab._close() }
|
||||||
|
@ -25,12 +25,18 @@ Volcanos(chat.ONFIGURE, {
|
|||||||
source: function(can, target, zone, path) { var args = can.base.getValid(can.misc.SearchHash(can), [can.Option(nfs.PATH), can.Option(nfs.FILE)])
|
source: function(can, target, zone, path) { var args = can.base.getValid(can.misc.SearchHash(can), [can.Option(nfs.PATH), can.Option(nfs.FILE)])
|
||||||
function show(target, zone, path) { can.run(can.request({}, {dir_root: path, dir_deep: true}), [nfs.PWD], function(msg) { can.onmotion.clear(can, target)
|
function show(target, zone, path) { can.run(can.request({}, {dir_root: path, dir_deep: true}), [nfs.PWD], function(msg) { can.onmotion.clear(can, target)
|
||||||
if (path == nfs.SRC) { can.ui.zone.source.refresh = function() { show(target, zone, path) }
|
if (path == nfs.SRC) { can.ui.zone.source.refresh = function() { show(target, zone, path) }
|
||||||
zone._icon(kit.Dict(web.REFRESH, function(event) { show(target, zone, path) },
|
zone._icon(kit.Dict(
|
||||||
|
web.REFRESH, function(event) { show(target, zone, path) },
|
||||||
mdb.CREATE, function(event) { can.user.carteRight(event, can, can.onaction, [nfs.MODULE, nfs.SCRIPT]) },
|
mdb.CREATE, function(event) { can.user.carteRight(event, can, can.onaction, [nfs.MODULE, nfs.SCRIPT]) },
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
var total, cache; function add(list) {
|
var total, cache; function add(list) {
|
||||||
can.core.List(list, function(item) { if (path == args[0] && args[1].indexOf(item.path) == 0) { item.expand = true }
|
can.core.List(list, function(item) { if (path == args[0] && args[1].indexOf(item.path) == 0) { item.expand = true }
|
||||||
|
item._menu = shy({trash: function(event, button) {
|
||||||
|
can.runAction(event, nfs.TRASH, [path+item.path], function() {
|
||||||
|
show(target, zone, path)
|
||||||
|
})
|
||||||
|
}})
|
||||||
item._init = function(target) { item._remove = function() { can.page.Remove(can, target.parentNode), delete(cache[item.path]) } }
|
item._init = function(target) { item._remove = function() { can.page.Remove(can, target.parentNode), delete(cache[item.path]) } }
|
||||||
}); return can.onimport.tree(can, list, nfs.PATH, ice.PS, function(event, item) { can.onimport.tabview(can, path, item.path) }, target, cache)
|
}); return can.onimport.tree(can, list, nfs.PATH, ice.PS, function(event, item) { can.onimport.tabview(can, path, item.path) }, target, cache)
|
||||||
} cache = add(msg.Table()), can.Status(mdb.COUNT, total += zone._total(msg.Length()))
|
} cache = add(msg.Table()), can.Status(mdb.COUNT, total += zone._total(msg.Length()))
|
||||||
@ -62,7 +68,7 @@ Volcanos(chat.ONFIGURE, {
|
|||||||
} }
|
} }
|
||||||
}) },
|
}) },
|
||||||
})
|
})
|
||||||
Volcanos(chat.ONACTION, {list: ["编译", "调试", "首页", "提交", "收藏", "计划"],
|
Volcanos(chat.ONACTION, {list: ["编译", "提交", "首页", "收藏", "脑图", "计划"],
|
||||||
_run: function(event, can, button, args, cb) { can.runAction(event, button, args, cb||function(msg) {
|
_run: function(event, can, button, args, cb) { can.runAction(event, button, args, cb||function(msg) {
|
||||||
can.onimport.tabview(can, msg.Option(nfs.PATH), msg.Option(nfs.FILE)), can.ui.zone.source.refresh(), can.user.toastSuccess(can, button)
|
can.onimport.tabview(can, msg.Option(nfs.PATH), msg.Option(nfs.FILE)), can.ui.zone.source.refresh(), can.user.toastSuccess(can, button)
|
||||||
}) },
|
}) },
|
||||||
@ -100,10 +106,10 @@ Volcanos(chat.ONACTION, {list: ["编译", "调试", "首页", "提交", "收藏"
|
|||||||
var sub = can.db.toolkit[list[0]]; sub? sub.select(): can.onimport.exts(can, list[0])
|
var sub = can.db.toolkit[list[0]]; sub? sub.select(): can.onimport.exts(can, list[0])
|
||||||
}) },
|
}) },
|
||||||
"编译": function(event, can) { can.onaction.compile(event, can, code.COMPILE) },
|
"编译": function(event, can) { can.onaction.compile(event, can, code.COMPILE) },
|
||||||
"调试": function(event, can) { can.onimport.tabview(can, "", can.base.MergeURL(location.href, log.DEBUG, ice.TRUE), web.SPACE) },
|
|
||||||
"首页": function(event, can) { can.onimport.tabview(can, "", location.origin+ice.PS+(can.misc.Search(can, log.DEBUG) == ice.TRUE? "?debug=true": ""), web.SPACE) },
|
|
||||||
"提交": function(event, can) { can.onimport.tabview(can, "", web.CODE_GIT_STATUS, ctx.INDEX) },
|
"提交": function(event, can) { can.onimport.tabview(can, "", web.CODE_GIT_STATUS, ctx.INDEX) },
|
||||||
|
"首页": function(event, can) { can.onimport.tabview(can, "", location.origin+ice.PS+(can.misc.Search(can, log.DEBUG) == ice.TRUE? "?debug=true": ""), web.SPACE) },
|
||||||
"收藏": function(event, can) { can.onimport.tabview(can, "", web.CHAT_FAVOR, ctx.INDEX) },
|
"收藏": function(event, can) { can.onimport.tabview(can, "", web.CHAT_FAVOR, ctx.INDEX) },
|
||||||
|
"脑图": function(event, can) { can.onimport.tabview(can, "", web.WIKI_DRAW, ctx.INDEX) },
|
||||||
"计划": function(event, can) { can.onimport.tabview(can, "", web.TEAM_PLAN, ctx.INDEX) },
|
"计划": function(event, can) { can.onimport.tabview(can, "", web.TEAM_PLAN, ctx.INDEX) },
|
||||||
"全屏": function(event, can) { can._target.requestFullScreen() },
|
"全屏": function(event, can) { can._target.requestFullScreen() },
|
||||||
"录屏": function(event, can) { window.openapp("QuickTime Player") },
|
"录屏": function(event, can) { window.openapp("QuickTime Player") },
|
||||||
|
@ -2,6 +2,9 @@ fieldset.plan>div.output td.content { position:relative; }
|
|||||||
fieldset.plan>div.output table.content.plan th { text-align:center; }
|
fieldset.plan>div.output table.content.plan th { text-align:center; }
|
||||||
fieldset.plan>div.output table.content.plan td { vertical-align:top; }
|
fieldset.plan>div.output table.content.plan td { vertical-align:top; }
|
||||||
fieldset.plan>div.output table.content.plan td.over { border:red solid 1px; }
|
fieldset.plan>div.output table.content.plan td.over { border:red solid 1px; }
|
||||||
|
fieldset.plan>div.output table.content.plan td.select { background-color:#5066b945; }
|
||||||
|
fieldset.plan>div.output table.content.plan td:hover { background-color:#5066b945; }
|
||||||
|
fieldset.plan>div.output table.content.plan td.over { background-color:#5066b945; }
|
||||||
fieldset.plan>div.output table.content.plan td div { color:white; }
|
fieldset.plan>div.output table.content.plan td div { color:white; }
|
||||||
fieldset.plan>div.output table.content.plan td div.date { color:gray; }
|
fieldset.plan>div.output table.content.plan td div.date { color:gray; }
|
||||||
fieldset.plan>div.output table.content.plan td div.date span.lunar { font-size:12px; }
|
fieldset.plan>div.output table.content.plan td div.date span.lunar { font-size:12px; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(can, target), can._display_heights = {}
|
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(can, target), can._display_heights = {}
|
||||||
can.list = {}; var ls = can.misc.SearchHash(can)
|
can.list = {}; var ls = can.misc.SearchHash(can)
|
||||||
can.ui = can.onappend.layout(can), can.onmotion.hidden(can, can.ui.profile)
|
can.ui = can.onappend.layout(can), can.onmotion.hidden(can, can.ui.profile), can.onmotion.hidden(can, can.ui.display)
|
||||||
can.onimport[can.Option("scale")||team.WEEK](can, msg), can.Status(mdb.COUNT, msg.Length()), can.onimport.layout(can)
|
can.onimport[can.Option("scale")||team.WEEK](can, msg), can.Status(mdb.COUNT, msg.Length()), can.onimport.layout(can)
|
||||||
var item; if (can.isCmdMode() && ls.length > 0) { item = can.list[can.core.Keys(ls[0], ls[1])] } else if (can.sup.task) { item = can.list[can.core.Keys(can.sup.task.zone, can.sup.task.id)] } item && item.click()
|
var item; if (can.isCmdMode() && ls.length > 0) { item = can.list[can.core.Keys(ls[0], ls[1])] } else if (can.sup.task) { item = can.list[can.core.Keys(can.sup.task.zone, can.sup.task.id)] } item && item.click()
|
||||||
},
|
},
|
||||||
@ -115,9 +115,9 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(
|
|||||||
}
|
}
|
||||||
}, [""])
|
}, [""])
|
||||||
Volcanos(chat.ONACTION, {list: [
|
Volcanos(chat.ONACTION, {list: [
|
||||||
["status", "all", "prepare", "process", "cancel", "finish"],
|
["status", "status", "prepare", "process", "cancel", "finish"],
|
||||||
["level", "all", "l1", "l2", "l3", "l4", "l5"],
|
["level", "level", "l1", "l2", "l3", "l4", "l5"],
|
||||||
["score", "all", "s1", "s2", "s3", "s4", "s5"],
|
["score", "score", "s1", "s2", "s3", "s4", "s5"],
|
||||||
["view", "text", "name", "text", "level", "score"],
|
["view", "text", "name", "text", "level", "score"],
|
||||||
], _trans: {"task": "任务", "hour": "时间", "month": "月份", "order": "周序"},
|
], _trans: {"task": "任务", "hour": "时间", "month": "月份", "order": "周序"},
|
||||||
prev: function(event, can) { var begin = can.base.Date(can.Option(team.BEGIN_TIME)||can.base.Time())
|
prev: function(event, can) { var begin = can.base.Date(can.Option(team.BEGIN_TIME)||can.base.Time())
|
||||||
@ -133,7 +133,7 @@ Volcanos(chat.ONACTION, {list: [
|
|||||||
},
|
},
|
||||||
modifyTask: function(event, can, task, key, value) { can.runAction(can.request(event, task, can.Option()), mdb.MODIFY, [key, value], function() { can.Update() }) },
|
modifyTask: function(event, can, task, key, value) { can.runAction(can.request(event, task, can.Option()), mdb.MODIFY, [key, value], function() { can.Update() }) },
|
||||||
_filter: function(event, can, key, value) { var count = 0
|
_filter: function(event, can, key, value) { var count = 0
|
||||||
if (value == "all") {
|
if (value == key) {
|
||||||
can.page.Select(can, can.ui.content, html.DIV_ITEM, function(item) { can.page.ClassList.del(can, item, html.HIDE), count++ })
|
can.page.Select(can, can.ui.content, html.DIV_ITEM, function(item) { can.page.ClassList.del(can, item, html.HIDE), count++ })
|
||||||
} else {
|
} else {
|
||||||
can.page.Select(can, can.ui.content, html.DIV_ITEM, function(item) { can.page.ClassList.add(can, item, html.HIDE) })
|
can.page.Select(can, can.ui.content, html.DIV_ITEM, function(item) { can.page.ClassList.add(can, item, html.HIDE) })
|
||||||
@ -141,8 +141,8 @@ Volcanos(chat.ONACTION, {list: [
|
|||||||
} can.Action(key, value), can.Status(mdb.COUNT, count)
|
} can.Action(key, value), can.Status(mdb.COUNT, count)
|
||||||
},
|
},
|
||||||
status: function(event, can, key, value) { can.onaction._filter(event, can, key, value) },
|
status: function(event, can, key, value) { can.onaction._filter(event, can, key, value) },
|
||||||
level: function(event, can, key, value) { value && can.onaction._filter(event, can, key, value) },
|
level: function(event, can, key, value) { can.onaction._filter(event, can, key, value) },
|
||||||
score: function(event, can, key, value) { value && can.onaction._filter(event, can, key, value) },
|
score: function(event, can, key, value) { can.onaction._filter(event, can, key, value) },
|
||||||
view: function(event, can, key, value) { can.Action(key, value), can.onmotion.clear(can, can.ui.project), can.onmotion.clear(can, can.ui.content), can.core.CallFunc([can.onimport, can.Option("scale")], [can, can._msg]) },
|
view: function(event, can, key, value) { can.Action(key, value), can.onmotion.clear(can, can.ui.project), can.onmotion.clear(can, can.ui.content), can.core.CallFunc([can.onimport, can.Option("scale")], [can, can._msg]) },
|
||||||
})
|
})
|
||||||
Volcanos(chat.ONEXPORT, {list: [mdb.COUNT, team.BEGIN_TIME, mdb.ZONE, mdb.ID, mdb.TYPE, mdb.NAME, mdb.TEXT],
|
Volcanos(chat.ONEXPORT, {list: [mdb.COUNT, team.BEGIN_TIME, mdb.ZONE, mdb.ID, mdb.TYPE, mdb.NAME, mdb.TEXT],
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
fieldset.plugin>div.output>div.project { border-right:gray solid 1px; min-width:120px; max-width:240px; }
|
|
||||||
fieldset.plugin>div.output div.profile { border-left:gray solid 1px; }
|
|
||||||
fieldset.plugin>div.output div.display { border-top:gray solid 1px; }
|
|
||||||
fieldset.draw>form.option>div.item.pid>input { width:60px; }
|
|
||||||
fieldset.draw>div.output>div.layout>div.layout>div.profile { max-width:240px; }
|
|
@ -1,7 +1,7 @@
|
|||||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(can); var pid = can.misc.SearchHash(can)[0]
|
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(can); var pid = can.misc.SearchHash(can)[0]
|
||||||
can.svg = null, can.group = null, can.temp = null, can.current = null, can.points = [], can._display_heights = {}
|
can.svg = null, can.group = null, can.temp = null, can.current = null, can.points = [], can._display_heights = {}
|
||||||
if (can._index == web.WIKI_DRAW) { can.ui = can.onappend.layout(can) } else { can.ui = {content: can._output} }
|
if (can._index == web.WIKI_DRAW) { can.ui = can.onappend.layout(can) } else { can.ui = {content: can._output} }
|
||||||
can.page.Modify(can, can.ui.content, msg.Results()||can.onexport.content(can))
|
can.page.Modify(can, can.ui.content, msg.Results()||can.onexport.content(can)), can.onexport.title(can, can.Option(nfs.PATH))
|
||||||
can.page.Select(can, can.ui.content, html.SVG, function(target) { can.svg = can.group = can.onimport._block(can, target), can.onimport._group(can, target)
|
can.page.Select(can, can.ui.content, html.SVG, function(target) { can.svg = can.group = can.onimport._block(can, target), can.onimport._group(can, target)
|
||||||
can.page.Select(can, target, mdb.FOREACH, function(target) { can.onimport._block(can, target), can.page.tagis(target, svg.G) && target.Value(html.CLASS) && can.onimport._group(can, target) })
|
can.page.Select(can, target, mdb.FOREACH, function(target) { can.onimport._block(can, target), can.page.tagis(target, svg.G) && target.Value(html.CLASS) && can.onimport._group(can, target) })
|
||||||
can.ui.profile && can.core.ItemCB(can.onaction, function(key, cb) { target[key] = function(event) { can.misc.Event(event, can, function(msg) { cb(event, can) }) } })
|
can.ui.profile && can.core.ItemCB(can.onaction, function(key, cb) { target[key] = function(event) { can.misc.Event(event, can, function(msg) { cb(event, can) }) } })
|
||||||
@ -66,12 +66,12 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, target) { can.onmotion.clear(
|
|||||||
layout: function(can) { can.onmotion.toggle(can, can._action, can.ConfWidth() > 1600)
|
layout: function(can) { can.onmotion.toggle(can, can._action, can.ConfWidth() > 1600)
|
||||||
can.ui.layout && can.ui.layout(can.ConfHeight(), can.ConfWidth(), 0, function(height, width) { can.page.style(can, can.svg, html.MIN_HEIGHT, height, html.MIN_WIDTH, width) })
|
can.ui.layout && can.ui.layout(can.ConfHeight(), can.ConfWidth(), 0, function(height, width) { can.page.style(can, can.svg, html.MIN_HEIGHT, height, html.MIN_WIDTH, width) })
|
||||||
},
|
},
|
||||||
}, [""])
|
})
|
||||||
Volcanos(chat.ONACTION, {list: [[svg.GRID, 10, 1, 2, 3, 4, 5, 10, 20],
|
Volcanos(chat.ONACTION, {list: [[svg.GRID, 10, 1, 2, 3, 4, 5, 10, 20],
|
||||||
[svg.FONT_SIZE, svg.FONT_SIZE, 12, 16, 18, 24, 32], [svg.STROKE_WIDTH, svg.STROKE_WIDTH, 1, 2, 3, 4, 5],
|
[svg.FONT_SIZE, svg.FONT_SIZE, 12, 16, 18, 24, 32], [svg.STROKE_WIDTH, svg.STROKE_WIDTH, 1, 2, 3, 4, 5],
|
||||||
[svg.STROKE, svg.STROKE, cli.RED, cli.YELLOW, cli.GREEN, cli.CYAN, cli.BLUE, cli.PURPLE, cli.BLACK, cli.WHITE],
|
[svg.STROKE, svg.STROKE, cli.RED, cli.YELLOW, cli.GREEN, cli.CYAN, cli.BLUE, cli.PURPLE, cli.BLACK, cli.WHITE],
|
||||||
[svg.FILL, svg.FILL, cli.RED, cli.YELLOW, cli.GREEN, cli.CYAN, cli.BLUE, cli.PURPLE, cli.BLACK, cli.WHITE, cli.TRANSPARENT],
|
[svg.FILL, svg.FILL, cli.RED, cli.YELLOW, cli.GREEN, cli.CYAN, cli.BLUE, cli.PURPLE, cli.BLACK, cli.WHITE, cli.TRANSPARENT],
|
||||||
[svg.GO, ice.RUN, ice.AUTO, "manual"], [ice.MODE, web.DRAW, web.RESIZE],
|
[svg.GO, ice.AUTO, ice.RUN, ice.AUTO, "manual"], [ice.MODE, web.DRAW, web.RESIZE],
|
||||||
[svg.SHAPE, svg.RECT, svg.TEXT, svg.RECT, svg.LINE, svg.BLOCK, svg.CIRCLE, svg.ELLIPSE],
|
[svg.SHAPE, svg.RECT, svg.TEXT, svg.RECT, svg.LINE, svg.BLOCK, svg.CIRCLE, svg.ELLIPSE],
|
||||||
], _change: function(can, key, value) {
|
], _change: function(can, key, value) {
|
||||||
value == "" && (value = key), can.Action(key, value)
|
value == "" && (value = key), can.Action(key, value)
|
||||||
|
@ -163,7 +163,11 @@ Volcanos(chat.ONLAYOUT, {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
Volcanos(chat.ONEXPORT, {
|
Volcanos(chat.ONEXPORT, {
|
||||||
title: function(can, title) { can._legend.innerHTML = title, can.isCmdMode() && can.user.title(title); var sup = can.sup; if (sup) { sup._header_tabs && (sup._header_tabs.innerHTML = title), sup._tabs && (sup._tabs.innerHTML = title) } },
|
title: function(can, title) {
|
||||||
|
can.isCmdMode() && can.user.title(title)
|
||||||
|
return
|
||||||
|
can._legend.innerHTML = title, can.isCmdMode() && can.user.title(title); var sup = can.sup; if (sup) { sup._header_tabs && (sup._header_tabs.innerHTML = title), sup._tabs && (sup._tabs.innerHTML = title) }
|
||||||
|
},
|
||||||
table: function(can) { var msg = can._msg; if (msg.Length() == 0) { return }
|
table: function(can) { var msg = can._msg; if (msg.Length() == 0) { return }
|
||||||
var res = [msg.append && msg.append.join(ice.FS)]; msg.Table(function(line, index, array) { res.push(can.core.Item(line, function(key, value) { return value }).join(ice.FS)) }); return res.join(ice.NL)
|
var res = [msg.append && msg.append.join(ice.FS)]; msg.Table(function(line, index, array) { res.push(can.core.Item(line, function(key, value) { return value }).join(ice.FS)) }); return res.join(ice.NL)
|
||||||
},
|
},
|
||||||
|
3
proto.js
3
proto.js
@ -117,8 +117,9 @@ var nfs = {
|
|||||||
CONTENT: "content", RECENT: "recent", SCRIPT: "script", MODULE: "module", SOURCE: "source", TARGET: "target", REPOS: "repos",
|
CONTENT: "content", RECENT: "recent", SCRIPT: "script", MODULE: "module", SOURCE: "source", TARGET: "target", REPOS: "repos",
|
||||||
PATH: "path", FILE: "file", LINE: "line", SIZE: "size",
|
PATH: "path", FILE: "file", LINE: "line", SIZE: "size",
|
||||||
REPLACE: "replace", FROM: "from", TO: "to",
|
REPLACE: "replace", FROM: "from", TO: "to",
|
||||||
HTML: "html", CSS: "css", JS: "js", GO: "go", SH: "sh", CSV: "csv", JSON: "json",
|
HTML: "html", CSS: "css", JS: "js", SH: "sh", GO: "go", CSV: "csv", JSON: "json",
|
||||||
ZML: "zml", IML: "iml", TXT: "txt", PNG: "png", WEBM: "webm",
|
ZML: "zml", IML: "iml", TXT: "txt", PNG: "png", WEBM: "webm",
|
||||||
|
SVG: "svg",
|
||||||
_CSS: ".css", _JS: ".js",
|
_CSS: ".css", _JS: ".js",
|
||||||
SRC: "src/",
|
SRC: "src/",
|
||||||
OPENS: "opens",
|
OPENS: "opens",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user