fix: eslint fixes and file formatting
This commit is contained in:
parent
473dfc7a5b
commit
53ddef1cd5
954 changed files with 3921 additions and 3809 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||
// types
|
||||
import { AppConfigService } from "services/app_config.service";
|
||||
import { AppConfigService } from "@/services/app_config.service";
|
||||
import { IAppConfig } from "@plane/types";
|
||||
// services
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { observable, action, makeObservable, computed } from "mobx";
|
||||
// services
|
||||
import { EIssuesStoreType, TCreateModalStoreTypes } from "constants/issue";
|
||||
import { PageService } from "services/page.service";
|
||||
import { ProjectService } from "services/project";
|
||||
import { EIssuesStoreType, TCreateModalStoreTypes } from "@/constants/issue";
|
||||
import { PageService } from "@/services/page.service";
|
||||
import { ProjectService } from "@/services/project";
|
||||
|
||||
export interface ModalData {
|
||||
store: EIssuesStoreType;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { EventTrackerStore, IEventTrackerStore } from "../event-tracker.store";
|
||||
import { AppConfigStore, IAppConfigStore } from "./app-config.store";
|
||||
import { CommandPaletteStore, ICommandPaletteStore } from "./command-palette.store";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { observable, action, computed, makeObservable, runInAction } from "mobx";
|
||||
// types
|
||||
import { InstanceService } from "services/instance.service";
|
||||
import { InstanceService } from "@/services/instance.service";
|
||||
import { IInstance, IInstanceConfiguration, IFormattedInstanceConfiguration, IInstanceAdmin } from "@plane/types";
|
||||
// services
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// mobx
|
||||
import { action, observable, makeObservable } from "mobx";
|
||||
// helper
|
||||
import { applyTheme, unsetCustomCssVariables } from "helpers/theme.helper";
|
||||
import { applyTheme, unsetCustomCssVariables } from "@/helpers/theme.helper";
|
||||
|
||||
export interface IThemeStore {
|
||||
// observables
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ import sortBy from "lodash/sortBy";
|
|||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// helpers
|
||||
import { getDate } from "helpers/date-time.helper";
|
||||
import { orderCycles, shouldFilterCycle } from "helpers/cycle.helper";
|
||||
import { getDate } from "@/helpers/date-time.helper";
|
||||
import { orderCycles, shouldFilterCycle } from "@/helpers/cycle.helper";
|
||||
// services
|
||||
import { CycleService } from "services/cycle.service";
|
||||
import { IssueService } from "services/issue";
|
||||
import { ProjectService } from "services/project";
|
||||
import { CycleService } from "@/services/cycle.service";
|
||||
import { IssueService } from "@/services/issue";
|
||||
import { ProjectService } from "@/services/project";
|
||||
// mobx
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
// types
|
||||
import { ICycle, CycleDateCheckData } from "@plane/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { action, computed, observable, makeObservable, runInAction, autorun } fr
|
|||
import { computedFn } from "mobx-utils";
|
||||
import set from "lodash/set";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { TCycleDisplayFilters, TCycleFilters } from "@plane/types";
|
||||
|
||||
export interface ICycleFilterStore {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import set from "lodash/set";
|
|||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { DashboardService } from "services/dashboard.service";
|
||||
import { DashboardService } from "@/services/dashboard.service";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import {
|
||||
THomeDashboardResponse,
|
||||
TWidget,
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import set from "lodash/set";
|
|||
import { observable, action, makeObservable, runInAction, computed } from "mobx";
|
||||
// services
|
||||
import { computedFn } from "mobx-utils";
|
||||
import { ProjectEstimateService } from "services/project";
|
||||
import { ProjectEstimateService } from "@/services/project";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IEstimate, IEstimateFormData } from "@plane/types";
|
||||
|
||||
export interface IEstimateStore {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
getProjectStateEventPayload,
|
||||
getWorkspaceEventPayload,
|
||||
getPageEventPayload,
|
||||
} from "constants/event-tracker";
|
||||
} from "@/constants/event-tracker";
|
||||
import { RootStore } from "./root.store";
|
||||
|
||||
export interface IEventTrackerStore {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { set } from "lodash";
|
|||
import { observable, action, makeObservable, runInAction, computed } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IWorkspaceView } from "@plane/types";
|
||||
|
||||
export interface IGlobalViewStore {
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import update from "lodash/update";
|
|||
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { InboxService } from "services/inbox/inbox.service";
|
||||
import { InboxService } from "@/services/inbox/inbox.service";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { TInboxDetailMap, TInboxDetailIdMap, TInbox } from "@plane/types";
|
||||
|
||||
export interface IInbox {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import isEmpty from "lodash/isEmpty";
|
|||
import set from "lodash/set";
|
||||
import { observable, action, makeObservable, runInAction, computed } from "mobx";
|
||||
// services
|
||||
import { InboxService } from "services/inbox.service";
|
||||
import { InboxService } from "@/services/inbox.service";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { TInboxIssueFilterOptions, TInboxIssueFilters, TInboxIssueQueryParams, TInbox } from "@plane/types";
|
||||
|
||||
export interface IInboxFilter {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ import update from "lodash/update";
|
|||
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { InboxIssueService } from "services/inbox/inbox-issue.service";
|
||||
import { InboxIssueService } from "@/services/inbox/inbox-issue.service";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import type {
|
||||
TInboxIssueDetailIdMap,
|
||||
TInboxIssueDetailMap,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IInbox, Inbox } from "./inbox.store";
|
||||
import { IInboxFilter, InboxFilter } from "./inbox_filter.store";
|
||||
import { IInboxIssue, InboxIssue } from "./inbox_issue.store";
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import pull from "lodash/pull";
|
|||
import set from "lodash/set";
|
||||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
import { IssueArchiveService } from "services/issue";
|
||||
import { IssueArchiveService } from "@/services/issue";
|
||||
import { TIssue, TLoader, TGroupedIssues, TSubGroupedIssues, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import update from "lodash/update";
|
|||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
// services
|
||||
import { CycleService } from "services/cycle.service";
|
||||
import { IssueService } from "services/issue";
|
||||
import { CycleService } from "@/services/cycle.service";
|
||||
import { IssueService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssue, TSubGroupedIssues, TGroupedIssues, TLoader, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import update from "lodash/update";
|
|||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
// services
|
||||
import { IssueDraftService } from "services/issue/issue_draft.service";
|
||||
import { IssueDraftService } from "@/services/issue/issue_draft.service";
|
||||
// types
|
||||
import { TIssue, TLoader, TGroupedIssues, TSubGroupedIssues, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import isEmpty from "lodash/isEmpty";
|
||||
// types
|
||||
// constants
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
// lib
|
||||
import { storage } from "lib/local-storage";
|
||||
import { storage } from "@/lib/local-storage";
|
||||
import {
|
||||
IIssueDisplayFilterOptions,
|
||||
IIssueDisplayProperties,
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ import isEmpty from "lodash/isEmpty";
|
|||
import orderBy from "lodash/orderBy";
|
||||
import values from "lodash/values";
|
||||
// constants
|
||||
import { ISSUE_PRIORITIES } from "constants/issue";
|
||||
import { STATE_GROUPS } from "constants/state";
|
||||
import { ISSUE_PRIORITIES } from "@/constants/issue";
|
||||
import { STATE_GROUPS } from "@/constants/state";
|
||||
// helpers
|
||||
import { renderFormattedPayloadDate } from "helpers/date-time.helper";
|
||||
import { renderFormattedPayloadDate } from "@/helpers/date-time.helper";
|
||||
// types
|
||||
import { TIssue, TIssueMap, TIssueGroupByOptions, TIssueOrderByOptions } from "@plane/types";
|
||||
// store
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import uniq from "lodash/uniq";
|
|||
import update from "lodash/update";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueActivityService } from "services/issue";
|
||||
import { IssueActivityService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssueActivityComment, TIssueActivity, TIssueActivityMap, TIssueActivityIdMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import uniq from "lodash/uniq";
|
|||
import update from "lodash/update";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueAttachmentService } from "services/issue";
|
||||
import { IssueAttachmentService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssueAttachment, TIssueAttachmentMap, TIssueAttachmentIdMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import uniq from "lodash/uniq";
|
|||
import update from "lodash/update";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueCommentService } from "services/issue";
|
||||
import { IssueCommentService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssueComment, TIssueCommentMap, TIssueCommentIdMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import { action, makeObservable, observable, runInAction } from "mobx";
|
|||
// services
|
||||
// types
|
||||
// helpers
|
||||
import { groupReactions } from "helpers/emoji.helper";
|
||||
import { IssueReactionService } from "services/issue";
|
||||
import { groupReactions } from "@/helpers/emoji.helper";
|
||||
import { IssueReactionService } from "@/services/issue";
|
||||
import { TIssueCommentReaction, TIssueCommentReactionIdMap, TIssueCommentReactionMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { makeObservable } from "mobx";
|
||||
// services
|
||||
import { computedFn } from "mobx-utils";
|
||||
import { IssueArchiveService, IssueDraftService, IssueService } from "services/issue";
|
||||
import { IssueArchiveService, IssueDraftService, IssueService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssue } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueService } from "services/issue";
|
||||
import { IssueService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssueLink, TIssueLinkMap, TIssueLinkIdMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import { action, makeObservable, observable, runInAction } from "mobx";
|
|||
// services
|
||||
// types
|
||||
// helpers
|
||||
import { groupReactions } from "helpers/emoji.helper";
|
||||
import { IssueReactionService } from "services/issue";
|
||||
import { groupReactions } from "@/helpers/emoji.helper";
|
||||
import { IssueReactionService } from "@/services/issue";
|
||||
import { TIssueReaction, TIssueReactionMap, TIssueReactionIdMap } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueRelationService } from "services/issue";
|
||||
import { IssueRelationService } from "@/services/issue";
|
||||
// types
|
||||
import { TIssueRelationIdMap, TIssueRelationMap, TIssueRelationTypes, TIssueRelation, TIssue } from "@plane/types";
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import set from "lodash/set";
|
|||
import update from "lodash/update";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { IssueService } from "services/issue";
|
||||
import { IssueService } from "@/services/issue";
|
||||
// types
|
||||
import {
|
||||
TIssue,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import set from "lodash/set";
|
||||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
// services
|
||||
import { NotificationService } from "services/notification.service";
|
||||
import { NotificationService } from "@/services/notification.service";
|
||||
// types
|
||||
import { IIssueDetail } from "./root.store";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import set from "lodash/set";
|
|||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// types
|
||||
import { IssueService } from "services/issue";
|
||||
import { IssueService } from "@/services/issue";
|
||||
import { TIssue } from "@plane/types";
|
||||
//services
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { observable, action, makeObservable, runInAction, computed } from "mobx";
|
||||
|
||||
// helpers
|
||||
import { ICalendarPayload, ICalendarWeek } from "components/issues";
|
||||
import { generateCalendarData } from "helpers/calendar.helper";
|
||||
import { ICalendarPayload, ICalendarWeek } from "@/components/issues";
|
||||
import { generateCalendarData } from "@/helpers/calendar.helper";
|
||||
// types
|
||||
import { getWeekNumberOfDate } from "helpers/date-time.helper";
|
||||
import { getWeekNumberOfDate } from "@/helpers/date-time.helper";
|
||||
|
||||
export interface ICalendarStore {
|
||||
calendarFilters: {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { action, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// helpers
|
||||
import { ChartDataType, TGanttViews } from "components/gantt-chart";
|
||||
import { currentViewDataWithView } from "components/gantt-chart/data";
|
||||
import { ChartDataType, TGanttViews } from "@/components/gantt-chart";
|
||||
import { currentViewDataWithView } from "@/components/gantt-chart/data";
|
||||
// types
|
||||
|
||||
export interface IGanttStore {
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import update from "lodash/update";
|
|||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
// services
|
||||
import { IssueService } from "services/issue";
|
||||
import { ModuleService } from "services/module.service";
|
||||
import { IssueService } from "@/services/issue";
|
||||
import { ModuleService } from "@/services/module.service";
|
||||
// types
|
||||
import { TIssue, TLoader, TGroupedIssues, TSubGroupedIssues, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import pull from "lodash/pull";
|
|||
import set from "lodash/set";
|
||||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
import { UserService } from "services/user.service";
|
||||
import { UserService } from "@/services/user.service";
|
||||
import { TIssue, TLoader, TGroupedIssues, TSubGroupedIssues, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { ViewService } from "services/view.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { ViewService } from "@/services/view.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import pull from "lodash/pull";
|
|||
import set from "lodash/set";
|
||||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
import { IssueService } from "services/issue/issue.service";
|
||||
import { IssueService } from "@/services/issue/issue.service";
|
||||
import { TIssue, TLoader, TGroupedIssues, TSubGroupedIssues, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { IssueFiltersService } from "services/issue_filter.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { IssueFiltersService } from "@/services/issue_filter.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import set from "lodash/set";
|
|||
import update from "lodash/update";
|
||||
import { action, makeObservable, observable, runInAction, computed } from "mobx";
|
||||
// base class
|
||||
import { IssueService, IssueArchiveService } from "services/issue";
|
||||
import { IssueService, IssueArchiveService } from "@/services/issue";
|
||||
import { TIssue, TGroupedIssues, TSubGroupedIssues, TLoader, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import isEmpty from "lodash/isEmpty";
|
||||
import { autorun, makeObservable, observable } from "mobx";
|
||||
// root store
|
||||
import { IWorkspaceMembership } from "store/member/workspace-member.store";
|
||||
import { IWorkspaceMembership } from "@/store/member/workspace-member.store";
|
||||
import { ICycle, IIssueLabel, IModule, IProject, IState, IUserLite } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
import { IStateStore, StateStore } from "../state.store";
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pickBy from "lodash/pickBy";
|
|||
import set from "lodash/set";
|
||||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
// base class
|
||||
import { EIssueFilterType, EIssuesStoreType } from "constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "helpers/issue.helper";
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { EIssueFilterType, EIssuesStoreType } from "@/constants/issue";
|
||||
import { handleIssueQueryParamsByLayout } from "@/helpers/issue.helper";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
import {
|
||||
IIssueFilterOptions,
|
||||
IIssueDisplayFilterOptions,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import pull from "lodash/pull";
|
|||
import set from "lodash/set";
|
||||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
// base class
|
||||
import { IssueService, IssueArchiveService } from "services/issue";
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { IssueService, IssueArchiveService } from "@/services/issue";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
import { TIssue, TLoader, TUnGroupedIssues, ViewFlags } from "@plane/types";
|
||||
import { IssueHelperStore } from "../helpers/issue-helper.store";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import sortBy from "lodash/sortBy";
|
|||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { buildTree } from "helpers/array.helper";
|
||||
import { IssueLabelService } from "services/issue";
|
||||
import { buildTree } from "@/helpers/array.helper";
|
||||
import { IssueLabelService } from "@/services/issue";
|
||||
// helpers
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IIssueLabel, IIssueLabelTree } from "@plane/types";
|
||||
|
||||
export interface ILabelStore {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { action, makeObservable, observable } from "mobx";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IUserLite } from "@plane/types";
|
||||
import { IProjectMemberStore, ProjectMemberStore } from "./project-member.store";
|
||||
import { IWorkspaceMemberStore, WorkspaceMemberStore } from "./workspace-member.store";
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import sortBy from "lodash/sortBy";
|
|||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { ProjectMemberService } from "services/project";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { ProjectMemberService } from "@/services/project";
|
||||
// types
|
||||
import { IRouterStore } from "store/application/router.store";
|
||||
import { RootStore } from "store/root.store";
|
||||
import { IUserRootStore } from "store/user";
|
||||
import { IRouterStore } from "@/store/application/router.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IUserRootStore } from "@/store/user";
|
||||
import { IProjectBulkAddFormData, IProjectMember, IProjectMembership, IUserLite } from "@plane/types";
|
||||
// constants
|
||||
import { IMemberRootStore } from ".";
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import sortBy from "lodash/sortBy";
|
|||
import { action, computed, makeObservable, observable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { EUserWorkspaceRoles } from "constants/workspace";
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { EUserWorkspaceRoles } from "@/constants/workspace";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
// types
|
||||
import { IRouterStore } from "store/application/router.store";
|
||||
import { RootStore } from "store/root.store";
|
||||
import { IUserRootStore } from "store/user";
|
||||
import { IRouterStore } from "@/store/application/router.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IUserRootStore } from "@/store/user";
|
||||
import { IWorkspaceBulkInviteFormData, IWorkspaceMember, IWorkspaceMemberInvitation } from "@plane/types";
|
||||
// constants
|
||||
import { IMemberRootStore } from ".";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { IMentionHighlight, IMentionSuggestion } from "@plane/lite-text-editor";
|
|||
import { computed, makeObservable } from "mobx";
|
||||
// editor
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
|
||||
export interface IMentionStore {
|
||||
// computed
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@ import sortBy from "lodash/sortBy";
|
|||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { ModuleService } from "services/module.service";
|
||||
import { ProjectService } from "services/project";
|
||||
import { ModuleService } from "@/services/module.service";
|
||||
import { ProjectService } from "@/services/project";
|
||||
// helpers
|
||||
import { orderModules, shouldFilterModule } from "helpers/module.helper";
|
||||
import { orderModules, shouldFilterModule } from "@/helpers/module.helper";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IModule, ILinkDetails } from "@plane/types";
|
||||
|
||||
export interface IModuleStore {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { action, computed, observable, makeObservable, runInAction, autorun } fr
|
|||
import { computedFn } from "mobx-utils";
|
||||
import set from "lodash/set";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { TModuleDisplayFilters, TModuleFilters } from "@plane/types";
|
||||
|
||||
export interface IModuleFilterStore {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { action, makeObservable, observable, reaction, runInAction } from "mobx";
|
||||
|
||||
import { PageService } from "services/page.service";
|
||||
import { PageService } from "@/services/page.service";
|
||||
import { IIssueLabel, IPage } from "@plane/types";
|
||||
|
||||
import { RootStore } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { isThisWeek, isToday, isYesterday } from "date-fns";
|
|||
import { set } from "lodash";
|
||||
import { makeObservable, observable, runInAction, action, computed } from "mobx";
|
||||
// services
|
||||
import { PageService } from "services/page.service";
|
||||
import { PageService } from "@/services/page.service";
|
||||
// store
|
||||
import { PageStore, IPageStore } from "store/page.store";
|
||||
import { PageStore, IPageStore } from "@/store/page.store";
|
||||
// types
|
||||
import { IPage, IRecentPages } from "@plane/types";
|
||||
import { RootStore } from "./root.store";
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import { set } from "lodash";
|
|||
import { observable, action, makeObservable, runInAction, computed } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// services
|
||||
import { ViewService } from "services/view.service";
|
||||
import { RootStore } from "store/root.store";
|
||||
import { ViewService } from "@/services/view.service";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
// types
|
||||
import { IProjectView } from "@plane/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { IProjectPublishStore, ProjectPublishStore } from "./project-publish.store";
|
||||
import { IProjectStore, ProjectStore } from "./project.store";
|
||||
import { IProjectFilterStore, ProjectFilterStore } from "./project_filter.store";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import set from "lodash/set";
|
||||
import { observable, action, makeObservable, runInAction } from "mobx";
|
||||
// types
|
||||
import { ProjectPublishService } from "services/project";
|
||||
import { ProjectPublishService } from "@/services/project";
|
||||
import { ProjectRootStore } from "./";
|
||||
// services
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import sortBy from "lodash/sortBy";
|
|||
import { observable, action, computed, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// types
|
||||
import { IssueLabelService, IssueService } from "services/issue";
|
||||
import { ProjectService, ProjectStateService } from "services/project";
|
||||
import { IssueLabelService, IssueService } from "@/services/issue";
|
||||
import { ProjectService, ProjectStateService } from "@/services/project";
|
||||
import { IProject } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
import { orderProjects, shouldFilterProject } from "helpers/project.helper";
|
||||
import { orderProjects, shouldFilterProject } from "@/helpers/project.helper";
|
||||
// services
|
||||
export interface IProjectStore {
|
||||
// observables
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { action, computed, observable, makeObservable, runInAction, autorun } fr
|
|||
import { computedFn } from "mobx-utils";
|
||||
import set from "lodash/set";
|
||||
// types
|
||||
import { RootStore } from "store/root.store";
|
||||
import { RootStore } from "@/store/root.store";
|
||||
import { TProjectDisplayFilters, TProjectFilters } from "@plane/types";
|
||||
|
||||
export interface IProjectFilterStore {
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import set from "lodash/set";
|
|||
import { makeObservable, observable, computed, action, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
// store
|
||||
import { sortStates } from "helpers/state.helper";
|
||||
import { ProjectStateService } from "services/project";
|
||||
import { sortStates } from "@/helpers/state.helper";
|
||||
import { ProjectStateService } from "@/services/project";
|
||||
import { IState } from "@plane/types";
|
||||
import { RootStore } from "./root.store";
|
||||
// types
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { action, observable, runInAction, makeObservable } from "mobx";
|
||||
// services
|
||||
import { AuthService } from "services/auth.service";
|
||||
import { UserService } from "services/user.service";
|
||||
import { AuthService } from "@/services/auth.service";
|
||||
import { UserService } from "@/services/user.service";
|
||||
// interfaces
|
||||
import { IUser, IUserSettings } from "@plane/types";
|
||||
// store
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { set } from "lodash";
|
||||
import { action, observable, runInAction, makeObservable, computed } from "mobx";
|
||||
// services
|
||||
import { EUserProjectRoles } from "constants/project";
|
||||
import { EUserWorkspaceRoles } from "constants/workspace";
|
||||
import { ProjectMemberService } from "services/project";
|
||||
import { UserService } from "services/user.service";
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { EUserProjectRoles } from "@/constants/project";
|
||||
import { EUserWorkspaceRoles } from "@/constants/workspace";
|
||||
import { ProjectMemberService } from "@/services/project";
|
||||
import { UserService } from "@/services/user.service";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
// interfaces
|
||||
import { IWorkspaceMemberMe, IProjectMember, IUserProjectsRole } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// mobx
|
||||
import { action, observable, makeObservable, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
import { APITokenService } from "services/api_token.service";
|
||||
import { APITokenService } from "@/services/api_token.service";
|
||||
import { IApiToken } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
// types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import set from "lodash/set";
|
||||
import { action, computed, observable, makeObservable, runInAction } from "mobx";
|
||||
import { WorkspaceService } from "services/workspace.service";
|
||||
import { WorkspaceService } from "@/services/workspace.service";
|
||||
import { IWorkspace } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
// types
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// mobx
|
||||
import { action, observable, makeObservable, computed, runInAction } from "mobx";
|
||||
import { computedFn } from "mobx-utils";
|
||||
import { WebhookService } from "services/webhook.service";
|
||||
import { WebhookService } from "@/services/webhook.service";
|
||||
import { IWebhook } from "@plane/types";
|
||||
import { RootStore } from "../root.store";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue