rename old store

This commit is contained in:
rahulramesha 2024-03-04 20:28:25 +05:30
parent eaf6444551
commit a2ba369114
122 changed files with 129 additions and 129 deletions

View File

@ -1,6 +1,6 @@
import { createContext } from "react"; import { createContext } from "react";
// mobx store // 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(); let ganttViewStore = new GanttStore();

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { GanttStoreContext } from "components/gantt-chart/contexts"; import { GanttStoreContext } from "components/gantt-chart/contexts";
// types // types
import { IGanttStore } from "oldStore/issue/issue_gantt_view.store"; import { IGanttStore } from "store_legacy/issue/issue_gantt_view.store";
export const useGanttChart = (): IGanttStore => { export const useGanttChart = (): IGanttStore => {
const context = useContext(GanttStoreContext); const context = useContext(GanttStoreContext);

View File

@ -12,10 +12,10 @@ import { IQuickActionProps } from "../list/list-view-types";
import { EIssueActions } from "../types"; import { EIssueActions } from "../types";
import { handleDragDrop } from "./utils"; import { handleDragDrop } from "./utils";
import { useIssues, useUser } from "hooks/store"; import { useIssues, useUser } from "hooks/store";
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
import { EUserProjectRoles } from "constants/project"; import { EUserProjectRoles } from "constants/project";
interface IBaseCalendarRoot { interface IBaseCalendarRoot {

View File

@ -12,10 +12,10 @@ import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
import { EUserProjectRoles } from "constants/project"; import { EUserProjectRoles } from "constants/project";
import { useCalendarView } from "hooks/store/use-calendar-view"; import { useCalendarView } from "hooks/store/use-calendar-view";
import { EIssuesStoreType } from "constants/issue"; import { EIssuesStoreType } from "constants/issue";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
type Props = { type Props = {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -8,10 +8,10 @@ import { renderFormattedPayloadDate } from "helpers/date-time.helper";
// constants // constants
import { MONTHS_LIST } from "constants/calendar"; import { MONTHS_LIST } from "constants/calendar";
import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types"; import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
type Props = { type Props = {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -8,10 +8,10 @@ import { useCalendarView } from "hooks/store";
import { ChevronLeft, ChevronRight } from "lucide-react"; import { ChevronLeft, ChevronRight } from "lucide-react";
// constants // constants
import { MONTHS_LIST } from "constants/calendar"; import { MONTHS_LIST } from "constants/calendar";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
interface Props { interface Props {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -14,10 +14,10 @@ import { TCalendarLayouts } from "@plane/types";
// constants // constants
import { CALENDAR_LAYOUTS } from "constants/calendar"; import { CALENDAR_LAYOUTS } from "constants/calendar";
import { EIssueFilterType } from "constants/issue"; import { EIssueFilterType } from "constants/issue";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
interface ICalendarHeader { interface ICalendarHeader {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -5,10 +5,10 @@ import { CalendarMonthsDropdown, CalendarOptionsDropdown } from "components/issu
// icons // icons
import { ChevronLeft, ChevronRight } from "lucide-react"; import { ChevronLeft, ChevronRight } from "lucide-react";
import { useCalendarView } from "hooks/store/use-calendar-view"; import { useCalendarView } from "hooks/store/use-calendar-view";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
interface ICalendarHeader { interface ICalendarHeader {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -1,8 +1,8 @@
import { DraggableLocation } from "@hello-pangea/dnd"; import { DraggableLocation } from "@hello-pangea/dnd";
import { ICycleIssues } from "oldStore/issue/cycle"; import { ICycleIssues } from "store_legacy/issue/cycle";
import { IModuleIssues } from "oldStore/issue/module"; import { IModuleIssues } from "store_legacy/issue/module";
import { IProjectIssues } from "oldStore/issue/project"; import { IProjectIssues } from "store_legacy/issue/project";
import { IProjectViewIssues } from "oldStore/issue/project-views"; import { IProjectViewIssues } from "store_legacy/issue/project-views";
import { TGroupedIssues, IIssueMap } from "@plane/types"; import { TGroupedIssues, IIssueMap } from "@plane/types";
export const handleDragDrop = async ( export const handleDragDrop = async (

View File

@ -6,10 +6,10 @@ import { renderFormattedPayloadDate } from "helpers/date-time.helper";
// types // types
import { ICalendarDate, ICalendarWeek } from "./types"; import { ICalendarDate, ICalendarWeek } from "./types";
import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types"; import { TGroupedIssues, TIssue, TIssueMap } from "@plane/types";
import { ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
type Props = { type Props = {
issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter; issuesFilterStore: IProjectIssuesFilter | IModuleIssuesFilter | ICycleIssuesFilter | IProjectViewIssuesFilter;

View File

@ -10,10 +10,10 @@ import { GanttChartRoot, IBlockUpdateData, IssueGanttSidebar } from "components/
import { renderIssueBlocksStructure } from "helpers/issue.helper"; import { renderIssueBlocksStructure } from "helpers/issue.helper";
// types // types
import { TIssue, TUnGroupedIssues } from "@plane/types"; import { TIssue, TUnGroupedIssues } from "@plane/types";
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
// constants // constants
import { EUserProjectRoles } from "constants/project"; import { EUserProjectRoles } from "constants/project";
import { EIssueActions } from "../types"; import { EIssueActions } from "../types";

View File

@ -11,7 +11,7 @@ import { Spinner } from "@plane/ui";
import { TIssue } from "@plane/types"; import { TIssue } from "@plane/types";
import { EIssueActions } from "../types"; import { EIssueActions } from "../types";
import { IQuickActionProps } from "../list/list-view-types"; import { IQuickActionProps } from "../list/list-view-types";
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
//components //components
import { KanBan } from "./default"; import { KanBan } from "./default";
import { KanBanSwimLanes } from "./swimlanes"; import { KanBanSwimLanes } from "./swimlanes";
@ -19,11 +19,11 @@ import { DeleteIssueModal } from "components/issues";
import { EUserProjectRoles } from "constants/project"; import { EUserProjectRoles } from "constants/project";
import { useIssues } from "hooks/store/use-issues"; import { useIssues } from "hooks/store/use-issues";
import { handleDragDrop } from "./utils"; import { handleDragDrop } from "./utils";
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IDraftIssues, IDraftIssuesFilter } from "oldStore/issue/draft"; import { IDraftIssues, IDraftIssuesFilter } from "store_legacy/issue/draft";
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile"; import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
import { EIssueFilterType, TCreateModalStoreTypes } from "constants/issue"; import { EIssueFilterType, TCreateModalStoreTypes } from "constants/issue";
import { ISSUE_DELETED } from "constants/event-tracker"; import { ISSUE_DELETED } from "constants/event-tracker";

View File

@ -1,11 +1,11 @@
import { DraggableLocation } from "@hello-pangea/dnd"; import { DraggableLocation } from "@hello-pangea/dnd";
import { ICycleIssues } from "oldStore/issue/cycle"; import { ICycleIssues } from "store_legacy/issue/cycle";
import { IDraftIssues } from "oldStore/issue/draft"; import { IDraftIssues } from "store_legacy/issue/draft";
import { IModuleIssues } from "oldStore/issue/module"; import { IModuleIssues } from "store_legacy/issue/module";
import { IProfileIssues } from "oldStore/issue/profile"; import { IProfileIssues } from "store_legacy/issue/profile";
import { IProjectIssues } from "oldStore/issue/project"; import { IProjectIssues } from "store_legacy/issue/project";
import { IProjectViewIssues } from "oldStore/issue/project-views"; import { IProjectViewIssues } from "store_legacy/issue/project-views";
import { IWorkspaceIssues } from "oldStore/issue/workspace"; import { IWorkspaceIssues } from "store_legacy/issue/workspace";
import { TGroupedIssues, IIssueMap, TSubGroupedIssues, TUnGroupedIssues } from "@plane/types"; import { TGroupedIssues, IIssueMap, TSubGroupedIssues, TUnGroupedIssues } from "@plane/types";
const handleSortOrder = (destinationIssues: string[], destinationIndex: number, issueMap: IIssueMap) => { const handleSortOrder = (destinationIssues: string[], destinationIndex: number, issueMap: IIssueMap) => {

View File

@ -3,13 +3,13 @@ import { FC, useCallback } from "react";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
// types // types
import { TIssue } from "@plane/types"; import { TIssue } from "@plane/types";
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile"; import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
import { IDraftIssuesFilter, IDraftIssues } from "oldStore/issue/draft"; import { IDraftIssuesFilter, IDraftIssues } from "store_legacy/issue/draft";
import { IArchivedIssuesFilter, IArchivedIssues } from "oldStore/issue/archived"; import { IArchivedIssuesFilter, IArchivedIssues } from "store_legacy/issue/archived";
import { EIssueActions } from "../types"; import { EIssueActions } from "../types";
// components // components
import { IQuickActionProps } from "./list-view-types"; import { IQuickActionProps } from "./list-view-types";

View File

@ -11,10 +11,10 @@ import { EIssueActions } from "../types";
import { IQuickActionProps } from "../list/list-view-types"; import { IQuickActionProps } from "../list/list-view-types";
// constants // constants
import { EUserProjectRoles } from "constants/project"; import { EUserProjectRoles } from "constants/project";
import { ICycleIssuesFilter, ICycleIssues } from "oldStore/issue/cycle"; import { ICycleIssuesFilter, ICycleIssues } from "store_legacy/issue/cycle";
import { IModuleIssuesFilter, IModuleIssues } from "oldStore/issue/module"; import { IModuleIssuesFilter, IModuleIssues } from "store_legacy/issue/module";
import { IProjectIssuesFilter, IProjectIssues } from "oldStore/issue/project"; import { IProjectIssuesFilter, IProjectIssues } from "store_legacy/issue/project";
import { IProjectViewIssuesFilter, IProjectViewIssues } from "oldStore/issue/project-views"; import { IProjectViewIssuesFilter, IProjectViewIssues } from "store_legacy/issue/project-views";
import { EIssueFilterType } from "constants/issue"; import { EIssueFilterType } from "constants/issue";
interface IBaseSpreadsheetRoot { interface IBaseSpreadsheetRoot {

View File

@ -1,11 +1,11 @@
import { Avatar, CycleGroupIcon, DiceIcon, PriorityIcon, StateGroupIcon } from "@plane/ui"; import { Avatar, CycleGroupIcon, DiceIcon, PriorityIcon, StateGroupIcon } from "@plane/ui";
// stores // stores
import { IMemberRootStore } from "oldStore/member"; import { IMemberRootStore } from "store_legacy/member";
import { IProjectStore } from "oldStore/project/project.store"; import { IProjectStore } from "store_legacy/project/project.store";
import { IStateStore } from "oldStore/state.store"; import { IStateStore } from "store_legacy/state.store";
import { ILabelStore } from "oldStore/label.store"; import { ILabelStore } from "store_legacy/label.store";
import { ICycleStore } from "oldStore/cycle.store"; import { ICycleStore } from "store_legacy/cycle.store";
import { IModuleStore } from "oldStore/module.store"; import { IModuleStore } from "store_legacy/module.store";
// helpers // helpers
import { renderEmoji } from "helpers/emoji.helper"; import { renderEmoji } from "helpers/emoji.helper";
// constants // constants

View File

@ -8,7 +8,7 @@ import { useEventTracker } from "hooks/store";
// types // types
import { IPage } from "@plane/types"; import { IPage } from "@plane/types";
import { useProjectPages } from "hooks/store/use-project-page"; import { useProjectPages } from "hooks/store/use-project-page";
import { IPageStore } from "oldStore/page.store"; import { IPageStore } from "store_legacy/page.store";
// constants // constants
import { PAGE_CREATED, PAGE_UPDATED } from "constants/event-tracker"; import { PAGE_CREATED, PAGE_UPDATED } from "constants/event-tracker";

View File

@ -5,7 +5,7 @@ import { Button, Input, Tooltip } from "@plane/ui";
import { IPage } from "@plane/types"; import { IPage } from "@plane/types";
// constants // constants
import { PAGE_ACCESS_SPECIFIERS } from "constants/page"; import { PAGE_ACCESS_SPECIFIERS } from "constants/page";
import { IPageStore } from "oldStore/page.store"; import { IPageStore } from "store_legacy/page.store";
type Props = { type Props = {
handleFormSubmit: (values: IPage) => Promise<void>; handleFormSubmit: (values: IPage) => Promise<void>;

View File

@ -12,7 +12,7 @@ import { Button, Loader, ToggleSwitch } from "@plane/ui";
import { CustomPopover } from "./popover"; import { CustomPopover } from "./popover";
// types // types
import { IProject } from "@plane/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 = { type Props = {
isOpen: boolean; isOpen: boolean;

View File

@ -1,6 +1,6 @@
import { createContext } from "react"; import { createContext } from "react";
// mobx store // mobx store
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
let rootStore = new RootStore(); let rootStore = new RootStore();

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IAppRootStore } from "oldStore/application"; import { IAppRootStore } from "store_legacy/application";
export const useApplication = (): IAppRootStore => { export const useApplication = (): IAppRootStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { ICalendarStore } from "oldStore/issue/issue_calendar_view.store"; import { ICalendarStore } from "store_legacy/issue/issue_calendar_view.store";
export const useCalendarView = (): ICalendarStore => { export const useCalendarView = (): ICalendarStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { ICycleStore } from "oldStore/cycle.store"; import { ICycleStore } from "store_legacy/cycle.store";
export const useCycle = (): ICycleStore => { export const useCycle = (): ICycleStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IDashboardStore } from "oldStore/dashboard.store"; import { IDashboardStore } from "store_legacy/dashboard.store";
export const useDashboard = (): IDashboardStore => { export const useDashboard = (): IDashboardStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IEstimateStore } from "oldStore/estimate.store"; import { IEstimateStore } from "store_legacy/estimate.store";
export const useEstimate = (): IEstimateStore => { export const useEstimate = (): IEstimateStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IEventTrackerStore } from "oldStore/event-tracker.store"; import { IEventTrackerStore } from "store_legacy/event-tracker.store";
export const useEventTracker = (): IEventTrackerStore => { export const useEventTracker = (): IEventTrackerStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IGlobalViewStore } from "oldStore/global-view.store"; import { IGlobalViewStore } from "store_legacy/global-view.store";
export const useGlobalView = (): IGlobalViewStore => { export const useGlobalView = (): IGlobalViewStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,8 +2,8 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IInboxIssue } from "oldStore/inbox/inbox_issue.store"; import { IInboxIssue } from "store_legacy/inbox/inbox_issue.store";
import { IInboxFilter } from "oldStore/inbox/inbox_filter.store"; import { IInboxFilter } from "store_legacy/inbox/inbox_filter.store";
export const useInboxIssues = (): { export const useInboxIssues = (): {
issues: IInboxIssue; issues: IInboxIssue;

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IInbox } from "oldStore/inbox/inbox.store"; import { IInbox } from "store_legacy/inbox/inbox.store";
export const useInbox = (): IInbox => { export const useInbox = (): IInbox => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IIssueDetail } from "oldStore/issue/issue-details/root.store"; import { IIssueDetail } from "store_legacy/issue/issue-details/root.store";
export const useIssueDetail = (): IIssueDetail => { export const useIssueDetail = (): IIssueDetail => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -3,14 +3,14 @@ import merge from "lodash/merge";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IWorkspaceIssues, IWorkspaceIssuesFilter } from "oldStore/issue/workspace"; import { IWorkspaceIssues, IWorkspaceIssuesFilter } from "store_legacy/issue/workspace";
import { IProfileIssues, IProfileIssuesFilter } from "oldStore/issue/profile"; import { IProfileIssues, IProfileIssuesFilter } from "store_legacy/issue/profile";
import { IProjectIssues, IProjectIssuesFilter } from "oldStore/issue/project"; import { IProjectIssues, IProjectIssuesFilter } from "store_legacy/issue/project";
import { ICycleIssues, ICycleIssuesFilter } from "oldStore/issue/cycle"; import { ICycleIssues, ICycleIssuesFilter } from "store_legacy/issue/cycle";
import { IModuleIssues, IModuleIssuesFilter } from "oldStore/issue/module"; import { IModuleIssues, IModuleIssuesFilter } from "store_legacy/issue/module";
import { IProjectViewIssues, IProjectViewIssuesFilter } from "oldStore/issue/project-views"; import { IProjectViewIssues, IProjectViewIssuesFilter } from "store_legacy/issue/project-views";
import { IArchivedIssues, IArchivedIssuesFilter } from "oldStore/issue/archived"; import { IArchivedIssues, IArchivedIssuesFilter } from "store_legacy/issue/archived";
import { IDraftIssues, IDraftIssuesFilter } from "oldStore/issue/draft"; import { IDraftIssues, IDraftIssuesFilter } from "store_legacy/issue/draft";
import { TIssueMap } from "@plane/types"; import { TIssueMap } from "@plane/types";
// constants // constants
import { EIssuesStoreType } from "constants/issue"; import { EIssuesStoreType } from "constants/issue";

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IIssueKanBanViewStore } from "oldStore/issue/issue_kanban_view.store"; import { IIssueKanBanViewStore } from "store_legacy/issue/issue_kanban_view.store";
export const useKanbanView = (): IIssueKanBanViewStore => { export const useKanbanView = (): IIssueKanBanViewStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { ILabelStore } from "oldStore/label.store"; import { ILabelStore } from "store_legacy/label.store";
export const useLabel = (): ILabelStore => { export const useLabel = (): ILabelStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types; // types;
import { IMemberRootStore } from "oldStore/member"; import { IMemberRootStore } from "store_legacy/member";
export const useMember = (): IMemberRootStore => { export const useMember = (): IMemberRootStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IMentionStore } from "oldStore/mention.store"; import { IMentionStore } from "store_legacy/mention.store";
export const useMention = (): IMentionStore => { export const useMention = (): IMentionStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IModuleStore } from "oldStore/module.store"; import { IModuleStore } from "store_legacy/module.store";
export const useModule = (): IModuleStore => { export const useModule = (): IModuleStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -1,7 +1,7 @@
import { useContext } from "react"; import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; 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 => { export const useProjectPages = (): IProjectPageStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IProjectPublishStore } from "oldStore/project/project-publish.store"; import { IProjectPublishStore } from "store_legacy/project/project-publish.store";
export const useProjectPublish = (): IProjectPublishStore => { export const useProjectPublish = (): IProjectPublishStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IProjectPageStore } from "oldStore/project-page.store"; import { IProjectPageStore } from "store_legacy/project-page.store";
export const useProjectPages = (): IProjectPageStore => { export const useProjectPages = (): IProjectPageStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IStateStore } from "oldStore/state.store"; import { IStateStore } from "store_legacy/state.store";
export const useProjectState = (): IStateStore => { export const useProjectState = (): IStateStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IProjectViewStore } from "oldStore/project-view.store"; import { IProjectViewStore } from "store_legacy/project-view.store";
export const useProjectView = (): IProjectViewStore => { export const useProjectView = (): IProjectViewStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IProjectStore } from "oldStore/project/project.store"; import { IProjectStore } from "store_legacy/project/project.store";
export const useProject = (): IProjectStore => { export const useProject = (): IProjectStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IUserRootStore } from "oldStore/user"; import { IUserRootStore } from "store_legacy/user";
export const useUser = (): IUserRootStore => { export const useUser = (): IUserRootStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IWebhookStore } from "oldStore/workspace/webhook.store"; import { IWebhookStore } from "store_legacy/workspace/webhook.store";
export const useWebhook = (): IWebhookStore => { export const useWebhook = (): IWebhookStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { useContext } from "react";
// mobx store // mobx store
import { StoreContext } from "contexts/store-context"; import { StoreContext } from "contexts/store-context";
// types // types
import { IWorkspaceRootStore } from "oldStore/workspace"; import { IWorkspaceRootStore } from "store_legacy/workspace";
export const useWorkspace = (): IWorkspaceRootStore => { export const useWorkspace = (): IWorkspaceRootStore => {
const context = useContext(StoreContext); const context = useContext(StoreContext);

View File

@ -2,7 +2,7 @@ import { API_BASE_URL } from "helpers/common.helper";
// services // services
import { APIService } from "services/api.service"; import { APIService } from "services/api.service";
// types // types
import { IProjectPublishSettings } from "oldStore/project/project-publish.store"; import { IProjectPublishSettings } from "store_legacy/project/project-publish.store";
export class ProjectPublishService extends APIService { export class ProjectPublishService extends APIService {
constructor() { constructor() {

View File

@ -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 { AppConfigStore, IAppConfigStore } from "./app-config.store";
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store"; import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store";
import { EventTrackerStore, IEventTrackerStore } from "../event-tracker.store"; import { EventTrackerStore, IEventTrackerStore } from "../event-tracker.store";

View File

@ -6,7 +6,7 @@ import sortBy from "lodash/sortBy";
// types // types
import { ICycle, CycleDateCheckData } from "@plane/types"; import { ICycle, CycleDateCheckData } from "@plane/types";
// mobx // mobx
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
// services // services
import { ProjectService } from "services/project"; import { ProjectService } from "services/project";
import { IssueService } from "services/issue"; import { IssueService } from "services/issue";

View File

@ -4,7 +4,7 @@ import set from "lodash/set";
// services // services
import { DashboardService } from "services/dashboard.service"; import { DashboardService } from "services/dashboard.service";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { import {
THomeDashboardResponse, THomeDashboardResponse,
TWidget, TWidget,

View File

@ -3,7 +3,7 @@ import set from "lodash/set";
// services // services
import { ProjectEstimateService } from "services/project"; import { ProjectEstimateService } from "services/project";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { IEstimate, IEstimateFormData } from "@plane/types"; import { IEstimate, IEstimateFormData } from "@plane/types";
import { computedFn } from "mobx-utils"; import { computedFn } from "mobx-utils";

View File

@ -4,7 +4,7 @@ import { set } from "lodash";
// services // services
import { WorkspaceService } from "services/workspace.service"; import { WorkspaceService } from "services/workspace.service";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { IWorkspaceView } from "@plane/types"; import { IWorkspaceView } from "@plane/types";
export interface IGlobalViewStore { export interface IGlobalViewStore {

View File

@ -7,7 +7,7 @@ import uniq from "lodash/uniq";
// services // services
import { InboxService } from "services/inbox/inbox.service"; import { InboxService } from "services/inbox/inbox.service";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { TInboxDetailMap, TInboxDetailIdMap, TInbox } from "@plane/types"; import { TInboxDetailMap, TInboxDetailIdMap, TInbox } from "@plane/types";
export interface IInbox { export interface IInbox {

View File

@ -4,7 +4,7 @@ import isEmpty from "lodash/isEmpty";
// services // services
import { InboxService } from "services/inbox.service"; import { InboxService } from "services/inbox.service";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { TInboxIssueFilterOptions, TInboxIssueFilters, TInboxIssueQueryParams, TInbox } from "@plane/types"; import { TInboxIssueFilterOptions, TInboxIssueFilters, TInboxIssueQueryParams, TInbox } from "@plane/types";
export interface IInboxFilter { export interface IInboxFilter {

View File

@ -8,7 +8,7 @@ import pull from "lodash/pull";
// services // services
import { InboxIssueService } from "services/inbox/inbox-issue.service"; import { InboxIssueService } from "services/inbox/inbox-issue.service";
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import type { import type {
TInboxIssueDetailIdMap, TInboxIssueDetailIdMap,
TInboxIssueDetailMap, TInboxIssueDetailMap,

View File

@ -1,5 +1,5 @@
// types // types
import { RootStore } from "oldStore/root.store"; import { RootStore } from "store_legacy/root.store";
import { IInbox, Inbox } from "./inbox.store"; import { IInbox, Inbox } from "./inbox.store";
import { IInboxIssue, InboxIssue } from "./inbox_issue.store"; import { IInboxIssue, InboxIssue } from "./inbox_issue.store";
import { IInboxFilter, InboxFilter } from "./inbox_filter.store"; import { IInboxFilter, InboxFilter } from "./inbox_filter.store";

View File

@ -22,7 +22,7 @@ import { IArchivedIssuesFilter, ArchivedIssuesFilter, IArchivedIssues, ArchivedI
import { IDraftIssuesFilter, DraftIssuesFilter, IDraftIssues, DraftIssues } from "./draft"; import { IDraftIssuesFilter, DraftIssuesFilter, IDraftIssues, DraftIssues } from "./draft";
import { IIssueKanBanViewStore, IssueKanBanViewStore } from "./issue_kanban_view.store"; import { IIssueKanBanViewStore, IssueKanBanViewStore } from "./issue_kanban_view.store";
import { ICalendarStore, CalendarStore } from "./issue_calendar_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 { export interface IIssueRootStore {
currentUserId: string | undefined; currentUserId: string | undefined;

Some files were not shown because too many files have changed in this diff Show More