Some code cleanup

This commit is contained in:
RemixDev 2022-02-04 15:36:30 +01:00
parent cc04bfe565
commit 06a26a007c
6 changed files with 6 additions and 14 deletions

View File

@ -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

View File

@ -149,7 +149,6 @@ import { computed, defineComponent, onMounted, reactive, toRefs } from '@vue/com
import { useOnline } from '@/use/online' import { useOnline } from '@/use/online'
import paypal from '@/assets/paypal.svg' import paypal from '@/assets/paypal.svg'
import ethereum from '@/assets/ethereum.svg'
export default defineComponent({ export default defineComponent({
setup(_, ctx) { setup(_, ctx) {
@ -179,7 +178,6 @@ export default defineComponent({
return { return {
...toRefs(state), ...toRefs(state),
paypal, paypal,
ethereum,
isOnline isOnline
} }
} }
@ -204,10 +202,6 @@ i::v-deep svg {
width: 20px; width: 20px;
} }
.ethereum::v-deep svg {
fill: var(--foreground);
}
:link { :link {
text-decoration: none; text-decoration: none;
} }

View File

@ -32,7 +32,7 @@ const i18n = new VueI18n({
return 1 return 1
} }
if (n1 == 1) { if (n1 === 1) {
return 0 return 0
} }

View File

@ -1,4 +1,4 @@
import Vuex from 'vuex' import Vuex, { Store } from 'vuex'
import Vue from 'vue' import Vue from 'vue'
import appInfo from '@/store/modules/appInfo' import appInfo from '@/store/modules/appInfo'
@ -7,7 +7,7 @@ import errors from '@/store/modules/errors'
Vue.use(Vuex) Vue.use(Vuex)
export default new Vuex.Store({ export default new Store({
modules: { modules: {
appInfo, appInfo,
login, login,

View File

@ -1,4 +1,4 @@
import { ref, computed, watchEffect } from '@vue/composition-api' import { ref, computed } from '@vue/composition-api'
import store from '@/store' import store from '@/store'
import { fetchData } from '@/utils/api' import { fetchData } from '@/utils/api'

View File

@ -135,9 +135,8 @@ export function getPropertyWithFallback(obj, ...props) {
// Searching the properties in the object // Searching the properties in the object
const valueToTest = hasDotNotation const valueToTest = hasDotNotation
? prop.split('.').reduce((o, i) => { ? prop.split('.').reduce((o, i) => {
if (o) { if (o) return o[i]
return o[i] return undefined
}
}, obj) }, obj)
: obj[prop] : obj[prop]