Rebrand project and add Document Search feature

Updated project name and version in package-lock.json.
Modified navigation to include a new 'Document Search' item.
Introduced lazy-loaded DocumentSearch component in sections.tsx.
Created doc-search.tsx with a DocSearchView for displaying posts.
This commit is contained in:
tekh 2025-07-03 16:59:54 +02:00
parent e8a96dd6c4
commit 1a9a683b25
4 changed files with 28 additions and 6 deletions

View File

@ -1,12 +1,12 @@
{
"name": "@minimal/material-kit-react",
"version": "3.0.0",
"name": "dd-hub-react",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@minimal/material-kit-react",
"version": "3.0.0",
"name": "dd-hub-react",
"version": "0.0.0",
"dependencies": {
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",

View File

@ -1,4 +1,3 @@
import { Label } from 'src/components/label';
import { SvgColor } from 'src/components/svg-color';
// ----------------------------------------------------------------------
@ -25,6 +24,11 @@ export const navData = [
// ),
//#endregion
},
{
title: 'Document Search',
path: '/doc-search',
icon: icon('ic-cart'),
}
//#region example pages
// {
// title: 'Dashboard',

View File

@ -0,0 +1,16 @@
import { _posts } from 'src/_mock';
import { CONFIG } from 'src/config-global';
import { DocSearchView } from 'src/sections/document/view';
// ----------------------------------------------------------------------
export default function Page() {
return (
<>
<title>{`Document Search - ${CONFIG.appName}`}</title>
<DocSearchView posts={_posts} />
</>
);
}

View File

@ -18,6 +18,7 @@ export const UserPage = lazy(() => import('src/pages/user'));
export const SignInPage = lazy(() => import('src/pages/sign-in'));
export const ProductsPage = lazy(() => import('src/pages/products'));
export const Page404 = lazy(() => import('src/pages/page-not-found'));
export const DocumentSearch = lazy(() => import('src/pages/doc-search'));
const renderFallback = () => (
<Box
@ -50,8 +51,9 @@ export const routesSection: RouteObject[] = [
),
children: [
{ index: true, element: <ProductsPage /> },
{ path: 'user', element: <UserPage /> },
{ path: 'doc-search', element: <DocumentSearch /> },
{ path: 'products', element: <ProductsPage /> },
{ path: 'user', element: <UserPage /> },
{ path: 'blog', element: <BlogPage /> },
],
},