refactor: move web utils to packages (#7145)
* refactor: move web utils to packages * fix: build and lint errors * chore: update drag handle plugin * chore: update table cell type to fix build errors * fix: build errors * chore: sync few changes * fix: build errors * chore: minor fixes related to duplicate assets imports * fix: build errors * chore: minor changes
This commit is contained in:
parent
dffcc6dc10
commit
2014400bed
614 changed files with 1999 additions and 3030 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { EIssueServiceType } from "@plane/constants";
|
||||
// types
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import {
|
||||
TIssueParams,
|
||||
type IIssueDisplayProperties,
|
||||
|
|
@ -12,8 +12,7 @@ import {
|
|||
type TIssueSubIssues,
|
||||
} from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { getIssuesShouldFallbackToServer } from "@/helpers/issue.helper";
|
||||
import { getIssuesShouldFallbackToServer } from "@plane/utils";
|
||||
import { persistence } from "@/local-db/storage.sqlite";
|
||||
// services
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import { TIssueActivity, TIssueServiceType } from "@plane/types";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { APIService } from "@/services/api.service";
|
||||
// types
|
||||
// helper
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import { TIssue, TIssueServiceType } from "@plane/types";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { APIService } from "@/services/api.service";
|
||||
// types
|
||||
// constants
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
import { AxiosRequestConfig } from "axios";
|
||||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
// plane types
|
||||
import { TIssueAttachment, TIssueAttachmentUploadResponse, TIssueServiceType } from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { generateFileUploadPayload, getFileMetaDataForUpload } from "@/helpers/file.helper";
|
||||
import { generateFileUploadPayload, getFileMetaDataForUpload } from "@plane/utils";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
import { FileUploadService } from "@/services/file-upload.service";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import { EIssueServiceType } from "@plane/constants";
|
||||
// plane types
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import { TFileSignedURLResponse, TIssueComment, TIssueServiceType } from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { generateFileUploadPayload, getFileMetaDataForUpload } from "@/helpers/file.helper";
|
||||
import { generateFileUploadPayload, getFileMetaDataForUpload } from "@plane/utils";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
import { FileUploadService } from "@/services/file-upload.service";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { API_BASE_URL } from "@plane/constants";
|
||||
import { TIssue, TIssuesResponse } from "@plane/types";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
import { APIService } from "@/services/api.service";
|
||||
// helpers
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { API_BASE_URL } from "@plane/constants";
|
||||
import { IIssueLabel } from "@plane/types";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
// types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import { type TIssueCommentReaction, type TIssueReaction, type TIssueServiceType } from "@plane/types";
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
// types
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { API_BASE_URL } from "@plane/constants";
|
||||
import type { TIssueRelation, TIssue } from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// Plane-web
|
||||
import { TIssueRelationTypes } from "@/plane-web/types";
|
||||
// services
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
// plane imports
|
||||
import { EIssueServiceType } from "@plane/constants";
|
||||
import { EIssueServiceType, API_BASE_URL } from "@plane/constants";
|
||||
import {
|
||||
type TDescriptionVersionsListResponse,
|
||||
type TDescriptionVersionDetails,
|
||||
type TIssueServiceType,
|
||||
} from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { API_BASE_URL } from "@plane/constants";
|
||||
import { TIssue, TWorkspaceDraftIssue, TWorkspaceDraftPaginationInfo } from "@plane/types";
|
||||
// helpers
|
||||
import { API_BASE_URL } from "@/helpers/common.helper";
|
||||
// services
|
||||
import { APIService } from "@/services/api.service";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue