├── .env.sample ├── .eslintrc.json ├── .github ├── CODEOWNERS └── dependabot.yml ├── .gitignore ├── LICENSE ├── README.md ├── components ├── KnockLogo.js ├── NotificationFeed.js ├── NotificationToasts.js ├── Preferences.js ├── SendNotificationForm.js ├── TabbedNotificationFeed │ ├── ArchiveButton.js │ ├── Feed.js │ ├── Header.js │ ├── NotificationCell.js │ ├── TabbedNotificationFeed.js │ ├── constants.js │ └── styles.css ├── Toast.js └── layout │ └── AppContainer.js ├── hooks ├── useIdentify.js └── useLocalStorage.js ├── lib ├── api.js └── constants.js ├── next.config.js ├── package.json ├── pages ├── _app.js ├── _document.js ├── api │ ├── identify.js │ └── notify.js ├── index.js └── preferences.js ├── postcss.config.json ├── public └── favicon.ico ├── styles └── globals.css └── yarn.lock /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/README.md -------------------------------------------------------------------------------- /components/KnockLogo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/KnockLogo.js -------------------------------------------------------------------------------- /components/NotificationFeed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/NotificationFeed.js -------------------------------------------------------------------------------- /components/NotificationToasts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/NotificationToasts.js -------------------------------------------------------------------------------- /components/Preferences.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/Preferences.js -------------------------------------------------------------------------------- /components/SendNotificationForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/SendNotificationForm.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/ArchiveButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/ArchiveButton.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/Feed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/Feed.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/Header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/Header.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/NotificationCell.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/NotificationCell.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/TabbedNotificationFeed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/TabbedNotificationFeed.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/constants.js -------------------------------------------------------------------------------- /components/TabbedNotificationFeed/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/TabbedNotificationFeed/styles.css -------------------------------------------------------------------------------- /components/Toast.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/Toast.js -------------------------------------------------------------------------------- /components/layout/AppContainer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/components/layout/AppContainer.js -------------------------------------------------------------------------------- /hooks/useIdentify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/hooks/useIdentify.js -------------------------------------------------------------------------------- /hooks/useLocalStorage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/hooks/useLocalStorage.js -------------------------------------------------------------------------------- /lib/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/lib/api.js -------------------------------------------------------------------------------- /lib/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/lib/constants.js -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | reactStrictMode: true, 3 | }; 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/_app.js -------------------------------------------------------------------------------- /pages/_document.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/_document.js -------------------------------------------------------------------------------- /pages/api/identify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/api/identify.js -------------------------------------------------------------------------------- /pages/api/notify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/api/notify.js -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/index.js -------------------------------------------------------------------------------- /pages/preferences.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/pages/preferences.js -------------------------------------------------------------------------------- /postcss.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["@telegraph/style-engine/postcss"] 3 | } 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/styles/globals.css -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knocklabs/in-app-notifications-example-nextjs/HEAD/yarn.lock --------------------------------------------------------------------------------