Skip to content

Commit 80abd4b

Browse files
author
FalkWolsky
committed
Translation file fixes and deleted console Logs
1 parent 4d0a3bb commit 80abd4b

File tree

15 files changed

+5418
-357
lines changed

15 files changed

+5418
-357
lines changed

client/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"test": "jest && yarn workspace lowcoder-comps test",
1818
"prepare": "yarn workspace lowcoder prepare",
1919
"build:core": "yarn workspace lowcoder-core build",
20-
"test:core": "yarn workspace lowcoder-core test"
20+
"test:core": "yarn workspace lowcoder-core test",
21+
"lint": "eslint . --fix"
2122
},
2223
"devDependencies": {
2324
"@babel/preset-env": "^7.20.2",

client/packages/lowcoder/.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"rules": {
55
// "react-hooks/exhaustive-deps": "off"
66
//"only-ascii/only-ascii": "error"
7+
"no-unused-vars": "warn",
8+
"import/no-unused-modules": [1, {"unusedExports": true}]
79
}
8-
}
10+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
102102

103103
// on safari
104104
const setStyle = (height: string, width: string) => {
105-
console.log(width, height);
105+
// console.log(width, height);
106106

107107
const img = imgRef.current;
108108
const imgDiv = img?.getElementsByTagName("div")[0];

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ let MTComp = (function () {
339339
}
340340
}, [userLeft]);
341341

342-
console.log("sharing", props.sharing);
342+
// console.log("sharing", props.sharing);
343343

344344
useEffect(() => {
345345
if (updateVolume.userid) {

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingStreamComp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ let VideoCompBuilder = (function (props) {
107107
client.on(
108108
"user-unpublished",
109109
(user: IAgoraRTCRemoteUser, mediaType: "video" | "audio") => {
110-
console.log("user-unpublished");
110+
// console.log("user-unpublished");
111111

112112
if (mediaType === "audio") {
113113
if (
@@ -140,7 +140,7 @@ let VideoCompBuilder = (function (props) {
140140
}
141141
}, [props.userId.value]);
142142

143-
console.log(props.userId);
143+
// console.log(props.userId);
144144

145145

146146
return (

client/packages/lowcoder/src/comps/comps/meetingComp/videoSharingStreamComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ let SharingCompBuilder = (function (props) {
104104
client.on(
105105
"user-unpublished",
106106
(user: IAgoraRTCRemoteUser, mediaType: "video" | "audio") => {
107-
console.log("user-unpublished");
107+
// console.log("user-unpublished");
108108

109109
if (mediaType === "audio") {
110110
if (

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ export class EditorState {
6262
this.rootComp = rootComp;
6363
this.setEditorState = setEditorState;
6464
this.editorModeStatus = initialEditorModeStatus;
65-
66-
console.log("initialEditorModeStatus,", initialEditorModeStatus);
6765
}
6866

6967
/**

client/packages/lowcoder/src/comps/generators/withMethodExposing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function withMethodExposingBase<T extends ExposeMethodCompConstructor<Abs
4444
try {
4545
result = method.execute(this as ConstructorToComp<T>, action.value.params);
4646
} catch (e) {
47-
console.log(e);
47+
// console.log(e);
4848
result = Promise.reject(e);
4949
}
5050
handlePromiseAfterResult(action, result);

client/packages/lowcoder/src/comps/hooks/agoraFunctions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const useAgora = () => {
103103
const videoHeight = videoSettings.height;
104104
setWidth(videoWidth!);
105105
setHeight(videoHeight!);
106-
console.log(`Video width: ${videoWidth}px, height: ${videoHeight}px`);
106+
// console.log(`Video width: ${videoWidth}px, height: ${videoHeight}px`);
107107
} else {
108108
console.error("Media stream track not found");
109109
}

client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ export class StreamQuery extends StreamTmpQuery {
9797

9898
this.socket = new WebSocket(socketUrl);
9999
this.socket.onopen = () => {
100-
console.log("[WebSocket] Connection established");
100+
// console.log("[WebSocket] Connection established");
101101
}
102102

103103
this.socket.onmessage = (event) => {
104-
console.log(`[WebSocket] Data received from server`);
104+
// console.log(`[WebSocket] Data received from server`);
105105
if(typeof JSON.parse(event.data) === 'object') {
106106
const result = createSuccessResponse(JSON.parse(event.data))
107107
p?.callback?.(result);
108108
}
109109
}
110110

111111
this.socket.onclose = () => {
112-
console.log(`[WebSocket] Connection closed`);
112+
// console.log(`[WebSocket] Connection closed`);
113113
}
114114

115115
this.socket.onerror = (error) => {

0 commit comments

Comments
 (0)