Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af55e06

Browse files
FalkWolskyludomikula
FalkWolsky
authored andcommittedMar 26, 2024
Enabling display of Version Number for Remote Components
1 parent 5a64c74 commit af55e06

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
 

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ export const CompName = (props: Iprops) => {
119119
onClick: () => {
120120
},
121121
});
122+
items.push({
123+
text: trans("history.currentVersion") + ": " + compInfo.packageVersion,
124+
onClick: () => {
125+
126+
},
127+
});
128+
122129
items.push({
123130
text: trans("comp.menuUpgradeToLatest"),
124131
onClick: () => {

‎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
import styled from "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
const handleSetNpmPlugins = (nextNpmPlugins: string[]) => {
4143
dispatch(
4244
setCommonSettings({

0 commit comments

Comments
 (0)
Please sign in to comment.