Skip to content

Commit b970f6a

Browse files
author
FalkWolsky
committed
Cleaned Up Text base
1 parent 80abd4b commit b970f6a

File tree

15 files changed

+2505
-2422
lines changed

15 files changed

+2505
-2422
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ const CustomCompBase = new UICompBuilder(childrenMap, (props, dispatch) => {
225225
<>
226226
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
227227
<><Section name={sectionNames.interaction}>
228-
{children.model.propertyView({ label: trans("data") })}
229-
{children.code.propertyView({ label: trans("code"), language: "html" })}
228+
{children.model.propertyView({ label: trans("customComp.data") })}
229+
{children.code.propertyView({ label: trans("customComp.code"), language: "html" })}
230230
{hiddenPropertyView(children)}
231231
</Section>
232232
</>

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { trans } from "i18n";
88
import _ from "lodash";
99
import { CompAction, CompActionTypes } from "lowcoder-core";
1010
import {
11+
TacoMarkDown,
1112
DocLink,
1213
QueryConfigLabel,
1314
QueryConfigWrapper,
@@ -45,18 +46,18 @@ const DataResponderItemCompBase = new MultiCompBuilder(
4546
key: "general",
4647
title: trans("query.generalTab"),
4748
children: (
48-
<QueryPropertyViewWrapper>
49+
<><QueryPropertyViewWrapper>
4950
<QuerySectionWrapper>
5051
{children.data.propertyView({
5152
label: trans("dataResponder.data"),
5253
tooltip: trans("dataResponder.dataTooltip"),
5354
placement: "bottom",
5455
placeholder: "{{anyDependencies}}",
55-
extraChildren: QueryTutorials.dataResponder && (
56+
/* extraChildren: QueryTutorials.dataResponder && (
5657
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.dataResponder}>
5758
{trans("dataResponder.docLink")}
5859
</DocLink>
59-
),
60+
), */
6061
})}
6162
</QuerySectionWrapper>
6263

@@ -68,7 +69,10 @@ const DataResponderItemCompBase = new MultiCompBuilder(
6869
{children.onEvent.getPropertyView()}
6970
</QueryConfigWrapper>
7071
</QuerySectionWrapper>
71-
</QueryPropertyViewWrapper>
72+
</QueryPropertyViewWrapper><><TacoMarkDown>{trans("dataResponder.documentationText")}</TacoMarkDown><DocLink style={{ marginTop: 8 }} href={QueryTutorials.dataResponder} title={trans("dataResponder.documentationText")}>
73+
{trans("dataResponder.docLink")}
74+
</DocLink></></>
75+
7276
),
7377
},
7478
]}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ let IFrameCompBase = new UICompBuilder(
6464
.setPropertyViewFn((children) => (
6565
<>
6666
<Section name={sectionNames.basic}>
67-
{children.url.propertyView({ label: "URL", placeholder: "https://example.com" })}
67+
{children.url.propertyView({ label: "Source URL", placeholder: "https://example.com", tooltip: trans("iframe.URLDesc") })}
6868
</Section>
6969

7070
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (

client/packages/lowcoder/src/comps/comps/listViewComp/listViewPropertyView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function listPropertyView(compType: ListCompType) {
1717
<>
1818
<Section name={sectionNames.basic}>
1919
{children.noOfRows.propertyView({
20-
label: trans("data"),
20+
label: trans("listView.dataDesc"),
2121
tooltip: trans("listView.dataTooltip"),
2222
})}
2323
{compType === "grid" &&

client/packages/lowcoder/src/comps/comps/mediaComp/audioComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ let AudioBasicComp = (function () {
7474
<>
7575
<Section name={sectionNames.basic}>
7676
{children.src.propertyView({
77-
label: trans("audio.src"),
77+
label: trans("audio.src"),
78+
tooltip: trans("audio.srcDesc"),
7879
})}
7980
</Section>
8081

client/packages/lowcoder/src/comps/comps/mediaComp/videoComp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ let VideoBasicComp = (function () {
112112
<Section name={sectionNames.basic}>
113113
{children.src.propertyView({
114114
label: trans("video.src"),
115+
tooltip: trans("video.srcDesc"),
115116
})}
116117
</Section>
117118

client/packages/lowcoder/src/comps/comps/navComp/components/MenuItemList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface IMenuItemListProps {
3636
onMoveItem: (path: number[], from: number, to: number) => void;
3737
}
3838

39-
const menuItemLabel = trans("menuItem");
39+
const menuItemLabel = trans("navigation.itemsDesc");
4040

4141
function MenuItemList(props: IMenuItemListProps) {
4242
const { items, onAddItem, onDeleteItem, onMoveItem, onAddSubItem } = props;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const NavCompBase = new UICompBuilder(childrenMap, (props) => {
214214

215215
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
216216
<Section name={sectionNames.advanced}>
217-
{children.logoUrl.propertyView({ label: trans("navigation.logoURL") })}
217+
{children.logoUrl.propertyView({ label: trans("navigation.logoURL"), tooltip: trans("navigation.logoURLDesc") })}
218218
{children.logoUrl.getView() && children.logoEvent.propertyView({ inline: true })}
219219
</Section>
220220
)}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ const RichTextEditorCompBase = new UICompBuilder(childrenMap, (props) => {
313313
return (
314314
<>
315315
<Section name={sectionNames.basic}>
316-
{children.value.propertyView({ label: trans("prop.defaultValue") })}
316+
{children.value.propertyView({ label: trans("richTextEditor.defaultValue") })}
317317
{placeholderPropertyView(children)}
318318
</Section>
319319

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ let SwitchTmpComp = (function () {
117117
return (
118118
<>
119119
<Section name={sectionNames.basic}>
120-
{children.value.propertyView({ label: trans("prop.defaultValue") })}
120+
{children.value.propertyView({ label: trans("switchComp.defaultValue") })}
121121
</Section>
122122

123123
<FormDataPropertyView {...children} />

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { BottomResComp, BottomResCompResult, BottomResTypeEnum } from "types/bot
1313
import { JSONObject } from "util/jsonTypes";
1414
import { QueryTutorials } from "util/tutorialUtils";
1515
import { SimpleNameComp } from "./simpleNameComp";
16+
import { markdownCompCss, TacoMarkDown } from "lowcoder-design";
1617

1718
const TemporaryStateItemCompBase = new MultiCompBuilder(
1819
{
@@ -34,9 +35,9 @@ const TemporaryStateItemCompBase = new MultiCompBuilder(
3435
tooltip: trans("temporaryState.valueTooltip"),
3536
placement: "bottom",
3637
extraChildren: QueryTutorials.tempState && (
37-
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.tempState}>
38+
<><br/><TacoMarkDown>{trans("temporaryState.documentationText")}</TacoMarkDown><br/><DocLink style={{ marginTop: 8 }} href={QueryTutorials.tempState} title={trans("temporaryState.documentationText")}>
3839
{trans("temporaryState.docLink")}
39-
</DocLink>
40+
</DocLink></>
4041
),
4142
}),
4243
},

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { ReactNode } from "react";
1212
import { BottomResComp, BottomResCompResult, BottomResTypeEnum } from "types/bottomRes";
1313
import { QueryTutorials } from "util/tutorialUtils";
1414
import { SimpleNameComp } from "./simpleNameComp";
15+
import { markdownCompCss, TacoMarkDown } from "lowcoder-design";
1516

1617
const TransformerItemCompBase = new MultiCompBuilder(
1718
{
@@ -40,9 +41,10 @@ const TransformerItemCompBase = new MultiCompBuilder(
4041
width: "100%",
4142
})}
4243
{QueryTutorials.transformer && (
43-
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.transformer}>
44+
<><br/><TacoMarkDown>{trans("transformer.documentationText")}</TacoMarkDown>
45+
<DocLink style={{ marginTop: 8 }} href={QueryTutorials.transformer} title={trans("transformer.documentationText")}>
4446
{trans("transformer.docLink")}
45-
</DocLink>
47+
</DocLink></>
4648
)}
4749
</div>
4850
),

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,13 @@ export const NavLayoutItemActiveStyle = [
10211021

10221022
export const CarouselStyle = [getBackground("canvas")] as const;
10231023

1024-
export const RichTextEditorStyle = [getStaticBorder(), getBackground("canvas"), RADIUS, BORDER_WIDTH] as const;
1024+
export const RichTextEditorStyle = [
1025+
getStaticBorder(),
1026+
getBackground("primarySurface"),
1027+
RADIUS,
1028+
BORDER_WIDTH
1029+
] as const;
1030+
10251031
export type InputLikeStyleType = StyleConfigType<typeof InputLikeStyle>;
10261032
export type ButtonStyleType = StyleConfigType<typeof ButtonStyle>;
10271033
export type ToggleButtonStyleType = StyleConfigType<typeof ToggleButtonStyle>;

0 commit comments

Comments
 (0)