Skip to content

Commit 950638c

Browse files
committed
Normalize Tailwind '!' placement and formatting
1 parent ed0d14d commit 950638c

File tree

5 files changed

+51
-28
lines changed

5 files changed

+51
-28
lines changed

src/components/DomainCard.svelte

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,22 +138,31 @@
138138
try {
139139
await submit();
140140
141-
const issues = removeForm.fields.allIssues() ?? [];
141+
const issues =
142+
removeForm.fields.allIssues() ?? [];
142143
if (issues.length > 0) {
143144
toast.show({
144145
status: 400,
145-
message: issues.map((i) => i.message).join(", "),
146+
message: issues
147+
.map((i) => i.message)
148+
.join(", "),
146149
});
147150
} else {
148151
toast.show(removeForm?.result);
149152
}
150153
} catch (error) {
151-
toast.show({ status: 500, message: "Something went wrong" });
154+
toast.show({
155+
status: 500,
156+
message: "Something went wrong",
157+
});
152158
}
153159
})}
154160
>
155161
<input
156-
{...removeForm.fields.domainId.as("hidden", data?.id)}
162+
{...removeForm.fields.domainId.as(
163+
"hidden",
164+
data?.id,
165+
)}
157166
readonly
158167
/>
159168
{#if isDemo()}
@@ -246,7 +255,7 @@
246255
{/snippet}
247256
248257
{#snippet expandedInfo()}
249-
<hr class="!mt-2.5" />
258+
<hr class="mt-2.5!" />
250259
<p class="inline">
251260
<span class="opacity-50">ID:</span>
252261
{data?.id || "/"}
@@ -312,7 +321,9 @@
312321
if (issues.length > 0) {
313322
toast.show({
314323
status: 400,
315-
message: issues.map((i) => i.message).join(", "),
324+
message: issues
325+
.map((i) => i.message)
326+
.join(", "),
316327
});
317328
} else {
318329
toast.show(nsForm?.result);
@@ -353,13 +364,18 @@
353364
if (issues.length > 0) {
354365
toast.show({
355366
status: 400,
356-
message: issues.map((i) => i.message).join(", "),
367+
message: issues
368+
.map((i) => i.message)
369+
.join(", "),
357370
});
358371
} else {
359372
toast.show(sslForm?.result);
360373
}
361374
} catch (error) {
362-
toast.show({ status: 500, message: "Something went wrong" });
375+
toast.show({
376+
status: 500,
377+
message: "Something went wrong",
378+
});
363379
}
364380
})}
365381
>
@@ -393,13 +409,18 @@
393409
if (issues.length > 0) {
394410
toast.show({
395411
status: 400,
396-
message: issues.map((i) => i.message).join(", "),
412+
message: issues
413+
.map((i) => i.message)
414+
.join(", "),
397415
});
398416
} else {
399417
toast.show(checkForm?.result);
400418
}
401419
} catch (error) {
402-
toast.show({ status: 500, message: "Something went wrong" });
420+
toast.show({
421+
status: 500,
422+
message: "Something went wrong",
423+
});
403424
}
404425
})}
405426
>

src/components/Header.svelte

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
const config = $derived(headerConfigs[type] || headerConfigs.default);
3535
</script>
3636

37-
<header class={config.justify === "center" ? "!justify-center" : ""}>
37+
<header class={config.justify === "center" ? "justify-center!" : ""}>
3838
{#if config.showBackButton}
3939
{@render headerBackButton()}
4040
{:else if config.showLogo}
@@ -58,7 +58,7 @@
5858
<img src="/logo.svg" alt="Domain Watcher Logo" class="logo" />
5959
<div
6060
class="title {PUBLIC_ENVIRONMENT === 'production'
61-
? '!block'
61+
? 'block!'
6262
: ''}"
6363
>
6464
Domain Watcher
@@ -82,7 +82,7 @@
8282
<Icon icon="iconoir:arrow-left" class="icon" />
8383
<div
8484
class="title {PUBLIC_ENVIRONMENT === 'production'
85-
? '!block'
85+
? 'block!'
8686
: ''}"
8787
>
8888
Go Back
@@ -132,24 +132,26 @@
132132
size="lg"
133133
icon="iconoir:search"
134134
color="white"
135-
class="!hidden sm:!flex"
135+
class="hidden! sm:flex!"
136136
disabled={isDemo()}
137137
/>
138138
<Button
139139
type="button"
140140
size="lg"
141141
icon="iconoir:search"
142142
color="white"
143-
class="!flex sm:!hidden"
143+
class="flex! sm:hidden!"
144144
disabled={isDemo()}
145145
/>
146146
</Tooltip>
147147
{:else}
148148
<Button
149149
type="submit"
150-
text={batchCheck.pending ? "Checking..." : "Check Domains"}
150+
text={batchCheck.pending
151+
? "Checking..."
152+
: "Check Domains"}
151153
size="lg"
152-
class="!hidden sm:!flex"
154+
class="hidden! sm:flex!"
153155
icon={batchCheck.pending
154156
? "iconoir:refresh-double"
155157
: "iconoir:search"}
@@ -165,7 +167,7 @@
165167
: "iconoir:search"}
166168
iconClass={batchCheck.pending ? "animate-spin" : ""}
167169
color="white"
168-
class="!flex sm:!hidden"
170+
class="flex! sm:hidden!"
169171
disabled={!!batchCheck.pending}
170172
/>
171173
{/if}

src/components/Toast.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
color="black"
113113
onclick={handleCloseClick}
114114
aria-label="Close notification"
115-
class="hover:!bg-white/10"
115+
class="hover:bg-white/10!"
116116
/>
117117
</div>
118118
</div>

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
toast.show(result.data?.form?.message);
2626
}
2727
},
28-
}
28+
},
2929
);
3030
</script>
3131
@@ -80,7 +80,7 @@
8080
placeholder="Enter a domain name...."
8181
disabled={false}
8282
bind:value={$form.domainName}
83-
class="!pr-40"
83+
class="pr-40!"
8484
variant={$errors.domainName ? "error" : "default"}
8585
helperText={$errors.domainName ? $errors.domainName[0] : ""}
8686
{...$constraints.domainName}

src/routes/settings/+page.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
toast.show(result.data?.form?.message);
4747
}
4848
},
49-
}
49+
},
5050
);
5151
5252
const {
@@ -226,7 +226,7 @@
226226
<p class="text">
227227
Last verified: <span class="italic">
228228
{formatLastChecked(
229-
data?.apiKeyConfig?.connection_verified_at
229+
data?.apiKeyConfig?.connection_verified_at,
230230
) || "Never"}</span
231231
>
232232
</p>
@@ -346,7 +346,7 @@
346346
size="md"
347347
color="black-outline"
348348
ariaLabel="Reset to Default"
349-
class="!hidden md:!flex"
349+
class="hidden! md:flex!"
350350
disabled={isDemo() || $apiKeySubmitting}
351351
onclick={() => {
352352
$UIViewForm.viewMode = UI_DOMAIN_VIEW.COMPACT;
@@ -425,7 +425,7 @@
425425
class="grid gap-3"
426426
transition:slide={{ duration: 600 }}
427427
>
428-
<hr class="!mt-5" />
428+
<hr class="mt-5!" />
429429
430430
<Input
431431
type="text"
@@ -508,7 +508,7 @@
508508
Last verified: <span class="italic">
509509
{formatLastChecked(
510510
data?.slackWebhookConfig
511-
?.connection_verified_at
511+
?.connection_verified_at,
512512
) || "Never"}</span
513513
>
514514
</p>
@@ -606,7 +606,7 @@
606606
class="grid gap-3"
607607
transition:slide={{ duration: 600 }}
608608
>
609-
<hr class="!mt-5" />
609+
<hr class="mt-5!" />
610610
611611
<Input
612612
type="text"
@@ -728,7 +728,7 @@
728728
Last verified: <span class="italic">
729729
{formatLastChecked(
730730
data?.resendConfig
731-
?.connection_verified_at
731+
?.connection_verified_at,
732732
) || "Never"}</span
733733
>
734734
</p>

0 commit comments

Comments
 (0)