GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Commit from Bolt to GitHub · aidrivencoder/master-git-github@53afac4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitignore
  • home/project/src/app/tutorials/[id]
    • page.tsx
  • next.config.js
  • package-lock.json
  • package.json
  • src
    • app/tutorials/[id]
      • page.tsx
    • components/tutorials
      • TutorialPage.tsx
    • lib/firebase
      • config
        • index.ts
      • services
        • tutorials.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ next-env.d.ts
4141
.vscode/
4242

4343
# Project specific
44-
bolt_synced/
45-
project-bolt-*.zip
44+
bolt_synced/
Collapse file

‎home/project/src/app/tutorials/[id]/page.tsx‎

Copy file name to clipboard
+54Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
'use client'
2+
3+
import { useEffect, useState } from 'react'
4+
import { TutorialPage as ClientTutorialPage } from '@/components/tutorials/TutorialPage'
5+
import { getTutorialById } from '@/lib/firebase/services/tutorials'
6+
import { LoadingSpinner } from '@/components/ui/LoadingSpinner'
7+
8+
interface TutorialPageProps {
9+
params: { id: string }
10+
}
11+
12+
export default function TutorialPage({ params }: TutorialPageProps) {
13+
const [tutorial, setTutorial] = useState(null)
14+
const [loading, setLoading] = useState(true)
15+
const [error, setError] = useState(null)
16+
17+
useEffect(() => {
18+
async function fetchTutorial() {
19+
try {
20+
const fetchedTutorial = await getTutorialById(params.id)
21+
setTutorial(fetchedTutorial)
22+
} catch (err) {
23+
setError('Failed to load tutorial')
24+
console.error('Error fetching tutorial:', err)
25+
} finally {
26+
setLoading(false)
27+
}
28+
}
29+
30+
fetchTutorial()
31+
}, [params.id])
32+
33+
if (loading) {
34+
return (
35+
<div className="min-h-screen flex items-center justify-center">
36+
<LoadingSpinner size="lg" />
37+
</div>
38+
)
39+
}
40+
41+
if (error) {
42+
return (
43+
<div className="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
44+
<div className="px-4 py-6 sm:px-0">
45+
<div className="text-center">
46+
<p className="text-red-600 dark:text-red-400">{error}</p>
47+
</div>
48+
</div>
49+
</div>
50+
)
51+
}
52+
53+
return <ClientTutorialPage tutorial={tutorial} />
54+
}
Collapse file

‎next.config.js‎

Copy file name to clipboardExpand all lines: next.config.js
+18-1Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4+
swcMinify: true,
45
images: {
56
domains: ['github.com', 'avatars.githubusercontent.com'],
67
},
8+
experimental: {
9+
optimizeCss: true,
10+
turbo: {
11+
rules: {
12+
'*.md': ['raw-loader']
13+
}
14+
},
15+
},
716
webpack: (config) => {
17+
// Add cache configuration
18+
config.cache = {
19+
type: 'filesystem',
20+
buildDependencies: {
21+
config: [__filename],
22+
}
23+
}
24+
825
config.module.rules.push({
926
test: /\.js$/,
1027
include: /node_modules\/undici/,
@@ -15,7 +32,7 @@ const nextConfig = {
1532
plugins: ['@babel/plugin-proposal-private-methods', '@babel/plugin-proposal-class-properties']
1633
}
1734
}
18-
});
35+
})
1936
return config;
2037
}
2138
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.