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:
parent
2cb95d8a1a
commit
876eb01506
@ -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: '中文' },
|
||||
|
@ -3,6 +3,8 @@ import { routing } from './i18n/routing';
|
||||
|
||||
export default createMiddleware(routing);
|
||||
|
||||
// TODO: add middleware rules for protected routes
|
||||
|
||||
/**
|
||||
* Next.js internationalized routing
|
||||
*
|
||||
|
@ -1,5 +1,7 @@
|
||||
/**
|
||||
* The routes for the application
|
||||
*
|
||||
* TODO: add config for the routes
|
||||
*/
|
||||
export enum Routes {
|
||||
Root = '/',
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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/ */
|
||||
|
Loading…
Reference in New Issue
Block a user