Skip to content

Commit 11d0366

Browse files
committed
feat: remove import script, grainient try catch
1 parent 6cbc061 commit 11d0366

7 files changed

Lines changed: 42 additions & 437 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"migrate:create": "payload migrate:create",
1414
"migrate:status": "payload migrate:status",
1515
"generate:importmap": "payload generate:importmap",
16-
"import:pages": "node --import tsx scripts/import-pages.ts",
17-
"import:pages:standalone": "node .next/standalone/scripts/import-pages.mjs",
1816
"lint": "next lint",
1917
"knip": "node --import tsx ./node_modules/knip/bin/knip.js",
2018
"generate": "payload generate:types"

public/sitemap.xml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3-
<url><loc>http://localhost:3000</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
4-
<url><loc>http://localhost:3000/robots.txt</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en/robots.txt"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de/robots.txt"/></url>
5-
<url><loc>http://localhost:3000/en</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
6-
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
7-
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
8-
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
9-
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
10-
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
11-
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
12-
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
13-
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
14-
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
15-
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
16-
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
17-
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
18-
<url><loc>http://localhost:3000/de</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
19-
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
20-
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
21-
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
22-
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
23-
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
24-
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
25-
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
26-
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
27-
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
28-
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
29-
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
30-
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-05-06T18:07:33.874Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
3+
<url><loc>http://localhost:3000</loc><lastmod>2026-05-06T18:40:42.609Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
4+
<url><loc>http://localhost:3000/robots.txt</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en/robots.txt"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de/robots.txt"/></url>
5+
<url><loc>http://localhost:3000/en</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
6+
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
7+
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
8+
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
9+
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
10+
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
11+
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
12+
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
13+
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
14+
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
15+
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
16+
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
17+
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
18+
<url><loc>http://localhost:3000/de</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
19+
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
20+
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
21+
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
22+
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
23+
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
24+
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
25+
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
26+
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
27+
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
28+
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
29+
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
30+
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-05-06T18:40:42.610Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
3131
</urlset>

scripts/import-pages-standalone.mjs

Lines changed: 0 additions & 38 deletions
This file was deleted.

scripts/import-pages.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/app/api/import-pages/route.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/components/ui/Granient.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,22 @@ const Grainient: React.FC<Partial<GrainientPalette>> = ({
181181
useEffect(() => {
182182
if (!containerRef.current) return;
183183

184-
const renderer = new Renderer({
185-
webgl: 2,
186-
alpha: true,
187-
antialias: false,
188-
dpr: Math.min(window.devicePixelRatio || 1, GRAINIENT_CONFIG.maxDpr)
189-
});
184+
let renderer: Renderer;
185+
186+
try {
187+
renderer = new Renderer({
188+
webgl: 2,
189+
alpha: true,
190+
antialias: false,
191+
dpr: Math.min(window.devicePixelRatio || 1, GRAINIENT_CONFIG.maxDpr)
192+
});
193+
} catch {
194+
return;
195+
}
190196

191197
const gl = renderer.gl;
198+
if (!gl) return;
199+
192200
const canvas = gl.canvas as HTMLCanvasElement;
193201
canvas.style.width = '100%';
194202
canvas.style.height = '100%';

0 commit comments

Comments
 (0)