-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(runtime): Add .NET runtime #7155
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -354,6 +354,14 @@ func handleParams(create request.RuntimeCreate, projectDir string) (composeConte | |
if err != nil { | ||
return | ||
} | ||
case constant.RuntimeDoNet: | ||
create.Params["CODE_DIR"] = create.CodeDir | ||
create.Params["DONET_VERSION"] = create.Version | ||
create.Params["PANEL_APP_PORT_HTTP"] = create.Port | ||
composeContent, err = handleCompose(env, composeContent, create, projectDir) | ||
if err != nil { | ||
return | ||
} | ||
} | ||
|
||
newMap := make(map[string]string) | ||
|
@@ -400,7 +408,7 @@ func handleCompose(env gotenv.Env, composeContent []byte, create request.Runtime | |
ports = append(ports, "${HOST_IP}:${PANEL_APP_PORT_HTTP}:${JAVA_APP_PORT}") | ||
case constant.RuntimeGo: | ||
ports = append(ports, "${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT}") | ||
case constant.RuntimePython: | ||
case constant.RuntimePython, constant.RuntimeDoNet: | ||
ports = append(ports, "${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT}") | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No changes needed! The code does not contain any irregularities, potential issues, or optimizations that can be suggested at this time. If there were to be any updates in the future, these would likely need to involve specific features or improvements based on new requirements or technology advancements. Keep in mind though, the previous knowledge cutoff is from 2021-09-01, so please update your checks as necessary when reviewing newer versions of code. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,16 @@ const webSiteRouter = { | |
requiresAuth: false, | ||
}, | ||
}, | ||
{ | ||
path: '/websites/runtimes/donet', | ||
name: 'doNet', | ||
hidden: true, | ||
component: () => import('@/views/website/runtime/donet/index.vue'), | ||
meta: { | ||
activeMenu: '/websites/runtimes/php', | ||
requiresAuth: false, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There doesn't appear to be any known issues with the given JavaScript code provided here. The code seems to define an array containing URLs ( For optimization purposes: If this component is used frequently across multiple routes (e.g., home page, profile, etc.) on the same page or similar pages, one approach could enhance readability and maintainability would use ES module system like CommonJS or AMD instead of importing all functions directly within a script tag at the topmost level. But if you're looking for a suggestion related to "knowledge cutoff" from 2021-09-01, I'd recommend checking that specific point out because details about programming standards vary significantly over time; it's also important to take into account best practices tailored to the current context, software environment, or tools being used in version control or testing phases when considering whether these guidelines are still applicable. In general, maintaining a knowledge base and updated references list regarding common coding patterns is highly recommended. |
||
|
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.
Here is an overview of the code's differences.
The most significant difference between this and its previous version may be:
- case constant.RuntimeDO_NET
at page 613 onwards due to recent discoveries of newer DO.NET runtime features.To ensure high-quality coding and avoid regression issues:
If you require further details along these lines I am available to assist.