Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd602bd4

Browse files
author
FalkWolsky
committed
Enabling display of Version Number for Remote Components
1 parenteeef89a commitd602bd4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

‎client/packages/lowcoder/src/components/CompName.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ export const CompName = (props: Iprops) => {
112112

113113

114114
if(compInfo.isRemote){
115+
items.push({
116+
text:trans("history.currentVersion")+": "+compInfo.packageVersion,
117+
onClick:()=>{
118+
119+
},
120+
});
121+
115122
items.push({
116123
text:trans("comp.menuUpgradeToLatest"),
117124
onClick:()=>{

‎client/packages/lowcoder/src/pages/editor/right/PluginPanel/PluginCompItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function PluginCompItem(props: PluginCompItemProps) {
9696
</div>
9797
<divclassName="module-content">
9898
<divclassName="module-name">{compMeta.name}</div>
99-
<divclassName="module-desc">{compMeta.description||"No description."}</div>
99+
<divclassName="module-desc">{compMeta.description||"No description."}<span>v{packageVersion||""}</span></div>
100100
</div>
101101
</ItemWrapper>
102102
);

‎client/packages/lowcoder/src/pages/editor/right/PluginPanel/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getUser } from "redux/selectors/usersSelectors";
77
import{BluePlusIcon,CustomModal,DocLink,TacoButton,TacoInput}from"lowcoder-design";
88
import{getCommonSettings}from"redux/selectors/commonSettingSelectors";
99
importstyledfrom"styled-components";
10-
import{normalizeNpmPackage,validateNpmPackage}from"comps/utils/remote";
10+
import{getNpmPackageMeta,normalizeNpmPackage,validateNpmPackage}from"comps/utils/remote";
1111
import{ComListTitle,ExtensionContentWrapper}from"../styledComponent";
1212
import{EmptyContent}from"components/EmptyContent";
1313
import{messageInstance}from"lowcoder-design";
@@ -37,6 +37,8 @@ export default function PluginPanel() {
3737
[commonSettings?.npmPlugins]
3838
);
3939

40+
console.log("plugins: ",plugins);
41+
4042
consthandleSetNpmPlugins=(nextNpmPlugins:string[])=>{
4143
dispatch(
4244
setCommonSettings({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp