Second frontend, written in Next.JS + Typescript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
683 B

{"ast":null,"code":"import React from \"react\";\nvar __jsx = React.createElement;\nimport Head from \"next/head\";\nimport { listLogs } from \"../lib/rpdata/logs\";\nimport gqlSsrClient from \"../lib/client/graphql-ssr\";\n;\nexport default function Home({\n logs\n}) {\n return __jsx(React.Fragment, null, __jsx(Head, null, __jsx(\"title\", null, \"Logs - Aite RP\")), __jsx(\"ol\", null, logs.map(l => __jsx(\"li\", {\n key: l.shortId\n }, l.id))));\n}\nexport const getServerSideProps = async () => {\n const logs = await listLogs(gqlSsrClient, {\n limit: 10\n });\n return {\n props: {\n logs\n }\n };\n};","map":null,"metadata":{},"sourceType":"module"}