mirror of
https://github.com/makeplane/plane.git
synced 2026-02-25 04:35:21 +01:00
* chore: added access for workspace admin to edit project settings * chore: workspace admin to update members details * chore: workspace admin to label, state, workflow settings * Revert "chore: added access for workspace admin to edit project settings" This reverts commit 803b56514887339d884eaef170de8a9e4ecfda8c. * chore: updated worspace admin access for projects * Revert "chore: workspace admin to update members details" This reverts commit ac465d618d7a89ef696db3484e515957b6b5e264. * Revert "chore: workspace admin to label, state, workflow settings" This reverts commit f01a89604e71792096cbae8e029cac160ea209fb. * chore: workspace admin access in permission classes and decorator * chore: check for teamspace members * chore: refactor permission logic * [WIKI-632] chore: accept additional props for document collaborative editor (#7718) * chore: add collaborative document editor extended props * fix: additional rich text extension props * fix: formatting * chore: add types to the trailing node extension --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> * [WEB-4854] chore: project admin accesss to workspace admins (#7749) * chore: project admin accesss to workspace admins * chore: frontend changes * chore: remove console.log * chore: refactor permission decorator * chore: role enum * chore: rearrange role_choices * Potential fix for code scanning alert no. 636: URL redirection from remote source (#7760) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * [WEB-4441]fix: members account type dropdown position #7759 * [WEB-4857] fix: applied filters root update #7750 * [WEB-4858]chore: updated content for error page (#7766) * chore: updated content for error page * chore: updated btn url * fix: merge conflicts * fix: merge conflicts * fix: use enum for roles --------- Co-authored-by: vamsikrishnamathala <matalav55@gmail.com> Co-authored-by: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com> Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com>
87 lines
2.8 KiB
TypeScript
87 lines
2.8 KiB
TypeScript
"use client";
|
|
|
|
import Image from "next/image";
|
|
import { useTheme } from "next-themes";
|
|
// layouts
|
|
import { Button } from "@plane/ui";
|
|
import { useAppRouter } from "@/hooks/use-app-router";
|
|
import DefaultLayout from "@/layouts/default-layout";
|
|
// images
|
|
import maintenanceModeDarkModeImage from "@/public/instance/maintenance-mode-dark.svg";
|
|
import maintenanceModeLightModeImage from "@/public/instance/maintenance-mode-light.svg";
|
|
|
|
const linkMap = [
|
|
{
|
|
key: "mail_to",
|
|
label: "Contact Support",
|
|
value: "mailto:support@plane.so",
|
|
},
|
|
{
|
|
key: "status",
|
|
label: "Status Page",
|
|
value: "https://status.plane.so/",
|
|
},
|
|
{
|
|
key: "twitter_handle",
|
|
label: "@planepowers",
|
|
value: "https://x.com/planepowers",
|
|
},
|
|
];
|
|
|
|
export default function CustomErrorComponent() {
|
|
// hooks
|
|
const { resolvedTheme } = useTheme();
|
|
const router = useAppRouter();
|
|
|
|
// derived values
|
|
const maintenanceModeImage = resolvedTheme === "dark" ? maintenanceModeDarkModeImage : maintenanceModeLightModeImage;
|
|
|
|
return (
|
|
<DefaultLayout>
|
|
<div className="relative container mx-auto h-full w-full max-w-xl flex flex-col gap-2 items-center justify-center gap-y-6 bg-custom-background-100 text-center px-6">
|
|
<div className="relative w-full">
|
|
<Image
|
|
src={maintenanceModeImage}
|
|
height="176"
|
|
width="288"
|
|
alt="ProjectSettingImg"
|
|
className="w-full h-full object-fill object-center"
|
|
/>
|
|
</div>
|
|
<div className="w-full relative flex flex-col gap-4 mt-4">
|
|
<div className="flex flex-col gap-2.5">
|
|
<h1 className="text-xl font-semibold text-custom-text-100 text-left">
|
|
🚧 Looks like something went wrong!
|
|
</h1>
|
|
<span className="text-base font-medium text-custom-text-200 text-left">
|
|
We track these errors automatically and working on getting things back up and running. If the problem
|
|
persists feel free to contact us. In the meantime, try refreshing.
|
|
</span>
|
|
</div>
|
|
|
|
<div className="flex items-center justify-start gap-6 mt-1">
|
|
{linkMap.map((link) => (
|
|
<div key={link.key}>
|
|
<a
|
|
href={link.value}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-custom-primary-100 hover:underline text-sm"
|
|
>
|
|
{link.label}
|
|
</a>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
<div className="flex items-center justify-start gap-6">
|
|
<Button variant="primary" size="md" onClick={() => router.push("/")}>
|
|
Go to home
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DefaultLayout>
|
|
);
|
|
}
|