create token UI refactoring

This commit is contained in:
Čarodej
2022-01-26 16:59:36 +01:00
parent 737fb7f32f
commit 438e930e06
7 changed files with 95 additions and 619 deletions
@@ -70,7 +70,7 @@ import {events} from '/resources/js/bus'
import axios from 'axios'
export default {
name: "CreatePersonaTokenPopup",
name: "CreatePersonalTokenPopup",
components: {
ValidationProvider,
ValidationObserver,
@@ -15,7 +15,7 @@
{{ title }}
</b>
</div>
<div @click="closePopup" class="cursor-pointer">
<div @click="closePopup" class="cursor-pointer p-3 -m-3">
<x-icon size="14" class="hover-text-theme vue-feather" />
</div>
</div>
@@ -12,26 +12,24 @@
{{ user.data.relationships.subscription.data.attributes.updated_at }} {{ $t('till now') }}
</b>
<div>
<div class="flex items-center justify-between py-2 border-b dark:border-opacity-5 border-light border-dashed" v-for="(usage, i) in user.data.meta.usages.featureEstimates" :key="i">
<div class="w-2/4 leading-none">
<b class="text-sm font-bold leading-none">
{{ $t(usage.feature) }}
</b>
<small class="text-xs text-gray-500 pt-2 leading-none sm:block hidden">
{{ $t(`feature_usage_desc_${usage.feature}`) }}
</small>
</div>
<div class="text-left w-1/4">
<span class="text-sm font-bold text-gray-560">
{{ usage.usage }}
</span>
</div>
<div class="text-right w-1/4">
<span class="text-sm font-bold text-theme">
{{ usage.cost }}
</span>
</div>
<div class="flex items-center justify-between py-2 border-b dark:border-opacity-5 border-light border-dashed" v-for="(usage, i) in user.data.meta.usages.featureEstimates" :key="i">
<div class="w-2/4 leading-none">
<b class="text-sm font-bold leading-none">
{{ $t(usage.feature) }}
</b>
<small class="text-xs text-gray-500 pt-2 leading-none sm:block hidden">
{{ $t(`feature_usage_desc_${usage.feature}`) }}
</small>
</div>
<div class="text-left w-1/4">
<span class="text-sm font-bold text-gray-560">
{{ usage.usage }}
</span>
</div>
<div class="text-right w-1/4">
<span class="text-sm font-bold text-theme">
{{ usage.cost }}
</span>
</div>
</div>