refactor: sort windi class names

This commit is contained in:
liyasthomas
2021-12-01 22:59:01 +05:30
parent 520ac8ede5
commit a508909471
91 changed files with 518 additions and 512 deletions

View File

@@ -14,18 +14,18 @@
class="hide-scrollbar !overflow-auto"
>
<AppSection label="import">
<div class="flex items-start justify-between p-4">
<div class="flex p-4 items-start justify-between">
<label>
{{ $t("documentation.generate_message") }}
</label>
<span
class="bg-accentDark text-accentContrast inline-flex px-2 py-1 rounded"
class="bg-accentDark rounded text-accentContrast py-1 px-2 inline-flex"
>
BETA
</span>
</div>
<div
class="bg-primary border-dividerLight sticky top-0 z-10 flex items-start justify-between border-b"
class="bg-primary border-b border-dividerLight flex top-0 z-10 sticky items-start justify-between"
>
<label for="collectionUpload">
<ButtonSecondary
@@ -54,12 +54,12 @@
<textarea-autosize
id="import-curl"
v-model="collectionJSON"
class="bg-primary p-4 font-mono"
class="bg-primary font-mono p-4"
autofocus
rows="8"
/>
<div
class="bg-primary border-dividerLight sticky bottom-0 z-10 flex items-start justify-between p-4 border-t border-b"
class="bg-primary border-t border-b border-dividerLight flex p-4 bottom-0 z-10 sticky items-start justify-between"
>
<ButtonPrimary
:label="$t('documentation.generate')"
@@ -76,16 +76,16 @@
<div class="flex flex-col">
<div
v-if="items.length === 0"
class="text-secondaryLight flex flex-col items-center justify-center p-4"
class="flex flex-col text-secondaryLight p-4 items-center justify-center"
>
<i class="material-icons pb-2 opacity-75">topic</i>
<i class="opacity-75 pb-2 material-icons">topic</i>
<span class="text-center">
{{ $t("helpers.generate_documentation_first") }}
</span>
</div>
<div
v-else
class="bg-primary border-dividerLight sticky top-0 z-10 flex flex-1 p-4 border-b"
class="bg-primary border-b border-dividerLight flex flex-1 p-4 top-0 z-10 sticky"
>
<span
v-tippy="{ theme: 'tooltip' }"

View File

@@ -1,5 +1,5 @@
<template>
<div class="flex flex-col items-center justify-center min-h-screen">
<div class="flex flex-col min-h-screen items-center justify-center">
<SmartSpinner v-if="signingInWithEmail" />
<SmartLoadingIndicator v-else />
<pre v-if="error">{{ error }}</pre>

View File

@@ -57,7 +57,7 @@
</Pane>
<Pane
:size="COLUMN_LAYOUT ? 65 : 50"
class="hide-scrollbar !overflow-auto flex flex-col"
class="flex flex-col hide-scrollbar !overflow-auto"
>
<HttpResponse ref="response" />
</Pane>

View File

@@ -1,11 +1,11 @@
<template>
<div class="flex flex-col items-center justify-between min-h-screen">
<div class="flex flex-col min-h-screen items-center justify-between">
<div
v-if="invalidLink"
class="flex flex-col items-center justify-center flex-1"
class="flex flex-col flex-1 items-center justify-center"
>
<i class="material-icons pb-2 opacity-75">error_outline</i>
<h1 class="heading text-center">
<i class="opacity-75 pb-2 material-icons">error_outline</i>
<h1 class="text-center heading">
{{ $t("team.invalid_invite_link") }}
</h1>
<p class="mt-2 text-center">
@@ -14,13 +14,13 @@
</div>
<div
v-else-if="loadingCurrentUser"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<SmartSpinner />
</div>
<div
v-else-if="currentUser === null"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<h1 class="heading">{{ $t("team.login_to_continue") }}</h1>
<p class="mt-2">{{ $t("team.login_to_continue_description") }}</p>
@@ -30,24 +30,24 @@
@click.native="showLogin = true"
/>
</div>
<div v-else class="flex flex-col items-center justify-center flex-1 p-4">
<div v-else class="flex flex-col flex-1 p-4 items-center justify-center">
<div
v-if="inviteDetails.loading"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<SmartSpinner />
</div>
<div v-else>
<div
v-if="!inviteDetails.loading && E.isLeft(inviteDetails.data)"
class="flex flex-col items-center p-4"
class="flex flex-col p-4 items-center"
>
<i class="material-icons mb-4">error_outline</i>
<i class="mb-4 material-icons">error_outline</i>
<p>
{{ getErrorMessage(inviteDetails.data.left) }}
</p>
<p
class="border-dividerLight flex flex-col items-center p-4 mt-8 border rounded"
class="border border-dividerLight rounded flex flex-col mt-8 p-4 items-center"
>
<span class="mb-4">
{{ $t("team.logout_and_try_again") }}
@@ -66,7 +66,7 @@
E.isRight(inviteDetails.data) &&
!joinTeamSuccess
"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<h1 class="heading">
{{
@@ -75,7 +75,7 @@
})
}}
</h1>
<p class="text-secondaryLight mt-2">
<p class="mt-2 text-secondaryLight">
{{
$t("team.invited_to_team", {
owner:
@@ -103,7 +103,7 @@
E.isRight(inviteDetails.data) &&
joinTeamSuccess
"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<h1 class="heading">
{{
@@ -112,7 +112,7 @@
})
}}
</h1>
<p class="text-secondaryLight mt-2">
<p class="mt-2 text-secondaryLight">
{{
$t("team.joined_team_description", {
team: inviteDetails.data.right.teamInvitation.team.name,

View File

@@ -9,10 +9,10 @@
<img
:src="`/images/states/${$colorMode.value}/login.svg`"
loading="lazy"
class="inline-flex flex-col object-contain object-center w-24 h-24 my-4"
class="flex-col object-contain object-center h-24 my-4 w-24 inline-flex"
:alt="`${t('empty.parameters')}`"
/>
<p class="text-secondaryLight pb-4 text-center">
<p class="text-center text-secondaryLight pb-4">
{{ t("empty.profile") }}
</p>
<ButtonPrimary
@@ -23,15 +23,15 @@
</div>
<div v-else class="space-y-8">
<div
class="bg-primaryLight md:h-32 -mb-11 h-24 rounded"
class="bg-primaryLight rounded h-24 -mb-11 md:h-32"
style="background-image: url('/images/cover.svg')"
></div>
<div class="md:flex-row flex flex-col justify-between px-4 space-y-8">
<div class="flex flex-col space-y-8 px-4 justify-between md:flex-row">
<div class="flex items-end">
<img
v-if="currentUser.photoURL"
:src="currentUser.photoURL"
class="ring-4 ring-primary w-16 h-16 rounded-lg"
class="rounded-lg h-16 ring-primary ring-4 w-16"
:alt="currentUser.displayName"
/>
<SmartIcon v-else name="user" class="svg-icons" />
@@ -39,17 +39,17 @@
<label class="heading">
{{ currentUser.displayName || t("state.nothing_found") }}
</label>
<p class="text-secondaryLight flex items-center">
<p class="flex text-secondaryLight items-center">
{{ currentUser.email }}
<SmartIcon
v-if="currentUser.emailVerified"
name="verified"
class="svg-icons ml-2 text-green-500"
class="ml-2 text-green-500 svg-icons"
/>
</p>
</div>
</div>
<div class="flex items-end space-x-2">
<div class="flex space-x-2 items-end">
<div>
<SmartItem
to="/settings"
@@ -68,10 +68,10 @@
:selected="true"
>
<section class="p-4">
<h4 class="text-secondaryDark font-semibold">
<h4 class="font-semibold text-secondaryDark">
{{ t("settings.profile") }}
</h4>
<div class="text-secondaryLight mt-1">
<div class="mt-1 text-secondaryLight">
{{ t("settings.profile_description") }}
</div>
<div class="py-4">
@@ -79,7 +79,7 @@
{{ t("settings.profile_name") }}
</label>
<form
class="md:max-w-sm flex mt-2"
class="flex mt-2 md:max-w-sm"
@submit.prevent="updateDisplayName"
>
<input
@@ -93,7 +93,7 @@
/>
<ButtonPrimary
:label="t('action.save')"
class="min-w-16 ml-2"
class="ml-2 min-w-16"
type="submit"
:loading="updatingDisplayName"
/>
@@ -101,13 +101,13 @@
</div>
</section>
<section class="p-4">
<h4 class="text-secondaryDark font-semibold">
<h4 class="font-semibold text-secondaryDark">
{{ t("settings.sync") }}
</h4>
<div class="text-secondaryLight mt-1">
<div class="mt-1 text-secondaryLight">
{{ t("settings.sync_description") }}
</div>
<div class="py-4 space-y-4">
<div class="space-y-4 py-4">
<div class="flex items-center">
<SmartToggle
:on="SYNC_COLLECTIONS"

View File

@@ -2,30 +2,30 @@
<div class="flex flex-col items-center justify-between">
<div
v-if="invalidLink"
class="flex flex-col items-center justify-center flex-1"
class="flex flex-col flex-1 items-center justify-center"
>
<i class="material-icons pb-2 opacity-75">error_outline</i>
<h1 class="heading text-center">
<i class="opacity-75 pb-2 material-icons">error_outline</i>
<h1 class="text-center heading">
{{ $t("error.invalid_link") }}
</h1>
<p class="mt-2 text-center">
{{ $t("error.invalid_link_description") }}
</p>
</div>
<div v-else class="flex flex-col items-center justify-center flex-1 p-4">
<div v-else class="flex flex-col flex-1 p-4 items-center justify-center">
<div
v-if="shortcodeDetails.loading"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<SmartSpinner />
</div>
<div v-else>
<div
v-if="!shortcodeDetails.loading && E.isLeft(shortcodeDetails.data)"
class="flex flex-col items-center p-4"
class="flex flex-col p-4 items-center"
>
<i class="material-icons pb-2 opacity-75">error_outline</i>
<h1 class="heading text-center">
<i class="opacity-75 pb-2 material-icons">error_outline</i>
<h1 class="text-center heading">
{{ $t("error.invalid_link") }}
</h1>
<p class="mt-2 text-center">
@@ -43,7 +43,7 @@
</div>
<div
v-if="!shortcodeDetails.loading && E.isRight(shortcodeDetails.data)"
class="flex flex-col items-center justify-center flex-1 p-4"
class="flex flex-col flex-1 p-4 items-center justify-center"
>
<h1 class="heading">
{{ $t("state.loading") }}

View File

@@ -1,6 +1,6 @@
<template>
<div>
<div class="container divide-dividerLight space-y-8 divide-y">
<div class="container divide-dividerLight divide-y space-y-8">
<div class="md:grid md:gap-4 md:grid-cols-3">
<div class="p-8 md:col-span-1">
<h3 class="heading">
@@ -10,7 +10,7 @@
{{ $t("settings.theme_description") }}
</p>
</div>
<div class="p-8 md:col-span-2 space-y-8">
<div class="space-y-8 p-8 md:col-span-2">
<section>
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.background") }}
@@ -68,7 +68,7 @@
{{ $t("app.contact_us") }} </SmartLink
>.
</div>
<div class="py-4 space-y-4">
<div class="space-y-4 py-4">
<div class="flex items-center">
<SmartToggle :on="TELEMETRY_ENABLED" @change="showConfirmModal">
{{ $t("settings.telemetry") }}
@@ -109,7 +109,7 @@
{{ $t("settings.interceptor_description") }}
</p>
</div>
<div class="p-8 md:col-span-2 space-y-8">
<div class="space-y-8 p-8 md:col-span-2">
<section>
<h4 class="font-semibold text-secondaryDark">
{{ $t("settings.extensions") }}
@@ -127,7 +127,7 @@
{{ $t("settings.extension_ver_not_reported") }}
</span>
</div>
<div class="flex flex-col py-4 space-y-2">
<div class="flex flex-col space-y-2 py-4">
<span>
<SmartItem
to="https://addons.mozilla.org/en-US/firefox/addon/hoppscotch"
@@ -151,7 +151,7 @@
/>
</span>
</div>
<div class="py-4 space-y-4">
<div class="space-y-4 py-4">
<div class="flex items-center">
<SmartToggle
:on="EXTENSIONS_ENABLED"
@@ -180,7 +180,7 @@
{{ $t("app.proxy_privacy_policy") }} </SmartLink
>.
</div>
<div class="py-4 space-y-4">
<div class="space-y-4 py-4">
<div class="flex items-center">
<SmartToggle
:on="PROXY_ENABLED"
@@ -190,8 +190,8 @@
</SmartToggle>
</div>
</div>
<div class="flex items-center py-4 space-x-2">
<div class="relative flex flex-col flex-1">
<div class="flex space-x-2 py-4 items-center">
<div class="flex flex-col flex-1 relative">
<input
id="url"
v-model="PROXY_URL"