mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
226894f8ea
commit
e4fb65d9a0
@ -274,8 +274,10 @@ Volcanos("user", {help: "用户操作", agent: {
|
|||||||
return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs)
|
return can.base.MergeURL(location.origin+path+(clear?"":location.search), objs)
|
||||||
}),
|
}),
|
||||||
Search: shy("请求参数", function(can, key, value) { var args = {}
|
Search: shy("请求参数", function(can, key, value) { var args = {}
|
||||||
var ls = location.pathname.split("/")
|
if (value == undefined && typeof key == "string") {
|
||||||
if (ls[1] == "chat" && ls[2] == "pod") { args["pod"] = ls[3] }
|
var ls = location.pathname.split("/")
|
||||||
|
if (ls[1] == "chat" && ls[2] == "pod") { args["pod"] = ls[3] }
|
||||||
|
}
|
||||||
|
|
||||||
location.search && location.search.slice(1).split("&").forEach(function(item) { var x = item.split("=")
|
location.search && location.search.slice(1).split("&").forEach(function(item) { var x = item.split("=")
|
||||||
x[1] != "" && (args[x[0]] = decodeURIComponent(x[1]))
|
x[1] != "" && (args[x[0]] = decodeURIComponent(x[1]))
|
||||||
|
@ -98,6 +98,7 @@ Volcanos({name: "chat", iceberg: "/chat/", volcano: "/frame.js",
|
|||||||
]},
|
]},
|
||||||
"mysql": {name: "数据 mysql", action: [
|
"mysql": {name: "数据 mysql", action: [
|
||||||
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
||||||
|
{name: "clickhouse", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/clickhouse/clickhouse.shy"]},
|
||||||
]},
|
]},
|
||||||
}},
|
}},
|
||||||
"profile": {name: "测试群", storm: {
|
"profile": {name: "测试群", storm: {
|
||||||
|
@ -190,7 +190,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, meta,
|
|||||||
},
|
},
|
||||||
|
|
||||||
title: function(event, can) {
|
title: function(event, can) {
|
||||||
var args = {}; can.core.List([cli.POD, chat.TITLE, "topic", "layout"], function(key) {
|
var args = {}; can.core.List([chat.TITLE, "topic", "layout"], function(key) {
|
||||||
var value = can.user.Search(can, key); value && (args[key] = value)
|
var value = can.user.Search(can, key); value && (args[key] = value)
|
||||||
})
|
})
|
||||||
can.user.jumps(can.user.MergeURL(can, args, true))
|
can.user.jumps(can.user.MergeURL(can, args, true))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user