refactor: remove vue-rx dependency

This commit is contained in:
Andrew Bastin
2021-08-12 13:44:10 +05:30
parent 971b35a252
commit c273ded97d
24 changed files with 238 additions and 234 deletions

View File

@@ -15,23 +15,19 @@
</template>
<script lang="ts">
import Vue from "vue"
import { defineComponent } from "@nuxtjs/composition-api"
import {
applySetting,
getSettingSubject,
HoppBgColor,
HoppBgColors,
useSetting,
} from "~/newstore/settings"
export default Vue.extend({
data() {
export default defineComponent({
setup() {
return {
colors: HoppBgColors,
}
},
subscriptions() {
return {
active: getSettingSubject("BG_COLOR"),
active: useSetting("BG_COLOR"),
}
},
methods: {