Skip to content

Commit c7f1297

Browse files
ChristianEdwardPadillatolgamizrakcispincycle01ShlomoPorges
committed
merging changes
merge Co-authored-by: Tolga Mizrakci <[email protected]> Co-authored-by: Adam Singer <[email protected]> Co-authored-by: Shlomo Porges <[email protected]>
1 parent e623fef commit c7f1297

24 files changed

+1248
-2203
lines changed

src/components/BottomPanel.jsx

Lines changed: 0 additions & 51 deletions
This file was deleted.
File renamed without changes.

src/components/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { format } from 'prettier';
33
import componentRender from '../utils/componentRender.util.ts';
44
import { ComponentInt, ComponentsInt } from '../utils/Interfaces.ts';
55
/** ** SortCHildren will be fixed , dont XXX the file *** */
6-
import SortChildren from './SortChildren.jsx';
6+
// import SortChildren from './SortChildren.jsx';
77

88
type Props = {
99
focusComponent: ComponentInt;

src/components/HTMLComponentPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class HTMLComponentPanel extends Component<PropsInt, StateInt> {
233233
/>
234234
</Grid>
235235
</Grid>
236-
</Paper>
236+
</div>
237237
);
238238
}
239239
}

src/components/HtmlAttr.jsx

Lines changed: 0 additions & 126 deletions
This file was deleted.

src/components/KonvaStage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class KonvaStage extends Component<PropsInt, StateInt> {
3636
super(props);
3737
this.state = {
3838
stageWidth: 1800,
39-
stageHeight: 1500,
39+
stageHeight: 1300,
4040
blockSnapSize: 10,
4141
grid: [],
4242
gridStroke: 1,
@@ -190,6 +190,7 @@ class KonvaStage extends Component<PropsInt, StateInt> {
190190
{this.getDirectChildrenCopy(focusComponent)
191191
.map((child: ChildInt, i: number) => (
192192
<Rectangle
193+
childType={child.childType}
193194
key={`${i}${child.componentName}`}
194195
components={components}
195196
componentId={focusComponent.id}
@@ -207,7 +208,7 @@ class KonvaStage extends Component<PropsInt, StateInt> {
207208
handleTransform={handleTransform}
208209
draggable={true}
209210
blockSnapSize={this.state.blockSnapSize}
210-
imageSource={child.htmlElement === 'Image' && child.HTMLInfo.Src ? child.HTMLInfo.Src : null}
211+
imageSource={child.htmlElement === 'Image' && child.HTMLInfo.Src}
211212
/>
212213
))
213214
.sort((rectA, rectB) => {

src/components/LeftColExpansionPanel.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,14 @@ const LeftColExpansionPanel = (props: any) => {
2525
} = props;
2626
const { title, id, color } = component;
2727

28-
// show a string of all direct parents. SO the user can gaze at it.
29-
const directParents = components
30-
.filter((comp: ComponentInt) => comp.childrenArray.some((child: ChildInt) => child.childComponentId === id))
31-
.map((comp: ComponentInt) => comp.title)
32-
.join(',');
33-
3428
function isFocused() {
3529
return focusComponent.id === id ? 'focused' : '';
3630
}
3731

3832
return (
3933
<Grid container spacing={16} direction="row" justify="flex-start" alignItems="center">
4034
<Grid item xs={9}>
41-
<div
42-
className={classes.root}
43-
style={!isFocused() ? {} : { boxShadow: '0 10px 10px rgba(0,0,0,0.25)' }}
44-
>
35+
<div className={classes.root} style={!isFocused() ? {} : { boxShadow: '0 10px 10px rgba(0,0,0,0.25)' }}>
4536
<Grid item xs={12} style={{ color: 'red' }}>
4637
<List style={{ color: 'red' }}>
4738
<ListItem
@@ -75,10 +66,11 @@ const LeftColExpansionPanel = (props: any) => {
7566
color="default"
7667
aria-label="Delete"
7768
className={classes.margin}
78-
onClick={() => deleteComponent({
79-
componentId: id,
80-
stateComponents: components,
81-
})
69+
onClick={() =>
70+
deleteComponent({
71+
componentId: id,
72+
stateComponents: components,
73+
})
8274
}
8375
style={{
8476
color: '#D3D3D3',
@@ -112,7 +104,7 @@ const LeftColExpansionPanel = (props: any) => {
112104
</Tooltip>
113105
)}
114106
</Grid>
115-
</div>
107+
</Grid>
116108
);
117109
};
118110

src/components/MainContainerHeader.jsx

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)