mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 13:44:54 +00:00
Update data source editor copy
This commit is contained in:
@@ -39,9 +39,13 @@
|
||||
},
|
||||
{
|
||||
"id": "trends",
|
||||
"type": "computed",
|
||||
"compute": "(data) => ({ filesGrowth: 12, modelsGrowth: -3, componentsGrowth: 8, testsGrowth: 15 })",
|
||||
"dependencies": ["metrics"]
|
||||
"type": "static",
|
||||
"defaultValue": {
|
||||
"filesGrowth": 12,
|
||||
"modelsGrowth": -3,
|
||||
"componentsGrowth": 8,
|
||||
"testsGrowth": 15
|
||||
}
|
||||
}
|
||||
],
|
||||
"components": [
|
||||
|
||||
@@ -25,9 +25,12 @@
|
||||
},
|
||||
{
|
||||
"id": "filteredFiles",
|
||||
"type": "computed",
|
||||
"compute": "(data) => {\n if (!data.searchQuery) return data.files;\n return data.files.filter(f => f.name.toLowerCase().includes(data.searchQuery.toLowerCase()));\n}",
|
||||
"dependencies": ["files", "searchQuery"]
|
||||
"type": "static",
|
||||
"expression": "data.files",
|
||||
"dependencies": [
|
||||
"files",
|
||||
"searchQuery"
|
||||
]
|
||||
}
|
||||
],
|
||||
"components": [
|
||||
|
||||
Reference in New Issue
Block a user