mirror of
https://shylinux.com/x/community
synced 2025-07-01 13:14:44 +08:00
add some
This commit is contained in:
parent
b62ec45b1d
commit
b1345a0313
@ -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
|
||||
}
|
||||
})
|
||||
|
@ -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()
|
||||
})
|
||||
|
@ -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; }
|
||||
|
@ -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 >", "更多 >")},
|
||||
])
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user