diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/pages/index.js b/pages/index.js new file mode 100644 index 0000000..43a65a1 --- /dev/null +++ b/pages/index.js @@ -0,0 +1,98 @@ +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. +

+
+
+
+ + +
+ ) +}