fix: generate route trees and fix build errors for all apps

- Generated routeTree.gen.ts for all 6 apps (was empty placeholder)
- Fixed className backtick syntax in roles create/edit pages
- Fixed unescaped quote in dimentorin settings FAQ
- Route trees enable proper SPA navigation (no more full page reloads)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
maulanasdqn
2026-04-11 22:53:17 +07:00
co-authored by Claude Opus 4.6
parent 8cb7b592eb
commit d5b267332f
38 changed files with 2564 additions and 78 deletions
+594 -13
View File
@@ -1,25 +1,606 @@
/* prettier-ignore-start */
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file is auto-generated by TanStack Router
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
// Import Routes
import { Route as rootRouteImport } from './routes/__root'
import { Route as SiteRouteImport } from './routes/_site'
import { Route as PublicRouteImport } from './routes/_public'
import { Route as AuthenticatedRouteImport } from './routes/_authenticated'
import { Route as IndexRouteImport } from './routes/index'
import { Route as SiteResourcesRouteImport } from './routes/_site/resources'
import { Route as SiteProfileRouteImport } from './routes/_site/profile'
import { Route as SiteMentoringRouteImport } from './routes/_site/mentoring'
import { Route as SiteArticlesRouteImport } from './routes/_site/articles'
import { Route as AuthenticatedDashboardRouteImport } from './routes/_authenticated/dashboard'
import { Route as AuthenticatedDashboardIndexRouteImport } from './routes/_authenticated/dashboard_/index'
import { Route as SiteProfileIdRouteImport } from './routes/_site/profile_/$id'
import { Route as SiteMentoringIdRouteImport } from './routes/_site/mentoring_/$id'
import { Route as SiteArticlesSlugRouteImport } from './routes/_site/articles_/$slug'
import { Route as PublicAuthRegisterMentorRouteImport } from './routes/_public/auth/register-mentor'
import { Route as PublicAuthRegisterRouteImport } from './routes/_public/auth/register'
import { Route as PublicAuthLoginRouteImport } from './routes/_public/auth/login'
import { Route as PublicAuthGoogleOauthPopupRouteImport } from './routes/_public/auth/google-oauth-popup'
import { Route as PublicAuthGoogleCallbackRouteImport } from './routes/_public/auth/google-callback'
import { Route as PublicAuthForgotRouteImport } from './routes/_public/auth/forgot'
import { Route as AuthenticatedDashboardSettingsRouteImport } from './routes/_authenticated/dashboard_/settings'
import { Route as PublicAuthRegisterSuccessRouteImport } from './routes/_public/auth/register_/success'
import { Route as PublicAuthRegisterOtpRouteImport } from './routes/_public/auth/register_/otp'
import { Route as PublicAuthRegisterMentorSuccessRouteImport } from './routes/_public/auth/register-mentor_/success'
import { Route as PublicAuthRegisterMentorPendingRouteImport } from './routes/_public/auth/register-mentor_/pending'
import { Route as PublicAuthForgotSummonRouteImport } from './routes/_public/auth/forgot_/summon'
import { Route as PublicAuthForgotOtpRouteImport } from './routes/_public/auth/forgot_/otp'
import { Route as rootRoute } from './routes/__root'
const SiteRoute = SiteRouteImport.update({
id: '/_site',
getParentRoute: () => rootRouteImport,
} as any)
const PublicRoute = PublicRouteImport.update({
id: '/_public',
getParentRoute: () => rootRouteImport,
} as any)
const AuthenticatedRoute = AuthenticatedRouteImport.update({
id: '/_authenticated',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const SiteResourcesRoute = SiteResourcesRouteImport.update({
id: '/resources',
path: '/resources',
getParentRoute: () => SiteRoute,
} as any)
const SiteProfileRoute = SiteProfileRouteImport.update({
id: '/profile',
path: '/profile',
getParentRoute: () => SiteRoute,
} as any)
const SiteMentoringRoute = SiteMentoringRouteImport.update({
id: '/mentoring',
path: '/mentoring',
getParentRoute: () => SiteRoute,
} as any)
const SiteArticlesRoute = SiteArticlesRouteImport.update({
id: '/articles',
path: '/articles',
getParentRoute: () => SiteRoute,
} as any)
const AuthenticatedDashboardRoute = AuthenticatedDashboardRouteImport.update({
id: '/dashboard',
path: '/dashboard',
getParentRoute: () => AuthenticatedRoute,
} as any)
const AuthenticatedDashboardIndexRoute =
AuthenticatedDashboardIndexRouteImport.update({
id: '/dashboard_/',
path: '/dashboard/',
getParentRoute: () => AuthenticatedRoute,
} as any)
const SiteProfileIdRoute = SiteProfileIdRouteImport.update({
id: '/profile_/$id',
path: '/profile/$id',
getParentRoute: () => SiteRoute,
} as any)
const SiteMentoringIdRoute = SiteMentoringIdRouteImport.update({
id: '/mentoring_/$id',
path: '/mentoring/$id',
getParentRoute: () => SiteRoute,
} as any)
const SiteArticlesSlugRoute = SiteArticlesSlugRouteImport.update({
id: '/articles_/$slug',
path: '/articles/$slug',
getParentRoute: () => SiteRoute,
} as any)
const PublicAuthRegisterMentorRoute =
PublicAuthRegisterMentorRouteImport.update({
id: '/auth/register-mentor',
path: '/auth/register-mentor',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthRegisterRoute = PublicAuthRegisterRouteImport.update({
id: '/auth/register',
path: '/auth/register',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthLoginRoute = PublicAuthLoginRouteImport.update({
id: '/auth/login',
path: '/auth/login',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthGoogleOauthPopupRoute =
PublicAuthGoogleOauthPopupRouteImport.update({
id: '/auth/google-oauth-popup',
path: '/auth/google-oauth-popup',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthGoogleCallbackRoute =
PublicAuthGoogleCallbackRouteImport.update({
id: '/auth/google-callback',
path: '/auth/google-callback',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthForgotRoute = PublicAuthForgotRouteImport.update({
id: '/auth/forgot',
path: '/auth/forgot',
getParentRoute: () => PublicRoute,
} as any)
const AuthenticatedDashboardSettingsRoute =
AuthenticatedDashboardSettingsRouteImport.update({
id: '/dashboard_/settings',
path: '/dashboard/settings',
getParentRoute: () => AuthenticatedRoute,
} as any)
const PublicAuthRegisterSuccessRoute =
PublicAuthRegisterSuccessRouteImport.update({
id: '/auth/register_/success',
path: '/auth/register/success',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthRegisterOtpRoute = PublicAuthRegisterOtpRouteImport.update({
id: '/auth/register_/otp',
path: '/auth/register/otp',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthRegisterMentorSuccessRoute =
PublicAuthRegisterMentorSuccessRouteImport.update({
id: '/auth/register-mentor_/success',
path: '/auth/register-mentor/success',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthRegisterMentorPendingRoute =
PublicAuthRegisterMentorPendingRouteImport.update({
id: '/auth/register-mentor_/pending',
path: '/auth/register-mentor/pending',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthForgotSummonRoute = PublicAuthForgotSummonRouteImport.update({
id: '/auth/forgot_/summon',
path: '/auth/forgot/summon',
getParentRoute: () => PublicRoute,
} as any)
const PublicAuthForgotOtpRoute = PublicAuthForgotOtpRouteImport.update({
id: '/auth/forgot_/otp',
path: '/auth/forgot/otp',
getParentRoute: () => PublicRoute,
} as any)
// Create/Update Routes
// Populate the FileRoutesByPath interface
declare module '@tanstack/react-router' {
interface FileRoutesByPath {}
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/dashboard': typeof AuthenticatedDashboardRoute
'/articles': typeof SiteArticlesRoute
'/mentoring': typeof SiteMentoringRoute
'/profile': typeof SiteProfileRoute
'/resources': typeof SiteResourcesRoute
'/dashboard/settings': typeof AuthenticatedDashboardSettingsRoute
'/auth/forgot': typeof PublicAuthForgotRoute
'/auth/google-callback': typeof PublicAuthGoogleCallbackRoute
'/auth/google-oauth-popup': typeof PublicAuthGoogleOauthPopupRoute
'/auth/login': typeof PublicAuthLoginRoute
'/auth/register': typeof PublicAuthRegisterRoute
'/auth/register-mentor': typeof PublicAuthRegisterMentorRoute
'/articles/$slug': typeof SiteArticlesSlugRoute
'/mentoring/$id': typeof SiteMentoringIdRoute
'/profile/$id': typeof SiteProfileIdRoute
'/dashboard/': typeof AuthenticatedDashboardIndexRoute
'/auth/forgot/otp': typeof PublicAuthForgotOtpRoute
'/auth/forgot/summon': typeof PublicAuthForgotSummonRoute
'/auth/register-mentor/pending': typeof PublicAuthRegisterMentorPendingRoute
'/auth/register-mentor/success': typeof PublicAuthRegisterMentorSuccessRoute
'/auth/register/otp': typeof PublicAuthRegisterOtpRoute
'/auth/register/success': typeof PublicAuthRegisterSuccessRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/dashboard': typeof AuthenticatedDashboardIndexRoute
'/articles': typeof SiteArticlesRoute
'/mentoring': typeof SiteMentoringRoute
'/profile': typeof SiteProfileRoute
'/resources': typeof SiteResourcesRoute
'/dashboard/settings': typeof AuthenticatedDashboardSettingsRoute
'/auth/forgot': typeof PublicAuthForgotRoute
'/auth/google-callback': typeof PublicAuthGoogleCallbackRoute
'/auth/google-oauth-popup': typeof PublicAuthGoogleOauthPopupRoute
'/auth/login': typeof PublicAuthLoginRoute
'/auth/register': typeof PublicAuthRegisterRoute
'/auth/register-mentor': typeof PublicAuthRegisterMentorRoute
'/articles/$slug': typeof SiteArticlesSlugRoute
'/mentoring/$id': typeof SiteMentoringIdRoute
'/profile/$id': typeof SiteProfileIdRoute
'/auth/forgot/otp': typeof PublicAuthForgotOtpRoute
'/auth/forgot/summon': typeof PublicAuthForgotSummonRoute
'/auth/register-mentor/pending': typeof PublicAuthRegisterMentorPendingRoute
'/auth/register-mentor/success': typeof PublicAuthRegisterMentorSuccessRoute
'/auth/register/otp': typeof PublicAuthRegisterOtpRoute
'/auth/register/success': typeof PublicAuthRegisterSuccessRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/_authenticated': typeof AuthenticatedRouteWithChildren
'/_public': typeof PublicRouteWithChildren
'/_site': typeof SiteRouteWithChildren
'/_authenticated/dashboard': typeof AuthenticatedDashboardRoute
'/_site/articles': typeof SiteArticlesRoute
'/_site/mentoring': typeof SiteMentoringRoute
'/_site/profile': typeof SiteProfileRoute
'/_site/resources': typeof SiteResourcesRoute
'/_authenticated/dashboard_/settings': typeof AuthenticatedDashboardSettingsRoute
'/_public/auth/forgot': typeof PublicAuthForgotRoute
'/_public/auth/google-callback': typeof PublicAuthGoogleCallbackRoute
'/_public/auth/google-oauth-popup': typeof PublicAuthGoogleOauthPopupRoute
'/_public/auth/login': typeof PublicAuthLoginRoute
'/_public/auth/register': typeof PublicAuthRegisterRoute
'/_public/auth/register-mentor': typeof PublicAuthRegisterMentorRoute
'/_site/articles_/$slug': typeof SiteArticlesSlugRoute
'/_site/mentoring_/$id': typeof SiteMentoringIdRoute
'/_site/profile_/$id': typeof SiteProfileIdRoute
'/_authenticated/dashboard_/': typeof AuthenticatedDashboardIndexRoute
'/_public/auth/forgot_/otp': typeof PublicAuthForgotOtpRoute
'/_public/auth/forgot_/summon': typeof PublicAuthForgotSummonRoute
'/_public/auth/register-mentor_/pending': typeof PublicAuthRegisterMentorPendingRoute
'/_public/auth/register-mentor_/success': typeof PublicAuthRegisterMentorSuccessRoute
'/_public/auth/register_/otp': typeof PublicAuthRegisterOtpRoute
'/_public/auth/register_/success': typeof PublicAuthRegisterSuccessRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| '/'
| '/dashboard'
| '/articles'
| '/mentoring'
| '/profile'
| '/resources'
| '/dashboard/settings'
| '/auth/forgot'
| '/auth/google-callback'
| '/auth/google-oauth-popup'
| '/auth/login'
| '/auth/register'
| '/auth/register-mentor'
| '/articles/$slug'
| '/mentoring/$id'
| '/profile/$id'
| '/dashboard/'
| '/auth/forgot/otp'
| '/auth/forgot/summon'
| '/auth/register-mentor/pending'
| '/auth/register-mentor/success'
| '/auth/register/otp'
| '/auth/register/success'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| '/dashboard'
| '/articles'
| '/mentoring'
| '/profile'
| '/resources'
| '/dashboard/settings'
| '/auth/forgot'
| '/auth/google-callback'
| '/auth/google-oauth-popup'
| '/auth/login'
| '/auth/register'
| '/auth/register-mentor'
| '/articles/$slug'
| '/mentoring/$id'
| '/profile/$id'
| '/auth/forgot/otp'
| '/auth/forgot/summon'
| '/auth/register-mentor/pending'
| '/auth/register-mentor/success'
| '/auth/register/otp'
| '/auth/register/success'
id:
| '__root__'
| '/'
| '/_authenticated'
| '/_public'
| '/_site'
| '/_authenticated/dashboard'
| '/_site/articles'
| '/_site/mentoring'
| '/_site/profile'
| '/_site/resources'
| '/_authenticated/dashboard_/settings'
| '/_public/auth/forgot'
| '/_public/auth/google-callback'
| '/_public/auth/google-oauth-popup'
| '/_public/auth/login'
| '/_public/auth/register'
| '/_public/auth/register-mentor'
| '/_site/articles_/$slug'
| '/_site/mentoring_/$id'
| '/_site/profile_/$id'
| '/_authenticated/dashboard_/'
| '/_public/auth/forgot_/otp'
| '/_public/auth/forgot_/summon'
| '/_public/auth/register-mentor_/pending'
| '/_public/auth/register-mentor_/success'
| '/_public/auth/register_/otp'
| '/_public/auth/register_/success'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AuthenticatedRoute: typeof AuthenticatedRouteWithChildren
PublicRoute: typeof PublicRouteWithChildren
SiteRoute: typeof SiteRouteWithChildren
}
// Create and export the route tree
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/_site': {
id: '/_site'
path: ''
fullPath: '/'
preLoaderRoute: typeof SiteRouteImport
parentRoute: typeof rootRouteImport
}
'/_public': {
id: '/_public'
path: ''
fullPath: '/'
preLoaderRoute: typeof PublicRouteImport
parentRoute: typeof rootRouteImport
}
'/_authenticated': {
id: '/_authenticated'
path: ''
fullPath: '/'
preLoaderRoute: typeof AuthenticatedRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/_site/resources': {
id: '/_site/resources'
path: '/resources'
fullPath: '/resources'
preLoaderRoute: typeof SiteResourcesRouteImport
parentRoute: typeof SiteRoute
}
'/_site/profile': {
id: '/_site/profile'
path: '/profile'
fullPath: '/profile'
preLoaderRoute: typeof SiteProfileRouteImport
parentRoute: typeof SiteRoute
}
'/_site/mentoring': {
id: '/_site/mentoring'
path: '/mentoring'
fullPath: '/mentoring'
preLoaderRoute: typeof SiteMentoringRouteImport
parentRoute: typeof SiteRoute
}
'/_site/articles': {
id: '/_site/articles'
path: '/articles'
fullPath: '/articles'
preLoaderRoute: typeof SiteArticlesRouteImport
parentRoute: typeof SiteRoute
}
'/_authenticated/dashboard': {
id: '/_authenticated/dashboard'
path: '/dashboard'
fullPath: '/dashboard'
preLoaderRoute: typeof AuthenticatedDashboardRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/_authenticated/dashboard_/': {
id: '/_authenticated/dashboard_/'
path: '/dashboard'
fullPath: '/dashboard/'
preLoaderRoute: typeof AuthenticatedDashboardIndexRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/_site/profile_/$id': {
id: '/_site/profile_/$id'
path: '/profile/$id'
fullPath: '/profile/$id'
preLoaderRoute: typeof SiteProfileIdRouteImport
parentRoute: typeof SiteRoute
}
'/_site/mentoring_/$id': {
id: '/_site/mentoring_/$id'
path: '/mentoring/$id'
fullPath: '/mentoring/$id'
preLoaderRoute: typeof SiteMentoringIdRouteImport
parentRoute: typeof SiteRoute
}
'/_site/articles_/$slug': {
id: '/_site/articles_/$slug'
path: '/articles/$slug'
fullPath: '/articles/$slug'
preLoaderRoute: typeof SiteArticlesSlugRouteImport
parentRoute: typeof SiteRoute
}
'/_public/auth/register-mentor': {
id: '/_public/auth/register-mentor'
path: '/auth/register-mentor'
fullPath: '/auth/register-mentor'
preLoaderRoute: typeof PublicAuthRegisterMentorRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/register': {
id: '/_public/auth/register'
path: '/auth/register'
fullPath: '/auth/register'
preLoaderRoute: typeof PublicAuthRegisterRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/login': {
id: '/_public/auth/login'
path: '/auth/login'
fullPath: '/auth/login'
preLoaderRoute: typeof PublicAuthLoginRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/google-oauth-popup': {
id: '/_public/auth/google-oauth-popup'
path: '/auth/google-oauth-popup'
fullPath: '/auth/google-oauth-popup'
preLoaderRoute: typeof PublicAuthGoogleOauthPopupRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/google-callback': {
id: '/_public/auth/google-callback'
path: '/auth/google-callback'
fullPath: '/auth/google-callback'
preLoaderRoute: typeof PublicAuthGoogleCallbackRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/forgot': {
id: '/_public/auth/forgot'
path: '/auth/forgot'
fullPath: '/auth/forgot'
preLoaderRoute: typeof PublicAuthForgotRouteImport
parentRoute: typeof PublicRoute
}
'/_authenticated/dashboard_/settings': {
id: '/_authenticated/dashboard_/settings'
path: '/dashboard/settings'
fullPath: '/dashboard/settings'
preLoaderRoute: typeof AuthenticatedDashboardSettingsRouteImport
parentRoute: typeof AuthenticatedRoute
}
'/_public/auth/register_/success': {
id: '/_public/auth/register_/success'
path: '/auth/register/success'
fullPath: '/auth/register/success'
preLoaderRoute: typeof PublicAuthRegisterSuccessRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/register_/otp': {
id: '/_public/auth/register_/otp'
path: '/auth/register/otp'
fullPath: '/auth/register/otp'
preLoaderRoute: typeof PublicAuthRegisterOtpRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/register-mentor_/success': {
id: '/_public/auth/register-mentor_/success'
path: '/auth/register-mentor/success'
fullPath: '/auth/register-mentor/success'
preLoaderRoute: typeof PublicAuthRegisterMentorSuccessRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/register-mentor_/pending': {
id: '/_public/auth/register-mentor_/pending'
path: '/auth/register-mentor/pending'
fullPath: '/auth/register-mentor/pending'
preLoaderRoute: typeof PublicAuthRegisterMentorPendingRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/forgot_/summon': {
id: '/_public/auth/forgot_/summon'
path: '/auth/forgot/summon'
fullPath: '/auth/forgot/summon'
preLoaderRoute: typeof PublicAuthForgotSummonRouteImport
parentRoute: typeof PublicRoute
}
'/_public/auth/forgot_/otp': {
id: '/_public/auth/forgot_/otp'
path: '/auth/forgot/otp'
fullPath: '/auth/forgot/otp'
preLoaderRoute: typeof PublicAuthForgotOtpRouteImport
parentRoute: typeof PublicRoute
}
}
}
export const routeTree = rootRoute
interface AuthenticatedRouteChildren {
AuthenticatedDashboardRoute: typeof AuthenticatedDashboardRoute
AuthenticatedDashboardSettingsRoute: typeof AuthenticatedDashboardSettingsRoute
AuthenticatedDashboardIndexRoute: typeof AuthenticatedDashboardIndexRoute
}
const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
AuthenticatedDashboardRoute: AuthenticatedDashboardRoute,
AuthenticatedDashboardSettingsRoute: AuthenticatedDashboardSettingsRoute,
AuthenticatedDashboardIndexRoute: AuthenticatedDashboardIndexRoute,
}
const AuthenticatedRouteWithChildren = AuthenticatedRoute._addFileChildren(
AuthenticatedRouteChildren,
)
interface PublicRouteChildren {
PublicAuthForgotRoute: typeof PublicAuthForgotRoute
PublicAuthGoogleCallbackRoute: typeof PublicAuthGoogleCallbackRoute
PublicAuthGoogleOauthPopupRoute: typeof PublicAuthGoogleOauthPopupRoute
PublicAuthLoginRoute: typeof PublicAuthLoginRoute
PublicAuthRegisterRoute: typeof PublicAuthRegisterRoute
PublicAuthRegisterMentorRoute: typeof PublicAuthRegisterMentorRoute
PublicAuthForgotOtpRoute: typeof PublicAuthForgotOtpRoute
PublicAuthForgotSummonRoute: typeof PublicAuthForgotSummonRoute
PublicAuthRegisterMentorPendingRoute: typeof PublicAuthRegisterMentorPendingRoute
PublicAuthRegisterMentorSuccessRoute: typeof PublicAuthRegisterMentorSuccessRoute
PublicAuthRegisterOtpRoute: typeof PublicAuthRegisterOtpRoute
PublicAuthRegisterSuccessRoute: typeof PublicAuthRegisterSuccessRoute
}
const PublicRouteChildren: PublicRouteChildren = {
PublicAuthForgotRoute: PublicAuthForgotRoute,
PublicAuthGoogleCallbackRoute: PublicAuthGoogleCallbackRoute,
PublicAuthGoogleOauthPopupRoute: PublicAuthGoogleOauthPopupRoute,
PublicAuthLoginRoute: PublicAuthLoginRoute,
PublicAuthRegisterRoute: PublicAuthRegisterRoute,
PublicAuthRegisterMentorRoute: PublicAuthRegisterMentorRoute,
PublicAuthForgotOtpRoute: PublicAuthForgotOtpRoute,
PublicAuthForgotSummonRoute: PublicAuthForgotSummonRoute,
PublicAuthRegisterMentorPendingRoute: PublicAuthRegisterMentorPendingRoute,
PublicAuthRegisterMentorSuccessRoute: PublicAuthRegisterMentorSuccessRoute,
PublicAuthRegisterOtpRoute: PublicAuthRegisterOtpRoute,
PublicAuthRegisterSuccessRoute: PublicAuthRegisterSuccessRoute,
}
const PublicRouteWithChildren =
PublicRoute._addFileChildren(PublicRouteChildren)
interface SiteRouteChildren {
SiteArticlesRoute: typeof SiteArticlesRoute
SiteMentoringRoute: typeof SiteMentoringRoute
SiteProfileRoute: typeof SiteProfileRoute
SiteResourcesRoute: typeof SiteResourcesRoute
SiteArticlesSlugRoute: typeof SiteArticlesSlugRoute
SiteMentoringIdRoute: typeof SiteMentoringIdRoute
SiteProfileIdRoute: typeof SiteProfileIdRoute
}
const SiteRouteChildren: SiteRouteChildren = {
SiteArticlesRoute: SiteArticlesRoute,
SiteMentoringRoute: SiteMentoringRoute,
SiteProfileRoute: SiteProfileRoute,
SiteResourcesRoute: SiteResourcesRoute,
SiteArticlesSlugRoute: SiteArticlesSlugRoute,
SiteMentoringIdRoute: SiteMentoringIdRoute,
SiteProfileIdRoute: SiteProfileIdRoute,
}
const SiteRouteWithChildren = SiteRoute._addFileChildren(SiteRouteChildren)
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AuthenticatedRoute: AuthenticatedRouteWithChildren,
PublicRoute: PublicRouteWithChildren,
SiteRoute: SiteRouteWithChildren,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
@@ -7,7 +7,7 @@ import {
} from '@imphnen-frontend-service/service'
import { Icon } from '@iconify/react'
export const Route = createFileRoute('/_authenticated/dashboard/')({
export const Route = createFileRoute('/_authenticated/dashboard_/')({
component: DashboardIndexPage,
})
@@ -17,7 +17,7 @@ const faqItems = [
{ q: 'Is my data secure?', a: 'Yes, we use encryption and secure protocols to protect your data. See our Privacy Policy for details.' },
]
export const Route = createFileRoute('/_authenticated/dashboard/settings')({
export const Route = createFileRoute('/_authenticated/dashboard_/settings')({
component: SettingsPage,
})
@@ -70,16 +70,16 @@ function SettingsPage() {
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Full Name</label>
<input type="text" defaultValue={user?.fullname || ''} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
<input type="text" defaultValue={user?.fullname || ""} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
</div>
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Email</label>
<input type="email" defaultValue={user?.email || ''} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
<input type="email" defaultValue={user?.email || ""} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
</div>
</div>
<div>
<label className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Role</label>
<input type="text" defaultValue={user?.role?.name || 'User'} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
<input type="text" defaultValue={user?.role?.name || "User"} disabled className="w-full px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white disabled:opacity-60" />
</div>
<p className="text-sm text-gray-500 dark:text-gray-400">
To update your profile, use the profile page from the main menu.
@@ -165,7 +165,7 @@ function SettingsPage() {
className="w-full px-4 py-3 flex items-center justify-between text-left cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800"
>
<span className="font-medium text-gray-900 dark:text-white text-sm">{item.q}</span>
<Icon icon={expandedFaq === i ? 'mdi:chevron-up' : 'mdi:chevron-down'} className="text-gray-400 shrink-0" />
<Icon icon={expandedFaq === i ? 'mdi:chevron-up' : 'mdi:chevron-down'} className='text-gray-400 shrink-0' />
</button>
{expandedFaq === i && (
<div className="px-4 pb-3">
@@ -4,7 +4,7 @@ import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms'
import { ForgotStep, OtpForm } from '@imphnen-frontend-service/ui/molecules'
import { Button } from '@imphnen-frontend-service/ui/atoms'
export const Route = createFileRoute('/_public/auth/forgot/otp')({
export const Route = createFileRoute('/_public/auth/forgot_/otp')({
component: ForgotOtpPage,
})
@@ -4,7 +4,7 @@ import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms'
import { ForgotStep } from '@imphnen-frontend-service/ui/molecules'
import { Button, Input } from '@imphnen-frontend-service/ui/atoms'
export const Route = createFileRoute('/_public/auth/forgot/summon')({
export const Route = createFileRoute('/_public/auth/forgot_/summon')({
component: ForgotSummonPage,
})
@@ -16,12 +16,12 @@ function ForgotSummonPage(): ReactElement {
<div className='border-2 border-primary-500/50 w-[596px] rounded-lg py-[70px] px-[48px] flex flex-col justify-center'>
<ForgotStep step={3} />
<h3 className='mt-5 text-3xl font-semibold text-primary-500'>Forgot Password</h3>
<h5 className='mt-2 text-md font-medium text-primary-500'>Sekarang, buatlah password baru yang lebih kuat, seperti jurus andalanmu!<span role="img" aria-label='emoji'>🔥</span></h5>
<h5 className='mt-2 text-md font-medium text-primary-500'>Sekarang, buatlah password baru yang lebih kuat, seperti jurus andalanmu!<span role='img' aria-label='emoji'>🔥</span></h5>
<div className='my-4'>
<h6 className='text-gray-700'>Password Baru</h6>
<Input className='w-full' type="password" placeholder='Buat password sekokoh armor legendary!'/>
<Input className='w-full' type='password' placeholder='Buat password sekokoh armor legendary!'/>
<h6 className='text-gray-700 mt-5'>Ulang Password Baru</h6>
<Input className='w-full' type="password" placeholder='Pastikan Cocok! Jangan sampai ada typo, Senpai~!'/>
<Input className='w-full' type='password' placeholder='Pastikan Cocok! Jangan sampai ada typo, Senpai~!'/>
</div>
<div className='mb-4 text-gray-700 flex flex-col gap-3 text-sm'>
<h6><span role='img' aria-label='emoji'>💡</span> Tips dari kami:</h6>
@@ -4,7 +4,7 @@ import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms'
import { Button } from '@imphnen-frontend-service/ui/atoms'
import { ArrowRightOutlined } from '@ant-design/icons'
export const Route = createFileRoute('/_public/auth/register-mentor/pending')({
export const Route = createFileRoute('/_public/auth/register-mentor_/pending')({
component: RegisterMentorPendingPage,
})
@@ -4,7 +4,7 @@ import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms'
import { Button } from '@imphnen-frontend-service/ui/atoms'
import { ArrowRightOutlined } from '@ant-design/icons'
export const Route = createFileRoute('/_public/auth/register-mentor/success')({
export const Route = createFileRoute('/_public/auth/register-mentor_/success')({
component: RegisterMentorSuccessPage,
})
@@ -5,7 +5,7 @@ import { useOtpHook } from '../../../_hooks/use-otp'
import { Button } from '@imphnen-frontend-service/ui/atoms'
import { useResendOtpHook } from '../../../_hooks/use-resend-otp'
export const Route = createFileRoute('/_public/auth/register/otp')({
export const Route = createFileRoute('/_public/auth/register_/otp')({
validateSearch: (search: Record<string, unknown>) => ({
email: (search.email as string) || '',
}),
@@ -38,7 +38,7 @@ function RegisterOtpPage(): ReactElement {
const formatTime = (seconds: number) => {
const m = Math.floor(seconds / 60)
const s = seconds % 60
return `${m}:${s.toString().padStart(2, '0')}`
return `${m}:${s.toString().padStart(2, `0`)}`
}
return (
@@ -65,7 +65,7 @@ function RegisterOtpPage(): ReactElement {
setDisabled(true)
setTimeLeft(5 * 60)
}
}>Kirim ulang otp {disabled? `(${formatTime(timeLeft)})`: ""}</Button>
}>Kirim ulang otp {disabled? `(${formatTime(timeLeft)})`: ``}</Button>
<Button className="xl:w-full mt-2" disabled={(!form.formState.isValid || isLoading)}>Linked Start !!!</Button>
</form>
</div>
@@ -4,7 +4,7 @@ import { RegisterResetBanner } from '@imphnen-frontend-service/ui/organisms'
import { Button } from '@imphnen-frontend-service/ui/atoms'
import { ArrowRightOutlined } from '@ant-design/icons'
export const Route = createFileRoute('/_public/auth/register/success')({
export const Route = createFileRoute('/_public/auth/register_/success')({
component: RegisterSuccessPage,
})
@@ -4,7 +4,7 @@ import { Button } from '@imphnen-frontend-service/ui/atoms'
import { cn } from '@imphnen-frontend-service/utils'
import { motion } from 'framer-motion'
export const Route = createFileRoute('/_site/articles/$slug')({
export const Route = createFileRoute('/_site/articles_/$slug')({
component: DetailArticlePage,
})
@@ -10,7 +10,7 @@ import { Button } from '@imphnen-frontend-service/ui/atoms'
import { AppointmentModal } from './$id/_components/modals/appointment'
import { useMentorById } from '@imphnen-frontend-service/service'
export const Route = createFileRoute('/_site/mentoring/$id')({
export const Route = createFileRoute('/_site/mentoring_/$id')({
component: MentorDetailPage,
})
@@ -7,7 +7,7 @@ import { NotificationModal, NotificationType } from './_components/modals/notifi
import { ProfileProvider, useProfile } from './_components/contexts/profile-context'
import { EditProfileModal } from './_components/modals/edit-profile-modal'
export const Route = createFileRoute('/_site/profile/$id')({
export const Route = createFileRoute('/_site/profile_/$id')({
component: ProfileByIdPage,
})
+1
View File
@@ -16,6 +16,7 @@ export default defineConfig(() => ({
port: 3001,
host: 'localhost',
},
build: { rolldownOptions: { output: { codeSplitting: { groups: [{ name: 'vendor', test: /node_modules/ }] } } } },
plugins: [
TanStackRouterVite({
routeFileIgnorePattern: '_components|_hooks|_hook|_data',