mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
91adc0293c
commit
640c60baae
3
const.js
3
const.js
@ -41,6 +41,7 @@ var ice = {
|
|||||||
MSG_METHOD: "_method",
|
MSG_METHOD: "_method",
|
||||||
|
|
||||||
MSG_BG: "sess.bg", MSG_FG: "sess.fg",
|
MSG_BG: "sess.bg", MSG_FG: "sess.fg",
|
||||||
|
MSG_NODETYPE: "node.type",
|
||||||
MSG_USERNICK: "user.nick", MSG_USERNAME: "user.name", MSG_USERROLE: "user.role", MSG_LANGUAGE: "user.lang",
|
MSG_USERNICK: "user.nick", MSG_USERNAME: "user.name", MSG_USERROLE: "user.role", MSG_LANGUAGE: "user.lang",
|
||||||
MSG_MODE: "sess.mode", MSG_THEME: "sess.theme", MSG_TITLE: "sess.title", MSG_RIVER: "sess.river", MSG_STORM: "sess.storm",
|
MSG_MODE: "sess.mode", MSG_THEME: "sess.theme", MSG_TITLE: "sess.title", MSG_RIVER: "sess.river", MSG_STORM: "sess.storm",
|
||||||
MSG_DAEMON: "sess.daemon", LOG_DISABLE: "log.disable", LOG_TRACEID: "log.id",
|
MSG_DAEMON: "sess.daemon", LOG_DISABLE: "log.disable", LOG_TRACEID: "log.id",
|
||||||
@ -79,7 +80,7 @@ var web = {CHAT: "chat", PORTAL: "portal", STUDIO: "studio", SERVICE: "service",
|
|||||||
SPIDE: "spide", TOKEN: "token", SHARE: "share", COUNT: "count",
|
SPIDE: "spide", TOKEN: "token", SHARE: "share", COUNT: "count",
|
||||||
STATS: "stats", ADMIN: "admin", PORTAL: "portal", DESKTOP: "desktop",
|
STATS: "stats", ADMIN: "admin", PORTAL: "portal", DESKTOP: "desktop",
|
||||||
WORKER: "worker", SERVER: "server", MASTER: "master", GATEWAY: "gateway",
|
WORKER: "worker", SERVER: "server", MASTER: "master", GATEWAY: "gateway",
|
||||||
ONLINE: "online", OFFLINE: "offline", VENDOR: "vendor",
|
ONLINE: "online", OFFLINE: "offline", VENDOR: "vendor", ORIGIN: "origin",
|
||||||
FULL: "full", OPEN: "open", LINK: "link", HTTP: "http", DOMAIN: "domain", URL: "url",
|
FULL: "full", OPEN: "open", LINK: "link", HTTP: "http", DOMAIN: "domain", URL: "url",
|
||||||
SHARE_CACHE: "/share/cache/", SHARE_LOCAL: "/share/local/",
|
SHARE_CACHE: "/share/cache/", SHARE_LOCAL: "/share/local/",
|
||||||
AT: ice.AT, QS: ice.QS,
|
AT: ice.AT, QS: ice.QS,
|
||||||
|
@ -76,6 +76,7 @@ Volcanos(chat.ONACTION, {_init: function(can) {},
|
|||||||
if (p && location.pathname == web.BASIC_LOGIN) { return location.replace(can.base.MergeURL(p, ice.MSG_SESSID, can.misc.CookieSessid(can))) }
|
if (p && location.pathname == web.BASIC_LOGIN) { return location.replace(can.base.MergeURL(p, ice.MSG_SESSID, can.misc.CookieSessid(can))) }
|
||||||
var p = can.misc.Search(can, ice.BACK); if (p && location.pathname == web.CHAT_SSO) { return location.reload() }
|
var p = can.misc.Search(can, ice.BACK); if (p && location.pathname == web.CHAT_SSO) { return location.reload() }
|
||||||
can.user.info.userrole = msg.Option(ice.MSG_USERROLE), can.user.info.repos = msg.Option(nfs.REPOS)
|
can.user.info.userrole = msg.Option(ice.MSG_USERROLE), can.user.info.repos = msg.Option(nfs.REPOS)
|
||||||
|
can.user.info.nodetype = msg.Option("nodetype"),
|
||||||
can.user.info.usernick = can.Conf(aaa.USERNICK), can.user.info.email = msg.Option(aaa.EMAIL), can.user.info.avatar = msg.Option(aaa.AVATAR), can.user.info.background = msg.Option(aaa.BACKGROUND)
|
can.user.info.usernick = can.Conf(aaa.USERNICK), can.user.info.email = msg.Option(aaa.EMAIL), can.user.info.avatar = msg.Option(aaa.AVATAR), can.user.info.background = msg.Option(aaa.BACKGROUND)
|
||||||
lang(msg, function() { can.onmotion.clear(can), can.onimport._init(can, can.request(), can._output), can.onengine.signal(can, chat.ONLOGIN) })
|
lang(msg, function() { can.onmotion.clear(can), can.onimport._init(can, can.request(), can._output), can.onengine.signal(can, chat.ONLOGIN) })
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ Volcanos(chat.ONEXPORT, {width: function(can) { return can._target.offsetWidth }
|
|||||||
Volcanos(chat.ONENGINE, {_engine: function(event, can, msg, panel, cmds, cb) {
|
Volcanos(chat.ONENGINE, {_engine: function(event, can, msg, panel, cmds, cb) {
|
||||||
if (typeof can.river == code.FUNCTION) { can.river = can.river(can) }
|
if (typeof can.river == code.FUNCTION) { can.river = can.river(can) }
|
||||||
var list = can.river
|
var list = can.river
|
||||||
cmds.length == 0 && can.core.ItemOrder(list, mdb.ORDER, function(key, value) {
|
cmds.length == 0 && can.core.ItemOrder(list, mdb.ORDER, function(key, value) { if (!value) { return }
|
||||||
if (can.user.info.userrole == aaa.ROOT || can.base.isIn(value.type||"", "", aaa.VOID, can.user.info.userrole)) {
|
if (can.user.info.userrole == aaa.ROOT || can.base.isIn(value.type||"", "", aaa.VOID, can.user.info.userrole)) {
|
||||||
can.core.Item(value.storm).length > 0 && msg.Push({hash: key, name: can.user.isEnglish(can)? key: value.name, icon: value.icon||"", main: value.main||false})
|
can.core.Item(value.storm).length > 0 && msg.Push({hash: key, name: can.user.isEnglish(can)? key: value.name, icon: value.icon||"", main: value.main||false})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user