mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
6e4aaf9fcb
commit
19b63c3b7b
@ -2,8 +2,8 @@ Volcanos({name: "chat", panels: [
|
|||||||
{name: "Header", help: "标题栏", pos: chat.HEAD, state: ["time", "usernick", "avatar"]},
|
{name: "Header", help: "标题栏", pos: chat.HEAD, state: ["time", "usernick", "avatar"]},
|
||||||
{name: "River", help: "群聊组", pos: chat.LEFT, action: ["create", "refresh"]},
|
{name: "River", help: "群聊组", pos: chat.LEFT, action: ["create", "refresh"]},
|
||||||
{name: "Action", help: "工作台", pos: chat.MAIN},
|
{name: "Action", help: "工作台", pos: chat.MAIN},
|
||||||
{name: "Search", help: "搜索框", pos: chat.AUTO},
|
|
||||||
{name: "Footer", help: "状态条", pos: chat.FOOT, state: ["ncmd"]},
|
{name: "Footer", help: "状态条", pos: chat.FOOT, state: ["ncmd"]},
|
||||||
|
{name: "Search", help: "搜索框", pos: chat.AUTO},
|
||||||
], main: {name: "Header", list: ["/publish/order.js"]}, river: {
|
], main: {name: "Header", list: ["/publish/order.js"]}, river: {
|
||||||
serivce: {name: "运营群", storm: {
|
serivce: {name: "运营群", storm: {
|
||||||
wx: {name: "公众号 wx", list: [
|
wx: {name: "公众号 wx", list: [
|
||||||
|
@ -62,7 +62,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
_profile: function(can, task) {
|
_profile: function(can, task) {
|
||||||
function keys(task, key) { return [task.pod, task.zone, task.id, key].join(".") }
|
function keys(task, key) { return [task.pod, task.zone, task.id, key].join(".") }
|
||||||
|
|
||||||
if (can.sup.task) { if (can.sup.task.id == task.id) { return }
|
if (can.sup.task) { if (can.sup.task.pod == task.pod && can.sup.task.id == task.id) { return }
|
||||||
can.page.Cache(keys(can.sup.task, chat.PROFILE), can.ui.profile, can.sup.task.id)
|
can.page.Cache(keys(can.sup.task, chat.PROFILE), can.ui.profile, can.sup.task.id)
|
||||||
can.page.Cache(keys(can.sup.task, chat.DISPLAY), can.ui.display, can.sup.task.id)
|
can.page.Cache(keys(can.sup.task, chat.DISPLAY), can.ui.display, can.sup.task.id)
|
||||||
}
|
}
|
||||||
@ -85,12 +85,12 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
}]) }), can.onimport._display(can, task)
|
}]) }), can.onimport._display(can, task)
|
||||||
},
|
},
|
||||||
_display: function(can, task) { if (!task["extra.cmd"]) { return }
|
_display: function(can, task) { if (!task["extra.cmd"]) { return }
|
||||||
can.onappend.plugin(can, {type: "story", ctx: task["extra.ctx"], cmd: task["extra.cmd"], arg: task["extra.arg"]}, function(sub, meta) {
|
can.onappend.plugin(can, {type: chat.STORY, ctx: task["extra.ctx"], cmd: task["extra.cmd"], arg: task["extra.arg"]}, function(sub, meta) {
|
||||||
sub.run = function(event, cmds, cb) { var msg = can.request(event, {"task.zone": task.zone, "task.id": task.id})
|
sub.run = function(event, cmds, cb) { var msg = can.request(event, kit.Dict("task.pod", task["pod"], "task.zone", task.zone, "task.id", task.id))
|
||||||
can.run(event, can.misc.concat([ctx.ACTION, ice.RUN, task["zone"], task["id"]], cmds), cb, true)
|
can.run(event, can.misc.concat([ctx.ACTION, ice.RUN, task[kit.MDB_ZONE], task[kit.MDB_ID]], cmds), cb, true)
|
||||||
}
|
}
|
||||||
}, can.ui.display)
|
}, can.ui.display)
|
||||||
can.page.Modify(can, can.ui.display, {style: {display: "block"}})
|
can.page.Modify(can, can.ui.display, {style: {display: html.BLOCK}})
|
||||||
},
|
},
|
||||||
|
|
||||||
day: function(can, msg) {
|
day: function(can, msg) {
|
||||||
|
@ -120,11 +120,9 @@ fieldset.word.float {
|
|||||||
width:-webkit-fill-available;
|
width:-webkit-fill-available;
|
||||||
position:fixed; left:0; top:0;
|
position:fixed; left:0; top:0;
|
||||||
background-color:aliceblue;
|
background-color:aliceblue;
|
||||||
background-color:aliceblue;
|
|
||||||
color:black;
|
color:black;
|
||||||
}
|
}
|
||||||
fieldset.word.float>div.output {
|
fieldset.word.float>div.output {
|
||||||
background-color:aliceblue;
|
|
||||||
background-color:#f0f8ff80;
|
background-color:#f0f8ff80;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
padding:20px;
|
padding:20px;
|
||||||
@ -134,7 +132,6 @@ fieldset.word.float div.project {
|
|||||||
padding:10px;
|
padding:10px;
|
||||||
}
|
}
|
||||||
fieldset.word.float div.content div.page {
|
fieldset.word.float div.content div.page {
|
||||||
background-color:aliceblue;
|
|
||||||
background-color:#194c79d4;
|
background-color:#194c79d4;
|
||||||
margin-top:30px;
|
margin-top:30px;
|
||||||
display:none;
|
display:none;
|
||||||
@ -158,6 +155,10 @@ fieldset.word.float h2 {
|
|||||||
fieldset.word.float h3 {
|
fieldset.word.float h3 {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
|
fieldset.word.float div.status {
|
||||||
|
color:white;
|
||||||
|
clear:none;
|
||||||
|
}
|
||||||
|
|
||||||
fieldset.panel.cmd fieldset.word>form.option {
|
fieldset.panel.cmd fieldset.word>form.option {
|
||||||
display:none;
|
display:none;
|
||||||
|
@ -174,6 +174,7 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
|||||||
can.keylist = can.onkeypop._parse(event, can, "normal", can.keylist)
|
can.keylist = can.onkeypop._parse(event, can, "normal", can.keylist)
|
||||||
}}))
|
}}))
|
||||||
|
|
||||||
|
sub.onappend._status(sub, ["page", "from", "cost"])
|
||||||
sub.list = list
|
sub.list = list
|
||||||
sub.page.Modify(sub, sub._output, {style: {"width": window.innerWidth-40}})
|
sub.page.Modify(sub, sub._output, {style: {"width": window.innerWidth-40}})
|
||||||
sub.page.Modify(sub, sub._output, {style: {"height": window.innerHeight-93}})
|
sub.page.Modify(sub, sub._output, {style: {"height": window.innerHeight-93}})
|
||||||
@ -201,18 +202,18 @@ Volcanos("onaction", {help: "控件交互", list: [],
|
|||||||
}, document.body)
|
}, document.body)
|
||||||
},
|
},
|
||||||
|
|
||||||
"开讲": function(event, sub) { sub.sup.onaction.show(sub, 0) },
|
"开讲": function(event, can) { can.sup.onaction.show(can, 0) },
|
||||||
"快闪": function(event, sub) { sub.sup.onaction.flash(sub) },
|
"快闪": function(event, can) { can.sup.onaction.flash(can) },
|
||||||
"网格": function(event, sub) { sub.sup.onaction.grid(sub) },
|
"网格": function(event, can) { can.sup.onaction.grid(can) },
|
||||||
|
|
||||||
"大纲": function(event, sub) { sub.onmotion.toggle(sub, sub.ui.project) },
|
"大纲": function(event, can) { can.onmotion.toggle(can, can.ui.project) },
|
||||||
"首页": function(event, sub) { sub.sup.onaction.show(sub, 0) },
|
"首页": function(event, can) { can.sup.onaction.show(can, 0) },
|
||||||
"上一页": function(event, sub) { sub.sup.onaction.prev(sub, sub.ui.content) },
|
"上一页": function(event, can) { can.sup.onaction.prev(can, can.ui.content) },
|
||||||
"菜单": function(event, sub) { sub.sup.onaction.show(sub, event.target.selectedIndex) },
|
"菜单": function(event, can) { can.sup.onaction.show(can, event.target.selectedIndex) },
|
||||||
"下一页": function(event, sub) { sub.sup.onaction.next(sub, sub.ui.content) },
|
"下一页": function(event, can) { can.sup.onaction.next(can, can.ui.content) },
|
||||||
"隐藏": function(event, sub) { sub.onmotion.toggle(sub, sub._output) },
|
"隐藏": function(event, can) { can.onmotion.toggle(can, can._output) },
|
||||||
"结束": function(event, sub) { sub.page.Remove(sub, sub._target)
|
"结束": function(event, can) { can.page.Remove(can, can._target)
|
||||||
sub.onengine.signal(sub, "keymap.focus", sub.request(event, {cb: null}))
|
can.onengine.signal(can, "keymap.focus", can.request(event, {cb: null}))
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function(sub, which) { sub.page.Modify(sub, sub.ui.content, {className: "content"})
|
show: function(sub, which) { sub.page.Modify(sub, sub.ui.content, {className: "content"})
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, list, cb, target) {
|
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, list, cb, target) {
|
||||||
can.onmotion.clear(can), can.base.isFunc(cb) && cb(msg)
|
can.onmotion.clear(can), can.base.isFunc(cb) && cb(msg)
|
||||||
|
if (msg.Length() == 0) { return }
|
||||||
|
|
||||||
can._args = can.base.Copy({root: "ice", field: msg.append[0], split: ice.PS}, can.base.ParseURL(can._display))
|
can._args = can.base.Copy({root: "ice", field: msg.append[0], split: ice.PS}, can.base.ParseURL(can._display))
|
||||||
can.dir_root = msg.Option(nfs.DIR_ROOT)||can._args.root||""
|
can.dir_root = msg.Option(nfs.DIR_ROOT)||can._args.root||""
|
||||||
|
2
proto.js
2
proto.js
@ -136,8 +136,8 @@ var chat = {
|
|||||||
{name: "Header", help: "标题栏", pos: "head", state: ["time", "usernick", "avatar"]},
|
{name: "Header", help: "标题栏", pos: "head", state: ["time", "usernick", "avatar"]},
|
||||||
{name: "River", help: "群聊组", pos: "left", action: ["create", "refresh"]},
|
{name: "River", help: "群聊组", pos: "left", action: ["create", "refresh"]},
|
||||||
{name: "Action", help: "工作台", pos: "main"},
|
{name: "Action", help: "工作台", pos: "main"},
|
||||||
{name: "Search", help: "搜索框", pos: "auto"},
|
|
||||||
{name: "Footer", help: "状态条", pos: "foot", state: ["ncmd"]},
|
{name: "Footer", help: "状态条", pos: "foot", state: ["ncmd"]},
|
||||||
|
{name: "Search", help: "搜索框", pos: "auto"},
|
||||||
],
|
],
|
||||||
plugin_list: [
|
plugin_list: [
|
||||||
"/plugin/state.js",
|
"/plugin/state.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user