Skip to content

Commit

Permalink
Rounding up Private Repository Support
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkWolsky committed Aug 31, 2024
1 parent 89264d6 commit 6514883
Show file tree
Hide file tree
Showing 4 changed files with 365 additions and 4 deletions.
14 changes: 14 additions & 0 deletions client/packages/lowcoder/src/comps/hooks/utilsComp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import copy from "copy-to-clipboard";
import { saveDataAsFile } from "../../util/fileUtils";
import { openApp, recordToSearchStr } from "../../util/appUtils";
import { trans } from "i18n";
import { logoutAction } from "redux/reduxActions/userActions";
import { useDispatch } from "react-redux";
import { useCallback } from "react";


const UtilsCompBase = simpleMultiComp({});
export let UtilsComp = withExposingConfigs(UtilsCompBase, []);
Expand Down Expand Up @@ -107,4 +111,14 @@ UtilsComp = withMethodExposing(UtilsComp, [
}
},
},
{
method: {
name: "logoutUser",
description: trans("utilsComp.downloadFile"),
params: [],
},
execute: (comp, params) => {
logoutAction({})
},
},
]);
6 changes: 3 additions & 3 deletions client/packages/lowcoder/src/constants/npmPlugins.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const SERVER_HOST = `${REACT_APP_API_SERVICE_URL ?? ""}`;
export const NPM_REGISTRY_URL = `${SERVER_HOST}/api/npm/registry`;
export const NPM_PLUGIN_ASSETS_BASE_URL = `${SERVER_HOST}/api/npm/package`;
export const SERVER_HOST = `${REACT_APP_NODE_SERVICE_URL ?? ""}`;
export const NPM_REGISTRY_URL = `${SERVER_HOST}/node-service/api/npm/registry`;
export const NPM_PLUGIN_ASSETS_BASE_URL = `${SERVER_HOST}/node-service/api/npm/package`;
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const fetchApiKeysAction = () => {
type: ReduxActionTypes.FETCH_API_KEYS,
};
};

export const fetchApiKeysSuccess = (payload: FetchApiKeysPayload) => {
return {
type: ReduxActionTypes.FETCH_API_KEYS_SUCCESS,
Expand Down

Large diffs are not rendered by default.

0 comments on commit 6514883

Please sign in to comment.