-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:app launchpad && template supports api calls #4322
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
π€ Generated by lychee actionSummary
Full action output |
Apply Sweep Rules to your PR?
|
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #4322 +/- ##
=======================================
Coverage 65.45% 65.45%
=======================================
Files 8 8
Lines 660 660
=======================================
Hits 432 432
Misses 180 180
Partials 48 48 β View full report in Codecov by Sentry. |
Signed-off-by: jingyang <3161362058@qq.com>
Signed-off-by: jingyang <3161362058@qq.com>
Signed-off-by: jingyang <3161362058@qq.com>
lingdie
approved these changes
Nov 21, 2023
Signed-off-by: jingyang <3161362058@qq.com>
c121914yu
approved these changes
Nov 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π€[deprecated] Generated by Copilot at f9a5bab
Summary
ππ οΈπ
This pull request adds several new API handler functions for the template and applaunchpad providers, to enable creating, applying, and exporting templates and apps from the frontend. It also refactors some existing code to extract and reuse common functions, and adds or modifies some labels and console logs for debugging or identification purposes. It also improves the code formatting and readability of some files, and comments out some code that may cause issues in the dbprovider.
Walkthrough
GetTemplateByName
infrontend/providers/template/src/pages/api/getTemplateSource.ts
and export it for reuse (link, link)formData2Yamls
function fromfrontend/providers/applaunchpad/src/pages/app/edit/index.tsx
tofrontend/providers/applaunchpad/src/pages/api/v1alpha/createApp.ts
and export it for reuse (link, link)frontend/providers/dbprovider/src/utils/json2Yaml.ts
(link)json2Ingress
function infrontend/providers/applaunchpad/src/utils/deployYaml2Json.ts
for debugging purposes (link)frontend/providers/dbprovider/src/pages/db/detail/components/DumpImport/index.tsx
for testing or debugging purposes (link)serverLoadInitData
tofrontend/providers/applaunchpad/src/store/static.ts
to load the environment variables for the SEALOS domain, port, secret, and event analyze feature (link)frontend/providers/template/src/pages/deploy/index.tsx
for formatting or style purposes (link, link, link, link, link, link, link)frontend/providers/applaunchpad/src/store/static.ts
for formatting purposes (link, link)