# fix
- Layout katalog dan porto clear # No isuue
This commit is contained in:
12
src/app/dev/admin/user-access/page.tsx
Normal file
12
src/app/dev/admin/user-access/page.tsx
Normal 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} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -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);
|
||||
// });
|
||||
|
||||
9
src/app/dev/portofolio/create/[id]/loading.tsx
Normal file
9
src/app/dev/portofolio/create/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/portofolio/edit/data/[id]/loading.tsx
Normal file
9
src/app/dev/portofolio/edit/data/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/portofolio/edit/logo/[id]/loading.tsx
Normal file
9
src/app/dev/portofolio/edit/logo/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/portofolio/edit/medsos/[id]/loading.tsx
Normal file
9
src/app/dev/portofolio/edit/medsos/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/portofolio/main/[id]/loading.tsx
Normal file
9
src/app/dev/portofolio/main/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/profile/create/[id]/loading.tsx
Normal file
9
src/app/dev/profile/create/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/profile/upload/background/[id]/loading.tsx
Normal file
9
src/app/dev/profile/upload/background/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
src/app/dev/profile/upload/foto/[id]/loading.tsx
Normal file
9
src/app/dev/profile/upload/foto/[id]/loading.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
21
src/app/dev/user-not-active/page.tsx
Normal file
21
src/app/dev/user-not-active/page.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
3
src/app/lib/router_admin/router_admn_user_acces.ts
Normal file
3
src/app/lib/router_admin/router_admn_user_acces.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const RouterAdminUserAccess = {
|
||||
main: "/dev/admin/user-access",
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
export const RouterHome = {
|
||||
main_home: "/dev/home"
|
||||
}
|
||||
main_home: "/dev/home",
|
||||
home_user_non_active: "/dev/user-not-active",
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user