refactor: Reorganize project structure and update dependencies
- Removed blog, project, and work content files - Updated package dependencies including npm and removed license metadata - Refactored component layouts and page routes - Modified appwrite service for data operations
This commit is contained in:
1 parent
7997eccb12
commit
6ab3254384
51 files changed
+2951
-3221
No files matched your search
@@ -8,7 +8,7 @@ import { getProjectsPaginated } from "@lib/appwrite-service"
|
||||
|
||||
|
||||
// Get page and limit from URL parameters
|
||||
const url = new URL(typeof window !== 'undefined' ? window.location.href : 'http://localhost')
|
||||
const url = new URL(typeof window !== 'undefined' ? window.location.href : 'https://home.spaghet.io')
|
||||
const pageParam = url.searchParams.get('page') || '1'
|
||||
const limitParam = url.searchParams.get('limit') || '10'
|
||||
const page = parseInt(pageParam)
|
||||
@@ -17,6 +17,7 @@ const limit = parseInt(limitParam)
|
||||
// Fetch paginated projects
|
||||
const { posts, total } = await getProjectsPaginated(page, limit)
|
||||
.then(result => {
|
||||
console.log(result)
|
||||
return result;
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in new issue
Block a user