Skip to content

feat: remove env from mcp config#8337

Merged
f2c-ci-robot[bot] merged 1 commit intodevfrom
pr@dev@mcp
Apr 7, 2025
Merged

feat: remove env from mcp config#8337
f2c-ci-robot[bot] merged 1 commit intodevfrom
pr@dev@mcp

Conversation

@zhengkunwang223
Copy link
Copy Markdown
Member

No description provided.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Apr 7, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

prettyJson.value = JSON.stringify(jsonObj.value, null, 2);
open.value = true;
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated code introduces the Vue-Codemirror component to display the prettyJson string in a formatted manner using Markdown syntax. The codemirror extension is set up with JavaScript syntax highlighting and One Dark theme.

Recommendations:

1. Code Consistency: Ensure that the usage and spacing of tags like <template>, <el-input>, etc., follow the same convention throughout the template file.

Original vs. Updated Code:

  • Original:
    <el-input type="textarea" :autosize="{ minRows: 10, maxRows: 20 }">
        {{ prettyJson }}
    </el-input>
  • Updated:
    <codemirror autofocus tabindex="0" placeholder="$t('commons.msg.noneData')" indent-with-tab tabSize="4" height="300px" lineWrapping matchBrackets=true theme="cobalt" styleActiveLine=true extensions="[javascript(), oneDark]" v-model="prettyJson" disabled=false>

Ensure consistent indentation and use proper HTML attributes without spaces.

2. Accessibility Consideration: The disabled="true" attribute on the Codemirror input element prevents it from being editable which can potentially confuse users as they might assume it’s interactive. If you intend for users to be able to edit the text while viewing, remove the disabled attribute.

Updated Code:

<codemirror autofocus tabindex="0" placeholder="$t('commons.msg.noneData')" indent-with-tab tabSize="4" height="300px" lineWrapping matchBrackets=true theme="cobalt" styleActiveLine=true extensions="[javascript(), oneDark]" v-model="prettyJson">

By making these adjustments, the code will improve its readability and usability. Let me know if there's anything more needed!

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2025

Copy link
Copy Markdown
Member

@wanghe-fit2cloud wanghe-fit2cloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@wanghe-fit2cloud
Copy link
Copy Markdown
Member

/approve

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Apr 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wanghe-fit2cloud

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved label Apr 7, 2025
@f2c-ci-robot f2c-ci-robot bot merged commit 3be3bf9 into dev Apr 7, 2025
6 checks passed
@f2c-ci-robot f2c-ci-robot bot deleted the pr@dev@mcp branch April 7, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants