player detect panel boilerplate
This commit is contained in:
parent
296f146835
commit
d2447d2d8a
@ -23,7 +23,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="siteSupportLevel === 'no-support'" class="site-support no-support">
|
<div v-if="siteSupportLevel === 'no-support'" class="site-support no-support">
|
||||||
<mdicon name="help-circle-outline" />
|
<mdicon name="help-circle-outline" />
|
||||||
<span class="mdi help-circle-outline mdi-help-circle-outline"></span>
|
|
||||||
<div>Unknown</div>
|
<div>Unknown</div>
|
||||||
<div class="tooltip">
|
<div class="tooltip">
|
||||||
Not officially supported. Extension will try to fix things, but no promises.<br/><br/>
|
Not officially supported. Extension will try to fix things, but no promises.<br/><br/>
|
||||||
@ -32,8 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="siteSupportLevel === 'user-added'" class="site-support user-added">
|
<div v-if="siteSupportLevel === 'user-added'" class="site-support user-added">
|
||||||
<!-- <mdicon name="account" /> -->
|
<mdicon name="account" />
|
||||||
<span class="mdi account-edit mdi-account-edit"></span>
|
|
||||||
<div>Custom</div>
|
<div>Custom</div>
|
||||||
<div class="tooltip">
|
<div class="tooltip">
|
||||||
You have manually changed settings for this site. The extension is doing what you told it to do.
|
You have manually changed settings for this site. The extension is doing what you told it to do.
|
||||||
@ -81,10 +79,15 @@
|
|||||||
<!-- Panel section -->
|
<!-- Panel section -->
|
||||||
<template v-if="settingsInitialized">
|
<template v-if="settingsInitialized">
|
||||||
<VideoSettings
|
<VideoSettings
|
||||||
|
v-if="selectedTab === 'videoSettings'"
|
||||||
:settings="settings"
|
:settings="settings"
|
||||||
:eventBus="eventBus"
|
:eventBus="eventBus"
|
||||||
:site="site"
|
:site="site"
|
||||||
></VideoSettings>
|
></VideoSettings>
|
||||||
|
<PlayerDetectionPanel
|
||||||
|
v-if="selectedTab === 'playerDetection'"
|
||||||
|
>
|
||||||
|
</PlayerDetectionPanel>
|
||||||
<!-- <ResizerDebugPanel :debugData="debugData">
|
<!-- <ResizerDebugPanel :debugData="debugData">
|
||||||
</ResizerDebugPanel> -->
|
</ResizerDebugPanel> -->
|
||||||
</template>
|
</template>
|
||||||
@ -96,6 +99,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import VideoSettings from './src/PlayerUiPanels/VideoSettings.vue'
|
import VideoSettings from './src/PlayerUiPanels/VideoSettings.vue'
|
||||||
|
import PlayerDetectionPanel from './src/PlayerUiPanels/PlayerDetectionPanel.vue'
|
||||||
import { mapState } from 'vuex';
|
import { mapState } from 'vuex';
|
||||||
// import Icon from '../common/components/Icon';
|
// import Icon from '../common/components/Icon';
|
||||||
import ResizerDebugPanel from './src/PlayerUiPanels/ResizerDebugPanelComponent';
|
import ResizerDebugPanel from './src/PlayerUiPanels/ResizerDebugPanelComponent';
|
||||||
@ -108,7 +112,9 @@ import EventBus from '../ext/lib/EventBus';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
// Icon,
|
// Icon,
|
||||||
ResizerDebugPanel, VideoSettings
|
ResizerDebugPanel,
|
||||||
|
VideoSettings,
|
||||||
|
PlayerDetectionPanel
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -286,6 +292,7 @@ export default {
|
|||||||
selectTab(tab) {
|
selectTab(tab) {
|
||||||
console.log('selected tab:', tab);
|
console.log('selected tab:', tab);
|
||||||
console.warn('NOTE: tab selection is not syet inplemented!')
|
console.warn('NOTE: tab selection is not syet inplemented!')
|
||||||
|
this.selectedTab = tab;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,59 @@
|
|||||||
<template>
|
<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>
|
</template>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
|
||||||
|
export default({
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mixins: [],
|
||||||
|
props: [
|
||||||
|
'settings',
|
||||||
|
'frame',
|
||||||
|
'eventBus',
|
||||||
|
'site'
|
||||||
|
],
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user