From bfea7e7773ffa17f16567ecafcbecf04f93015bd Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Fri, 31 Jul 2026 17:51:26 +0700 Subject: [PATCH] refactor: migrate and reorganize frontend module structures across web applications --- apps/web/src/apps/index.tsx | 4 ++-- apps/web/src/apps/{modules => main}/index.tsx | 8 ++++---- .../layouts/components/bookmark/index.tsx | 0 .../layouts/components/header.layout.tsx | 0 .../layouts/components/history/index.tsx | 3 +-- .../components/notifications/notification-dropdown.tsx | 0 .../{modules => main}/layouts/components/sidebar.store.ts | 0 .../apps/{modules => main}/layouts/components/sidebar.tsx | 0 .../src/apps/{modules => main}/layouts/data/menu.data.ts | 0 .../{modules => main}/layouts/hooks/useHistoryTracker.ts | 3 +-- .../{modules => main}/layouts/languages/en/bookmark.json | 0 .../{modules => main}/layouts/languages/en/history.json | 0 .../apps/{modules => main}/layouts/languages/en/nav.json | 0 .../{modules => main}/layouts/languages/id/bookmark.json | 0 .../{modules => main}/layouts/languages/id/history.json | 0 .../apps/{modules => main}/layouts/languages/id/nav.json | 0 .../src/apps/{modules => main}/layouts/module.layout.tsx | 0 .../apps/{modules => main}/layouts/types/menu.types.ts | 0 .../{modules => main}/layouts/types/saved-page.types.ts | 0 .../example/full-page/data/full-page.remote.service.ts | 0 .../full-page/domain/constants/full-page.constants.ts | 0 .../modules/example/full-page/domain/constants/index.ts | 0 .../example/full-page/domain/entities/full-page.entity.ts | 0 .../modules/example/full-page/domain/entities/index.ts | 0 .../modules/example/full-page/domain/factories/index.ts | 2 +- .../domain/transformers/full-page.remote.transformer.ts | 0 .../full-page/domain/validators/full-page.validator.ts | 0 .../components/detail-component/detail-general.tsx | 0 .../components/form-component/form-general.tsx | 0 .../components/index-component/filter-content.tsx | 0 .../example/full-page/presentation/factory/index.tsx | 0 .../full-page/presentation/languages/en/full-page.json | 0 .../full-page/presentation/languages/id/full-page.json | 0 .../presentation/pages/full-page.page.detail.tsx | 0 .../full-page/presentation/pages/full-page.page.form.tsx | 0 .../full-page/presentation/pages/full-page.page.index.tsx | 0 .../modules/example/full-page/presentation/store/index.ts | 0 apps/web/src/apps/{ => main}/modules/example/index.tsx | 0 .../system/information/components/shortcut/index.tsx | 0 .../system/information/components/system/index.tsx | 0 .../apps/{ => main}/modules/system/information/index.tsx | 0 .../system/information/languages/en/information.json | 0 .../system/information/languages/id/information.json | 0 .../apps/{ => main}/modules/system/notification/index.tsx | 0 .../modules/system/setting/components/history-setting.tsx | 2 +- .../system/setting/components/notification-setting.tsx | 0 .../src/apps/{ => main}/modules/system/setting/index.tsx | 0 .../modules/system/setting/languages/en/setting.json | 0 .../modules/system/setting/languages/id/setting.json | 0 .../modules/system/setting/types/setting.types.ts | 0 50 files changed, 10 insertions(+), 12 deletions(-) rename apps/web/src/apps/{modules => main}/index.tsx (71%) rename apps/web/src/apps/{modules => main}/layouts/components/bookmark/index.tsx (100%) rename apps/web/src/apps/{modules => main}/layouts/components/header.layout.tsx (100%) rename apps/web/src/apps/{modules => main}/layouts/components/history/index.tsx (97%) rename apps/web/src/apps/{modules => main}/layouts/components/notifications/notification-dropdown.tsx (100%) rename apps/web/src/apps/{modules => main}/layouts/components/sidebar.store.ts (100%) rename apps/web/src/apps/{modules => main}/layouts/components/sidebar.tsx (100%) rename apps/web/src/apps/{modules => main}/layouts/data/menu.data.ts (100%) rename apps/web/src/apps/{modules => main}/layouts/hooks/useHistoryTracker.ts (96%) rename apps/web/src/apps/{modules => main}/layouts/languages/en/bookmark.json (100%) rename apps/web/src/apps/{modules => main}/layouts/languages/en/history.json (100%) rename apps/web/src/apps/{modules => main}/layouts/languages/en/nav.json (100%) rename apps/web/src/apps/{modules => main}/layouts/languages/id/bookmark.json (100%) rename apps/web/src/apps/{modules => main}/layouts/languages/id/history.json (100%) rename apps/web/src/apps/{modules => main}/layouts/languages/id/nav.json (100%) rename apps/web/src/apps/{modules => main}/layouts/module.layout.tsx (100%) rename apps/web/src/apps/{modules => main}/layouts/types/menu.types.ts (100%) rename apps/web/src/apps/{modules => main}/layouts/types/saved-page.types.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/data/full-page.remote.service.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/constants/full-page.constants.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/constants/index.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/entities/full-page.entity.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/entities/index.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/factories/index.ts (95%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/transformers/full-page.remote.transformer.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/domain/validators/full-page.validator.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/components/detail-component/detail-general.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/components/form-component/form-general.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/components/index-component/filter-content.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/factory/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/languages/en/full-page.json (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/languages/id/full-page.json (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/pages/full-page.page.detail.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/pages/full-page.page.form.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/pages/full-page.page.index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/example/full-page/presentation/store/index.ts (100%) rename apps/web/src/apps/{ => main}/modules/example/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/information/components/shortcut/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/information/components/system/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/information/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/information/languages/en/information.json (100%) rename apps/web/src/apps/{ => main}/modules/system/information/languages/id/information.json (100%) rename apps/web/src/apps/{ => main}/modules/system/notification/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/setting/components/history-setting.tsx (98%) rename apps/web/src/apps/{ => main}/modules/system/setting/components/notification-setting.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/setting/index.tsx (100%) rename apps/web/src/apps/{ => main}/modules/system/setting/languages/en/setting.json (100%) rename apps/web/src/apps/{ => main}/modules/system/setting/languages/id/setting.json (100%) rename apps/web/src/apps/{ => main}/modules/system/setting/types/setting.types.ts (100%) diff --git a/apps/web/src/apps/index.tsx b/apps/web/src/apps/index.tsx index 72057b6..f33e854 100644 --- a/apps/web/src/apps/index.tsx +++ b/apps/web/src/apps/index.tsx @@ -4,10 +4,10 @@ import { ThemeProvider } from '@repo/ui/provider'; import { NotFound, Forbidden, Maintenance, ComingSoon, AgGridProvider } from '@repo/ui/components'; import { LoadingScreen } from '../core/components/loading-screen'; import { useThemeStore } from '../core/stores/theme.store'; -import { initializeAndPurgeHistoryBackground } from './modules/layouts/hooks/useHistoryTracker'; +import { initializeAndPurgeHistoryBackground } from './main/layouts/hooks/useHistoryTracker'; const AuthModule = lazy(() => import('./auth')); -const AppModule = lazy(() => import('./modules')); +const AppModule = lazy(() => import('./main')); const router = createBrowserRouter([ { path: '/auth/*', element: }, diff --git a/apps/web/src/apps/modules/index.tsx b/apps/web/src/apps/main/index.tsx similarity index 71% rename from apps/web/src/apps/modules/index.tsx rename to apps/web/src/apps/main/index.tsx index d588af8..43a0893 100644 --- a/apps/web/src/apps/modules/index.tsx +++ b/apps/web/src/apps/main/index.tsx @@ -2,10 +2,10 @@ import { lazy } from 'react'; import { Navigate, Route, Routes } from 'react-router-dom'; import ModuleLayout from './layouts/module.layout'; -const ExampleModule = lazy(() => import('./example')); -const SystemSetting = lazy(() => import('./system/setting')); -const SystemInformation = lazy(() => import('./system/information')); -const SystemNotification = lazy(() => import('./system/notification')); +const ExampleModule = lazy(() => import('./modules/example')); +const SystemSetting = lazy(() => import('./modules/system/setting')); +const SystemInformation = lazy(() => import('./modules/system/information')); +const SystemNotification = lazy(() => import('./modules/system/notification')); export default function AppModule() { return ( diff --git a/apps/web/src/apps/modules/layouts/components/bookmark/index.tsx b/apps/web/src/apps/main/layouts/components/bookmark/index.tsx similarity index 100% rename from apps/web/src/apps/modules/layouts/components/bookmark/index.tsx rename to apps/web/src/apps/main/layouts/components/bookmark/index.tsx diff --git a/apps/web/src/apps/modules/layouts/components/header.layout.tsx b/apps/web/src/apps/main/layouts/components/header.layout.tsx similarity index 100% rename from apps/web/src/apps/modules/layouts/components/header.layout.tsx rename to apps/web/src/apps/main/layouts/components/header.layout.tsx diff --git a/apps/web/src/apps/modules/layouts/components/history/index.tsx b/apps/web/src/apps/main/layouts/components/history/index.tsx similarity index 97% rename from apps/web/src/apps/modules/layouts/components/history/index.tsx rename to apps/web/src/apps/main/layouts/components/history/index.tsx index 271f446..c0e6782 100644 --- a/apps/web/src/apps/modules/layouts/components/history/index.tsx +++ b/apps/web/src/apps/main/layouts/components/history/index.tsx @@ -20,8 +20,7 @@ import { Link } from 'react-router-dom'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import type { SavedPageItem } from '../../types/saved-page.types'; -import type { SystemSettings } from '../../../system/setting/types/setting.types'; -import { DEFAULT_SYSTEM_SETTINGS } from '../../../system/setting/types/setting.types'; +import { SystemSettings, DEFAULT_SYSTEM_SETTINGS } from '../../../modules/system/setting/types/setting.types'; // Setup relative time formatting dayjs.extend(relativeTime); diff --git a/apps/web/src/apps/modules/layouts/components/notifications/notification-dropdown.tsx b/apps/web/src/apps/main/layouts/components/notifications/notification-dropdown.tsx similarity index 100% rename from apps/web/src/apps/modules/layouts/components/notifications/notification-dropdown.tsx rename to apps/web/src/apps/main/layouts/components/notifications/notification-dropdown.tsx diff --git a/apps/web/src/apps/modules/layouts/components/sidebar.store.ts b/apps/web/src/apps/main/layouts/components/sidebar.store.ts similarity index 100% rename from apps/web/src/apps/modules/layouts/components/sidebar.store.ts rename to apps/web/src/apps/main/layouts/components/sidebar.store.ts diff --git a/apps/web/src/apps/modules/layouts/components/sidebar.tsx b/apps/web/src/apps/main/layouts/components/sidebar.tsx similarity index 100% rename from apps/web/src/apps/modules/layouts/components/sidebar.tsx rename to apps/web/src/apps/main/layouts/components/sidebar.tsx diff --git a/apps/web/src/apps/modules/layouts/data/menu.data.ts b/apps/web/src/apps/main/layouts/data/menu.data.ts similarity index 100% rename from apps/web/src/apps/modules/layouts/data/menu.data.ts rename to apps/web/src/apps/main/layouts/data/menu.data.ts diff --git a/apps/web/src/apps/modules/layouts/hooks/useHistoryTracker.ts b/apps/web/src/apps/main/layouts/hooks/useHistoryTracker.ts similarity index 96% rename from apps/web/src/apps/modules/layouts/hooks/useHistoryTracker.ts rename to apps/web/src/apps/main/layouts/hooks/useHistoryTracker.ts index 7bc6671..0717acf 100644 --- a/apps/web/src/apps/modules/layouts/hooks/useHistoryTracker.ts +++ b/apps/web/src/apps/main/layouts/hooks/useHistoryTracker.ts @@ -2,8 +2,7 @@ import { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import { appDatabase, AppDatabaseKey } from '../../../../core/storage/local'; import type { SavedPageItem } from '../types/saved-page.types'; -import type { SystemSettings } from '../../system/setting/types/setting.types'; -import { DEFAULT_SYSTEM_SETTINGS } from '../../system/setting/types/setting.types'; +import { SystemSettings, DEFAULT_SYSTEM_SETTINGS } from '../../modules/system/setting/types/setting.types'; // --------------------------------------------------------------------------- // 1. In-Memory Cache & Broadcast Channel diff --git a/apps/web/src/apps/modules/layouts/languages/en/bookmark.json b/apps/web/src/apps/main/layouts/languages/en/bookmark.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/en/bookmark.json rename to apps/web/src/apps/main/layouts/languages/en/bookmark.json diff --git a/apps/web/src/apps/modules/layouts/languages/en/history.json b/apps/web/src/apps/main/layouts/languages/en/history.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/en/history.json rename to apps/web/src/apps/main/layouts/languages/en/history.json diff --git a/apps/web/src/apps/modules/layouts/languages/en/nav.json b/apps/web/src/apps/main/layouts/languages/en/nav.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/en/nav.json rename to apps/web/src/apps/main/layouts/languages/en/nav.json diff --git a/apps/web/src/apps/modules/layouts/languages/id/bookmark.json b/apps/web/src/apps/main/layouts/languages/id/bookmark.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/id/bookmark.json rename to apps/web/src/apps/main/layouts/languages/id/bookmark.json diff --git a/apps/web/src/apps/modules/layouts/languages/id/history.json b/apps/web/src/apps/main/layouts/languages/id/history.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/id/history.json rename to apps/web/src/apps/main/layouts/languages/id/history.json diff --git a/apps/web/src/apps/modules/layouts/languages/id/nav.json b/apps/web/src/apps/main/layouts/languages/id/nav.json similarity index 100% rename from apps/web/src/apps/modules/layouts/languages/id/nav.json rename to apps/web/src/apps/main/layouts/languages/id/nav.json diff --git a/apps/web/src/apps/modules/layouts/module.layout.tsx b/apps/web/src/apps/main/layouts/module.layout.tsx similarity index 100% rename from apps/web/src/apps/modules/layouts/module.layout.tsx rename to apps/web/src/apps/main/layouts/module.layout.tsx diff --git a/apps/web/src/apps/modules/layouts/types/menu.types.ts b/apps/web/src/apps/main/layouts/types/menu.types.ts similarity index 100% rename from apps/web/src/apps/modules/layouts/types/menu.types.ts rename to apps/web/src/apps/main/layouts/types/menu.types.ts diff --git a/apps/web/src/apps/modules/layouts/types/saved-page.types.ts b/apps/web/src/apps/main/layouts/types/saved-page.types.ts similarity index 100% rename from apps/web/src/apps/modules/layouts/types/saved-page.types.ts rename to apps/web/src/apps/main/layouts/types/saved-page.types.ts diff --git a/apps/web/src/apps/modules/example/full-page/data/full-page.remote.service.ts b/apps/web/src/apps/main/modules/example/full-page/data/full-page.remote.service.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/data/full-page.remote.service.ts rename to apps/web/src/apps/main/modules/example/full-page/data/full-page.remote.service.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/constants/full-page.constants.ts b/apps/web/src/apps/main/modules/example/full-page/domain/constants/full-page.constants.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/constants/full-page.constants.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/constants/full-page.constants.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/constants/index.ts b/apps/web/src/apps/main/modules/example/full-page/domain/constants/index.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/constants/index.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/constants/index.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/entities/full-page.entity.ts b/apps/web/src/apps/main/modules/example/full-page/domain/entities/full-page.entity.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/entities/full-page.entity.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/entities/full-page.entity.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/entities/index.ts b/apps/web/src/apps/main/modules/example/full-page/domain/entities/index.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/entities/index.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/entities/index.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/factories/index.ts b/apps/web/src/apps/main/modules/example/full-page/domain/factories/index.ts similarity index 95% rename from apps/web/src/apps/modules/example/full-page/domain/factories/index.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/factories/index.ts index 126e93d..98e3bac 100644 --- a/apps/web/src/apps/modules/example/full-page/domain/factories/index.ts +++ b/apps/web/src/apps/main/modules/example/full-page/domain/factories/index.ts @@ -7,7 +7,7 @@ * within the module share the same API client, configuration, and transformation logic. */ -import { apiClient } from '../../../../../../core/lib/api-client'; +import { apiClient } from '../../../../../../../core/lib/api-client'; import { FullPageRemoteDataServices } from '../../data/full-page.remote.service'; import { fullPageModuleConfig } from '../constants/full-page.constants'; import { FullPageRemoteDataTransformer } from '../transformers/full-page.remote.transformer'; diff --git a/apps/web/src/apps/modules/example/full-page/domain/transformers/full-page.remote.transformer.ts b/apps/web/src/apps/main/modules/example/full-page/domain/transformers/full-page.remote.transformer.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/transformers/full-page.remote.transformer.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/transformers/full-page.remote.transformer.ts diff --git a/apps/web/src/apps/modules/example/full-page/domain/validators/full-page.validator.ts b/apps/web/src/apps/main/modules/example/full-page/domain/validators/full-page.validator.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/domain/validators/full-page.validator.ts rename to apps/web/src/apps/main/modules/example/full-page/domain/validators/full-page.validator.ts diff --git a/apps/web/src/apps/modules/example/full-page/presentation/components/detail-component/detail-general.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/components/detail-component/detail-general.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/components/detail-component/detail-general.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/components/detail-component/detail-general.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/components/form-component/form-general.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/components/form-component/form-general.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/components/form-component/form-general.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/components/form-component/form-general.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/components/index-component/filter-content.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/components/index-component/filter-content.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/components/index-component/filter-content.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/components/index-component/filter-content.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/factory/index.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/factory/index.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/factory/index.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/factory/index.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/languages/en/full-page.json b/apps/web/src/apps/main/modules/example/full-page/presentation/languages/en/full-page.json similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/languages/en/full-page.json rename to apps/web/src/apps/main/modules/example/full-page/presentation/languages/en/full-page.json diff --git a/apps/web/src/apps/modules/example/full-page/presentation/languages/id/full-page.json b/apps/web/src/apps/main/modules/example/full-page/presentation/languages/id/full-page.json similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/languages/id/full-page.json rename to apps/web/src/apps/main/modules/example/full-page/presentation/languages/id/full-page.json diff --git a/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.detail.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.detail.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.detail.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.detail.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.form.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.form.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.form.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.form.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.index.tsx b/apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.index.tsx similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.index.tsx rename to apps/web/src/apps/main/modules/example/full-page/presentation/pages/full-page.page.index.tsx diff --git a/apps/web/src/apps/modules/example/full-page/presentation/store/index.ts b/apps/web/src/apps/main/modules/example/full-page/presentation/store/index.ts similarity index 100% rename from apps/web/src/apps/modules/example/full-page/presentation/store/index.ts rename to apps/web/src/apps/main/modules/example/full-page/presentation/store/index.ts diff --git a/apps/web/src/apps/modules/example/index.tsx b/apps/web/src/apps/main/modules/example/index.tsx similarity index 100% rename from apps/web/src/apps/modules/example/index.tsx rename to apps/web/src/apps/main/modules/example/index.tsx diff --git a/apps/web/src/apps/modules/system/information/components/shortcut/index.tsx b/apps/web/src/apps/main/modules/system/information/components/shortcut/index.tsx similarity index 100% rename from apps/web/src/apps/modules/system/information/components/shortcut/index.tsx rename to apps/web/src/apps/main/modules/system/information/components/shortcut/index.tsx diff --git a/apps/web/src/apps/modules/system/information/components/system/index.tsx b/apps/web/src/apps/main/modules/system/information/components/system/index.tsx similarity index 100% rename from apps/web/src/apps/modules/system/information/components/system/index.tsx rename to apps/web/src/apps/main/modules/system/information/components/system/index.tsx diff --git a/apps/web/src/apps/modules/system/information/index.tsx b/apps/web/src/apps/main/modules/system/information/index.tsx similarity index 100% rename from apps/web/src/apps/modules/system/information/index.tsx rename to apps/web/src/apps/main/modules/system/information/index.tsx diff --git a/apps/web/src/apps/modules/system/information/languages/en/information.json b/apps/web/src/apps/main/modules/system/information/languages/en/information.json similarity index 100% rename from apps/web/src/apps/modules/system/information/languages/en/information.json rename to apps/web/src/apps/main/modules/system/information/languages/en/information.json diff --git a/apps/web/src/apps/modules/system/information/languages/id/information.json b/apps/web/src/apps/main/modules/system/information/languages/id/information.json similarity index 100% rename from apps/web/src/apps/modules/system/information/languages/id/information.json rename to apps/web/src/apps/main/modules/system/information/languages/id/information.json diff --git a/apps/web/src/apps/modules/system/notification/index.tsx b/apps/web/src/apps/main/modules/system/notification/index.tsx similarity index 100% rename from apps/web/src/apps/modules/system/notification/index.tsx rename to apps/web/src/apps/main/modules/system/notification/index.tsx diff --git a/apps/web/src/apps/modules/system/setting/components/history-setting.tsx b/apps/web/src/apps/main/modules/system/setting/components/history-setting.tsx similarity index 98% rename from apps/web/src/apps/modules/system/setting/components/history-setting.tsx rename to apps/web/src/apps/main/modules/system/setting/components/history-setting.tsx index a143461..d8d11fc 100644 --- a/apps/web/src/apps/modules/system/setting/components/history-setting.tsx +++ b/apps/web/src/apps/main/modules/system/setting/components/history-setting.tsx @@ -5,9 +5,9 @@ import { useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import { z } from 'zod'; import { FieldNumberInput, FieldSelect } from '@repo/ui/form'; -import { appDatabase, AppDatabaseKey } from '../../../../../core/storage/local'; import type { SystemSettings, RetentionUnit } from '../types/setting.types'; import { DEFAULT_SYSTEM_SETTINGS } from '../types/setting.types'; +import { appDatabase, AppDatabaseKey } from '../../../../../../core/storage/local'; const historySchema = z.object({ historyRetentionValue: z.coerce.number().min(1, { message: 'Must be at least 1' }), diff --git a/apps/web/src/apps/modules/system/setting/components/notification-setting.tsx b/apps/web/src/apps/main/modules/system/setting/components/notification-setting.tsx similarity index 100% rename from apps/web/src/apps/modules/system/setting/components/notification-setting.tsx rename to apps/web/src/apps/main/modules/system/setting/components/notification-setting.tsx diff --git a/apps/web/src/apps/modules/system/setting/index.tsx b/apps/web/src/apps/main/modules/system/setting/index.tsx similarity index 100% rename from apps/web/src/apps/modules/system/setting/index.tsx rename to apps/web/src/apps/main/modules/system/setting/index.tsx diff --git a/apps/web/src/apps/modules/system/setting/languages/en/setting.json b/apps/web/src/apps/main/modules/system/setting/languages/en/setting.json similarity index 100% rename from apps/web/src/apps/modules/system/setting/languages/en/setting.json rename to apps/web/src/apps/main/modules/system/setting/languages/en/setting.json diff --git a/apps/web/src/apps/modules/system/setting/languages/id/setting.json b/apps/web/src/apps/main/modules/system/setting/languages/id/setting.json similarity index 100% rename from apps/web/src/apps/modules/system/setting/languages/id/setting.json rename to apps/web/src/apps/main/modules/system/setting/languages/id/setting.json diff --git a/apps/web/src/apps/modules/system/setting/types/setting.types.ts b/apps/web/src/apps/main/modules/system/setting/types/setting.types.ts similarity index 100% rename from apps/web/src/apps/modules/system/setting/types/setting.types.ts rename to apps/web/src/apps/main/modules/system/setting/types/setting.types.ts