From b1345a03131fd9ae0b42cebc2e7fa8e9a7e9d980 Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 15 Mar 2025 13:16:13 +0800 Subject: [PATCH] add some --- src/gonganxitong/common.go | 4 +++- src/gonganxitong/notice.go | 5 +++-- src/gonganxitong/portal.css | 1 + src/gonganxitong/portal.js | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/gonganxitong/common.go b/src/gonganxitong/common.go index 3609287..ef95804 100644 --- a/src/gonganxitong/common.go +++ b/src/gonganxitong/common.go @@ -349,7 +349,9 @@ func (s Table) RecordEventWithName(m *ice.Message, info string, arg ...string) { info = "✅ " + info case "placeRemove", mdb.REMOVE: info = "❌ " + info - case "placeAuth": + case "placeAuth", mdb.MODIFY: + info = "🕑 " + info + default: info = "🕑 " + info } }) diff --git a/src/gonganxitong/notice.go b/src/gonganxitong/notice.go index 2cd4667..5d63864 100644 --- a/src/gonganxitong/notice.go +++ b/src/gonganxitong/notice.go @@ -41,8 +41,9 @@ func (s notice) List(m *ice.Message, arg ...string) { return } kit.If(s.IsLeader(m), func() { - m.PushAction(s.Remove) - s.Button(m, "") + if m.PushAction(s.Remove); m.Length() == 0 { + s.Button(m, "") + } }, func() { m.Action() }) diff --git a/src/gonganxitong/portal.css b/src/gonganxitong/portal.css index da6d8e2..e35b8a6 100644 --- a/src/gonganxitong/portal.css +++ b/src/gonganxitong/portal.css @@ -100,6 +100,7 @@ $output fieldset.story>div.status { display:none; } $output fieldset.story>div.output { background-color:var(--plugin-bg-color); } $output fieldset.story>div.output table.content td { box-shadow:none; } $output fieldset.story>div.output table.content td img { max-width:100%; } +$output fieldset.story>div.output table.content tr.icon td img { max-height:128px; max-width:128px; } $output fieldset.story>div.output table.content tr.user_avatar td img { max-height:128px; max-width:128px; } $output fieldset.story>div.output table.content tr.auth_avatar td img { max-height:128px; max-width:128px; } $output fieldset.story>div.output>div.code { text-align:center; } diff --git a/src/gonganxitong/portal.js b/src/gonganxitong/portal.js index 7f33e9b..59061ff 100644 --- a/src/gonganxitong/portal.js +++ b/src/gonganxitong/portal.js @@ -115,7 +115,8 @@ Volcanos(chat.ONIMPORT, { can.runAction({}, "noticeList", [value._uid], function(msg) { if (msg.Length() == 0) { value._notice_hide = true; return can.onmotion.hidden(can, target) } can.onmotion.toggle(can, target, true) can.page.Append(can, target, [ - {text: " [ 公告 ] "}, {text: can.base.TimeTrim(msg.Append("created_at"))}, {text: " "}, {text: [msg.Append("title"), "", "title"]}, {text: "更多 >"}, + {text: can.user.trans(can, "[ notice ]", " [ 公告 ] ")}, {text: can.base.TimeTrim(msg.Append("created_at"))}, {text: " "}, + {text: [msg.Append("title"), "", "title"]}, {text: can.user.trans(can, "more >", "更多 >")}, ]) }) },