]> git.localhorst.tv Git - alttp.git/commitdiff
small ux improvements
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 23 Feb 2023 22:34:08 +0000 (23:34 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 23 Feb 2023 22:34:08 +0000 (23:34 +0100)
app/Console/Kernel.php
resources/js/components/common/Icon.js
resources/js/components/episodes/Crew.js
resources/js/components/episodes/Item.js
resources/js/components/pages/Schedule.js

index e04fda3d46696cb4c286197e797cb31b9706a64d..2fc689c24ff66118634d1843036a640f81f35e1f 100644 (file)
@@ -16,7 +16,7 @@ class Kernel extends ConsoleKernel
     protected function schedule(Schedule $schedule)
     {
                $schedule->command('sync:avatars')->everyFiveMinutes();
-               $schedule->command('sync:speedgaming')->everyFifteenMinutes();
+               $schedule->command('sync:speedgaming')->everyFiveMinutes();
     }
 
     /**
index dd88669cc3796f6eb11b970190a98f41efc0c6b2..384362c7b8c06a66fee950cbb4fb6a47f5f8a851 100644 (file)
@@ -73,6 +73,9 @@ Icon.FORFEIT = makePreset('ForfeitIcon', 'square-xmark');
 Icon.LANGUAGE = makePreset('LanguageIcon', 'language');
 Icon.LOCKED = makePreset('LockedIcon', 'lock');
 Icon.LOGOUT = makePreset('LogoutIcon', 'sign-out-alt');
+Icon.MICROPHONE = makePreset('MicrophoneIcon', 'microphone');
+Icon.MONITOR = makePreset('MonitorIcon', 'tv');
+Icon.MOUSE = makePreset('MouseIcon', 'arrow-pointer');
 Icon.PENDING = makePreset('PendingIcon', 'clock');
 Icon.PIN = makePreset('PinIcon', 'location-pin');
 Icon.PROTOCOL = makePreset('ProtocolIcon', 'file-alt');
index 610454e17a6ae164cf8535c0ac97fa3e04aeb09d..0a037ee8ec7bb340700e7df33096244beea2f806 100644 (file)
@@ -4,6 +4,7 @@ import { Col, Row } from 'react-bootstrap';
 import { useTranslation } from 'react-i18next';
 
 import CrewMember from './CrewMember';
+import Icon from '../common/Icon';
 import { compareCrew } from '../../helpers/Crew';
 
 const Crew = ({ crew }) => {
@@ -23,6 +24,7 @@ const Crew = ({ crew }) => {
                {commentators.length ?
                        <Col md>
                                <div className="fs-5">
+                                       <Icon.MICROPHONE className="ms-3 me-2" title="" />
                                        {t('episodes.commentary')}
                                </div>
                                {commentators.map(c =>
@@ -33,6 +35,7 @@ const Crew = ({ crew }) => {
                {trackers.length ?
                        <Col md>
                                <div className="fs-5">
+                                       <Icon.MOUSE className="ms-3 me-2" title="" />
                                        {t('episodes.tracking')}
                                </div>
                                {trackers.map(c =>
@@ -43,6 +46,7 @@ const Crew = ({ crew }) => {
                {techies.length ?
                        <Col md>
                                <div className="fs-5">
+                                       <Icon.MONITOR className="ms-3 me-2" title="" />
                                        {t('episodes.setup')}
                                </div>
                                {techies.map(c =>
index 5f43c1248b15fb1df75f6c39477f7dfe223baaf7..19760ee6c5624cb859cb5b65438558f067a56761 100644 (file)
@@ -81,11 +81,10 @@ const Item = ({ episode, onAddRestream, onEditRestream, user }) => {
                                                <div>
                                                        <Button
                                                                onClick={() => onAddRestream(episode)}
+                                                               title={t('episodes.addRestream')}
                                                                variant="outline-secondary"
                                                        >
                                                                <Icon.ADD title="" />
-                                                               {' '}
-                                                               {t('episodes.addRestream')}
                                                        </Button>
                                                </div>
                                        : null}
index 10b4b4977efc925ab286326075f0739bc73731c3..221fa987b38953416686eb616e8663f3de3b959c 100644 (file)
@@ -118,7 +118,7 @@ const Schedule = ({ user }) => {
                fetchEpisodes(controller, ahead, behind, filter);
                const timer = setInterval(() => {
                        fetchEpisodes(controller, ahead, behind, filter);
-               }, 3 * 60 * 1000);
+               }, 1.5 * 60 * 1000);
                return () => {
                        controller.abort();
                        clearInterval(timer);