feat:update
This commit is contained in:
parent
900b40a8ba
commit
1f273035d4
|
|
@ -49,7 +49,7 @@ const useTableColumns = ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "createdAt",
|
accessorKey: "createdAt",
|
||||||
header: t("upload-date"),
|
header: t("generate-date"),
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const createdAt = row.getValue("createdAt") as
|
const createdAt = row.getValue("createdAt") as
|
||||||
| string
|
| string
|
||||||
|
|
@ -69,6 +69,12 @@ const useTableColumns = ({
|
||||||
cell: ({ row }) => <span className="">{row.getValue("version")}</span>,
|
cell: ({ row }) => <span className="">{row.getValue("version")}</span>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
accessorKey: "status",
|
||||||
|
header: t("status"),
|
||||||
|
cell: ({ row }) => <span className="">{row.getValue("status")}</span>,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: "actions",
|
id: "actions",
|
||||||
accessorKey: "action",
|
accessorKey: "action",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ import { useEffect, useState } from "react";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
|
||||||
export default function ExecutiveDashboard() {
|
export default function ExecutiveDashboard() {
|
||||||
|
|
||||||
const [startDate, setStartDate] = useState<any>(new Date());
|
const [startDate, setStartDate] = useState<any>(new Date());
|
||||||
const [endDate, setEndDate] = useState<any>(new Date());
|
const [endDate, setEndDate] = useState<any>(new Date());
|
||||||
const [hasMounted, setHasMounted] = useState(false);
|
const [hasMounted, setHasMounted] = useState(false);
|
||||||
|
|
@ -153,7 +152,6 @@ export default function ExecutiveDashboard() {
|
||||||
<p className="text-base font-semibold">
|
<p className="text-base font-semibold">
|
||||||
Upload konten hari ini Polda
|
Upload konten hari ini Polda
|
||||||
</p>
|
</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="my-5">
|
<div className="my-5">
|
||||||
{ticket1 == "" ? (
|
{ticket1 == "" ? (
|
||||||
|
|
@ -186,7 +184,6 @@ export default function ExecutiveDashboard() {
|
||||||
<p className="text-base font-semibold">
|
<p className="text-base font-semibold">
|
||||||
Upload konten hari ini Satker
|
Upload konten hari ini Satker
|
||||||
</p>
|
</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="my-5">
|
<div className="my-5">
|
||||||
{ticket2 == "" ? (
|
{ticket2 == "" ? (
|
||||||
|
|
@ -219,7 +216,6 @@ export default function ExecutiveDashboard() {
|
||||||
<p className="text-base font-semibold">
|
<p className="text-base font-semibold">
|
||||||
Upload konten hari ini Polres
|
Upload konten hari ini Polres
|
||||||
</p>
|
</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="my-5">
|
<div className="my-5">
|
||||||
{ticket3 == "" ? (
|
{ticket3 == "" ? (
|
||||||
|
|
@ -245,7 +241,6 @@ export default function ExecutiveDashboard() {
|
||||||
<Card className="rounded-sm p-3 h-[750px]">
|
<Card className="rounded-sm p-3 h-[750px]">
|
||||||
<div className="flex flex-row justify-between">
|
<div className="flex flex-row justify-between">
|
||||||
<p className="text-base font-semibold">Konten Paling Populer</p>
|
<p className="text-base font-semibold">Konten Paling Populer</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="my-5">
|
<div className="my-5">
|
||||||
{ticket4 == "" ? (
|
{ticket4 == "" ? (
|
||||||
|
|
@ -268,14 +263,13 @@ export default function ExecutiveDashboard() {
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full mt-3">
|
<div className="w-full mt-3">
|
||||||
<Card className="rounded-sm p-3 h-[750px]">
|
<Card className="rounded-sm p-3 h-[750px]">
|
||||||
<div className="flex flex-row justify-between">
|
<div className="flex flex-row justify-between mx-3">
|
||||||
<p className="text-base font-semibold">
|
<p className="text-base font-semibold">
|
||||||
Heatmap Konten Dengan Interaksi
|
Heatmap Konten Dengan Interaksi
|
||||||
</p>
|
</p>
|
||||||
<p className="text-base font-semibold">
|
<p className="text-base font-semibold">
|
||||||
Heatmap Kategori Dengan Interaksi
|
Heatmap Kategori Dengan Interaksi
|
||||||
</p>
|
</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
<div className="my-5">
|
<div className="my-5">
|
||||||
{ticket5 == "" ? (
|
{ticket5 == "" ? (
|
||||||
|
|
@ -300,7 +294,6 @@ export default function ExecutiveDashboard() {
|
||||||
<Card className="rounded-sm p-3 h-auto">
|
<Card className="rounded-sm p-3 h-auto">
|
||||||
<div className="flex flex-row justify-between">
|
<div className="flex flex-row justify-between">
|
||||||
<p className="text-base font-semibold">Emergency Issue</p>
|
<p className="text-base font-semibold">Emergency Issue</p>
|
||||||
<LucideBoxSelect />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,6 @@ export default function FormSurveyDetailPage() {
|
||||||
|
|
||||||
setDetail(details);
|
setDetail(details);
|
||||||
|
|
||||||
// Set value dari data detail ke form
|
|
||||||
if (details) {
|
if (details) {
|
||||||
setValue("accessFrequency", details.accessFrequency || "");
|
setValue("accessFrequency", details.accessFrequency || "");
|
||||||
setValue("uiExperienceDesign", details.uiExperienceDesign || "");
|
setValue("uiExperienceDesign", details.uiExperienceDesign || "");
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ import { useState } from "react";
|
||||||
import { createTaskTa } from "@/service/task";
|
import { createTaskTa } from "@/service/task";
|
||||||
import { createSurveyData } from "@/service/survey/survey";
|
import { createSurveyData } from "@/service/survey/survey";
|
||||||
|
|
||||||
// Schema untuk validasi
|
|
||||||
const surveySchema = z.object({
|
const surveySchema = z.object({
|
||||||
accessFrequency: z.string(),
|
accessFrequency: z.string(),
|
||||||
uiExperienceDesign: z.string(),
|
uiExperienceDesign: z.string(),
|
||||||
|
|
|
||||||
|
|
@ -206,17 +206,20 @@ const LoginForm = () => {
|
||||||
Number(profile?.data?.data?.roleId) == 18 ||
|
Number(profile?.data?.data?.roleId) == 18 ||
|
||||||
Number(profile?.data?.data?.roleId) == 19
|
Number(profile?.data?.data?.roleId) == 19
|
||||||
) {
|
) {
|
||||||
if (profile?.data?.data?.roleId === 18 || profile?.data?.data?.roleId === 2) {
|
if (
|
||||||
|
profile?.data?.data?.roleId === 18 ||
|
||||||
|
profile?.data?.data?.roleId === 2
|
||||||
|
) {
|
||||||
window.location.href = "/in/dashboard/executive";
|
window.location.href = "/in/dashboard/executive";
|
||||||
// router.push('/admin/dashboard');
|
// router.push('/admin/dashboard');
|
||||||
Cookies.set("status", "login", {
|
Cookies.set("status", "login", {
|
||||||
expires: 1,
|
expires: 1,
|
||||||
});
|
});
|
||||||
} else if (
|
} else if (
|
||||||
profile?.data?.data?.userLevel?.id == 761 ||
|
profile?.data?.data?.userLevel?.id == 794 ||
|
||||||
profile?.data?.data?.userLevel?.parentLevelId == 761
|
profile?.data?.data?.userLevel?.parentLevelId == 761
|
||||||
) {
|
) {
|
||||||
window.location.href = "/in/dashboard/executive";
|
window.location.href = "/in/dashboard";
|
||||||
Cookies.set("status", "login", {
|
Cookies.set("status", "login", {
|
||||||
expires: 1,
|
expires: 1,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -639,6 +639,8 @@
|
||||||
"title": "Title",
|
"title": "Title",
|
||||||
"category-name": "Category Name",
|
"category-name": "Category Name",
|
||||||
"upload-date": "Upload Date",
|
"upload-date": "Upload Date",
|
||||||
|
"generate-date": "Generate Date",
|
||||||
|
"status": "status",
|
||||||
"creator-group": "Creator Group",
|
"creator-group": "Creator Group",
|
||||||
"source": "source",
|
"source": "source",
|
||||||
"published": "Published",
|
"published": "Published",
|
||||||
|
|
|
||||||
|
|
@ -640,6 +640,8 @@
|
||||||
"title": "Judul",
|
"title": "Judul",
|
||||||
"category-name": "Nama Kategori",
|
"category-name": "Nama Kategori",
|
||||||
"upload-date": "Tanggal Upload",
|
"upload-date": "Tanggal Upload",
|
||||||
|
"generate-date": "Tanggal Generate",
|
||||||
|
"status": "status",
|
||||||
"creator-group": "Pembuat",
|
"creator-group": "Pembuat",
|
||||||
"source": "Sumber",
|
"source": "Sumber",
|
||||||
"published": "Diterbitkan",
|
"published": "Diterbitkan",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue