refactor: sort windi class names

This commit is contained in:
liyasthomas
2021-11-23 08:47:09 +05:30
parent 4c5ca1b31d
commit fdf12a24ed
89 changed files with 1025 additions and 860 deletions

View File

@@ -2,7 +2,7 @@
<SmartModal v-if="show" :title="t('team.edit')" @close="hideModal">
<template #body>
<div class="flex flex-col px-2">
<div class="flex relative">
<div class="relative flex">
<input
id="selectLabelTeamEdit"
v-model="name"
@@ -17,7 +17,7 @@
{{ t("action.label") }}
</label>
</div>
<div class="flex pt-4 flex-1 justify-between items-center">
<div class="flex items-center justify-between flex-1 pt-4">
<label for="memberList" class="p-4">
{{ t("team.members") }}
</label>
@@ -47,32 +47,34 @@
E.isRight(teamDetails.data) &&
teamDetails.data.right.team.teamMembers
"
class="divide-y divide-dividerLight border-divider border rounded"
class="border rounded divide-dividerLight border-divider divide-y"
>
<div
v-if="teamDetails.data.right.team.teamMembers === 0"
class="
flex flex-col
flex
text-secondaryLight
p-4
flex-col
items-center
justify-center
p-4
"
>
<img
:src="`/images/states/${$colorMode.value}/add_group.svg`"
loading="lazy"
class="
flex-col
my-4
object-contain object-center
h-16
w-16
object-contain
inline-flex
flex-col
object-center
w-16
h-16
my-4
"
:alt="`${t('empty.members')}`"
/>
<span class="text-center pb-4">
<span class="pb-4 text-center">
{{ t("empty.members") }}
</span>
<ButtonSecondary
@@ -89,10 +91,10 @@
<div
v-for="(member, index) in membersList"
:key="`member-${index}`"
class="divide-x divide-dividerLight flex"
class="flex divide-dividerLight divide-x"
>
<input
class="bg-transparent flex flex-1 py-2 px-4"
class="flex flex-1 px-4 py-2 bg-transparent"
:placeholder="`${t('team.email')}`"
:name="'param' + index"
:value="member.email"
@@ -110,11 +112,11 @@
<span class="select-wrapper">
<input
class="
flex flex-1
px-4
py-2
bg-transparent
cursor-pointer
flex flex-1
py-2
px-4
"
:placeholder="`${t('team.permissions')}`"
:name="'value' + index"

View File

@@ -2,9 +2,9 @@
<SmartModal v-if="show" :title="t('team.invite')" @close="hideModal">
<template #body>
<div v-if="sendInvitesResult.length" class="flex flex-col px-4">
<div class="flex flex-col max-w-md justify-center items-center">
<SmartIcon class="h-6 text-accent w-6" name="users" />
<h3 class="my-2 text-center text-lg">
<div class="flex flex-col items-center justify-center max-w-md">
<SmartIcon class="w-6 h-6 text-accent" name="users" />
<h3 class="my-2 text-lg text-center">
{{ t("team.we_sent_invite_link") }}
</h3>
<p class="text-center">
@@ -14,12 +14,13 @@
<div
class="
flex
border border-dividerLight
mt-8
rounded
border-dividerLight
flex-col
space-y-6
p-4
mt-8
space-y-6
border
rounded
"
>
<div
@@ -28,7 +29,7 @@
>
<p class="flex items-center">
<i
class="material-icons mr-4"
class="mr-4 material-icons"
:class="
invitee.status === 'error' ? 'text-red-500' : 'text-green-500'
"
@@ -41,7 +42,7 @@
</i>
<span class="truncate">{{ invitee.email }}</span>
</p>
<p v-if="invitee.status === 'error'" class="ml-8 text-red-500 mt-2">
<p v-if="invitee.status === 'error'" class="mt-2 ml-8 text-red-500">
{{ getErrorMessage(invitee.error) }}
</p>
</div>
@@ -49,20 +50,20 @@
</div>
<div
v-else-if="sendingInvites"
class="flex p-4 items-center justify-center"
class="flex items-center justify-center p-4"
>
<SmartSpinner />
</div>
<div v-else class="flex flex-col px-2">
<div class="flex flex-1 justify-between items-center">
<label for="memberList" class="pb-4 px-4">
<div class="flex items-center justify-between flex-1">
<label for="memberList" class="px-4 pb-4">
{{ t("team.pending_invites") }}
</label>
</div>
<div class="divide-y divide-dividerLight border-divider border rounded">
<div class="border rounded divide-dividerLight border-divider divide-y">
<div
v-if="pendingInvites.loading"
class="flex p-4 items-center justify-center"
class="flex items-center justify-center p-4"
>
<SmartSpinner />
</div>
@@ -74,16 +75,17 @@
v-for="(invitee, index) in pendingInvites.data.right.team
.teamInvitations"
:key="`invitee-${index}`"
class="divide-x divide-dividerLight flex"
class="flex divide-dividerLight divide-x"
>
<input
v-if="invitee"
class="
bg-transparent
flex flex-1
flex
text-secondaryLight
py-2
flex-1
px-4
py-2
bg-transparent
"
:placeholder="`${t('team.email')}`"
:name="'param' + index"
@@ -92,11 +94,12 @@
/>
<input
class="
bg-transparent
flex flex-1
flex
text-secondaryLight
py-2
flex-1
px-4
py-2
bg-transparent
"
:placeholder="`${t('team.permissions')}`"
:name="'value' + index"
@@ -124,11 +127,12 @@
pendingInvites.data.right.team.teamInvitations.length === 0
"
class="
flex flex-col
flex
text-secondaryLight
p-4
flex-col
items-center
justify-center
p-4
"
>
<span class="text-center">
@@ -137,14 +141,14 @@
</div>
<div
v-if="!pendingInvites.loading && E.isLeft(pendingInvites.data)"
class="flex flex-col p-4 items-center"
class="flex flex-col items-center p-4"
>
<i class="mb-4 material-icons">help_outline</i>
{{ t("error.something_went_wrong") }}
</div>
</div>
</div>
<div class="flex pt-4 flex-1 justify-between items-center">
<div class="flex items-center justify-between flex-1 pt-4">
<label for="memberList" class="p-4">
{{ t("team.invite_tooltip") }}
</label>
@@ -157,15 +161,15 @@
/>
</div>
</div>
<div class="divide-y divide-dividerLight border-divider border rounded">
<div class="border rounded divide-dividerLight border-divider divide-y">
<div
v-for="(invitee, index) in newInvites"
:key="`new-invitee-${index}`"
class="divide-x divide-dividerLight flex"
class="flex divide-dividerLight divide-x"
>
<input
v-model="invitee.key"
class="bg-transparent flex flex-1 py-2 px-4"
class="flex flex-1 px-4 py-2 bg-transparent"
:placeholder="`${t('team.email')}`"
:name="'invitee' + index"
autofocus
@@ -182,11 +186,11 @@
<span class="select-wrapper">
<input
class="
flex flex-1
px-4
py-2
bg-transparent
cursor-pointer
flex flex-1
py-2
px-4
"
:placeholder="`${t('team.permissions')}`"
:name="'value' + index"
@@ -242,27 +246,29 @@
<div
v-if="newInvites.length === 0"
class="
flex flex-col
flex
text-secondaryLight
p-4
flex-col
items-center
justify-center
p-4
"
>
<img
:src="`/images/states/${$colorMode.value}/add_group.svg`"
loading="lazy"
class="
flex-col
mb-4
object-contain object-center
h-16
w-16
object-contain
inline-flex
flex-col
object-center
w-16
h-16
mb-4
"
:alt="`${t('empty.invites')}`"
/>
<span class="text-center pb-4">
<span class="pb-4 text-center">
{{ t("empty.invites") }}
</span>
<ButtonSecondary
@@ -275,30 +281,33 @@
<div
v-if="newInvites.length"
class="
px-4
mt-4
py-4
rounded
border border-dividerLight
flex flex-col
flex
border-dividerLight
flex-col
items-start
px-4
py-4
mt-4
border
rounded
"
>
<span
class="
mb-4
bg-primaryDark
border-divider
flex
items-center
justify-center
px-2
py-1
flex
justify-center
items-center
mb-4
font-semibold
border
rounded-full
bg-primaryDark
border border-divider
"
>
<i class="text-secondaryLight mr-2 material-icons">help_outline</i>
<i class="mr-2 text-secondaryLight material-icons">help_outline</i>
{{ t("profile.roles") }}
</span>
<p>
@@ -310,12 +319,12 @@
<li class="flex">
<span
class="
font-semibold
text-secondaryDark
uppercase
truncate
max-w-16
w-1/4
font-semibold
uppercase
truncate
"
>
{{ t("profile.owner") }}
@@ -327,12 +336,12 @@
<li class="flex">
<span
class="
font-semibold
text-secondaryDark
uppercase
truncate
max-w-16
w-1/4
font-semibold
uppercase
truncate
"
>
{{ t("profile.editor") }}
@@ -344,12 +353,12 @@
<li class="flex">
<span
class="
font-semibold
text-secondaryDark
uppercase
truncate
max-w-16
w-1/4
font-semibold
uppercase
truncate
"
>
{{ t("profile.viewer") }}
@@ -365,7 +374,7 @@
<template #footer>
<p
v-if="sendInvitesResult.length"
class="flex flex-1 text-secondaryLight justify-between"
class="flex justify-between flex-1 text-secondaryLight"
>
<SmartAnchor
class="link"

View File

@@ -1,7 +1,7 @@
<template>
<div class="border border-divider rounded flex flex-col flex-1">
<div class="flex flex-col flex-1 border rounded border-divider">
<div
class="flex flex-1 items-start"
class="flex items-start flex-1"
:class="
compact
? team.myRole === 'OWNER'
@@ -24,7 +24,7 @@
>
{{ team.name || t("state.nothing_found") }}
</label>
<div class="flex -space-x-1 mt-2 overflow-hidden">
<div class="flex mt-2 overflow-hidden -space-x-1">
<img
v-for="(member, index) in team.teamMembers"
:key="`member-${index}`"
@@ -32,13 +32,13 @@
:title="member.user.displayName"
:src="member.user.photoURL || undefined"
:alt="member.user.displayName"
class="rounded-full h-5 ring-primary ring-2 w-5 inline-block"
class="inline-block w-5 h-5 rounded-full ring-primary ring-2"
loading="lazy"
/>
</div>
</div>
</div>
<div v-if="!compact" class="flex flex-shrink-0 items-end justify-between">
<div v-if="!compact" class="flex items-end justify-between flex-shrink-0">
<span>
<ButtonSecondary
v-if="team.myRole === 'OWNER'"

View File

@@ -1,6 +1,6 @@
<template>
<AppSection label="teams">
<div class="space-y-4 p-4">
<div class="p-4 space-y-4">
<ButtonSecondary
:label="`${t('team.create_new')}`"
outline
@@ -20,27 +20,29 @@
myTeams.data.right.myTeams.length === 0
"
class="
flex flex-col
flex
text-secondaryLight
p-4
flex-col
items-center
justify-center
p-4
"
>
<img
:src="`/images/states/${$colorMode.value}/add_group.svg`"
loading="lazy"
class="
flex-col
mb-8
object-contain object-center
h-16
w-16
object-contain
inline-flex
flex-col
object-center
w-16
h-16
mb-8
"
:alt="`${t('empty.teams')}`"
/>
<span class="text-center mb-4">
<span class="mb-4 text-center">
{{ t("empty.teams") }}
</span>
<ButtonSecondary