Login bug fix

This commit is contained in:
2024-03-04 17:09:23 +08:00
parent 0f2280f116
commit a3f507169a
20 changed files with 216 additions and 76 deletions

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
export default async function Page() {
return (
<>
<ComponentGlobal_LoadingPage height="100%"/>
</>
);
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
export default async function Page() {
return (
<>
<ComponentGlobal_LoadingPage height="100vh"/>
</>
);
}

View File

@@ -1,5 +1,8 @@
import { Event_SplashScreen } from "@/app_modules/event";
export default async function Page() {
// await new Promise((a, b) => {
// setTimeout(a, 1000);
// });
return <Event_SplashScreen />;
}

View File

@@ -0,0 +1,9 @@
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
export default async function Page() {
return (
<>
<ComponentGlobal_LoadingPage height="100%"/>
</>
);
}

View File

@@ -8,6 +8,9 @@ import { User_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
export default async function Page() {
const userId = await User_getUserId();
const dataUser = await User_getOneById(userId);
// await new Promise((a, b) => {
// setTimeout(a, 1000);
// });
return (
<>

View File

@@ -0,0 +1,10 @@
import ComponentGlobal_LoadingPage from "@/app_modules/component_global/loading_page";
export default async function Page() {
return (
<>
<ComponentGlobal_LoadingPage height="100%" />
</>
);
}

View File

@@ -12,18 +12,28 @@ import { funGetListPortofolio } from "@/app_modules/katalog/portofolio/fun/get/g
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
import { Profile_getOneById } from "@/app_modules/katalog/profile/fun/get/get_one_profile";
import { Profile_getOneProfileAndUserById } from "@/app_modules/katalog/profile/fun/get/get_one_user_profile";
import { User_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
export default async function Page({ params }: { params: { id: string } }) {
let profileId = params.id;
const userLoginId = await User_getUserId()
const authorId = await User_getUserId();
const dataUser = await User_getOneById(authorId)
const listPorto = await funGetListPortofolio(profileId);
const dataProfile = await Profile_getOneProfileAndUserById(profileId)
const dataProfile = await Profile_getOneProfileAndUserById(profileId);
// console.log(dataProfile)
await new Promise((a, b) => {
setTimeout(a, 1000);
});
return (
<>
<KatalogView profile={dataProfile as any} listPorto={listPorto as any} userLoginId={userLoginId} />
<KatalogView
profile={dataProfile as any}
listPorto={listPorto as any}
userLoginId={authorId}
/>
</>
);
}