push dev-anang
This commit is contained in:
commit
6475cf4cb8
|
|
@ -7,20 +7,23 @@ build-dev:
|
||||||
when: on_success
|
when: on_success
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
- dev-restructure
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- name: docker:dind
|
||||||
|
command: ["--insecure-registry=103.82.242.92:8900"]
|
||||||
script:
|
script:
|
||||||
- docker logout
|
- docker logout
|
||||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN registry.gitlab.com
|
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 103.82.242.92:8900
|
||||||
- docker build -t registry.gitlab.com/hanifsalafi/web-humas-polri:dev .
|
- docker build -t 103.82.242.92:8900/humas/web-humas-fe:dev .
|
||||||
- docker push registry.gitlab.com/hanifsalafi/web-humas-polri:dev
|
- docker push 103.82.242.92:8900/humas/web-humas-fe:dev
|
||||||
|
|
||||||
auto-deploy:
|
auto-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
when: on_success
|
when: on_success
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
- dev-restructure
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
|
||||||
|
|
@ -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,14 @@
|
||||||
|
"use client";
|
||||||
|
import EditGeneratedArticle from "@/components/form/article/edit-generated-article";
|
||||||
|
import { Card } from "@nextui-org/react";
|
||||||
|
import { useParams } from "next/navigation";
|
||||||
|
|
||||||
|
export default function EditGeneratedArticlePage() {
|
||||||
|
const params = useParams();
|
||||||
|
const id = String(params.id);
|
||||||
|
return (
|
||||||
|
<Card className="rounded-md border bg-transparent">
|
||||||
|
<EditGeneratedArticle id={id} />
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import GenerateArticleForm from "@/components/form/article/generate-article-form";
|
||||||
|
import { Card } from "@nextui-org/react";
|
||||||
|
|
||||||
|
export default function GenerateArticle() {
|
||||||
|
return (
|
||||||
|
<Card className="rounded-md border bg-transparent">
|
||||||
|
<GenerateArticleForm />
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -1,24 +1,31 @@
|
||||||
"use client"
|
"use client";
|
||||||
import { AddIcon } from "@/components/icons";
|
import { AddIcon } from "@/components/icons";
|
||||||
import ArticleTable from "@/components/table/article-table";
|
import ArticleTable from "@/components/table/article-table";
|
||||||
import { Button, Card } from "@nextui-org/react";
|
import { Button, Card } from "@nextui-org/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
export default function BasicPage() {
|
export default function BasicPage() {
|
||||||
return (
|
return (
|
||||||
<div className="h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-2 ml-4">
|
<div className="overflow-x-hidden overflow-y-scroll rounded-lg border-2">
|
||||||
<div className="px-4">
|
<div className="px-2 md:px-4 w-full">
|
||||||
<Card className="rounded-md my-5 pl-5 py-2">
|
<div className="rounded-md my-5 px-5 py-2 bg-white dark:bg-[#18181b] flex flex-row gap-3">
|
||||||
<Link href="/admin/article/create">
|
<Link href="/admin/article/create">
|
||||||
<Button size="md" color="primary" className="w-min">
|
<Button size="md" color="primary" className="w-min">
|
||||||
<AddIcon />New Article
|
<AddIcon />
|
||||||
</Button>
|
New Article
|
||||||
</Link>
|
</Button>
|
||||||
</Card>
|
</Link>
|
||||||
<Card className="rounded-md my-5">
|
<Link href="/admin/article/generate">
|
||||||
<ArticleTable />
|
<Button size="md" color="primary" className="w-min">
|
||||||
</Card>
|
<AddIcon />
|
||||||
</div>
|
Generate Article
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
<div className="bg-white dark:bg-[#18181b] rounded-xl my-5 p-2">
|
||||||
|
<ArticleTable />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
"use client"
|
|
||||||
import { Card, Divider, Image } from "@nextui-org/react";
|
|
||||||
|
|
||||||
export default function BasicPage() {
|
|
||||||
return (
|
|
||||||
<div className=" h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
|
||||||
<div className="px-4">
|
|
||||||
<div className="bg-blue-900 w-full h-[120px] my-5 rounded-md">
|
|
||||||
<div>
|
|
||||||
<div className="flex flex-row justify-between items-center">
|
|
||||||
<div>
|
|
||||||
<p className="text-2xl font-semibold ml-5 ">Basic Table</p>
|
|
||||||
<p className="text-gray-500 ml-5">Home<span className="text-black">{" > "}</span> <span className=" text-white">Basic Table</span></p>
|
|
||||||
</div>
|
|
||||||
<div className="pr-5">
|
|
||||||
<Image
|
|
||||||
width={110}
|
|
||||||
alt="NextUI hero Image"
|
|
||||||
src="https://modernize-nextjs-dark.vercel.app/_next/image?url=%2F_next%2Fstatic%2Fmedia%2FChatBc.3d875e2e.png&w=256&q=75"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Card className="rounded-md my-5">
|
|
||||||
<p className="ml-5 mt-5 text-lg">Basic Table</p>
|
|
||||||
<Divider className="w-full my-3" />
|
|
||||||
<div>
|
|
||||||
{/* <UsersTable />
|
|
||||||
<UserTable />
|
|
||||||
<CustomerTable />
|
|
||||||
<InvoiceTable />
|
|
||||||
<AuthtorsTable /> */}
|
|
||||||
</div>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
import CreateMagazineForm from '@/components/form/magazine/magazine-form'
|
||||||
|
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||||
|
import { Card } from '@nextui-org/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
const AdminMagazineCreate = () => {
|
||||||
|
return (
|
||||||
|
<div className=" h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||||
|
<div className="px-3">
|
||||||
|
<CreateMagazineForm />
|
||||||
|
</div>
|
||||||
|
</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 @@
|
||||||
|
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 { Card } from '@nextui-org/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
const AdminMenuDataCreate = () => {
|
||||||
|
return (
|
||||||
|
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||||
|
<CreateMenuDataForm />
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AdminMenuDataCreate
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
import MagazineTable from '@/components/table/magazine/magazine-table'
|
||||||
|
import MenuDataTable from '@/components/table/master/master-menu/menu-data/menu-data-table'
|
||||||
|
import { Image } from '@nextui-org/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
const AdminMenuData = () => {
|
||||||
|
return (
|
||||||
|
<div className=" h-[96vh] overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||||
|
<div className="px-3">
|
||||||
|
<MenuDataTable />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AdminMenuData
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
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 { Card } from '@nextui-org/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
const AdminMasterModuleCreate = () => {
|
||||||
|
return (
|
||||||
|
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||||
|
<CreateMasterModuleForm />
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AdminMasterModuleCreate
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
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 className=" h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||||
|
<div className="px-3">
|
||||||
|
<MasterModuleTable />
|
||||||
|
</div>
|
||||||
|
</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,17 @@
|
||||||
|
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 { Card } from '@nextui-org/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
const AdminMasterUserLevelCreate = () => {
|
||||||
|
return (
|
||||||
|
<Card className="h-[96vh] rounded-md my- ml-3 border bg-transparent">
|
||||||
|
<CreateMasterUserLevelForm />
|
||||||
|
</Card>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default AdminMasterUserLevelCreate
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
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 className=" h-[96vh] overflow-x-hidden overflow-y-scroll gap-0 grid rounded-lg border-small ml-4">
|
||||||
|
<div className="px-3">
|
||||||
|
<MasterUserLevelTable />
|
||||||
|
</div>
|
||||||
|
</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>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
import { ThemeSwitch } from "@/components/theme-switch";
|
|
||||||
|
|
||||||
export default function Submenu1Page() {
|
|
||||||
return (
|
|
||||||
<div className="flex mt-10 mx-4 md:m-0">Submenu1
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
import { ThemeSwitch } from "@/components/theme-switch";
|
|
||||||
|
|
||||||
export default function Submenu2Page() {
|
|
||||||
return (
|
|
||||||
<div className="flex mt-10 mx-4 md:m-0">Submenu2
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
import StaticPageBuilder from "@/components/main/static-page/static-page-main";
|
||||||
|
import { Card } from "@nextui-org/react";
|
||||||
|
|
||||||
|
export default function StaticPageGenerator() {
|
||||||
|
return (
|
||||||
|
<Card className="rounded-md border bg-transparent p-4">
|
||||||
|
<StaticPageBuilder />
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,26 @@
|
||||||
|
import { AddIcon } from "@/components/icons";
|
||||||
|
import StaticPageTable from "@/components/table/static-page-table";
|
||||||
|
import { Button, Card } from "@nextui-org/react";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
|
export default function StaticPageGeneratorList() {
|
||||||
|
return (
|
||||||
|
<Card className="rounded-md border bg-transparent p-4">
|
||||||
|
<div className="overflow-x-hidden overflow-y-scroll rounded-lg border-2">
|
||||||
|
<div className="px-2 md:px-4 w-full">
|
||||||
|
<div className="rounded-md mt-4 px-5 py-2 bg-white dark:bg-[#18181b] flex flex-row gap-3">
|
||||||
|
<Link href="/admin/static-page/create">
|
||||||
|
<Button size="md" color="primary" className="w-min">
|
||||||
|
<AddIcon />
|
||||||
|
Create Page
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<div className="bg-white dark:bg-[#18181b] rounded-xl p-2">
|
||||||
|
<StaticPageTable />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
import React from 'react'
|
|
||||||
|
|
||||||
const AdminDasboard = () => {
|
|
||||||
return (
|
|
||||||
<div>AdminDasboard</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default AdminDasboard
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
import React from 'react'
|
|
||||||
|
|
||||||
export default function AdminHumasPage() {
|
|
||||||
return (
|
|
||||||
<div className=''>
|
|
||||||
<div>1</div>
|
|
||||||
<div>1</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
|
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 />
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -1,15 +1,11 @@
|
||||||
'use client'
|
"use client";
|
||||||
|
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function DocsLayout({
|
export default function DocsLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function EMajalahLayout({
|
export default function EMajalahLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function DetailEMajalahLayout({
|
export default function DetailEMajalahLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import EMagazineDetail from '@/components/detail/E-MagazineDetail'
|
import EMagazineDetail from "@/components/main/detail/e-magazine-detail";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function EnewsDetailPage() {
|
export default function EnewsDetailPage() {
|
||||||
return (
|
return <EMagazineDetail />;
|
||||||
<EMagazineDetail />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function ApplicationLayout({
|
export default function ApplicationLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function KontakLayout({
|
export default function KontakLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import Contact from '@/components/detail/Contact'
|
import Contact from "@/components/main/detail/contact";
|
||||||
|
|
||||||
export default function VisiMisiPage() {
|
export default function VisiMisiPage() {
|
||||||
return (
|
return <Contact />;
|
||||||
<Contact />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,44 +4,55 @@ import "@/styles/globals.css";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { Providers } from "./providers";
|
import { Providers } from "./providers";
|
||||||
|
import LoadScript from "@/utils/global";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
default: siteConfig.name,
|
default: siteConfig.name,
|
||||||
template: `%s - ${siteConfig.name}`,
|
template: `%s - ${siteConfig.name}`,
|
||||||
},
|
},
|
||||||
description: siteConfig.description,
|
description: siteConfig.description,
|
||||||
themeColor: [
|
themeColor: [
|
||||||
{ media: "(prefers-color-scheme: light)", color: "white" },
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
||||||
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
||||||
],
|
],
|
||||||
icons: {
|
icons: {
|
||||||
icon: "/logohumas.ico",
|
icon: "/logohumas.ico",
|
||||||
shortcut: "/favicon-16x16.png",
|
shortcut: "/favicon-16x16.png",
|
||||||
apple: "/apple-touch-icon.png",
|
apple: "/apple-touch-icon.png",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning className="scroll-smooth">
|
<html lang="en" suppressHydrationWarning className="scroll-smooth">
|
||||||
<head />
|
<head>
|
||||||
<body
|
<meta
|
||||||
className={clsx(
|
name="theme-color"
|
||||||
"bg-background font-sans antialiased",
|
content="white"
|
||||||
fontSans.variable
|
media="(prefers-color-scheme: light)"
|
||||||
)}
|
/>
|
||||||
>
|
<meta
|
||||||
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
name="theme-color"
|
||||||
<main className="">
|
content="black"
|
||||||
{children}
|
media="(prefers-color-scheme: dark)"
|
||||||
</main>
|
/>
|
||||||
</Providers>
|
<LoadScript />
|
||||||
</body>
|
</head>
|
||||||
</html>
|
<body
|
||||||
);
|
className={clsx(
|
||||||
|
"bg-background font-sans antialiased",
|
||||||
|
fontSans.variable
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
|
||||||
|
<main className="">{children}</main>
|
||||||
|
</Providers>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function PoldaNewsLayout({
|
export default function PoldaNewsLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ListNews from '@/components/detail/ListNews'
|
import ListNews from "@/components/main/detail/list-news";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PoldaNewsPage() {
|
export default function PoldaNewsPage() {
|
||||||
return (
|
return <ListNews />;
|
||||||
<ListNews />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function AllNewsLayout({
|
export default function AllNewsLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ListNews from '@/components/detail/ListNews'
|
import ListNews from "@/components/main/detail/list-news";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ListNewsPage() {
|
export default function ListNewsPage() {
|
||||||
return (
|
return <ListNews />;
|
||||||
<ListNews />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
|
|
||||||
export default function NewsLayout({
|
export default function NewsLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <HumasLayout>{children}</HumasLayout>;
|
||||||
<HumasLayout>
|
|
||||||
{children}
|
|
||||||
</HumasLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import DetailPage from '@/components/detail/DetailPage'
|
import DetailPage from "@/components/main/detail/new-detail";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function NewsPage() {
|
export default function NewsPage() {
|
||||||
return (
|
return <DetailPage />;
|
||||||
<DetailPage />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
40
app/page.tsx
40
app/page.tsx
|
|
@ -1,27 +1,27 @@
|
||||||
'use client'
|
"use client";
|
||||||
import BannerHumas from "@/components/Landing Page/BannerHumas";
|
import BannerHumas from "@/components/landing/BannerHumas";
|
||||||
import BodyLayout from "@/components/Landing Page/BodyLayout";
|
import BodyLayout from "@/components/landing/BodyLayout";
|
||||||
import HeaderNews from "@/components/Landing Page/HeaderNews";
|
import HeaderNews from "@/components/landing/HeaderNews";
|
||||||
import { HumasLayout } from "@/components/layout/HumasLayout";
|
import { HumasLayout } from "@/components/layout/humas-layout";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [hasMounted, setHasMounted] = useState(false);
|
const [hasMounted, setHasMounted] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setHasMounted(true);
|
setHasMounted(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
if (!hasMounted) return null;
|
if (!hasMounted) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<HumasLayout>
|
<HumasLayout>
|
||||||
<BannerHumas />
|
<BannerHumas />
|
||||||
<HeaderNews />
|
<HeaderNews />
|
||||||
<BodyLayout />
|
<BodyLayout />
|
||||||
</HumasLayout>
|
</HumasLayout>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
import { PPIDAdminLayout } from "@/components/layout/PPIDAdminLayout";
|
import { PPIDAdminLayout } from "@/components/layout/ppid-admin-layout";
|
||||||
|
|
||||||
export default function LayoutAdmin({
|
export default function LayoutAdmin({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return <PPIDAdminLayout>{children}</PPIDAdminLayout>;
|
||||||
<PPIDAdminLayout >
|
|
||||||
{children}
|
|
||||||
</PPIDAdminLayout>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function EPPIDPoldaLayout({
|
export default function EPPIDPoldaLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import PPIDPolda from '@/components/Portal PPID/PPIDPolda'
|
import PPIDPolda from "@/components/layout/portal-ppid/PPIDPolda";
|
||||||
|
|
||||||
export default function PPIDSakterPage() {
|
export default function PPIDSakterPage() {
|
||||||
return (
|
return <PPIDPolda />;
|
||||||
<PPIDPolda />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function EPPIDSatkerLayout({
|
export default function EPPIDSatkerLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import PPIDSatker from '@/components/Portal PPID/PPIDSatker'
|
import PPIDSatker from "@/components/layout/portal-ppid/PPIDSatker";
|
||||||
|
|
||||||
export default function PPIDSakterPage() {
|
export default function PPIDSakterPage() {
|
||||||
return (
|
return <PPIDSatker />;
|
||||||
<PPIDSatker />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import InformasiBerkala from '@/components/table/informasi-berkala'
|
import InformasiBerkala from "@/components/table/informasi-berkala-table";
|
||||||
|
|
||||||
export default function InformasiSMPage() {
|
export default function InformasiSMPage() {
|
||||||
return (
|
return <InformasiBerkala />;
|
||||||
<InformasiBerkala />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function InfoPublicLayout({
|
export default function InfoPublicLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function LayananInformasiLayout({
|
export default function LayananInformasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
import StatiticAndRecap from "@/components/main/detail/statistic-recap";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function StatisticPage() {
|
export default function StatisticPage() {
|
||||||
return (
|
return <StatiticAndRecap />;
|
||||||
<StatiticAndRecap />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,22 @@
|
||||||
'use client'
|
"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';
|
|
||||||
|
|
||||||
|
|
||||||
|
import NavbarPPID from "@/components/layout/navbar/NavbarPPID";
|
||||||
|
import FooterPPID from "@/components/layout/portal-ppid/FooterPPID";
|
||||||
|
import PPIDBanner from "@/components/layout/portal-ppid/ppid-banner";
|
||||||
|
import PPIDbody from "@/components/layout/portal-ppid/PpidMain";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
export default function PortalPPID(url: any) {
|
export default function PortalPPID(url: any) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NavbarPPID />
|
<NavbarPPID />
|
||||||
<PPIDBanner url={url} />
|
<PPIDBanner url={url} />
|
||||||
<PPIDbody />
|
<PPIDbody />
|
||||||
<FooterPPID />
|
<FooterPPID />
|
||||||
</>
|
</>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import InformasiBerkala from '@/components/table/informasi-berkala'
|
import InformasiBerkala from "@/components/table/informasi-berkala-table";
|
||||||
|
|
||||||
export default function InformasiSMPage() {
|
export default function InformasiSMPage() {
|
||||||
return (
|
return <InformasiBerkala />;
|
||||||
<InformasiBerkala />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function DinamicSatkerLayout({
|
export default function DinamicSatkerLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
// const pathname = usePathname();
|
// const pathname = usePathname();
|
||||||
// console.log(pathname)
|
// console.log(pathname)
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function LayananInformasiLayout({
|
export default function LayananInformasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
import StatiticAndRecap from "@/components/main/detail/statistic-recap";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function StatisticPage() {
|
export default function StatisticPage() {
|
||||||
return (
|
return <StatiticAndRecap />;
|
||||||
<StatiticAndRecap />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,27 @@
|
||||||
'use client'
|
"use client";
|
||||||
import PPIDSatkerMain from '@/components/Portal PPID/PPIDMainSatker';
|
|
||||||
import PPIDBanner from '@/components/Portal PPID/ppid-banner';
|
import FooterSatker from "@/components/layout/navbar/FooterSatker";
|
||||||
import FooterSatker from '@/components/navbar/FooterSatker';
|
import NavbarSatker from "@/components/layout/navbar/NavbarSatker";
|
||||||
import NavbarSatker from '@/components/navbar/NavbarSatker';
|
import PPIDBanner from "@/components/layout/portal-ppid/ppid-banner";
|
||||||
import { usePathname } from 'next/navigation';
|
import PPIDSatkerMain from "@/components/layout/portal-ppid/PPIDMainSatker";
|
||||||
import React from 'react'
|
import { usePathname } from "next/navigation";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
export default function PoldaPage() {
|
export default function PoldaPage() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const url: string = pathname.split('polda/')[1].replace(/-/g, ' ').toUpperCase();
|
const url: string = pathname
|
||||||
|
.split("polda/")[1]
|
||||||
|
.replace(/-/g, " ")
|
||||||
|
.toUpperCase();
|
||||||
|
|
||||||
|
return (
|
||||||
return (
|
<div className="text-black">
|
||||||
<div className='text-black'>
|
<div className="text-black">
|
||||||
<div className='text-black'>
|
<NavbarSatker />
|
||||||
<NavbarSatker />
|
<PPIDBanner url={url} />
|
||||||
<PPIDBanner url={url} />
|
<PPIDSatkerMain />
|
||||||
<PPIDSatkerMain />
|
<FooterSatker />
|
||||||
<FooterSatker />
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
);
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function DinamicSatkerLayout({
|
export default function DinamicSatkerLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
// const pathname = usePathname();
|
// const pathname = usePathname();
|
||||||
// console.log(pathname)
|
// console.log(pathname)
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import About from '@/components/detail/About'
|
import About from "@/components/main/detail/about";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfile() {
|
export default function PPIDProfile() {
|
||||||
return (
|
return <About />;
|
||||||
<About />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import HistoryPPID from '@/components/page/HistoryPPID'
|
import HistoryPPID from "@/components/page/history-ppid";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfilePage() {
|
export default function PPIDProfilePage() {
|
||||||
return (
|
return <HistoryPPID />;
|
||||||
<HistoryPPID />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import StrukturOrganisasi from "@/components/detail/StrukturOrganisasi";
|
import StrukturOrganisasi from "@/components/main/detail/structure";
|
||||||
|
|
||||||
export default function StructurePPID() {
|
export default function StructurePPID() {
|
||||||
return (
|
return <StrukturOrganisasi />;
|
||||||
<StrukturOrganisasi />
|
}
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
import Task from "@/components/detail/TaskDetail";
|
import Task from "@/components/main/detail/task-detail";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function PPIDTask() {
|
export default function PPIDTask() {
|
||||||
return (
|
return <Task />;
|
||||||
<Task />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import VisiMisi from '@/components/detail/VisiMisi'
|
import VisiMisi from "@/components/main/detail/visi-misi";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function VMPPID() {
|
export default function VMPPID() {
|
||||||
return (
|
return <VisiMisi />;
|
||||||
<VisiMisi />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function RegulasiLayout({
|
export default function RegulasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import PPIDSidebar from '@/components/Portal PPID/PPIDSidebar'
|
import PPIDSidebar from "@/components/layout/portal-ppid/PPIDSidebar";
|
||||||
import RegulationTable from '@/components/table/tabel-regulasi'
|
import RegulationTable from "@/components/table/tabel-regulasi";
|
||||||
|
|
||||||
export default function RegulasiPage() {
|
export default function RegulasiPage() {
|
||||||
return (
|
return (
|
||||||
<div className='md:flex'>
|
<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'>
|
<div className="w-auto bg-[#E2E2E2] md:w-2/3 lg:w-[75%] px-2 md:px-0 lg:px-5">
|
||||||
<RegulationTable />
|
<RegulationTable />
|
||||||
</div>
|
</div>
|
||||||
<div className='w-auto md:w-1/3 lg:w-[25%]'>
|
<div className="w-auto md:w-1/3 lg:w-[25%]">
|
||||||
<PPIDSidebar />
|
<PPIDSidebar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceFlow from '@/components/detail/ServiceFlow'
|
import ServiceFlow from "@/components/main/detail/service-flow";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceFlowPage() {
|
export default function ServiceFlowPage() {
|
||||||
return (
|
return <ServiceFlow />;
|
||||||
<ServiceFlow />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,16 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function StandarLayananLayout({
|
export default function StandarLayananLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceAnnouncement from '@/components/detail/ServiceAnnouncement'
|
import ServiceAnnouncement from "@/components/main/detail/service-announcement";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceAnnouncePage() {
|
export default function ServiceAnnouncePage() {
|
||||||
return (
|
return <ServiceAnnouncement />;
|
||||||
<ServiceAnnouncement />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ObjectionMecanism from '@/components/detail/ObjectionMecanism'
|
import ObjectionMecanism from "@/components/main/detail/objection-mecanism";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ObjectionMecanismPage() {
|
export default function ObjectionMecanismPage() {
|
||||||
return (
|
return <ObjectionMecanism />;
|
||||||
<ObjectionMecanism />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import RequestDispute from '@/components/detail/RequestDispute'
|
import RequestDispute from "@/components/main/detail/reqeust-dispute";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function RequestDisputePage() {
|
export default function RequestDisputePage() {
|
||||||
return (
|
return <RequestDispute />;
|
||||||
<RequestDispute />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceFee from '@/components/detail/ServiceFee'
|
import ServiceFee from "@/components/main/detail/service-fee";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceFeePage() {
|
export default function ServiceFeePage() {
|
||||||
return (
|
return <ServiceFee />;
|
||||||
<ServiceFee />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import RequestInformation from '@/components/detail/RequestInformation'
|
import RequestInformation from "@/components/main/detail/request-information";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function RequestInformationPage() {
|
export default function RequestInformationPage() {
|
||||||
return (
|
return <RequestInformation />;
|
||||||
<RequestInformation />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceTime from '@/components/detail/ServiceTime'
|
import ServiceTime from "@/components/main/detail/serive-time";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceTimePage() {
|
export default function ServiceTimePage() {
|
||||||
return (
|
return <ServiceTime />;
|
||||||
<ServiceTime />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function PPIDProfileLayout({
|
export default function PPIDProfileLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import About from '@/components/detail/About'
|
import About from "@/components/main/detail/about";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfile() {
|
export default function PPIDProfile() {
|
||||||
return (
|
return <About />;
|
||||||
<About />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import HistoryPPID from '@/components/page/HistoryPPID'
|
import HistoryPPID from "@/components/page/history-ppid";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfilePage() {
|
export default function PPIDProfilePage() {
|
||||||
return (
|
return <HistoryPPID />;
|
||||||
<HistoryPPID />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import StrukturOrganisasi from "@/components/detail/StrukturOrganisasi";
|
import StrukturOrganisasi from "@/components/main/detail/structure";
|
||||||
|
|
||||||
export default function StructurePPID() {
|
export default function StructurePPID() {
|
||||||
return (
|
return <StrukturOrganisasi />;
|
||||||
<StrukturOrganisasi />
|
}
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
import Task from "@/components/detail/TaskDetail";
|
import Task from "@/components/main/detail/task-detail";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function PPIDTask() {
|
export default function PPIDTask() {
|
||||||
return (
|
return <Task />;
|
||||||
<Task />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import VisiMisi from '@/components/detail/VisiMisi'
|
import VisiMisi from "@/components/main/detail/visi-misi";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function VMPPID() {
|
export default function VMPPID() {
|
||||||
return (
|
return <VisiMisi />;
|
||||||
<VisiMisi />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function RegulasiLayout({
|
export default function RegulasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <PPIDLayout>{children}</PPIDLayout>;
|
||||||
<PPIDLayout>
|
|
||||||
{children}
|
|
||||||
</PPIDLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import PPIDSidebar from '@/components/Portal PPID/PPIDSidebar'
|
import PPIDSidebar from "@/components/layout/portal-ppid/PPIDSidebar";
|
||||||
import RegulationTable from '@/components/table/tabel-regulasi'
|
import RegulationTable from "@/components/table/tabel-regulasi";
|
||||||
|
|
||||||
export default function RegulasiPage() {
|
export default function RegulasiPage() {
|
||||||
return (
|
return (
|
||||||
<div className='md:flex'>
|
<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'>
|
<div className="w-auto bg-[#E2E2E2] md:w-2/3 lg:w-[75%] px-2 md:px-0 lg:px-5">
|
||||||
<RegulationTable />
|
<RegulationTable />
|
||||||
</div>
|
</div>
|
||||||
<div className='w-auto md:w-1/3 lg:w-[25%]'>
|
<div className="w-auto md:w-1/3 lg:w-[25%]">
|
||||||
<PPIDSidebar />
|
<PPIDSidebar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import InformasiBerkala from '@/components/table/informasi-berkala'
|
import InformasiBerkala from "@/components/table/informasi-berkala-table";
|
||||||
|
|
||||||
export default function InformasiSMPage() {
|
export default function InformasiSMPage() {
|
||||||
return (
|
return <InformasiBerkala />;
|
||||||
<InformasiBerkala />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function DinamicSatkerLayout({
|
export default function DinamicSatkerLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
// const pathname = usePathname();
|
// const pathname = usePathname();
|
||||||
// console.log(pathname)
|
// console.log(pathname)
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function LayananInformasiLayout({
|
export default function LayananInformasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import StatiticAndRecap from '@/components/detail/StatistikRekapitulas'
|
import StatiticAndRecap from "@/components/main/detail/statistic-recap";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function StatisticPage() {
|
export default function StatisticPage() {
|
||||||
return (
|
return <StatiticAndRecap />;
|
||||||
<StatiticAndRecap />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,24 @@
|
||||||
'use client'
|
"use client";
|
||||||
import PPIDSatkerMain from '@/components/Portal PPID/PPIDMainSatker';
|
|
||||||
import PPIDBanner from '@/components/Portal PPID/ppid-banner';
|
import FooterSatker from "@/components/layout/navbar/FooterSatker";
|
||||||
import FooterSatker from '@/components/navbar/FooterSatker';
|
import NavbarSatker from "@/components/layout/navbar/NavbarSatker";
|
||||||
import NavbarSatker from '@/components/navbar/NavbarSatker';
|
import PPIDBanner from "@/components/layout/portal-ppid/ppid-banner";
|
||||||
import { usePathname } from 'next/navigation';
|
import PPIDSatkerMain from "@/components/layout/portal-ppid/PPIDMainSatker";
|
||||||
|
import { usePathname } from "next/navigation";
|
||||||
|
|
||||||
export default function SatkerPage() {
|
export default function SatkerPage() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
const url: string = pathname.split('satuan-kerja/')[1].replace(/-/g, ' ').toUpperCase();
|
const url: string = pathname
|
||||||
|
.split("satuan-kerja/")[1]
|
||||||
|
.replace(/-/g, " ")
|
||||||
|
.toUpperCase();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='text-black'>
|
<div className="text-black">
|
||||||
<NavbarSatker />
|
<NavbarSatker />
|
||||||
<PPIDBanner url={url} />
|
<PPIDBanner url={url} />
|
||||||
<PPIDSatkerMain />
|
<PPIDSatkerMain />
|
||||||
<FooterSatker />
|
<FooterSatker />
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function DinamicSatkerLayout({
|
export default function DinamicSatkerLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
// const pathname = usePathname();
|
// const pathname = usePathname();
|
||||||
// console.log(pathname)
|
// console.log(pathname)
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import About from '@/components/detail/About'
|
import About from "@/components/main/detail/about";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfile() {
|
export default function PPIDProfile() {
|
||||||
return (
|
return <About />;
|
||||||
<About />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import HistoryPPID from '@/components/page/HistoryPPID'
|
import HistoryPPID from "@/components/page/history-ppid";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function PPIDProfilePage() {
|
export default function PPIDProfilePage() {
|
||||||
return (
|
return <HistoryPPID />;
|
||||||
<HistoryPPID />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
import StrukturOrganisasi from "@/components/detail/StrukturOrganisasi";
|
import StrukturOrganisasi from "@/components/main/detail/structure";
|
||||||
|
|
||||||
export default function StructurePPID() {
|
export default function StructurePPID() {
|
||||||
return (
|
return <StrukturOrganisasi />;
|
||||||
<StrukturOrganisasi />
|
}
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
import Task from "@/components/detail/TaskDetail";
|
import Task from "@/components/main/detail/task-detail";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function PPIDTask() {
|
export default function PPIDTask() {
|
||||||
return (
|
return <Task />;
|
||||||
<Task />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import VisiMisi from '@/components/detail/VisiMisi'
|
import VisiMisi from "@/components/main/detail/visi-misi";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function VMPPID() {
|
export default function VMPPID() {
|
||||||
return (
|
return <VisiMisi />;
|
||||||
<VisiMisi />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,15 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React from 'react';
|
import React from "react";
|
||||||
|
|
||||||
export default function RegulasiLayout({
|
export default function RegulasiLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import PPIDSidebar from '@/components/Portal PPID/PPIDSidebar'
|
import PPIDSidebar from "@/components/layout/portal-ppid/PPIDSidebar";
|
||||||
import RegulationTable from '@/components/table/tabel-regulasi'
|
import RegulationTable from "@/components/table/tabel-regulasi";
|
||||||
|
|
||||||
export default function RegulasiPage() {
|
export default function RegulasiPage() {
|
||||||
return (
|
return (
|
||||||
<div className='md:flex'>
|
<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'>
|
<div className="w-auto bg-[#E2E2E2] md:w-2/3 lg:w-[75%] px-2 md:px-0 lg:px-5">
|
||||||
<RegulationTable />
|
<RegulationTable />
|
||||||
</div>
|
</div>
|
||||||
<div className='w-auto md:w-1/3 lg:w-[25%]'>
|
<div className="w-auto md:w-1/3 lg:w-[25%]">
|
||||||
<PPIDSidebar />
|
<PPIDSidebar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceFlow from '@/components/detail/ServiceFlow'
|
import ServiceFlow from "@/components/main/detail/service-flow";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceFlowPage() {
|
export default function ServiceFlowPage() {
|
||||||
return (
|
return <ServiceFlow />;
|
||||||
<ServiceFlow />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,16 @@
|
||||||
'use client'
|
"use client";
|
||||||
import { PPIDLayout } from '@/components/layout/PPIDLayout';
|
import { PPIDLayout } from "@/components/layout/ppid-layout";
|
||||||
import { SatkerLayout } from '@/components/layout/SatKerLayout';
|
import { SatkerLayout } from "@/components/layout/satker-layout";
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from "next/navigation";
|
||||||
import React, { Children } from 'react'
|
import React, { Children } from "react";
|
||||||
|
|
||||||
export default function StandarLayananLayout({
|
export default function StandarLayananLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
console.log(pathname)
|
console.log(pathname);
|
||||||
|
|
||||||
return (
|
return <SatkerLayout>{children}</SatkerLayout>;
|
||||||
<SatkerLayout>
|
|
||||||
{children}
|
|
||||||
</SatkerLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ServiceAnnouncement from '@/components/detail/ServiceAnnouncement'
|
import ServiceAnnouncement from "@/components/main/detail/service-announcement";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ServiceAnnouncePage() {
|
export default function ServiceAnnouncePage() {
|
||||||
return (
|
return <ServiceAnnouncement />;
|
||||||
<ServiceAnnouncement />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import ObjectionMecanism from '@/components/detail/ObjectionMecanism'
|
import ObjectionMecanism from "@/components/main/detail/objection-mecanism";
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
|
|
||||||
export default function ObjectionMecanismPage() {
|
export default function ObjectionMecanismPage() {
|
||||||
return (
|
return <ObjectionMecanism />;
|
||||||
<ObjectionMecanism />
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue