fix(ci): prettier format BackendClient.ts and i18n locales

This commit is contained in:
dadachann
2026-06-26 12:52:49 -04:00
parent 6c5b01fa3c
commit a0ea0704fc
2 changed files with 16 additions and 4 deletions
+14 -3
View File
@@ -394,12 +394,23 @@ export class BackendClient extends BaseHttpClient {
return this.delete(`/api/v1/platform/bots/${uuid}`); return this.delete(`/api/v1/platform/bots/${uuid}`);
} }
public getBotAdmins(botId: string): Promise<{ admins: Array<{ id: number; launcher_type: string; launcher_id: string }> }> { public getBotAdmins(
botId: string,
): Promise<{
admins: Array<{ id: number; launcher_type: string; launcher_id: string }>;
}> {
return this.get(`/api/v1/platform/bots/${botId}/admins`); return this.get(`/api/v1/platform/bots/${botId}/admins`);
} }
public addBotAdmin(botId: string, launcher_type: string, launcher_id: string): Promise<{ id: number }> { public addBotAdmin(
return this.post(`/api/v1/platform/bots/${botId}/admins`, { launcher_type, launcher_id }); botId: string,
launcher_type: string,
launcher_id: string,
): Promise<{ id: number }> {
return this.post(`/api/v1/platform/bots/${botId}/admins`, {
launcher_type,
launcher_id,
});
} }
public deleteBotAdmin(botId: string, adminId: number): Promise<object> { public deleteBotAdmin(botId: string, adminId: number): Promise<object> {
+2 -1
View File
@@ -446,7 +446,8 @@ const enUS = {
}, },
admins: { admins: {
title: 'Admins', title: 'Admins',
description: 'Launchers (person/group IDs) that have admin privilege for this bot\'s commands', description:
"Launchers (person/group IDs) that have admin privilege for this bot's commands",
addAdmin: 'Add Admin', addAdmin: 'Add Admin',
launcherType: 'Type', launcherType: 'Type',
launcherId: 'ID', launcherId: 'ID',