- Layout katalog dan porto clear
# No isuue
This commit is contained in:
2024-04-20 00:19:28 +08:00
parent ed28b7d7b2
commit e062632de7
40 changed files with 526 additions and 94 deletions

View File

@@ -0,0 +1,12 @@
import { AdminUserAccess_View } from "@/app_modules/admin/user-access";
import adminUserAccess_getListUser from "@/app_modules/admin/user-access/fun/get/get_list_all_user";
export default async function Page() {
const listUser = await adminUserAccess_getListUser()
return (
<>
<AdminUserAccess_View listUser={listUser as any} />
</>
);
}

View File

@@ -6,13 +6,19 @@ import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { redirect } from "next/navigation";
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
import { RouterHome } from "@/app/lib/router_hipmi/router_home";
export default async function Page() {
const userId = await user_getOneUserId();
const dataUser = await user_getOneById(userId);
if (dataUser?.active === false) {
return redirect(RouterHome.home_user_non_active);
}
if (dataUser?.masterUserRoleId === "2" || dataUser?.masterUserRoleId === "3")
return redirect(RouterAdminDashboard.splash_admin);
// await new Promise((a, b) => {
// setTimeout(a, 4000);
// });

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_V2_LoadingPage from "@/app_modules/component_global/loading_page_v2";
export default async function Page() {
return (
<>
<ComponentGlobal_V2_LoadingPage />
</>
);
}

View File

@@ -0,0 +1,21 @@
import { RouterAdminDashboard } from "@/app/lib/router_hipmi/router_admin";
import { RouterHome } from "@/app/lib/router_hipmi/router_home";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { Home_UserNonActive } from "@/app_modules/home";
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
import { redirect } from "next/navigation";
export default async function Page() {
const userId = await user_getOneUserId();
const dataUser = await user_getOneById(userId);
if (dataUser?.active === true) {
return redirect(RouterHome.main_home);
}
return (
<>
<Home_UserNonActive />
</>
);
}

View File

@@ -0,0 +1,3 @@
export const RouterAdminUserAccess = {
main: "/dev/admin/user-access",
};

View File

@@ -1,3 +1,4 @@
export const RouterHome = {
main_home: "/dev/home"
}
main_home: "/dev/home",
home_user_non_active: "/dev/user-not-active",
};

View File

@@ -82,26 +82,34 @@ export default function Page() {
top={0}
h={"10vh"}
>
satu
header
</Box>
<Box bg={"red"} pos={"static"}>
<Box bg={"red"} pos={"static"} >
<Stack>
{Array.from(new Array(300)).map((v, k) => (
<Title key={k}>INI DIMANA {k+1}</Title>
{Array.from(new Array(15)).map((v, k) => (
<Title key={k}>Cek halaman {k+1}</Title>
))}
<Box style={{
height: "10vh"
}}>
</Box>
</Stack>
</Box>
<Text
style={{
zIndex: 98,
}}
w={"100%"}
bg={"blue"}
pos={"sticky"}
pos={"fixed"}
bottom={0}
h={"10vh"}
>
satu
footer
</Text>
</Box>
);