diff --git a/package-lock.json b/package-lock.json index 43eec3e..dc3f7d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "next": "14.1.0", "react": "^18", "react-dom": "^18", + "react-toastify": "^10.0.4", "zustand": "^4.5.0" }, "devDependencies": { @@ -1163,6 +1164,14 @@ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==" }, + "node_modules/clsx": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.0.tgz", + "integrity": "sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg==", + "engines": { + "node": ">=6" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3722,6 +3731,18 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, + "node_modules/react-toastify": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-10.0.4.tgz", + "integrity": "sha512-etR3RgueY8pe88SA67wLm8rJmL1h+CLqUGHuAoNsseW35oTGJEri6eBTyaXnFKNQ80v/eO10hBYLgz036XRGgA==", + "dependencies": { + "clsx": "^2.1.0" + }, + "peerDependencies": { + "react": ">=16", + "react-dom": ">=16" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/package.json b/package.json index 531ed54..9f3e518 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "next": "14.1.0", "react": "^18", "react-dom": "^18", + "react-toastify": "^10.0.4", "zustand": "^4.5.0" }, "devDependencies": { diff --git a/src/app/author/[author]/page.tsx b/src/app/author/[author]/page.tsx index 0737b4d..48f02e2 100644 --- a/src/app/author/[author]/page.tsx +++ b/src/app/author/[author]/page.tsx @@ -2,7 +2,7 @@ import { authors, affiliations, nationalities } from '../../db/data' import { Zilla_Slab } from 'next/font/google' import Link from 'next/link' import { notFound } from 'next/navigation' -import { Fragment } from 'react' +import { Fragment, Suspense } from 'react' const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) diff --git a/src/app/components/Loading.tsx b/src/app/components/Loading.tsx new file mode 100644 index 0000000..fde4d7c --- /dev/null +++ b/src/app/components/Loading.tsx @@ -0,0 +1,14 @@ +import styles from './loading.module.css' +const LoadingBar = () => { + return ( +
{generateAuthors()}
+
+
Latest revision published{' '} {epoch2datestring(dates[dates.length - 1])}
- {generateItemBadge(type)} +Revision {latest}
{abstract}
-{generateTopics()}
-{generateCode()}
++ {abstract} +
+
+
+
+
+
@@ -61,9 +67,11 @@ export default function RootLayout({