parent
6546ad2166
commit
42394a48bc
@ -195,6 +195,8 @@
|
||||
:settings="settings"
|
||||
:site="selectedSite"
|
||||
/>
|
||||
<PerformancePanel v-if="selectedTab === 'performance-metrics'"
|
||||
:performance="performance" />
|
||||
<WhatsNewPanel v-if="selectedTab === 'whats-new'" />
|
||||
<AboutPanel v-if="selectedTab === 'about'" />
|
||||
<Donate v-if="selectedTab === 'donate'" />
|
||||
@ -221,9 +223,9 @@ import ExtensionMode from '../common/enums/ExtensionMode.enum';
|
||||
import Logger from '../ext/lib/Logger';
|
||||
import {ChromeShittinessMitigations as CSM} from '../common/js/ChromeShittinessMitigations';
|
||||
import { browser } from 'webextension-polyfill-ts';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
import Vue from '*.vue';
|
||||
export default Vue.extend({
|
||||
data () {
|
||||
return {
|
||||
selectedTab: 'video',
|
||||
|
@ -5,7 +5,7 @@ class PopupExec {
|
||||
settings: Settings;
|
||||
site: any;
|
||||
|
||||
constructor(settings?, site?) {
|
||||
constructor(settings, site) {
|
||||
this.settings = settings;
|
||||
this.site = site;
|
||||
}
|
||||
|
@ -42,11 +42,11 @@ import ShortcutButton from '../../common/components/ShortcutButton.vue';
|
||||
import BrowserDetect from '../../ext/conf/BrowserDetect';
|
||||
import { browser } from 'webextension-polyfill-ts';
|
||||
|
||||
import { defineComponent } from 'vue'
|
||||
export default defineComponent({
|
||||
import Vue from 'vue'
|
||||
export default Vue.extend({
|
||||
components: {
|
||||
ShortcutButton,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// reminder — webextension-polyfill doesn't seem to work in vue!
|
||||
|
@ -126,11 +126,10 @@
|
||||
import KeyboardShortcutParser from '../../common/js/KeyboardShortcutParser';
|
||||
import ShortcutButton from '../../common/components/ShortcutButton.vue';
|
||||
import ComputeActionsMixin from '../../common/mixins/ComputeActionsMixin';
|
||||
|
||||
import Vue from 'vue'
|
||||
import PopupExec from '../js/PopupExec';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
export default Vue.extend({
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
@ -144,7 +143,7 @@ export default defineComponent({
|
||||
site: String,
|
||||
},
|
||||
created() {
|
||||
this.exec = new PopupExec(this.settings, this.site);
|
||||
this.exec = new ExecAction(this.settings, this.site);
|
||||
},
|
||||
components: {
|
||||
ShortcutButton,
|
||||
|
25
src/popup/panels/PerformancePanel.vue
Normal file
25
src/popup/panels/PerformancePanel.vue
Normal file
@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div>
|
||||
PERFORMANCE PANEL :: This is here for debugging purposes.
|
||||
|
||||
<pre>{{performance}}</pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue'
|
||||
export default Vue.extend({
|
||||
props: {
|
||||
performance: Object,
|
||||
},
|
||||
watch: {
|
||||
performance: {
|
||||
deep: true,
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -134,8 +134,8 @@ import ExtensionMode from '../../common/enums/ExtensionMode.enum';
|
||||
import VideoAlignmentType from '../../common/enums/VideoAlignmentType.enum';
|
||||
import StretchType from '../../common/enums/StretchType.enum';
|
||||
|
||||
import { defineComponent } from 'vue'
|
||||
export default defineComponent({
|
||||
import Vue from 'vue'
|
||||
export default Vue.extend({
|
||||
components: {
|
||||
QuerySelectorSetting,
|
||||
ShortcutButton,
|
||||
|
@ -120,16 +120,15 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
<script>
|
||||
import PopupExec from '../js/PopupExec';
|
||||
import KeyboardShortcutParser from '../../common/js/KeyboardShortcutParser';
|
||||
import ShortcutButton from '../../common/components/ShortcutButton.vue';
|
||||
import ShortcutButton from '../../common/components/ShortcutButton';
|
||||
import ComputeActionsMixin from '../../common/mixins/ComputeActionsMixin';
|
||||
import CropModePersistence from '../../common/enums/CropModePersistence.enum';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
data() {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
scope: 'page',
|
||||
CropModePersistence: CropModePersistence,
|
||||
@ -182,7 +181,7 @@ export default defineComponent({
|
||||
);
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
@ -18,10 +18,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import BrowserDetect from '../../ext/conf/BrowserDetect';
|
||||
|
||||
export default defineComponent({
|
||||
import Vue from 'vue'
|
||||
export default Vue.extend({
|
||||
data () {
|
||||
return {
|
||||
BrowserDetect: BrowserDetect
|
||||
|
Loading…
Reference in New Issue
Block a user