side Menu updated
This commit is contained in:
@@ -6,7 +6,7 @@ const AccountSubCategories = [
|
||||
},
|
||||
icon: "LucideLandmark",
|
||||
component: null,
|
||||
selfEndpoints: ["/account/records/list"],
|
||||
url: "/accounts/balance-inquiry",
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
|
||||
@@ -3,38 +3,38 @@ import { PartsPageInfo } from "../parts/pageInfo";
|
||||
|
||||
const BuildCategories = [
|
||||
{
|
||||
name: "BuildingPartPage",
|
||||
title: {
|
||||
tr: "Daireler",
|
||||
en: "Flats",
|
||||
},
|
||||
icon: "DoorOpen",
|
||||
component: "PartsPage",
|
||||
url: "/building/parts",
|
||||
pageInfo: PartsPageInfo,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
name: "BuildingAreaPage",
|
||||
title: {
|
||||
tr: "Kullanılabilir Alanlar",
|
||||
en: "Building Areas",
|
||||
},
|
||||
icon: "TreePine",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/building/area/list",
|
||||
"/building/area/create",
|
||||
"/building/area/update/{build_uu_id}",
|
||||
],
|
||||
url: "/building/areas",
|
||||
pageInfo: null,
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
{
|
||||
name: "LivingSpacePage",
|
||||
title: {
|
||||
tr: "Yaşayan Kişiler",
|
||||
en: "Living People",
|
||||
},
|
||||
icon: "UsersRound",
|
||||
url: "/building/living-space",
|
||||
component: "LivingSpacePage",
|
||||
pageInfo: LivingSpaceInfo,
|
||||
allEndpoints: [],
|
||||
|
||||
@@ -5,12 +5,7 @@ const CompanyCategories = [
|
||||
en: "Departments",
|
||||
},
|
||||
icon: "FolderOpenDot",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/department/list",
|
||||
"/department/create",
|
||||
"/department/update/{department_uu_id}",
|
||||
],
|
||||
url: "/companies/departments",
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
@@ -20,8 +15,7 @@ const CompanyCategories = [
|
||||
en: "Duties",
|
||||
},
|
||||
icon: "BriefcaseMedical",
|
||||
component: null,
|
||||
selfEndpoints: ["/duties/list", "/duties/create", "/duties/update"],
|
||||
url: "/companies/duties",
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
@@ -31,14 +25,7 @@ const CompanyCategories = [
|
||||
en: "Employees",
|
||||
},
|
||||
icon: "Pickaxe",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/employee/list",
|
||||
"/employee/create",
|
||||
"/employee/update/{employee_uu_id}",
|
||||
"/employee/employ",
|
||||
"/employee/fire",
|
||||
],
|
||||
url: "/companies/employees",
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
@@ -48,12 +35,7 @@ const CompanyCategories = [
|
||||
en: "Staff",
|
||||
},
|
||||
icon: "BicepsFlexed",
|
||||
component: null,
|
||||
selfEndpoints: [
|
||||
"/staff/list",
|
||||
"/staff/create",
|
||||
"/staff/update/{staff_uu_id}",
|
||||
],
|
||||
url: "/companies/staff",
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
},
|
||||
|
||||
@@ -72,32 +72,24 @@ const ProjectBookItemsCategories = [
|
||||
|
||||
const DecisionBookSubCategories = [
|
||||
{
|
||||
name: "DecisionsPage",
|
||||
title: {
|
||||
tr: "Kararlar",
|
||||
en: "Decisions",
|
||||
},
|
||||
icon: "ScrollText",
|
||||
component: "",
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/items/list",
|
||||
"/build/decision_book/items/create",
|
||||
"/build/decision_book/items/update/{decision_book_item_uu_id}",
|
||||
],
|
||||
url: "/decisions/decision-book",
|
||||
allEndpoints: DecisionBookItemAllEndpoints,
|
||||
subCategories: DecisionBookCategories,
|
||||
},
|
||||
{
|
||||
name: "ProjectsPage",
|
||||
title: {
|
||||
tr: "Proje Dosyaları",
|
||||
en: "Project Files",
|
||||
},
|
||||
icon: "Projector",
|
||||
component: "",
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/project/list",
|
||||
"/build/decision_book/project/create",
|
||||
"/build/decision_book/project/update/{project_uu_id}",
|
||||
],
|
||||
url: "/decisions/projects",
|
||||
allEndpoints: ProjectBookItemsAllEndpoints,
|
||||
subCategories: ProjectBookItemsCategories,
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
import { IdentityAllEndpoints } from "./identity/pageInfo";
|
||||
import { AccesibleAllEndpoints } from "./accesible/pageInfo";
|
||||
import { CompanyAllEndpoints, CompanyPageInfo } from "./company/pageInfo";
|
||||
import { MeetingAllEndpoints } from "./meeting/pageInfo";
|
||||
import { MeetingAllEndpoints, MeetingPageInfo } from "./meeting/pageInfo";
|
||||
import { AccountAllEndpoints, AccountPageInfo } from "./accounts/pageInfo";
|
||||
import { BuildPageInfo, BuildAllEndpoints } from "./building/pageInfo";
|
||||
|
||||
@@ -37,71 +37,65 @@ const PagesInfosAndEndpoints = [
|
||||
},
|
||||
icon: "Logs",
|
||||
url: "/meetings",
|
||||
pageInfo: null,
|
||||
component: null,
|
||||
pageInfo: MeetingPageInfo,
|
||||
allEndpoints: MeetingAllEndpoints,
|
||||
subCategories: MeetingSubCategories,
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
name: "AccountPage",
|
||||
title: {
|
||||
tr: "Cari Hesaplar",
|
||||
en: "Accounts",
|
||||
},
|
||||
icon: "Landmark",
|
||||
component: "AccountPage",
|
||||
url: "/accounts",
|
||||
pageInfo: AccountPageInfo,
|
||||
allEndpoints: AccountAllEndpoints,
|
||||
subCategories: AccountSubCategories,
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
name: "DecisionBookPage",
|
||||
title: {
|
||||
tr: "Karar Defteri",
|
||||
en: "Decision Book",
|
||||
},
|
||||
icon: "ScrollText",
|
||||
component: "DecisionBookPage",
|
||||
url: "/decisions",
|
||||
pageInfo: DecisionBookPageInfo,
|
||||
allEndpoints: DecisionBookAllEndpoints,
|
||||
subCategories: DecisionBookSubCategories,
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
name: "IdentitiesPage",
|
||||
title: {
|
||||
tr: "Kimlikler",
|
||||
en: "Identities",
|
||||
},
|
||||
icon: "UserPlus",
|
||||
component: null,
|
||||
url: "/identities",
|
||||
pageInfo: null,
|
||||
allEndpoints: IdentityAllEndpoints,
|
||||
subCategories: IdentityCategories,
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
name: "AccesibilityPage",
|
||||
title: {
|
||||
tr: "Erişilebilirlik",
|
||||
en: "Accessibility",
|
||||
},
|
||||
icon: "Cog",
|
||||
component: null,
|
||||
url: "/accessibilities",
|
||||
pageInfo: null,
|
||||
allEndpoints: AccesibleAllEndpoints,
|
||||
subCategories: AccesibleCategories,
|
||||
},
|
||||
{
|
||||
name: "",
|
||||
name: "CompanyPage",
|
||||
title: {
|
||||
tr: "Firmalar",
|
||||
en: "Companies",
|
||||
},
|
||||
icon: "Store",
|
||||
component: "CompanyPage",
|
||||
url: "/companies",
|
||||
pageInfo: CompanyPageInfo,
|
||||
allEndpoints: CompanyAllEndpoints,
|
||||
@@ -110,10 +104,11 @@ const PagesInfosAndEndpoints = [
|
||||
];
|
||||
|
||||
const AvailableLanguages = ["tr", "en"];
|
||||
type LanguagesSelectable = "tr" | "en";
|
||||
interface LanguagesInterface {
|
||||
tr: string;
|
||||
en: string;
|
||||
}
|
||||
|
||||
export type { LanguagesInterface };
|
||||
export type { LanguagesInterface, LanguagesSelectable };
|
||||
export { PagesInfosAndEndpoints, AvailableLanguages };
|
||||
|
||||
@@ -5,4 +5,53 @@ const MeetingAllEndpoints = [
|
||||
"/build/decision_book/invitations/assign",
|
||||
];
|
||||
|
||||
export { MeetingAllEndpoints };
|
||||
const MeetingPageInfo = {
|
||||
tr: [
|
||||
{
|
||||
title: "Toplantı Listesi",
|
||||
icon: null,
|
||||
description: "Toplantı listeyebilirsiniz",
|
||||
endpoint: "",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Toplantı Ekle",
|
||||
icon: "BadgePlus",
|
||||
description: "Toplantı oluşturma sayfasına hoş geldiniz",
|
||||
endpoint: "/building/living_space/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Toplantı Güncelle",
|
||||
icon: "Pencil",
|
||||
description: "Toplantı güncelleme sayfasına hoş geldiniz",
|
||||
endpoint: "/building/living_space/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
en: [
|
||||
{
|
||||
title: "Meeting List",
|
||||
icon: null,
|
||||
description: "Welcome to the meeting list page",
|
||||
endpoint: "",
|
||||
component: "Table",
|
||||
},
|
||||
{
|
||||
title: "Create Meeting",
|
||||
icon: "BadgePlus",
|
||||
description: "Welcome to the meeting creation page",
|
||||
endpoint: "/building/living_space/create",
|
||||
component: "AddCreate2Table",
|
||||
},
|
||||
{
|
||||
title: "Update Meeting",
|
||||
icon: "Pencil",
|
||||
description: "Welcome to the meeting update page",
|
||||
endpoint: "/building/living_space/update/{build_uu_id}",
|
||||
component: "AddUpdate2Table",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export { MeetingAllEndpoints, MeetingPageInfo };
|
||||
|
||||
@@ -5,7 +5,7 @@ const MeetingSubCategories = [
|
||||
en: "Invitations",
|
||||
},
|
||||
icon: "ClipboardCheck",
|
||||
component: null,
|
||||
url: "/meeting/invitations",
|
||||
selfEndpoints: [
|
||||
"/build/decision_book/invite/list",
|
||||
"/build/decision_book/invite/create",
|
||||
@@ -21,7 +21,7 @@ const MeetingSubCategories = [
|
||||
en: "Assign Task",
|
||||
},
|
||||
icon: "ClipboardList",
|
||||
component: null,
|
||||
url: "/meeting/assign",
|
||||
selfEndpoints: [],
|
||||
allEndpoints: [],
|
||||
subCategories: [],
|
||||
|
||||
Reference in New Issue
Block a user