Merge branch 'main' of https://gitlab.com/hanifsalafi/mediahub_redesign into prod
This commit is contained in:
commit
ea27be1c30
|
|
@ -67,10 +67,10 @@ const columns: ColumnDef<any>[] = [
|
||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
accessorKey: "resultTotal",
|
accessorKey: "amplification",
|
||||||
header: () => <div className="text-center w-full">Jumlah Amplifikasi</div>,
|
header: () => <div className="text-center w-full">Jumlah Amplifikasi</div>,
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const totalRaw = row.getValue("resultTotal") as number | string | null;
|
const totalRaw = row.getValue("amplification") as number | string | null;
|
||||||
|
|
||||||
const total =
|
const total =
|
||||||
totalRaw === null || totalRaw === undefined || totalRaw === ""
|
totalRaw === null || totalRaw === undefined || totalRaw === ""
|
||||||
|
|
@ -110,11 +110,7 @@ const columns: ColumnDef<any>[] = [
|
||||||
header: () => <div className="text-center">Status</div>,
|
header: () => <div className="text-center">Status</div>,
|
||||||
cell: ({ row }) => {
|
cell: ({ row }) => {
|
||||||
const raw = Boolean(row.getValue("isProcessing"));
|
const raw = Boolean(row.getValue("isProcessing"));
|
||||||
|
|
||||||
// KONDISI STATUS
|
|
||||||
const statusText = raw ? "Sedang Diproses" : "Sudah Selesai";
|
const statusText = raw ? "Sedang Diproses" : "Sudah Selesai";
|
||||||
|
|
||||||
// WARNA STATUS
|
|
||||||
const colorClass = raw
|
const colorClass = raw
|
||||||
? "bg-yellow-100 text-yellow-700 border border-yellow-300"
|
? "bg-yellow-100 text-yellow-700 border border-yellow-300"
|
||||||
: "bg-green-100 text-green-700 border border-green-300";
|
: "bg-green-100 text-green-700 border border-green-300";
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,35 @@ const nextConfig = {
|
||||||
// locales: ["en", "in"],
|
// locales: ["en", "in"],
|
||||||
// defaultLocale: "in",
|
// defaultLocale: "in",
|
||||||
// },
|
// },
|
||||||
|
// images: {
|
||||||
|
// remotePatterns: [
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "api.lorem.space",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "lh3.googleusercontent.com",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "a0.muscache.com",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "avatars.githubusercontent.com",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "i.pravatar.cc",
|
||||||
|
// },
|
||||||
|
// { protocol: "https", hostname: "netidhub.com" },
|
||||||
|
// {
|
||||||
|
// protocol: "https",
|
||||||
|
// hostname: "netidhub.com",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
|
|
@ -62,6 +91,11 @@ const nextConfig = {
|
||||||
hostname: "netidhub.com",
|
hostname: "netidhub.com",
|
||||||
pathname: "/**",
|
pathname: "/**",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
protocol: "https",
|
||||||
|
hostname: "new.netidhub.com",
|
||||||
|
pathname: "/**",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// eslint: {
|
// eslint: {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: "https://mediahub.polri.go.id/api/v2",
|
baseURL: "https://new.netidhub.com/api",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
|
|
@ -9,4 +9,3 @@ const api = axios.create({
|
||||||
|
|
||||||
export default api;
|
export default api;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue