mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2024-12-28 18:36:30 +00:00
Some code cleanup
This commit is contained in:
parent
cc04bfe565
commit
06a26a007c
|
@ -1 +0,0 @@
|
|||
<svg viewBox="-116 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m140.28125 333.582031-140.28125-66.734375 140.28125 245.152344 140.285156-245.152344zm0 0"/><path d="m265.289062 217.117188-125.007812-217.117188-125.148438 217.367188 125.148438-59.367188zm0 0"/><path d="m25.980469 245.535156 114.300781 54.140625 114.492188-54.230469-114.492188-54.136718zm0 0"/></svg>
|
Before Width: | Height: | Size: 377 B |
|
@ -149,7 +149,6 @@ import { computed, defineComponent, onMounted, reactive, toRefs } from '@vue/com
|
|||
import { useOnline } from '@/use/online'
|
||||
|
||||
import paypal from '@/assets/paypal.svg'
|
||||
import ethereum from '@/assets/ethereum.svg'
|
||||
|
||||
export default defineComponent({
|
||||
setup(_, ctx) {
|
||||
|
@ -179,7 +178,6 @@ export default defineComponent({
|
|||
return {
|
||||
...toRefs(state),
|
||||
paypal,
|
||||
ethereum,
|
||||
isOnline
|
||||
}
|
||||
}
|
||||
|
@ -204,10 +202,6 @@ i::v-deep svg {
|
|||
width: 20px;
|
||||
}
|
||||
|
||||
.ethereum::v-deep svg {
|
||||
fill: var(--foreground);
|
||||
}
|
||||
|
||||
:link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ const i18n = new VueI18n({
|
|||
return 1
|
||||
}
|
||||
|
||||
if (n1 == 1) {
|
||||
if (n1 === 1) {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Vuex from 'vuex'
|
||||
import Vuex, { Store } from 'vuex'
|
||||
import Vue from 'vue'
|
||||
|
||||
import appInfo from '@/store/modules/appInfo'
|
||||
|
@ -7,7 +7,7 @@ import errors from '@/store/modules/errors'
|
|||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
export default new Store({
|
||||
modules: {
|
||||
appInfo,
|
||||
login,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ref, computed, watchEffect } from '@vue/composition-api'
|
||||
import { ref, computed } from '@vue/composition-api'
|
||||
|
||||
import store from '@/store'
|
||||
import { fetchData } from '@/utils/api'
|
||||
|
|
|
@ -135,9 +135,8 @@ export function getPropertyWithFallback(obj, ...props) {
|
|||
// Searching the properties in the object
|
||||
const valueToTest = hasDotNotation
|
||||
? prop.split('.').reduce((o, i) => {
|
||||
if (o) {
|
||||
return o[i]
|
||||
}
|
||||
if (o) return o[i]
|
||||
return undefined
|
||||
}, obj)
|
||||
: obj[prop]
|
||||
|
||||
|
|
Loading…
Reference in a new issue