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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ var hasVideos = false;
var zoom_videoScale = 1; var zoom_videoScale = 1;
var _config; 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 comms = new Comms();
var settings = new Settings(undefined, () => updateConfig()); var settings = new Settings(undefined, () => updateConfig());