Rework settings popup
This commit is contained in:
parent
d322c0909a
commit
af9b123e8d
@ -19,6 +19,13 @@
|
|||||||
<h1>
|
<h1>
|
||||||
<span class="smallcaps">Ultrawidify</span>: <small>Quick settings</small>
|
<span class="smallcaps">Ultrawidify</span>: <small>Quick settings</small>
|
||||||
</h1>
|
</h1>
|
||||||
|
<div v-if="site && siteSettings" style="transform: scale(0.75) translateX(-12.5%); margin-bottom: -0.5rem; align-content: center" class="flex flex-row">
|
||||||
|
<div>site: {{site.host}}</div>
|
||||||
|
<SupportLevelIndicator
|
||||||
|
:siteSupportLevel="siteSupportLevel"
|
||||||
|
>
|
||||||
|
</SupportLevelIndicator>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="BrowserDetect?.processEnvChannel !== 'stable'" class="absolute channel-info version-info">
|
<div v-if="BrowserDetect?.processEnvChannel !== 'stable'" class="absolute channel-info version-info">
|
||||||
Build channel: {{BrowserDetect?.processEnvChannel}} <br/>
|
Build channel: {{BrowserDetect?.processEnvChannel}} <br/>
|
||||||
@ -113,6 +120,7 @@ import Settings from '../ext/lib/Settings';
|
|||||||
import Logger from '../ext/lib/Logger';
|
import Logger from '../ext/lib/Logger';
|
||||||
import EventBus from '../ext/lib/EventBus';
|
import EventBus from '../ext/lib/EventBus';
|
||||||
import {ChromeShittinessMitigations as CSM} from '../common/js/ChromeShittinessMitigations';
|
import {ChromeShittinessMitigations as CSM} from '../common/js/ChromeShittinessMitigations';
|
||||||
|
import SupportLevelIndicator from '@csui/src/components/SupportLevelIndicator.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -122,6 +130,7 @@ export default {
|
|||||||
PlayerDetectionPanel,
|
PlayerDetectionPanel,
|
||||||
BaseExtensionSettings,
|
BaseExtensionSettings,
|
||||||
InPlayerUIAdvertisement,
|
InPlayerUIAdvertisement,
|
||||||
|
SupportLevelIndicator,
|
||||||
AboutPanel
|
AboutPanel
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -146,6 +155,11 @@ export default {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
siteSupportLevel() {
|
||||||
|
return (this.site && this.siteSettings) ? this.siteSettings.data.type || 'no-support' : 'waiting';
|
||||||
|
}
|
||||||
|
},
|
||||||
async created() {
|
async created() {
|
||||||
this.logger = new Logger();
|
this.logger = new Logger();
|
||||||
await this.logger.init({
|
await this.logger.init({
|
||||||
|
@ -103,7 +103,6 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
padding-top: 1.5rem;
|
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -138,8 +138,7 @@ import ChangelogPanel from './PlayerUiPanels/ChangelogPanel.vue'
|
|||||||
import AboutPanel from '@csui/src/PlayerUiPanels/AboutPanel.vue'
|
import AboutPanel from '@csui/src/PlayerUiPanels/AboutPanel.vue'
|
||||||
import PlayerUiSettings from './PlayerUiPanels/PlayerUiSettings.vue'
|
import PlayerUiSettings from './PlayerUiPanels/PlayerUiSettings.vue'
|
||||||
import ResetBackupPanel from './PlayerUiPanels/ResetBackupPanel.vue'
|
import ResetBackupPanel from './PlayerUiPanels/ResetBackupPanel.vue'
|
||||||
|
import SupportLevelIndicator from '@csui/src/components/SupportLevelIndicator.vue'
|
||||||
import SupportLevelIndicator from './components/SupportLevelIndicator.vue'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
<!-- Enable extension -->
|
<!-- Enable extension -->
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Enable extension under the following conditions:
|
Enable <span class="color-emphasis">extension</span>
|
||||||
|
<span class="sub-label"><br/>under the following conditions:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<select
|
<select
|
||||||
@ -18,7 +19,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<template v-if="isDefaultConfiguration">
|
<template v-if="isDefaultConfiguration">
|
||||||
<option value="disabled">
|
<option value="disabled">
|
||||||
Disabled (unless enabled for specific site)
|
Disabled by default
|
||||||
</option>
|
</option>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@ -42,10 +43,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- The rest of the menu is disabled when extension is disabled -->
|
||||||
|
<div :class="{disabled: simpleExtensionSettings.enable === 'disabled' }">
|
||||||
<!-- Enable AARD -->
|
<!-- Enable AARD -->
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Enable automatic aspect ratio detection under the following conditions:
|
Enable <span class="color-emphasis">automatic aspect ratio detection</span>
|
||||||
|
<span class="sub-label"><br/>under the following conditions:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<select
|
<select
|
||||||
@ -60,7 +64,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<template v-if="isDefaultConfiguration">
|
<template v-if="isDefaultConfiguration">
|
||||||
<option value="disabled">
|
<option value="disabled">
|
||||||
Disabled (unless enabled for specific site)
|
Disabled by default
|
||||||
</option>
|
</option>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@ -87,7 +91,8 @@
|
|||||||
<!-- Enable keyboard -->
|
<!-- Enable keyboard -->
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Enable keyboard shortcuts under the following conditions
|
Enable <span class="color-emphasis">keyboard shortcuts</span>
|
||||||
|
<span class="sub-label"><br/>under the following conditions:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<select
|
<select
|
||||||
@ -102,7 +107,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<template v-if="isDefaultConfiguration">
|
<template v-if="isDefaultConfiguration">
|
||||||
<option value="disabled">
|
<option value="disabled">
|
||||||
Disabled (unless enabled for specific site)
|
Disabled by default
|
||||||
</option>
|
</option>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
@ -126,6 +131,40 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Enable keyboard -->
|
||||||
|
<div class="field">
|
||||||
|
<div class="label">
|
||||||
|
Enable <span class="color-emphasis">in-player UI</span>
|
||||||
|
<span class="sub-label"><br/>under the following conditions:</span>
|
||||||
|
</div>
|
||||||
|
<div class="select">
|
||||||
|
<select
|
||||||
|
v-model="simpleExtensionSettings.enableUI"
|
||||||
|
@click="setExtensionMode('enableUI', $event)"
|
||||||
|
>
|
||||||
|
<template v-if="isDefaultConfiguration">
|
||||||
|
<option value="disabled">
|
||||||
|
Disabled by default
|
||||||
|
</option>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<option value="default">
|
||||||
|
Use default ()
|
||||||
|
</option>
|
||||||
|
<option value="disabled">
|
||||||
|
Never
|
||||||
|
</option>
|
||||||
|
</template>
|
||||||
|
<option value="fs">
|
||||||
|
Fullscreen only
|
||||||
|
</option>
|
||||||
|
<option value="theater">
|
||||||
|
Always where possible
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Default crop -->
|
<!-- Default crop -->
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">Default crop:</div>
|
<div class="label">Default crop:</div>
|
||||||
@ -149,8 +188,8 @@
|
|||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="hint">This is how extension will crop video if/when autodetection is disabled. Pick 'Reset' option to keep aspect ratio as-is by default.</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="hint">This is how extension will crop video if/when autodetection is disabled. Pick 'Reset' option to keep aspect ratio as-is by default.</div>
|
||||||
|
|
||||||
<!-- Default stretch -->
|
<!-- Default stretch -->
|
||||||
<div class="field">
|
<div class="field">
|
||||||
@ -224,6 +263,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -401,13 +441,20 @@ export default {
|
|||||||
commandArguments = undefined;
|
commandArguments = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('saving settings ...');
|
||||||
await this.siteSettings.set(option, commandArguments, {reload: false});
|
await this.siteSettings.set(option, commandArguments, {reload: false});
|
||||||
|
console.log('settings saved.');
|
||||||
|
|
||||||
// changing alignment options doesn't trigger re-compute, so we need to do it ourselves.
|
// we also need to force re-compute all watchers, otherwise UI will lag behind
|
||||||
// note that this re-computes siteDefaultAlignment even when setting other options, but
|
// actual state of settings until reload
|
||||||
// it's _too late AM_ and hit to performance probably isn't bad enough to warrant
|
this._computedWatchers?.simpleExtensionSettings?.run();
|
||||||
// spending time on a more correct solution tomorrow
|
this._computedWatchers?.siteDefaultCrop?.run();
|
||||||
this._computedWatchers.siteDefaultAlignment.run();
|
this._computedWatchers?.siteDefaultStretch?.run();
|
||||||
|
this._computedWatchers?.siteDefaultAlignment?.run();
|
||||||
|
this._computedWatchers?.siteDefaultCropPersistence?.run();
|
||||||
|
this._computedWatchers?.defaultPersistanceLabel?.run();
|
||||||
|
|
||||||
|
console.log('watchers recomputed');
|
||||||
|
|
||||||
this.$nextTick( () => this.$forceUpdate());
|
this.$nextTick( () => this.$forceUpdate());
|
||||||
},
|
},
|
||||||
|
@ -54,12 +54,13 @@
|
|||||||
@blur="editModeOptions.crop.selected.label === 'New aspect ratio' ? editModeOptions.crop.selected.label = editModeOptions.crop.selected.arguments.ratio : null"
|
@blur="editModeOptions.crop.selected.label === 'New aspect ratio' ? editModeOptions.crop.selected.label = editModeOptions.crop.selected.arguments.ratio : null"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
You can enter a ratio in width:height format (e.g. "21:9" or "1:2.39"), or just the factor
|
You can enter a ratio in width:height format (e.g. "21:9" or "1:2.39"), or just the factor
|
||||||
(in this case, "1:2.39" would become "2.39" and "21:9" would become "2.33"). You should enter
|
(in this case, "1:2.39" would become "2.39" and "21:9" would become "2.33"). You should enter
|
||||||
your numbers without quote marks. Number will be converted to factor form on save.
|
your numbers without quote marks. Number will be converted to factor form on save.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
Label:
|
Label:
|
||||||
@ -67,10 +68,10 @@
|
|||||||
<div class="input">
|
<div class="input">
|
||||||
<input v-model="editModeOptions.crop.selected.label">
|
<input v-model="editModeOptions.crop.selected.label">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
Label for the button. You can make it say something other than ratio.
|
Label for the button. You can make it say something other than ratio.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- editing keyboard shortcuts is always allowed -->
|
<!-- editing keyboard shortcuts is always allowed -->
|
||||||
@ -83,12 +84,12 @@
|
|||||||
>
|
>
|
||||||
</EditShortcutButton>
|
</EditShortcutButton>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
<b>Note:</b> Your browser and OS already use certain key combinations that involve Ctrl and Meta (Windows) keys — and, to a lesser extent, Alt.
|
<b>Note:</b> Your browser and OS already use certain key combinations that involve Ctrl and Meta (Windows) keys — and, to a lesser extent, Alt.
|
||||||
The extension doesn't (and cannot) check whether the keyboard shortcut you enter is actually free for you to use. The extension also won't override
|
The extension doesn't (and cannot) check whether the keyboard shortcut you enter is actually free for you to use. The extension also won't override
|
||||||
any keyboard shortcuts defined by the site itself.
|
any keyboard shortcuts defined by the site itself.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-row flex-end">
|
<div class="flex flex-row flex-end">
|
||||||
<div
|
<div
|
||||||
|
@ -73,10 +73,11 @@
|
|||||||
@change="(event) => updateSettings(true)"
|
@change="(event) => updateSettings(true)"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
Width of the trigger zone (% of player area).
|
Width of the trigger zone (% of player area).
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">Trigger zone height:</div>
|
<div class="label">Trigger zone height:</div>
|
||||||
<div class="input range-input">
|
<div class="input range-input">
|
||||||
@ -95,10 +96,11 @@
|
|||||||
@change="(event) => updateSettings(true)"
|
@change="(event) => updateSettings(true)"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
Height of the trigger zone (% of player area).
|
Height of the trigger zone (% of player area).
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">Trigger zone horizontal offset:</div>
|
<div class="label">Trigger zone horizontal offset:</div>
|
||||||
<div class="input range-input">
|
<div class="input range-input">
|
||||||
@ -116,10 +118,11 @@
|
|||||||
@change="(event) => updateSettings(true)"
|
@change="(event) => updateSettings(true)"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
By default, trigger zone is centered around the button. This option moves trigger zone left and right.
|
By default, trigger zone is centered around the button. This option moves trigger zone left and right.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="label">Trigger zone vertical offset:</div>
|
<div class="label">Trigger zone vertical offset:</div>
|
||||||
<div class="input range-input">
|
<div class="input range-input">
|
||||||
@ -137,10 +140,10 @@
|
|||||||
@change="(event) => updateSettings(true)"
|
@change="(event) => updateSettings(true)"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
By default, trigger zone is centered around the button. This option moves trigger zone up and down.
|
By default, trigger zone is centered around the button. This option moves trigger zone up and down.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="action-row">
|
<div class="action-row">
|
||||||
<button @click="finishTriggerZoneEdit">Finish editing</button>
|
<button @click="finishTriggerZoneEdit">Finish editing</button>
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-col" style="padding-bottom: 20px">
|
<div class="flex flex-col" style="padding-bottom: 20px">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Extension is disabled for a given site when it's disabled in full screen, since
|
||||||
|
current settings do not allow the extension to only be disabled while in full screen
|
||||||
|
-->
|
||||||
|
<template v-if="siteSettings.isEnabledForEnvironment(false, true) === ExtensionMode.Disabled">
|
||||||
|
<div class="info">
|
||||||
|
Extension is not enabled for this site.
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
<mdicon name="crop" :size="24" />
|
<mdicon name="crop" :size="24" />
|
||||||
<h1>Crop video:</h1>
|
<h1>Crop video:</h1>
|
||||||
@ -40,11 +51,13 @@
|
|||||||
import CropOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/CropOptionsPanel';
|
import CropOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/CropOptionsPanel';
|
||||||
import StretchOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue';
|
import StretchOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue';
|
||||||
import ZoomOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/ZoomOptionsPanel.vue';
|
import ZoomOptionsPanel from '../../PlayerUiPanels/PanelComponents/VideoSettings/ZoomOptionsPanel.vue';
|
||||||
|
import ExtensionMode from '@src/common/enums/ExtensionMode.enum.ts';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
exec: null,
|
exec: null,
|
||||||
|
ExtensionMode: ExtensionMode,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mixins: [
|
mixins: [
|
||||||
|
@ -115,7 +115,9 @@ button, .button {
|
|||||||
.field {
|
.field {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
@ -129,28 +131,39 @@ button, .button {
|
|||||||
|
|
||||||
.label {
|
.label {
|
||||||
flex: 0 0 25%;
|
flex: 0 0 25%;
|
||||||
|
min-width: 16rem;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
|
|
||||||
|
.color-emphasis {
|
||||||
|
color: #fa6;
|
||||||
|
}
|
||||||
|
.sub-label {
|
||||||
|
font-size: 0.9em;
|
||||||
|
opacity: 0.69;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.input, .range-input {
|
.input, .range-input {
|
||||||
flex: 0 0 70%;
|
flex-grow: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
max-width: 24rem;
|
max-width: 24rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hint {
|
.has-hint {
|
||||||
padding-left: calc(25% + 1rem);
|
display: flex;
|
||||||
font-size: 0.8rem;
|
flex-direction: column;
|
||||||
opacity: 0.7;
|
|
||||||
margin-top: 0.25rem;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 1;
|
||||||
|
|
||||||
select {
|
select {
|
||||||
background: rgba($blackBg, $hoverTransparentOpacity);
|
background: rgba($blackBg, $hoverTransparentOpacity);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: 0px solid transparent;
|
// border: 0px solid transparent;
|
||||||
|
border: 1px solid rgba(255, 171, 102, 0.42);
|
||||||
|
|
||||||
padding: 0.5rem 1rem 0.25rem;
|
padding: 0.5rem 1rem 0.25rem;
|
||||||
outline: none;
|
outline: none;
|
||||||
@ -160,6 +173,15 @@ button, .button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.hint {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
margin-top: 0.25rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
margin-left: 5rem;
|
||||||
|
// width: 100%;
|
||||||
|
box-sizing:border-box;
|
||||||
|
}
|
||||||
|
|
||||||
.options-bar {
|
.options-bar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -224,7 +224,7 @@ export class SiteSettings {
|
|||||||
* @param isFullscreen
|
* @param isFullscreen
|
||||||
* @returns ExtensionMode
|
* @returns ExtensionMode
|
||||||
*/
|
*/
|
||||||
isEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean) {
|
isEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean): ExtensionMode {
|
||||||
const env = this._getEnvironment(isTheater, isFullscreen);
|
const env = this._getEnvironment(isTheater, isFullscreen);
|
||||||
return this.data.enable[env];
|
return this.data.enable[env];
|
||||||
}
|
}
|
||||||
@ -235,7 +235,7 @@ export class SiteSettings {
|
|||||||
* @param isFullscreen
|
* @param isFullscreen
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
isAardEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean) {
|
isAardEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean): ExtensionMode {
|
||||||
const env = this._getEnvironment(isTheater, isFullscreen);
|
const env = this._getEnvironment(isTheater, isFullscreen);
|
||||||
return this.data.enableAard[env];
|
return this.data.enableAard[env];
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@ export class SiteSettings {
|
|||||||
* @param isFullscreen
|
* @param isFullscreen
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
isKeyboardEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean) {
|
isKeyboardEnabledForEnvironment(isTheater: boolean, isFullscreen: boolean): ExtensionMode {
|
||||||
const env = this._getEnvironment(isTheater, isFullscreen);
|
const env = this._getEnvironment(isTheater, isFullscreen);
|
||||||
return this.data.enableKeyboard[env];
|
return this.data.enableKeyboard[env];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user