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

@@ -73,10 +73,11 @@
</SmartLink>
</template>
<script>
import { getSettingSubject } from "~/newstore/settings"
<script lang="ts">
import { defineComponent } from "@nuxtjs/composition-api"
import { useSetting } from "~/newstore/settings"
export default {
export default defineComponent({
props: {
to: {
type: String,
@@ -143,15 +144,10 @@ export default {
default: () => [],
},
},
data() {
setup() {
return {
SHORTCUT_INDICATOR: null,
SHORTCUT_INDICATOR: useSetting("SHORTCUT_INDICATOR"),
}
},
subscriptions() {
return {
SHORTCUT_INDICATOR: getSettingSubject("SHORTCUT_INDICATOR"),
}
},
}
})
</script>

View File

@@ -68,10 +68,11 @@
</SmartLink>
</template>
<script>
import { getSettingSubject } from "~/newstore/settings"
<script lang="ts">
import { defineComponent } from "@nuxtjs/composition-api"
import { useSetting } from "~/newstore/settings"
export default {
export default defineComponent({
props: {
to: {
type: String,
@@ -126,15 +127,10 @@ export default {
default: () => [],
},
},
data() {
setup() {
return {
SHORTCUT_INDICATOR: null,
SHORTCUT_INDICATOR: useSetting("SHORTCUT_INDICATOR"),
}
},
subscriptions() {
return {
SHORTCUT_INDICATOR: getSettingSubject("SHORTCUT_INDICATOR"),
}
},
}
})
</script>