-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Showing
125 changed files
with
9,778 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { locales } from 'nextra/locales'; | ||
|
||
export const middleware = (request) => { | ||
const { nextUrl } = request; | ||
|
||
// The middleware must not handle dynamic routes. | ||
// if (nextUrl.pathname.startsWith('/ai')) { | ||
// return; | ||
// } | ||
|
||
return locales(request); | ||
}; |
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 |
---|---|---|
|
@@ -70,4 +70,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
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,73 @@ | ||
{ | ||
"index": { | ||
"type": "page", | ||
"title": "Million.js", | ||
"display": "hidden", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"docs": { | ||
"type": "page", | ||
"title": "Docs" | ||
}, | ||
"blog": { | ||
"type": "page", | ||
"title": "Blog" | ||
}, | ||
"showcase": { | ||
"type": "page", | ||
"title": "Showcase", | ||
"theme": { | ||
"typesetting": "article", | ||
"layout": "full" | ||
} | ||
}, | ||
"foundation": { | ||
"display": "hidden", | ||
"type": "page", | ||
"title": "Foundation", | ||
"theme": { | ||
"typesetting": "article" | ||
} | ||
}, | ||
"faq": { | ||
"type": "page", | ||
"title": "FAQ", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"ai": { | ||
"type": "page", | ||
"title": "AI", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"more": { | ||
"title": "More", | ||
"type": "menu", | ||
"items": { | ||
"foundation": { | ||
"title": "Foundation", | ||
"href": "/foundation" | ||
}, | ||
"research": { | ||
"title": "Research", | ||
"href": "https://dl.acm.org/doi/10.1145/3555776.3577683", | ||
"newWindow": true | ||
}, | ||
"demo": { | ||
"title": "Live demo", | ||
"href": "https://demo.million.dev", | ||
"newWindow": true | ||
}, | ||
"hundred": { | ||
"title": "Build your own", | ||
"href": "https://github.com/aidenybai/hundred", | ||
"newWindow": true | ||
} | ||
} | ||
} | ||
} |
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,73 @@ | ||
{ | ||
"index": { | ||
"type": "page", | ||
"title": "Million.js", | ||
"display": "hidden", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"docs": { | ||
"type": "page", | ||
"title": "Docs" | ||
}, | ||
"blog": { | ||
"type": "page", | ||
"title": "Blog" | ||
}, | ||
"showcase": { | ||
"type": "page", | ||
"title": "Showcase", | ||
"theme": { | ||
"typesetting": "article", | ||
"layout": "full" | ||
} | ||
}, | ||
"foundation": { | ||
"display": "hidden", | ||
"type": "page", | ||
"title": "Foundation", | ||
"theme": { | ||
"typesetting": "article" | ||
} | ||
}, | ||
"faq": { | ||
"type": "page", | ||
"title": "FAQ", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"ai": { | ||
"type": "page", | ||
"title": "AI", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"more": { | ||
"title": "More", | ||
"type": "menu", | ||
"items": { | ||
"foundation": { | ||
"title": "Foundation", | ||
"href": "/foundation" | ||
}, | ||
"research": { | ||
"title": "Research", | ||
"href": "https://dl.acm.org/doi/10.1145/3555776.3577683", | ||
"newWindow": true | ||
}, | ||
"demo": { | ||
"title": "Live demo", | ||
"href": "https://demo.million.dev", | ||
"newWindow": true | ||
}, | ||
"hundred": { | ||
"title": "Build your own", | ||
"href": "https://github.com/aidenybai/hundred", | ||
"newWindow": true | ||
} | ||
} | ||
} | ||
} |
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,73 @@ | ||
{ | ||
"index": { | ||
"type": "page", | ||
"title": "Million.js", | ||
"display": "hidden", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"docs": { | ||
"type": "page", | ||
"title": "Docs" | ||
}, | ||
"blog": { | ||
"type": "page", | ||
"title": "Blog" | ||
}, | ||
"showcase": { | ||
"type": "page", | ||
"title": "Showcase", | ||
"theme": { | ||
"typesetting": "article", | ||
"layout": "full" | ||
} | ||
}, | ||
"foundation": { | ||
"display": "hidden", | ||
"type": "page", | ||
"title": "Foundation", | ||
"theme": { | ||
"typesetting": "article" | ||
} | ||
}, | ||
"faq": { | ||
"type": "page", | ||
"title": "FAQ", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"ai": { | ||
"type": "page", | ||
"title": "AI", | ||
"theme": { | ||
"layout": "raw" | ||
} | ||
}, | ||
"more": { | ||
"title": "More", | ||
"type": "menu", | ||
"items": { | ||
"foundation": { | ||
"title": "Foundation", | ||
"href": "/foundation" | ||
}, | ||
"research": { | ||
"title": "Research", | ||
"href": "https://dl.acm.org/doi/10.1145/3555776.3577683", | ||
"newWindow": true | ||
}, | ||
"demo": { | ||
"title": "Live demo", | ||
"href": "https://demo.million.dev", | ||
"newWindow": true | ||
}, | ||
"hundred": { | ||
"title": "Build your own", | ||
"href": "https://github.com/aidenybai/hundred", | ||
"newWindow": true | ||
} | ||
} | ||
} | ||
} |
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,8 @@ | ||
--- | ||
title: 'Million AI' | ||
description: 'Your personal performance expert' | ||
--- | ||
|
||
import { Home } from '../components/ai'; | ||
|
||
<Home /> |
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,8 @@ | ||
--- | ||
title: 'Million AI' | ||
description: 'Your personal performance expert' | ||
--- | ||
|
||
import { Home } from '../components/ai'; | ||
|
||
<Home /> |
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,8 @@ | ||
--- | ||
title: 'Million AI' | ||
description: 'Your personal performance expert' | ||
--- | ||
|
||
import { Home } from '../components/ai'; | ||
|
||
<Home /> |
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,71 @@ | ||
--- | ||
title: Blog | ||
description: The latest updates and releases from the Million.js team. | ||
--- | ||
|
||
import { getPagesUnderRoute } from 'nextra/context'; | ||
import Link from 'next/link'; | ||
import { useRouter } from 'next/router'; | ||
import filterRouteLocale from "nextra/filter-route-locale"; | ||
|
||
export function BlogHeader() { | ||
return ( | ||
<div className="max-w-screen-lg mx-auto pt-4 pb-8 mb-16 border-b border-gray-400 border-opacity-20 text-center"> | ||
<h1> | ||
<span className="font-bold leading-tight lg:text-5xl">Blog</span> | ||
</h1> | ||
<p className="text-center text-gray-500 dark:text-gray-400 font-space-grotesk"> | ||
The latest updates and releases from the Million.js team. | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export function BlogIndex() { | ||
// debug the function here | ||
const { locale, defaultLocale } = useRouter(); | ||
const blogArticles = filterRouteLocale( | ||
getPagesUnderRoute("/blog"), | ||
locale, | ||
defaultLocale, | ||
); | ||
|
||
const sortedPages = blogArticles.sort((a, b) => { | ||
return ( | ||
new Date(b.frontMatter?.date || 0).getTime() - | ||
new Date(a.frontMatter?.date || 0).getTime() | ||
); | ||
}); | ||
|
||
const mapPages = sortedPages.map((page) => { | ||
return ( | ||
<div key={page.route} className="mb-10"> | ||
<Link | ||
href={page.route} | ||
style={{ color: "inherit", textDecoration: "none" }} | ||
className="block font-semibold mt-8 text-2xl" | ||
tabIndex="0" | ||
> | ||
{page.meta?.title || page.frontMatter?.title || page.name} | ||
</Link> | ||
<p className="opacity-80" style={{ marginTop: ".5rem" }}> | ||
{page.frontMatter?.description}{" "} | ||
<span className="inline-block nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font] font-bold"> | ||
<Link href={page.route} tabIndex="-1"> | ||
{"Read more →"} | ||
</Link> | ||
</span> | ||
</p> | ||
{page.frontMatter?.date ? ( | ||
<p className="opacity-50 text-sm mt-2">{page.frontMatter.date}</p> | ||
) : null} | ||
</div> | ||
); | ||
}); | ||
|
||
|
||
return mapPages; | ||
} | ||
|
||
<BlogHeader /> | ||
<BlogIndex /> |
Oops, something went wrong.