mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
feat: discord linking, @tags, music and sfx sliders, required device ids
- Discord: the account page links a player's Discord account through Discord's sign-in (lib/discord.js); only linked names are shown on cards (typed ones are cleared). A bot keeps the Server Booster badge on linked accounts that boost. The game tells the client where the player is, for the client's Discord rich presence (flashvars discordAppId). - @username tags in chat, chat balloons and wall posts: only real players' names (asked of the server, "xmn"), names with spaces too, drawn on a blue box; a click opens the player's card. - Settings: separate Music and SFX volume sliders for the old one. - Device ids required: a launcher that sends none (before 1.3.0) is told at the game's login "Your client is outdated. Update at https://burrow.moe/download". AJ_REQUIRE_DEVICE=0 turns it off. - Panels: clear a player's Jammer Wall posts; turning away masterpieces and player items asks first. - Item Giver: negative colour ids (the same colour written signed). - buildVersion 71; the client rebuilt with Snipzil's sitting fix.
This commit is contained in:
1 parent
1d9b70f32e
commit
33f56074a4
35 files changed
+2076
-101
No files matched your search
+15
-2
@@ -477,11 +477,13 @@
|
||||
<button type="button" data-action="goto">Go to them</button></div>
|
||||
</div>
|
||||
<div class="action">
|
||||
<h3>Username and bio</h3>
|
||||
<h3>Username, bio and wall posts</h3>
|
||||
<div class="row">
|
||||
<button type="button" data-action="rejectName" class="danger">Reject username</button>
|
||||
<button type="button" data-action="acceptName">Take back</button>
|
||||
<button type="button" data-action="clearBio">Clear bio</button></div>
|
||||
<div class="row" style="margin-top:8px" title="Every post they wrote on anyone's Jammer Wall, and the replies to those">
|
||||
<button type="button" data-action="clearWallPosts" class="danger">Clear wall posts</button></div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 style="margin:16px 0 4px">Other accounts</h3>
|
||||
@@ -1117,6 +1119,7 @@
|
||||
unbanDevices: name => `Lift the hardware bans on ${name}?`,
|
||||
rejectName: name => `Reject the username ${name}? They are signed out and must pick another.`,
|
||||
unwarn: name => `Take back ${name}'s latest warning?`,
|
||||
clearWallPosts: name => `Remove every post ${name} wrote on any Jammer Wall, and the replies to them? This cannot be undone.`,
|
||||
};
|
||||
|
||||
$("detail").addEventListener("click", async event => {
|
||||
@@ -1404,7 +1407,13 @@
|
||||
box.append(picture, el("h3", painting.creator),
|
||||
el("div", `${when(painting.createdAt)}${which === "all" ? (painting.status === "waiting" ? " · waiting" : " · on show") : ""}`, "hint"));
|
||||
const buttons = el("div", undefined, "buttons");
|
||||
// rejecting or removing asks first; approving does not
|
||||
const sure = action => action === "approve" || confirm(action === "reject"
|
||||
? `Reject this painting by ${painting.creator}?` : `Remove this painting by ${painting.creator} from show?`);
|
||||
const does = (label, action, className) => button(label, async () => {
|
||||
if (!sure(action)) {
|
||||
return;
|
||||
}
|
||||
const result = await api("masterpiece", {id: painting.id, action});
|
||||
setStatus($("masterpiece-status"), said(result), !result.ok);
|
||||
refresh();
|
||||
@@ -1843,6 +1852,10 @@
|
||||
el("div", `by ${entry.maker} · ${when(entry.createdAt)}${entry.makerStrikes ? ` · ${entry.makerStrikes} of ${data.strikes} pictures turned away before` : ""}`, "hint"));
|
||||
const buttons = el("div", undefined, "buttons");
|
||||
const decide = approve => async () => {
|
||||
// turning away asks first; approving does not
|
||||
if (!approve && !confirm(`Turn away ${entry.waiting === "item" ? "the item" : "the picture of"} "${entry.name}" by ${entry.maker}?`)) {
|
||||
return;
|
||||
}
|
||||
const result = await api("review", {kind: entry.kind, id: entry.id, approve});
|
||||
setStatus($("review-status"), said(result), !result.ok);
|
||||
await refresh();
|
||||
@@ -2095,7 +2108,7 @@
|
||||
silence: "chat.silence", unsilence: "chat.silence",
|
||||
kick: "player.kick", message: "player.warn", warn: "player.warn", unwarn: "player.warn",
|
||||
rejectName: "player.names", acceptName: "player.names", clearBio: "player.names",
|
||||
banAddress: "address.ban", summon: "player.summon", goto: "player.goto",
|
||||
clearWallPosts: "player.names", banAddress: "address.ban", summon: "player.summon", goto: "player.goto",
|
||||
};
|
||||
const applyPermissions = async () => {
|
||||
const result = await api("me");
|
||||
|
||||
Reference in new issue
Block a user