fix: eslint fixes and file formatting
This commit is contained in:
parent
473dfc7a5b
commit
53ddef1cd5
954 changed files with 3921 additions and 3809 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import { FC, useState } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { Eye, EyeOff } from "lucide-react";
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceAIForm {
|
||||
config: IFormattedInstanceConfiguration;
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import { FC, useState } from "react";
|
|||
import { Controller, useForm } from "react-hook-form";
|
||||
// ui
|
||||
import { Eye, EyeOff } from "lucide-react";
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { Button, Input, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceEmailForm {
|
||||
config: IFormattedInstanceConfiguration;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { FC } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { IInstance, IInstanceAdmin } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IInstance, IInstanceAdmin } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceGeneralForm {
|
||||
instance: IInstance;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { FC, useState } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { Copy, Eye, EyeOff } from "lucide-react";
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceGithubConfigForm {
|
||||
config: IFormattedInstanceConfiguration;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { FC } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { Copy } from "lucide-react";
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceGoogleConfigForm {
|
||||
config: IFormattedInstanceConfiguration;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { FC, useState, useRef } from "react";
|
||||
import Link from "next/link";
|
||||
import { Transition } from "@headlessui/react";
|
||||
import { FileText, HelpCircle, MessagesSquare, MoveLeft } from "lucide-react";
|
||||
import { Transition } from "@headlessui/react";
|
||||
// hooks
|
||||
import { DiscordIcon, GithubIcon } from "@plane/ui";
|
||||
import { useApplication } from "hooks/store";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// icons
|
||||
// assets
|
||||
import packageJson from "package.json";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { FC, useState } from "react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
import { Eye, EyeOff } from "lucide-react";
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
// ui
|
||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// types
|
||||
import { IFormattedInstanceConfiguration } from "@plane/types";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// hooks
|
||||
import { useApplication } from "hooks/store";
|
||||
|
||||
export interface IInstanceImageConfigForm {
|
||||
config: IFormattedInstanceConfiguration;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useTheme } from "next-themes";
|
|||
// hooks
|
||||
import { UserCog2 } from "lucide-react";
|
||||
import { Button } from "@plane/ui";
|
||||
import { useApplication } from "hooks/store";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
// ui
|
||||
// images
|
||||
import instanceSetupDone from "public/instance-setup-done.webp";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useState } from "react";
|
||||
// components
|
||||
import { LatestFeatureBlock } from "components/common";
|
||||
import { InstanceSetupDone, InstanceSetupSignInForm } from "components/instance";
|
||||
import { LatestFeatureBlock } from "@/components/common";
|
||||
import { InstanceSetupDone, InstanceSetupSignInForm } from "@/components/instance";
|
||||
|
||||
export enum EInstanceSetupSteps {
|
||||
SIGN_IN = "SIGN_IN",
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import { Eye, EyeOff, XCircle } from "lucide-react";
|
|||
// ui
|
||||
import { Input, Button, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// helpers
|
||||
import { checkEmailValidity } from "helpers/string.helper";
|
||||
import { checkEmailValidity } from "@/helpers/string.helper";
|
||||
// hooks
|
||||
import { useUser } from "hooks/store";
|
||||
import { useUser } from "@/hooks/store";
|
||||
// services
|
||||
import { AuthService } from "services/auth.service";
|
||||
import { AuthService } from "@/services/auth.service";
|
||||
const authService = new AuthService();
|
||||
|
||||
interface InstanceSetupEmailFormValues {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { useEffect, useCallback } from "react";
|
|||
import { observer } from "mobx-react-lite";
|
||||
import Image from "next/image";
|
||||
// components
|
||||
import { InstanceSetupFormRoot } from "components/instance";
|
||||
import { InstanceSetupFormRoot } from "@/components/instance";
|
||||
// hooks
|
||||
import { useUser } from "hooks/store";
|
||||
import { useUser } from "@/hooks/store";
|
||||
// images
|
||||
import BluePlaneLogoWithoutText from "public/plane-logos/blue-without-text.png";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ import { useRouter } from "next/router";
|
|||
import { useTheme } from "next-themes";
|
||||
import { mutate } from "swr";
|
||||
// components
|
||||
import { LogIn, LogOut, Settings, UserCog2 } from "lucide-react";
|
||||
import { Menu, Transition } from "@headlessui/react";
|
||||
// icons
|
||||
import { LogIn, LogOut, Settings, UserCog2 } from "lucide-react";
|
||||
// hooks
|
||||
import { usePlatformOS } from "hooks/use-platform-os";
|
||||
import { Avatar, Tooltip, TOAST_TYPE, setToast } from "@plane/ui";
|
||||
import { useApplication, useUser } from "hooks/store";
|
||||
import { useApplication, useUser } from "@/hooks/store";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// ui
|
||||
|
||||
// Static Data
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import Link from "next/link";
|
|||
import { useRouter } from "next/router";
|
||||
import { Image, BrainCog, Cog, Lock, Mail } from "lucide-react";
|
||||
// hooks
|
||||
import { usePlatformOS } from "hooks/use-platform-os";
|
||||
import { Tooltip } from "@plane/ui";
|
||||
import { useApplication } from "hooks/store";
|
||||
import { useApplication } from "@/hooks/store";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// ui
|
||||
|
||||
const INSTANCE_ADMIN_LINKS = [
|
||||
|
|
@ -57,7 +57,13 @@ export const InstanceAdminSidebarMenu = () => {
|
|||
return (
|
||||
<Link key={index} href={item.href}>
|
||||
<div>
|
||||
<Tooltip tooltipContent={item.name} position="right" className="ml-2" disabled={!sidebarCollapsed} isMobile={isMobile}>
|
||||
<Tooltip
|
||||
tooltipContent={item.name}
|
||||
position="right"
|
||||
className="ml-2"
|
||||
disabled={!sidebarCollapsed}
|
||||
isMobile={isMobile}
|
||||
>
|
||||
<div
|
||||
className={`group flex w-full items-center gap-3 rounded-md px-3 py-2 outline-none ${
|
||||
isActive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue