player detect panel boilerplate

This commit is contained in:
Tamius Han 2022-06-09 01:29:26 +02:00
parent 296f146835
commit d2447d2d8a
2 changed files with 67 additions and 4 deletions

View File

@ -23,7 +23,6 @@
</div>
<div v-if="siteSupportLevel === 'no-support'" class="site-support no-support">
<mdicon name="help-circle-outline" />
<span class="mdi help-circle-outline mdi-help-circle-outline"></span>
<div>Unknown</div>
<div class="tooltip">
Not officially supported. Extension will try to fix things, but no promises.<br/><br/>
@ -32,8 +31,7 @@
</div>
</div>
<div v-if="siteSupportLevel === 'user-added'" class="site-support user-added">
<!-- <mdicon name="account" /> -->
<span class="mdi account-edit mdi-account-edit"></span>
<mdicon name="account" />
<div>Custom</div>
<div class="tooltip">
You have manually changed settings for this site. The extension is doing what you told it to do.
@ -81,10 +79,15 @@
<!-- Panel section -->
<template v-if="settingsInitialized">
<VideoSettings
v-if="selectedTab === 'videoSettings'"
:settings="settings"
:eventBus="eventBus"
:site="site"
></VideoSettings>
<PlayerDetectionPanel
v-if="selectedTab === 'playerDetection'"
>
</PlayerDetectionPanel>
<!-- <ResizerDebugPanel :debugData="debugData">
</ResizerDebugPanel> -->
</template>
@ -96,6 +99,7 @@
<script>
import VideoSettings from './src/PlayerUiPanels/VideoSettings.vue'
import PlayerDetectionPanel from './src/PlayerUiPanels/PlayerDetectionPanel.vue'
import { mapState } from 'vuex';
// import Icon from '../common/components/Icon';
import ResizerDebugPanel from './src/PlayerUiPanels/ResizerDebugPanelComponent';
@ -108,7 +112,9 @@ import EventBus from '../ext/lib/EventBus';
export default {
components: {
// Icon,
ResizerDebugPanel, VideoSettings
ResizerDebugPanel,
VideoSettings,
PlayerDetectionPanel
},
data() {
return {
@ -286,6 +292,7 @@ export default {
selectTab(tab) {
console.log('selected tab:', tab);
console.warn('NOTE: tab selection is not syet inplemented!')
this.selectedTab = tab;
}
}
}

View File

@ -1,3 +1,59 @@
<template>
<div class="flex flex-column">
<!-- ADD ANY OPTION BARS HERE -->
<!-- The rest of the tab -->
<div class="flex flex-row flex-wrap">
<!-- Player element picker -->
<div class="sub-panel">
<div class="flex flex-row">
<mdicon name="crop" :size="32" />
<h1>Player element</h1>
</div>
<div class="sub-panel-content">
<p>
You're probably on this page because Ultrawidify doesn't crop the player correctly. If you want to know more about
why this happens, explanation can be found on <a href="https://github.com/tamius-han/ultrawidify/wiki/2.-Player-detection-(and-related-problems)#why-does-ultrawidify-have-this-problem-when-this-other-extension-doesnt" target="_blank">the wiki page</a>.
</p>
<div class="element-tree">
<div class="html-element-boxes">
</div>
<div class="element-config">
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default({
components: {
},
data() {
return {
};
},
mixins: [],
props: [
'settings',
'frame',
'eventBus',
'site'
],
mounted() {
},
computed: {},
methods: {
}
})
</script>