feat: add per-group emoji toggle and standardized embed titles

This commit is contained in:
RhenCloud 2026-08-03 01:18:29 +08:00
parent 49baf63a17
commit 809f89400b
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
11 changed files with 437 additions and 133 deletions

View file

@ -56,6 +56,10 @@
/>
<div class="hint">{{ t("groupEditor.ownersHint") }}</div>
</div>
<label class="inline">
<input v-model="form.emoji" type="checkbox" />
<span>{{ t("groupEditor.emoji") }}</span>
</label>
<div class="err">{{ formError }}</div>
</form>
<div class="editor-foot">
@ -91,6 +95,7 @@ const form = reactive({
name: "",
adminIds: "",
owners: "",
emoji: true,
});
function splitList(text: string): string[] {
@ -109,6 +114,7 @@ watch(
form.name = g?.name ?? "";
form.adminIds = (g?.adminIds ?? []).join(", ");
form.owners = (g?.owners ?? []).join(", ");
form.emoji = g?.emoji ?? true;
formError.value = "";
},
);
@ -135,6 +141,7 @@ function save(): void {
name,
adminIds: splitList(form.adminIds),
owners: owners.length ? owners : undefined,
emoji: form.emoji,
});
}
</script>