Compare commits
63 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
35f33fc5e5 | |
|
|
afec24a759 | |
|
|
ab0f6282f0 | |
|
|
eb52be9138 | |
|
|
f0622be664 | |
|
|
e520e64fcd | |
|
|
3775167ef0 | |
|
|
436b87a547 | |
|
|
6c06b9dd19 | |
|
|
1e83ee1e14 | |
|
|
5881b97109 | |
|
|
f59cf236de | |
|
|
2d82441c15 | |
|
|
c36cc8f0aa | |
|
|
ea15b175c7 | |
|
|
fdb31a8953 | |
|
|
4903733f14 | |
|
|
b96116c1d5 | |
|
|
a6c22e392a | |
|
|
56a401f1a2 | |
|
|
0bf1aaec3e | |
|
|
15e68f809d | |
|
|
2267ffcba9 | |
|
|
76cc75f449 | |
|
|
8f9296965e | |
|
|
14409815f3 | |
|
|
59d42ec772 | |
|
|
02f27a492e | |
|
|
88a84e18dd | |
|
|
017a58df65 | |
|
|
a9b46bdbd8 | |
|
|
fa775d4f24 | |
|
|
df68af4760 | |
|
|
c1dd47999b | |
|
|
0dde0f7613 | |
|
|
ed9a857fa3 | |
|
|
435b85392d | |
|
|
3e727dad9b | |
|
|
8df6660199 | |
|
|
3f876b324c | |
|
|
68fd3ea00c | |
|
|
0a3f27d21f | |
|
|
da42a3f8c4 | |
|
|
ff9cae697b | |
|
|
19e729ddea | |
|
|
34736287c3 | |
|
|
a2cc9add14 | |
|
|
885e718c58 | |
|
|
f9195a833b | |
|
|
ef39159af4 | |
|
|
e110a1f955 | |
|
|
e3bb113dce | |
|
|
b5e2eebb17 | |
|
|
37b3e32e41 | |
|
|
3b630d6826 | |
|
|
5f4b657141 | |
|
|
fb13fc879b | |
|
|
27eb1b2152 | |
|
|
c0499d3af0 | |
|
|
74cc52cb55 | |
|
|
6027fa8484 | |
|
|
fbd5eb7e20 | |
|
|
1140b46de8 |
|
|
@ -0,0 +1,34 @@
|
|||
kind: pipeline
|
||||
type: ssh
|
||||
name: humas-fe-build
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: ssh_host
|
||||
user:
|
||||
from_secret: ssh_user
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
steps:
|
||||
- name: prepare repo
|
||||
when:
|
||||
branch:
|
||||
- prod
|
||||
commands:
|
||||
- rm -rf /opt/build/web-humas-fe
|
||||
- mkdir -p /opt/build/web-humas-fe
|
||||
- cd /opt/build
|
||||
- git clone http://38.47.180.165:3000/humas/web-humas-fe.git
|
||||
- cd /opt/build/web-humas-fe
|
||||
- git checkout $DRONE_BRANCH
|
||||
|
||||
- name: build image
|
||||
when:
|
||||
branch:
|
||||
- prod
|
||||
commands:
|
||||
- docker login 38.47.180.165:3000 -u administrator -p HarborDockerImageRep0
|
||||
- cd /opt/build/web-humas-fe
|
||||
- docker build -t 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH .
|
||||
- docker push 38.47.180.165:3000/humas/web-humas-fe:$DRONE_BRANCH
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build-dev:
|
||||
stage: build
|
||||
when: on_success
|
||||
only:
|
||||
- main
|
||||
image: docker:stable
|
||||
services:
|
||||
- name: docker:dind
|
||||
command: ["--insecure-registry=103.82.242.92:8900"]
|
||||
script:
|
||||
- docker logout
|
||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
|
||||
- docker build -t 103.82.242.92:8900/humas/web-humas-fe:dev .
|
||||
- docker push 103.82.242.92:8900/humas/web-humas-fe:dev
|
||||
|
||||
auto-deploy:
|
||||
stage: deploy
|
||||
when: on_success
|
||||
only:
|
||||
- main
|
||||
image: curlimages/curl:latest
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- curl --user cekmedsos:$JENKINS_PWD http://103.82.242.92:8080/job/autodeploy-humas/build?token=autodeployhumas
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
FROM node:21-alpine
|
||||
|
||||
ENV PORT 4000
|
||||
|
||||
# Create app directory
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Installing dependencies
|
||||
COPY package*.json /usr/src/app/
|
||||
|
||||
# RUN npm install --force
|
||||
RUN npm install -g npm@latest
|
||||
RUN npm install
|
||||
|
||||
# Copying source files
|
||||
COPY . /usr/src/app
|
||||
|
||||
# Building app
|
||||
RUN npm run build
|
||||
EXPOSE 4000
|
||||
|
||||
# Running the app
|
||||
CMD "npm" "run" "start"
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormArticle from '@/components/form/form-article'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function CreateArticle() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormArticle />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormDetailArticle from '@/components/form/form-detail-article'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function DetailArticlePage() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormDetailArticle />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormUpdateArticle from '@/components/form/form-edit-article'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function UpdateArticlePage() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormUpdateArticle />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
"use client"
|
||||
import { AddIcon } from "@/components/icons";
|
||||
import ArticleTable from "@/components/table/article-table";
|
||||
import { Button, Card } from "@nextui-org/react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function BasicPage() {
|
||||
return (
|
||||
<div className="h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-2 ml-4">
|
||||
<div className="px-4">
|
||||
<Card className="rounded-md my-5 pl-5 py-2">
|
||||
<Link href="/admin/article/create">
|
||||
<Button size="md" color="primary" className="w-min">
|
||||
<AddIcon />New Article
|
||||
</Button>
|
||||
</Link>
|
||||
</Card>
|
||||
<Card className="rounded-md my-5">
|
||||
<ArticleTable />
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
import DashboardContainer from "@/components/main/dashboard/dashboard-container";
|
||||
|
||||
export default function AdminPage() {
|
||||
return (
|
||||
<div className="flex h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||
<div className="px-4">
|
||||
<DashboardContainer />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMagazineCreate = () => {
|
||||
return (
|
||||
<div><CreateMagazineForm /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMagazineCreate
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMagazineDetail = () => {
|
||||
return (
|
||||
<div><CreateMagazineForm /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMagazineDetail
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMagazine = () => {
|
||||
return (
|
||||
<div><MagazineTable /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMagazine
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
"use client";
|
||||
|
||||
import { AdminLayout } from "@/components/layout/admin-layout";
|
||||
|
||||
export default function AdminPageLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<AdminLayout>
|
||||
{children}
|
||||
</AdminLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||
import CreateMenuDataForm from '@/components/form/master/master-menu/menu-data/menu-data-form'
|
||||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMenuDataCreate = () => {
|
||||
return (
|
||||
<div><CreateMenuDataForm /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMenuDataCreate
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import MenuDataTable from '@/components/table/master/master-menu/menu-data/menu-data-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMenuData = () => {
|
||||
return (
|
||||
<div><MenuDataTable /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMenuData
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||
import CreateMenuDataForm from '@/components/form/master/master-menu/menu-data/menu-data-form'
|
||||
import CreateMasterModuleForm from '@/components/form/master/master-module/master-module-form'
|
||||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMasterModuleCreate = () => {
|
||||
return (
|
||||
<div><CreateMasterModuleForm /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMasterModuleCreate
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import MenuDataTable from '@/components/table/master/master-menu/menu-data/menu-data-table'
|
||||
import MasterModuleTable from '@/components/table/master/master-module/master-module-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMasterModule = () => {
|
||||
return (
|
||||
<div><MasterModuleTable /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMasterModule
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormMasterUserRole from '@/components/form/form-master-user-role'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function CreateMasterUserRolePage() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormMasterUserRole />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormDetailMasterUserRole from '@/components/form/form-detail-master-user-role'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function DetailMasterRolePage() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormDetailMasterUserRole />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
"use client"
|
||||
import { AddIcon } from "@/components/icons";
|
||||
import MasterRoleTable from "@/components/table/master-role-table";
|
||||
import { Button, Card } from "@nextui-org/react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function MasterRolePage() {
|
||||
return (
|
||||
<div className="h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-2 ml-4">
|
||||
<div className="px-4">
|
||||
<Card className="rounded-md my-5 pl-5 py-2">
|
||||
<Link href="/admin/master-role/create">
|
||||
<Button size="md" color="primary" className="w-min">
|
||||
<AddIcon />New Role
|
||||
</Button>
|
||||
</Link>
|
||||
</Card>
|
||||
<Card className="rounded-md my-5">
|
||||
<MasterRoleTable />
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||
import CreateMenuDataForm from '@/components/form/master/master-menu/menu-data/menu-data-form'
|
||||
import CreateMasterModuleForm from '@/components/form/master/master-module/master-module-form'
|
||||
import CreateMasterUserLevelForm from '@/components/form/master/master-user-level/master-user-level-form'
|
||||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMasterUserLevelCreate = () => {
|
||||
return (
|
||||
<div><CreateMasterUserLevelForm /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMasterUserLevelCreate
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||
import MenuDataTable from '@/components/table/master/master-menu/menu-data/menu-data-table'
|
||||
import MasterModuleTable from '@/components/table/master/master-module/master-module-table'
|
||||
import MasterUserLevelTable from '@/components/table/master/master-user-level/master-user-level-table'
|
||||
import React from 'react'
|
||||
|
||||
const AdminMasterUserLevel = () => {
|
||||
return (
|
||||
<div><MasterUserLevelTable /></div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AdminMasterUserLevel
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import FormMasterUser from '@/components/form/form-master-user'
|
||||
import { Card } from '@nextui-org/react'
|
||||
|
||||
export default function CreateMasterUserPage() {
|
||||
return (
|
||||
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||
<FormMasterUser />
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
"use client"
|
||||
import { AddIcon } from "@/components/icons";
|
||||
import MasterUserTable from "@/components/table/master-user-table";
|
||||
import { Button, Card } from "@nextui-org/react";
|
||||
import Link from "next/link";
|
||||
|
||||
export default function MasterUserPage() {
|
||||
return (
|
||||
<div className="h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-2 ml-4">
|
||||
<div className="px-4">
|
||||
<Card className="rounded-md my-5 pl-5 py-2">
|
||||
<Link href="/admin/master-user/create">
|
||||
<Button size="md" color="primary" className="w-min">
|
||||
<AddIcon />New User
|
||||
</Button>
|
||||
</Link>
|
||||
</Card>
|
||||
<Card className="rounded-md my-5">
|
||||
<MasterUserTable />
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
"use client"
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div className=" h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||
<div className="px-4">
|
||||
<h3>Welcome</h3>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
export default function AboutLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
{children}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
import { title } from "@/components/primitives";
|
||||
|
||||
export default function AboutPage() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className={title()}>About</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function AuthLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import Login from '@/components/form/login'
|
||||
import React from 'react'
|
||||
|
||||
export default function AuthPage() {
|
||||
return (
|
||||
<Login />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import React from 'react'
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>page</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
'use client'
|
||||
|
||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function DocsLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
{children}
|
||||
</div>
|
||||
</section>
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function EMajalahLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ListEnewsPolri from '@/components/table/tabel-emajalah-polri'
|
||||
import React from 'react'
|
||||
|
||||
export default function ListEnewsPage() {
|
||||
return (
|
||||
<ListEnewsPolri />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function DetailEMajalahLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import EMagazineDetail from '@/components/detail/E-MagazineDetail'
|
||||
import React from 'react'
|
||||
|
||||
export default function EnewsDetailPage() {
|
||||
return (
|
||||
<EMagazineDetail />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function ApplicationLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import FormApplication from '@/components/form/form-permohonan-informasi'
|
||||
|
||||
export default function ApplicationPage() {
|
||||
return (
|
||||
<FormApplication />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
'use client'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
|
||||
export default function GPRPage() {
|
||||
const [hasMounted, setHasMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setHasMounted(true);
|
||||
}, []);
|
||||
|
||||
// Render
|
||||
if (!hasMounted) return null;
|
||||
return (
|
||||
<div className='bg-red-500 h-96'>
|
||||
<div id="gpr-kominfo-widget-container" className='h-96 text-white bg-tra'></div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function KontakLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import Contact from '@/components/detail/Contact'
|
||||
|
||||
export default function VisiMisiPage() {
|
||||
return (
|
||||
<Contact />
|
||||
)
|
||||
}
|
||||
|
|
@ -1,11 +1,9 @@
|
|||
import "@/styles/globals.css";
|
||||
import { Metadata } from "next";
|
||||
import { siteConfig } from "@/config/site";
|
||||
import { fontSans } from "@/config/fonts";
|
||||
import { Providers } from "./providers";
|
||||
import { Navbar } from "@/components/navbar";
|
||||
import { Link } from "@nextui-org/link";
|
||||
import { siteConfig } from "@/config/site";
|
||||
import "@/styles/globals.css";
|
||||
import clsx from "clsx";
|
||||
import { Metadata } from "next";
|
||||
import { Providers } from "./providers";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
|
|
@ -18,7 +16,7 @@ export const metadata: Metadata = {
|
|||
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
||||
],
|
||||
icons: {
|
||||
icon: "/favicon.ico",
|
||||
icon: "/logohumas.ico",
|
||||
shortcut: "/favicon-16x16.png",
|
||||
apple: "/apple-touch-icon.png",
|
||||
},
|
||||
|
|
@ -30,32 +28,18 @@ export default function RootLayout({
|
|||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<html lang="en" suppressHydrationWarning className="scroll-smooth">
|
||||
<head />
|
||||
<body
|
||||
className={clsx(
|
||||
"min-h-screen bg-background font-sans antialiased",
|
||||
"bg-background font-sans antialiased",
|
||||
fontSans.variable
|
||||
)}
|
||||
>
|
||||
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
||||
<div className="relative flex flex-col h-screen">
|
||||
<Navbar />
|
||||
<main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
|
||||
{children}
|
||||
</main>
|
||||
<footer className="w-full flex items-center justify-center py-3">
|
||||
<Link
|
||||
isExternal
|
||||
className="flex items-center gap-1 text-current"
|
||||
href="https://nextui-docs-v2.vercel.app?utm_source=next-app-template"
|
||||
title="nextui.org homepage"
|
||||
>
|
||||
<span className="text-default-600">Powered by</span>
|
||||
<p className="text-primary">NextUI</p>
|
||||
</Link>
|
||||
</footer>
|
||||
</div>
|
||||
<main className="">
|
||||
{children}
|
||||
</main>
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function PoldaNewsLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ListNews from '@/components/detail/ListNews'
|
||||
import React from 'react'
|
||||
|
||||
export default function PoldaNewsPage() {
|
||||
return (
|
||||
<ListNews />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function AllNewsLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ListNews from '@/components/detail/ListNews'
|
||||
import React from 'react'
|
||||
|
||||
export default function ListNewsPage() {
|
||||
return (
|
||||
<ListNews />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
|
||||
export default function NewsLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<HumasLayout>
|
||||
{children}
|
||||
</HumasLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import DetailPage from '@/components/detail/DetailPage'
|
||||
import React from 'react'
|
||||
|
||||
export default function NewsPage() {
|
||||
return (
|
||||
<DetailPage />
|
||||
)
|
||||
}
|
||||
68
app/page.tsx
68
app/page.tsx
|
|
@ -1,51 +1,27 @@
|
|||
import { Link } from "@nextui-org/link";
|
||||
import { Snippet } from "@nextui-org/snippet";
|
||||
import { Code } from "@nextui-org/code"
|
||||
import { button as buttonStyles } from "@nextui-org/theme";
|
||||
import { siteConfig } from "@/config/site";
|
||||
import { title, subtitle } from "@/components/primitives";
|
||||
import { GithubIcon } from "@/components/icons";
|
||||
'use client'
|
||||
import BannerHumas from "@/components/Landing Page/BannerHumas";
|
||||
import BodyLayout from "@/components/Landing Page/BodyLayout";
|
||||
import HeaderNews from "@/components/Landing Page/HeaderNews";
|
||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export default function Home() {
|
||||
const [hasMounted, setHasMounted] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setHasMounted(true);
|
||||
}, []);
|
||||
|
||||
// Render
|
||||
if (!hasMounted) return null;
|
||||
|
||||
return (
|
||||
<section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||
<div className="inline-block max-w-lg text-center justify-center">
|
||||
<h1 className={title()}>Make </h1>
|
||||
<h1 className={title({ color: "violet" })}>beautiful </h1>
|
||||
<br />
|
||||
<h1 className={title()}>
|
||||
websites regardless of your design experience.
|
||||
</h1>
|
||||
<h2 className={subtitle({ class: "mt-4" })}>
|
||||
Beautiful, fast and modern React UI library.
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-3">
|
||||
<Link
|
||||
isExternal
|
||||
href={siteConfig.links.docs}
|
||||
className={buttonStyles({ color: "primary", radius: "full", variant: "shadow" })}
|
||||
>
|
||||
Documentation
|
||||
</Link>
|
||||
<Link
|
||||
isExternal
|
||||
className={buttonStyles({ variant: "bordered", radius: "full" })}
|
||||
href={siteConfig.links.github}
|
||||
>
|
||||
<GithubIcon size={20} />
|
||||
GitHub
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="mt-8">
|
||||
<Snippet hideSymbol hideCopyButton variant="flat">
|
||||
<span>
|
||||
Get started by editing <Code color="primary">app/page.tsx</Code>
|
||||
</span>
|
||||
</Snippet>
|
||||
</div>
|
||||
</section>
|
||||
<>
|
||||
<HumasLayout>
|
||||
<BannerHumas />
|
||||
<HeaderNews />
|
||||
<BodyLayout />
|
||||
</HumasLayout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
import { PPIDAdminLayout } from "@/components/layout/PPIDAdminLayout";
|
||||
|
||||
export default function LayoutAdmin({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<PPIDAdminLayout >
|
||||
{children}
|
||||
</PPIDAdminLayout>
|
||||
);
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
import React from 'react'
|
||||
|
||||
export default function tes() {
|
||||
return (
|
||||
<div className='bg-white'>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
<div>1</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function EPPIDPoldaLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<PPIDLayout>
|
||||
{children}
|
||||
</PPIDLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import PPIDPolda from '@/components/Portal PPID/PPIDPolda'
|
||||
|
||||
export default function PPIDSakterPage() {
|
||||
return (
|
||||
<PPIDPolda />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function EPPIDSatkerLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<PPIDLayout>
|
||||
{children}
|
||||
</PPIDLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import PPIDSatker from '@/components/Portal PPID/PPIDSatker'
|
||||
|
||||
export default function PPIDSakterPage() {
|
||||
return (
|
||||
<PPIDSatker />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import InformasiBerkala from '@/components/table/informasi-berkala'
|
||||
|
||||
export default function InformasiSMPage() {
|
||||
return (
|
||||
<InformasiBerkala />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import InformasiDikecualikan from '@/components/table/informasi-dikecualikan'
|
||||
|
||||
export default function InfromationExcluded() {
|
||||
return (
|
||||
<InformasiDikecualikan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import InformasiSertaMerta from '@/components/table/informasi-sertamerta'
|
||||
import React from 'react'
|
||||
|
||||
export default function InformasiSMPage() {
|
||||
return (
|
||||
<InformasiSertaMerta />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import InformasiSetiapSaat from '@/components/table/informasi-setiap-saat'
|
||||
import React from 'react'
|
||||
|
||||
export default function InformasiSSPage() {
|
||||
return (
|
||||
<InformasiSetiapSaat />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function InfoPublicLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<PPIDLayout>
|
||||
{children}
|
||||
</PPIDLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import PeneranganSatuan from '@/components/table/penerangan-satuan'
|
||||
import React from 'react'
|
||||
|
||||
export default function UnitIlumintaion() {
|
||||
return (
|
||||
<PeneranganSatuan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import UUPeraturan from '@/components/table/uu-peraturan'
|
||||
import React from 'react'
|
||||
|
||||
export default function LawsRegulation() {
|
||||
return (
|
||||
<UUPeraturan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function LayananInformasiLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<PPIDLayout>
|
||||
{children}
|
||||
</PPIDLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import Login from '@/components/form/login'
|
||||
import React from 'react'
|
||||
|
||||
export default function PemohononanInformasi() {
|
||||
return (
|
||||
<Login />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormObjectionRequest from '@/components/form/form-permohonan-keberatan'
|
||||
import React from 'react'
|
||||
|
||||
export default function PermohonanKeberanatan() {
|
||||
return (
|
||||
<FormObjectionRequest />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import AnnualReport from '@/components/table/laporan-tahunan'
|
||||
import React from 'react'
|
||||
|
||||
export default function ReportTahunan() {
|
||||
return (
|
||||
<AnnualReport />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormApplication from '@/components/form/form-permohonan-informasi'
|
||||
import React from 'react'
|
||||
|
||||
export default function RegistrasiPage() {
|
||||
return (
|
||||
<FormApplication />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
||||
import React from 'react'
|
||||
|
||||
export default function StatisticPage() {
|
||||
return (
|
||||
<StatiticAndRecap />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
'use client'
|
||||
import FooterPPID from '@/components/Portal PPID/FooterPPID';
|
||||
import PPIDbody from '@/components/Portal PPID/PpidMain';
|
||||
import PPIDBanner from '@/components/Portal PPID/ppid-banner';
|
||||
import NavbarPPID from '@/components/navbar/NavbarPPID';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
|
||||
export default function PortalPPID(url: any) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<>
|
||||
<NavbarPPID />
|
||||
<PPIDBanner url={url} />
|
||||
<PPIDbody />
|
||||
<FooterPPID />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import InformasiBerkala from '@/components/table/informasi-berkala'
|
||||
|
||||
export default function InformasiSMPage() {
|
||||
return (
|
||||
<InformasiBerkala />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import InformasiDikecualikan from '@/components/table/informasi-dikecualikan'
|
||||
|
||||
export default function InfromationExcluded() {
|
||||
return (
|
||||
<InformasiDikecualikan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import InformasiSertaMerta from '@/components/table/informasi-sertamerta'
|
||||
import React from 'react'
|
||||
|
||||
export default function InformasiSMPage() {
|
||||
return (
|
||||
<InformasiSertaMerta />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import InformasiSetiapSaat from '@/components/table/informasi-setiap-saat'
|
||||
import React from 'react'
|
||||
|
||||
export default function InformasiSSPage() {
|
||||
return (
|
||||
<InformasiSetiapSaat />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function DinamicSatkerLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
// const pathname = usePathname();
|
||||
// console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import PeneranganSatuan from '@/components/table/penerangan-satuan'
|
||||
import React from 'react'
|
||||
|
||||
export default function UnitIlumintaion() {
|
||||
return (
|
||||
<PeneranganSatuan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import UUPeraturan from '@/components/table/uu-peraturan'
|
||||
import React from 'react'
|
||||
|
||||
export default function LawsRegulation() {
|
||||
return (
|
||||
<UUPeraturan />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function LayananInformasiLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import Login from '@/components/form/login'
|
||||
import React from 'react'
|
||||
|
||||
export default function PemohononanInformasi() {
|
||||
return (
|
||||
<Login />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormObjectionRequest from '@/components/form/form-permohonan-keberatan'
|
||||
import React from 'react'
|
||||
|
||||
export default function PermohonanKeberanatan() {
|
||||
return (
|
||||
<FormObjectionRequest />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import AnnualReport from '@/components/table/laporan-tahunan'
|
||||
import React from 'react'
|
||||
|
||||
export default function ReportTahunan() {
|
||||
return (
|
||||
<AnnualReport />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import FormApplication from '@/components/form/form-permohonan-informasi'
|
||||
import React from 'react'
|
||||
|
||||
export default function RegistrasiPage() {
|
||||
return (
|
||||
<FormApplication />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
||||
import React from 'react'
|
||||
|
||||
export default function StatisticPage() {
|
||||
return (
|
||||
<StatiticAndRecap />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
'use client'
|
||||
import PPIDSatkerMain from '@/components/Portal PPID/PPIDMainSatker';
|
||||
import PPIDBanner from '@/components/Portal PPID/ppid-banner';
|
||||
import FooterSatker from '@/components/navbar/FooterSatker';
|
||||
import NavbarSatker from '@/components/navbar/NavbarSatker';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react'
|
||||
|
||||
export default function PoldaPage() {
|
||||
const pathname = usePathname();
|
||||
const url: string = pathname.split('polda/')[1].replace(/-/g, ' ').toUpperCase();
|
||||
|
||||
|
||||
return (
|
||||
<div className='text-black'>
|
||||
<div className='text-black'>
|
||||
<NavbarSatker />
|
||||
<PPIDBanner url={url} />
|
||||
<PPIDSatkerMain />
|
||||
<FooterSatker />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function DinamicSatkerLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
// const pathname = usePathname();
|
||||
// console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import About from '@/components/detail/About'
|
||||
import React from 'react'
|
||||
|
||||
export default function PPIDProfile() {
|
||||
return (
|
||||
<About />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import HistoryPPID from '@/components/page/HistoryPPID'
|
||||
import React from 'react'
|
||||
|
||||
export default function PPIDProfilePage() {
|
||||
return (
|
||||
<HistoryPPID />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import StrukturOrganisasi from "@/components/detail/StrukturOrganisasi";
|
||||
|
||||
export default function StructurePPID() {
|
||||
return (
|
||||
<StrukturOrganisasi />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
import Task from "@/components/detail/TaskDetail";
|
||||
|
||||
|
||||
|
||||
export default function PPIDTask() {
|
||||
return (
|
||||
<Task />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import VisiMisi from '@/components/detail/VisiMisi'
|
||||
import React from 'react'
|
||||
|
||||
export default function VMPPID() {
|
||||
return (
|
||||
<VisiMisi />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React from 'react';
|
||||
|
||||
export default function RegulasiLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
import PPIDSidebar from '@/components/Portal PPID/PPIDSidebar'
|
||||
import RegulationTable from '@/components/table/tabel-regulasi'
|
||||
|
||||
export default function RegulasiPage() {
|
||||
return (
|
||||
<div className='md:flex'>
|
||||
<div className='w-auto bg-[#E2E2E2] md:w-2/3 lg:w-[75%] px-2 md:px-0 lg:px-5'>
|
||||
<RegulationTable />
|
||||
</div>
|
||||
<div className='w-auto md:w-1/3 lg:w-[25%]'>
|
||||
<PPIDSidebar />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceFlow from '@/components/detail/ServiceFlow'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceFlowPage() {
|
||||
return (
|
||||
<ServiceFlow />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function StandarLayananLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<SatkerLayout>
|
||||
{children}
|
||||
</SatkerLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceAnnouncement from '@/components/detail/ServiceAnnouncement'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceAnnouncePage() {
|
||||
return (
|
||||
<ServiceAnnouncement />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ObjectionMecanism from '@/components/detail/ObjectionMecanism'
|
||||
import React from 'react'
|
||||
|
||||
export default function ObjectionMecanismPage() {
|
||||
return (
|
||||
<ObjectionMecanism />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import RequestDispute from '@/components/detail/RequestDispute'
|
||||
import React from 'react'
|
||||
|
||||
export default function RequestDisputePage() {
|
||||
return (
|
||||
<RequestDispute />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceFee from '@/components/detail/ServiceFee'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceFeePage() {
|
||||
return (
|
||||
<ServiceFee />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import RequestInformation from '@/components/detail/RequestInformation'
|
||||
import React from 'react'
|
||||
|
||||
export default function RequestInformationPage() {
|
||||
return (
|
||||
<RequestInformation />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import ServiceTime from '@/components/detail/ServiceTime'
|
||||
import React from 'react'
|
||||
|
||||
export default function ServiceTimePage() {
|
||||
return (
|
||||
<ServiceTime />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
'use client'
|
||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import React, { Children } from 'react'
|
||||
|
||||
export default function PPIDProfileLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
console.log(pathname)
|
||||
|
||||
return (
|
||||
<PPIDLayout>
|
||||
{children}
|
||||
</PPIDLayout>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import About from '@/components/detail/About'
|
||||
import React from 'react'
|
||||
|
||||
export default function PPIDProfile() {
|
||||
return (
|
||||
<About />
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
import HistoryPPID from '@/components/page/HistoryPPID'
|
||||
import React from 'react'
|
||||
|
||||
export default function PPIDProfilePage() {
|
||||
return (
|
||||
<HistoryPPID />
|
||||
)
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue