Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Change in menu routes #2

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/assets/images/angularjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/reactjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/AllAppsMenu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const AllAppsMenu = () => {
<div className="all-apps-menu-popover">
<div className="all-apps-menu-popover-arrow" />
<div className="all-apps-menu-popover-content">
<div className="all-apps-menu-list-title">ALL APPS</div>
<div className="all-apps-menu-list-title">Micro Frontend</div>
<ul className="all-apps-menu-list">
{APPS.map((app) => (
<li key={app.path}>
Expand Down
42 changes: 30 additions & 12 deletions src/constants/apps.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Config for the All Apps menu.
*/
import appReactIcon from "../assets/images/reactjs.svg";
import appAngularIcon from "../assets/images/angularjs.svg";
import appTaasIcon from "../assets/images/app-taas.svg";
import appSkillSearchIcon from "../assets/images/app-skill-search.svg";
import appProjectsIcon from "../assets/images/app-projects.svg";
Expand All @@ -9,32 +11,48 @@ import appName1Icon from "../assets/images/app-name-1.svg";
import appName2Icon from "../assets/images/app-name-2.svg";

export const APPS = [
{
title: "React Example",
icon: appReactIcon,
path: "/micro-frontends-react-route",
menu: [
{ title: "Home", path: "/micro-frontends-react-route" },
],
},
{
title: "Angular Example",
icon: appAngularIcon,
path: "/micro-frontends-angular-route",
menu: [
{ title: "Home", path: "/micro-frontends-angular-route" },
],
},
{
title: "TaaS",
icon: appTaasIcon,
path: "/micro-frontends-react-route",
path: "/taas",
menu: [
{ title: "My Teams", path: "/micro-frontends-react-route/myteam" },
{ title: "Feedback", path: "/micro-frontends-react-route/feedback" },
{ title: "Invoices", path: "/micro-frontends-react-route/invoices" },
{ title: "Reports", path: "/micro-frontends-react-route/reports" },
{ title: "My Teams", path: "/taas/myteam" },
{ title: "Feedback", path: "/taas/feedback" },
{ title: "Invoices", path: "/taas/invoices" },
{ title: "Reports", path: "/taas/reports" },
],
},
{
title: "Skill Search",
icon: appSkillSearchIcon,
path: "/micro-frontends-angular-route",
path: "/skills-search",
menu: [
{ title: "Search", path: "/micro-frontends-angular-route" },
{ title: "Search", path: "/skills-search" },
{
title: "Group",
children: [
{ title: "Development", path: "/micro-frontends-angular-route/group/development" },
{ title: "Design", path: "/micro-frontends-angular-route/group/design" },
{ title: "Q&A", path: "/micro-frontends-angular-route/group/qa" },
{ title: "Development", path: "/skills-search/group/development" },
{ title: "Design", path: "/skills-search/group/design" },
{ title: "Q&A", path: "/skills-search/group/qa" },
],
},
{ title: "Data Import", path: "/micro-frontends-angular-route/data-import" },
{ title: "Data Import", path: "/skills/data-import" },
],
},
{
Expand Down Expand Up @@ -86,5 +104,5 @@ export const APPS = [
},
{ title: "App Name Page", path: "/app-path-2/page" },
],
},
}
];