From f2dc03f77ece5d2522ce54a4f7bb0370153fff8b Mon Sep 17 00:00:00 2001 From: Olzzon Date: Thu, 23 Jan 2020 21:40:13 +0100 Subject: [PATCH] feat: disable settings in browser by adding localhost:1176/?settings=0 --- README.md | 2 ++ client/components/App.tsx | 1 + client/components/ChanStrip.tsx | 26 ++++++++++++++++---------- client/components/Channels.tsx | 8 ++++++-- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 12912cdc..15439420 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ The levels are: ### Open GUI in browser: ``` localhost:1176 (or whatever ip you use for Sisyfos Nodejs/Docker) +IF you wan´t to disable settings: +localhost:1176/?settings=0 ``` ## Settings: diff --git a/client/components/App.tsx b/client/components/App.tsx index a5615d02..786bcd14 100644 --- a/client/components/App.tsx +++ b/client/components/App.tsx @@ -19,6 +19,7 @@ class App extends React.Component { } componentWillMount() { + console.log('http args : ', window.location.search.includes('settings=0')) window.socketIoClient.emit('get-mixerprotocol', 'get selected mixerprotocol') window.socketIoClient.emit('get-store', 'update local store'); window.socketIoClient.emit('get-settings', 'update local settings'); diff --git a/client/components/ChanStrip.tsx b/client/components/ChanStrip.tsx index 00ec04a6..ae85d89d 100644 --- a/client/components/ChanStrip.tsx +++ b/client/components/ChanStrip.tsx @@ -332,16 +332,22 @@ class ChanStrip extends React.PureComponent
- - + {window.location.search.includes('settings=0') ? + null : + + } + {window.location.search.includes('settings=0') ? + null : + + }

{this.props.offtubeMode ? diff --git a/client/components/Channels.tsx b/client/components/Channels.tsx index 1f4d26be..8aabd355 100644 --- a/client/components/Channels.tsx +++ b/client/components/Channels.tsx @@ -118,20 +118,24 @@ class Channels extends React.Component { } + {window.location.search.includes('settings=0') ? + null : - + } + {window.location.search.includes('settings=0') ? + null : - + }