deskripsi:
- pindah lib di dalam app ke src ( lib setara app dan app_modules )
This commit is contained in:
2025-02-12 10:57:10 +08:00
parent 8651357a3d
commit f419559379
904 changed files with 1129 additions and 1072 deletions

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
export async function Event_countTotalPesertaById(eventId: string) {
const data = await prisma.event_Peserta.count({

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { MODEL_EVENT } from "../../_lib/interface";
import { revalidatePath } from "next/cache";
import _ from "lodash";

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
import { revalidatePath } from "next/cache";

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { MODEL_EVENT_PESERTA } from "../../_lib/interface";
import { revalidatePath } from "next/cache";

View File

@@ -1,7 +1,7 @@
"use server";
import prisma from "@/app/lib/prisma";
import { RouterEvent } from "@/app/lib/router_hipmi/router_event";
import prisma from "@/lib/prisma";
import { RouterEvent } from "@/lib/router_hipmi/router_event";
import { revalidatePath } from "next/cache";
export async function Event_funDeleteById(eventId: string) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import _ from "lodash";
import { revalidatePath } from "next/cache";
import { MODEL_EVENT } from "../../_lib/interface";

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { revalidatePath } from "next/cache";
/**

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
export async function event_funUpdateKehadiran({
userId,

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
export async function Event_CekUserJoinById(eventId: string, userId: string) {
const cek = await prisma.event_Peserta.count({

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
export async function event_funCheckKehadiran({
userId,

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
export async function event_funCheckPesertaByUserId({
userId,

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
export async function event_checkStatus({ id }: { id: string }) {
const checkStatus = await prisma.event.findFirst({

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import _ from "lodash";
import moment from "moment";

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getListKontibusiByUserId({

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
export async function Event_getListPesertaById(eventId: string) {
const data = await prisma.event_Peserta.findMany({

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { revalidatePath } from "next/cache";
export async function event_getOneById(eventId: string) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
export async function event_newGetListPesertaById({
eventId,

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getListRiwayatSaya({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import _ from "lodash";
export async function event_getListSemuaRiwayat({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getAllByStatusId({

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getAllDraft({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getAllReject({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_getAllReview({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import prisma from "@/app/lib/prisma";
import prisma from "@/lib/prisma";
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
export async function event_funGetAllStatusPublish({ page }: { page: number }) {

View File

@@ -1,6 +1,6 @@
"use server";
import { prisma } from "@/app/lib";
import { prisma } from "@/lib";
export async function event_getMasterStatus() {
const data = await prisma.eventMaster_Status.findMany({});

View File

@@ -1,6 +1,6 @@
"use server"
import prisma from "@/app/lib/prisma"
import prisma from "@/lib/prisma"
export async function Event_getMasterTipeAcara(){
const data = await prisma.eventMaster_TipeAcara.findMany({