Skip to content

Commit 11d8c9b

Browse files
committed
fixed linitng again
1 parent 3115f95 commit 11d8c9b

15 files changed

Lines changed: 123 additions & 117 deletions

.vscode/settings.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"files.watcherExclude": {
3-
"**/routeTree.gen.ts": true
4-
},
5-
"search.exclude": {
6-
"**/routeTree.gen.ts": true
7-
},
8-
"files.readonlyInclude": {
9-
"**/routeTree.gen.ts": true
10-
},
11-
"[javascript]": {
12-
"editor.defaultFormatter": "biomejs.biome"
13-
},
14-
"[javascriptreact]": {
15-
"editor.defaultFormatter": "biomejs.biome"
16-
},
17-
"[typescript]": {
18-
"editor.defaultFormatter": "biomejs.biome"
19-
},
20-
"[typescriptreact]": {
21-
"editor.defaultFormatter": "biomejs.biome"
22-
},
23-
"[json]": {
24-
"editor.defaultFormatter": "biomejs.biome"
25-
},
26-
"[jsonc]": {
27-
"editor.defaultFormatter": "biomejs.biome"
28-
},
29-
"[css]": {
30-
"editor.defaultFormatter": "biomejs.biome"
31-
},
32-
"editor.codeActionsOnSave": {
33-
"source.organizeImports.biome": "explicit"
34-
}
2+
"files.watcherExclude": {
3+
"**/routeTree.gen.ts": true
4+
},
5+
"search.exclude": {
6+
"**/routeTree.gen.ts": true
7+
},
8+
"files.readonlyInclude": {
9+
"**/routeTree.gen.ts": true
10+
},
11+
"[javascript]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"[javascriptreact]": {
15+
"editor.defaultFormatter": "biomejs.biome"
16+
},
17+
"[typescript]": {
18+
"editor.defaultFormatter": "biomejs.biome"
19+
},
20+
"[typescriptreact]": {
21+
"editor.defaultFormatter": "biomejs.biome"
22+
},
23+
"[json]": {
24+
"editor.defaultFormatter": "biomejs.biome"
25+
},
26+
"[jsonc]": {
27+
"editor.defaultFormatter": "biomejs.biome"
28+
},
29+
"[css]": {
30+
"editor.defaultFormatter": "biomejs.biome"
31+
},
32+
"editor.codeActionsOnSave": {
33+
"source.organizeImports.biome": "explicit"
34+
}
3535
}

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@
3636
}
3737
}
3838
}
39-

src/components/ErrorBoundary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Link, type ErrorComponentProps } from "@tanstack/react-router";
2-
import { Home, RefreshCw, AlertTriangle } from "lucide-react";
1+
import { type ErrorComponentProps, Link } from "@tanstack/react-router";
2+
import { AlertTriangle, Home, RefreshCw } from "lucide-react";
33
import { BackgroundEffects } from "@/components/ui/BackgroundEffects";
44

55
export function ErrorBoundary({ error, reset }: ErrorComponentProps) {
@@ -66,7 +66,7 @@ export function ErrorBoundary({ error, reset }: ErrorComponentProps) {
6666
<div className="relative z-10 flex items-center justify-center gap-2">
6767
<RefreshCw size={20} />
6868
<span>Try Again</span>
69-
</div>
69+
</div>
7070
<div className="absolute inset-0 bg-linear-to-r from-blue-600 to-cyan-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
7171
</button>
7272

src/components/StatusFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ export function StatusFooter() {
3535
</div>
3636
</footer>
3737
);
38-
}
38+
}

src/components/layouts/StatusPageLayout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { useState, useCallback, useEffect, useRef } from "react";
2-
import type { StatusSummary } from "@/types/status";
3-
import { OverallBanner } from "@/components/ui/OverallBanner";
4-
import { ServiceCategoryCard } from "@/components/ui/ServiceCategoryCard";
5-
import { StatusHeader } from "@/components/StatusHeader";
1+
import { Clock, Loader2, RefreshCw } from "lucide-react";
2+
import { useCallback, useEffect, useRef, useState } from "react";
63
import { StatusFooter } from "@/components/StatusFooter";
4+
import { StatusHeader } from "@/components/StatusHeader";
75
import { BackgroundEffects } from "@/components/ui/BackgroundEffects";
8-
import { RefreshCw, Clock, Loader2 } from "lucide-react";
6+
import { OverallBanner } from "@/components/ui/OverallBanner";
7+
import { ServiceCategoryCard } from "@/components/ui/ServiceCategoryCard";
8+
import type { StatusSummary } from "@/types/status";
99
import { cn } from "@/utils/cn";
1010

1111
/** Auto-refresh interval: 5 minutes. */

src/components/ui/OverallBanner.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ export function OverallBanner({
4848
)}
4949
/>
5050
<span
51-
className={cn(
52-
"relative inline-flex h-8 w-8 rounded-full",
53-
cfg.dot,
54-
)}
51+
className={cn("relative inline-flex h-8 w-8 rounded-full", cfg.dot)}
5552
/>
5653
</div>
5754

src/components/ui/ServiceCategoryCard.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import type { CategoryResult, ServiceResult } from "@/types/status";
2-
import { cn } from "@/utils/cn";
3-
import { StatusBadge, statusConfig } from "./StatusBadge";
41
import {
5-
Server,
6-
Gamepad2,
72
Box,
83
Boxes,
9-
ShoppingBag,
10-
ShieldCheck,
11-
Zap,
124
ChevronDown,
135
ChevronUp,
6+
Gamepad2,
7+
Server,
8+
ShieldCheck,
9+
ShoppingBag,
10+
Zap,
1411
} from "lucide-react";
1512
import { useState } from "react";
13+
import type { CategoryResult, ServiceResult } from "@/types/status";
14+
import { cn } from "@/utils/cn";
15+
import { StatusBadge, statusConfig } from "./StatusBadge";
1616

1717
const iconMap: Record<string, React.ElementType> = {
1818
Server,
@@ -47,7 +47,9 @@ function ServiceRow({ service }: ServiceRowProps) {
4747
return (
4848
<div className="flex items-center justify-between gap-4 rounded-lg px-4 py-3 transition-colors hover:bg-white/2">
4949
<div className="flex items-center gap-3 min-w-0">
50-
<span className={cn("flex h-2.5 w-2.5 rounded-full shrink-0", cfg.dot)} />
50+
<span
51+
className={cn("flex h-2.5 w-2.5 rounded-full shrink-0", cfg.dot)}
52+
/>
5153
<span className="text-sm font-medium text-gray-200 truncate">
5254
{service.name}
5355
</span>

src/data/services.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const serviceCategories: ServiceCategory[] = [
3030
description: "FiveM main website",
3131
acceptRange: true,
3232
},
33-
{
33+
{
3434
id: "www-redm",
3535
name: "www.redm.net",
3636
url: "https://www.redm.net",
@@ -97,7 +97,7 @@ export const serviceCategories: ServiceCategory[] = [
9797
url: "https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/",
9898
description: "runtime.fivem.net — Linux builds",
9999
},
100-
{
100+
{
101101
id: "blacklist-nui",
102102
name: "NUI Blacklist",
103103
url: "https://runtime.fivem.net/nui-blacklist.json",
@@ -204,4 +204,4 @@ export const serviceCategories: ServiceCategory[] = [
204204
},
205205
],
206206
},
207-
];
207+
];

src/router.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { createRouter } from '@tanstack/react-router'
1+
import { createRouter } from "@tanstack/react-router";
22

33
// Import the generated route tree
4-
import { routeTree } from './routeTree.gen'
4+
import { routeTree } from "./routeTree.gen";
55

66
// Create a new router instance
77
export const getRouter = () => {
8-
const router = createRouter({
9-
routeTree,
10-
context: {},
8+
const router = createRouter({
9+
routeTree,
10+
context: {},
1111

12-
scrollRestoration: true,
13-
defaultPreloadStaleTime: 0,
14-
})
12+
scrollRestoration: true,
13+
defaultPreloadStaleTime: 0,
14+
});
1515

16-
return router
17-
}
16+
return router;
17+
};

src/routes/$.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Link, createFileRoute } from "@tanstack/react-router";
2-
import { ArrowLeft, Activity } from "lucide-react";
1+
import { createFileRoute, Link } from "@tanstack/react-router";
2+
import { Activity, ArrowLeft } from "lucide-react";
33
import { BackgroundEffects } from "@/components/ui/BackgroundEffects";
44

55
export const Route = createFileRoute("/$")({
@@ -27,22 +27,22 @@ function NotFoundPage() {
2727
Page Not Found
2828
</h2>
2929
<p className="text-gray-400 text-lg max-w-md mx-auto">
30-
The page you're looking for doesn't exist. Head back to the
31-
status dashboard.
30+
The page you're looking for doesn't exist. Head back to the status
31+
dashboard.
3232
</p>
3333
</div>
3434

3535
{/* Action Buttons */}
3636
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center pt-4">
3737
<Link
3838
to="/"
39-
className="group relative px-8 py-4 rounded-xl bg-linear-to-r from-blue-500 to-cyan-500 text-white font-semibold text-lg overflow-hidden transition-all duration-300 hover:shadow-[0_0_30px_rgba(59,130,246,0.4)] hover:scale-105 w-full sm:w-auto"
40-
>
41-
<div className="relative z-10 flex items-center justify-center gap-2">
42-
<Activity size={20} />
43-
<span>View Status</span>
44-
</div>
45-
<div className="absolute inset-0 bg-linear-to-r from-blue-600 to-cyan-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
39+
className="group relative px-8 py-4 rounded-xl bg-linear-to-r from-blue-500 to-cyan-500 text-white font-semibold text-lg overflow-hidden transition-all duration-300 hover:shadow-[0_0_30px_rgba(59,130,246,0.4)] hover:scale-105 w-full sm:w-auto"
40+
>
41+
<div className="relative z-10 flex items-center justify-center gap-2">
42+
<Activity size={20} />
43+
<span>View Status</span>
44+
</div>
45+
<div className="absolute inset-0 bg-linear-to-r from-blue-600 to-cyan-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
4646
</Link>
4747

4848
<button

0 commit comments

Comments
 (0)