Skip to content

Commit

Permalink
feat: settings are changed so they are only available when /?settings…
Browse files Browse the repository at this point in the history
…=1 is added
  • Loading branch information
olzzon committed Mar 19, 2021
1 parent 3aa404a commit 48f61a4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ The levels are:
localhost:1176 (or whatever ip you use for Sisyfos Nodejs/Docker)
```

IF you wan´t to disable settings:
#### Important - To enable settings:

```
localhost:1176/?settings=0
localhost:1176/?settings=1
```

To see the MiniMonitorView:
Expand Down
2 changes: 1 addition & 1 deletion client/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class App extends React.Component<IAppProps> {
componentWillMount() {
console.log(
'http args : ',
window.location.search.includes('settings=0')
window.location.search.includes('settings=1')
)
window.socketIoClient.emit(
'get-mixerprotocol',
Expand Down
12 changes: 6 additions & 6 deletions client/components/ChanStripFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -802,25 +802,25 @@ class ChanStripFull extends React.PureComponent<
X
</button>
{window.location.search.includes(
'settings=0'
) ? null : (
'settings=1'
) ? (
<button
className="button half"
onClick={() => this.handleShowRoutingOptions()}
>
Channel-Fader Routing
</button>
)}
) : null}
{window.location.search.includes(
'settings=0'
) ? null : (
'settings=1'
) ? (
<button
className="button half"
onClick={() => this.handleShowMonitorOptions()}
>
Monitor Routing
</button>
)}
) : null}
</div>
<hr />
{this.parameters()}
Expand Down
12 changes: 4 additions & 8 deletions client/components/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
</button>
)}

{window.location.search.includes(
'settings=0'
) ? null : (
{window.location.search.includes('settings=1') ? (
<button
className="button half channels-show-settings-button"
onClick={() => {
Expand All @@ -283,7 +281,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
>
SETTINGS
</button>
)}
) : null}

<button
className="button half channels-show-storage-button"
Expand All @@ -294,9 +292,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
STORAGE
</button>

{window.location.search.includes(
'settings=0'
) ? null : (
{window.location.search.includes('settings=1') ? (
<button
className="button half channels-show-settings-button"
onClick={() => {
Expand All @@ -305,7 +301,7 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
>
PAGES SETUP
</button>
)}
) : null}
</div>
<div className="mid">
{this.renderAllManualButton()}
Expand Down
20 changes: 14 additions & 6 deletions client/components/RoutingStorage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ class Storage extends React.PureComponent<IStorageProps & Store> {
const listItems = window.mixerPresetList.map(
(file: string, index: number) => {
return (
<li key={index} onClick={this.loadMixerPreset} className="item">
<li
key={index}
onClick={this.loadMixerPreset}
className="item"
>
{file}
</li>
)
Expand All @@ -141,11 +145,15 @@ class Storage extends React.PureComponent<IStorageProps & Store> {
</button>
<h2>STORAGE</h2>
<br />
<h3>SAVE ROUTING :</h3>
<button onClick={this.saveFile} className="button">
SAVE
</button>
<hr />
{window.location.search.includes('settings=1') ? (
<React.Fragment>
<h3>SAVE ROUTING :</h3>
<button onClick={this.saveFile} className="button">
SAVE
</button>
<hr />
</React.Fragment>
) : null}
<h3>LOAD ROUTING :</h3>
<this.ListSnapshotFiles />
{window.mixerPresetList.length > 0 ? (
Expand Down

0 comments on commit 48f61a4

Please sign in to comment.