-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
136 changed files
with
3,967 additions
and
4,659 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { defineComponent, h } from 'vue'; | ||
import App from './App.vue'; | ||
import * as providerMap from './providers'; | ||
|
||
const providers = Object.values(providerMap); | ||
|
||
export default defineComponent({ | ||
components: { | ||
App, | ||
...providerMap | ||
}, | ||
|
||
render() { | ||
function renderProviders(providers) { | ||
if (!providers.length) return h(App); | ||
|
||
const [provider, ...remainingProviders] = providers; | ||
return h( | ||
provider, | ||
{}, | ||
{ | ||
default() { | ||
return [renderProviders(remainingProviders)]; | ||
} | ||
} | ||
); | ||
} | ||
|
||
return renderProviders(providers); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/components/_global/BalLoadingNumber/BalLoadingNumber.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<template> | ||
<div class="flex items-center"> | ||
<template v-if="type === 'token'"> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<span class="text-gray-300 dark:text-gray-500">.</span> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
</template> | ||
<template v-else-if="type === 'fiat'"> | ||
<span class="text-gray-300 dark:text-gray-500 mr-px"> | ||
{{ currencySymbol }} | ||
</span> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<span class="text-gray-300 dark:text-gray-500">.</span> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
<BalLoadingBlock :class="blockClasses" rounded="sm" darker /> | ||
</template> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import useUserSettings from '@/composables/useUserSettings'; | ||
import { FiatSymbol } from '@/constants/currency'; | ||
import { defineComponent, computed } from 'vue'; | ||
import BalLoadingBlock from '../BalLoadingBlock/BalLoadingBlock.vue'; | ||
export default defineComponent({ | ||
name: 'BalLoadingNumber', | ||
components: { | ||
BalLoadingBlock | ||
}, | ||
props: { | ||
type: { | ||
type: String, | ||
default: 'token', | ||
validator: (val: string): boolean => ['token', 'fiat'].includes(val) | ||
}, | ||
numberWidth: { type: String, default: '3' }, | ||
numberHeight: { type: String, default: '5' } | ||
}, | ||
setup(props) { | ||
const { currency } = useUserSettings(); | ||
const currencySymbol = computed(() => FiatSymbol[currency.value]); | ||
const blockClasses = computed(() => [ | ||
`w-${props.numberWidth}`, | ||
`h-${props.numberHeight}`, | ||
'mr-px' | ||
]); | ||
return { blockClasses, currencySymbol }; | ||
} | ||
}); | ||
</script> |
Oops, something went wrong.
58c8bab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kovan-app – ./
kovan-app-git-master-balancer.vercel.app
kovan.balancer.fi
kovan-app.vercel.app
kovan.app.balancer.fi
kovan-app-balancer.vercel.app
58c8bab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
polygon – ./
polygon-git-master-balancer.vercel.app
polygon-balancer.vercel.app
polygon-alpha.vercel.app
polygon.balancer.fi
58c8bab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
app – ./
app-balancer.vercel.app
pm2.vercel.app
app-git-master-balancer.vercel.app
app.balancer.fi