Skip to content

Hotfixes to main #766

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 29 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
80d78f9
separate defaultValue and value for old input/select comps
raheeliftikhar5 Mar 5, 2024
f324f75
map ready state fix
raheeliftikhar5 Mar 5, 2024
abe4b20
update lowcoder-comps version
raheeliftikhar5 Mar 5, 2024
20f5bc8
New plugin system
ludomikula Feb 5, 2024
e78671f
Merge pull request #742 from raheeliftikhar5/handle_defaultValue
FalkWolsky Mar 5, 2024
b58a742
new: plugin endpoint security basics
ludomikula Mar 5, 2024
800c16c
Merge branch 'lowcoder-org:dev' into dev
ludomikula Mar 6, 2024
eb0e0d5
feature: Extended folder to have more meta-data i.e: title, descripti…
irfan-ikhwa Mar 6, 2024
348c98e
Merge branch 'lowcoder-org:dev' into dev
ludomikula Mar 8, 2024
f6b6bd8
fix crashing on reordering comps inside module
raheeliftikhar5 Mar 14, 2024
3809d9a
fix broken modal issue
raheeliftikhar5 Mar 14, 2024
9810150
fix bulk action updates doesn't change all comps height
raheeliftikhar5 Mar 14, 2024
4335b1e
fix iconSelector issue in js
raheeliftikhar5 Mar 14, 2024
da62927
Bugfixing in the Cerrypicked Branch 1
Mar 12, 2024
3bf3ebf
Optimize the runOpenApi plugin
snowe2010 Mar 8, 2024
784951d
Optimize the runOpenApi plugin
snowe2010 Mar 8, 2024
cbcaec6
Pull definition logic into a new function
snowe2010 Mar 8, 2024
b92024d
Small amount of code cleanup
snowe2010 Mar 8, 2024
b36a2d0
fix: complete the locale file
Mar 11, 2024
0e6b546
map ready state fix
raheeliftikhar5 Mar 5, 2024
9d28529
Google Fonts & Clearbit only on public Cloud
Mar 19, 2024
c063add
Updating the SDK, update Simplebar and Fix simplebar-placeholder problem
Mar 17, 2024
94e7c82
Updating the SDK, update Simplebar and Fix simplebar-placeholder problem
Mar 17, 2024
144ca9f
Fixing Scrollbars for Modules Editor View
Mar 18, 2024
5cadfc3
Update Scrollbars
Mar 24, 2024
7758d4a
Update Scrollbars
Mar 24, 2024
3476223
Merge pull request #767 from Lowcoder-Pro/dev
FalkWolsky Mar 24, 2024
eeef89a
Fixing AssetService - after Falk broke it.
Mar 24, 2024
d602bd4
Enabling display of Version Number for Remote Components
Mar 24, 2024
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
Updating the SDK, update Simplebar and Fix simplebar-placeholder problem
  • Loading branch information
FalkWolsky committed Mar 24, 2024
commit c063addfde4002e2a6574bcf789b35fb32e166c3
3 changes: 3 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@types/react-resizable": "^3.0.5",
"@types/react-router-dom": "^5.3.2",
"@types/shelljs": "^0.8.11",
"@types/simplebar": "^5.3.3",
"@types/stylis": "^4.0.2",
"@types/tern": "0.23.4",
"@types/ua-parser-js": "^0.7.36",
Expand Down Expand Up @@ -79,6 +80,8 @@
"chalk": "4",
"number-precision": "^1.6.0",
"react-player": "^2.11.0",
"resize-observer-polyfill": "^1.5.1",
"simplebar": "^6.2.5",
"tui-image-editor": "^3.15.3"
}
}
5 changes: 4 additions & 1 deletion client/packages/lowcoder-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"react-virtualized": "^9.22.3",
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"remark-gfm": "^3.0.1"
"remark-gfm": "^3.0.1",
"simplebar": "^6.2.5",
"simplebar-react": "^3.2.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^23.0.2",
Expand All @@ -23,6 +25,7 @@
"@rollup/plugin-typescript": "^9.0.2",
"@rollup/plugin-url": "^8.0.1",
"@svgr/rollup": "^6.5.1",
"@types/simplebar": "^5.3.3",
"rollup": "^2",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-polyfill-node": "^0.11.0",
Expand Down
25 changes: 21 additions & 4 deletions client/packages/lowcoder-design/src/components/ScrollBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from "react";
import SimpleBar from "simplebar-react";
import 'simplebar-react/dist/simplebar.min.css';
import styled from "styled-components";
import { DebouncedFunc } from 'lodash'; // Assuming you're using lodash's DebouncedFunc type


const ScrollBarWrapper = styled.div`
min-height: 0;
Expand Down Expand Up @@ -33,19 +36,33 @@ const ScrollBarWrapper = styled.div`
top: 10px;
bottom: 10px;
}

// added by Falk Wolsky to hide the placeholder - as it doubles the vertical space of a Module on a page
.simplebar-placeholder {
display: none !important;
}

`;

interface IProps extends SimpleBar.Props {
// .simplebar-placeholder { added by Falk Wolsky to hide the placeholder - as it doubles the vertical space of a Module on a page

interface IProps {
children: React.ReactNode;
className?: string;
height?: string;
style?: React.CSSProperties; // Add this line to include a style prop
scrollableNodeProps?: {
onScroll: DebouncedFunc<(e: any) => void>;
};
}

export const ScrollBar = (props: IProps) => {
const { height = "100%", className, children, ...otherProps } = props;
export const ScrollBar = ({ height = "100%", className, children, style, scrollableNodeProps, ...otherProps }: IProps) => {
// You can now use the style prop directly or pass it to SimpleBar
const combinedStyle = { ...style, height }; // Example of combining height with passed style

return (
<ScrollBarWrapper className={className}>
<SimpleBar forceVisible="y" style={{ height: height }} {...otherProps}>
<SimpleBar style={combinedStyle} scrollableNodeProps={scrollableNodeProps} {...otherProps}>
{children}
</SimpleBar>
</ScrollBarWrapper>
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-sdk",
"version": "2.3.1",
"version": "2.3.3",
"type": "module",
"files": [
"src",
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"rehype-sanitize": "^5.0.1",
"remark-gfm": "^3.0.1",
"resize-observer-polyfill": "^1.5.1",
"simplebar-react": "2.3.6",
"simplebar-react": "^3.2.4",
"sql-formatter": "^8.2.0",
"styled-components": "^6.1.6",
"stylis": "^4.1.1",
Expand Down
13 changes: 13 additions & 0 deletions client/packages/lowcoder/src/comps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,19 @@ var uiCompMap: Registry = {
h: 5,
},
},
/*Layout: {
name: "navLayout",
enName: "navLayout",
description: trans("uiComp.navigationCompDesc"),
icon: NavComIcon,
categories: ["layout"],
keywords: trans("uiComp.navigationCompKeywords"),
comp: NavLayout,
layoutInfo: {
w: 24,
h: 5,
},
}, */
cascader: {
name: trans("uiComp.cascaderCompName"),
enName: "Cascader",
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder/src/index.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "antd/dist/reset.css";
// @import "antd/dist/antd.less";
@import "react-grid-layout/css/styles.css";
@import "simplebar/dist/simplebar.min.css";
@import "simplebar-react/dist/simplebar.min.css";
@import "lowcoder-design/src/index.less";

// fixme: move into comps
Expand Down
98 changes: 57 additions & 41 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3100,13 +3100,6 @@ __metadata:
languageName: node
linkType: hard

"@juggle/resize-observer@npm:^3.3.1":
version: 3.4.0
resolution: "@juggle/resize-observer@npm:3.4.0"
checksum: 2505028c05cc2e17639fcad06218b1c4b60f932a4ebb4b41ab546ef8c157031ae377e3f560903801f6d01706dbefd4943b6c4704bf19ed86dfa1c62f1473a570
languageName: node
linkType: hard

"@lezer/common@npm:^1.0.0, @lezer/common@npm:^1.0.2, @lezer/common@npm:^1.1.0, @lezer/common@npm:^1.2.0":
version: 1.2.0
resolution: "@lezer/common@npm:1.2.0"
Expand Down Expand Up @@ -4410,6 +4403,22 @@ __metadata:
languageName: node
linkType: hard

"@types/lodash-es@npm:^4.17.6":
version: 4.17.12
resolution: "@types/lodash-es@npm:4.17.12"
dependencies:
"@types/lodash": "*"
checksum: 990a99e2243bebe9505cb5ad19fbc172beb4a8e00f9075c99fc06c46c2801ffdb40bc2867271cf580d5f48994fc9fb076ec92cd60a20e621603bf22114e5b077
languageName: node
linkType: hard

"@types/lodash@npm:*":
version: 4.17.0
resolution: "@types/lodash@npm:4.17.0"
checksum: 3f98c0b67a93994cbc3403d4fa9dbaf52b0b6bb7f07a764d73875c2dcd5ef91222621bd5bcf8eee7b417a74d175c2f7191b9f595f8603956fd06f0674c0cba93
languageName: node
linkType: hard

"@types/lodash@npm:^4.14.194":
version: 4.14.202
resolution: "@types/lodash@npm:4.14.202"
Expand Down Expand Up @@ -4674,6 +4683,15 @@ __metadata:
languageName: node
linkType: hard

"@types/simplebar@npm:^5.3.3":
version: 5.3.3
resolution: "@types/simplebar@npm:5.3.3"
dependencies:
simplebar: "*"
checksum: db0dfe8e8dbbe9a98ffa840aeb9e14ee8a8d5d5cc3042f5348be470c5864d40278459636124ef631bd700e749aa9cdafc6844e43f805b28edf090ce24eb982f4
languageName: node
linkType: hard

"@types/stack-utils@npm:^2.0.0":
version: 2.0.3
resolution: "@types/stack-utils@npm:2.0.3"
Expand Down Expand Up @@ -6660,7 +6678,7 @@ __metadata:
languageName: node
linkType: hard

"core-js@npm:^3.0.1, core-js@npm:^3.25.2":
"core-js@npm:^3.25.2":
version: 3.35.0
resolution: "core-js@npm:3.35.0"
checksum: 25c224aca3df012b98f08f13ccbd8171ef5852acd33fd5e58e106d27f5f0c97de2fdbc520f0b4364d26253caf2deb3e5d265310f57d2a66ae6cc922850e649f0
Expand Down Expand Up @@ -11807,13 +11825,6 @@ __metadata:
languageName: node
linkType: hard

"lodash.memoize@npm:^4.1.2":
version: 4.1.2
resolution: "lodash.memoize@npm:4.1.2"
checksum: 9ff3942feeccffa4f1fafa88d32f0d24fdc62fd15ded5a74a5f950ff5f0c6f61916157246744c620173dddf38d37095a92327d5fd3861e2063e736a5c207d089
languageName: node
linkType: hard

"lodash.merge@npm:^4.6.2":
version: 4.6.2
resolution: "lodash.merge@npm:4.6.2"
Expand All @@ -11835,13 +11846,6 @@ __metadata:
languageName: node
linkType: hard

"lodash.throttle@npm:^4.1.1":
version: 4.1.1
resolution: "lodash.throttle@npm:4.1.1"
checksum: 129c0a28cee48b348aef146f638ef8a8b197944d4e9ec26c1890c19d9bf5a5690fe11b655c77a4551268819b32d27f4206343e30c78961f60b561b8608c8c805
languageName: node
linkType: hard

"lodash@npm:^3.9.1":
version: 3.10.1
resolution: "lodash@npm:3.10.1"
Expand Down Expand Up @@ -12017,6 +12021,7 @@ __metadata:
"@rollup/plugin-typescript": ^9.0.2
"@rollup/plugin-url": ^8.0.1
"@svgr/rollup": ^6.5.1
"@types/simplebar": ^5.3.3
colord: ^2.9.3
react-fontawesome: ^0.2.0
react-markdown: ^8.0.0
Expand All @@ -12028,6 +12033,8 @@ __metadata:
rollup-plugin-cleaner: ^1.0.0
rollup-plugin-polyfill-node: ^0.11.0
rollup-plugin-terser: ^7.0.2
simplebar: ^6.2.5
simplebar-react: ^3.2.4
typescript: ^4.8.4
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -12070,6 +12077,7 @@ __metadata:
"@types/react-resizable": ^3.0.5
"@types/react-router-dom": ^5.3.2
"@types/shelljs": ^0.8.11
"@types/simplebar": ^5.3.3
"@types/styled-components": ^5.1.34
"@types/stylis": ^4.0.2
"@types/tern": 0.23.4
Expand All @@ -12090,9 +12098,11 @@ __metadata:
number-precision: ^1.6.0
prettier: ^3.1.0
react-player: ^2.11.0
resize-observer-polyfill: ^1.5.1
rimraf: ^3.0.2
rollup: ^2.79.0
shelljs: ^0.8.5
simplebar: ^6.2.5
svgo: ^3.0.0
tui-image-editor: ^3.15.3
typescript: ^4.8.4
Expand Down Expand Up @@ -12232,7 +12242,7 @@ __metadata:
remark-gfm: ^3.0.1
resize-observer-polyfill: ^1.5.1
rollup-plugin-visualizer: ^5.9.2
simplebar-react: 2.3.6
simplebar-react: ^3.2.4
sql-formatter: ^8.2.0
styled-components: ^6.1.6
stylis: ^4.1.1
Expand Down Expand Up @@ -14154,7 +14164,7 @@ __metadata:
languageName: node
linkType: hard

"prop-types@npm:15.x, prop-types@npm:^15.0.0, prop-types@npm:^15.5.7, prop-types@npm:^15.6.1, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
"prop-types@npm:15.x, prop-types@npm:^15.0.0, prop-types@npm:^15.5.7, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
version: 15.8.1
resolution: "prop-types@npm:15.8.1"
dependencies:
Expand Down Expand Up @@ -16504,30 +16514,36 @@ __metadata:
languageName: node
linkType: hard

"simplebar-react@npm:2.3.6":
version: 2.3.6
resolution: "simplebar-react@npm:2.3.6"
"simplebar-core@npm:^1.2.4":
version: 1.2.4
resolution: "simplebar-core@npm:1.2.4"
dependencies:
"@types/lodash-es": ^4.17.6
can-use-dom: ^0.1.0
lodash: ^4.17.21
lodash-es: ^4.17.21
checksum: 9bef0a29cc2ddba488776bc05eac6cbf3daa6e72fbcb54ff288cbbb2e64cadf22cc378ac3627f86c32c29ddf9f63d7accf8772e4013318aaba353625869ae866
languageName: node
linkType: hard

"simplebar-react@npm:^3.2.4":
version: 3.2.4
resolution: "simplebar-react@npm:3.2.4"
dependencies:
prop-types: ^15.6.1
simplebar: ^5.3.6
simplebar-core: ^1.2.4
peerDependencies:
react: ^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0 || ^17.0
react-dom: ^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0 || ^17.0
checksum: 5487200fefd8f9f7aba349637b6f5f777aab4470239bc4f3fcb4e86ff4fa5d12dea68684df80e6cea644d9dffb062fbde7d9504762d9d82f7e5083cc260cf0c1
react: ">=16.8.0"
checksum: 0355a7ccb99114de99c84c7e548058f299c716d3fb2ac769bdb83138da19e75936f84698b9f4134d17be84322845a4290093f37b2f3c3ee2299e3bd8863c6196
languageName: node
linkType: hard

"simplebar@npm:^5.3.6":
version: 5.3.9
resolution: "simplebar@npm:5.3.9"
"simplebar@npm:*, simplebar@npm:^6.2.5":
version: 6.2.5
resolution: "simplebar@npm:6.2.5"
dependencies:
"@juggle/resize-observer": ^3.3.1
can-use-dom: ^0.1.0
core-js: ^3.0.1
lodash.debounce: ^4.0.8
lodash.memoize: ^4.1.2
lodash.throttle: ^4.1.1
checksum: 11918d02c946b4925068852b4fb2dcc5008e2fb91b7eeba6c27aed810f23b985de043b12fef674fbffbbfa6201904e09d8fbc29e9959562fa6a5cfb9935751d1
simplebar-core: ^1.2.4
checksum: 351b3757af18d4d49928fbd44793307ca7384e363c73a740a0e542307f6af75f4803ddbb9e0e595126a487a4ba6b5d98cd397880d7217c6b1b442eb5a6c509c5
languageName: node
linkType: hard

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public Mono<Asset> getById(String id) {
return repository.findById(id);
}

// Falk TODO: Enable base64 upload

@Override
public Mono<Asset> upload(Part filePart, int maxFileSizeKB, boolean isThumbnail) {
if (filePart == null) {
Expand All @@ -59,7 +61,7 @@ public Mono<Asset> upload(Part filePart, int maxFileSizeKB, boolean isThumbnail)

// The reason we restrict file types here is to avoid having to deal with dangerous image types such as SVG,
// which can have arbitrary HTML/JS inside of them.
final MediaType contentType = filePart.headers().getContentType();
if (contentType == null || !ALLOWED_CONTENT_TYPES.contains(contentType)) {
return Mono.error(new BizException(BizError.INVALID_PARAMETER, "INCORRECT_IMAGE_TYPE"));
}
Expand Down