fix: merge main and fix conflict
This commit is contained in:
commit
4c54e368d6
|
|
@ -22,7 +22,9 @@ import withReactContent from "sweetalert2-react-content";
|
||||||
import Swal from "sweetalert2";
|
import Swal from "sweetalert2";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
const useTableColumns = (activeTab: "ta" | "daily" | "special" |"mabes-koor") => {
|
const useTableColumns = (
|
||||||
|
activeTab: "ta" | "daily" | "special" | "mabes-koor",
|
||||||
|
) => {
|
||||||
const t = useTranslations("Table");
|
const t = useTranslations("Table");
|
||||||
const columns: ColumnDef<any>[] = [
|
const columns: ColumnDef<any>[] = [
|
||||||
{
|
{
|
||||||
|
|
@ -190,7 +192,11 @@ const useTableColumns = (activeTab: "ta" | "daily" | "special" |"mabes-koor") =>
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent className="p-0" align="end">
|
<DropdownMenuContent className="p-0" align="end">
|
||||||
{(roleId == 11 || roleId == 12 || roleId == 19 || roleId ==3) && (
|
{/* {(roleId == 11 || roleId == 12 || roleId == 19) && ( */}
|
||||||
|
{(roleId == 11 ||
|
||||||
|
roleId == 12 ||
|
||||||
|
roleId == 19 ||
|
||||||
|
roleId == 3) && (
|
||||||
<Link href={`/contributor/task-ta/detail/${row.original.id}`}>
|
<Link href={`/contributor/task-ta/detail/${row.original.id}`}>
|
||||||
<DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none">
|
<DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none">
|
||||||
<Eye className="w-4 h-4 me-1.5" />
|
<Eye className="w-4 h-4 me-1.5" />
|
||||||
|
|
@ -198,14 +204,15 @@ const useTableColumns = (activeTab: "ta" | "daily" | "special" |"mabes-koor") =>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
{roleId == 11 || roleId ==3 && (
|
{roleId == 11 ||
|
||||||
<Link href={`/contributor/task-ta/update/${row.original.id}`}>
|
(roleId == 3 && (
|
||||||
<DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none">
|
<Link href={`/contributor/task-ta/update/${row.original.id}`}>
|
||||||
<SquarePen className="w-4 h-4 me-1.5" />
|
<DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none">
|
||||||
Edit
|
<SquarePen className="w-4 h-4 me-1.5" />
|
||||||
</DropdownMenuItem>
|
Edit
|
||||||
</Link>
|
</DropdownMenuItem>
|
||||||
)}
|
</Link>
|
||||||
|
))}
|
||||||
{(roleId == 12 || roleId == 19) && (
|
{(roleId == 12 || roleId == 19) && (
|
||||||
<Link
|
<Link
|
||||||
href={`/contributor/task-ta/upload-task/${row.original.id}`}
|
href={`/contributor/task-ta/upload-task/${row.original.id}`}
|
||||||
|
|
@ -216,15 +223,16 @@ const useTableColumns = (activeTab: "ta" | "daily" | "special" |"mabes-koor") =>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
{roleId == 11 || roleId ==3 && (
|
{roleId == 11 ||
|
||||||
<DropdownMenuItem
|
(roleId == 3 && (
|
||||||
onClick={() => TaskDelete(row.original.id)}
|
<DropdownMenuItem
|
||||||
className="p-2 border-b text-destructive bg-destructive/30 focus:bg-destructive focus:text-destructive-foreground rounded-none"
|
onClick={() => TaskDelete(row.original.id)}
|
||||||
>
|
className="p-2 border-b text-destructive bg-destructive/30 focus:bg-destructive focus:text-destructive-foreground rounded-none"
|
||||||
<Trash2 className="w-4 h-4 me-1.5" />
|
>
|
||||||
Delete
|
<Trash2 className="w-4 h-4 me-1.5" />
|
||||||
</DropdownMenuItem>
|
Delete
|
||||||
)}
|
</DropdownMenuItem>
|
||||||
|
))}
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ export default function TaskTaTable() {
|
||||||
const [page, setPage] = React.useState(1);
|
const [page, setPage] = React.useState(1);
|
||||||
const [totalPage, setTotalPage] = React.useState(1);
|
const [totalPage, setTotalPage] = React.useState(1);
|
||||||
|
|
||||||
|
// const KOOR_KURATOR_USER_ID = "464";
|
||||||
const KOOR_KURATOR_USER_IDS = ["464", "8258"];
|
const KOOR_KURATOR_USER_IDS = ["464", "8258"];
|
||||||
|
|
||||||
// ✅ columns based on tab
|
// ✅ columns based on tab
|
||||||
|
|
@ -135,6 +136,7 @@ export default function TaskTaTable() {
|
||||||
activeTab,
|
activeTab,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// const isKoorKurator = String(userId) === KOOR_KURATOR_USER_ID;
|
||||||
const isKoorKurator = KOOR_KURATOR_USER_IDS.includes(String(userId));
|
const isKoorKurator = KOOR_KURATOR_USER_IDS.includes(String(userId));
|
||||||
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,11 @@ import { Button } from "@/components/ui/button";
|
||||||
import { UploadIcon } from "lucide-react";
|
import { UploadIcon } from "lucide-react";
|
||||||
import SiteBreadcrumb from "@/components/site-breadcrumb";
|
import SiteBreadcrumb from "@/components/site-breadcrumb";
|
||||||
import { Link } from "@/components/navigation";
|
import { Link } from "@/components/navigation";
|
||||||
import { checkAuthorization, checkLoginSession } from "@/lib/utils";
|
import {
|
||||||
|
checkAuthorization,
|
||||||
|
checkLoginSession,
|
||||||
|
getCookiesDecrypt,
|
||||||
|
} from "@/lib/utils";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
|
|
@ -19,6 +23,7 @@ const TaskPage = () => {
|
||||||
|
|
||||||
initState();
|
initState();
|
||||||
}, []);
|
}, []);
|
||||||
|
const levelNumber = getCookiesDecrypt("ulne");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -29,16 +34,28 @@ const TaskPage = () => {
|
||||||
<CardTitle>
|
<CardTitle>
|
||||||
<div className="flex flex-col sm:flex-row lg:flex-row lg:items-center">
|
<div className="flex flex-col sm:flex-row lg:flex-row lg:items-center">
|
||||||
<div className="flex-1 text-xl font-medium text-default-900">
|
<div className="flex-1 text-xl font-medium text-default-900">
|
||||||
{t("tabel", { defaultValue: "Tabel" })} {t("task", { defaultValue: "Task" })}
|
{t("tabel", { defaultValue: "Tabel" })}{" "}
|
||||||
|
{t("task", { defaultValue: "Task" })}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-none">
|
{Number(levelNumber) !== 3 && (
|
||||||
|
<div className="flex-none">
|
||||||
|
<Link href="/contributor/task/create">
|
||||||
|
<Button color="primary" className="text-white">
|
||||||
|
<UploadIcon size={18} className="mr-2" />
|
||||||
|
{t("create-task", { defaultValue: "Create Task" })}
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* <div className="flex-none">
|
||||||
<Link href={"/contributor/task/create"}>
|
<Link href={"/contributor/task/create"}>
|
||||||
<Button color="primary" className="text-white">
|
<Button color="primary" className="text-white">
|
||||||
<UploadIcon size={18} className="mr-2" />
|
<UploadIcon size={18} className="mr-2" />
|
||||||
{t("create-task", { defaultValue: "Create Task" })}
|
{t("create-task", { defaultValue: "Create Task" })}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import ReportTable from "../contributor/report/components/report-table";
|
||||||
const DashboardPage = () => {
|
const DashboardPage = () => {
|
||||||
const t = useTranslations("AnalyticsDashboard");
|
const t = useTranslations("AnalyticsDashboard");
|
||||||
const roleId = getCookiesDecrypt("urie");
|
const roleId = getCookiesDecrypt("urie");
|
||||||
|
const levelNumber = Number(getCookiesDecrypt("ulne"));
|
||||||
|
|
||||||
return Number(roleId) == 2 || Number(roleId) == 11 || Number(roleId) == 12 ? (
|
return Number(roleId) == 2 || Number(roleId) == 11 || Number(roleId) == 12 ? (
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -54,18 +55,23 @@ const DashboardPage = () => {
|
||||||
>
|
>
|
||||||
{t("schedule", { defaultValue: "Schedule" })}
|
{t("schedule", { defaultValue: "Schedule" })}
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
<TabsTrigger
|
{levelNumber !== 3 && (
|
||||||
value="indeks"
|
<>
|
||||||
className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6"
|
<TabsTrigger
|
||||||
>
|
value="indeks"
|
||||||
{t("indeks", { defaultValue: "Indeks" })}
|
className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6"
|
||||||
</TabsTrigger>
|
>
|
||||||
<TabsTrigger
|
{t("indeks", { defaultValue: "Indeks" })}
|
||||||
value="report"
|
</TabsTrigger>
|
||||||
className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6"
|
|
||||||
>
|
<TabsTrigger
|
||||||
{t("report", { defaultValue: "Report" })}
|
value="report"
|
||||||
</TabsTrigger>
|
className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6"
|
||||||
|
>
|
||||||
|
{t("report", { defaultValue: "Report" })}
|
||||||
|
</TabsTrigger>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</TabsList>
|
</TabsList>
|
||||||
</Card>
|
</Card>
|
||||||
<TabsContent value="routine-task">
|
<TabsContent value="routine-task">
|
||||||
|
|
@ -75,18 +81,24 @@ const DashboardPage = () => {
|
||||||
<CardContent className="p-4">
|
<CardContent className="p-4">
|
||||||
<div className="grid md:grid-cols-3 gap-4">
|
<div className="grid md:grid-cols-3 gap-4">
|
||||||
<StatisticsBlock
|
<StatisticsBlock
|
||||||
title={t("Hasil_unggah_disetujui_hari_ini", { defaultValue: "Hasil Unggah Disetujui Hari Ini" })}
|
title={t("Hasil_unggah_disetujui_hari_ini", {
|
||||||
|
defaultValue: "Hasil Unggah Disetujui Hari Ini",
|
||||||
|
})}
|
||||||
total="3,564"
|
total="3,564"
|
||||||
className="bg-info/10 border-none shadow-none"
|
className="bg-info/10 border-none shadow-none"
|
||||||
/>
|
/>
|
||||||
<StatisticsBlock
|
<StatisticsBlock
|
||||||
title={t("Hasil_unggah_direvisi_hari_ini", { defaultValue: "Hasil Unggah Direvisi Hari Ini" })}
|
title={t("Hasil_unggah_direvisi_hari_ini", {
|
||||||
|
defaultValue: "Hasil Unggah Direvisi Hari Ini",
|
||||||
|
})}
|
||||||
total="564"
|
total="564"
|
||||||
className="bg-warning/10 border-none shadow-none"
|
className="bg-warning/10 border-none shadow-none"
|
||||||
chartColor="#FB8F65"
|
chartColor="#FB8F65"
|
||||||
/>
|
/>
|
||||||
<StatisticsBlock
|
<StatisticsBlock
|
||||||
title={t("Hasil_unggah_ditolak_hari_ini", { defaultValue: "Hasil Unggah Ditolak Hari Ini" })}
|
title={t("Hasil_unggah_ditolak_hari_ini", {
|
||||||
|
defaultValue: "Hasil Unggah Ditolak Hari Ini",
|
||||||
|
})}
|
||||||
total="+5.0%"
|
total="+5.0%"
|
||||||
className="bg-primary/10 border-none shadow-none"
|
className="bg-primary/10 border-none shadow-none"
|
||||||
chartColor="#2563eb"
|
chartColor="#2563eb"
|
||||||
|
|
@ -101,7 +113,9 @@ const DashboardPage = () => {
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="flex flex-row items-center">
|
<CardHeader className="flex flex-row items-center">
|
||||||
<CardTitle className="flex-1 text-lg">
|
<CardTitle className="flex-1 text-lg">
|
||||||
{t("Total-Content-Production", { defaultValue: "Total Content Production" })}
|
{t("Total-Content-Production", {
|
||||||
|
defaultValue: "Total Content Production",
|
||||||
|
})}
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
<DashboardDropdown />
|
<DashboardDropdown />
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|
@ -113,7 +127,9 @@ const DashboardPage = () => {
|
||||||
<div className="lg:col-span-8 col-span-12">
|
<div className="lg:col-span-8 col-span-12">
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader className="flex flex-row items-center">
|
<CardHeader className="flex flex-row items-center">
|
||||||
<CardTitle className="flex-1">{t("tabel", { defaultValue: "Tabel" })}</CardTitle>
|
<CardTitle className="flex-1">
|
||||||
|
{t("tabel", { defaultValue: "Tabel" })}
|
||||||
|
</CardTitle>
|
||||||
{/* <DashboardDropdown /> */}
|
{/* <DashboardDropdown /> */}
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="p-0">
|
<CardContent className="p-0">
|
||||||
|
|
@ -132,14 +148,26 @@ const DashboardPage = () => {
|
||||||
<div className="flex-1 text-xl font-medium text-default-900">
|
<div className="flex-1 text-xl font-medium text-default-900">
|
||||||
Tabel Penugasan
|
Tabel Penugasan
|
||||||
</div>
|
</div>
|
||||||
<div>
|
{Number(levelNumber) !== 3 && (
|
||||||
|
<div className="flex-none">
|
||||||
|
<Link href="/contributor/task/create">
|
||||||
|
<Button color="primary" className="text-white">
|
||||||
|
<UploadIcon size={18} className="mr-2" />
|
||||||
|
{t("create-task", {
|
||||||
|
defaultValue: "Create Task",
|
||||||
|
})}
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{/* <div>
|
||||||
<Link href={"/contributor/task/create"}>
|
<Link href={"/contributor/task/create"}>
|
||||||
<Button color="primary" className="text-white">
|
<Button color="primary" className="text-white">
|
||||||
<UploadIcon />
|
<UploadIcon />
|
||||||
Buat Penugasan
|
Buat Penugasan
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
<CardContent className="p-0 mt-3">
|
<CardContent className="p-0 mt-3">
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ import { useTranslations } from "next-intl";
|
||||||
const ContestPage = () => {
|
const ContestPage = () => {
|
||||||
const [userLevelId, setUserLevelId] = useState<any>(null);
|
const [userLevelId, setUserLevelId] = useState<any>(null);
|
||||||
const t = useTranslations("Contest");
|
const t = useTranslations("Contest");
|
||||||
|
const levelNumber = Number(getCookiesDecrypt("ulne"));
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setUserLevelId(Number(getCookiesDecrypt("ulie")));
|
setUserLevelId(Number(getCookiesDecrypt("ulie")));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
@ -25,18 +27,36 @@ const ContestPage = () => {
|
||||||
<CardTitle>
|
<CardTitle>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<div className="flex-1 text-xl font-medium text-default-900">
|
<div className="flex-1 text-xl font-medium text-default-900">
|
||||||
{t("table", { defaultValue: "Table" })} {t("contest", { defaultValue: "Contest" })}
|
{t("table", { defaultValue: "Table" })}{" "}
|
||||||
|
{t("contest", { defaultValue: "Contest" })}
|
||||||
</div>
|
</div>
|
||||||
{userLevelId !== 776 && userLevelId !== null && (
|
{userLevelId !== 776 &&
|
||||||
|
userLevelId !== null &&
|
||||||
|
levelNumber !== 3 && (
|
||||||
|
<div className="flex-none">
|
||||||
|
<Link href={"/shared/contest/create"}>
|
||||||
|
<Button color="primary" className="text-white">
|
||||||
|
<UploadIcon size={18} className="mr-2" />
|
||||||
|
{t("create-contest", {
|
||||||
|
defaultValue: "Create Contest",
|
||||||
|
})}
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* {userLevelId !== 776 && userLevelId !== null && (
|
||||||
<div className="flex-none">
|
<div className="flex-none">
|
||||||
<Link href={"/shared/contest/create"}>
|
<Link href={"/shared/contest/create"}>
|
||||||
<Button color="primary" className="text-white">
|
<Button color="primary" className="text-white">
|
||||||
<UploadIcon size={18} className="mr-2" />
|
<UploadIcon size={18} className="mr-2" />
|
||||||
{t("create-contest", { defaultValue: "Create Contest" })}
|
{t("create-contest", {
|
||||||
|
defaultValue: "Create Contest",
|
||||||
|
})}
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|
|
||||||
210
lib/menus.ts
210
lib/menus.ts
|
|
@ -168,7 +168,7 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
icon: "heroicons:shopping-cart",
|
icon: "heroicons:shopping-cart",
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: "/contributor/task-ta",
|
href: "/contributor/task-ta",
|
||||||
label: "penugasan TA",
|
label: "penugasan TA",
|
||||||
active: pathname.includes("/contributor/task-ta"),
|
active: pathname.includes("/contributor/task-ta"),
|
||||||
|
|
@ -2429,7 +2429,10 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
} else if (Number(roleId) == 4 && Number(levelNumber) == 3) {
|
} else if (
|
||||||
|
Number(roleId) == 4 ||
|
||||||
|
(Number(roleId) == 3 && Number(levelNumber) == 3)
|
||||||
|
) {
|
||||||
menusSelected = [
|
menusSelected = [
|
||||||
{
|
{
|
||||||
groupLabel: t("apps"),
|
groupLabel: t("apps"),
|
||||||
|
|
@ -2516,35 +2519,35 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
groupLabel: "",
|
// groupLabel: "",
|
||||||
id: "planning",
|
// id: "planning",
|
||||||
menus: [
|
// menus: [
|
||||||
{
|
// {
|
||||||
id: "planning",
|
// id: "planning",
|
||||||
href: "/contributor/planning",
|
// href: "/contributor/planning",
|
||||||
label: t("planning"),
|
// label: t("planning"),
|
||||||
active: pathname.includes("/planning"),
|
// active: pathname.includes("/planning"),
|
||||||
icon: "pajamas:planning",
|
// icon: "pajamas:planning",
|
||||||
submenus: [
|
// submenus: [
|
||||||
{
|
// {
|
||||||
href: "/contributor/planning/mediahub",
|
// href: "/contributor/planning/mediahub",
|
||||||
label: "mediaHub",
|
// label: "mediaHub",
|
||||||
active: pathname.includes("/planning/mediahub"),
|
// active: pathname.includes("/planning/mediahub"),
|
||||||
icon: "heroicons:arrow-trending-up",
|
// icon: "heroicons:arrow-trending-up",
|
||||||
children: [],
|
// children: [],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
href: "/contributor/planning/medsos-mediahub",
|
// href: "/contributor/planning/medsos-mediahub",
|
||||||
label: "medsos mediahub",
|
// label: "medsos mediahub",
|
||||||
active: pathname.includes("/planning/medsos-mediahub"),
|
// active: pathname.includes("/planning/medsos-mediahub"),
|
||||||
icon: "heroicons:shopping-cart",
|
// icon: "heroicons:shopping-cart",
|
||||||
children: [],
|
// children: [],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
groupLabel: "",
|
groupLabel: "",
|
||||||
id: "task",
|
id: "task",
|
||||||
|
|
@ -2571,44 +2574,51 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
icon: "uil:schedule",
|
icon: "uil:schedule",
|
||||||
submenus: [
|
submenus: [
|
||||||
{
|
{
|
||||||
href: "/contributor/schedule/press-conference",
|
href: "/contributor/schedule/live-report",
|
||||||
label: t("press-conference"),
|
label: t("live-report"),
|
||||||
active: pathname.includes("/schedule/press-conference"),
|
active: pathname.includes("/schedule/live-report"),
|
||||||
icon: "heroicons:arrow-trending-up",
|
icon: "heroicons:arrow-trending-up",
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
href: "/contributor/schedule/event",
|
// href: "/contributor/schedule/press-conference",
|
||||||
label: t("event"),
|
// label: t("press-conference"),
|
||||||
active: pathname.includes("/schedule/event"),
|
// active: pathname.includes("/schedule/press-conference"),
|
||||||
icon: "heroicons:shopping-cart",
|
// icon: "heroicons:arrow-trending-up",
|
||||||
children: [],
|
// children: [],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
href: "/contributor/schedule/press-release",
|
// href: "/contributor/schedule/event",
|
||||||
label: t("press-release"),
|
// label: t("event"),
|
||||||
active: pathname.includes("/schedule/press-release"),
|
// active: pathname.includes("/schedule/event"),
|
||||||
icon: "heroicons:shopping-cart",
|
// icon: "heroicons:shopping-cart",
|
||||||
children: [],
|
// children: [],
|
||||||
},
|
// },
|
||||||
|
// {
|
||||||
|
// href: "/contributor/schedule/press-release",
|
||||||
|
// label: t("press-release"),
|
||||||
|
// active: pathname.includes("/schedule/press-release"),
|
||||||
|
// icon: "heroicons:shopping-cart",
|
||||||
|
// children: [],
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
groupLabel: "",
|
// groupLabel: "",
|
||||||
id: "blog",
|
// id: "blog",
|
||||||
menus: [
|
// menus: [
|
||||||
{
|
// {
|
||||||
id: "blog",
|
// id: "blog",
|
||||||
href: "/contributor/blog",
|
// href: "/contributor/blog",
|
||||||
label: t("blog"),
|
// label: t("blog"),
|
||||||
active: pathname.includes("/blog"),
|
// active: pathname.includes("/blog"),
|
||||||
icon: "fluent:clipboard-text-32-regular",
|
// icon: "fluent:clipboard-text-32-regular",
|
||||||
submenus: [],
|
// submenus: [],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
groupLabel: "",
|
groupLabel: "",
|
||||||
id: "curatedcontent",
|
id: "curatedcontent",
|
||||||
|
|
@ -5222,7 +5232,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-area",
|
href: "/charts/appex-charts/charts-appex-area",
|
||||||
label: t("areaCharts"),
|
label: t("areaCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-area"
|
"/charts/appex-charts/charts-appex-area",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5230,7 +5240,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-bar",
|
href: "/charts/appex-charts/charts-appex-bar",
|
||||||
label: t("barCharts"),
|
label: t("barCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-bar"
|
"/charts/appex-charts/charts-appex-bar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5238,7 +5248,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-boxplot",
|
href: "/charts/appex-charts/charts-appex-boxplot",
|
||||||
label: t("boxplotCharts"),
|
label: t("boxplotCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-boxplot"
|
"/charts/appex-charts/charts-appex-boxplot",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5246,7 +5256,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-bubble",
|
href: "/charts/appex-charts/charts-appex-bubble",
|
||||||
label: t("bubbleCharts"),
|
label: t("bubbleCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-bubble"
|
"/charts/appex-charts/charts-appex-bubble",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5254,7 +5264,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-candlestick",
|
href: "/charts/appex-charts/charts-appex-candlestick",
|
||||||
label: t("candlestickCharts"),
|
label: t("candlestickCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-candlestick"
|
"/charts/appex-charts/charts-appex-candlestick",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5262,7 +5272,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-column",
|
href: "/charts/appex-charts/charts-appex-column",
|
||||||
label: t("columnCharts"),
|
label: t("columnCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-column"
|
"/charts/appex-charts/charts-appex-column",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5270,7 +5280,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-combo",
|
href: "/charts/appex-charts/charts-appex-combo",
|
||||||
label: t("comboCharts"),
|
label: t("comboCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-combo"
|
"/charts/appex-charts/charts-appex-combo",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5279,7 +5289,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-funnel",
|
href: "/charts/appex-charts/charts-appex-funnel",
|
||||||
label: t("funnelCharts"),
|
label: t("funnelCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-funnel"
|
"/charts/appex-charts/charts-appex-funnel",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5287,7 +5297,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-heatmap",
|
href: "/charts/appex-charts/charts-appex-heatmap",
|
||||||
label: t("heatmapCharts"),
|
label: t("heatmapCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-heatmap"
|
"/charts/appex-charts/charts-appex-heatmap",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5295,7 +5305,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-line",
|
href: "/charts/appex-charts/charts-appex-line",
|
||||||
label: t("lineCharts"),
|
label: t("lineCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-line"
|
"/charts/appex-charts/charts-appex-line",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5303,7 +5313,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-pie",
|
href: "/charts/appex-charts/charts-appex-pie",
|
||||||
label: t("pieCharts"),
|
label: t("pieCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-pie"
|
"/charts/appex-charts/charts-appex-pie",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5311,7 +5321,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-polararea",
|
href: "/charts/appex-charts/charts-appex-polararea",
|
||||||
label: t("ploarareaCharts"),
|
label: t("ploarareaCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-polararea"
|
"/charts/appex-charts/charts-appex-polararea",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5319,7 +5329,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-radar",
|
href: "/charts/appex-charts/charts-appex-radar",
|
||||||
label: t("radarCharts"),
|
label: t("radarCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-radar"
|
"/charts/appex-charts/charts-appex-radar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5327,7 +5337,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-radialbars",
|
href: "/charts/appex-charts/charts-appex-radialbars",
|
||||||
label: t("radialbarCharts"),
|
label: t("radialbarCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-radialbars"
|
"/charts/appex-charts/charts-appex-radialbars",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5335,7 +5345,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-range",
|
href: "/charts/appex-charts/charts-appex-range",
|
||||||
label: t("rangeCharts"),
|
label: t("rangeCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-range"
|
"/charts/appex-charts/charts-appex-range",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5343,7 +5353,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-scatter",
|
href: "/charts/appex-charts/charts-appex-scatter",
|
||||||
label: t("scatterCharts"),
|
label: t("scatterCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-scatter"
|
"/charts/appex-charts/charts-appex-scatter",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5351,7 +5361,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-timeline",
|
href: "/charts/appex-charts/charts-appex-timeline",
|
||||||
label: t("timelineCharts"),
|
label: t("timelineCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-timeline"
|
"/charts/appex-charts/charts-appex-timeline",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5359,7 +5369,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/appex-charts/charts-appex-treemap",
|
href: "/charts/appex-charts/charts-appex-treemap",
|
||||||
label: t("treemapCharts"),
|
label: t("treemapCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/appex-charts/charts-appex-treemap"
|
"/charts/appex-charts/charts-appex-treemap",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5375,7 +5385,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-area",
|
href: "/charts/rechart/charts-rechart-area",
|
||||||
label: t("areaCharts"),
|
label: t("areaCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-area"
|
"/charts/rechart/charts-rechart-area",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5383,7 +5393,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-bar",
|
href: "/charts/rechart/charts-rechart-bar",
|
||||||
label: t("barCharts"),
|
label: t("barCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-bar"
|
"/charts/rechart/charts-rechart-bar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5391,7 +5401,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-composed",
|
href: "/charts/rechart/charts-rechart-composed",
|
||||||
label: t("composedCharts"),
|
label: t("composedCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-composed"
|
"/charts/rechart/charts-rechart-composed",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5399,7 +5409,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-line",
|
href: "/charts/rechart/charts-rechart-line",
|
||||||
label: t("lineCharts"),
|
label: t("lineCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-line"
|
"/charts/rechart/charts-rechart-line",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5407,7 +5417,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-pie",
|
href: "/charts/rechart/charts-rechart-pie",
|
||||||
label: t("pieCharts"),
|
label: t("pieCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-pie"
|
"/charts/rechart/charts-rechart-pie",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5415,7 +5425,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-radar",
|
href: "/charts/rechart/charts-rechart-radar",
|
||||||
label: t("radarCharts"),
|
label: t("radarCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-radar"
|
"/charts/rechart/charts-rechart-radar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5423,7 +5433,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-radialbar",
|
href: "/charts/rechart/charts-rechart-radialbar",
|
||||||
label: t("radialbarCharts"),
|
label: t("radialbarCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-radialbar"
|
"/charts/rechart/charts-rechart-radialbar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5431,7 +5441,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-scatter",
|
href: "/charts/rechart/charts-rechart-scatter",
|
||||||
label: t("scatterCharts"),
|
label: t("scatterCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-scatter"
|
"/charts/rechart/charts-rechart-scatter",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5439,7 +5449,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/rechart/charts-rechart-treemap",
|
href: "/charts/rechart/charts-rechart-treemap",
|
||||||
label: t("treemapCharts"),
|
label: t("treemapCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/rechart/charts-rechart-treemap"
|
"/charts/rechart/charts-rechart-treemap",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5455,7 +5465,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-area",
|
href: "/charts/chart-js/charts-chartjs-area",
|
||||||
label: t("areaCharts"),
|
label: t("areaCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-area"
|
"/charts/chart-js/charts-chartjs-area",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5463,7 +5473,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-bar",
|
href: "/charts/chart-js/charts-chartjs-bar",
|
||||||
label: t("barCharts"),
|
label: t("barCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-bar"
|
"/charts/chart-js/charts-chartjs-bar",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5471,7 +5481,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-line",
|
href: "/charts/chart-js/charts-chartjs-line",
|
||||||
label: t("lineCharts"),
|
label: t("lineCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-line"
|
"/charts/chart-js/charts-chartjs-line",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5479,7 +5489,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-animations",
|
href: "/charts/chart-js/charts-chartjs-animations",
|
||||||
label: t("animationCharts"),
|
label: t("animationCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-animations"
|
"/charts/chart-js/charts-chartjs-animations",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5487,7 +5497,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-legend",
|
href: "/charts/chart-js/charts-chartjs-legend",
|
||||||
label: t("legendCharts"),
|
label: t("legendCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-legend"
|
"/charts/chart-js/charts-chartjs-legend",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5495,7 +5505,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-scaleoptions",
|
href: "/charts/chart-js/charts-chartjs-scaleoptions",
|
||||||
label: t("scaleOptionCharts"),
|
label: t("scaleOptionCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-scaleoptions"
|
"/charts/chart-js/charts-chartjs-scaleoptions",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5503,7 +5513,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-scales",
|
href: "/charts/chart-js/charts-chartjs-scales",
|
||||||
label: t("scaleCharts"),
|
label: t("scaleCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-scales"
|
"/charts/chart-js/charts-chartjs-scales",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5511,7 +5521,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-scriptable",
|
href: "/charts/chart-js/charts-chartjs-scriptable",
|
||||||
label: t("scriptableCharts"),
|
label: t("scriptableCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-scriptable"
|
"/charts/chart-js/charts-chartjs-scriptable",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5519,7 +5529,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-title",
|
href: "/charts/chart-js/charts-chartjs-title",
|
||||||
label: t("titleCharts"),
|
label: t("titleCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-title"
|
"/charts/chart-js/charts-chartjs-title",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5527,7 +5537,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-tooltip",
|
href: "/charts/chart-js/charts-chartjs-tooltip",
|
||||||
label: t("tooltipChart"),
|
label: t("tooltipChart"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-tooltip"
|
"/charts/chart-js/charts-chartjs-tooltip",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
@ -5535,7 +5545,7 @@ export function getHorizontalMenuList(pathname: string, t: any): Group[] {
|
||||||
href: "/charts/chart-js/charts-chartjs-other",
|
href: "/charts/chart-js/charts-chartjs-other",
|
||||||
label: t("otherCharts"),
|
label: t("otherCharts"),
|
||||||
active: pathname.includes(
|
active: pathname.includes(
|
||||||
"/charts/chart-js/charts-chartjs-other"
|
"/charts/chart-js/charts-chartjs-other",
|
||||||
),
|
),
|
||||||
children: [],
|
children: [],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue