Skip to content

Commit 6514883

Browse files
author
FalkWolsky
committed
Rounding up Private Repository Support
1 parent 89264d6 commit 6514883

File tree

4 files changed

+365
-4
lines changed

4 files changed

+365
-4
lines changed

client/packages/lowcoder/src/comps/hooks/utilsComp.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import copy from "copy-to-clipboard";
66
import { saveDataAsFile } from "../../util/fileUtils";
77
import { openApp, recordToSearchStr } from "../../util/appUtils";
88
import { trans } from "i18n";
9+
import { logoutAction } from "redux/reduxActions/userActions";
10+
import { useDispatch } from "react-redux";
11+
import { useCallback } from "react";
12+
913

1014
const UtilsCompBase = simpleMultiComp({});
1115
export let UtilsComp = withExposingConfigs(UtilsCompBase, []);
@@ -107,4 +111,14 @@ UtilsComp = withMethodExposing(UtilsComp, [
107111
}
108112
},
109113
},
114+
{
115+
method: {
116+
name: "logoutUser",
117+
description: trans("utilsComp.downloadFile"),
118+
params: [],
119+
},
120+
execute: (comp, params) => {
121+
logoutAction({})
122+
},
123+
},
110124
]);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const SERVER_HOST = `${REACT_APP_API_SERVICE_URL ?? ""}`;
2-
export const NPM_REGISTRY_URL = `${SERVER_HOST}/api/npm/registry`;
3-
export const NPM_PLUGIN_ASSETS_BASE_URL = `${SERVER_HOST}/api/npm/package`;
1+
export const SERVER_HOST = `${REACT_APP_NODE_SERVICE_URL ?? ""}`;
2+
export const NPM_REGISTRY_URL = `${SERVER_HOST}/node-service/api/npm/registry`;
3+
export const NPM_PLUGIN_ASSETS_BASE_URL = `${SERVER_HOST}/node-service/api/npm/package`;

client/packages/lowcoder/src/redux/reduxActions/userActions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export const fetchApiKeysAction = () => {
7070
type: ReduxActionTypes.FETCH_API_KEYS,
7171
};
7272
};
73-
7473
export const fetchApiKeysSuccess = (payload: FetchApiKeysPayload) => {
7574
return {
7675
type: ReduxActionTypes.FETCH_API_KEYS_SUCCESS,

client/packages/lowcoder/vite.config.mts.timestamp-1725097567545-70da37240249b.mjs

Lines changed: 348 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)