-
Notifications
You must be signed in to change notification settings - Fork 2k
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: accomplished create, update and delete function in Kube Panel #4300
Conversation
β¦te new ones in plugins/monitor
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
π€ 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 #4300 +/- ##
=======================================
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. |
try { | ||
if (req.method !== 'POST') throw new Error(`Method not allowed: ${req.method}`); | ||
|
||
const { resource } = req.query; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add ts type
π€ Generated by Copilot at d3744f0
Summary
ππποΈ
This pull request updates the dependencies and the UI of the kubepanel plugin for the frontend of the sealos project. It adds the Monaco code editor for editing YAML files and the latest version of React for the UI. It also adds sample YAML templates for creating different Kubernetes resources and API functions for creating, updating, and deleting resources. It refactors and simplifies some of the code that displays information about Kubernetes objects in a drawer panel. It changes the appearance and layout of some of the components, such as the pie chart and the badge, to make them more readable and consistent with the design of the frontend.
Walkthrough
parseResponse
function inlist.ts
by removing redundantkind
parameter (link, link, link, link)PieChart
component to make it bigger, less hollow, and more readable (link)KubeBadge
component to make it more visible and consistent with frontend design (link)KubeRecord
component toDrawerItem
and update its usage inKubeObjectInfoList
component (link, link, link, link, link, link, link, link, link, link, link, link)