Add about panel back to the popup

This commit is contained in:
Tamius Han 2025-01-13 01:31:59 +01:00
parent bc6d2ac549
commit dd47dd09da
2 changed files with 32 additions and 44 deletions

View File

@ -85,6 +85,11 @@
:site="site.host" :site="site.host"
> >
</BaseExtensionSettings> </BaseExtensionSettings>
<AboutPanel
v-if="selectedTab === 'about'"
>
</AboutPanel>
</template> </template>
<template v-else>No settings or site settings found.</template> <template v-else>No settings or site settings found.</template>
</div> </div>
@ -99,6 +104,7 @@ import BaseExtensionSettings from './src/PlayerUiPanels/BaseExtensionSettings.vu
import PlayerDetectionPanel from './src/PlayerUiPanels/PlayerDetectionPanel.vue' import PlayerDetectionPanel from './src/PlayerUiPanels/PlayerDetectionPanel.vue'
import PopupVideoSettings from './src/popup/panels/PopupVideoSettings.vue' import PopupVideoSettings from './src/popup/panels/PopupVideoSettings.vue'
import InPlayerUIAdvertisement from './src/PlayerUiPanels/InPlayerUiAdvertisement.vue'; import InPlayerUIAdvertisement from './src/PlayerUiPanels/InPlayerUiAdvertisement.vue';
import AboutPanel from '@csui/src/popup/panels/AboutPanel.vue'
import Debug from '../ext/conf/Debug'; import Debug from '../ext/conf/Debug';
import BrowserDetect from '../ext/conf/BrowserDetect'; import BrowserDetect from '../ext/conf/BrowserDetect';
import Comms from '../ext/lib/comms/Comms'; import Comms from '../ext/lib/comms/Comms';
@ -109,6 +115,15 @@ import EventBus from '../ext/lib/EventBus';
import {ChromeShittinessMitigations as CSM} from '../common/js/ChromeShittinessMitigations'; import {ChromeShittinessMitigations as CSM} from '../common/js/ChromeShittinessMitigations';
export default { export default {
components: {
Debug,
BrowserDetect,
PopupVideoSettings,
PlayerDetectionPanel,
BaseExtensionSettings,
InPlayerUIAdvertisement,
AboutPanel
},
data () { data () {
return { return {
comms: undefined, comms: undefined,
@ -127,6 +142,7 @@ export default {
{id: 'videoSettings', label: 'Video settings', icon: 'crop'}, {id: 'videoSettings', label: 'Video settings', icon: 'crop'},
// {id: 'playerDetection', label: 'Player detection', icon: 'television-play'}, // {id: 'playerDetection', label: 'Player detection', icon: 'television-play'},
{id: 'extensionSettings', label: 'Site and Extension options', icon: 'cogs' }, {id: 'extensionSettings', label: 'Site and Extension options', icon: 'cogs' },
{id: 'about', label: 'About', icon: 'information-outline'},
], ],
} }
}, },
@ -215,11 +231,7 @@ export default {
this.narrowPopup = body.offsetWidth < 600; this.narrowPopup = body.offsetWidth < 600;
} }
}, },
components: {
Debug,
BrowserDetect,
PopupVideoSettings, PlayerDetectionPanel, BaseExtensionSettings, InPlayerUIAdvertisement
},
methods: { methods: {
async sleep(t) { async sleep(t) {
return new Promise( (resolve,reject) => { return new Promise( (resolve,reject) => {

View File

@ -7,43 +7,19 @@
<span class="label">Having an issue?</span><br/> Report <strike>undocumented features</strike> bugs using one of the following options (in order of preference): <span class="label">Having an issue?</span><br/> Report <strike>undocumented features</strike> bugs using one of the following options (in order of preference):
<ul> <ul>
<li> <a target="_blank" href="https://github.com/tamius-han/ultrawidify/issues"><b>Github (preferred)</b></a><br/></li> <li> <a target="_blank" href="https://github.com/tamius-han/ultrawidify/issues"><b>Github (preferred)</b></a><br/></li>
<li>Email: <a target="_blank" :href="mailtoLink">tamius.han@gmail.com</a></li> <li>Email: <a target="_blank" :href="mailtoLink">{{gmailLink}}</a></li>
</ul> </ul>
</div> </div>
<div class="flex-grow"></div>
<div class="row">
<span class="label">Swatter mode (logging)</span><br/>
</div>
<div v-if="showEasterEgg" class="center"><small>You've made plenty of marks, all in the wrong places!</small></div>
<div class="flex flex-row">
<ShortcutButton class="flex flex-grow button"
label="Show logger"
:active="loggingEnabled"
@click.native="showLogger()"
></ShortcutButton>
<ShortcutButton class="flex flex-grow button"
label="Make a mark"
@click.native="sendMark()"
></ShortcutButton>
<ShortcutButton class="flex flex-grow button"
label="Hide logger"
@click.native="hideLogger()"
></ShortcutButton>
</div>
</div> </div>
</template> </template>
<script> <script>
import Comms from '../../ext/lib/comms/Comms'; // import Comms from '@src/ext/lib/comms/Comms';
import ShortcutButton from '../../common/components/ShortcutButton'; // import ShortcutButton from '@src/common/components/ShortcutButton';
import BrowserDetect from '../../ext/conf/BrowserDetect'; import BrowserDetect from '@src/ext/conf/BrowserDetect';
export default { export default {
components: { components: {
ShortcutButton,
}, },
data() { data() {
return { return {
@ -76,7 +52,7 @@ Browser-related stuff (please ensure this section is correct):
* Operating system: ${window.navigator.platform} * Operating system: ${window.navigator.platform}
` `
); );
this.mailtoLink = `mailto:tamius.han@gmail.com?subject=%5BUltrawidify%5D%20ENTER%20SUMMARY%20OF%20YOUR%20ISSUE%20HERE&body=${messageTemplate}`; this.mailtoLink = `mailto:${this.gmailLink}?subject=%5BUltrawidify%5D%20ENTER%20SUMMARY%20OF%20YOUR%20ISSUE%20HERE&body=${messageTemplate}`;
}, },
methods: { methods: {
async updateLoggerSettings(allowLogging) { async updateLoggerSettings(allowLogging) {
@ -94,15 +70,15 @@ Browser-related stuff (please ensure this section is correct):
// Logger.saveConfig({allowLogging: allowLogging, ...lastLoadedLoggerSettings}); // Logger.saveConfig({allowLogging: allowLogging, ...lastLoadedLoggerSettings});
// } // }
}, },
showLogger() { // showLogger() {
Comms.sendMessage({cmd: 'show-logger', forwardToActive: true}); // Comms.sendMessage({cmd: 'show-logger', forwardToActive: true});
}, // },
sendMark() { // sendMark() {
this.showEasterEgg = !this.showEasterEgg; // this.showEasterEgg = !this.showEasterEgg;
}, // },
hideLogger() { // hideLogger() {
Comms.sendMessage({cmd: 'hide-logger', forwardToActive: true}); // Comms.sendMessage({cmd: 'hide-logger', forwardToActive: true});
} // }
} }
} }
</script> </script>