Skip to content

Commit bb7fe20

Browse files
fixed loading indicator
1 parent 4bd0db5 commit bb7fe20

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

client/packages/lowcoder/src/components/NpmRegistryConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
22
import { HelpText } from "./HelpText";
33
import { FormInputItem, FormSelectItem, TacoSwitch } from "lowcoder-design";
44
import { Form } from "antd";
5-
import { trans } from "@lowcoder-ee/i18n";
5+
import { trans } from "i18n";
66
import { FormStyled } from "@lowcoder-ee/pages/setting/idSource/styledComponents";
77
import { SaveButton } from "@lowcoder-ee/pages/setting/styled";
88
import { NpmRegistryConfigEntry } from "@lowcoder-ee/redux/reducers/uiReducers/commonSettingsReducer";

client/packages/lowcoder/src/comps/comps/fileComp/fileComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import type { ItemType } from "antd/es/menu/interface";
4848
import Skeleton from "antd/es/skeleton";
4949
import Menu from "antd/es/menu";
5050
import Flex from "antd/es/flex";
51-
import { checkIsMobile } from "@lowcoder-ee/index.sdk";
51+
import { checkIsMobile } from "@lowcoder-ee/util/commonUtils";
5252

5353
const FileSizeControl = codeControl((value) => {
5454
if (typeof value === "number") {

client/packages/lowcoder/src/comps/comps/mediaComp/colorPickerConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { trans } from "@lowcoder-ee/i18n";
1+
import { trans } from "i18n";
22

33
export const presets =
44
{

client/packages/lowcoder/src/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ if (!window.ResizeObserver) {
2424
window.ResizeObserver = ResizeObserver;
2525
}
2626

27-
export function hideLoading() {
28-
// hide loading
29-
const node = document.getElementById("loading");
30-
if (node) {
31-
// @ts-ignore
32-
node.style.opacity = 0;
33-
}
34-
}
35-
3627
debug(`REACT_APP_EDITION: ${REACT_APP_EDITION}`);
3728
debug(`REACT_APP_LANGUAGES:, ${REACT_APP_LANGUAGES}`);
3829
debug(`REACT_APP_API_SERVICE_URL:, ${REACT_APP_API_SERVICE_URL}`);
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import {useEffect} from "react";
2-
import {hideLoading} from "@lowcoder-ee/index";
32

3+
function hideLoading() {
4+
// hide loading
5+
const node = document.getElementById("loading");
6+
if (node) {
7+
// @ts-ignore
8+
node.style.opacity = 0;
9+
}
10+
}
411
export const LoadingBarHideTrigger = function(props: any) {
5-
useEffect(() => {
6-
setTimeout(() => hideLoading(), 300);
7-
}, []);
12+
useEffect(() => {
13+
setTimeout(() => hideLoading(), 300);
14+
}, []);
815

9-
return <></>
16+
return <></>
1017
};

0 commit comments

Comments
 (0)