refactor: remove barrel exports from web app (#7577)
* refactor: remove barrel exports from some compoennt modules * refactor: remove barrel exports from issue components * refactor: remove barrel exports from page components * chore: update type improts * refactor: remove barrel exports from cycle components * refactor: remove barrel exports from dropdown components * refactor: remove barrel exports from ce components * refactor: remove barrel exports from some more components * refactor: remove barrel exports from profile and sidebar components * chore: update type imports * refactor: remove barrel exports from store hooks * chore: dynamically load sticky editor * fix: lint * chore: revert sticky dynamic import * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
9cf564caae
commit
3391e8580c
1103 changed files with 3036 additions and 3286 deletions
|
|
@ -15,7 +15,7 @@ import { TCycleGroups } from "@plane/types";
|
|||
// ui
|
||||
import { ContrastIcon, CycleGroupIcon } from "@plane/ui";
|
||||
// store hooks
|
||||
import { useCycle } from "@/hooks/store";
|
||||
import { useCycle } from "@/hooks/store/use-cycle";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// types
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { ComboDropDown, ContrastIcon } from "@plane/ui";
|
|||
// helpers
|
||||
import { cn } from "@plane/utils";
|
||||
// hooks
|
||||
import { useCycle } from "@/hooks/store";
|
||||
import { useCycle } from "@/hooks/store/use-cycle";
|
||||
import { useDropdown } from "@/hooks/use-dropdown";
|
||||
// local components and constants
|
||||
import { DropdownButton } from "../buttons";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { ComboDropDown, Calendar } from "@plane/ui";
|
|||
import { cn, renderFormattedDate, getDate } from "@plane/utils";
|
||||
// helpers
|
||||
// hooks
|
||||
import { useUserProfile } from "@/hooks/store";
|
||||
import { useUserProfile } from "@/hooks/store/user";
|
||||
import { useDropdown } from "@/hooks/use-dropdown";
|
||||
// components
|
||||
import { DropdownButton } from "./buttons";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@ import { EEstimateSystem } from "@plane/types";
|
|||
import { ComboDropDown } from "@plane/ui";
|
||||
import { convertMinutesToHoursMinutesString, cn } from "@plane/utils";
|
||||
// hooks
|
||||
import { useEstimate, useProjectEstimates } from "@/hooks/store";
|
||||
import { useEstimate } from "@/hooks/store/estimates/use-estimate";
|
||||
import { useProjectEstimates } from "@/hooks/store/estimates";
|
||||
import { useDropdown } from "@/hooks/use-dropdown";
|
||||
// components
|
||||
import { DropdownButton } from "./buttons";
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
export * from "./member/dropdown";
|
||||
export * from "./cycle";
|
||||
export * from "./date-range";
|
||||
export * from "./date";
|
||||
export * from "./estimate";
|
||||
export * from "./merged-date";
|
||||
export * from "./module/dropdown";
|
||||
export * from "./priority";
|
||||
export * from "./project/dropdown";
|
||||
export * from "./state/dropdown";
|
||||
|
|
@ -1,18 +1,14 @@
|
|||
import { useCallback, useMemo } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Check } from "lucide-react";
|
||||
// plane constants
|
||||
// plane imports
|
||||
import { ISSUE_LAYOUT_MAP } from "@plane/constants";
|
||||
// plane i18n
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
// plane ui
|
||||
import { Dropdown } from "@plane/ui";
|
||||
// plane utils
|
||||
import { cn } from "@plane/utils";
|
||||
// types
|
||||
import { EIssueLayoutTypes } from "@plane/types";
|
||||
import { Dropdown } from "@plane/ui";
|
||||
import { cn } from "@plane/utils";
|
||||
// components
|
||||
import { IssueLayoutIcon } from "@/components/issues";
|
||||
import { IssueLayoutIcon } from "@/components/issues/issue-layouts/layout-icon";
|
||||
|
||||
type TLayoutDropDown = {
|
||||
onChange: (value: EIssueLayoutTypes) => void;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { cn, getFileURL } from "@plane/utils";
|
|||
// plane utils
|
||||
// helpers
|
||||
// hooks
|
||||
import { useMember } from "@/hooks/store";
|
||||
import { useMember } from "@/hooks/store/use-member";
|
||||
|
||||
type AvatarProps = {
|
||||
showTooltip: boolean;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { observer } from "mobx-react";
|
|||
import { useParams } from "next/navigation";
|
||||
import { LucideIcon } from "lucide-react";
|
||||
// hooks
|
||||
import { useMember } from "@/hooks/store";
|
||||
import { useMember } from "@/hooks/store/use-member";
|
||||
// local imports
|
||||
import { MemberDropdownBase } from "./base";
|
||||
import { MemberDropdownProps } from "./types";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { useTranslation } from "@plane/i18n";
|
|||
import { Avatar } from "@plane/ui";
|
||||
import { cn, getFileURL } from "@plane/utils";
|
||||
// hooks
|
||||
import { useUser } from "@/hooks/store";
|
||||
import { useUser } from "@/hooks/store/user";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
import { IUserLite } from "@plane/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { ChevronDown, X } from "lucide-react";
|
|||
import { DiceIcon, Tooltip } from "@plane/ui";
|
||||
import { cn } from "@plane/utils";
|
||||
// hooks
|
||||
import { useModule } from "@/hooks/store";
|
||||
import { useModule } from "@/hooks/store/use-module";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
|
||||
type ModuleButtonContentProps = {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { ReactNode } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
// hooks
|
||||
import { useModule } from "@/hooks/store";
|
||||
import { useModule } from "@/hooks/store/use-module";
|
||||
// types
|
||||
import { TDropdownProps } from "../types";
|
||||
// local imports
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { useTranslation } from "@plane/i18n";
|
|||
import { ComboDropDown } from "@plane/ui";
|
||||
import { cn } from "@plane/utils";
|
||||
// components
|
||||
import { Logo } from "@/components/common";
|
||||
import { Logo } from "@/components/common/logo";
|
||||
// hooks
|
||||
import { useDropdown } from "@/hooks/use-dropdown";
|
||||
// plane web imports
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { ReactNode } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
// hooks
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { useProject } from "@/hooks/store/use-project";
|
||||
// local imports
|
||||
import { TDropdownProps } from "../types";
|
||||
import { ProjectDropdownBase } from "./base";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useState } from "react";
|
|||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
// hooks
|
||||
import { useProjectState } from "@/hooks/store";
|
||||
import { useProjectState } from "@/hooks/store/use-project-state";
|
||||
// local imports
|
||||
import { WorkItemStateDropdownBase, TWorkItemStateDropdownBaseProps } from "./base";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue