]> git.localhorst.tv Git - alttp.git/commitdiff
better protocol icons
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 20 Mar 2022 23:17:16 +0000 (00:17 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 20 Mar 2022 23:17:16 +0000 (00:17 +0100)
resources/js/components/common/Icon.js
resources/js/components/protocol/Item.js
resources/js/i18n/de.js
resources/js/i18n/en.js

index 34740931a44ed99ab9625898104143a04444a067..7f2f93f86f00d905e3b5ca62392785f3286b0408 100644 (file)
@@ -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');
index 3b16eeb11c9da1307a9f7b142affaba2e89c7060..2eaae5b6c3cecf7700f533d79155de1974e04903 100644 (file)
@@ -56,6 +56,15 @@ const getEntryDescription = entry => {
 
 const getEntryIcon = entry => {
        switch (entry.type) {
+               case 'result.report':
+                       return <Icon.RESULT />;
+               case 'round.create':
+                       return <Icon.ADD />;
+               case 'round.lock':
+               case 'tournament.lock':
+                       return <Icon.LOCKED />;
+               case 'round.unlock':
+                       return <Icon.UNLOCKED />;
                default:
                        return <Icon.PROTOCOL />;
        }
index 95520057e30d8ce29621c085c1eeabf0592fd6e1..79bc2214641be0d19dfd923cba3d75f8910d1d12 100644 (file)
@@ -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',
index 24be59f563c4f2c2f2e50b9159bf0ec066760dda..8cf2806b54aa732a22891a43e76147d8a52a9c30 100644 (file)
@@ -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',