diff --git a/.gitignore b/.gitignore index 72a95f3..0fde6f0 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ # misc .DS_Store *.pem -just-stuff # debug npm-debug.log* diff --git a/just-stuff/_app.js b/just-stuff/_app.js deleted file mode 100644 index 1e1cec9..0000000 --- a/just-stuff/_app.js +++ /dev/null @@ -1,7 +0,0 @@ -import '../styles/globals.css' - -function MyApp({ Component, pageProps }) { - return -} - -export default MyApp diff --git a/just-stuff/api/hello.js b/just-stuff/api/hello.js deleted file mode 100644 index df63de8..0000000 --- a/just-stuff/api/hello.js +++ /dev/null @@ -1,5 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction - -export default function handler(req, res) { - res.status(200).json({ name: 'John Doe' }) -} diff --git a/just-stuff/index.js b/just-stuff/index.js deleted file mode 100644 index 43a65a1..0000000 --- a/just-stuff/index.js +++ /dev/null @@ -1,98 +0,0 @@ -import Head from 'next/head' -import Image from 'next/image' -import PocketBase from 'pocketbase' -import styles from '../styles/Home.module.css' - -console.log("username:" + process.env.USERNAME); - -const client = new PocketBase('https://backend.saachen.lu'); -const adminAuthData = await client.admins.authViaEmail(process.env.USERNAME, process.env.PASSWORD).catch((error) =>{console.log("It be a feature")}); -//console.log(adminAuthData); -const resultList = await client.records.getList('forums', 1, 50, { - filter: 'created >= "2022-01-01 00:00:00"', -}); -//console.log(resultList); - -export default function Home() { - return ( -
- - hihi - - - - {/*{console.log(adminAuthData)}*/} -
- {resultList.items.map((item, i) => ( -
- // Show all things which you want -
- {i} -
- {item.title} -
- {i} -
- {item.description} -
- )) - } -
-
-

- Welcome to kakapoopoo.js! -
-

-

- Get started by editing{' '} - pages/index.js -

- -
- -

Documentation →

-

Find in-depth information about Next.js features and API.

-
- - -

Learn →

-

Learn about Next.js in an interactive course with quizzes!

-
- - -

Examples →

-

Discover and deploy boilerplate example Next.js projects.

-
- - -

Deploy →

-

- Instantly deploy your Next.js site to a public URL with Vercel. -

-
-
-
- - -
- ) -}