Content-Length: 447077 | pFad | http://github.com/lowcoder-org/lowcoder/pull/552/commits/46796e54d9201ad3cd719236bdc6433b629daf92

22 Dev -> Feat by FalkWolsky · Pull Request #552 · lowcoder-org/lowcoder · GitHub
Skip to content

Dev -> Feat #552

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 10 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Fixed Tutorial bug
  • Loading branch information
FalkWolsky committed Dec 2, 2023
commit 46796e54d9201ad3cd719236bdc6433b629daf92
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const en = {
selectDesc: "Triggered when the user selects part of the data in the chart",
unselectDesc: "Triggered when the user unselects part of the data in the chart",
selectedPointsDesc: "Selected points",
dataDesc: "The raw data used in the current chart",
dataDesc: "The JSON data for the chart",
titleDesc: "Current chart title",
scatterShape: "Scatter shape",
circle: "Circle",
Expand Down
8 changes: 4 additions & 4 deletions client/packages/lowcoder/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ export const en = {
"displayDataDesc": "Data Displayed in the Current Table",
"selectedIndexDesc": "Selected Index in Display Data",
"filterDesc": "Table Filtering Parameters",
"dataDesc": "The Raw Data Used in the Current Table",
"dataDesc": "The JSON Data for the Table",
"saveChanges": "Save Changes",
"cancelChanges": "Cancel Changes",
"rowSelectChange": "Row Select Change",
Expand Down Expand Up @@ -2147,11 +2147,11 @@ export const en = {
},
"editorTutorials": {
"component": "Component",
"componentContent": "The Right Component Area Has Tables, Buttons, Input Boxes, Selectors, and Other Components That Can Be Dragged onto the Canvas for Use.",
"componentContent": "The Right Component Panel offers you many ready made Application Blocks (Components). These Can Be Dragged onto the Canvas for Use. You Can Also Create Your Own Components with a little coding knowledge.",
"canvas": "Canvas",
"canvasContent": "What You See on the Canvas is What You Get, and You Can Adjust Component Layout and Size by Dragging and Dropping, and Delete/Copy/Paste Components with Keyboard Shortcuts.",
"canvasContent": "Build your apps on the Canvas with a 'What You See Is What You Get' approach. Simply drag and drop components to design your layout, and use keyboard shortcuts for quick editing like delete, copy, and paste. Once a component is selected, you can fine-tune every detail—from styling and layout to data binding and logical behavior. Plus, enjoy the added benefit of responsive design, ensuring your apps look great on any device.",
"queryData": "Query Data",
"queryDataContent": "Create a New Query Here and Connect to Your MySQL, MongoDB, Redis, Airtable, and Other Data Sources. After Configuring the Query, Click 'Run' to Obtain the Data.",
"queryDataContent": "You can create Data Queries Here and Connect to Your MySQL, MongoDB, Redis, Airtable, and many Other Data Sources. After Configuring the Query, Click 'Run' to Obtain the Data and continue the Tutorial.",
"compProperties": "Component Properties"
},
"homeTutorials": {
Expand Down
10 changes: 4 additions & 6 deletions client/packages/lowcoder/src/i18n/locales/enObj.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,14 @@ export const enObj: I18nObjects = {
mockDataUrl: "https://6523073ef43b179384152c4f.mockapi.io/api/lowcoder/users",
data: (code) => (
<>
The component and query data are listed here, which can be referenced through
{code("{{ }}")}. For example: {code("{{table1.selectedRow}}")}.
The current State of the Component with all Settings and Data listed here. You can reference to this data with the handlebar expression.
For example: {code("{{table1.selectedRow}}")}.
</>
),
compProperties: (code) => (
<>
When the component is selected, its properties are displayed on the right
{code("{{query1.data}}")}. Reference the data just queried, you can use in the input box
{code("{{ }}")}
write JavaScript.
When the component is selected, its properties are displayed on the right. Now you can set a Data Binding. Please delete all static Data and enter the following handlebar expression:
{code("{{query1.data}}")}. With this, you bind the data of the query to the table. The table will automatically display the data returned by the query. If the query updates the data, the table will also update the data automatically.
</>
),
},
Expand Down
18 changes: 8 additions & 10 deletions client/packages/lowcoder/src/pages/tutorials/editorTutorials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const tourSteps: Step[] = [
placement: "left",
styles: {
options: {
width: 408,
width: 500,
},
},
target: `.${tableDragClassName}`,
Expand All @@ -55,7 +55,7 @@ const tourSteps: Step[] = [
spotlightClicks: true,
styles: {
options: {
width: 480,
width: 600,
},
},
target: `.${editorContentClassName}`,
Expand All @@ -68,7 +68,7 @@ const tourSteps: Step[] = [
spotlightClicks: true,
styles: {
options: {
width: 480,
width: 500,
},
},
target: `.${editorBottomClassName}`,
Expand All @@ -84,7 +84,7 @@ const tourSteps: Step[] = [
spotlightPadding: 8,
styles: {
options: {
width: 408,
width: 500,
},
},
target: `.${tableDataDivClassName}`,
Expand All @@ -103,7 +103,7 @@ const tourSteps: Step[] = [
spotlightClicks: true,
styles: {
options: {
width: 408,
width: 500,
},
},
target: `.${leftCompListClassName}`,
Expand Down Expand Up @@ -134,8 +134,8 @@ function addTable(editorState: EditorState) {
{
[key]: {
i: key,
x: 0,
y: 0,
x: 6,
y: 25,
...defaultLayout(compType),
},
},
Expand Down Expand Up @@ -237,6 +237,7 @@ export default function EditorTutorials() {
const { status, index, action, type } = data;
const finishedStatuses: string[] = [STATUS.FINISHED, STATUS.SKIPPED];
const nextIndex = index + (action === ACTIONS.PREV ? -1 : 1);

if (finishedStatuses.includes(status)) {
dispatch(markUserStatus("newUserGuidance", true));
history.replace({
Expand Down Expand Up @@ -265,9 +266,6 @@ export default function EditorTutorials() {
} else if (index === 2 && action === ACTIONS.NEXT) {
// change data
openTableData();
const tableComp = editorState.getUICompByName("table1");
tableComp &&
tableComp.children.comp.children.data.dispatchChangeValueAction("{{query1.data}}");
setStepIndex(nextIndex);
} else if (index === 1 && action === ACTIONS.PREV) {
// cancel select
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/552/commits/46796e54d9201ad3cd719236bdc6433b629daf92

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy