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.
π€ Generated by Copilot at ba78a3c
Summary
πποΈπ
Added new API endpoints and UI features for the frontend providers template to support more Kubernetes resources related to an app. Refactored some existing code to improve readability and maintainability. Created a new license service with Next.js, Chakra UI, and MongoDB. Configured the ESLint, Prettier, and i18n options for the license service.
Walkthrough
zh-Hans
locale from supported locales innext-i18next.config.js
(link)accept-language
header instead ofNEXT_LOCALE
cookie to determine user's preferred language ingetServerSideProps
functions inindex.tsx
andsignin.tsx
(link, link)deleteResourceByKind
function to use a record object instead of a switch statement and add new delete functions forConfigMap
,Issuer
,Role
,RoleBinding
, andServiceAccount
resources indelete.ts
(link)dbProviderKey
constant to store the label selector for the database provider custom resource inkeys.ts
(link)deployManagerKey
constant andk8sAuth
service and add new sections of code to handle the listing of issuer, role, role binding, service account, and config map resources inlistOtherByName.ts
(link, link, link, link, link, link)delConfigMap.ts
,deleteIssuer.ts
,delRole.ts
,delRoleBinding.ts
, anddelServiceAccount.ts
(link, link, link, link, link)ResourceKindType
type inresource.ts
(link).eslintrc.json
,.gitignore
,.prettierignore
,.prettierrc.js
,next-i18next.config.js
, andnext.config.js
(link, link, link, link, link, link)package.json
(link)README.md
(link)