From: Daniel Karbach Date: Sun, 20 Mar 2022 23:17:16 +0000 (+0100) Subject: better protocol icons X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=80b9fbe436d1ba5447260c30e4527108ab15ab49;hp=17847098a56367f0c11bfc2197a6c7b453d2fa4a;p=alttp.git better protocol icons --- diff --git a/resources/js/components/common/Icon.js b/resources/js/components/common/Icon.js index 3474093..7f2f93f 100644 --- a/resources/js/components/common/Icon.js +++ b/resources/js/components/common/Icon.js @@ -57,6 +57,7 @@ const makePreset = (presetDisplayName, presetName) => { return withTranslation()(preset); }; +Icon.ADD = makePreset('AddIcon', 'circle-plus'); Icon.DISCORD = makePreset('DiscordIcon', ['fab', 'discord']); Icon.EDIT = makePreset('EditIcon', 'edit'); Icon.FINISHED = makePreset('FinishedIcon', 'square-check'); @@ -67,6 +68,7 @@ Icon.LOCKED = makePreset('LockedIcon', 'lock'); Icon.LOGOUT = makePreset('LogoutIcon', 'sign-out-alt'); Icon.PENDING = makePreset('PendingIcon', 'clock'); Icon.PROTOCOL = makePreset('ProtocolIcon', 'file-alt'); +Icon.RESULT = makePreset('ResultIcon', 'clock'); Icon.SECOND_PLACE = makePreset('SecondPlaceIcon', 'medal'); Icon.STREAM = makePreset('StreamIcon', ['fab', 'twitch']); Icon.THIRD_PLACE = makePreset('ThirdPlaceIcon', 'award'); diff --git a/resources/js/components/protocol/Item.js b/resources/js/components/protocol/Item.js index 3b16eeb..2eaae5b 100644 --- a/resources/js/components/protocol/Item.js +++ b/resources/js/components/protocol/Item.js @@ -56,6 +56,15 @@ const getEntryDescription = entry => { const getEntryIcon = entry => { switch (entry.type) { + case 'result.report': + return ; + case 'round.create': + return ; + case 'round.lock': + case 'tournament.lock': + return ; + case 'round.unlock': + return ; default: return ; } diff --git a/resources/js/i18n/de.js b/resources/js/i18n/de.js index 9552005..79bc221 100644 --- a/resources/js/i18n/de.js +++ b/resources/js/i18n/de.js @@ -34,14 +34,18 @@ export default { appName: 'ALttP', }, icon: { + AddIcon: 'Hinzufügen', DiscordIcon: 'Discord', EditIcon: 'Bearbeiten', FinishedIcon: 'Abgeschlossen', FirstPlaceIcon: 'Erster Platz', ForfeitIcon: 'Aufgegeben', + LanguageIcon: 'Sprache', LockedIcon: 'Gesperrt', LogoutIcon: 'Logout', PendingIcon: 'Ausstehend', + ProtocolIcon: 'Protokoll', + ResultIcon: 'Ergebnis', SecondPlaceIcon: 'Zweiter Platz', StreamIcon: 'Stream', ThirdPlaceIcon: 'Dritter Platz', diff --git a/resources/js/i18n/en.js b/resources/js/i18n/en.js index 24be59f..8cf2806 100644 --- a/resources/js/i18n/en.js +++ b/resources/js/i18n/en.js @@ -34,14 +34,18 @@ export default { appName: 'ALttP', }, icon: { + AddIcon: 'Add', DiscordIcon: 'Discord', EditIcon: 'Edit', FinishedIcon: 'Finished', FirstPlaceIcon: 'First Place', ForfeitIcon: 'Forfeit', + LanguageIcon: 'Language', LockedIcon: 'Locked', LogoutIcon: 'Logout', PendingIcon: 'Pending', + ProtocolIcon: 'Protocol', + ResultIcon: 'Result', SecondPlaceIcon: 'Second Place', StreamIcon: 'Stream', ThirdPlaceIcon: 'Third Place',