11<script setup>
22/** Vendor */
3- import { DateTime } from " luxon" ;
3+ import { DateTime } from " luxon"
44
55/** API */
66import { fetchVestingPeriods } from " @/services/api/address"
@@ -9,10 +9,10 @@ import { fetchVestingPeriods } from "@/services/api/address"
99import Button from " @/components/ui/Button.vue"
1010import Modal from " @/components/ui/Modal.vue"
1111import Spinner from " @/components/ui/Spinner.vue"
12- import Tooltip from " @/components/ui/Tooltip.vue" ;
12+ import Tooltip from " @/components/ui/Tooltip.vue"
1313
1414/** Services */
15- import { capitilize , comma } from " @/services/utils" ;
15+ import { capitilize , comma } from " @/services/utils"
1616
1717/** Store */
1818import { useCacheStore } from " @/store/cache"
@@ -55,14 +55,12 @@ const getVestingPeriods = async () => {
5555 isLoading .value = false
5656}
5757
58-
5958watch (
6059 () => props .show ,
6160 async () => {
6261 if (props .show ) {
6362 vesting .value = cacheStore .current .vesting
6463 nextTick (async () => {
65- // vesting.value = cacheStore.current.vesting
6664 getVestingPeriods ()
6765 })
6866 }
@@ -73,15 +71,15 @@ watch(
7371 () => page .value ,
7472 () => {
7573 getVestingPeriods ()
76- }
74+ },
7775)
7876< / script>
7977
8078< template>
8179 < Modal : show= " show" @onClose= " emit('onClose')" width= " 500" disable- trap>
8280 < Flex direction= " column" gap= " 24" >
8381 < Text size= " 16" weight= " 600" color= " primary" > Releasing Schedule< / Text >
84-
82+
8583 < Flex align= " center" justify= " between" wide>
8684 < Flex align= " center" direction= " column" gap= " 12" : class = " $style.value" >
8785 < Flex align= " center" gap= " 4" >
@@ -91,7 +89,10 @@ watch(
9189
9290 < Flex align= " center" justify= " start" gap= " 4" wide>
9391 < Text size= " 12" weight= " 500" color= " tertiary" > Total Amount: < / Text >
94- < AmountInCurrency : amount= " { value: vesting.amount, decimal: 6 }" : styles= " { amount: { size: '13' }, currency: { size: '13', color: 'primary' }}" / >
92+ < AmountInCurrency
93+ : amount= " { value: vesting.amount, decimal: 6 }"
94+ : styles= " { amount: { size: '13' }, currency: { size: '13', color: 'primary' } }"
95+ / >
9596 < / Flex>
9697 < / Flex>
9798
@@ -127,41 +128,40 @@ watch(
127128 < tr v- for = " vp in vestingPeriods" >
128129 < td>
129130 < Flex align= " center" justify= " start" gap= " 4" >
130- < Text size= " 12" weight= " 600" color= " primary" >
131- {{ DateTime .fromISO (vp .time ).setLocale (" en" ).toFormat (" yyyy LLL d, t" ) }}
132- < / Text >
131+ < Text size= " 12" weight= " 600" color= " primary" >
132+ {{ DateTime .fromISO (vp .time ).setLocale (" en" ).toFormat (" yyyy LLL d, t" ) }}
133+ < / Text >
133134
134- < Text size= " 11" weight= " 500" color= " tertiary" >
135- ({{ DateTime .fromISO (vp .time ).toRelative ({ locale: " en" , style: " short" }) }})
136- < / Text >
135+ < Text size= " 11" weight= " 500" color= " tertiary" >
136+ ({{ DateTime .fromISO (vp .time ).toRelative ({ locale: " en" , style: " short" }) }})
137+ < / Text >
137138 < / Flex>
138139 < / td>
139140 < td>
140- < AmountInCurrency : amount= " { value: vp.amount, decimal: 6 }" : styles= " { amount: { size: '13' }, currency: { size: '13' }}" / >
141+ < AmountInCurrency
142+ : amount= " { value: vp.amount, decimal: 6 }"
143+ : styles= " { amount: { size: '13' }, currency: { size: '13' } }"
144+ / >
141145 < / td>
142146 < td>
143147 < Flex align= " center" justify= " center" >
144148 < Tooltip v- if = " DateTime.fromISO(vp.time).ts <= DateTime.now().ts" position= " start" delay= " 500" >
145149 < Icon name= " check" size= " 16" color= " neutral-green" / >
146150
147- < template #content>
148- Released
149- < / template>
151+ < template #content> Released < / template>
150152 < / Tooltip>
151153
152154 < Tooltip v- else position= " start" delay= " 500" >
153155 < Icon name= " clock-forward" size= " 16" color= " secondary" / >
154156
155- < template #content>
156- Waiting
157- < / template>
157+ < template #content> Waiting < / template>
158158 < / Tooltip>
159159 < / Flex>
160160 < / td>
161161 < / tr>
162162 < / tbody>
163163 < / table>
164-
164+
165165 <!-- Pagination -->
166166 < Flex align= " center" justify= " end" gap= " 6" : class = " $style.pagination" >
167167 < Button @click= " page = 1" type= " secondary" size= " mini" : disabled= " page === 1" >
@@ -275,5 +275,4 @@ watch(
275275 height: 1px ;
276276 background: var (-- op- 5 );
277277}
278-
279278< / style>
0 commit comments