Content-Length: 453518 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1697/commits/e2a39efe88399abe9776b032e5669e2c25370517

9B Upgrade node packages + Optimisations to improve memory consumption by raheeliftikhar5 · Pull Request #1697 · lowcoder-org/lowcoder · GitHub
Skip to content

Upgrade node packages + Optimisations to improve memory consumption #1697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
80a2d08
upgrade react-resize-detector, replace ReactResizeDetector comp with …
raheeliftikhar5 Apr 29, 2025
e2a39ef
upgrade react-draggable, added missing nodeRef
raheeliftikhar5 Apr 29, 2025
2130263
replaced react-quill with react-quill-new
raheeliftikhar5 Apr 29, 2025
9ae9a9c
removed react-sortabled-hoc, used dnd-kit for sorting
raheeliftikhar5 Apr 29, 2025
8266951
fix icon comp, icon button when no icon is selected
raheeliftikhar5 Apr 29, 2025
61d5a45
added memoization on table comp
raheeliftikhar5 Apr 29, 2025
41f6276
upgrade comps
raheeliftikhar5 Apr 29, 2025
73c613b
build lowcoder-core after upgrading react version
raheeliftikhar5 Apr 29, 2025
e7c960b
upgraded react, react-dom in lowcoderc-comps + replaced ReactResizeDe…
raheeliftikhar5 Apr 29, 2025
2e1fd49
upgrade packages
raheeliftikhar5 Apr 29, 2025
eae5b3d
optimise drawer comp
raheeliftikhar5 May 21, 2025
9cac3cf
optimise lowcoder-design components
raheeliftikhar5 May 21, 2025
c2c88ec
optimise shared components
raheeliftikhar5 May 21, 2025
707e3e0
optimise table comp, toolbar, filters, summary rows and different col…
raheeliftikhar5 May 21, 2025
405822b
optimise button component
raheeliftikhar5 May 21, 2025
da075f5
optimise editor view
raheeliftikhar5 May 21, 2025
0543b12
optimise canvas view/inner grid, root comp, gridLayout, gridItem and …
raheeliftikhar5 May 21, 2025
05ee98b
optimise form components
raheeliftikhar5 May 21, 2025
c2680f3
optimise modal comp
raheeliftikhar5 May 21, 2025
371a9bc
optimise event handler control
raheeliftikhar5 May 21, 2025
6ef3c5e
remove antd's react 19 patch
raheeliftikhar5 May 21, 2025
6ab43b4
fixed query variable value when used with event handler control
raheeliftikhar5 May 21, 2025
0bdc38c
Merge branch 'dev' into feature/support-react-19
FalkWolsky May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
upgrade react-draggable, added missing nodeRef
  • Loading branch information
raheeliftikhar5 committed May 22, 2025
commit e2a39efe88399abe9776b032e5669e2c25370517
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ButtonProps } from "antd/es/button";
import { default as AntdModal, ModalFuncProps, ModalProps as AntdModalProps } from "antd/es/modal";
import { ReactComponent as PackUpIcon } from "icons/v1/icon-Pack-up.svg";
import React, { ReactNode, useState } from "react";
import React, { ReactNode, useRef, useState } from "react";
import styled from "styled-components";
import { TacoButtonType, TacoButton } from "components/button";
import Draggable from "react-draggable";
Expand Down Expand Up @@ -221,9 +221,12 @@ const DEFAULT_PROPS = {
} as const;

function CustomModalRender(props: Omit<CustomModalProps & ModalFuncProps, "width"> & { width?: string | number }) {
const draggableRef = useRef<HTMLDivElement>(null);

return (
<Draggable handle=".handle" disabled={!props.draggable}>
<ModalWrapper
<Draggable handle=".handle" disabled={!props.draggable} nodeRef={draggableRef}>
<ModalWrapper
ref={draggableRef}
$width={props.width}
$customStyles={props?.customStyles}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class Icon {
else
return (
<FontAwesomeIcon
className=""
icon={this.def}
style={{ width: "1em", height: "1em"}}
/>
Expand Down Expand Up @@ -256,6 +257,7 @@ const IconPopup = (props: {
searchKeywords?: Record<string, string>;
IconType?: "OnlyAntd" | "All" | "default" | undefined;
}) => {
const draggableRef = useRef<HTMLDivElement>(null);
const [searchText, setSearchText] = useState("");
const [allIcons, setAllIcons] = useState<Record<string, Icon>>({});
const searchResults = useMemo(
Expand Down Expand Up @@ -289,6 +291,7 @@ const IconPopup = (props: {
title={icon.title + ", Key: " + key}
placement="bottom"
align={{ offset: [0, -7, 0, 0] }}
getPopupContainer={(node: any) => node.parentNode}
destroyTooltipOnHide
>
<IconItemContainer
Expand All @@ -311,8 +314,8 @@ const IconPopup = (props: {
[searchResults, allIcons, onChangeIcon]
);
return (
<Draggable handle=".dragHandle">
<PopupContainer>
<Draggable handle=".dragHandle" nodeRef={draggableRef}>
<PopupContainer ref={draggableRef}>
<TitleDiv className="dragHandle">
<TitleText>{trans("iconSelect.title")}</TitleText>
<StyledCloseIcon onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ const IconPopup = (props: {
searchKeywords?: Record<string, string>;
IconType?: "OnlyAntd" | "All" | "default" | undefined;
}) => {
const draggableRef = useRef<HTMLDivElement>(null);
const [allIcons, setAllIcons] = useState<Record<string, Icon>>({});
const onChangeRef = useRef(props.onChange);
onChangeRef.current = props.onChange;
Expand Down Expand Up @@ -374,8 +375,8 @@ const IconPopup = (props: {
// [searchResults, allIcons, onChangeIcon]
// );
return (
<Draggable handle=".dragHandle">
<PopupContainer>
<Draggable handle=".dragHandle" nodeRef={draggableRef}>
<PopupContainer ref={draggableRef}>
<TitleDiv className="dragHandle">
<TitleText>{trans("shapeSelect.title")}</TitleText>
<StyledCloseIcon onClick={props.onClose} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const BottomResultPanel = (props: BottomResultPanelProps) => {

return (
<Draggable
nodeRef={draggableRef}
disabled={unDraggable}
bounds={bounds}
enableUserSelectHack={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const CodeEditorPanel = (props: {
getPopupContainer={(node: any) => node.parentNode.parentNode}
popup={() => (
<Draggable
nodeRef={draggableRef}
positionOffset={{ x: "-50%", y: "-50%" }}
disabled={unDraggable}
bounds={bounds}
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1697/commits/e2a39efe88399abe9776b032e5669e2c25370517

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy