Fix: Avatar
Deskripsi: - Avatar job - Avatar collaboration - Avatar event ## No Issuue
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { Login } from "@/app_modules/auth";
|
||||
import versionUpdate from "../../../../../package.json";
|
||||
|
||||
export default async function Page() {
|
||||
const version = versionUpdate.version;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Login />
|
||||
<Login version={version} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import { Colab_DetailNotifikasi } from "@/app_modules/colab";
|
||||
import colab_getOneNotifikasiById from "@/app_modules/colab/fun/get/get_one_notifikasi_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let notifId = params.id;
|
||||
const data = await colab_getOneNotifikasiById({ notifId: notifId });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailNotifikasi data={data as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
import { LayoutColab_DetailStatusPublish } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusPublish>{children}</LayoutColab_DetailStatusPublish>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import ComponentGlobal_V2_LoadingPage from "@/app_modules/_global/loading_page_v2";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_V2_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { Colab_DetailStatusPublish } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusPublish />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import { LayoutColab_DetailStatusReject } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusReject>
|
||||
{children}
|
||||
</LayoutColab_DetailStatusReject>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import ComponentGlobal_V2_LoadingPage from "@/app_modules/_global/loading_page_v2";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_V2_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { Colab_DetailStatusReject } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusReject />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
import { LayoutColab_DetailStatusReview } from "@/app_modules/colab";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutColab_DetailStatusReview>
|
||||
{children}
|
||||
</LayoutColab_DetailStatusReview>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import ComponentGlobal_V2_LoadingPage from "@/app_modules/_global/loading_page_v2";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_V2_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import { Colab_DetailStatusReview } from "@/app_modules/colab";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailStatusReview />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import { Colab_NotifikasiView } from "@/app_modules/colab";
|
||||
import colab_getListNotifikasiByUserId from "@/app_modules/colab/fun/get/get_list_notifikasi_by_user_id";
|
||||
|
||||
export default async function Page() {
|
||||
const listNotifikasi = await colab_getListNotifikasiByUserId();
|
||||
// console.log(listNotifikasi);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_NotifikasiView listNotifikasi={listNotifikasi as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import ComponentGlobal_V2_LoadingPage from "@/app_modules/_global/loading_page_v2";
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<ComponentGlobal_V2_LoadingPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import { Colab_Status } from "@/app_modules/colab";
|
||||
import colab_getListByStatusId from "@/app_modules/colab/fun/get/get_list_by_status_id";
|
||||
|
||||
export default async function Page() {
|
||||
const listPublish = (await colab_getListByStatusId(1)).data;
|
||||
const listReview = (await colab_getListByStatusId(2)).data;
|
||||
const listReject = (await colab_getListByStatusId(3)).data;
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_Status
|
||||
listPublish={listPublish as any}
|
||||
listReview={listReview as any}
|
||||
listReject={listReject as any}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
"use server";
|
||||
import { Job_MainDetail } from "@/app_modules/job";
|
||||
import { job_getOneById } from "@/app_modules/job/fun/get/get_one_by_id";
|
||||
import app_config from "@/util/app_config";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const idJob = params.id;
|
||||
@@ -9,7 +7,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Job_MainDetail dataJob={dataJob as any} hostName={app_config.host} />
|
||||
<Job_MainDetail dataJob={dataJob as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -4,11 +4,7 @@ import { job_getOneById } from "@/app_modules/job/fun/get/get_one_by_id";
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let jobId = params.id;
|
||||
const dataJob = await job_getOneById(jobId);
|
||||
// const platform = os.platform();
|
||||
// const hostName =
|
||||
// platform === "darwin"
|
||||
// ? "http://localhost:3000"
|
||||
// : "https://test-hipmi.wibudev.com";
|
||||
|
||||
return (
|
||||
<>
|
||||
<Job_NonUserView data={dataJob as any} />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_DetailKontribusi } from "@/app_modules/vote";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -11,12 +12,14 @@ export default async function Layout({
|
||||
}) {
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailKontribusi
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_DetailKontribusi>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_MainDetail } from "@/app_modules/vote";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -11,10 +12,15 @@ export default async function Layout({
|
||||
}) {
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_MainDetail votingId={votingId} userLoginId={userLoginId}>
|
||||
<LayoutVote_MainDetail
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_MainDetail>
|
||||
</>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { LayoutVote_DetailPublish } from "@/app_modules/vote";
|
||||
import { Voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get";
|
||||
import { voting_funGetOneVotingbyId } from "@/app_modules/vote/fun/get/fun_get_one_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -13,11 +13,15 @@ export default async function Layout({
|
||||
const votingId = params.id;
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const dataVoting = await Voting_funGetOneVotingbyId(votingId);
|
||||
const dataVoting = await voting_funGetOneVotingbyId(votingId);
|
||||
|
||||
return (
|
||||
<>
|
||||
<LayoutVote_DetailPublish votingId={votingId} userLoginId={userLoginId}>
|
||||
<LayoutVote_DetailPublish
|
||||
votingId={votingId}
|
||||
userLoginId={userLoginId}
|
||||
dataVoting={dataVoting}
|
||||
>
|
||||
{children}
|
||||
</LayoutVote_DetailPublish>
|
||||
</>
|
||||
|
||||
@@ -2,11 +2,11 @@ import { Vote_Beranda } from "@/app_modules/vote";
|
||||
import { vote_getAllListPublish } from "@/app_modules/vote/fun/get/get_all_list_publish";
|
||||
|
||||
export default async function Page() {
|
||||
const dataVote = await vote_getAllListPublish({page: 1})
|
||||
const dataVote = await vote_getAllListPublish({ page: 1 });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Vote_Beranda dataVote={dataVote as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Vote_Beranda dataVote={dataVote as any} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user