Skip to content

Commit 06a4040

Browse files
committed
remove bottom of editor
1 parent 27cbd0d commit 06a4040

File tree

14 files changed

+10
-1825
lines changed

14 files changed

+10
-1825
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ class AppIndex extends React.Component<AppIndexProps, any> {
121121
const isLowCoderDomain = window.location.hostname === 'app.lowcoder.cloud';
122122
const isLocalhost = window.location.hostname === 'localhost';
123123

124-
if (isLocalhost || isLowCoderDomain) {
125-
posthog.init('phc_lD36OXeppUehLgI33YFhioTpXqThZ5QqR8IWeKvXP7f', { api_host: 'https://eu.i.posthog.com', person_profiles: 'always' });
126-
}
124+
// if (isLocalhost || isLowCoderDomain) {
125+
// posthog.init('phc_lD36OXeppUehLgI33YFhioTpXqThZ5QqR8IWeKvXP7f', { api_host: 'https://eu.i.posthog.com', person_profiles: 'always' });
126+
// }
127127

128128
// make sure all users in this app have checked login info
129129
if (!this.props.isFetchUserFinished || (this.props.currentUserId && !this.props.fetchHomeDataFinished)) {

viewer/packages/lowcoder/src/comps/comps/dataChangeResponderComp.tsx

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
QueryPropertyViewWrapper,
1616
QuerySectionWrapper,
1717
} from "lowcoder-design";
18-
import { BottomTabs } from "pages/editor/bottom/BottomTabs";
1918
import { ReactNode } from "react";
2019
import { BottomResComp, BottomResCompResult, BottomResTypeEnum } from "types/bottomRes";
2120
import { setFieldsNoTypeCheck } from "util/objectUtils";
@@ -38,58 +37,6 @@ const DataResponderItemCompBase = new MultiCompBuilder(
3837
},
3938
() => null
4039
)
41-
.setPropertyViewFn((children) => {
42-
return (
43-
<BottomTabs
44-
type={BottomResTypeEnum.DateResponder}
45-
tabsConfig={[
46-
{
47-
key: "general",
48-
title: trans("query.generalTab"),
49-
children: (
50-
<><QueryPropertyViewWrapper>
51-
<QuerySectionWrapper>
52-
{children.data.propertyView({
53-
label: trans("dataResponder.data"),
54-
tooltip: trans("dataResponder.dataTooltip"),
55-
placement: "bottom",
56-
placeholder: "{{anyDependencies}}",
57-
/* extraChildren: QueryTutorials.dataResponder && (
58-
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.dataResponder}>
59-
{trans("dataResponder.docLink")}
60-
</DocLink>
61-
), */
62-
})}
63-
</QuerySectionWrapper>
64-
65-
<QuerySectionWrapper>
66-
<QueryConfigWrapper>
67-
<QueryConfigLabel labelHeight="auto">
68-
{trans("eventHandler.eventHandlers")}
69-
</QueryConfigLabel>
70-
{children.onEvent.getPropertyView()}
71-
</QueryConfigWrapper>
72-
</QuerySectionWrapper>
73-
</QueryPropertyViewWrapper><><TacoMarkDown>{trans("dataResponder.documentationText")}</TacoMarkDown><DocLink style={{ marginTop: 8 }} href={QueryTutorials.dataResponder} title={trans("dataResponder.documentationText")}>
74-
{trans("dataResponder.docLink")}
75-
</DocLink><br/><br/>
76-
77-
<SupaDemoDisplay
78-
url={trans("supademos.dataresponder")}
79-
modalWidth="80%"
80-
modalTop="20px"
81-
/>
82-
83-
</></>
84-
85-
),
86-
},
87-
]}
88-
tabTitle={children.name.getView()}
89-
status=""
90-
/>
91-
);
92-
})
9340
.build();
9441

9542
class DataChangeResponderAsBottomRes extends DataResponderItemCompBase implements BottomResComp {

viewer/packages/lowcoder/src/comps/comps/queryLibrary/queryLibraryComp.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { executeQueryAction, renameAction } from "lowcoder-core";
2222
import { deleteQueryLibrary } from "redux/reduxActions/queryLibraryActions";
2323
import { useDispatch } from "react-redux";
2424
import styled from "styled-components";
25-
import { DataSourceStructureTree } from "pages/editor/bottom/BottomMetaDrawer";
2625
import { trans } from "i18n";
2726
import { QueryLibraryResultPanel } from "components/resultPanel/QueryLibraryResultPanel";
2827
import { DatasourceStructure } from "api/datasourceApi";
@@ -64,11 +63,7 @@ export const QueryLibraryComp = class extends QueryLibraryCompBase {
6463
{this.children.inputs.getPropertyView()}
6564
</BaseSection>
6665
<BaseSection key={"meta"} name={trans("prop.meta")} width={296} noMargin>
67-
<div style={{ padding: " 0 8px" }}>
68-
<DataSourceStructureTree
69-
dataSourceId={this.children.query.children.datasourceId.getView()}
70-
datasourceType={this.children.query.children.compType.getView()}
71-
/>
66+
<div style={{ padding: " 0 0px" }}>
7267
</div>
7368
</BaseSection>
7469
</>

viewer/packages/lowcoder/src/comps/comps/temporaryStateComp.tsx

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { withMethodExposing } from "comps/generators/withMethodExposing";
77
import { trans } from "i18n";
88
import _ from "lodash";
99
import { DocLink } from "lowcoder-design";
10-
import { BottomTabs } from "pages/editor/bottom/BottomTabs";
1110
import { ReactNode, useState } from "react";
1211
import { BottomResComp, BottomResCompResult, BottomResTypeEnum } from "types/bottomRes";
1312
import { JSONObject } from "util/jsonTypes";
@@ -23,53 +22,6 @@ const TemporaryStateItemCompBase = new MultiCompBuilder(
2322
},
2423
() => null
2524
)
26-
.setPropertyViewFn((children) => {
27-
const PropertyViewWithModal = () => {
28-
const [isOpen, setIsOpen] = useState(false);
29-
30-
const handleOpen = () => {
31-
setIsOpen(true);
32-
};
33-
34-
const handleClose = () => {
35-
setIsOpen(false);
36-
};
37-
38-
return (
39-
<BottomTabs
40-
type={BottomResTypeEnum.TempState}
41-
tabsConfig={[
42-
{
43-
key: "general",
44-
title: trans("query.generalTab"),
45-
children: children.value.propertyView({
46-
label: trans("temporaryState.value"),
47-
tooltip: trans("temporaryState.valueTooltip"),
48-
placement: "bottom",
49-
extraChildren: QueryTutorials.tempState && (
50-
<><br/><TacoMarkDown>{trans("temporaryState.documentationText")}</TacoMarkDown><br/><DocLink style={{ marginTop: 8 }} href={QueryTutorials.tempState} title={trans("temporaryState.documentationText")}>
51-
{trans("temporaryState.docLink")}
52-
</DocLink><br/><br/>
53-
54-
<SupaDemoDisplay
55-
url={trans("supademos.temporarystate")}
56-
modalWidth="80%"
57-
modalTop="20px"
58-
/>
59-
60-
</>
61-
),
62-
}),
63-
},
64-
]}
65-
tabTitle={children.name.getView()}
66-
status=""
67-
/>
68-
);
69-
};
70-
71-
return <PropertyViewWithModal />;
72-
})
7325
.build();
7426

7527
class TemporaryStateAsBottomRes extends TemporaryStateItemCompBase implements BottomResComp {

viewer/packages/lowcoder/src/comps/comps/transformerListComp.tsx

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { withExposingRaw } from "comps/generators/withExposing";
77
import { trans } from "i18n";
88
import { fromRecord } from "lowcoder-core";
99
import { DocLink } from "lowcoder-design";
10-
import { BottomTabs } from "pages/editor/bottom/BottomTabs";
1110
import { ReactNode } from "react";
1211
import { BottomResComp, BottomResCompResult, BottomResTypeEnum } from "types/bottomRes";
1312
import { QueryTutorials } from "util/tutorialUtils";
@@ -22,53 +21,6 @@ const TransformerItemCompBase = new MultiCompBuilder(
2221
},
2322
(props) => props
2423
)
25-
.setPropertyViewFn((children) => {
26-
return (
27-
<EditorContext.Consumer>
28-
{(editorState) => {
29-
return (
30-
<BottomTabs
31-
runButtonText={trans("transformer.preview")}
32-
type={BottomResTypeEnum.Transformer}
33-
tabsConfig={[
34-
{
35-
key: "general",
36-
title: trans("query.generalTab"),
37-
children: (
38-
<div>
39-
{children.script.propertyView({
40-
placement: "bottom",
41-
styleName: "medium",
42-
width: "100%",
43-
})}
44-
{QueryTutorials.transformer && (
45-
<><br/><TacoMarkDown>{trans("transformer.documentationText")}</TacoMarkDown>
46-
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.transformer} title={trans("transformer.documentationText")}>
47-
{trans("transformer.docLink")}
48-
</DocLink><br/><br/>
49-
50-
<SupaDemoDisplay
51-
url={trans("supademos.transformer")}
52-
modalWidth="80%"
53-
modalTop="20px"
54-
/>
55-
56-
</>
57-
)}
58-
</div>
59-
),
60-
},
61-
]}
62-
tabTitle={children.name.getView()}
63-
onRunBtnClick={() => {
64-
editorState.setShowResultCompName(children.name.getView());
65-
}}
66-
/>
67-
);
68-
}}
69-
</EditorContext.Consumer>
70-
);
71-
})
7224
.build();
7325

7426
class TransformerAsBottomRes extends TransformerItemCompBase implements BottomResComp {

viewer/packages/lowcoder/src/comps/queries/queryComp.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ import { HttpQuery } from "./httpQuery/httpQuery";
7272
import { StreamQuery } from "./httpQuery/streamQuery";
7373
import { QueryConfirmationModal } from "./queryComp/queryConfirmationModal";
7474
import { QueryNotificationControl } from "./queryComp/queryNotificationControl";
75-
import { QueryPropertyView } from "./queryComp/queryPropertyView";
7675
import { getTriggerType, onlyManualTrigger } from "./queryCompUtils";
7776
import { messageInstance } from "lowcoder-design/src/components/GlobalInstances";
7877

@@ -473,7 +472,6 @@ QueryCompTmp = class extends QueryCompTmp {
473472
resourceType: this.children.compType.getView(),
474473
}}
475474
>
476-
<QueryPropertyView comp={this as any} />
477475
</QueryContext.Provider>
478476
);
479477
}

0 commit comments

Comments
 (0)