2020-12-15 00:26:19 +01:00
|
|
|
<template>
|
|
|
|
<div class="uw-hover uv-hover-trigger-region">
|
|
|
|
TEST CONTENT
|
2020-12-17 01:49:28 +01:00
|
|
|
</div>
|
2021-10-19 22:49:56 +02:00
|
|
|
<div class="popup-panel flex flex-row">
|
|
|
|
<div class="tab-row flex flex-column">
|
2021-01-21 00:21:15 +01:00
|
|
|
<div class="tab">
|
|
|
|
todo: icon<br/>
|
|
|
|
Video options
|
|
|
|
</div>
|
2021-10-19 22:49:56 +02:00
|
|
|
<div class="tab">
|
|
|
|
Autodetection options
|
|
|
|
</div>
|
|
|
|
<div class="tab">
|
|
|
|
Advanced options
|
|
|
|
</div>
|
|
|
|
<div class="tab">
|
|
|
|
Debugging
|
|
|
|
</div>
|
2021-01-21 00:21:15 +01:00
|
|
|
</div>
|
2021-10-19 22:49:56 +02:00
|
|
|
<div>
|
2021-01-21 00:21:15 +01:00
|
|
|
<!-- Panel section -->
|
|
|
|
<template v-if="settingsInitialized">
|
|
|
|
<VideoSettings
|
|
|
|
:settings="settings"
|
|
|
|
></VideoSettings>
|
|
|
|
<ResizerDebugPanel :debugData="debugData">
|
|
|
|
</ResizerDebugPanel>
|
|
|
|
</template>
|
|
|
|
</div>
|
2020-12-15 00:26:19 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-01-21 00:21:15 +01:00
|
|
|
import VideoSettings from './PlayerUiPanels/VideoSettings.vue'
|
2020-12-15 00:26:19 +01:00
|
|
|
import { mapState } from 'vuex';
|
2021-10-22 00:30:36 +02:00
|
|
|
// import Icon from '../common/components/Icon';
|
2020-12-17 01:49:28 +01:00
|
|
|
import ResizerDebugPanel from './PlayerUiPanels/ResizerDebugPanelComponent';
|
2021-01-21 00:21:15 +01:00
|
|
|
import BrowserDetect from '../ext/conf/BrowserDetect';
|
|
|
|
import ExecAction from './ui-libs/ExecAction';
|
|
|
|
import Logger from '../ext/lib/Logger';
|
|
|
|
import Settings from '../ext/lib/Settings';
|
2020-12-15 00:26:19 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2021-10-22 00:30:36 +02:00
|
|
|
// Icon,
|
2021-01-21 00:21:15 +01:00
|
|
|
ResizerDebugPanel, VideoSettings
|
2020-12-15 00:26:19 +01:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2021-01-21 00:21:15 +01:00
|
|
|
// component properties
|
|
|
|
settings: {},
|
|
|
|
settingsInitialized: false,
|
|
|
|
execAction: new ExecAction(),
|
|
|
|
logger: null,
|
|
|
|
|
2020-12-16 00:19:02 +01:00
|
|
|
uiVisible: true,
|
|
|
|
debugData: {
|
|
|
|
resizer: {},
|
|
|
|
player: {},
|
2020-12-16 01:40:09 +01:00
|
|
|
},
|
|
|
|
debugDataPrettified: ''
|
2020-12-15 00:26:19 +01:00
|
|
|
};
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapState([
|
2020-12-16 00:19:02 +01:00
|
|
|
'showUi',
|
|
|
|
'resizerDebugData',
|
|
|
|
'playerDebugData'
|
2020-12-15 00:26:19 +01:00
|
|
|
]),
|
2020-12-16 01:40:09 +01:00
|
|
|
windowWidth: () => {
|
|
|
|
return window.innerWidth;
|
|
|
|
},
|
|
|
|
windowHeight: () => {
|
|
|
|
return window.innerHeight;
|
|
|
|
},
|
2020-12-15 00:26:19 +01:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
showUi(visible) {
|
|
|
|
if (visible !== undefined) {
|
|
|
|
this.uiVisible = visible;
|
|
|
|
}
|
2020-12-16 00:19:02 +01:00
|
|
|
},
|
|
|
|
resizerDebugData(newData) {
|
|
|
|
this.debugData.resizer = newData;
|
2020-12-16 01:40:09 +01:00
|
|
|
this.debugDataPrettified = JSON.stringify(this.debugData, null, 2);
|
2020-12-16 00:19:02 +01:00
|
|
|
},
|
|
|
|
playerDebugData(newData) {
|
|
|
|
this.debugData.player = newData;
|
2020-12-16 01:40:09 +01:00
|
|
|
this.debugDataPrettified = JSON.stringify(this.debugData, null, 2);
|
2020-12-15 00:26:19 +01:00
|
|
|
}
|
|
|
|
},
|
2021-01-21 00:21:15 +01:00
|
|
|
async created() {
|
|
|
|
try {
|
|
|
|
this.logger = new Logger();
|
|
|
|
await this.logger.init({
|
|
|
|
allowLogging: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
this.settings = new Settings({afterSettingsSaved: this.updateConfig, logger: this.logger});
|
|
|
|
await this.settings.init();
|
|
|
|
this.settingsInitialized = true;
|
|
|
|
|
2021-01-27 00:41:42 +01:00
|
|
|
console.log("settings inited")
|
|
|
|
|
2021-01-21 00:21:15 +01:00
|
|
|
this.execAction.setSettings(this.settings);
|
|
|
|
|
|
|
|
console.log("created!");
|
|
|
|
console.log("store:", this.$store, this);
|
2021-01-27 00:41:42 +01:00
|
|
|
|
|
|
|
console.log("settings:", this.settings)
|
|
|
|
console.log("windowPD", window.ultrawidify);
|
|
|
|
console.log("this:", this);
|
2021-01-21 00:21:15 +01:00
|
|
|
} catch (e) {
|
|
|
|
console.error('Failed to initiate ultrawidify player ui.', e);
|
|
|
|
}
|
2020-12-15 00:26:19 +01:00
|
|
|
},
|
|
|
|
methods: {
|
2020-12-22 03:14:03 +01:00
|
|
|
getUrl(url) {
|
2020-12-30 15:35:54 +01:00
|
|
|
return BrowserDetect.getURL(url);
|
2020-12-22 23:23:03 +01:00
|
|
|
},
|
2020-12-15 00:26:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2020-12-16 01:40:09 +01:00
|
|
|
<style lang="scss" src="../res/css/uwui-base.scss" scoped></style>
|
2021-10-19 22:49:56 +02:00
|
|
|
<style lang="scss" src="../res/css/flex.scss" scoped></style>
|
2020-12-15 00:26:19 +01:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import '../res/css/uwui-base.scss';
|
|
|
|
@import '../res/css/colors.scss';
|
|
|
|
@import '../res/css/font/overpass.css';
|
|
|
|
@import '../res/css/font/overpass-mono.css';
|
|
|
|
@import '../res/css/common.scss';
|
|
|
|
|
|
|
|
.uw-ultrawidify-container-root {
|
2020-12-17 01:49:28 +01:00
|
|
|
// .relative-wrapper {
|
|
|
|
// position: relative;
|
|
|
|
// width: 100%;
|
|
|
|
// height: 100%;
|
|
|
|
// }
|
|
|
|
|
2020-12-15 00:26:19 +01:00
|
|
|
.uw-hover {
|
|
|
|
position: absolute;
|
2020-12-17 01:49:28 +01:00
|
|
|
top: 10%;
|
|
|
|
left: 10%;
|
2020-12-15 00:26:19 +01:00
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
color: #fff;
|
|
|
|
background-color: #000;
|
2020-12-16 01:40:09 +01:00
|
|
|
|
|
|
|
z-index: 999999999999999999;
|
2020-12-15 00:26:19 +01:00
|
|
|
}
|
|
|
|
.uw-hover:hover {
|
|
|
|
background-color: #f00;
|
|
|
|
}
|
2020-12-16 01:40:09 +01:00
|
|
|
|
2021-01-21 00:21:15 +01:00
|
|
|
.popup-panel {
|
2020-12-17 01:49:28 +01:00
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 10%;
|
|
|
|
left: 10%;
|
2021-10-19 22:49:56 +02:00
|
|
|
|
2020-12-17 01:49:28 +01:00
|
|
|
z-index: 999999999999999999;
|
|
|
|
|
|
|
|
width: 2500px;
|
|
|
|
height: 1200px;
|
|
|
|
max-width: 80%;
|
|
|
|
max-height: 80%;
|
2020-12-16 01:40:09 +01:00
|
|
|
|
|
|
|
pointer-events: all !important;
|
|
|
|
|
|
|
|
background-color: rgba(0,0,0,0.69);
|
|
|
|
color: #fff;
|
|
|
|
|
2021-01-21 00:21:15 +01:00
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
display: block;
|
|
|
|
height: 42px;
|
|
|
|
font-size: 2.5rem;
|
|
|
|
background: rgb(87, 54, 26);
|
|
|
|
}
|
|
|
|
.tab:hover {
|
|
|
|
background-color: #f00;
|
|
|
|
}
|
2020-12-16 01:40:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2021-01-21 00:21:15 +01:00
|
|
|
|
|
|
|
|
2020-12-15 00:26:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-10-19 22:49:56 +02:00
|
|
|
</style>
|