fix admin voting
deskripsi: - fix tampilan html di detail
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
||||||
import adminForum_countKomentarByPostingId from "@/app_modules/admin/forum/fun/count/fun_count_komentar_by_id";
|
|
||||||
import { adminForum_getListKomentarById } from "@/app_modules/admin/forum/fun/get/get_list_komentar_by_id";
|
|
||||||
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
||||||
|
|
||||||
export default async function Page({ params }: { params: { id: string } }) {
|
export default async function Page({ params }: { params: { id: string } }) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { MainColor } from "../../color";
|
import { MainColor } from "../../color";
|
||||||
|
|
||||||
export const Comp_DangerouslySetInnerHTML = ({
|
export const Comp_SetInnerHTML = ({
|
||||||
props,
|
props,
|
||||||
color,
|
color,
|
||||||
style: styleInput,
|
style: styleInput,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
} from "@mantine/core";
|
} from "@mantine/core";
|
||||||
import { Admin_ComponentLoadImageLandscape } from "../../_admin_global";
|
import { Admin_ComponentLoadImageLandscape } from "../../_admin_global";
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export default function ComponentAdminDonasi_CeritaPenggalangDana({
|
export default function ComponentAdminDonasi_CeritaPenggalangDana({
|
||||||
cerita,
|
cerita,
|
||||||
@@ -28,13 +28,13 @@ export default function ComponentAdminDonasi_CeritaPenggalangDana({
|
|||||||
<Title c={AdminColor.white} order={5}>
|
<Title c={AdminColor.white} order={5}>
|
||||||
Cerita Penggalang Dana
|
Cerita Penggalang Dana
|
||||||
</Title>
|
</Title>
|
||||||
<Comp_DangerouslySetInnerHTML props={cerita.pembukaan} />
|
<Comp_SetInnerHTML props={cerita.pembukaan} />
|
||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
<Admin_ComponentLoadImageLandscape fileId={cerita.imageId} />
|
<Admin_ComponentLoadImageLandscape fileId={cerita.imageId} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Comp_DangerouslySetInnerHTML props={cerita.cerita} />
|
<Comp_SetInnerHTML props={cerita.cerita} />
|
||||||
</Stack>
|
</Stack>
|
||||||
</Paper>
|
</Paper>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import moment from "moment";
|
|||||||
import "moment/locale/id";
|
import "moment/locale/id";
|
||||||
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
import { Admin_ComponentBoxStyle } from "../../_admin_global/_component/comp_admin_boxstyle";
|
||||||
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
function AdminEvent_ComponentDetailData({
|
function AdminEvent_ComponentDetailData({
|
||||||
data,
|
data,
|
||||||
@@ -57,7 +57,7 @@ function AdminEvent_ComponentDetailData({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Deskripsi",
|
label: "Deskripsi",
|
||||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi} />,
|
value: <Comp_SetInnerHTML props={data?.deskripsi} />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
import { AdminColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
import {
|
import {
|
||||||
MODEL_FORUM_KOMENTAR,
|
MODEL_FORUM_KOMENTAR,
|
||||||
MODEL_FORUM_POSTING,
|
MODEL_FORUM_POSTING,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import { ComponentAdminGlobal_TitlePage } from "../../_admin_global/_component";
|
|||||||
import { Admin_V3_ComponentPaginationBreakpoint } from "../../_components_v3/comp_pagination_breakpoint";
|
import { Admin_V3_ComponentPaginationBreakpoint } from "../../_components_v3/comp_pagination_breakpoint";
|
||||||
import ComponentAdminForum_ButtonDeletePosting from "../component/button_delete";
|
import ComponentAdminForum_ButtonDeletePosting from "../component/button_delete";
|
||||||
import { apiGetAdminForumPublish } from "../lib/api_fetch_admin_forum";
|
import { apiGetAdminForumPublish } from "../lib/api_fetch_admin_forum";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
import { Comp_V3_SetInnerHTMLWithStiker } from "@/app_modules/_global/component/new/comp_V3_set_html_with_stiker";
|
import { Comp_V3_SetInnerHTMLWithStiker } from "@/app_modules/_global/component/new/comp_V3_set_html_with_stiker";
|
||||||
import { AdminForum_CompTableSetHtmlStiker } from "../component/comp_table_set_html_stiker";
|
import { AdminForum_CompTableSetHtmlStiker } from "../component/comp_table_set_html_stiker";
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { Comp_V3_SetInnerHTMLWithStiker } from "@/app_modules/_global/component/new/comp_V3_set_html_with_stiker";
|
||||||
import { MODEL_VOTING } from "@/app_modules/vote/model/interface";
|
import { MODEL_VOTING } from "@/app_modules/vote/model/interface";
|
||||||
import { Badge, ScrollArea, Stack, Text } from "@mantine/core";
|
import { Badge, Stack, Text } from "@mantine/core";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
import { Admin_V3_ComponentDetail } from "../../_components_v3/comp_detail_data";
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ export function AdminVoting_ComponentDetail({ data }: Props) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Deskripsi",
|
title: "Deskripsi",
|
||||||
value: data.deskripsi,
|
value: <Comp_V3_SetInnerHTMLWithStiker props={data.deskripsi} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Awal voting",
|
title: "Awal voting",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import { ComponentGlobal_LoadImageLandscape } from "@/app_modules/_global/component";
|
import { ComponentGlobal_LoadImageLandscape } from "@/app_modules/_global/component";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
import { Comp_V3_SetInnerHTMLWithStiker } from "@/app_modules/_global/component/new/comp_V3_set_html_with_stiker";
|
import { Comp_V3_SetInnerHTMLWithStiker } from "@/app_modules/_global/component/new/comp_V3_set_html_with_stiker";
|
||||||
import { MODEL_CERITA_DONASI } from "@/app_modules/donasi/model/interface";
|
import { MODEL_CERITA_DONASI } from "@/app_modules/donasi/model/interface";
|
||||||
import { Stack, Text } from "@mantine/core";
|
import { Stack, Text } from "@mantine/core";
|
||||||
@@ -35,11 +35,11 @@ export default function CeritaPenggalangDonasi({
|
|||||||
<Text fw={"bold"}> #HaloOrangBaik</Text>
|
<Text fw={"bold"}> #HaloOrangBaik</Text>
|
||||||
{/* <Text>{data.pembukaan}</Text> */}
|
{/* <Text>{data.pembukaan}</Text> */}
|
||||||
|
|
||||||
<Comp_DangerouslySetInnerHTML props={data?.pembukaan} />
|
<Comp_SetInnerHTML props={data?.pembukaan} />
|
||||||
|
|
||||||
<ComponentGlobal_LoadImageLandscape fileId={data.imageId} />
|
<ComponentGlobal_LoadImageLandscape fileId={data.imageId} />
|
||||||
|
|
||||||
<Comp_DangerouslySetInnerHTML props={data?.cerita} />
|
<Comp_SetInnerHTML props={data?.cerita} />
|
||||||
|
|
||||||
{/* <Text>{data.cerita}</Text> */}
|
{/* <Text>{data.cerita}</Text> */}
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { Box, Group, Stack, Text, Title } from "@mantine/core";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { MODEL_EVENT } from "../_lib/interface";
|
import { MODEL_EVENT } from "../_lib/interface";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export default function ComponentEvent_BoxListStatus({
|
export default function ComponentEvent_BoxListStatus({
|
||||||
data,
|
data,
|
||||||
@@ -49,7 +49,7 @@ export default function ComponentEvent_BoxListStatus({
|
|||||||
</Text>
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
<Text fz={"sm"} lineClamp={2}>
|
<Text fz={"sm"} lineClamp={2}>
|
||||||
<Comp_DangerouslySetInnerHTML
|
<Comp_SetInnerHTML
|
||||||
props={data.deskripsi}
|
props={data.deskripsi}
|
||||||
style={{ height: 50 }}
|
style={{ height: 50 }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
import { Box, Group, Stack, Text, Title } from "@mantine/core";
|
import { Box, Group, Stack, Text, Title } from "@mantine/core";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -41,7 +41,7 @@ export function ComponentEvent_CardBeranda({ data }: { data: any }) {
|
|||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Text c={MainColor.white} fz={"sm"} lineClamp={4}>
|
<Text c={MainColor.white} fz={"sm"} lineClamp={4}>
|
||||||
<Comp_DangerouslySetInnerHTML
|
<Comp_SetInnerHTML
|
||||||
props={data.deskripsi}
|
props={data.deskripsi}
|
||||||
style={{ height: 50 }}
|
style={{ height: 50 }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { MODEL_EVENT } from "../../_lib/interface";
|
import { MODEL_EVENT } from "../../_lib/interface";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -44,7 +44,7 @@ export function ComponentEvent_CardRiwayat({ data }: { data: MODEL_EVENT }) {
|
|||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Text fz={"sm"} lineClamp={4}>
|
<Text fz={"sm"} lineClamp={4}>
|
||||||
<Comp_DangerouslySetInnerHTML
|
<Comp_SetInnerHTML
|
||||||
props={data.deskripsi}
|
props={data.deskripsi}
|
||||||
style={{ height: 50 }}
|
style={{ height: 50 }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
ComponentGlobal_BoxInformation,
|
ComponentGlobal_BoxInformation,
|
||||||
ComponentGlobal_CardStyles,
|
ComponentGlobal_CardStyles,
|
||||||
} from "@/app_modules/_global/component";
|
} from "@/app_modules/_global/component";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
||||||
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
||||||
import { SimpleGrid, Stack, Title } from "@mantine/core";
|
import { SimpleGrid, Stack, Title } from "@mantine/core";
|
||||||
@@ -41,7 +41,7 @@ export default function ComponentEvent_DetailData({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Deskripsi",
|
title: "Deskripsi",
|
||||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi ?? ""} />,
|
value: <Comp_SetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
ComponentGlobal_AvatarAndUsername,
|
ComponentGlobal_AvatarAndUsername,
|
||||||
ComponentGlobal_CardStyles,
|
ComponentGlobal_CardStyles,
|
||||||
} from "@/app_modules/_global/component";
|
} from "@/app_modules/_global/component";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
import { Component_V3_GridDetailData } from "@/app_modules/_global/component/new/comp_V3_grid_detail_data";
|
||||||
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
import { Component_V3_MomentDateAndTime } from "@/app_modules/_global/component/new/comp_V3_moment_date_and_time";
|
||||||
import { clientLogger } from "@/util/clientLogger";
|
import { clientLogger } from "@/util/clientLogger";
|
||||||
@@ -61,7 +61,7 @@ export default function ComponentEvent_DetailMainData() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Deskripsi",
|
title: "Deskripsi",
|
||||||
value: <Comp_DangerouslySetInnerHTML props={data?.deskripsi ?? ""} />,
|
value: <Comp_SetInnerHTML props={data?.deskripsi ?? ""} />,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
import { IconCircle } from "@tabler/icons-react";
|
import { IconCircle } from "@tabler/icons-react";
|
||||||
import { MODEL_VOTING } from "../../model/interface";
|
import { MODEL_VOTING } from "../../model/interface";
|
||||||
import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet";
|
import { AccentColor, MainColor } from "@/app_modules/_global/color/color_pallet";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export default function ComponentVote_DetailDataSebelumPublish
|
export default function ComponentVote_DetailDataSebelumPublish
|
||||||
({
|
({
|
||||||
@@ -37,7 +37,7 @@ export default function ComponentVote_DetailDataSebelumPublish
|
|||||||
{data?.title}
|
{data?.title}
|
||||||
</Title>
|
</Title>
|
||||||
</Center>
|
</Center>
|
||||||
<Comp_DangerouslySetInnerHTML props={data?.deskripsi} />
|
<Comp_SetInnerHTML props={data?.deskripsi} />
|
||||||
|
|
||||||
<Stack spacing={0} align="center">
|
<Stack spacing={0} align="center">
|
||||||
<Center>
|
<Center>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { Badge, Center, Group, Stack, Text, Title } from "@mantine/core";
|
|||||||
import { MODEL_VOTING } from "../../model/interface";
|
import { MODEL_VOTING } from "../../model/interface";
|
||||||
import moment from "moment"
|
import moment from "moment"
|
||||||
import "moment/locale/id"
|
import "moment/locale/id"
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export default function ComponentVote_DetailDataSetelahPublish({
|
export default function ComponentVote_DetailDataSetelahPublish({
|
||||||
data,
|
data,
|
||||||
@@ -34,7 +34,7 @@ export default function ComponentVote_DetailDataSetelahPublish({
|
|||||||
{data?.title}
|
{data?.title}
|
||||||
</Title>
|
</Title>
|
||||||
</Center>
|
</Center>
|
||||||
<Comp_DangerouslySetInnerHTML props={data?.deskripsi} />
|
<Comp_SetInnerHTML props={data?.deskripsi} />
|
||||||
|
|
||||||
<Stack spacing={0} pb={authorName ? 0 : "xs"}>
|
<Stack spacing={0} pb={authorName ? 0 : "xs"}>
|
||||||
<Stack align="center" spacing={"xs"}>
|
<Stack align="center" spacing={"xs"}>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import { Voting_ComponentSkeletonDetail } from "../../component/skeleton_view";
|
|||||||
import { Vote_funCreateHasil } from "../../fun/create/create_hasil";
|
import { Vote_funCreateHasil } from "../../fun/create/create_hasil";
|
||||||
import { MODEL_VOTING } from "../../model/interface";
|
import { MODEL_VOTING } from "../../model/interface";
|
||||||
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
import CustomSkeleton from "@/app_modules/components/CustomSkeleton";
|
||||||
import { Comp_DangerouslySetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
import { Comp_SetInnerHTML } from "@/app_modules/_global/component/new/comp_set_inner_html";
|
||||||
|
|
||||||
export default function Vote_MainDetail({
|
export default function Vote_MainDetail({
|
||||||
userLoginId,
|
userLoginId,
|
||||||
@@ -223,7 +223,7 @@ export default function Vote_MainDetail({
|
|||||||
{data?.title}
|
{data?.title}
|
||||||
</Title>
|
</Title>
|
||||||
</Center>
|
</Center>
|
||||||
<Comp_DangerouslySetInnerHTML props={data?.deskripsi} />
|
<Comp_SetInnerHTML props={data?.deskripsi} />
|
||||||
|
|
||||||
<Stack spacing={0}>
|
<Stack spacing={0}>
|
||||||
<Stack align="center" spacing={"xs"}>
|
<Stack align="center" spacing={"xs"}>
|
||||||
|
|||||||
Reference in New Issue
Block a user