Improved steam offer #188

This commit is contained in:
2023-10-11 20:03:54 +02:00
parent 4747f23202
commit 3a42b42dbf
34 changed files with 573 additions and 118 deletions

View File

@@ -52,4 +52,4 @@
"tslib": "^2.4.1",
"typescript": "~4.9.5"
}
}
}

View File

@@ -18,6 +18,7 @@ export interface ServerConfig extends DataWithHistory {
loginMessageChannelId?: string;
defaultRoleId?: string;
shortRoleNameOnlySetHighestRole?: boolean;
gameOfferNotificationChatId?: string;
featureFlags: FeatureFlag[];
afkChannelIds: string[];
moderatorRoleIds: string[];

View File

@@ -261,7 +261,8 @@ export class Mutations {
$teamChannelId: String,
$loginMessageChannelId: String,
$defaultRoleId: String,
$shortRoleNameOnlySetHighestRole: Boolean
$shortRoleNameOnlySetHighestRole: Boolean,
$gameOfferNotificationChatId: String,
$featureFlags: [FeatureFlagInput],
$afkChannelIds: [String],
$moderatorRoleIds: [String],
@@ -285,6 +286,7 @@ export class Mutations {
loginMessageChannelId: $loginMessageChannelId,
defaultRoleId: $defaultRoleId,
shortRoleNameOnlySetHighestRole: $shortRoleNameOnlySetHighestRole,
gameOfferNotificationChatId: $gameOfferNotificationChatId,
featureFlags: $featureFlags,
afkChannelIds: $afkChannelIds,
moderatorRoleIds: $moderatorRoleIds,
@@ -306,6 +308,7 @@ export class Mutations {
loginMessageChannelId
defaultRoleId
shortRoleNameOnlySetHighestRole
gameOfferNotificationChatId
featureFlags {
key
value

View File

@@ -130,6 +130,14 @@
</div>
</div>
<div class="content-row">
<div class="content-column">
<div class="content-data-name">{{'view.server.config.bot.game_offer_notification_chat_id' | translate}}:</div>
<p-dropdown class="content-data-value" [options]="textChannels" optionLabel="name" optionValue="id" [(ngModel)]="config.gameOfferNotificationChatId"
placeholder="{{'view.server.config.bot.game_offer_notification_chat_id' | translate}}"></p-dropdown>
</div>
</div>
<div class="content-divider"></div>
<app-config-list [options]="voiceChannels" optionLabel="name" optionValue="id" translationKey="view.server.config.bot.afk_channels"
[(data)]="config.afkChannelIds"></app-config-list>

View File

@@ -124,6 +124,7 @@ export class ConfigComponent implements OnInit {
loginMessageChannelId: this.config.loginMessageChannelId,
defaultRoleId: this.config.defaultRoleId,
shortRoleNameOnlySetHighestRole: this.config.shortRoleNameOnlySetHighestRole,
gameOfferNotificationChatId: this.config.gameOfferNotificationChatId,
featureFlags: this.config.featureFlags,
afkChannelIds: this.config.afkChannelIds,
moderatorRoleIds: this.config.moderatorRoleIds,

View File

@@ -122,15 +122,13 @@
}
},
"common": {
"edit": "Bearbeiten",
"user_warnings": "Verwarnungen",
"author": "Autor",
"404": "404 - Der Eintrag konnte nicht gefunden werden",
"actions": "Aktionen",
"active": "Aktiv",
"add": "Hinzufügen",
"attribute": "Attribut",
"auth_role": "Rolle",
"author": "Autor",
"bool_as_string": {
"false": "Nein",
"true": "Ja"
@@ -141,6 +139,7 @@
"created_at": "Erstellt am",
"description": "Beschreibung",
"discord_id": "Discord Id",
"edit": "Bearbeiten",
"email": "E-Mail",
"emoji": "Emoji",
"error": "Fehler",
@@ -195,6 +194,7 @@
"role": "Rolle",
"rule_count": "Regeln",
"save": "Speichern",
"user_warnings": "Verwarnungen",
"users": "Benutzer",
"value": "Wert",
"xp": "XP"
@@ -422,7 +422,7 @@
"afk_channels": "AFK Sprachkanäle",
"afk_command_channel_id": "AFK Kanal für den Befehl /afk",
"default_role_id": "Standardrolle des Servers",
"short_role_name_only_set_highest_role": "Bei Rollen Kürzeln nur die höchste Rolle verwenden",
"game_offer_notification_chat_id": "Benachrichtungskanal für Spiel Angebote",
"header": "Bot Konfiguration",
"help_voice_channel_id": "Sprachkanal für Hilfsbenachrichtung",
"login_message_channel_id": "Kanal für die Nachricht vom Bot nach Start",
@@ -431,6 +431,7 @@
"message_delete_timer": "Zeit bis zum löschen einer Botnachricht in sekunden",
"moderator_roles": "Moderator Rollen",
"notification_chat_id": "Benachrichtungskanal",
"short_role_name_only_set_highest_role": "Bei Rollen Kürzeln nur die höchste Rolle verwenden",
"team_channel_id": "Team chat",
"xp_per_achievement": "XP für Errungenschaft",
"xp_per_event_participation": "XP für Event Teilnahme",
@@ -485,13 +486,11 @@
}
},
"profile": {
"message_count": "Anzahl Nachrichten",
"reaction_count": "Anzahl Reaktionen",
"birthday": "Geburtstag",
"achievements": {
"header": "Errungeschaften",
"time": "Erreicht am"
},
"birthday": "Geburtstag",
"header": "Dein Profil",
"joined_game_server": {
"header": "Gameserver-beitritte",
@@ -509,11 +508,13 @@
},
"left_server": "Hat Server verlassen",
"level": "Level",
"message_count": "Anzahl Nachrichten",
"minecraft_id": "Minecraft Id",
"name": "Name",
"ontime": "Ontime",
"permission_denied": "Zugriff verweigert!",
"permission_denied_d": "Du musst Moderator sein, um andere Profile sehen zu können!",
"reaction_count": "Anzahl Reaktionen",
"xp": "XP"
},
"short_role_names": {

View File

@@ -128,6 +128,7 @@
"add": "Add",
"attribute": "Attribute",
"auth_role": "Role",
"author": "Author",
"bool_as_string": {
"false": "No",
"true": "Yes"
@@ -138,6 +139,7 @@
"created_at": "Created at",
"description": "Description",
"discord_id": "Discord Id",
"edit": "Edit",
"email": "E-Mail",
"emoji": "Emoji",
"error": "Error",
@@ -192,6 +194,7 @@
"role": "Role",
"rule_count": "Rules",
"save": "Save",
"user_warnings": "User warnings",
"users": "User",
"value": "Value",
"xp": "XP"
@@ -419,7 +422,7 @@
"afk_channels": "AFK Voicechannel",
"afk_command_channel_id": "AFK Channel for the command /afk",
"default_role_id": "Default role",
"short_role_name_only_set_highest_role": "For role abbreviations use only the highest role",
"game_offer_notification_chat_id": "Notification channel for game sales",
"header": "Bot configuration",
"help_voice_channel_id": "Voicechannel für help notifications",
"login_message_channel_id": "Channel for bot message after start",
@@ -428,6 +431,7 @@
"message_delete_timer": "Time to wait before delete bot messages",
"moderator_roles": "Moderator roles",
"notification_chat_id": "Notification channel",
"short_role_name_only_set_highest_role": "For role abbreviations use only the highest role",
"team_channel_id": "Team chat",
"xp_per_achievement": "XP for achievement",
"xp_per_event_participation": "XP for event participation",
@@ -486,6 +490,7 @@
"header": "Achievements",
"time": "Reached at"
},
"birthday": "Birthday",
"header": "Profile",
"joined_game_server": {
"header": "Game server accessions",
@@ -503,11 +508,13 @@
},
"left_server": "Leaved server",
"level": "Level",
"message_count": "Message count",
"minecraft_id": "Minecraft Id",
"name": "Name",
"ontime": "Ontime",
"permission_denied": "Access denied!",
"permission_denied_d": "You have to be moderator to see other profiles!",
"reaction_count": "Reaction count",
"xp": "XP"
},
"short_role_names": {