mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
rename old store
This commit is contained in:
parent
eaf6444551
commit
a2ba369114
@ -1,6 +1,6 @@
|
||||
import { createContext } from "react";
|
||||
// mobx store
|
||||
import { GanttStore } from "oldStore/issue/issue_gantt_view.store";
|
||||
import { GanttStore } from "store_legacy/issue/issue_gantt_view.store";
|
||||
|
||||
let ganttViewStore = new GanttStore();
|
||||
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { GanttStoreContext } from "components/gantt-chart/contexts";
|
||||
// types
|
||||
import { IGanttStore } from "oldStore/issue/issue_gantt_view.store";
|
||||
import { IGanttStore } from "store_legacy/issue/issue_gantt_view.store";
|
||||
|
||||
export const useGanttChart = (): IGanttStore => {
|
||||
const context = useContext(GanttStoreContext);
|
||||
|
@ -12,10 +12,10 @@ import { IQuickActionProps } from "../list/list-view-types";
|
||||
import { EIssueActions } from "../types";
|
||||
import { handleDragDrop } from "./utils";
|
||||
import { useIssues, useUser } from "hooks/store";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
|
||||
interface IBaseCalendarRoot {
|
||||
|
@ -12,10 +12,10 @@ import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { useCalendarView } from "hooks/store/use-calendar-view";
|
||||
import { EIssuesStoreType } from "constants/issue";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
type Props = {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -8,10 +8,10 @@ import { renderFormattedPayloadDate } from "helpers/date-time.helper";
|
||||
// constants
|
||||
import { MONTHS_LIST } from "constants/calendar";
|
||||
import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
type Props = {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -8,10 +8,10 @@ import { useCalendarView } from "hooks/store";
|
||||
import { ChevronLeft, ChevronRight } from "lucide-react";
|
||||
// constants
|
||||
import { MONTHS_LIST } from "constants/calendar";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
interface Props {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -14,10 +14,10 @@ import { TCalendarLayouts } from "@plane/types";
|
||||
// constants
|
||||
import { CALENDAR_LAYOUTS } from "constants/calendar";
|
||||
import { EIssueFilterType } from "constants/issue";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
interface ICalendarHeader {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -5,10 +5,10 @@ import { CalendarMonthsDropdown, CalendarOptionsDropdown } from "components/issu
|
||||
// icons
|
||||
import { ChevronLeft, ChevronRight } from "lucide-react";
|
||||
import { useCalendarView } from "hooks/store/use-calendar-view";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
interface ICalendarHeader {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { DraggableLocation } from "@hello-pangea/dnd";
|
||||
import { ICycleIssues } from "oldStore/issue/cycle";
|
||||
import { IModuleIssues } from "oldStore/issue/module";
|
||||
import { IProjectIssues } from "oldStore/issue/project";
|
||||
import { IProjectViewIssues } from "oldStore/issue/project-views";
|
||||
import { ICycleIssues } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssues } from "store_legacy/issue/module";
|
||||
import { IProjectIssues } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssues } from "store_legacy/issue/project-views";
|
||||
import { TGroupedIssues, IIssueMap } from "@plane/types";
|
||||
|
||||
export const handleDragDrop = async (
|
||||
|
@ -6,10 +6,10 @@ import { renderFormattedPayloadDate } from "helpers/date-time.helper";
|
||||
// types
|
||||
import { ICalendarDate, ICalendarWeek } from "./types";
|
||||
import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
|
||||
import { ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
|
||||
type Props = {
|
||||
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;
|
||||
|
@ -10,10 +10,10 @@ import { GanttChartRoot, IBlockUpdateData, IssueGanttSidebar } from "components/
|
||||
import { renderIssueBlocksStructure } from "helpers/issue.helper";
|
||||
// types
|
||||
import { TIssue, TUnGroupedIssues } from "@plane/types";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
// constants
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { EIssueActions } from "../types";
|
||||
|
@ -11,7 +11,7 @@ import { Spinner } from "@plane/ui";
|
||||
import { TIssue } from "@plane/types";
|
||||
import { EIssueActions } from "../types";
|
||||
import { IQuickActionProps } from "../list/list-view-types";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
//components
|
||||
import { KanBan } from "./default";
|
||||
import { KanBanSwimLanes } from "./swimlanes";
|
||||
@ -19,11 +19,11 @@ import { DeleteIssueModal } from "components/issues";
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { useIssues } from "hooks/store/use-issues";
|
||||
import { handleDragDrop } from "./utils";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IDraftIssues, IDraftIssuesFilter } from "oldStore/issue/draft";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IDraftIssues, IDraftIssuesFilter } from "store_legacy/issue/draft";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
import { EIssueFilterType, TCreateModalStoreTypes } from "constants/issue";
|
||||
import { ISSUE_DELETED } from "constants/event-tracker";
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { DraggableLocation } from "@hello-pangea/dnd";
|
||||
import { ICycleIssues } from "oldStore/issue/cycle";
|
||||
import { IDraftIssues } from "oldStore/issue/draft";
|
||||
import { IModuleIssues } from "oldStore/issue/module";
|
||||
import { IProfileIssues } from "oldStore/issue/profile";
|
||||
import { IProjectIssues } from "oldStore/issue/project";
|
||||
import { IProjectViewIssues } from "oldStore/issue/project-views";
|
||||
import { IWorkspaceIssues } from "oldStore/issue/workspace";
|
||||
import { ICycleIssues } from "store_legacy/issue/cycle";
|
||||
import { IDraftIssues } from "store_legacy/issue/draft";
|
||||
import { IModuleIssues } from "store_legacy/issue/module";
|
||||
import { IProfileIssues } from "store_legacy/issue/profile";
|
||||
import { IProjectIssues } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssues } from "store_legacy/issue/project-views";
|
||||
import { IWorkspaceIssues } from "store_legacy/issue/workspace";
|
||||
import { TGroupedIssues, IIssueMap, TSubGroupedIssues, TUnGroupedIssues } from "@plane/types";
|
||||
|
||||
const handleSortOrder = (destinationIssues: string[], destinationIndex: number, issueMap: IIssueMap) => {
|
||||
|
@ -3,13 +3,13 @@ import { FC, useCallback } from "react";
|
||||
import { observer } from "mobx-react-lite";
|
||||
// types
|
||||
import { TIssue } from "@plane/types";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { IDraftIssuesFilter, IDraftIssues } from "oldStore/issue/draft";
|
||||
import { IArchivedIssuesFilter, IArchivedIssues } from "oldStore/issue/archived";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
import { IDraftIssuesFilter, IDraftIssues } from "store_legacy/issue/draft";
|
||||
import { IArchivedIssuesFilter, IArchivedIssues } from "store_legacy/issue/archived";
|
||||
import { EIssueActions } from "../types";
|
||||
// components
|
||||
import { IQuickActionProps } from "./list-view-types";
|
||||
|
@ -11,10 +11,10 @@ import { EIssueActions } from "../types";
|
||||
import { IQuickActionProps } from "../list/list-view-types";
|
||||
// constants
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { ICycleIssuesFilter, ICycleIssues } from "oldStore/issue/cycle";
|
||||
import { IModuleIssuesFilter, IModuleIssues } from "oldStore/issue/module";
|
||||
import { IProjectIssuesFilter, IProjectIssues } from "oldStore/issue/project";
|
||||
import { IProjectViewIssuesFilter, IProjectViewIssues } from "oldStore/issue/project-views";
|
||||
import { ICycleIssuesFilter, ICycleIssues } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssuesFilter, IModuleIssues } from "store_legacy/issue/module";
|
||||
import { IProjectIssuesFilter, IProjectIssues } from "store_legacy/issue/project";
|
||||
import { IProjectViewIssuesFilter, IProjectViewIssues } from "store_legacy/issue/project-views";
|
||||
import { EIssueFilterType } from "constants/issue";
|
||||
|
||||
interface IBaseSpreadsheetRoot {
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { Avatar, CycleGroupIcon, DiceIcon, PriorityIcon, StateGroupIcon } from "@plane/ui";
|
||||
// stores
|
||||
import { IMemberRootStore } from "oldStore/member";
|
||||
import { IProjectStore } from "oldStore/project/project.store";
|
||||
import { IStateStore } from "oldStore/state.store";
|
||||
import { ILabelStore } from "oldStore/label.store";
|
||||
import { ICycleStore } from "oldStore/cycle.store";
|
||||
import { IModuleStore } from "oldStore/module.store";
|
||||
import { IMemberRootStore } from "store_legacy/member";
|
||||
import { IProjectStore } from "store_legacy/project/project.store";
|
||||
import { IStateStore } from "store_legacy/state.store";
|
||||
import { ILabelStore } from "store_legacy/label.store";
|
||||
import { ICycleStore } from "store_legacy/cycle.store";
|
||||
import { IModuleStore } from "store_legacy/module.store";
|
||||
// helpers
|
||||
import { renderEmoji } from "helpers/emoji.helper";
|
||||
// constants
|
||||
|
@ -8,7 +8,7 @@ import { useEventTracker } from "hooks/store";
|
||||
// types
|
||||
import { IPage } from "@plane/types";
|
||||
import { useProjectPages } from "hooks/store/use-project-page";
|
||||
import { IPageStore } from "oldStore/page.store";
|
||||
import { IPageStore } from "store_legacy/page.store";
|
||||
// constants
|
||||
import { PAGE_CREATED, PAGE_UPDATED } from "constants/event-tracker";
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { Button, Input, Tooltip } from "@plane/ui";
|
||||
import { IPage } from "@plane/types";
|
||||
// constants
|
||||
import { PAGE_ACCESS_SPECIFIERS } from "constants/page";
|
||||
import { IPageStore } from "oldStore/page.store";
|
||||
import { IPageStore } from "store_legacy/page.store";
|
||||
|
||||
type Props = {
|
||||
handleFormSubmit: (values: IPage) => Promise<void>;
|
||||
|
@ -12,7 +12,7 @@ import { Button, Loader, ToggleSwitch } from "@plane/ui";
|
||||
import { CustomPopover } from "./popover";
|
||||
// types
|
||||
import { IProject } from "@plane/types";
|
||||
import { IProjectPublishSettings, TProjectPublishViews } from "oldStore/project/project-publish.store";
|
||||
import { IProjectPublishSettings, TProjectPublishViews } from "store_legacy/project/project-publish.store";
|
||||
|
||||
type Props = {
|
||||
isOpen: boolean;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { createContext } from "react";
|
||||
// mobx store
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
|
||||
let rootStore = new RootStore();
|
||||
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IAppRootStore } from "oldStore/application";
|
||||
import { IAppRootStore } from "store_legacy/application";
|
||||
|
||||
export const useApplication = (): IAppRootStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { ICalendarStore } from "oldStore/issue/issue_calendar_view.store";
|
||||
import { ICalendarStore } from "store_legacy/issue/issue_calendar_view.store";
|
||||
|
||||
export const useCalendarView = (): ICalendarStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { ICycleStore } from "oldStore/cycle.store";
|
||||
import { ICycleStore } from "store_legacy/cycle.store";
|
||||
|
||||
export const useCycle = (): ICycleStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IDashboardStore } from "oldStore/dashboard.store";
|
||||
import { IDashboardStore } from "store_legacy/dashboard.store";
|
||||
|
||||
export const useDashboard = (): IDashboardStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IEstimateStore } from "oldStore/estimate.store";
|
||||
import { IEstimateStore } from "store_legacy/estimate.store";
|
||||
|
||||
export const useEstimate = (): IEstimateStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IEventTrackerStore } from "oldStore/event-tracker.store";
|
||||
import { IEventTrackerStore } from "store_legacy/event-tracker.store";
|
||||
|
||||
export const useEventTracker = (): IEventTrackerStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IGlobalViewStore } from "oldStore/global-view.store";
|
||||
import { IGlobalViewStore } from "store_legacy/global-view.store";
|
||||
|
||||
export const useGlobalView = (): IGlobalViewStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,8 +2,8 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IInboxIssue } from "oldStore/inbox/inbox_issue.store";
|
||||
import { IInboxFilter } from "oldStore/inbox/inbox_filter.store";
|
||||
import { IInboxIssue } from "store_legacy/inbox/inbox_issue.store";
|
||||
import { IInboxFilter } from "store_legacy/inbox/inbox_filter.store";
|
||||
|
||||
export const useInboxIssues = (): {
|
||||
issues: IInboxIssue;
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IInbox } from "oldStore/inbox/inbox.store";
|
||||
import { IInbox } from "store_legacy/inbox/inbox.store";
|
||||
|
||||
export const useInbox = (): IInbox => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IIssueDetail } from "oldStore/issue/issue-details/root.store";
|
||||
import { IIssueDetail } from "store_legacy/issue/issue-details/root.store";
|
||||
|
||||
export const useIssueDetail = (): IIssueDetail => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -3,14 +3,14 @@ import merge from "lodash/merge";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IWorkspaceIssues, IWorkspaceIssuesFilter } from "oldStore/issue/workspace";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views";
|
||||
import { IArchivedIssues, IArchivedIssuesFilter } from "oldStore/issue/archived";
|
||||
import { IDraftIssues, IDraftIssuesFilter } from "oldStore/issue/draft";
|
||||
import { IWorkspaceIssues, IWorkspaceIssuesFilter } from "store_legacy/issue/workspace";
|
||||
import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
|
||||
import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
|
||||
import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
|
||||
import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
|
||||
import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
|
||||
import { IArchivedIssues, IArchivedIssuesFilter } from "store_legacy/issue/archived";
|
||||
import { IDraftIssues, IDraftIssuesFilter } from "store_legacy/issue/draft";
|
||||
import { TIssueMap } from "@plane/types";
|
||||
// constants
|
||||
import { EIssuesStoreType } from "constants/issue";
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IIssueKanBanViewStore } from "oldStore/issue/issue_kanban_view.store";
|
||||
import { IIssueKanBanViewStore } from "store_legacy/issue/issue_kanban_view.store";
|
||||
|
||||
export const useKanbanView = (): IIssueKanBanViewStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { ILabelStore } from "oldStore/label.store";
|
||||
import { ILabelStore } from "store_legacy/label.store";
|
||||
|
||||
export const useLabel = (): ILabelStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types;
|
||||
import { IMemberRootStore } from "oldStore/member";
|
||||
import { IMemberRootStore } from "store_legacy/member";
|
||||
|
||||
export const useMember = (): IMemberRootStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IMentionStore } from "oldStore/mention.store";
|
||||
import { IMentionStore } from "store_legacy/mention.store";
|
||||
|
||||
export const useMention = (): IMentionStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IModuleStore } from "oldStore/module.store";
|
||||
import { IModuleStore } from "store_legacy/module.store";
|
||||
|
||||
export const useModule = (): IModuleStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
import { IProjectPageStore } from "oldStore/project-page.store";
|
||||
import { IProjectPageStore } from "store_legacy/project-page.store";
|
||||
|
||||
export const useProjectPages = (): IProjectPageStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IProjectPublishStore } from "oldStore/project/project-publish.store";
|
||||
import { IProjectPublishStore } from "store_legacy/project/project-publish.store";
|
||||
|
||||
export const useProjectPublish = (): IProjectPublishStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IProjectPageStore } from "oldStore/project-page.store";
|
||||
import { IProjectPageStore } from "store_legacy/project-page.store";
|
||||
|
||||
export const useProjectPages = (): IProjectPageStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IStateStore } from "oldStore/state.store";
|
||||
import { IStateStore } from "store_legacy/state.store";
|
||||
|
||||
export const useProjectState = (): IStateStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IProjectViewStore } from "oldStore/project-view.store";
|
||||
import { IProjectViewStore } from "store_legacy/project-view.store";
|
||||
|
||||
export const useProjectView = (): IProjectViewStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IProjectStore } from "oldStore/project/project.store";
|
||||
import { IProjectStore } from "store_legacy/project/project.store";
|
||||
|
||||
export const useProject = (): IProjectStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IUserRootStore } from "oldStore/user";
|
||||
import { IUserRootStore } from "store_legacy/user";
|
||||
|
||||
export const useUser = (): IUserRootStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IWebhookStore } from "oldStore/workspace/webhook.store";
|
||||
import { IWebhookStore } from "store_legacy/workspace/webhook.store";
|
||||
|
||||
export const useWebhook = (): IWebhookStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { useContext } from "react";
|
||||
// mobx store
|
||||
import { StoreContext } from "contexts/store-context";
|
||||
// types
|
||||
import { IWorkspaceRootStore } from "oldStore/workspace";
|
||||
import { IWorkspaceRootStore } from "store_legacy/workspace";
|
||||
|
||||
export const useWorkspace = (): IWorkspaceRootStore => {
|
||||
const context = useContext(StoreContext);
|
||||
|
@ -2,7 +2,7 @@ import { API_BASE_URL } from "helpers/common.helper";
|
||||
// services
|
||||
import { APIService } from "services/api.service";
|
||||
// types
|
||||
import { IProjectPublishSettings } from "oldStore/project/project-publish.store";
|
||||
import { IProjectPublishSettings } from "store_legacy/project/project-publish.store";
|
||||
|
||||
export class ProjectPublishService extends APIService {
|
||||
constructor() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { AppConfigStore, IAppConfigStore } from "./app-config.store";
|
||||
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store";
|
||||
import { EventTrackerStore, IEventTrackerStore } from "../event-tracker.store";
|
@ -6,7 +6,7 @@ import sortBy from "lodash/sortBy";
|
||||
// types
|
||||
import { ICycle, CycleDateCheckData } from "@plane/types";
|
||||
// mobx
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
// services
|
||||
import { ProjectService } from "services/project";
|
||||
import { IssueService } from "services/issue";
|
@ -4,7 +4,7 @@ import set from "lodash/set";
|
||||
// services
|
||||
import { DashboardService } from "services/dashboard.service";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import {
|
||||
THomeDashboardResponse,
|
||||
TWidget,
|
@ -3,7 +3,7 @@ import set from "lodash/set";
|
||||
// services
|
||||
import { ProjectEstimateService } from "services/project";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { IEstimate, IEstimateFormData } from "@plane/types";
|
||||
import { computedFn } from "mobx-utils";
|
||||
|
@ -4,7 +4,7 @@ import { set } from "lodash";
|
||||
// services
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { IWorkspaceView } from "@plane/types";
|
||||
|
||||
export interface IGlobalViewStore {
|
@ -7,7 +7,7 @@ import uniq from "lodash/uniq";
|
||||
// services
|
||||
import { InboxService } from "services/inbox/inbox.service";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { TInboxDetailMap, TInboxDetailIdMap, TInbox } from "@plane/types";
|
||||
|
||||
export interface IInbox {
|
@ -4,7 +4,7 @@ import isEmpty from "lodash/isEmpty";
|
||||
// services
|
||||
import { InboxService } from "services/inbox.service";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { TInboxIssueFilterOptions, TInboxIssueFilters, TInboxIssueQueryParams, TInbox } from "@plane/types";
|
||||
|
||||
export interface IInboxFilter {
|
@ -8,7 +8,7 @@ import pull from "lodash/pull";
|
||||
// services
|
||||
import { InboxIssueService } from "services/inbox/inbox-issue.service";
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import type {
|
||||
TInboxIssueDetailIdMap,
|
||||
TInboxIssueDetailMap,
|
@ -1,5 +1,5 @@
|
||||
// types
|
||||
import { RootStore } from "oldStore/root.store";
|
||||
import { RootStore } from "store_legacy/root.store";
|
||||
import { IInbox, Inbox } from "./inbox.store";
|
||||
import { IInboxIssue, InboxIssue } from "./inbox_issue.store";
|
||||
import { IInboxFilter, InboxFilter } from "./inbox_filter.store";
|
@ -22,7 +22,7 @@ import { IArchivedIssuesFilter, ArchivedIssuesFilter, IArchivedIssues, ArchivedI
|
||||
import { IDraftIssuesFilter, DraftIssuesFilter, IDraftIssues, DraftIssues } from "./draft";
|
||||
import { IIssueKanBanViewStore, IssueKanBanViewStore } from "./issue_kanban_view.store";
|
||||
import { ICalendarStore, CalendarStore } from "./issue_calendar_view.store";
|
||||
import { IWorkspaceMembership } from "oldStore/member/workspace-member.store";
|
||||
import { IWorkspaceMembership } from "store_legacy/member/workspace-member.store";
|
||||
|
||||
export interface IIssueRootStore {
|
||||
currentUserId: string | undefined;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user