Skip to content

Commit ed1a330

Browse files
authored
Merge branch 'dev' into subscription-handling
2 parents 6153ddf + c771ef9 commit ed1a330

File tree

101 files changed

+24990
-624
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+24990
-624
lines changed

client/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.12
1+
2.4.13

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-frontend",
3-
"version": "2.4.12",
3+
"version": "2.4.13",
44
"type": "module",
55
"private": true,
66
"workspaces": [

client/packages/lowcoder-cli-template-typescript/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lowcoder-cli-template-typescript",
3-
"version": "0.0.20",
3+
"version": "0.0.22",
44
"type": "module",
55
"scripts": {
66
"start": "NODE_OPTIONS=--max_old_space_size=6144 vite",
@@ -22,7 +22,9 @@
2222
}
2323
},
2424
"dependencies": {
25+
"@observablehq/inspector": "^5.0.1",
2526
"@observablehq/runtime": "^4.8.2",
27+
"@observablehq/stdlib": "^5.8.8",
2628
"@types/react": "^18.2.45",
2729
"@types/react-dom": "^18.2.18",
2830
"lowcoder-cli": "^0.0.30",

client/packages/lowcoder-cli-template-typescript/src/vendors/Chart.jsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import React from 'react';
22
import PropTypes from 'prop-types'
3-
import { Runtime, Inspector } from '@observablehq/runtime';
3+
import { Runtime } from '@observablehq/runtime';
4+
import { Inspector } from "@observablehq/inspector";
5+
import { Library } from "@observablehq/stdlib";
6+
7+
const library = new Library();
48

59
function Chart(props) {
610
const [chartRef, setChartRef] = React.useState();
@@ -16,21 +20,20 @@ function Chart(props) {
1620
main.variable().define('translateXtoY', function() {
1721
return x => 50 * Math.sin((Math.PI / 50) * x - (1 / 2) * Math.PI) + 50;
1822
});
19-
main.variable().define('d3', ['require'], function(require) {
20-
return require('https://d3js.org/d3.v5.min.js');
23+
main.variable().define('d3', [], function() {
24+
return Library.require('https://d3js.org/d3.v5.min.js');
2125
});
2226

2327
// Define the HillChart class
24-
main.variable().define('HillChart', ['d3', 'DOM', 'translateXtoY'], function(d3, DOM, translateXtoY) {
28+
main.variable().define('HillChart', ['d3', 'translateXtoY'], function(d3, translateXtoY) {
2529
return class HillChart {
2630
constructor(chart_height, chart_width, items) {
2731
this.chart_height = chart_height;
2832
this.chart_width = chart_width;
2933
this.items = items;
30-
31-
this.svg = d3.select(DOM.svg(this.chart_width, this.chart_height)).attr('viewBox', `-20 -20 ${this.chart_width + 80} ${this.chart_height + 20}`);
34+
35+
this.svg = d3.select(library.DOM.svg(this.chart_width, this.chart_height)).attr('viewBox', `-20 -20 ${this.chart_width + 80} ${this.chart_height + 20}`);
3236
}
33-
3437

3538
render() {
3639
const xScale = d3

client/packages/lowcoder/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"react-sortable-hoc": "^2.0.0",
8787
"react-test-renderer": "^18.1.0",
8888
"react-use": "^17.3.2",
89+
"react-webcam": "^7.2.0",
8990
"really-relaxed-json": "^0.3.2",
9091
"redux-devtools-extension": "^2.13.9",
9192
"redux-saga": "^1.1.3",

client/packages/lowcoder/src/base/codeEditor/codeEditor.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ function useCodeMirror(
220220
const showLineNum = props.showLineNum ?? getStyle(props.styleName).showLineNum;
221221

222222
const handleChange = useCallback(
223-
debounce((state: EditorState) => {
223+
(state: EditorState) => {
224224
window.clearTimeout(isTypingRef.current);
225-
isTypingRef.current = window.setTimeout(() => (isTypingRef.current = 0), 100);
226-
onChange?.(state);
227-
}, 1000)
225+
isTypingRef.current = window.setTimeout(() => {
226+
isTypingRef.current = 0;
227+
onChange?.(state);
228+
}, 500);
229+
}
228230
, [onChange]
229231
);
230232

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
576576

577577
<Slider
578578
style={{ width: "90%", margin: "8px 5% 0 5%"}}
579-
min={6} // Define the minimum value for the slider
580-
max={20} // Define the maximum value for the slider
579+
min={4} // Define the minimum value for the slider
580+
max={100} // Define the maximum value for the slider
581581
value={parseInt(gridRowHeight || "8")}
582582
onChange={(value) => setGridRowHeight(value.toString())}
583583
onChangeComplete={(value) => gridSizeInputBlur(value.toString())}

client/packages/lowcoder/src/components/layout/SideBarSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export const SideBarSection = (props: SideBarSectionProps) => {
2424
const user = useSelector<AppState, User>(getUser);
2525
const applications = useSelector<AppState, ApplicationMeta[]>(normalAppListSelector);
2626
const currentPath = useLocation().pathname;
27-
27+
const isShow = props.items.map(item => item.visible ? item.visible({ user: user, applications: applications }) : true).includes(true);
2828
return (
29-
<Wrapper className={CNSidebarSection} style={props.style}>
29+
<Wrapper className={ isShow ? CNSidebarSection : ''} style={props.style}>
3030
{props.title}
3131
{props.items
3232
.filter((item) =>

client/packages/lowcoder/src/components/table/columnTypeView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ColumnTypeHoverView = styled.div<{
3838
max-height: 150px;
3939
max-width: 300px;
4040
overflow: auto;
41-
background: inherit;
41+
background: #fafafa;
4242
z-index: 3;
4343
padding: ${(props) => props.$padding};
4444
top: ${(props) => `${props.$adjustTop || 0}px`};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const childrenMap = {
216216
lowcoderCompVersion: withDefault(StringControl, 'latest'),
217217
maxWidth: dropdownInputSimpleControl(OPTIONS, USER_DEFINE, "1920"),
218218
gridColumns: RangeControl.closed(8, 48, 24),
219-
gridRowHeight: RangeControl.closed(6, 20, 8),
219+
gridRowHeight: RangeControl.closed(4, 100, 8),
220220
gridRowCount: withDefault(NumberControl, DEFAULT_ROW_COUNT),
221221
gridPaddingX: withDefault(NumberControl, 20),
222222
gridPaddingY: withDefault(NumberControl, 20),

0 commit comments

Comments
 (0)