From bc89016e4fb5ba1e6d6c2bd07226c011568d4dae Mon Sep 17 00:00:00 2001 From: shy Date: Tue, 14 Nov 2023 08:46:19 +0800 Subject: [PATCH] add some --- index.css | 2 +- lib/user.js | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/index.css b/index.css index 20f52806..c7d466d2 100644 --- a/index.css +++ b/index.css @@ -177,7 +177,7 @@ body>div.input.login>div.display>span.item { font-style:italic; word-break:break body>div.input.login>div.display div.sso { display:flex; justify-content:center; cursor:pointer; } body>div.input.login>div.display div.sso div.item { display:flex; align-items:center; padding:10px; } body>div.input.login>div.display div.sso div.item:hover { background-color:var(--hover-bg-color); } -body>div.input.login>div.display div.sso div.item>img { height:32px; } +body>div.input.login>div.display div.sso div.item>img { height:32px; width:32px; } body>div.input.login>div.display div.sso div.item>span { line-height:32px; padding:5px; } body>div.input.simple td:first-child { display:none; } body>div.upload div.action input[type=file] { width:320px; } diff --git a/lib/user.js b/lib/user.js index 9b854c68..f761b922 100644 --- a/lib/user.js +++ b/lib/user.js @@ -27,12 +27,9 @@ Volcanos("user", { isLocalFile: location && location.protocol && location.protocol == "file:", isLandscape: function() { return window.innerWidth > window.innerHeight }, mod: { - isPod: location && location.pathname && (location.pathname.indexOf("/chat/pod/") == 0 || location.pathname.indexOf("/x/") == 0), - isCmd: location && location.pathname && ( - location.pathname.indexOf("/chat/pod/") == 0 && location.pathname.indexOf("/cmd/") > 0 - || location.pathname.indexOf("/chat/cmd/") == 0 - || location.pathname.indexOf("/wiki/portal/") == 0 - || location.pathname.indexOf("/help/") == 0 + isPod: location && location.pathname && (location.pathname.indexOf(web.CHAT_POD) == 0 || location.pathname.indexOf("/x/") == 0), + isCmd: location && location.pathname && (location.pathname.indexOf(web.CHAT_POD) == 0 && location.pathname.indexOf("/cmd/") > 0 + || location.pathname.indexOf(web.CHAT_CMD) == 0 || location.pathname.indexOf(nfs.WIKI_PORTAL) == 0 ), }, alert: function(text) { alert(JSON.stringify(text)) }, @@ -261,6 +258,7 @@ Volcanos("user", { return can.base.isFunc(cb) && cb(), cb = null, true } can.core.Timer(1000, function() { check() }) + can.onimport.theme(can) } if (cmd == cli.PWD) { if (check()) { return } can.page.ClassList.add(can, document.body, aaa.LOGIN) var list = {}; msg.Table(function(value) { if (value.order == "") {} else if (value.type == mdb.PLUGIN) { list[value.name] = function(target) {