Closed yy-wow closed 3 weeks ago
The pull request introduces significant updates across multiple files, primarily focusing on replacing the useHttp
function with getMetaApi(META_SERVICE.Http)
for handling HTTP requests. This change affects how application IDs are retrieved and modifies various components to improve error handling and user interactions. New dependencies are added, and existing ones are removed, reflecting a shift in the underlying architecture. The overall structure of the components remains intact, but the modifications enhance the functionality and maintainability of the codebase.
File Path | Change Summary |
---|---|
designer-demo/package.json |
Added dependencies: @opentiny/tiny-engine-utils and @vueuse/core . |
designer-demo/registry.js |
Updated metas array to include HttpService instead of GenerateCodeService . |
designer-demo/src/composable/http/Login.vue |
Introduced a new login popup component with methods for opening and closing the login interface. |
designer-demo/src/composable/http/index.js |
Implemented an HTTP service with enhanced error handling and login management. |
designer-demo/src/composable/index.js |
Exported HttpService from the http module. |
packages/canvas/DesignCanvas/src/DesignCanvas.vue |
Updated HTTP request handling to use getMetaApi . |
packages/common/composable/defaultGlobalService.js |
Replaced useHttp with getMetaApi in multiple functions. |
packages/common/composable/http/index.js |
Defined a new HTTP service with interceptors and configuration options. |
packages/common/composable/index.js |
Added export for HttpService . |
packages/common/js/http.js |
Updated HTTP requests to use getMetaApi . |
packages/common/js/vscodeGenerateFile.js |
Updated multiple functions to utilize getMetaApi for HTTP requests. |
packages/configurator/src/collection-configurator/CollectionConfigurator.vue |
Updated data fetching logic to use getMetaApi . |
packages/configurator/src/variable-configurator/VariableConfigurator.vue |
Updated HTTP request logic to use getMetaApi . |
packages/design-core/index.js |
Added HttpService to exports. |
packages/design-core/src/preview/src/preview/http.js |
Updated multiple functions to use getMetaApi . |
packages/design-core/src/preview/src/previewApp.vue |
Updated HTTP requests to utilize getMetaApi . |
packages/plugins/block/src/js/http.js |
Refactored HTTP request handling to use getMetaApi . |
packages/plugins/bridge/src/http.js |
Updated HTTP requests to utilize getMetaApi . |
packages/plugins/datasource/src/js/http.js |
Refactored HTTP request handling to use getMetaApi . |
packages/plugins/i18n/src/Main.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/composable/useMaterial.js |
Updated HTTP requests to use getMetaApi . |
packages/plugins/materials/src/composable/useResource.js |
Updated HTTP requests to use getMetaApi . |
packages/plugins/page/src/http.js |
Updated HTTP requests to use getMetaApi . |
packages/plugins/robot/src/Main.vue |
Updated HTTP requests to use getMetaApi . |
packages/plugins/robot/src/js/robotSetting.js |
Updated HTTP requests to use getMetaApi . |
packages/register/src/constants.js |
Added Http: 'engine.service.http' to META_SERVICE . |
packages/register/src/service.js |
Added setOptions method to apis object. |
packages/toolbars/generate-code/src/Main.vue |
Updated HTTP requests to use getMetaApi . |
packages/toolbars/generate-code/src/http.js |
Updated multiple functions to use getMetaApi . |
packages/toolbars/lock/src/http.js |
Updated HTTP requests to use getMetaApi . |
packages/toolbars/logo/src/Main.vue |
Updated HTTP requests to use getMetaApi . |
packages/toolbars/logout/src/js/http.js |
Updated logout request to use getMetaApi . |
packages/common/package.json |
Removed @opentiny/tiny-engine-http , added axios and axios-mock-adapter . |
packages/engine-cli/template/designer/registry.js |
Updated metas array to include HttpService . |
packages/engine-cli/template/designer/src/composable/http/index.js |
Introduced configuration and interceptors for HttpService . |
packages/http/src/axios.js |
Removed entire module. |
packages/http/vite.config.js |
Removed Vite configuration for the HTTP package. |
packages/http/src/config.js |
Removed configuration function for HTTP requests. |
packages/http/src/index.js |
Removed HTTP request handling module. |
packages/http/package.json |
Removed package configuration for @opentiny/tiny-engine-http . |
packages/plugins/block/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/bridge/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/datasource/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/help/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/i18n/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/materials/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/page/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/robot/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/schema/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/state/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/tutorial/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/settings/styles/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/toolbars/breadcrumb/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/toolbars/generate-code/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/toolbars/lock/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/toolbars/logo/package.json |
Removed dependency on @opentiny/tiny-engine-http . |
packages/plugins/block/src/js/blockSetting.jsx |
Updated application ID retrieval method. |
packages/plugins/bridge/src/js/resource.js |
Updated application ID retrieval method. |
packages/plugins/datasource/src/DataSourceForm.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/meta/block/src/BlockGroup.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/meta/block/src/BlockGroupPanel.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/meta/block/src/BlockList.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/meta/block/src/BlockPanel.vue |
Updated application ID retrieval method. |
packages/plugins/page/src/PageTree.vue |
Updated application ID retrieval method. |
packages/plugins/bridge/src/BridgeSetting.vue |
Updated application ID retrieval method and enhanced validation logic. |
packages/plugins/datasource/src/DataSourceGlobalDataHandler.vue |
No changes to exported entities. |
packages/plugins/datasource/src/DataSourceList.vue |
Updated application ID retrieval method. |
packages/plugins/materials/src/meta/block/src/BlockDetail.vue |
Updated application ID retrieval method. |
packages/plugins/page/src/PageFolderSetting.vue |
Updated application ID retrieval method and enhanced deletion logic. |
packages/plugins/page/src/PageSetting.vue |
Updated application ID retrieval method and added confirmation dialog for deletion. |
Main.vue
component, which includes updates to the handling of HTTP requests and the introduction of new functionalities that may relate to the changes in the designer-demo
project, particularly in terms of managing dependencies and services.Main.vue
, introducing image upload capabilities and refining model selection logic, which aligns with the updates in the designer-demo
project regarding service management and user interaction improvements.Main.vue
, which may connect to the overall enhancements in the designer-demo
project, particularly in how services and dependencies are managed and utilized within the application.ospp-2024
🐰 In the code where I hop and play,
New dependencies come out to stay.
WithHttpService
now in sight,
Fetching data feels just right!
Errors handled, logic clear,
A brighter future, oh so near! 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
支持用户自定义http请求配置
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
Release Notes
New Features
HttpService
to the engine's configuration for improved API interactions.Improvements
Dependency Updates
@opentiny/tiny-engine-http
and addedaxios
andaxios-mock-adapter
to improve HTTP handling.Bug Fixes