Skip to content

Commit 55e50e4

Browse files
author
FalkWolsky
committed
Adapting Demo Data
1 parent 834f47e commit 55e50e4

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ const childrenMap = {
9696
name: "{{currentUser.name}}",
9797
email: "{{currentUser.email}}",
9898
}),
99-
mentionList: jsonControl(checkMentionListData, {
100-
"@": ["Li Lei", "Han Meimei"],
101-
"#": ["123", "456", "789"],
102-
}),
99+
mentionList: jsonControl(checkMentionListData, {"@":["John Doe","Jane Doe","Michael Smith","Emily Davis","Robert Johnson","Patricia Brown","William Jones","Jennifer Miller","David Wilson","Linda Moore"],"#":["#lowcode","#automation","#appbuilder","#nocode","#workflow","#draganddrop","#rapiddevelopment","#digitaltransformation","#integration","#api"]}),
103100
onEvent: eventHandlerControl(EventOptions),
104101
style: styleControl(CommentStyle , 'style'),
105102
animationStyle: styleControl(AnimationStyle , 'animationStyle'),

client/packages/lowcoder/src/comps/comps/commentComp/commentConstants.tsx

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,32 +45,7 @@ export const CommentUserDataTooltip = (
4545
</li>
4646
)
4747

48-
export const commentDate = [
49-
{
50-
user: {
51-
name: "Li Lei",
52-
avatar:
53-
"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png",
54-
},
55-
value: "What is the use of this component?",
56-
createdAt: "2023-06-15T08:40:41.658Z",
57-
},
58-
{
59-
user: { name: "mou" },
60-
value: "This component allows you to post or delete comments, as well as mention people who appear in the chat.",
61-
createdAt: "2023-06-16T08:43:42.658Z",
62-
},
63-
{
64-
user: { name: "Han Meimei", displayName: "Han" },
65-
value: "I want to give it a try",
66-
createdAt: "2023-06-17T08:49:01.658Z",
67-
},
68-
{
69-
user: { name: "mou" },
70-
value: "Enter the content in the input box below and press shift+enter to send it immediately",
71-
createdAt: "2023-06-18T08:50:11.658Z",
72-
},
73-
];
48+
export const commentDate = [{"user":{"name":"John Doe","avatar":"https://ui-avatars.com/api/?name=John+Doe"},"value":"Has anyone tried using Lowcode for our new internal tool yet?","createdAt":"2024-09-20T10:15:41.658Z"},{"user":{"name":"Jane Smith","avatar":"https://ui-avatars.com/api/?name=Jane+Smith"},"value":"Yes, I’ve been experimenting with it for automating our workflows. It's super quick to set up.","createdAt":"2024-09-20T10:17:12.658Z"},{"user":{"name":"Michael Brown","displayName":"Michael","avatar":"https://ui-avatars.com/api/?name=Michael+Brown"},"value":"That sounds interesting! What kind of automation are you building?","createdAt":"2024-09-20T10:18:45.658Z"},{"user":{"name":"Jane Smith","avatar":"https://ui-avatars.com/api/?name=Jane+Smith"},"value":"Mostly automating form submissions and integrating them with our CRM. It's easy to drag-and-drop components.","createdAt":"2024-09-20T10:20:30.658Z"},{"user":{"name":"John Doe","avatar":"https://ui-avatars.com/api/?name=John+Doe"},"value":"We should look into using it for API integrations as well. Lowcode could save a lot of development time.","createdAt":"2024-09-20T10:22:05.658Z"},{"user":{"name":"Michael Brown","displayName":"Michael","avatar":"https://ui-avatars.com/api/?name=Michael+Brown"},"value":"I agree. Let’s plan a session next week to dive deeper into the possibilities.","createdAt":"2024-09-20T10:23:55.658Z"}];
7449

7550
export function convertCommentData(data: any) {
7651
return data === "" ? [] : checkDataNodes(data) ?? [];

client/packages/lowcoder/src/comps/comps/textInputComp/mentionComp.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ let MentionTmpComp = (function () {
9898
autoHeight: AutoHeightControl,
9999
style: styleControl(InputLikeStyle , 'style'),
100100
animationStyle: styleControl(AnimationStyle , 'animationStyle'),
101-
mentionList: jsonControl(checkMentionListData, {
102-
"@": ["Li Lei", "Han Meimei"],
103-
"#": ["123", "456", "789"],
104-
}),
101+
mentionList: jsonControl(checkMentionListData, {"@":["John Doe","Jane Doe","Michael Smith","Emily Davis","Robert Johnson","Patricia Brown","William Jones","Jennifer Miller","David Wilson","Linda Moore"],"#":["#lowcode","#automation","#appbuilder","#nocode","#workflow","#draganddrop","#rapiddevelopment","#digitaltransformation","#integration","#api"]}),
105102
onEvent: eventHandlerControl(EventOptions),
106103
invalid: booleanExposingStateControl("invalid"),
107104
};

0 commit comments

Comments
 (0)