-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a617b96
commit 85875eb
Showing
85 changed files
with
25,111 additions
and
7,952 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { Inter } from 'next/font/google' | ||
import { notFound } from 'next/navigation' | ||
import { NextIntlClientProvider as Localizer } from 'next-intl' | ||
|
||
import Session from './Session' | ||
|
||
import { locales } from '@/helpers/navigation' | ||
|
||
import '@/styles/globals.css' | ||
|
||
import type { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Wiki • Thijmen Heuvelink', | ||
description: 'A catalogue of saved knowledge served via a web-based app.' | ||
} | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
|
||
export default async function Layout({ children, params: { locale } }: { children: React.ReactNode, params: { locale: string } }) { | ||
|
||
locales.some(cur => cur === locale) ?? notFound() | ||
|
||
let messages | ||
try { messages = (await import(`../../src/locales/${locale}.json`)).default } | ||
catch (error) { notFound() } | ||
|
||
return ( | ||
<html lang={locale} className="h-full"> | ||
<body className={inter.className}> | ||
<Localizer locale={locale} messages={messages}> | ||
<Session> | ||
<svg | ||
className="absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]" | ||
aria-hidden="true" | ||
> | ||
<defs> | ||
<pattern | ||
id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" | ||
width={200} | ||
height={200} | ||
x="50%" | ||
y={-1} | ||
patternUnits="userSpaceOnUse" | ||
> | ||
<path d="M100 200V.5M.5 .5H200" fill="none" /> | ||
</pattern> | ||
</defs> | ||
<svg x="50%" y={-1} className="overflow-visible fill-gray-50"> | ||
<path | ||
d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z" | ||
strokeWidth={0} | ||
/> | ||
</svg> | ||
<rect width="100%" height="100%" strokeWidth={0} fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)" /> | ||
</svg> | ||
|
||
{children} | ||
</Session> | ||
</Localizer> | ||
</body> | ||
</html> | ||
) | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
import { Link } from "@/helpers/navigation" | ||
|
||
import Explore from "@/components/Explore" | ||
import Search from "@/components/Search" | ||
import Header from "@/components/Header" | ||
|
||
export default function Page() { | ||
|
||
return ( | ||
<div className="container mx-auto flex flex-col min-h-screen h-full"> | ||
|
||
<div className="grow mt-16"> | ||
<Header /> | ||
|
||
<Search /> | ||
|
||
<div className="text-right mt-3 px-2 mx-8 sm:mx-16 md:mx-32 underline text-xs"> | ||
<Link href="https://github.com/ThijmenGThN/Wiki" target="_blank"> | ||
Star this project on Github | ||
</Link> | ||
</div> | ||
|
||
<Explore /> | ||
</div> | ||
|
||
<p className="my-16 mx-auto text-xs text-center w-3/4 sm:w-1/2"> | ||
This knowledge base, serves as a valuable tool to simplify installations, troubleshoot common problems, and enhance the overall developer experience. All rights reserved. | ||
</p> | ||
|
||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} | ||
|
||
{ "extends": "next/core-web-vitals" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
|
||
# ━━ Blacklist ━━ | ||
# Environment | ||
.env | ||
.env*.local | ||
|
||
*.pem | ||
*.tsbuildinfo | ||
*.log* | ||
.env* | ||
.yarn* | ||
|
||
.DS_Store | ||
.react-email | ||
next-env.d.ts | ||
/data | ||
/out | ||
/build | ||
/.next | ||
/node_modules | ||
# Next.JS | ||
.next | ||
node_modules | ||
|
||
|
||
# Package Manager | ||
npm-debug.log* | ||
|
||
# ━━ Whitelist ━━ | ||
|
||
!.env.sample | ||
# Compilers | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"files.exclude": { | ||
"src/locales/i18n.ts": true, | ||
"package-lock.json": true, | ||
"postcss.config.js": true, | ||
"app/*/Session.tsx": true, | ||
".eslintrc.json": true, | ||
"middleware.ts": true, | ||
"next-env.d.ts": true, | ||
"**/*...rest*": true, | ||
".react-email": true, | ||
"node_modules": true, | ||
"LICENSE.md": true, | ||
"debug.log": true, | ||
"*yarn*": true, | ||
".next": true, | ||
"data": true, | ||
".vscode": true, | ||
".next": true | ||
}, | ||
"i18n-ally.keystyle": "nested", | ||
"i18n-ally.localesPaths": [ | ||
"src/locales" | ||
], | ||
"i18n-ally.keystyle": "nested" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Thijmen Heuvelink | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.