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:
Prateek Shourya 2025-06-16 17:18:41 +05:30 committed by GitHub
parent dffcc6dc10
commit 2014400bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
614 changed files with 1999 additions and 3030 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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";

View file

@ -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";

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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";

View file

@ -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";