mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-06-29 15:47:09 +00:00
TEMPORARY FIX TO TEST BUILD
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m15s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m15s
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
import SignUpForm from "@/components/auth/signup-form";
|
||||
import type { ApiResponse, Atoll, Island } from "@/lib/backend-types";
|
||||
import { getAtolls } from "@/queries/islands";
|
||||
import Image from "next/image";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
@ -9,18 +7,23 @@ export default async function SignupPage({
|
||||
}: {
|
||||
searchParams: Promise<{ phone_number: string }>;
|
||||
}) {
|
||||
|
||||
const phone_number = (await searchParams).phone_number;
|
||||
console.log({ phone_number })
|
||||
console.log({ phone_number });
|
||||
if (!phone_number) {
|
||||
return redirect("/auth/login");
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div className="dark:bg-black w-full h-screen flex items-center justify-center font-sans">
|
||||
<div className="flex flex-col items-center justify-center w-full h-full ">
|
||||
<Image priority alt="Sar Link Logo" src="/logo.png" width={100} height={100} style={{ width: "auto", height: "auto" }} />
|
||||
<Image
|
||||
priority
|
||||
alt="Sar Link Logo"
|
||||
src="/logo.png"
|
||||
width={100}
|
||||
height={100}
|
||||
style={{ width: "auto", height: "auto" }}
|
||||
/>
|
||||
<div className="mt-4 flex flex-col items-center justify-center">
|
||||
<h4 className="font-bold text-xl text-gray-600">SAR Link Portal</h4>
|
||||
<p className="text-gray-500">
|
||||
|
@ -2,10 +2,8 @@ import { getPayment } from "@/actions/payment";
|
||||
import { authOptions } from "@/app/auth";
|
||||
import CancelPaymentButton from "@/components/billing/cancel-payment-button";
|
||||
import DevicesToPay from "@/components/devices-to-pay";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { tryCatch } from "@/utils/tryCatch";
|
||||
import { Trash2 } from "lucide-react";
|
||||
import { getServerSession } from "next-auth";
|
||||
export default async function PaymentPage({
|
||||
params,
|
||||
|
@ -1,11 +1,3 @@
|
||||
import InputReadOnly from "@/components/input-read-only";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import UserRejectDialog from "@/components/user/user-reject-dialog";
|
||||
import { UserVerifyDialog } from "@/components/user/user-verify-dialog";
|
||||
import { getNationalPerson } from "@/lib/person";
|
||||
|
||||
import Image from "next/image";
|
||||
|
||||
export default async function VerifyUserPage({
|
||||
params,
|
||||
}: {
|
||||
@ -14,6 +6,7 @@ export default async function VerifyUserPage({
|
||||
}>;
|
||||
}) {
|
||||
const userId = (await params).userId;
|
||||
console.log("userId", userId);
|
||||
// const dbUser = await prisma.user.findUnique({
|
||||
// where: {
|
||||
// id: userId,
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { Rejectuser } from "@/actions/user-actions";
|
||||
import Filter from "@/components/filter";
|
||||
import Search from "@/components/search";
|
||||
import { UsersTable } from "@/components/user-table";
|
||||
@ -9,8 +8,7 @@ import {
|
||||
Hourglass,
|
||||
Minus,
|
||||
} from "lucide-react";
|
||||
import { redirect } from "next/navigation";
|
||||
import React, { Suspense } from "react";
|
||||
import { Suspense } from "react";
|
||||
|
||||
const sortfilterOptions = [
|
||||
{
|
||||
|
@ -1,10 +1,5 @@
|
||||
import { blockDevice } from "@/actions/omada-actions";
|
||||
import { validateApiKey } from "@/lib/utils";
|
||||
import { addDays, addMonths, isAfter, isWithinInterval } from "date-fns";
|
||||
|
||||
const lastRunTime = new Date();
|
||||
|
||||
export async function GET(request: Request) {
|
||||
console.log(request.url);
|
||||
return Response.json({ message: "Request received" });
|
||||
// try {
|
||||
// // Validate API key before proceeding
|
||||
|
6
app/next-auth.d.ts
vendored
6
app/next-auth.d.ts
vendored
@ -1,5 +1,7 @@
|
||||
import NextAuth, { DefaultSession, type User } from "next-auth";
|
||||
import { Session } from "next-auth";
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
// @ts-expect-error importing unused types are required here
|
||||
import NextAuth, { DefaultSession, type User, Session } from "next-auth";
|
||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||
declare module "next-auth" {
|
||||
/**
|
||||
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
|
||||
|
Reference in New Issue
Block a user