chore: add TODO comments for future enhancements

- Added TODO comments in middleware.ts, routes.ts, sitemap.ts, and routing.ts to indicate areas for future improvements, including middleware rules for protected routes, route configuration, and sitemap entries.
- Included a comment in globals.css for reference to shadcn UI theming documentation.
This commit is contained in:
javayhu 2025-04-10 10:07:34 +08:00
parent 2cb95d8a1a
commit 876eb01506
5 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import { defineRouting } from 'next-intl/routing';
// TODO: add config for the locales
export const LOCALE_LIST: Record<string, { flag: string; name: string }> = {
en: { flag: '🇺🇸', name: 'English' },
zh: { flag: '🇨🇳', name: '中文' },

View File

@ -3,6 +3,8 @@ import { routing } from './i18n/routing';
export default createMiddleware(routing);
// TODO: add middleware rules for protected routes
/**
* Next.js internationalized routing
*

View File

@ -1,5 +1,7 @@
/**
* The routes for the application
*
* TODO: add config for the routes
*/
export enum Routes {
Root = '/',

View File

@ -14,6 +14,8 @@ export default function sitemap(): MetadataRoute.Sitemap {
type Href = Parameters<typeof getLocalePathname>[0]['href'];
/**
* TODO: add more entries for the sitemap
*
* https://next-intl.dev/docs/environments/actions-metadata-route-handlers#sitemap
* https://github.com/amannn/next-intl/blob/main/examples/example-app-router/src/app/sitemap.ts
*/

View File

@ -98,6 +98,7 @@
}
/* shadcn ui base colors for different themes */
/* https://tweakcn.com/ */
/* https://ui.shadcn.com/docs/theming#base-colors */
/* https://ui.pub/x/theme-gen */
/* https://spectr.irung.me/ */