Skip to content

[WIP] Reduce lowcoder-sdk initial bundle size #774

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
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
use antd/es
  • Loading branch information
raheeliftikhar5 committed Mar 26, 2024
commit 03cbba7bd3acadc67fafffd3a88bedd5834b1b4b
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@types/styled-components": "^5.1.34",
"antd-mobile": "^5.28.0",
"antd-mobile": "^5.34.0",
"chalk": "4",
"number-precision": "^1.6.0",
"react-player": "^2.11.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App } from 'antd';
import type { MessageInstance } from 'antd/es/message/interface';
import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
import type { NotificationInstance } from 'antd/es/notification/interface';
import { default as App } from "antd/es/app";
import type { MessageInstance } from "antd/es/message/interface";
import type { ModalStaticFunctions } from "antd/es/modal/confirm";
import type { NotificationInstance } from "antd/es/notification/interface";

let messageInstance: MessageInstance;
let notificationInstance: NotificationInstance;
Expand Down
4 changes: 2 additions & 2 deletions client/packages/lowcoder-design/src/components/Trees.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled, { css } from "styled-components";
import { ReactComponent as Folded } from "icons/icon-folded.svg";
import { DataNode, TreeProps } from "antd/lib/tree";
import DirectoryTree from "antd/lib/tree/DirectoryTree";
import { DataNode, TreeProps } from "antd/es/tree";
import DirectoryTree from "antd/es/tree/DirectoryTree";

export const Treediv = styled.div<{ $height?: number }>`
padding-left: 24px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { colord, extend } from "colord";
import namesPlugin from "colord/plugins/names";
import { generate } from "@ant-design/colors";
import { generate } from "@ant-design/colors/es";

extend([namesPlugin]);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import type { IconDefinition } from "@fortawesome/free-regular-svg-icons";
// import type { IconDefinition as IconDefinitionBrands } from "@fortawesome/free-brands-svg-icons";
import { Popover } from "antd";
import { Popover } from "antd/es/popover";
import { ActionType } from "@rc-component/trigger/lib/interface";
import { TacoInput } from "components/tacoInput";
import { Tooltip } from "components/toolTip";
Expand All @@ -20,7 +20,6 @@ import { default as List, ListRowProps } from "react-virtualized/dist/es/List";
import styled from "styled-components";
import { CloseIcon, SearchIcon } from "icons";
import { ANTDICON } from "icons/antIcon";
import { Divider } from "antd-mobile";

const PopupContainer = styled.div`
width: 580px;
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/components/query.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled, { css } from "styled-components";
import { default as Alert } from "antd/es/alert";
import { ReactNode } from "react";
import { AlertProps } from "antd/lib/alert";
import { AlertProps } from "antd/es/alert";
import { ToolTipLabel } from "./toolTip";
import { DocLink } from "components/ExternalLink";

Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-design/src/icons/antIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ import {
ZhihuSquareFilled,
ZoomInOutlined,
ZoomOutOutlined,
} from "@ant-design/icons";
} from "@ant-design/icons/es";

export const ANTDICON = {
accountbookfilled: <AccountBookFilled />,
Expand Down
1 change: 1 addition & 0 deletions client/packages/lowcoder-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/dist
/bundle
/types
2 changes: 0 additions & 2 deletions client/packages/lowcoder-sdk/bundle/139.bundle.js

This file was deleted.

9 changes: 0 additions & 9 deletions client/packages/lowcoder-sdk/bundle/139.bundle.js.LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions client/packages/lowcoder-sdk/bundle/164.bundle.js

This file was deleted.

3 changes: 0 additions & 3 deletions client/packages/lowcoder-sdk/bundle/164.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion client/packages/lowcoder-sdk/bundle/240.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion client/packages/lowcoder-sdk/bundle/475.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion client/packages/lowcoder-sdk/bundle/556.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion client/packages/lowcoder-sdk/bundle/567.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion client/packages/lowcoder-sdk/bundle/610.bundle.js

This file was deleted.

Loading