Added 'about' panel to popup. Both 'about' panels display addon version.

This commit is contained in:
Tamius Han 2019-04-12 23:23:35 +02:00
parent fda105eabc
commit 31c3295748
4 changed files with 15 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<h2>Ultrawidify - an aspect ratio fixer for youtube <small>(and netflix and various other sites)</small></h2>
<p>Ultrawidify version: {{}}. Created by Tamius Han (me).</p>
<p>Ultrawidify version: {{addonVersion}}. Created by Tamius Han (me).</p>
<p><b>Having an issue?</b> Report <strike>undocumented features</strike> bugs using one of the following options:
<ul>
<li> <a target="_blank" href="https://github.com/xternal7/ultrawidify/issues"><b>Github</b></a> <b>(strongly preferred)</b><br/></li>
@ -33,5 +33,10 @@
<script>
export default {
data() {
return {
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
}
}
}
</script>

View File

@ -110,6 +110,7 @@
/>
<PerformancePanel v-if="selectedTab === 'performance-metrics'"
:performance="performance" />
<AboutPanel />
</div>
</div>
</div>
@ -123,7 +124,8 @@ import VideoPanel from './panels/VideoPanel';
import PerformancePanel from './panels/PerformancePanel';
import Settings from '../ext/lib/Settings';
import ExecAction from './js/ExecAction.js';
import DefaultSettingsPanel from './panels/DefaultSettingsPanel'
import DefaultSettingsPanel from './panels/DefaultSettingsPanel';
import AboutPanel from './panels/AboutPanel';
export default {
data () {
@ -164,6 +166,7 @@ export default {
DefaultSettingsPanel,
PerformancePanel,
Debug,
AboutPanel,
},
methods: {
async sleep(t) {

View File

@ -15,8 +15,10 @@
</template>
<script>
export default {
props: {
'addonVersion': String
data() {
return {
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
}
}
}
</script>

View File

@ -15,7 +15,7 @@ var hasVideos = false;
var zoom_videoScale = 1;
var _config;
var _changeAr_button_shortcuts = { "autoar":"none", AspectRatio.Reset:"none", "219":"none", "189":"none", "169":"none", "custom":"none" }
var _changeAr_button_shortcuts = { "autoar":"none", 'reset':"none", "219":"none", "189":"none", "169":"none", "custom":"none" }
var comms = new Comms();
var settings = new Settings(undefined, () => updateConfig());