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
|
|
@ -1,8 +1,8 @@
|
|||
import { observer } from "mobx-react";
|
||||
// components
|
||||
import { BulkOperationsUpgradeBanner } from "@/components/issues";
|
||||
import { BulkOperationsUpgradeBanner } from "@/components/issues/bulk-operations/upgrade-banner";
|
||||
// hooks
|
||||
import { useMultipleSelectStore } from "@/hooks/store";
|
||||
import { useMultipleSelectStore } from "@/hooks/store/use-multiple-select-store";
|
||||
import { TSelectionHelper } from "@/hooks/use-multiple-select";
|
||||
|
||||
type Props = {
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
export * from "./issue-types";
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
export * from "./applied-filters";
|
||||
export * from "./issue-types";
|
||||
export * from "./team-project";
|
||||
|
|
@ -17,13 +17,15 @@ import { useTranslation } from "@plane/i18n";
|
|||
import { EIssuesStoreType } from "@plane/types";
|
||||
import { Breadcrumbs, Button, Tooltip, Header } from "@plane/ui";
|
||||
// components
|
||||
import { CountChip } from "@/components/common";
|
||||
import { CountChip } from "@/components/common/count-chip";
|
||||
// constants
|
||||
import HeaderFilters from "@/components/issues/filters";
|
||||
import { HeaderFilters } from "@/components/issues/filters";
|
||||
// helpers
|
||||
// hooks
|
||||
import { useProject, useCommandPalette, useUserPermissions } from "@/hooks/store";
|
||||
import { useCommandPalette } from "@/hooks/store/use-command-palette";
|
||||
import { useIssues } from "@/hooks/store/use-issues";
|
||||
import { useProject } from "@/hooks/store/use-project";
|
||||
import { useUserPermissions } from "@/hooks/store/user";
|
||||
import { useAppRouter } from "@/hooks/use-app-router";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// plane web
|
||||
|
|
|
|||
|
|
@ -1,7 +0,0 @@
|
|||
export * from "./bulk-operations";
|
||||
export * from "./worklog";
|
||||
export * from "./issue-modal";
|
||||
export * from "./issue-details";
|
||||
export * from "./quick-add";
|
||||
export * from "./filters";
|
||||
export * from "./header";
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { FC } from "react";
|
||||
import Link from "next/link";
|
||||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
|
||||
type TIssueUser = {
|
||||
activityId: string;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ import { setToast, TOAST_TYPE, Tooltip } from "@plane/ui";
|
|||
// helpers
|
||||
import { cn } from "@plane/utils";
|
||||
// hooks
|
||||
import { useIssueDetail, useProject } from "@/hooks/store";
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
import { useProject } from "@/hooks/store/use-project";
|
||||
|
||||
type TIssueIdentifierBaseProps = {
|
||||
projectId: string;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { observer } from "mobx-react";
|
||||
// store hooks
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
// plane web components
|
||||
import { IssueIdentifier } from "@/plane-web/components/issues";
|
||||
import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier";
|
||||
|
||||
export type TIssueTypeSwitcherProps = {
|
||||
issueId: string;
|
||||
|
|
|
|||
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
// plane imports
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
// ui
|
||||
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||
// components
|
||||
import { IssueParentSelect, TIssueOperations } from "@/components/issues";
|
||||
import type { TIssueOperations } from "@/components/issues/issue-detail";
|
||||
import { IssueParentSelect } from "@/components/issues/issue-detail/parent-select";
|
||||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||
|
||||
type TIssueParentSelect = {
|
||||
className?: string;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import {
|
|||
SpreadsheetStateColumn,
|
||||
SpreadsheetSubIssueColumn,
|
||||
SpreadsheetUpdatedOnColumn,
|
||||
} from "@/components/issues/issue-layouts/spreadsheet";
|
||||
} from "@/components/issues/issue-layouts/spreadsheet/columns";
|
||||
// store
|
||||
import { store } from "@/lib/store-context";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Control } from "react-hook-form";
|
||||
// plane imports
|
||||
import { EditorRefApi } from "@plane/editor";
|
||||
import type { EditorRefApi } from "@plane/editor";
|
||||
// types
|
||||
import { TBulkIssueProperties, TIssue } from "@plane/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { observer } from "mobx-react";
|
|||
// plane imports
|
||||
import { ISearchIssueResponse, TIssue } from "@plane/types";
|
||||
// components
|
||||
import { IssueModalContext } from "@/components/issues";
|
||||
import { IssueModalContext } from "@/components/issues/issue-modal/context";
|
||||
// hooks
|
||||
import { useUser } from "@/hooks/store/user/user-user";
|
||||
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ import {
|
|||
ListQuickAddIssueForm,
|
||||
SpreadsheetQuickAddIssueForm,
|
||||
TQuickAddIssueForm,
|
||||
} from "@/components/issues/issue-layouts";
|
||||
} from "@/components/issues/issue-layouts/quick-add";
|
||||
// hooks
|
||||
import { useProject } from "@/hooks/store";
|
||||
import { useProject } from "@/hooks/store/use-project";
|
||||
import useKeypress from "@/hooks/use-keypress";
|
||||
|
||||
export type TQuickAddIssueFormRoot = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
"use client";
|
||||
|
||||
import { FC } from "react";
|
||||
// components
|
||||
// plane imports
|
||||
import { TActivityFilters, ACTIVITY_FILTER_TYPE_OPTIONS, TActivityFilterOption } from "@plane/constants";
|
||||
import { ActivityFilter } from "@/components/issues";
|
||||
// plane web constants
|
||||
// components
|
||||
import { ActivityFilter } from "@/components/issues/issue-detail/issue-activity";
|
||||
|
||||
export type TActivityFilterRoot = {
|
||||
selectedFilters: TActivityFilters[];
|
||||
|
|
|
|||
|
|
@ -1,4 +1 @@
|
|||
export * from "./root";
|
||||
export * from "./worklog-create-button";
|
||||
|
||||
export * from "./filter-root";
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
export * from "./property";
|
||||
export * from "./activity";
|
||||
Loading…
Add table
Add a link
Reference in a new issue