fix: remove barrel files

This commit is contained in:
sriram veeraghanta
2025-05-26 00:25:26 +05:30
parent 96eee6e063
commit d2c2331986
48 changed files with 37 additions and 222 deletions

View File

@@ -6,8 +6,8 @@ import { useParams } from "next/navigation";
import { EmptyState } from "@/components/common/empty-state";
import { PageHead } from "@/components/core/page-title";
import useCyclesDetails from "@/components/cycles/active-cycle/use-cycles-details";
import { CycleDetailsSidebar } from "@/components/cycles/cycle-details/cycle-details-sidebar";
import { CycleLayoutRoot } from "@/components/issues/issue-layouts/cycle-layout-root";
import { CycleDetailsSidebar } from "@/components/cycles/analytics-sidebar/root";
import { CycleLayoutRoot } from "@/components/issues/issue-layouts/roots/cycle-layout-root";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks

View File

@@ -4,7 +4,7 @@ import useSWR from "swr";
import { useTranslation } from "@plane/i18n";
import { IWorkspaceMemberInvitation } from "@plane/types";
// components
import { LogoSpinner } from "@/components/common";
import { LogoSpinner } from "@/components/common/logo-spinner";
import { WorkspaceLogo } from "@/components/workspace/logo";
// helpers
import { EAuthModes, EAuthSteps } from "@/helpers/authentication.helper";

View File

@@ -3,16 +3,6 @@ import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
import { useTranslation } from "@plane/i18n";
import { IEmailCheckData } from "@plane/types";
// components
import {
AuthHeader,
AuthBanner,
AuthEmailForm,
AuthPasswordForm,
AuthUniqueCodeForm,
} from "@/components/account/auth-forms";
import { OAuthOptions } from "@/components/account/oauth/oauth-options";
import { TermsAndConditions } from "@/components/account/terms-and-conditions";
// helpers
import {
EAuthModes,
@@ -27,6 +17,14 @@ import { useInstance } from "@/hooks/store/use-instance";
import { useAppRouter } from "@/hooks/use-app-router";
// services
import { AuthService } from "@/services/auth.service";
// components
import { OAuthOptions } from "../oauth/oauth-options";
import { TermsAndConditions } from "../terms-and-conditions";
import { AuthBanner } from "./auth-banner";
import { AuthHeader } from "./auth-header";
import { AuthEmailForm } from "./email";
import { AuthPasswordForm } from "./password";
import { AuthUniqueCodeForm } from "./unique-code";
const authService = new AuthService();

View File

@@ -5,9 +5,10 @@ import { observer } from "mobx-react";
// ui
import { Loader } from "@plane/ui";
// components
import { CycleAnalyticsProgress, CycleSidebarHeader, CycleSidebarDetails } from "@/components/cycles";
// hooks
import useCyclesDetails from "../active-cycle/use-cycles-details";
import { CycleAnalyticsProgress } from "./issue-progress";
import { CycleSidebarDetails } from "./sidebar-details";
import { CycleSidebarHeader } from "./sidebar-header";
type Props = {
handleClose: () => void;

View File

@@ -1,3 +0,0 @@
export * from "./product-updates";
export * from "./timezone-select";

View File

@@ -1,2 +0,0 @@
export * from "./modal";
export * from "./footer";

View File

@@ -1 +0,0 @@
export * from "./issues-by-priority";

View File

@@ -1,3 +0,0 @@
export * from "./widgets";
export * from "./home-dashboard-widgets";
export * from "./root";

View File

@@ -1,4 +0,0 @@
export * from "./links";
export * from "./no-projects";
export * from "./recents";
export * from "./stickies";

View File

@@ -1,4 +0,0 @@
export * from "./empty-states";
export * from "./loaders";
export * from "./recents";
export * from "./empty-states";

View File

@@ -1,3 +0,0 @@
export * from "./root";
export * from "./links";
export * from "./link-detail";

View File

@@ -1,2 +0,0 @@
export * from "./loader";
export * from "./home-loader";

View File

@@ -13,8 +13,8 @@ import { LayersIcon } from "@plane/ui";
import { ContentOverflowWrapper } from "@/components/core/content-overflow-HOC";
// plane web services
import { WorkspaceService } from "@/plane-web/services";
import { RecentsEmptyState } from "../empty-states";
import { EWidgetKeys, WidgetLoader } from "../loaders";
import { RecentsEmptyState } from "../empty-states/recents";
import { EWidgetKeys, WidgetLoader } from "../loaders/loader";
import { FiltersDropdown } from "./filters";
import { RecentIssue } from "./issue";
import { RecentPage } from "./page";

View File

@@ -1,22 +0,0 @@
export * from "./attachment-icon";
export * from "./audio-file-icon";
export * from "./css-file-icon";
export * from "./csv-file-icon";
export * from "./default-file-icon";
export * from "./doc-file-icon";
export * from "./document-icon";
export * from "./figma-file-icon";
export * from "./html-file-icon";
export * from "./img-file-icon";
export * from "./jpg-file-icon";
export * from "./js-file-icon";
export * from "./pdf-file-icon";
export * from "./png-file-icon";
export * from "./setting-icon";
export * from "./sheet-file-icon";
export * from "./svg-file-icon";
export * from "./tune-icon";
export * from "./txt-file-icon";
export * from "./video-file-icon";
export * from "./zip-file-icon";
export * from "./rar-file-icon";

View File

@@ -1,5 +0,0 @@
export * from "./root";
export * from "./inbox-issue-header";
export * from "./inbox-issue-mobile-header";
export * from "./issue-properties";
export * from "./issue-root";

View File

@@ -1,7 +0,0 @@
export * from "./root";
export * from "./status";
export * from "./state";
export * from "./priority";
export * from "./member";
export * from "./label";
export * from "./date";

View File

@@ -1,7 +0,0 @@
export * from "./filter-selection";
export * from "./status";
export * from "./state";
export * from "./priority";
export * from "./labels";
export * from "./members";
export * from "./date";

View File

@@ -4,7 +4,8 @@ import { observer } from "mobx-react";
import { INBOX_STATUS, TInboxIssueStatus } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// components
import { FilterHeader, FilterOption } from "@/components/issues";
import { FilterHeader } from "@/components/issues/issue-layouts/filters/header/helpers/filter-header";
import { FilterOption } from "@/components/issues/issue-layouts/filters/header/helpers/filter-option";
// constants
// hooks
import { useProjectInbox } from "@/hooks/store/use-project-inbox";

View File

@@ -1,4 +0,0 @@
export * from "./root";
export * from "./filters";
export * from "./sorting";
export * from "./applied-filters";

View File

@@ -1 +0,0 @@
export * from "./order-by";

View File

@@ -1,6 +0,0 @@
export * from "./root";
export * from "./modals";
export * from "./sidebar";
export * from "./inbox-filter";
export * from "./content";
export * from "./inbox-issue-status";

View File

@@ -1,5 +0,0 @@
export * from "./modal";
export * from "./create-root";
export * from "./issue-title";
export * from "./issue-description";
export * from "./issue-properties";

View File

@@ -1,5 +0,0 @@
export * from "./create-modal";
export * from "./decline-issue-modal";
export * from "./delete-issue-modal";
export * from "./select-duplicate";
export * from "./snooze-issue-modal";

View File

@@ -1,3 +0,0 @@
export * from "./root";
export * from "./inbox-list";
export * from "./inbox-list-item";

View File

@@ -16,7 +16,10 @@ import { IImporterService } from "@plane/types";
// ui
import { Button } from "@plane/ui";
// components
import { DeleteImportModal, GithubImporterRoot, JiraImporterRoot, SingleImport } from "@/components/integration";
import { DeleteImportModal } from "@/components/integration/delete-import-modal";
import { GithubImporterRoot } from "@/components/integration/github";
import { JiraImporterRoot } from "@/components/integration/jira";
import { SingleImport } from "@/components/integration/single-import";
import { ImportExportSettingsLoader } from "@/components/ui";
// constants
import { IMPORTER_SERVICES_LIST } from "@/constants/fetch-keys";

View File

@@ -1,12 +0,0 @@
// layout
export * from "./delete-import-modal";
export * from "./guide";
export * from "./single-import";
export * from "./single-integration-card";
// github
export * from "./github";
// jira
export * from "./jira";
// slack
export * from "./slack";

View File

@@ -1 +0,0 @@
export * from "./upgrade-banner";

View File

@@ -1,23 +0,0 @@
export * from "./attachment";
export * from "./bulk-operations";
export * from "./issue-modal";
export * from "./delete-issue-modal";
export * from "./issue-layouts";
export * from "./description-input";
export * from "./title-input";
export * from "./parent-issues-list-modal";
export * from "./label";
export * from "./confirm-issue-discard";
export * from "./issue-update-status";
export * from "./create-issue-toast-action-items";
export * from "./relations";
export * from "./issue-detail-widgets";
// issue details
export * from "./issue-detail";
export * from "./peek-overview";
// archived issue
export * from "./archive-issue-modal";
export * from "./archived-issues-header";

View File

@@ -7,8 +7,7 @@ import { RotateCcw } from "lucide-react";
import { ArchiveIcon } from "@plane/ui";
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent } from "./";
// ui
import { IssueActivityBlockComponent } from "./helpers/activity-block";
type TIssueArchivedAtActivity = { activityId: string; ends: "top" | "bottom" | undefined };

View File

@@ -5,7 +5,8 @@ import { Users } from "lucide-react";
// hooks;
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent, IssueLink } from "./";
import { IssueActivityBlockComponent } from "./helpers/activity-block";
import { IssueLink } from "./helpers/issue-link";
type TIssueAssigneeActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };

View File

@@ -4,7 +4,8 @@ import { Paperclip } from "lucide-react";
// hooks
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent, IssueLink } from "./";
import { IssueActivityBlockComponent } from "./helpers/activity-block";
import { IssueLink } from "./helpers/issue-link";
type TIssueAttachmentActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };

View File

@@ -6,8 +6,7 @@ import { observer } from "mobx-react";
import { ContrastIcon } from "@plane/ui";
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent } from "./";
// icons
import { IssueActivityBlockComponent } from "./helpers/activity-block";
type TIssueCycleActivity = { activityId: string; ends: "top" | "bottom" | undefined };

View File

@@ -9,7 +9,7 @@ import { LayersIcon } from "@plane/ui";
import { capitalizeFirstLetter } from "@plane/utils";
import { useIssueDetail } from "@/hooks/store";
// local imports
import { IssueActivityBlockComponent } from "./";
import { IssueActivityBlockComponent } from "./helpers/activity-block";
type TIssueDefaultActivity = { activityId: string; ends: "top" | "bottom" | undefined };

View File

@@ -4,7 +4,8 @@ import { MessageSquare } from "lucide-react";
// hooks
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent, IssueLink } from "./";
import { IssueActivityBlockComponent } from "./helpers/activity-block";
import { IssueLink } from "./helpers/issue-link";
type TIssueDescriptionActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };

View File

@@ -4,7 +4,8 @@ import { Triangle } from "lucide-react";
// hooks
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent, IssueLink } from "./";
import { IssueActivityBlockComponent } from "./helpers/activity-block";
import { IssueLink } from "./helpers/issue-link";
type TIssueEstimateActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };

View File

@@ -2,16 +2,15 @@
import { FC, ReactNode } from "react";
import { Network } from "lucide-react";
// hooks
// plane imports
import { Tooltip } from "@plane/ui";
// hooks
import { renderFormattedTime, renderFormattedDate, calculateTimeAgo } from "@/helpers/date-time.helper";
import { useIssueDetail } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
// ui
// components
import { IssueCreatorDisplay } from "@/plane-web/components/issues";
import { IssueUser } from "../";
// helpers
import { IssueUser } from "./issue-user";
type TIssueActivityBlockComponent = {
icon?: ReactNode;

View File

@@ -1,24 +0,0 @@
export * from "./default";
export * from "./name";
export * from "./description";
export * from "./state";
export * from "./assignee";
export * from "./priority";
export * from "./estimate";
export * from "./parent";
export * from "./relation";
export * from "./start_date";
export * from "./target_date";
export * from "./cycle";
export * from "./module";
export * from "./label";
export * from "./link";
export * from "./attachment";
export * from "./archived-at";
export * from "./inbox";
export * from "./label-activity-chip";
// helpers
export * from "./helpers/activity-block";
export * from "./helpers/issue-user";
export * from "./helpers/issue-link";

View File

@@ -6,8 +6,7 @@ import { observer } from "mobx-react";
import { DiceIcon } from "@plane/ui";
import { useIssueDetail } from "@/hooks/store";
// components
import { IssueActivityBlockComponent } from "./";
// icons
import { IssueActivityBlockComponent } from "./helpers/activity-block";
type TIssueModuleActivity = { activityId: string; ends: "top" | "bottom" | undefined };

View File

@@ -1,10 +0,0 @@
export * from "./root";
export * from "./activity-comment-root";
// activity
export * from "./activity/activity-list";
export * from "./activity-filter";
// sort
export * from "./sort-root";

View File

@@ -1,3 +0,0 @@
export * from "./notification-app-sidebar-option";
export * from "./sidebar";
export * from "./root";

View File

@@ -1,2 +0,0 @@
export * from "./menu";
export * from "./applied-filter";

View File

@@ -1,2 +0,0 @@
export * from "./root";
export * from "./menu-option-item";

View File

@@ -1,2 +0,0 @@
export * from "./root";
export * from "./options";

View File

@@ -1,2 +0,0 @@
export * from "./root";
export * from "./menu-option";

View File

@@ -1,8 +0,0 @@
export * from "./loader";
export * from "./empty-state";
export * from "./header";
export * from "./filters";
export * from "./notification-card";

View File

@@ -1,3 +0,0 @@
export * from "./item";
export * from "./options";
export * from "./content";

View File

@@ -1,7 +0,0 @@
export * from "./root";
export * from "./read";
export * from "./archive";
export * from "./snooze";
export * from "./button";

View File

@@ -1,2 +0,0 @@
export * from "./root";
export * from "./modal";