Skip to content

Commit 9868b56

Browse files
committed
style: Format RoyalGameOfUr component and remove comments
1 parent d3b45f7 commit 9868b56

File tree

12 files changed

+123
-83
lines changed

12 files changed

+123
-83
lines changed

package-lock.json

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

package.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"start": "next start",
1212
"lint": "next lint",
1313
"lint:fix": "next lint --fix",
14+
"type-check": "tsc --noEmit",
15+
"pretty": "prettier --write '**/*.*'",
1416
"build:cf": "next build",
1517
"deploy:cf": "npm run build:cf && wrangler deploy",
1618
"dev:worker": "cd worker && npm run dev",
@@ -21,30 +23,36 @@
2123
"postbuild": "npm run build:wasm && rm -rf src/lib/wasm && mv worker/rust_ai_core/pkg src/lib/wasm && mkdir -p public/wasm && cp src/lib/wasm/rgou_ai_worker_bg.wasm public/wasm/",
2224
"nuke": "rm -rf .next .open-next .wrangler node_modules package-lock.json && npm install && npm run dev",
2325
"generate:icons": "node scripts/generate-icons.cjs",
24-
"pwa:build": "npm run generate:icons && npm run build"
26+
"pwa:build": "npm run generate:icons && npm run build",
27+
"verify": "prettier --write . && next lint --fix --no-cache && npx tsc --noEmit",
28+
"check": "npm run verify",
29+
"deps": "npx npm-check-updates",
30+
"deps:update": "npx npm-check-updates -u && npm run nuke"
2531
},
2632
"dependencies": {
2733
"clsx": "^2.1.1",
28-
"framer-motion": "^12.18.1",
29-
"lucide-react": "^0.519.0",
34+
"framer-motion": "^12.19.2",
35+
"lucide-react": "^0.525.0",
3036
"immer": "^10.1.1",
3137
"next": "^15.3.4",
3238
"react": "^19.1.0",
3339
"react-dom": "^19.1.0",
3440
"tailwind-merge": "^3.3.1",
35-
"zustand": "^5.0.5"
41+
"zustand": "^5.0.6"
3642
},
3743
"devDependencies": {
3844
"@eslint/eslintrc": "^3",
3945
"@opennextjs/cloudflare": "^1.3.1",
4046
"@tailwindcss/postcss": "^4",
41-
"@types/node": "^20",
47+
"@types/node": "^24",
4248
"@types/react": "^19.1.8",
4349
"@types/react-dom": "^19.1.6",
4450
"eslint": "^9",
4551
"eslint-config-next": "15.3.4",
52+
"npm-check-updates": "^18.0.1",
53+
"prettier": "^3.6.2",
4654
"tailwindcss": "^4",
4755
"typescript": "^5",
48-
"wrangler": "^4.20.1"
56+
"wrangler": "^4.22.0"
4957
}
5058
}

public/sw.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ self.addEventListener("install", (event) => {
2323
})
2424
.catch((error) => {
2525
console.error("[SW] Failed to cache static assets:", error);
26-
})
26+
}),
2727
);
2828

2929
// Take control immediately
@@ -44,13 +44,13 @@ self.addEventListener("activate", (event) => {
4444
console.log("[SW] Deleting old cache:", cacheName);
4545
return caches.delete(cacheName);
4646
}
47-
})
47+
}),
4848
);
4949
})
5050
.then(() => {
5151
// Take control of all pages
5252
return self.clients.claim();
53-
})
53+
}),
5454
);
5555
});
5656

@@ -111,7 +111,7 @@ self.addEventListener("fetch", (event) => {
111111
// For other requests, let them fail
112112
throw error;
113113
});
114-
})
114+
}),
115115
);
116116
});
117117

src/app/globals.css

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ body {
3434
background-size: 400% 400%;
3535
animation: gradientShift 20s ease infinite;
3636
color: var(--foreground);
37-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
38-
"Helvetica Neue", Arial, sans-serif;
37+
font-family:
38+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
39+
Arial, sans-serif;
3940
min-height: 100vh;
4041
overflow-x: hidden;
4142
}
@@ -54,21 +55,30 @@ body {
5455

5556
/* Mystical glowing effects */
5657
.mystical-glow {
57-
box-shadow: 0 0 12px rgba(99, 102, 241, 0.2), 0 0 24px rgba(99, 102, 241, 0.1),
58-
0 0 36px rgba(99, 102, 241, 0.05), inset 0 0 12px rgba(99, 102, 241, 0.05);
58+
box-shadow:
59+
0 0 12px rgba(99, 102, 241, 0.2),
60+
0 0 24px rgba(99, 102, 241, 0.1),
61+
0 0 36px rgba(99, 102, 241, 0.05),
62+
inset 0 0 12px rgba(99, 102, 241, 0.05);
5963
}
6064

6165
.rosette-glow {
62-
box-shadow: 0 0 10px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.2),
66+
box-shadow:
67+
0 0 10px rgba(251, 191, 36, 0.4),
68+
0 0 20px rgba(251, 191, 36, 0.2),
6369
inset 0 0 10px rgba(251, 191, 36, 0.1);
6470
}
6571

6672
.piece-glow-player {
67-
box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), 0 0 16px rgba(59, 130, 246, 0.2);
73+
box-shadow:
74+
0 0 8px rgba(59, 130, 246, 0.5),
75+
0 0 16px rgba(59, 130, 246, 0.2);
6876
}
6977

7078
.piece-glow-ai {
71-
box-shadow: 0 0 8px rgba(236, 72, 153, 0.5), 0 0 16px rgba(236, 72, 153, 0.2);
79+
box-shadow:
80+
0 0 8px rgba(236, 72, 153, 0.5),
81+
0 0 16px rgba(236, 72, 153, 0.2);
7282
}
7383

7484
.board-square {
@@ -162,7 +172,9 @@ body {
162172

163173
/* Cyberpunk-style text effects */
164174
.neon-text {
165-
text-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
175+
text-shadow:
176+
0 0 3px currentColor,
177+
0 0 6px currentColor;
166178
}
167179

168180
/* Custom scrollbar */

src/components/AnimatedBackground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function AnimatedBackground() {
9090
0,
9191
particle.x,
9292
particle.y,
93-
particle.size * 2
93+
particle.size * 2,
9494
);
9595

9696
gradient.addColorStop(0, particle.color);

0 commit comments

Comments
 (0)