diff --git a/lib/db/views.ts b/lib/db/views.ts index 48dc658a..3f437807 100644 --- a/lib/db/views.ts +++ b/lib/db/views.ts @@ -8,8 +8,6 @@ import { getAll, insert, } from './db' -import { getLibraries } from './libraries' -import { singularToPlural } from '../utils' import { Types } from '../../types/Components' import { findOneTyped } from './dbTyped' diff --git a/pages/index.tsx b/pages/index.tsx index 46eb6ac9..8b30118d 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -9,46 +9,13 @@ import { getAllCache } from '../lib/db/cache' import { Types } from '../types/Components' import ViewAllButton from '../components/buttons/ViewAllButton' import { Item } from '../types/Item' +import LibraryBoard from '../components/boards/LibraryBoard' +import { getAllTyped } from '../lib/db/dbTyped' const description = 'The best places to stream your favorite anime shows online or download them for free and watch in sub or dub. Supports manga, light novels, hentai, and apps.' -export default function Home({ libraries, items, collections, columns }) { - let error = false - if (!Array.isArray(libraries)) { - console.error('Index static page render failed: libraries is', libraries) - error = true - } - if (!Array.isArray(items)) { - console.error('Index static page render failed: items is', items) - error = true - } - if (!Array.isArray(collections)) { - console.error( - 'Index static page render failed: collections is', - collections - ) - error = true - } - if (!Array.isArray(columns)) { - console.error('Index static page render failed: columns is', columns) - error = true - } - - if (error) { - console.error('[', new Date(), '] error found in index page') - return ( - <> -