Skip to content

Commit

Permalink
Enabling display of Version Number for Remote Components
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkWolsky committed Mar 24, 2024
1 parent eeef89a commit d602bd4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions client/packages/lowcoder/src/components/CompName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ export const CompName = (props: Iprops) => {


if (compInfo.isRemote) {
items.push({
text: trans("history.currentVersion") + ": " + compInfo.packageVersion,
onClick: () => {

},
});

items.push({
text: trans("comp.menuUpgradeToLatest"),
onClick: () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function PluginCompItem(props: PluginCompItemProps) {
</div>
<div className="module-content">
<div className="module-name">{compMeta.name}</div>
<div className="module-desc">{compMeta.description || "No description."}</div>
<div className="module-desc">{compMeta.description || "No description."} <span>v{packageVersion || ""}</span></div>
</div>
</ItemWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getUser } from "redux/selectors/usersSelectors";
import { BluePlusIcon, CustomModal, DocLink, TacoButton, TacoInput } from "lowcoder-design";
import { getCommonSettings } from "redux/selectors/commonSettingSelectors";
import styled from "styled-components";
import { normalizeNpmPackage, validateNpmPackage } from "comps/utils/remote";
import { getNpmPackageMeta, normalizeNpmPackage, validateNpmPackage } from "comps/utils/remote";
import { ComListTitle, ExtensionContentWrapper } from "../styledComponent";
import { EmptyContent } from "components/EmptyContent";
import { messageInstance } from "lowcoder-design";
Expand Down Expand Up @@ -37,6 +37,8 @@ export default function PluginPanel() {
[commonSettings?.npmPlugins]
);

console.log("plugins: ", plugins);

const handleSetNpmPlugins = (nextNpmPlugins: string[]) => {
dispatch(
setCommonSettings({
Expand Down

0 comments on commit d602bd4

Please sign in to comment.