Skip to content

Commit c045864

Browse files
committed
fix formatting
1 parent 2fadb33 commit c045864

File tree

12 files changed

+50
-37
lines changed

12 files changed

+50
-37
lines changed

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"starlight-package-managers": "0.11.0",
113113
"starlight-showcases": "0.3.0",
114114
"strip-markdown": "6.0.0",
115+
"suf-log": "2.5.3",
115116
"svgo": "3.3.2",
116117
"tailwindcss": "4.1.4",
117118
"tippy.js": "6.3.7",

src/components/CopyPageButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default function CopyPageButton() {
145145
<Icon />
146146
{label}
147147
</div>
148-
<div className="ml-6 mt-0.5 text-xs text-(--sl-color-gray-3)">
148+
<div className="mt-0.5 ml-6 text-xs text-(--sl-color-gray-3)">
149149
{description}
150150
</div>
151151
</button>

src/components/FeedbackPrompt.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function Buttons({
3737
}}
3838
className="cursor-pointer bg-transparent"
3939
>
40-
<MdOutlineThumbUp className="text-2xl text-sl hover:text-accent" />
40+
<MdOutlineThumbUp className="text-sl hover:text-accent text-2xl" />
4141
</button>
4242
<button
4343
onClick={() => {
@@ -46,7 +46,7 @@ function Buttons({
4646
}}
4747
className="cursor-pointer bg-transparent"
4848
>
49-
<MdOutlineThumbDown className="text-2xl text-sl hover:text-accent" />
49+
<MdOutlineThumbDown className="text-sl hover:text-accent text-2xl" />
5050
</button>
5151
</>
5252
);

src/components/FieldCatalog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const FieldCatalog = ({ fields }: { fields: Fields }) => {
8484
/>
8585

8686
<div className="mb-8! hidden md:block">
87-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
87+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
8888
▼ Categories
8989
</span>
9090

@@ -131,12 +131,12 @@ const FieldCatalog = ({ fields }: { fields: Fields }) => {
131131
return (
132132
<a
133133
key={field.name}
134-
className="mb-3 block w-full self-stretch rounded-md border border-solid border-gray-200 p-3 text-inherit! no-underline hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800 lg:w-[48%]"
134+
className="mb-3 block w-full self-stretch rounded-md border border-solid border-gray-200 p-3 text-inherit! no-underline hover:bg-gray-50 lg:w-[48%] dark:border-gray-700 dark:hover:bg-gray-800"
135135
href={`/ruleset-engine/rules-language/fields/reference/${field.name}/`}
136136
>
137137
<div className="-mb-1 flex items-center">
138138
<span
139-
className="overflow-hidden text-ellipsis whitespace-nowrap text-lg font-semibold"
139+
className="overflow-hidden text-lg font-semibold text-ellipsis whitespace-nowrap"
140140
title={`${field.name}: ${field.data_type}`}
141141
>
142142
{field.name}

src/components/HeaderDropdowns.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Dropdown({ dropdown }: { dropdown: (typeof dropdowns)[number] }) {
5151
<button
5252
ref={refs.setReference}
5353
{...getReferenceProps()}
54-
className="flex cursor-pointer items-center justify-center gap-2 rounded-sm bg-transparent p-2 font-medium hover:bg-cl1-white hover:shadow-md dark:hover:bg-cl1-gray-0"
54+
className="hover:bg-cl1-white dark:hover:bg-cl1-gray-0 flex cursor-pointer items-center justify-center gap-2 rounded-sm bg-transparent p-2 font-medium hover:shadow-md"
5555
>
5656
{label}
5757
<PiCaretDownBold />
@@ -61,13 +61,13 @@ function Dropdown({ dropdown }: { dropdown: (typeof dropdowns)[number] }) {
6161
ref={refs.setFloating}
6262
style={floatingStyles}
6363
{...getFloatingProps()}
64-
className="min-w-60 max-w-80 list-none rounded-sm border border-cl1-gray-8 bg-cl1-white pl-0 shadow-md dark:border-cl1-gray-1 dark:bg-cl1-gray-0"
64+
className="border-cl1-gray-8 bg-cl1-white dark:border-cl1-gray-1 dark:bg-cl1-gray-0 max-w-80 min-w-60 list-none rounded-sm border pl-0 shadow-md"
6565
>
6666
{pages.map((page) => (
6767
<li key={page.href}>
6868
<a
6969
href={page.href}
70-
className="8 block p-3 text-black no-underline hover:bg-cl1-gray-9 dark:hover:bg-cl1-gray-1"
70+
className="8 hover:bg-cl1-gray-9 dark:hover:bg-cl1-gray-1 block p-3 text-black no-underline"
7171
target={page.href.startsWith("https") ? "_blank" : undefined}
7272
>
7373
{page.label}
@@ -82,12 +82,12 @@ function Dropdown({ dropdown }: { dropdown: (typeof dropdowns)[number] }) {
8282

8383
export default function HeaderDropdownsComponent() {
8484
return (
85-
<div className="flex gap-2 text-nowrap leading-6">
85+
<div className="flex gap-2 leading-6 text-nowrap">
8686
{links.map(({ label, href }) => (
8787
<a
8888
key={href}
8989
href={href}
90-
className="flex items-center justify-center rounded-sm p-2 font-medium text-black no-underline hover:bg-cl1-white hover:shadow-md dark:hover:bg-cl1-gray-0"
90+
className="hover:bg-cl1-white dark:hover:bg-cl1-gray-0 flex items-center justify-center rounded-sm p-2 font-medium text-black no-underline hover:shadow-md"
9191
>
9292
{label}
9393
</a>

src/components/LearningPathCatalog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const LearningPathCatalog = ({
7070
<div className="md:flex">
7171
<div className="mr-8 w-full md:w-1/4">
7272
<div className="mb-8! hidden md:block">
73-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
73+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
7474
Product groups
7575
</span>
7676

@@ -103,7 +103,7 @@ const LearningPathCatalog = ({
103103
</div>
104104

105105
<div className="mb-8! hidden md:block">
106-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
106+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
107107
Products
108108
</span>
109109

@@ -138,7 +138,7 @@ const LearningPathCatalog = ({
138138

139139
<div className="mt-0! grid w-full grid-cols-1 items-stretch gap-2 self-start lg:w-3/4 lg:grid-cols-2 lg:gap-4">
140140
{filtered.length === 0 && (
141-
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle dark:border-gray-500 dark:bg-gray-800 md:col-span-2 lg:col-span-3">
141+
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle md:col-span-2 lg:col-span-3 dark:border-gray-500 dark:bg-gray-800">
142142
<span className="text-lg font-bold!">No products found</span>
143143
<p>
144144
Try a different search term, or broaden your search by removing
@@ -167,7 +167,7 @@ const LearningPathCatalog = ({
167167
{path.video && <span className="sl-badge tip">Video</span>}
168168
</div>
169169
<p className="mt-3! font-semibold">{path.title}</p>
170-
<div className="leading-2 mt-1! text-sm">
170+
<div className="mt-1! text-sm leading-2">
171171
<Markdown disallowedElements={["a"]} unwrapDisallowed={true}>
172172
{path.description}
173173
</Markdown>

src/components/ModelCatalog.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
157157
/>
158158

159159
<div className="mb-8! hidden md:block">
160-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
160+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
161161
▼ Tasks
162162
</span>
163163

@@ -190,7 +190,7 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
190190
</div>
191191

192192
<div className="mb-8! hidden md:block">
193-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
193+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
194194
▼ Capabilities
195195
</span>
196196

@@ -225,7 +225,7 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
225225
</div>
226226

227227
<div className="hidden md:block">
228-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
228+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
229229
▼ Authors
230230
</span>
231231

@@ -282,11 +282,11 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
282282
return (
283283
<a
284284
key={model.model.id}
285-
className="relative mb-3 block w-full self-start rounded-md border border-solid border-gray-200 p-3 text-inherit! no-underline hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800 lg:w-[48%]"
285+
className="relative mb-3 block w-full self-start rounded-md border border-solid border-gray-200 p-3 text-inherit! no-underline hover:bg-gray-50 lg:w-[48%] dark:border-gray-700 dark:hover:bg-gray-800"
286286
href={`/workers-ai/models/${model.model_display_name}`}
287287
>
288288
{isPinned && (
289-
<span className="absolute right-2 top-1" title="Pinned model">
289+
<span className="absolute top-1 right-2" title="Pinned model">
290290
📌
291291
</span>
292292
)}
@@ -298,11 +298,11 @@ const ModelCatalog = ({ models }: { models: WorkersAIModelsSchema[] }) => {
298298
alt={`${authorInfo.name} logo`}
299299
/>
300300
) : (
301-
<div className="mr-2 flex h-6 w-6 items-center justify-center rounded-md bg-gray-100 text-sm font-black uppercase text-gray-400">
301+
<div className="mr-2 flex h-6 w-6 items-center justify-center rounded-md bg-gray-100 text-sm font-black text-gray-400 uppercase">
302302
{author.slice(0, 1)}
303303
</div>
304304
)}
305-
<span className="overflow-hidden text-ellipsis whitespace-nowrap text-lg font-semibold">
305+
<span className="overflow-hidden text-lg font-semibold text-ellipsis whitespace-nowrap">
306306
{model.model_display_name}
307307
</span>
308308
{isBeta && <span className="sl-badge caution ml-1">Beta</span>}

src/components/ProductCatalog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
6666
/>
6767

6868
<div className="mb-8! hidden md:block">
69-
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
69+
<span className="text-sm font-bold text-gray-600 uppercase dark:text-gray-200">
7070
Groups
7171
</span>
7272

@@ -101,7 +101,7 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
101101

102102
<div className="mt-0! grid w-full grid-cols-1 items-stretch gap-2 self-start md:grid-cols-2 lg:w-3/4 lg:grid-cols-3 lg:gap-4">
103103
{productList.length === 0 && (
104-
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle dark:border-gray-500 dark:bg-gray-800 md:col-span-2 lg:col-span-3">
104+
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle md:col-span-2 lg:col-span-3 dark:border-gray-500 dark:bg-gray-800">
105105
<span className="text-lg font-bold!">No products found</span>
106106
<p>
107107
Try a different search term, or broaden your search by removing
@@ -128,7 +128,7 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
128128
</div>
129129
)}
130130
{!product.icon && (
131-
<div className="mr-2 flex h-8 w-8 items-center justify-center rounded-full bg-orange-50 p-1 text-lg font-bold leading-none text-[color:var(--orange-accent-200)] dark:bg-orange-950">
131+
<div className="mr-2 flex h-8 w-8 items-center justify-center rounded-full bg-orange-50 p-1 text-lg leading-none font-bold text-[color:var(--orange-accent-200)] dark:bg-orange-950">
132132
{product.data.name.substr(0, 1)}
133133
</div>
134134
)}

src/components/SubtractIPCalculator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function SubtractIPCalculator({
5959
</div>
6060
<div>
6161
<button
62-
className="h-8 cursor-pointer rounded-sm bg-cl1-brand-orange px-4 text-sm font-medium text-cl1-black disabled:cursor-not-allowed disabled:bg-cl1-gray-4 disabled:text-cl1-gray-1"
62+
className="bg-cl1-brand-orange text-cl1-black disabled:bg-cl1-gray-4 disabled:text-cl1-gray-1 h-8 cursor-pointer rounded-sm px-4 text-sm font-medium disabled:cursor-not-allowed"
6363
disabled={disableButton()}
6464
onClick={() => calculate()}
6565
>

0 commit comments

Comments
 (0)