diff --git a/frontend/assets/images/icons/3dots-menu.svg b/frontend/assets/images/icons/3dots-menu.svg new file mode 100644 index 0000000000..fe87bc83af --- /dev/null +++ b/frontend/assets/images/icons/3dots-menu.svg @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/frontend/assets/images/icons/alert-info.svg b/frontend/assets/images/icons/alert-info.svg new file mode 100644 index 0000000000..f8ed40c86f --- /dev/null +++ b/frontend/assets/images/icons/alert-info.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/delete.svg b/frontend/assets/images/icons/delete.svg new file mode 100644 index 0000000000..21bb09284c --- /dev/null +++ b/frontend/assets/images/icons/delete.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/duplicate.svg b/frontend/assets/images/icons/duplicate.svg new file mode 100644 index 0000000000..982dbe8041 --- /dev/null +++ b/frontend/assets/images/icons/duplicate.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/editor/left-sidebar/page-settings.svg b/frontend/assets/images/icons/editor/left-sidebar/page-settings.svg new file mode 100644 index 0000000000..358527b507 --- /dev/null +++ b/frontend/assets/images/icons/editor/left-sidebar/page-settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/editor/left-sidebar/page.svg b/frontend/assets/images/icons/editor/left-sidebar/page.svg new file mode 100644 index 0000000000..5a8f30b9af --- /dev/null +++ b/frontend/assets/images/icons/editor/left-sidebar/page.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/eye-off.svg b/frontend/assets/images/icons/eye-off.svg new file mode 100644 index 0000000000..2d7985a8ee --- /dev/null +++ b/frontend/assets/images/icons/eye-off.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/frontend/assets/images/icons/eye.svg b/frontend/assets/images/icons/eye.svg new file mode 100644 index 0000000000..31695f63d2 --- /dev/null +++ b/frontend/assets/images/icons/eye.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/home.svg b/frontend/assets/images/icons/home.svg new file mode 100644 index 0000000000..ff77d55b73 --- /dev/null +++ b/frontend/assets/images/icons/home.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/input.svg b/frontend/assets/images/icons/input.svg new file mode 100644 index 0000000000..c7669fbea7 --- /dev/null +++ b/frontend/assets/images/icons/input.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/icons/save.svg b/frontend/assets/images/icons/save.svg new file mode 100644 index 0000000000..edb4f4b53b --- /dev/null +++ b/frontend/assets/images/icons/save.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/assets/images/no-results.svg b/frontend/assets/images/no-results.svg new file mode 100644 index 0000000000..b0f14ac9a7 --- /dev/null +++ b/frontend/assets/images/no-results.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/assets/translations/en.json b/frontend/assets/translations/en.json index 77e8aac1e6..37e6f0817d 100644 --- a/frontend/assets/translations/en.json +++ b/frontend/assets/translations/en.json @@ -35,7 +35,8 @@ "header": "HEADER", "path": "PATH", "query": "QUERY", - "requestBody": "REQUEST BODY" + "requestBody": "REQUEST BODY", + "page": "Page" }, "errorBoundary": "Something went wrong.", "viewer": "Sorry!. This app is under maintenance", @@ -202,7 +203,8 @@ "component": "Component", "addHandler": "+ Add handler", "addEventHandler": "+ Add event handler", - "emptyMessage": "This {{componentName}} doesn't have any event handlers" + "emptyMessage": "This {{componentName}} doesn't have any event handlers", + "page": "Page" } } }, diff --git a/frontend/package-lock.json b/frontend/package-lock.json index c4874970f3..4f81b7d3b1 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -7,6 +7,9 @@ "": { "version": "0.1.0", "dependencies": { + "@dnd-kit/core": "^6.0.5", + "@dnd-kit/sortable": "^7.0.1", + "@dnd-kit/utilities": "^3.2.0", "@react-google-maps/api": "^2.1.1", "@sentry/react": "^7.12.0", "@sentry/tracing": "^7.12.0", @@ -47,6 +50,7 @@ "react-beautiful-dnd": "^13.1.0", "react-big-calendar": "^0.38.0", "react-bootstrap": "^1.5.2", + "react-burger-menu": "^3.0.8", "react-checkbox-tree": "^1.7.3", "react-circular-progressbar": "^2.0.4", "react-color": "^2.19.3", @@ -15438,6 +15442,75 @@ "node": ">=10.0.0" } }, + "node_modules/@dnd-kit/accessibility": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.0.1.tgz", + "integrity": "sha512-HXRrwS9YUYQO9lFRc/49uO/VICbM+O+ZRpFDe9Pd1rwVv2PCNkRiTZRdxrDgng/UkvdC3Re9r2vwPpXXrWeFzg==", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/accessibility/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + }, + "node_modules/@dnd-kit/core": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.0.5.tgz", + "integrity": "sha512-3nL+Zy5cT+1XwsWdlXIvGIFvbuocMyB4NBxTN74DeBaBqeWdH9JsnKwQv7buZQgAHmAH+eIENfS1ginkvW6bCw==", + "dependencies": { + "@dnd-kit/accessibility": "^3.0.0", + "@dnd-kit/utilities": "^3.2.0", + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/core/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + }, + "node_modules/@dnd-kit/sortable": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/sortable/-/sortable-7.0.1.tgz", + "integrity": "sha512-n77qAzJQtMMywu25sJzhz3gsHnDOUlEjTtnRl8A87rWIhnu32zuP+7zmFjwGgvqfXmRufqiHOSlH7JPC/tnJ8Q==", + "dependencies": { + "@dnd-kit/utilities": "^3.2.0", + "tslib": "^2.0.0" + }, + "peerDependencies": { + "@dnd-kit/core": "^6.0.4", + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/sortable/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + }, + "node_modules/@dnd-kit/utilities": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.0.tgz", + "integrity": "sha512-h65/pn2IPCCIWwdlR2BMLqRkDxpTEONA+HQW3n765HBijLYGyrnTCLa2YQt8VVjjSQD6EfFlTE6aS2Q/b6nb2g==", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/utilities/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + }, "node_modules/@egjs/children-differ": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@egjs/children-differ/-/children-differ-1.0.1.tgz", @@ -18795,7 +18868,7 @@ "node_modules/amdefine": { "version": "1.0.1", "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true, + "devOptional": true, "engines": { "node": ">=0.4.2" } @@ -18999,6 +19072,84 @@ "node": ">=0.8" } }, + "node_modules/ast-transform": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/ast-transform/-/ast-transform-0.0.0.tgz", + "integrity": "sha512-e/JfLiSoakfmL4wmTGPjv0HpTICVmxwXgYOB8x+mzozHL8v+dSfCbrJ8J8hJ0YBP0XcYu1aLZ6b/3TnxNK3P2A==", + "dependencies": { + "escodegen": "~1.2.0", + "esprima": "~1.0.4", + "through": "~2.3.4" + } + }, + "node_modules/ast-transform/node_modules/escodegen": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.2.0.tgz", + "integrity": "sha512-yLy3Cc+zAC0WSmoT2fig3J87TpQ8UaZGx8ahCAs9FL8qNbyV7CVyPKS74DG4bsHiL5ew9sxdYx131OkBQMFnvA==", + "dependencies": { + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=0.4.0" + }, + "optionalDependencies": { + "source-map": "~0.1.30" + } + }, + "node_modules/ast-transform/node_modules/esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ast-transform/node_modules/estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ast-transform/node_modules/esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ast-transform/node_modules/source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "optional": true, + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/ast-types": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.7.8.tgz", + "integrity": "sha512-RIOpVnVlltB6PcBJ5BMLx+H+6JJ/zjDGU0t7f0L6c2M1dqcK92VQopLBlPQ9R80AVXelfqYgjcPLtHtDbNFg0Q==", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", @@ -19612,6 +19763,29 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", "dev": true }, + "node_modules/browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dependencies": { + "resolve": "1.1.7" + } + }, + "node_modules/browser-resolve/node_modules/resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==" + }, + "node_modules/browserify-optional": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-optional/-/browserify-optional-1.0.1.tgz", + "integrity": "sha512-VrhjbZ+Ba5mDiSYEuPelekQMfTbhcA2DhLk2VQWqdcCROWeFqlTcXZ7yfRkXCIl8E+g4gINJYJiRB7WEtfomAQ==", + "dependencies": { + "ast-transform": "0.0.0", + "ast-types": "^0.7.0", + "browser-resolve": "^1.8.1" + } + }, "node_modules/browserslist": { "version": "4.21.3", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", @@ -22495,6 +22669,11 @@ "node": ">= 0.6" } }, + "node_modules/eve": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/eve/-/eve-0.5.4.tgz", + "integrity": "sha512-aqprQ9MAOh1t66PrHxDFmMXPlgNO6Uv1uqvxmwjprQV50jaQ2RqO7O1neY4PJwC+hMnkyMDphu2AQPOPZdjQog==" + }, "node_modules/eventemitter3": { "version": "4.0.7", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", @@ -30246,6 +30425,25 @@ "react-dom": ">=16.8.0" } }, + "node_modules/react-burger-menu": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/react-burger-menu/-/react-burger-menu-3.0.8.tgz", + "integrity": "sha512-pkPHOUKKd5ClLg5OERIZLXtnYCO2Vxvti+BBIIVLNiD2xjCdgfkSt4TZ2IPUQBkYUY/id7Mq56YDgQ16p4kZog==", + "dependencies": { + "browserify-optional": "^1.0.0", + "classnames": "^2.2.6", + "eve": "~0.5.1", + "prop-types": "^15.7.2", + "snapsvg-cjs": "0.0.6" + }, + "engines": { + "node": ">=4.0.0" + }, + "peerDependencies": { + "react": ">=0.14.0", + "react-dom": ">=0.14.0" + } + }, "node_modules/react-checkbox-tree": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/react-checkbox-tree/-/react-checkbox-tree-1.7.3.tgz", @@ -31884,6 +32082,25 @@ "node": ">=8" } }, + "node_modules/snapsvg": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/snapsvg/-/snapsvg-0.5.1.tgz", + "integrity": "sha512-CjwWYsL7+CCk1vCk9BBKGYS4WJVDfJAOMWU+Zhzf8wf6pAm/xT34wnpaMPAgcgCNkxuU6OkQPPd8wGuRCY9aNw==", + "dependencies": { + "eve": "~0.5.1" + } + }, + "node_modules/snapsvg-cjs": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/snapsvg-cjs/-/snapsvg-cjs-0.0.6.tgz", + "integrity": "sha512-7NNvoGrc3BQvWz5rWK1DsD5/Vni4STswz5B3JrBADboQWcN8OBVGjYVJFPT5JkUXb2iVnEflZANhufEpEcTHXw==", + "dependencies": { + "snapsvg": "0.5.1" + }, + "peerDependencies": { + "eve": "~0.5.1" + } + }, "node_modules/sockjs": { "version": "0.3.21", "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", @@ -32656,6 +32873,11 @@ "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", "dev": true }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + }, "node_modules/thunky": { "version": "1.1.0", "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", @@ -35481,6 +35703,69 @@ "integrity": "sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==", "dev": true }, + "@dnd-kit/accessibility": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.0.1.tgz", + "integrity": "sha512-HXRrwS9YUYQO9lFRc/49uO/VICbM+O+ZRpFDe9Pd1rwVv2PCNkRiTZRdxrDgng/UkvdC3Re9r2vwPpXXrWeFzg==", + "requires": { + "tslib": "^2.0.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + } + } + }, + "@dnd-kit/core": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.0.5.tgz", + "integrity": "sha512-3nL+Zy5cT+1XwsWdlXIvGIFvbuocMyB4NBxTN74DeBaBqeWdH9JsnKwQv7buZQgAHmAH+eIENfS1ginkvW6bCw==", + "requires": { + "@dnd-kit/accessibility": "^3.0.0", + "@dnd-kit/utilities": "^3.2.0", + "tslib": "^2.0.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + } + } + }, + "@dnd-kit/sortable": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/sortable/-/sortable-7.0.1.tgz", + "integrity": "sha512-n77qAzJQtMMywu25sJzhz3gsHnDOUlEjTtnRl8A87rWIhnu32zuP+7zmFjwGgvqfXmRufqiHOSlH7JPC/tnJ8Q==", + "requires": { + "@dnd-kit/utilities": "^3.2.0", + "tslib": "^2.0.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + } + } + }, + "@dnd-kit/utilities": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.0.tgz", + "integrity": "sha512-h65/pn2IPCCIWwdlR2BMLqRkDxpTEONA+HQW3n765HBijLYGyrnTCLa2YQt8VVjjSQD6EfFlTE6aS2Q/b6nb2g==", + "requires": { + "tslib": "^2.0.0" + }, + "dependencies": { + "tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + } + } + }, "@egjs/children-differ": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@egjs/children-differ/-/children-differ-1.0.1.tgz", @@ -48226,7 +48511,7 @@ "amdefine": { "version": "1.0.1", "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true + "devOptional": true }, "ansi-escapes": { "version": "4.3.2", @@ -48370,6 +48655,58 @@ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, + "ast-transform": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/ast-transform/-/ast-transform-0.0.0.tgz", + "integrity": "sha512-e/JfLiSoakfmL4wmTGPjv0HpTICVmxwXgYOB8x+mzozHL8v+dSfCbrJ8J8hJ0YBP0XcYu1aLZ6b/3TnxNK3P2A==", + "requires": { + "escodegen": "~1.2.0", + "esprima": "~1.0.4", + "through": "~2.3.4" + }, + "dependencies": { + "escodegen": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.2.0.tgz", + "integrity": "sha512-yLy3Cc+zAC0WSmoT2fig3J87TpQ8UaZGx8ahCAs9FL8qNbyV7CVyPKS74DG4bsHiL5ew9sxdYx131OkBQMFnvA==", + "requires": { + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0", + "source-map": "~0.1.30" + } + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==" + }, + "estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==" + }, + "esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==" + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "optional": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "ast-types": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.7.8.tgz", + "integrity": "sha512-RIOpVnVlltB6PcBJ5BMLx+H+6JJ/zjDGU0t7f0L6c2M1dqcK92VQopLBlPQ9R80AVXelfqYgjcPLtHtDbNFg0Q==" + }, "async": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", @@ -48847,6 +49184,31 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", "dev": true }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==" + } + } + }, + "browserify-optional": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-optional/-/browserify-optional-1.0.1.tgz", + "integrity": "sha512-VrhjbZ+Ba5mDiSYEuPelekQMfTbhcA2DhLk2VQWqdcCROWeFqlTcXZ7yfRkXCIl8E+g4gINJYJiRB7WEtfomAQ==", + "requires": { + "ast-transform": "0.0.0", + "ast-types": "^0.7.0", + "browser-resolve": "^1.8.1" + } + }, "browserslist": { "version": "4.21.3", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", @@ -50900,6 +51262,11 @@ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", "dev": true }, + "eve": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/eve/-/eve-0.5.4.tgz", + "integrity": "sha512-aqprQ9MAOh1t66PrHxDFmMXPlgNO6Uv1uqvxmwjprQV50jaQ2RqO7O1neY4PJwC+hMnkyMDphu2AQPOPZdjQog==" + }, "eventemitter3": { "version": "4.0.7", "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", @@ -56679,6 +57046,18 @@ "warning": "^4.0.3" } }, + "react-burger-menu": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/react-burger-menu/-/react-burger-menu-3.0.8.tgz", + "integrity": "sha512-pkPHOUKKd5ClLg5OERIZLXtnYCO2Vxvti+BBIIVLNiD2xjCdgfkSt4TZ2IPUQBkYUY/id7Mq56YDgQ16p4kZog==", + "requires": { + "browserify-optional": "^1.0.0", + "classnames": "^2.2.6", + "eve": "~0.5.1", + "prop-types": "^15.7.2", + "snapsvg-cjs": "0.0.6" + } + }, "react-checkbox-tree": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/react-checkbox-tree/-/react-checkbox-tree-1.7.3.tgz", @@ -57913,6 +58292,22 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, + "snapsvg": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/snapsvg/-/snapsvg-0.5.1.tgz", + "integrity": "sha512-CjwWYsL7+CCk1vCk9BBKGYS4WJVDfJAOMWU+Zhzf8wf6pAm/xT34wnpaMPAgcgCNkxuU6OkQPPd8wGuRCY9aNw==", + "requires": { + "eve": "~0.5.1" + } + }, + "snapsvg-cjs": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/snapsvg-cjs/-/snapsvg-cjs-0.0.6.tgz", + "integrity": "sha512-7NNvoGrc3BQvWz5rWK1DsD5/Vni4STswz5B3JrBADboQWcN8OBVGjYVJFPT5JkUXb2iVnEflZANhufEpEcTHXw==", + "requires": { + "snapsvg": "0.5.1" + } + }, "sockjs": { "version": "0.3.21", "integrity": "sha512-DhbPFGpxjc6Z3I+uX07Id5ZO2XwYsWOrYjaSeieES78cq+JaJvVe5q/m1uvjIQhXinhIeCFRH6JgXe+mvVMyXw==", @@ -58491,6 +58886,11 @@ "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", "dev": true }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + }, "thunky": { "version": "1.1.0", "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", diff --git a/frontend/package.json b/frontend/package.json index a72976f76c..cdfdfacbcc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -3,6 +3,9 @@ "version": "0.1.0", "private": true, "dependencies": { + "@dnd-kit/core": "^6.0.5", + "@dnd-kit/sortable": "^7.0.1", + "@dnd-kit/utilities": "^3.2.0", "@react-google-maps/api": "^2.1.1", "@sentry/react": "^7.12.0", "@sentry/tracing": "^7.12.0", @@ -43,6 +46,7 @@ "react-beautiful-dnd": "^13.1.0", "react-big-calendar": "^0.38.0", "react-bootstrap": "^1.5.2", + "react-burger-menu": "^3.0.8", "react-checkbox-tree": "^1.7.3", "react-circular-progressbar": "^2.0.4", "react-color": "^2.19.3", diff --git a/frontend/src/App/App.jsx b/frontend/src/App/App.jsx index 35b9c734b7..d125a45003 100644 --- a/frontend/src/App/App.jsx +++ b/frontend/src/App/App.jsx @@ -189,21 +189,21 @@ class App extends React.Component { { + const currentPage = currentState?.page; + const componentName = getComponentName(currentState, id); const errorLog = Object.fromEntries( [...propertyErrors, ...styleErrors, ...generalPropertiesErrors, ...generalStylesErrors].map((error) => [ `${componentName} - ${error.property}`, { + page: currentPage, type: 'component', kind: 'component', + strace: 'page_level', data: { message: `${error.message}`, status: true }, resolvedProperties: resolvedProperties, effectiveProperties: validatedProperties, diff --git a/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx b/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx index 68a23be178..bb00a14506 100644 --- a/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx +++ b/frontend/src/Editor/CodeBuilder/Elements/BoxShadow.jsx @@ -49,8 +49,8 @@ export const BoxShadow = ({ value, onChange, forceCodeBox, cyLabel }) => { }, []); useEffect(() => { - onChange(Object.values(debouncedShadow).join('px ')); if (boxShadow !== debouncedShadow) { + onChange(Object.values(debouncedShadow).join('px ')); setBoxShadow(debouncedShadow); } // eslint-disable-next-line react-hooks/exhaustive-deps diff --git a/frontend/src/Editor/Comments.jsx b/frontend/src/Editor/Comments.jsx index 2e02dffc9f..cf1e643669 100644 --- a/frontend/src/Editor/Comments.jsx +++ b/frontend/src/Editor/Comments.jsx @@ -8,7 +8,7 @@ import { commentsService } from '@/_services'; import useRouter from '@/_hooks/use-router'; -const Comments = ({ newThread = {}, appVersionsId, socket, canvasWidth }) => { +const Comments = ({ newThread = {}, appVersionsId, socket, canvasWidth, currentPageId }) => { const [threads, setThreads] = React.useState([]); const router = useRouter(); @@ -37,20 +37,22 @@ const Comments = ({ newThread = {}, appVersionsId, socket, canvasWidth }) => { if (isEmpty(threads)) return null; - return threads.map((thread) => { - const { id } = thread; - return ( - - ); - }); + return threads + .filter((thread) => thread.pageId === currentPageId) + .map((thread) => { + const { id } = thread; + return ( + + ); + }); }; export default Comments; diff --git a/frontend/src/Editor/Container.jsx b/frontend/src/Editor/Container.jsx index 9c5eca686b..e55be27294 100644 --- a/frontend/src/Editor/Container.jsx +++ b/frontend/src/Editor/Container.jsx @@ -45,6 +45,7 @@ export const Container = ({ hoveredComponent, sideBarDebugger, dataQueries, + currentPageId, }) => { const styles = { width: currentLayout === 'mobile' ? deviceWindowWidth : '100%', @@ -54,7 +55,7 @@ export const Container = ({ backgroundSize: `${canvasWidth / 43}px 10px`, }; - const components = appDefinition.components; + const components = appDefinition.pages[currentPageId]?.components ?? {}; const [boxes, setBoxes] = useState(components); const [isDragging, setIsDragging] = useState(false); @@ -75,7 +76,13 @@ export const Container = ({ if (isContainerFocused) { navigator.clipboard.readText().then((cliptext) => { try { - addComponents(appDefinition, appDefinitionChanged, focusedParentIdRef.current, JSON.parse(cliptext)); + addComponents( + currentPageId, + appDefinition, + appDefinitionChanged, + focusedParentIdRef.current, + JSON.parse(cliptext) + ); } catch (err) { console.log(err); } @@ -108,7 +115,7 @@ export const Container = ({ useEffect(() => { setBoxes(components); - }, [components]); + }, [JSON.stringify(components)]); const moveBox = useCallback( (id, layouts) => { @@ -131,7 +138,19 @@ export const Container = ({ firstUpdate.current = false; return; } - appDefinitionChanged({ ...appDefinition, components: boxes }); + + const newDefinition = { + ...appDefinition, + pages: { + ...appDefinition.pages, + [currentPageId]: { + ...appDefinition.pages[currentPageId], + components: boxes, + }, + }, + }; + + appDefinitionChanged(newDefinition); // eslint-disable-next-line react-hooks/exhaustive-deps }, [boxes]); @@ -293,7 +312,7 @@ export const Container = ({ function paramUpdated(id, param, value) { if (Object.keys(value).length > 0) { - setBoxes( + setBoxes((boxes) => update(boxes, { [id]: { $merge: { @@ -335,6 +354,7 @@ export const Container = ({ x: x, y: e.nativeEvent.offsetY, appVersionsId, + pageId: currentPageId, }); // Remove the temporary loader preview @@ -379,6 +399,7 @@ export const Container = ({ x, y: y - 130, appVersionsId, + pageId: currentPageId, }); // Remove the temporary loader preview @@ -420,7 +441,13 @@ export const Container = ({ > {config.COMMENT_FEATURE_ENABLE && showComments && ( <> - + {commentsPreviewList.map((previewComment, index) => (
); diff --git a/frontend/src/Editor/DraggableBox.jsx b/frontend/src/Editor/DraggableBox.jsx index d22e654cb1..1c3aa9fc75 100644 --- a/frontend/src/Editor/DraggableBox.jsx +++ b/frontend/src/Editor/DraggableBox.jsx @@ -315,6 +315,7 @@ export const DraggableBox = function DraggableBox({ removeComponent={removeComponent} sideBarDebugger={sideBarDebugger} customResolvables={customResolvables} + containerProps={containerProps} />
diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index d1d2fcd2bc..9669ecfc5e 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -11,7 +11,7 @@ import { } from '@/_services'; import { DndProvider } from 'react-dnd'; import { HTML5Backend } from 'react-dnd-html5-backend'; -import { defaults, cloneDeep, isEqual, isEmpty, debounce } from 'lodash'; +import { defaults, cloneDeep, isEqual, isEmpty, debounce, omit } from 'lodash'; import { Container } from './Container'; import { EditorKeyHooks } from './EditorKeyHooks'; import { CustomDragLayer } from './CustomDragLayer'; @@ -72,6 +72,8 @@ class EditorComponent extends React.Component { const appId = this.props.match.params.id; + const pageHandle = this.props.match.params.pageHandle; + const currentUser = authenticationService.currentUserValue; const { socket } = createWebsocketConnection(appId); @@ -88,12 +90,23 @@ class EditorComponent extends React.Component { }; } + const defaultPageId = uuid(); + this.defaultDefinition = { - components: {}, + showViewerNavigation: true, + homePageId: defaultPageId, + pages: { + [defaultPageId]: { + components: {}, + handle: 'home', + name: 'Home', + }, + }, globalSettings: { hideHeader: false, appInMaintenance: false, canvasMaxWidth: 1292, + canvasMaxWidthType: 'px', canvasMaxHeight: 2400, canvasBackgroundColor: props.darkMode ? '#2f3c4c' : '#edeff5', backgroundFxQuery: '', @@ -134,6 +147,10 @@ class EditorComponent extends React.Component { variables: {}, client: {}, server: {}, + page: { + handle: pageHandle, + variables: {}, + }, }, apps: [], dataQueriesDefaultText: "You haven't created queries yet.", @@ -147,6 +164,8 @@ class EditorComponent extends React.Component { isUnsavedQueriesAvailable: false, selectionInProgress: false, scrollOptions: {}, + currentPageId: defaultPageId, + pages: {}, }; this.autoSave = debounce(this.saveEditingVersion, 3000); @@ -159,7 +178,7 @@ class EditorComponent extends React.Component { componentDidMount() { this.fetchApps(0); - this.fetchApp(); + this.fetchApp(this.props.match.params.pageHandle); this.fetchOrgEnvironmentVariables(); this.initComponentVersioning(); this.initRealtimeSave(); @@ -215,7 +234,7 @@ class EditorComponent extends React.Component { componentDidUpdate(prevProps, prevState) { if (!isEqual(prevState.appDefinition, this.state.appDefinition)) { - computeComponentState(this, this.state.appDefinition.components); + computeComponentState(this, this.state.appDefinition.pages[this.state.currentPageId]?.components); } } @@ -367,11 +386,16 @@ class EditorComponent extends React.Component { ); }; - fetchApp = () => { + fetchApp = (startingPageHandle) => { const appId = this.props.match.params.id; appService.getApp(appId).then(async (data) => { - const dataDefinition = defaults(data.definition, this.defaultDefinition); + let dataDefinition = defaults(data.definition, this.defaultDefinition); + + const pages = Object.entries(dataDefinition.pages).map(([pageId, page]) => ({ id: pageId, ...page })); + const startingPageId = pages.filter((page) => page.handle === startingPageHandle)[0]?.id; + const homePageId = startingPageId ?? dataDefinition.homePageId; + this.setState( { app: data, @@ -379,17 +403,31 @@ class EditorComponent extends React.Component { editingVersion: data.editing_version, appDefinition: dataDefinition, slug: data.slug, + currentPageId: homePageId, + currentState: { + ...this.state.currentState, + page: { + handle: dataDefinition.pages[homePageId]?.handle, + name: dataDefinition.pages[homePageId]?.name, + id: homePageId, + variables: {}, + }, + }, }, async () => { if (isEmpty(this.state.editingVersion)) await this.createInitVersion(appId); - computeComponentState(this, this.state.appDefinition.components).then(() => { + // TODO: Check if this runQueries is required + computeComponentState(this, this.state.appDefinition.pages[homePageId]?.components ?? {}).then(() => { this.runQueries(data.data_queries); }); this.setWindowTitle(data.name); this.setState({ showComments: !!queryString.parse(this.props.location.search).threadId, }); + for (const event of dataDefinition.pages[homePageId]?.events ?? []) { + await this.handleEvent(event.eventId, event); + } } ); @@ -414,6 +452,7 @@ class EditorComponent extends React.Component { this.appDefinitionChanged(defaults(version.definition, this.defaultDefinition), { skipAutoSave: true, skipYmapUpdate: true, + versionChanged: true, }); this.setState({ editingVersion: version, @@ -546,22 +585,41 @@ class EditorComponent extends React.Component { }; appDefinitionChanged = (newDefinition, opts = {}) => { + let currentPageId = this.state.currentPageId; if (isEqual(this.state.appDefinition, newDefinition)) return; if (config.ENABLE_MULTIPLAYER_EDITING && !opts.skipYmapUpdate) { this.props.ymap?.set('appDef', { newDefinition, editingVersionId: this.state.editingVersion?.id }); } + if (opts?.versionChanged) { + currentPageId = newDefinition.homePageId; + + this.setState( + { + isSaving: true, + currentPageId: currentPageId, + appDefinition: newDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + if (!opts.skipAutoSave) this.autoSave(); + this.switchPage(currentPageId); + } + ); + return; + } + produce( this.state.appDefinition, (draft) => { - draft.components = newDefinition.components; + draft.pages[currentPageId].components = newDefinition.pages[currentPageId]?.components ?? {}; }, this.handleAddPatch ); this.setState({ isSaving: true, appDefinition: newDefinition, appDefinitionLocalVersion: uuid() }, () => { if (!opts.skipAutoSave) this.autoSave(); }); - computeComponentState(this, newDefinition.components); + computeComponentState(this, newDefinition.pages[currentPageId]?.components ?? {}); }; handleInspectorView = () => { @@ -577,7 +635,7 @@ class EditorComponent extends React.Component { let newDefinition = cloneDeep(this.state.appDefinition); const selectedComponents = this.state?.selectedComponents; - removeSelectedComponent(newDefinition, selectedComponents); + removeSelectedComponent(this.state.currentPageId, newDefinition, selectedComponents); const platform = navigator?.userAgentData?.platform || navigator?.platform || 'unknown'; if (platform.toLowerCase().indexOf('mac') > -1) { toast('Selected components deleted! (⌘ + Z to undo)', { @@ -598,27 +656,28 @@ class EditorComponent extends React.Component { }; removeComponent = (component) => { + const currentPageId = this.state.currentPageId; if (!this.isVersionReleased()) { let newDefinition = cloneDeep(this.state.appDefinition); // Delete child components when parent is deleted let childComponents = []; - if (newDefinition.components[component.id].component.component === 'Tabs') { - childComponents = Object.keys(newDefinition.components).filter((key) => - newDefinition.components[key].parent?.startsWith(component.id) + if (newDefinition.pages[currentPageId].components?.[component.id].component.component === 'Tabs') { + childComponents = Object.keys(newDefinition.pages[currentPageId].components).filter((key) => + newDefinition.pages[currentPageId].components[key].parent?.startsWith(component.id) ); } else { - childComponents = Object.keys(newDefinition.components).filter( - (key) => newDefinition.components[key].parent === component.id + childComponents = Object.keys(newDefinition.pages[currentPageId].components).filter( + (key) => newDefinition.pages[currentPageId].components[key].parent === component.id ); } childComponents.forEach((componentId) => { - delete newDefinition.components[componentId]; + delete newDefinition.pages[currentPageId].components[componentId]; }); - delete newDefinition.components[component.id]; + delete newDefinition.pages[currentPageId].components[component.id]; const platform = navigator?.userAgentData?.platform || navigator?.platform || 'unknown'; if (platform.toLowerCase().indexOf('mac') > -1) { toast('Component deleted! (⌘ + Z to undo)', { @@ -640,24 +699,25 @@ class EditorComponent extends React.Component { componentDefinitionChanged = (componentDefinition) => { let _self = this; + const currentPageId = this.state.currentPageId; - if (this.state.appDefinition?.components[componentDefinition.id]) { + if (this.state.appDefinition?.pages[currentPageId].components[componentDefinition.id]) { const newDefinition = { appDefinition: produce(this.state.appDefinition, (draft) => { - draft.components[componentDefinition.id].component = componentDefinition.component; + draft.pages[currentPageId].components[componentDefinition.id].component = componentDefinition.component; }), }; produce( this.state.appDefinition, (draft) => { - draft.components[componentDefinition.id].component = componentDefinition.component; + draft.pages[currentPageId].components[componentDefinition.id].component = componentDefinition.component; }, this.handleAddPatch ); setStateAsync(_self, newDefinition).then(() => { - computeComponentState(_self, _self.state.appDefinition.components); - this.setState({ isSaving: true }); + computeComponentState(_self, _self.state.appDefinition.pages[currentPageId].components); + this.setState({ isSaving: true, appDefinitionLocalVersion: uuid() }); this.autoSave(); this.props.ymap?.set('appDef', { newDefinition: newDefinition.appDefinition, @@ -676,7 +736,7 @@ class EditorComponent extends React.Component { moveComponents = (direction) => { let appDefinition = JSON.parse(JSON.stringify(this.state.appDefinition)); - let newComponents = appDefinition.components; + let newComponents = appDefinition.pages[this.state.currentPageId].components; for (const selectedComponent of this.state.selectedComponents) { newComponents = produce(newComponents, (draft) => { @@ -704,7 +764,7 @@ class EditorComponent extends React.Component { draft[selectedComponent.id].layouts[this.state.currentLayout].left = left; }); } - appDefinition.components = newComponents; + appDefinition.pages[this.state.currentPageId].components = newComponents; this.appDefinitionChanged(appDefinition); }; @@ -1157,10 +1217,11 @@ class EditorComponent extends React.Component { }; onAreaSelectionEnd = (e) => { + const currentPageId = this.state.currentPageId; this.setState({ selectionInProgress: false }); e.selected.forEach((el, index) => { const id = el.getAttribute('widgetid'); - const component = this.state.appDefinition.components[id].component; + const component = this.state.appDefinition.pages[currentPageId].components[id].component; const isMultiSelect = e.inputEvent.shiftKey || (!e.isClick && index != 0); this.setSelectedComponent(id, component, isMultiSelect); }); @@ -1186,6 +1247,348 @@ class EditorComponent extends React.Component { this.state.selectionInProgress && this.setState({ selectionInProgress: false }); }; + addNewPage = ({ name, handle }) => { + // check for unique page handles + const pageExists = Object.values(this.state.appDefinition.pages).some((page) => page.handle === handle); + + if (pageExists) { + toast.error('Page with same handle already exists'); + return; + } + + const newAppDefinition = { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [uuid()]: { + name, + handle, + components: {}, + }, + }, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + const newPageId = cloneDeep(Object.keys(newAppDefinition.pages)).pop(); + this.switchPage(newPageId); + this.autoSave(); + } + ); + }; + + removePage = (pageId, isHomePage = false) => { + if (Object.keys(this.state.appDefinition.pages).length === 1) { + toast.error('You cannot delete the only page in your app.'); + return; + } + + const toBeDeletedPage = this.state.appDefinition.pages[pageId]; + + const newAppDefinition = { + ...this.state.appDefinition, + pages: omit(this.state.appDefinition.pages, pageId), + }; + + const newCurrentPageId = isHomePage + ? Object.keys(this.state.appDefinition.pages)[0] + : this.state.appDefinition.homePageId; + + this.setState( + { + currentPageId: newCurrentPageId, + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + toast.success(`${toBeDeletedPage.name} page deleted.`); + + this.switchPage(newCurrentPageId); + this.autoSave(); + } + ); + }; + + updateHomePage = (pageId) => { + this.setState( + { + isSaving: true, + appDefinition: { + ...this.state.appDefinition, + homePageId: pageId, + }, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + clonePage = (pageId) => { + const currentPage = this.state.appDefinition.pages[pageId]; + const newPageId = uuid(); + let newPageName = `${currentPage.name} (copy)`; + let newPageHandle = `${currentPage.handle}-copy`; + let i = 1; + while (Object.values(this.state.appDefinition.pages).some((page) => page.handle === newPageHandle)) { + newPageName = `${currentPage.name} (copy ${i})`; + newPageHandle = `${currentPage.handle}-copy-${i}`; + i++; + } + + const newPage = { + ...cloneDeep(currentPage), + name: newPageName, + handle: newPageHandle, + }; + + const newAppDefinition = { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [newPageId]: newPage, + }, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + updatePageHandle = (pageId, newHandle) => { + const pageExists = Object.values(this.state.appDefinition.pages).some((page) => page.handle === newHandle); + + if (pageExists) { + toast.error('Page with same handle already exists'); + return; + } + + this.setState( + { + isSaving: true, + appDefinition: { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [pageId]: { + ...this.state.appDefinition.pages[pageId], + handle: newHandle, + }, + }, + }, + appDefinitionLocalVersion: uuid(), + }, + () => { + toast.success('Page handle updated successfully'); + this.switchPage(pageId); + this.autoSave(); + } + ); + }; + + updateOnPageLoadEvents = (pageId, events) => { + this.setState( + { + isSaving: true, + appDefinition: { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [pageId]: { + ...this.state.appDefinition.pages[pageId], + events, + }, + }, + }, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + showHideViewerNavigation = () => { + const newAppDefinition = { + ...this.state.appDefinition, + showViewerNavigation: !this.state.appDefinition.showViewerNavigation, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => this.autoSave() + ); + }; + + renamePage = (pageId, newName) => { + const newAppDefinition = { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [pageId]: { + ...this.state.appDefinition.pages[pageId], + name: newName, + }, + }, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + hidePage = (pageId) => { + const newAppDefinition = { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [pageId]: { + ...this.state.appDefinition.pages[pageId], + hidden: true, + }, + }, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + unHidePage = (pageId) => { + const newAppDefinition = { + ...this.state.appDefinition, + pages: { + ...this.state.appDefinition.pages, + [pageId]: { + ...this.state.appDefinition.pages[pageId], + hidden: false, + }, + }, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + switchPage = (pageId, queryParams = []) => { + const { name, handle, events } = this.state.appDefinition.pages[pageId]; + const currentPageId = this.state.currentPageId; + + if (!name || !handle) return; + + const queryParamsString = queryParams.map(([key, value]) => `${key}=${value}`).join('&'); + + this.props.history.push(`/apps/${this.state.appId}/${handle}?${queryParamsString}`); + + const { globals: existingGlobals } = this.state.currentState; + + const page = { + ...this.state.currentState.page, + name, + handle, + variables: this.state.pages?.[pageId]?.variables ?? {}, + }; + + const globals = { + ...existingGlobals, + urlparams: JSON.parse(JSON.stringify(queryString.parse(queryParamsString))), + }; + + this.setState( + { + pages: { + ...this.state.pages, + [currentPageId]: { + ...(this.state.pages?.[currentPageId] ?? {}), + variables: { + ...(this.state.currentState?.page?.variables ?? {}), + }, + }, + }, + currentState: { + ...this.state.currentState, + globals, + page, + }, + currentPageId: pageId, + }, + () => { + computeComponentState(this, this.state.appDefinition.pages[pageId]?.components ?? {}).then(async () => { + for (const event of events ?? []) { + await this.handleEvent(event.eventId, event); + } + }); + } + ); + }; + + updateOnSortingPages = (newSortedPages) => { + const pagesObj = newSortedPages.reduce((acc, page) => { + acc[page.id] = this.state.appDefinition.pages[page.id]; + return acc; + }, {}); + + const newAppDefinition = { + ...this.state.appDefinition, + pages: pagesObj, + }; + + this.setState( + { + isSaving: true, + appDefinition: newAppDefinition, + appDefinitionLocalVersion: uuid(), + }, + () => { + this.autoSave(); + } + ); + }; + + getPagesWithIds = () => { + return Object.entries(this.state.appDefinition.pages).map(([id, page]) => ({ ...page, id })); + }; + render() { const { currentSidebarTab, @@ -1221,7 +1624,9 @@ class EditorComponent extends React.Component { queryConfirmationList, } = this.state; - const appVersionPreviewLink = editingVersion ? `/applications/${app.id}/versions/${editingVersion.id}` : ''; + const appVersionPreviewLink = editingVersion + ? `/applications/${app.id}/versions/${editingVersion.id}/${this.state.currentState.page.handle}` + : ''; return (
@@ -1355,9 +1760,12 @@ class EditorComponent extends React.Component { currentState={currentState} debuggerActions={this.sideBarDebugger} appDefinition={{ - components: appDefinition.components, + components: appDefinition.pages[this.state.currentPageId]?.components ?? {}, queries: dataQueries, selectedComponent: selectedComponents ? selectedComponents[selectedComponents.length - 1] : {}, + pages: this.state.appDefinition.pages, + homePageId: this.state.appDefinition.homePageId, + showViewerNavigation: this.state.appDefinition.showViewerNavigation, }} setSelectedComponent={this.setSelectedComponent} removeComponent={this.removeComponent} @@ -1367,6 +1775,21 @@ class EditorComponent extends React.Component { ref={this.dataSourceModalRef} isSaving={this.state.isSaving} isUnsavedQueriesAvailable={this.state.isUnsavedQueriesAvailable} + currentPageId={this.state.currentPageId} + addNewPage={this.addNewPage} + switchPage={this.switchPage} + deletePage={this.removePage} + renamePage={this.renamePage} + clonePage={this.clonePage} + hidePage={this.hidePage} + unHidePage={this.unHidePage} + updateHomePage={this.updateHomePage} + updatePageHandle={this.updatePageHandle} + updateOnPageLoadEvents={this.updateOnPageLoadEvents} + showHideViewerNavigationControls={this.showHideViewerNavigation} + updateOnSortingPages={this.updateOnSortingPages} + apps={apps} + dataQueries={dataQueries} /> {!showComments && ( {config.ENABLE_MULTIPLAYER_EDITING && ( - + )} {defaultComponentStateComputed && ( <> @@ -1446,6 +1874,7 @@ class EditorComponent extends React.Component { hoveredComponent={hoveredComponent} sideBarDebugger={this.sideBarDebugger} dataQueries={dataQueries} + currentPageId={this.state.currentPageId} /> {selectedComponents.length === 1 && - !isEmpty(appDefinition.components) && - !isEmpty(appDefinition.components[selectedComponents[0].id]) ? ( + !isEmpty(appDefinition.pages[this.state.currentPageId]?.components) && + !isEmpty(appDefinition.pages[this.state.currentPageId]?.components[selectedComponents[0].id]) ? ( ) : (
diff --git a/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx b/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx new file mode 100644 index 0000000000..ebff6009e9 --- /dev/null +++ b/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx @@ -0,0 +1,100 @@ +import React, { useState, useEffect } from 'react'; +import Select from '@/_ui/Select'; +import defaultStyles from '@/_ui/Select/styles'; +import { CodeHinter } from '../../CodeBuilder/CodeHinter'; +import { useTranslation } from 'react-i18next'; + +export function SwitchPage({ getPages, currentState, event, handlerChanged, eventIndex, darkMode }) { + const queryParamChangeHandler = (index, key, value) => { + event.queryParams[index][key] = value; + handlerChanged(eventIndex, 'queryParams', event.queryParams); + }; + const { t } = useTranslation(); + + const addQueryParam = () => { + if (!event.queryParams) { + event.queryParams = []; + handlerChanged(eventIndex, 'queryParams', event.queryParams); + } + + event.queryParams.push(['', '']); + handlerChanged(eventIndex, 'queryParams', event.queryParams); + setNumberOfQueryparams(numberOfQueryParams + 1); + }; + + const deleteQueryParam = (index) => { + event.queryParams.splice(index, 1); + handlerChanged(eventIndex, 'queryParams', event.queryParams); + setNumberOfQueryparams(numberOfQueryParams - 1); + }; + + const [numberOfQueryParams, setNumberOfQueryparams] = useState(0); + + // eslint-disable-next-line react-hooks/exhaustive-deps + useEffect(() => { + if (event.queryParams) { + setNumberOfQueryparams(event.queryParams.length); + } + }); + + const styles = { + ...defaultStyles(darkMode), + menuPortal: (provided) => ({ ...provided, zIndex: 9999 }), + menuList: (base) => ({ + ...base, + }), + }; + + return ( +
+ + { + const newCanvasMaxWidthType = event.currentTarget.value; + globalSettingsChanged('canvasMaxWidthType', newCanvasMaxWidthType); + if (newCanvasMaxWidthType === '%') { + globalSettingsChanged('canvasMaxWidth', 100); + } else if (newCanvasMaxWidthType === 'px') { + globalSettingsChanged('canvasMaxWidth', 1292); + } + }} + > + + +
@@ -116,7 +137,7 @@ export const LeftSidebarGlobalSettings = ({ { const height = e.target.value; @@ -142,7 +163,7 @@ export const LeftSidebarGlobalSettings = ({ color={canvasBackgroundColor} onChangeComplete={(color) => { globalSettingsChanged('canvasBackgroundColor', [color.hex, color.rgb]); - globalSettingsChanged('backgroundFxQuery', null); + globalSettingsChanged('backgroundFxQuery', color.hex); }} /> diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditInput.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditInput.jsx new file mode 100644 index 0000000000..3078545975 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditInput.jsx @@ -0,0 +1,48 @@ +import React, { useState } from 'react'; +import { ToolTip } from '@/Editor/Inspector/Elements/Components/ToolTip'; + +export const EditInput = ({ slug, error, setError, pageHandle, setPageHandle, isSaving = false }) => { + const [value, set] = useState(pageHandle); + + const onChangePageHandleValue = (event) => { + setError(null); + const newHandle = event.target.value; + + if (newHandle === '') setError('Page handle cannot be empty'); + if (newHandle === value) setError('Page handle cannot be same as the existing page handle'); + + set(newHandle); + }; + + React.useEffect(() => { + if (!isSaving) { + setPageHandle(value); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [value]); + + React.useEffect(() => { + if (isSaving) { + set(pageHandle); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [isSaving]); + + const label = {slug.substring(0, 16)}.../; + + return ( +
+
+ +
+ +
{error}
+
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditModal.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditModal.jsx new file mode 100644 index 0000000000..92545e4d18 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/EditModal.jsx @@ -0,0 +1,107 @@ +import React, { useState } from 'react'; +import { Modal } from 'react-bootstrap'; +import { Button } from '@/_ui/LeftSidebar'; +import { Alert } from '@/_ui/Alert'; +import { EditInput } from './EditInput'; + +export const EditModal = ({ slug, page, show, handleClose, updatePageHandle, darkMode }) => { + const [pageHandle, setPageHandle] = useState(page.handle); + const [error, setError] = useState(null); + const [isSaving, setIsSaving] = useState(false); + + React.useEffect(() => { + setError(null); + }, [show]); + + const handleSave = () => { + if (pageHandle === page.handle) { + return handleClose(); + } + + setIsSaving(true); + updatePageHandle(page.id, pageHandle); + setTimeout(() => { + setIsSaving(false); + return handleClose(); + }, 900); + }; + + const handleCancel = () => { + setError(null); + setIsSaving(false); + handleClose(); + }; + + React.useEffect(() => { + if (!show && pageHandle !== page.handle) { + setPageHandle(page.handle); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [show]); + + return ( + event.stopPropagation()} + > + + Edit page handle + handleClose()}> + + + + + + + + +
+ +
+ +
+ + Changing the page handle will break any existing apps that are using this page. + +
+
+ + + + +
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/GlobalSettings.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/GlobalSettings.jsx new file mode 100644 index 0000000000..091b6abd84 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/GlobalSettings.jsx @@ -0,0 +1,65 @@ +import React from 'react'; +import { OverlayTrigger, Popover } from 'react-bootstrap'; +import { Button } from '@/_ui/LeftSidebar'; + +export const GlobalSettings = ({ + darkMode, + handlePopoverPinnedState, + showHideViewerNavigationControls, + showPageViwerPageNavitation, +}) => { + const onChange = () => { + showHideViewerNavigationControls(); + }; + + return ( + + +
+ +
+
+ +
+
+
+ + } + > + +
+ ); +}; + +const Toggle = ({ onChange, value = true }) => { + return ( +
+ { + e.stopPropagation(); + onChange(); + }} + checked={value} + /> + Disable Menu + +
+ + To hide the page navigation sidebar in viwer mode, set this option to on. + +
+
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PageHandler.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PageHandler.jsx new file mode 100644 index 0000000000..d260c2b0ee --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PageHandler.jsx @@ -0,0 +1,226 @@ +import React, { useState } from 'react'; +import { RenameInput } from './RenameInput'; +import { PagehandlerMenu } from './PagehandlerMenu'; +import { EditModal } from './EditModal'; +import { SettingsModal } from './SettingsModal'; +import _ from 'lodash'; +import SortableList from '@/_components/SortableList'; + +export const PageHandler = ({ + darkMode, + page, + switchPage, + deletePage, + renamePage, + clonePage, + hidePage, + unHidePage, + updatePopoverPinnedState, + homePageId, + currentPageId, + updateHomePage, + updatePageHandle, + updateOnPageLoadEvents, + currentState, + apps, + allPages, + components, + dataQueries, +}) => { + const isHomePage = page.id === homePageId; + const isSelected = page.id === currentPageId; + const isHidden = page?.hidden ?? false; + + const [isEditingPageName, setIsEditingPageName] = useState(false); + const [showEditModal, setShowEditModal] = useState(false); + const [showPagehandlerMenu, setShowPagehandlerMenu] = useState(false); + const [showSettingsModal, setShowSettingsModal] = useState(false); + const [isHovered, setIsHovered] = useState(false); + + const handleClose = () => { + setShowEditModal(false); + setShowPagehandlerMenu(true); + }; + const handleShow = () => { + setShowEditModal(true); + setShowPagehandlerMenu(false); + }; + + const showSettings = () => { + setShowSettingsModal(true); + }; + + React.useEffect(() => { + if (showPagehandlerMenu) { + updatePopoverPinnedState(true); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [showPagehandlerMenu]); + + const handleCallback = (id) => { + setIsHovered(false); + switch (id) { + case 'delete-page': + deletePage(page.id, isHomePage); + break; + + case 'rename-page': + setIsEditingPageName(true); + break; + + case 'mark-as-home-page': + updateHomePage(page.id); + break; + + case 'edit-page-handle': + handleShow(); + break; + + case 'settings': + showSettings(); + break; + + case 'duplicate-page': + clonePage(page.id); + break; + + case 'hide-page': + hidePage(page.id); + break; + + case 'unhide-page': + unHidePage(page.id); + break; + + default: + break; + } + }; + + React.useEffect(() => { + if (!isHovered && !isSelected && showPagehandlerMenu) { + setShowPagehandlerMenu(false); + } + + if (isHovered && currentPageId !== page.id) { + setShowPagehandlerMenu(false); + } + + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [isHovered]); + + if (isEditingPageName) { + return ; + } + const windowUrl = window.location.href; + + const slug = windowUrl.split(page.handle)[0]; + + return ( +
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + className={`card cursor-pointer ${isSelected ? 'active' : 'non-active-page'}`} + onClick={() => page.id != currentPageId && switchPage(page.id)} + > +
+
+
+ +
+
+ {page.name} +
+
+ {isHidden && ( + + )} + {(isHovered || isSelected) && isHomePage && ( + + )} +
+
+ {(isHovered || isSelected) && ( + + )} + + setShowSettingsModal(false)} + darkMode={darkMode} + updateOnPageLoadEvents={updateOnPageLoadEvents} + currentState={currentState} + apps={apps} + pages={allPages} + components={components} + dataQueries={dataQueries} + /> +
+
+
+
+ ); +}; + +export const AddingPageHandler = ({ addNewPage, setNewPageBeingCreated }) => { + const handleAddingNewPage = (pageName) => { + if (pageName) { + addNewPage({ name: pageName, handle: _.kebabCase(pageName.toLowerCase()) }); + } + setNewPageBeingCreated(false); + }; + + return ( +
+
+ { + const name = event.target.value; + handleAddingNewPage(name); + event.stopPropagation(); + }} + onKeyDown={(event) => { + if (event.key === 'Enter') { + const name = event.target.value; + handleAddingNewPage(name); + event.stopPropagation(); + } + }} + /> +
+
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PagehandlerMenu.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PagehandlerMenu.jsx new file mode 100644 index 0000000000..abd306a537 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/PagehandlerMenu.jsx @@ -0,0 +1,152 @@ +import React from 'react'; +import { OverlayTrigger, Popover } from 'react-bootstrap'; +import { Button } from '@/_ui/LeftSidebar'; + +export const PagehandlerMenu = ({ page, darkMode, handlePageCallback, showMenu, setShowMenu, isHome, isHidden }) => { + const closeMenu = () => { + setShowMenu(false); + }; + + React.useEffect(() => { + const handleClickOutside = (event) => { + if (showMenu && event.target.closest('.pagehandler-menu') === null) { + closeMenu(); + } + }; + + document.addEventListener('mousedown', handleClickOutside); + return () => { + document.removeEventListener('mousedown', handleClickOutside); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [JSON.stringify({ page, showMenu })]); + + return ( + + +
+ +
+
+ + + + + + + + + +
+
+
+ + } + > + { + event.stopPropagation(); + setShowMenu(true); + }} + styles={{ height: '20px' }} + > + + +
+ ); +}; + +const PageHandleField = ({ page, updatePageHandle }) => { + const Label = () => { + return ( + + ); + }; + + const content = () => { + return ( +
+ .../ + {page.handle} +
+ ); + }; + + return ( +
+
+ ); +}; + +const Field = ({ id, text, iconSrc, customClass = '', closeMenu, disabled = false, callback = () => null }) => { + const handleOnClick = (e) => { + e.stopPropagation(); + closeMenu(); + callback(id); + }; + + return ( +
+ + + +
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/RenameInput.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/RenameInput.jsx new file mode 100644 index 0000000000..5f86b3dce1 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/RenameInput.jsx @@ -0,0 +1,35 @@ +import React from 'react'; + +export const RenameInput = ({ page, updaterCallback, updatePageEditMode }) => { + const handleAddingNewPage = (pageName) => { + if (pageName.length > 0 && pageName !== page.name) { + updaterCallback(page.id, pageName); + } + updatePageEditMode(false); + }; + + return ( +
+
+ { + const name = event.target.value; + handleAddingNewPage(name); + event.stopPropagation(); + }} + onKeyDown={(event) => { + if (event.key === 'Enter') { + const name = event.target.value; + handleAddingNewPage(name); + event.stopPropagation(); + } + }} + /> +
+
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/SettingsModal.jsx b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/SettingsModal.jsx new file mode 100644 index 0000000000..1eadf1ca70 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/SettingsModal.jsx @@ -0,0 +1,82 @@ +import React, { useState } from 'react'; +import { Modal } from 'react-bootstrap'; +import { Button } from '@/_ui/LeftSidebar'; +import { EventManager } from '../../Inspector/EventManager'; + +export const SettingsModal = ({ + page, + show, + handleClose, + darkMode, + updateOnPageLoadEvents, + currentState, + apps, + pages, + components, + dataQueries, +}) => { + const [isSaving, _setIsSaving] = useState(false); + console.log({ dataQueries }); + + return ( +
event.stopPropagation()}> + event.stopPropagation()} + > + + Page Events + + + + + + + + + + Events + updateOnPageLoadEvents(page.id, events)} + popOverCallback={(showing) => showing} + /> + + + + + +
+ ); +}; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPageSelector/index.js b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/index.js new file mode 100644 index 0000000000..bbadc319c5 --- /dev/null +++ b/frontend/src/Editor/LeftSidebar/SidebarPageSelector/index.js @@ -0,0 +1,175 @@ +import React, { useState } from 'react'; +import Fuse from 'fuse.js'; +import { LeftSidebarItem } from '../SidebarItem'; +import usePinnedPopover from '@/_hooks/usePinnedPopover'; +import { Button, HeaderSection } from '@/_ui/LeftSidebar'; +import { SidebarPinnedButton } from '../SidebarPinnedButton'; +import { PageHandler, AddingPageHandler } from './PageHandler'; +import { GlobalSettings } from './GlobalSettings'; +import _ from 'lodash'; +import SortableList from '@/_components/SortableList'; + +const LeftSidebarPageSelector = ({ + appDefinition, + darkMode, + currentPageId, + addNewPage, + switchPage, + deletePage, + renamePage, + clonePage, + hidePage, + unHidePage, + updateHomePage, + updatePageHandle, + pages, + homePageId, + showHideViewerNavigationControls, + updateOnSortingPages, + updateOnPageLoadEvents, + currentState, + apps, + dataQueries, +}) => { + const [open, trigger, content, popoverPinned, updatePopoverPinnedState] = usePinnedPopover(false); + + const handlePopoverPinnedState = () => { + if (!popoverPinned) { + updatePopoverPinnedState(true); + } + }; + + const [allpages, setPages] = useState(pages); + + const [newPageBeingCreated, setNewPageBeingCreated] = useState(false); + + const filterPages = (value) => { + if (!value || value.length === 0) return clearSearch(); + + const fuse = new Fuse(allpages, { keys: ['name'], threshold: 0.3 }); + const result = fuse.search(value); + + setPages(result.map((item) => item.item)); + }; + + const clearSearch = () => { + setPages(pages); + }; + + React.useEffect(() => { + if (!_.isEqual(pages, allpages)) { + setPages(pages); + } + + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [JSON.stringify({ pages })]); + + return ( + <> + +
+
event.stopPropagation()}> + + +
+ + + + + +
+
+ +
+ +
+
+ {allpages.length > 0 ? ( + + ) : ( +
+
+ empty-page +

No pages found

+
+
+ )} + + {newPageBeingCreated && ( +
+ +
+ )} +
+
+
+
+ + ); +}; + +export default LeftSidebarPageSelector; diff --git a/frontend/src/Editor/LeftSidebar/SidebarPinnedButton.jsx b/frontend/src/Editor/LeftSidebar/SidebarPinnedButton.jsx index 0c9f712ec0..aa56581abf 100644 --- a/frontend/src/Editor/LeftSidebar/SidebarPinnedButton.jsx +++ b/frontend/src/Editor/LeftSidebar/SidebarPinnedButton.jsx @@ -1,26 +1,36 @@ import React from 'react'; import OverlayTrigger from 'react-bootstrap/OverlayTrigger'; import Tooltip from 'react-bootstrap/Tooltip'; +import { Button } from '@/_ui/LeftSidebar'; export const SidebarPinnedButton = ({ state, component, updateState, darkMode }) => { const tooltipMsg = state ? `Unpin ${component}` : `Pin ${component}`; const pinnedIcon = !state ? 'pinned' : 'pinnedoff'; + const iconSrc = `assets/images/icons/editor/left-sidebar/${pinnedIcon}.svg`; + + // Todo: Uniform styles for all pinned buttons return ( -
- -
+ {component === 'PageSelector' ? ( + + ) : ( +
+ +
+ )}
); }; diff --git a/frontend/src/Editor/LeftSidebar/index.js b/frontend/src/Editor/LeftSidebar/index.js index 6750957594..80d96c113c 100644 --- a/frontend/src/Editor/LeftSidebar/index.js +++ b/frontend/src/Editor/LeftSidebar/index.js @@ -9,6 +9,7 @@ import useRouter from '../../_hooks/use-router'; import { LeftSidebarDebugger } from './SidebarDebugger'; import { LeftSidebarComment } from './SidebarComment'; import { LeftSidebarGlobalSettings } from './SidebarGlobalSettings'; +import LeftSidebarPageSelector from './SidebarPageSelector'; import { ConfirmDialog } from '@/_components'; import config from 'config'; @@ -37,6 +38,21 @@ export const LeftSidebar = forwardRef((props, ref) => { is_maintenance_on, isSaving, isUnsavedQueriesAvailable, + currentPageId, + addNewPage, + switchPage, + deletePage, + renamePage, + hidePage, + unHidePage, + updateHomePage, + updatePageHandle, + showHideViewerNavigationControls, + updateOnSortingPages, + updateOnPageLoadEvents, + apps, + dataQueries, + clonePage, } = props; const [showLeaveDialog, setShowLeaveDialog] = useState(false); const [showDataSourceManagerModal, toggleDataSourceManagerModal] = useState(false); @@ -57,6 +73,28 @@ export const LeftSidebar = forwardRef((props, ref) => { runQuery={runQuery} dataSources={dataSources} /> + ({ id, ...page })) || []} + homePageId={appDefinition.homePageId} + showHideViewerNavigationControls={showHideViewerNavigationControls} + updateOnSortingPages={updateOnSortingPages} + updateOnPageLoadEvents={updateOnPageLoadEvents} + currentState={currentState} + apps={apps} + dataQueries={dataQueries} + /> { components={components} errors={errorLogs} debuggerActions={debuggerActions} + currentPageId={currentPageId} /> {config.COMMENT_FEATURE_ENABLE && ( - + )} { const self = useSelf(); const others = useOthers(); - const othersOnSameVersion = others.filter( - (other) => other?.presence?.editingVersionId === self?.presence.editingVersionId + const othersOnSameVersionAndPage = others.filter( + (other) => + other?.presence?.editingVersionId === self?.presence.editingVersionId && + other?.presence?.editingPageId === self?.presence.editingPageId ); const getAvatarText = (presence) => presence.firstName?.charAt(0) + presence.lastName?.charAt(0); @@ -19,7 +21,7 @@ const RealtimeAvatars = () => { // ref: https://github.com/wwayne/react-tooltip#3-tooltip-not-binding-to-dynamic-content React.useEffect(() => { ReactTooltip.rebuild(); - }, [othersOnSameVersion?.length]); + }, [othersOnSameVersionAndPage?.length]); return (
@@ -35,7 +37,7 @@ const RealtimeAvatars = () => { borderShape="rounded" /> )} - {othersOnSameVersion.slice(0, MAX_DISPLAY_USERS).map(({ id, presence }) => { + {othersOnSameVersionAndPage.slice(0, MAX_DISPLAY_USERS).map(({ id, presence }) => { return ( { /> ); })} - {othersOnSameVersion.length > MAX_DISPLAY_USERS && ( - + {othersOnSameVersionAndPage.length > MAX_DISPLAY_USERS && ( + )}
diff --git a/frontend/src/Editor/RealtimeCursors.jsx b/frontend/src/Editor/RealtimeCursors.jsx index a8dd2a85a9..845c767858 100644 --- a/frontend/src/Editor/RealtimeCursors.jsx +++ b/frontend/src/Editor/RealtimeCursors.jsx @@ -7,7 +7,7 @@ import { Cursor } from './Cursor'; import { USER_COLORS } from '@/_helpers/constants'; import { userService } from '@/_services'; -const RealtimeCursors = ({ editingVersionId }) => { +const RealtimeCursors = ({ editingVersionId, editingPageId }) => { const currentUser = JSON.parse(localStorage.getItem('currentUser')); const others = useOthers(); @@ -23,9 +23,9 @@ const RealtimeCursors = ({ editingVersionId }) => { }, []); React.useEffect(() => { - updatePresence({ editingVersionId }); + updatePresence({ editingVersionId, editingPageId }); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [editingVersionId]); + }, [editingVersionId, editingPageId]); React.useEffect(() => { async function fetchAvatar() { @@ -40,8 +40,10 @@ const RealtimeCursors = ({ editingVersionId }) => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentUser.avatar_id]); - const othersOnSameVersion = others.filter( - (other) => other?.presence?.editingVersionId === self?.presence.editingVersionId + const othersOnSameVersionAndPage = others.filter( + (other) => + other?.presence?.editingVersionId === self?.presence.editingVersionId && + other?.presence?.editingPageId === self?.presence.editingPageId ); const handlePointerMove = React.useCallback( @@ -67,7 +69,7 @@ const RealtimeCursors = ({ editingVersionId }) => { return ( <> - {othersOnSameVersion?.map(({ id, presence }) => { + {othersOnSameVersionAndPage?.map(({ id, presence }) => { if (!presence) return null; return ; })} diff --git a/frontend/src/Editor/SubContainer.jsx b/frontend/src/Editor/SubContainer.jsx index a520ef8a3d..95484f4783 100644 --- a/frontend/src/Editor/SubContainer.jsx +++ b/frontend/src/Editor/SubContainer.jsx @@ -44,6 +44,7 @@ export const SubContainer = ({ exposedVariables, addDefaultChildren = false, height = '100%', + currentPageId, }) => { //Todo add custom resolve vars for other widgets too const mounted = useMounted(); @@ -65,7 +66,7 @@ export const SubContainer = ({ zoomLevel = zoomLevel || 1; // eslint-disable-next-line react-hooks/exhaustive-deps - const allComponents = appDefinition ? appDefinition.components : {}; + const allComponents = appDefinition ? appDefinition.pages[currentPageId].components : {}; const isParentModal = (allComponents[parent]?.component?.component === 'Modal' || allComponents[parent]?.component?.component === 'Form') ?? @@ -198,7 +199,17 @@ export const SubContainer = ({ useEffect(() => { if (appDefinitionChanged) { - appDefinitionChanged({ ...appDefinition, components: boxes }); + const newDefinition = { + ...appDefinition, + pages: { + ...appDefinition.pages, + [currentPageId]: { + ...appDefinition.pages[currentPageId], + components: boxes, + }, + }, + }; + appDefinitionChanged(newDefinition); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [boxes]); @@ -388,8 +399,8 @@ export const SubContainer = ({ function paramUpdated(id, param, value) { if (Object.keys(value).length > 0) { - setBoxes( - update(boxes, { + setBoxes((boxes) => { + return update(boxes, { [id]: { $merge: { component: { @@ -404,8 +415,8 @@ export const SubContainer = ({ }, }, }, - }) - ); + }); + }); } } @@ -497,6 +508,7 @@ export const SubContainer = ({ hoveredComponent, sideBarDebugger, addDefaultChildren, + currentPageId, }} /> ); diff --git a/frontend/src/Editor/Viewer.jsx b/frontend/src/Editor/Viewer.jsx index 0f5d7137e1..058b456368 100644 --- a/frontend/src/Editor/Viewer.jsx +++ b/frontend/src/Editor/Viewer.jsx @@ -4,6 +4,7 @@ import { DndProvider } from 'react-dnd'; import { HTML5Backend } from 'react-dnd-html5-backend'; import { Container } from './Container'; import { Confirm } from './Viewer/Confirm'; +import { ViewerNavigation } from './Viewer/ViewerNavigation'; import { onComponentOptionChanged, onComponentOptionsChanged, @@ -20,6 +21,7 @@ import ViewerLogoIcon from './Icons/viewer-logo.svg'; import { DataSourceTypes } from './DataSourceManager/SourceComponents'; import { resolveReferences, safelyParseJSON, stripTrailingSlash } from '@/_helpers/utils'; import { withTranslation } from 'react-i18next'; +import _ from 'lodash'; import { Link, Redirect } from 'react-router-dom'; import Spinner from '@/_ui/Spinner'; @@ -30,13 +32,22 @@ class ViewerComponent extends React.Component { const deviceWindowWidth = window.screen.width - 5; const isMobileDevice = deviceWindowWidth < 600; + const pageHandle = this.props.match?.params?.pageHandle; + + const slug = this.props.match.params.slug; + const appId = this.props.match.params.id; + const versionId = this.props.match.params.versionId; + this.state = { + slug, + appId, + versionId, deviceWindowWidth, currentLayout: isMobileDevice ? 'mobile' : 'desktop', currentUser: authenticationService.currentUserValue, isLoading: true, users: null, - appDefinition: { components: {} }, + appDefinition: { pages: {} }, currentState: { queries: {}, components: {}, @@ -45,22 +56,35 @@ class ViewerComponent extends React.Component { theme: { name: props.darkMode ? 'dark' : 'light' }, urlparams: {}, environment_variables: {}, + page: { + handle: pageHandle, + }, }, + variables: {}, }, queryConfirmationList: [], isAppLoaded: false, errorAppId: null, errorVersionId: null, errorDetails: null, + pages: {}, }; } setStateForApp = (data) => { + const copyDefinition = _.cloneDeep(data.definition); + const pagesObj = copyDefinition.pages || {}; + + const newDefinition = { + ...copyDefinition, + pages: pagesObj, + }; + this.setState({ app: data, isLoading: false, isAppLoaded: true, - appDefinition: data.definition || { components: {} }, + appDefinition: newDefinition || { components: {} }, }); }; @@ -80,10 +104,10 @@ class ViewerComponent extends React.Component { let mobileLayoutHasWidgets = false; if (this.state.currentLayout === 'mobile') { + const currentComponents = data.definition.pages[data.definition.homePageId].components; mobileLayoutHasWidgets = - Object.keys(data.definition.components).filter( - (componentId) => data.definition.components[componentId]['layouts']['mobile'] - ).length > 0; + Object.keys(currentComponents).filter((componentId) => currentComponents[componentId]['layouts']['mobile']) + .length > 0; } let queryState = {}; @@ -103,6 +127,12 @@ class ViewerComponent extends React.Component { const variables = await this.fetchOrgEnvironmentVariables(data.slug, data.is_public); + const pages = Object.entries(data.definition.pages).map(([pageId, page]) => ({ id: pageId, ...page })); + const homePageId = data.definition.homePageId; + const startingPageHandle = this.props.match?.params?.pageHandle; + const currentPageId = pages.filter((page) => page.handle === startingPageHandle)[0]?.id ?? homePageId; + const currentPage = pages.find((page) => page.id === currentPageId); + this.setState( { currentSidebarTab: 2, @@ -122,12 +152,20 @@ class ViewerComponent extends React.Component { theme: { name: this.props.darkMode ? 'dark' : 'light' }, urlparams: JSON.parse(JSON.stringify(queryString.parse(this.props.location.search))), }, + variables: {}, + page: { + handle: currentPage.handle, + name: currentPage.name, + variables: {}, + }, ...variables, }, dataQueries: data.data_queries, + currentPageId: currentPage.id, + pages: {}, }, () => { - computeComponentState(this, data?.definition?.components).then(() => { + computeComponentState(this, data?.definition?.pages[currentPage.id]?.components).then(() => { console.log('Default component state computed and set'); this.runQueries(data.data_queries); }); @@ -249,6 +287,63 @@ class ViewerComponent extends React.Component { this.setState({ isLoading: true }); this.loadApplicationBySlug(this.props.match.params.slug); } + + this.handlePageSwitchingBasedOnURLparam(); + } + + handlePageSwitchingBasedOnURLparam() { + const handleOnURL = this.props.match.params.pageHandle; + const pageIdCorrespondingToHandleOnURL = handleOnURL + ? this.findPageIdFromHandle(handleOnURL) + : this.state.appDefinition.homePageId; + const currentPageId = this.state.currentPageId; + + if (pageIdCorrespondingToHandleOnURL != this.state.currentPageId) { + const targetPage = this.state.appDefinition.pages[pageIdCorrespondingToHandleOnURL]; + this.setState( + { + pages: { + ...this.state.pages, + [currentPageId]: { + ...this.state.pages?.[currentPageId], + variables: { + ...this.state.currentState?.page?.variables, + }, + }, + }, + currentPageId: pageIdCorrespondingToHandleOnURL, + handle: targetPage.handle, + name: targetPage.name, + currentState: { + ...this.state.currentState, + globals: { + ...this.state.currentState.globals, + urlparams: JSON.parse(JSON.stringify(queryString.parse(this.props.location.search))), + }, + page: { + ...this.state.currentState.page, + name: targetPage.name, + handle: targetPage.handle, + variables: this.state.pages?.[pageIdCorrespondingToHandleOnURL]?.variables ?? {}, + }, + }, + }, + async () => { + computeComponentState(this, this.state.appDefinition?.pages[this.state.currentPageId].components).then( + async () => { + const { events } = this.state.appDefinition?.pages[this.state.currentPageId]; + for (const event of events ?? []) { + await this.handleEvent(event.eventId, event); + } + } + ); + } + ); + } + } + + findPageIdFromHandle(handle) { + return Object.entries(this.state.appDefinition.pages).filter(([_id, page]) => page.handle === handle)?.[0]?.[0]; } getCanvasWidth = () => { @@ -284,6 +379,38 @@ class ViewerComponent extends React.Component { this.props.switchDarkMode(newMode); }; + switchPage = (id, queryParams = []) => { + const { handle, name, events } = this.state.appDefinition.pages[id]; + + const queryParamsString = queryParams.map(([key, value]) => `${key}=${value}`).join('&'); + const { globals: existingGlobals } = this.state.currentState; + const globals = { + ...existingGlobals, + urlparams: JSON.parse(JSON.stringify(queryString.parse(queryParamsString))), + }; + + if (this.state.slug) this.props.history.push(`/applications/${this.state.slug}/${handle}?${queryParamsString}`); + else + this.props.history.push( + `/applications/${this.state.appId}/versions/${this.state.versionId}/${handle}?${queryParamsString}` + ); + }; + + handleEvent = (eventName, options) => onEvent(this, eventName, options, 'view'); + + computeCanvasMaxWidth = () => { + const { appDefinition } = this.state; + let computedCanvasMaxWidth = 1292; + + if (appDefinition.globalSettings?.canvasMaxWidthType === 'px') + computedCanvasMaxWidth = + (+appDefinition.globalSettings?.canvasMaxWidth || 1292) - (appDefinition?.showViewerNavigation ? 200 : 0); + else if (appDefinition.globalSettings?.canvasMaxWidthType === '%') + computedCanvasMaxWidth = +appDefinition.globalSettings?.canvasMaxWidth + '%'; + + return computedCanvasMaxWidth; + }; + render() { const { appDefinition, @@ -292,15 +419,19 @@ class ViewerComponent extends React.Component { currentLayout, deviceWindowWidth, defaultComponentStateComputed, - canvasWidth, dataQueries, queryConfirmationList, errorAppId, errorVersionId, errorDetails, + canvasWidth, } = this.state; - if (isLoading) { + const currentCanvasWidth = canvasWidth; + + const canvasMaxWidth = this.computeCanvasMaxWidth(); + + if (this.state.app?.isLoading) { return (
@@ -339,75 +470,83 @@ class ViewerComponent extends React.Component { key={queryConfirmationList[0]?.queryName} /> - {!appDefinition.globalSettings?.hideHeader && isAppLoaded && ( -
-
-
-

- - - -

- {this.state.app && {this.state.app.name}} -
- -
-
-
-
- )} +
-
- {defaultComponentStateComputed && ( - <> - {isLoading ? ( -
-
-
-
-
- ) : ( - false} // function not relevant in viewer - snapToGrid={true} - appLoading={isLoading} - darkMode={this.props.darkMode} - onEvent={(eventName, options) => onEvent(this, eventName, options, 'view')} - mode="view" - deviceWindowWidth={deviceWindowWidth} - currentLayout={currentLayout} - currentState={this.state.currentState} - selectedComponent={this.state.selectedComponent} - onComponentClick={(id, component) => { - this.setState({ - selectedComponent: { id, component }, - }); - onComponentClick(this, id, component, 'view'); - }} - onComponentOptionChanged={(component, optionName, value) => { - return onComponentOptionChanged(this, component, optionName, value); - }} - onComponentOptionsChanged={(component, options) => - onComponentOptionsChanged(this, component, options) - } - canvasWidth={this.getCanvasWidth()} - dataQueries={dataQueries} - /> - )} - +
+ {appDefinition?.showViewerNavigation && ( + )} +
+ {defaultComponentStateComputed && ( + <> + {isLoading ? ( +
+
+
+
+
+ ) : ( + false} // function not relevant in viewer + snapToGrid={true} + appLoading={isLoading} + darkMode={this.props.darkMode} + onEvent={(eventName, options) => onEvent(this, eventName, options, 'view')} + mode="view" + deviceWindowWidth={deviceWindowWidth} + currentLayout={currentLayout} + currentState={this.state.currentState} + selectedComponent={this.state.selectedComponent} + onComponentClick={(id, component) => { + this.setState({ + selectedComponent: { id, component }, + }); + onComponentClick(this, id, component, 'view'); + }} + onComponentOptionChanged={(component, optionName, value) => { + return onComponentOptionChanged(this, component, optionName, value); + }} + onComponentOptionsChanged={(component, options) => + onComponentOptionsChanged(this, component, options) + } + canvasWidth={this.getCanvasWidth()} + dataQueries={dataQueries} + currentPageId={this.state.currentPageId} + /> + )} + + )} +
diff --git a/frontend/src/Editor/Viewer/Header.jsx b/frontend/src/Editor/Viewer/Header.jsx new file mode 100644 index 0000000000..11c1c4fd69 --- /dev/null +++ b/frontend/src/Editor/Viewer/Header.jsx @@ -0,0 +1,13 @@ +import React from 'react'; + +const Header = ({ children, className }) => { + return ( +
+
+
{children}
+
+
+ ); +}; + +export default Header; diff --git a/frontend/src/Editor/Viewer/ViewerNavigation.jsx b/frontend/src/Editor/Viewer/ViewerNavigation.jsx new file mode 100644 index 0000000000..40d00c3340 --- /dev/null +++ b/frontend/src/Editor/Viewer/ViewerNavigation.jsx @@ -0,0 +1,213 @@ +import React from 'react'; +import _ from 'lodash'; +import { slide as Menu } from 'react-burger-menu'; +import LogoIcon from '../Icons/logo.svg'; +import { Link } from 'react-router-dom'; +import { DarkModeToggle } from '@/_components/DarkModeToggle'; +import Header from './Header'; + +export const ViewerNavigation = ({ + isMobileDevice, + canvasBackgroundColor, + pages, + currentPageId, + switchPage, + darkMode, +}) => { + if (isMobileDevice) { + return null; + } + + return ( +
+
+ {pages.map( + ([id, page]) => + !page.hidden && ( +
switchPage(id)} + className={`viewer-page-handler cursor-pointer ${darkMode && 'dark'}`} + > +
+
+ {_.truncate(page.name, { length: 22 })} +
+
+
+ ) + )} +
+
+ ); +}; + +const MobileNavigationMenu = ({ pages, switchPage, currentPageId, darkMode, changeDarkMode }) => { + const [hamburgerMenuOpen, setHamburgerMenuOpen] = React.useState(false); + + const handlepageSwitch = (pageId) => { + setHamburgerMenuOpen(false); + switchPage(pageId); + }; + + var styles = { + bmBurgerButton: { + position: 'fixed', + width: '21px', + height: '16px', + right: 10, + top: 18, + }, + bmBurgerBars: { + background: darkMode ? '#4C5155' : 'rgb(77, 114, 250)', + }, + bmCrossButton: { + display: 'none', + }, + bmCross: { + background: '#bdc3c7', + }, + bmMenuWrap: { + height: '100%', + width: '100%', + top: 0, + }, + bmMenu: { + background: darkMode ? '#202B37' : '#fff', + padding: '0', + }, + bmMorphShape: { + fill: '#373a47', + }, + bmItemList: { + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + }, + bmItem: { + display: 'inline-block', + }, + bmOverlay: { + background: 'rgba(0, 0, 0, 0.3)', + }, + }; + + return ( + <> + setHamburgerMenuOpen(state.isOpen)} + right + > +
+
+
setHamburgerMenuOpen(false)} className="col-1 mx-1"> + + + + +
+
+ Menu +
+
+
+ +
+
+ {pages.map( + ([id, page]) => + !page.hidden && ( +
handlepageSwitch(id)} + className={`viewer-page-handler mb-2 cursor-pointer ${darkMode && 'dark'}`} + > +
+
+ {_.truncate(page.name, { length: 22 })} +
+
+
+ ) + )} +
+
+ +
+ + ); +}; + +const ViewerHeader = ({ + showHeader, + appName, + changeDarkMode, + darkMode, + pages, + currentPageId, + switchPage, + currentLayout, +}) => { + return ( +
+ {showHeader && ( + <> +

+ + + +

+ {appName && {appName}} + + )} +
+ + {currentLayout === 'mobile' && ( + + )} +
+
+ ); +}; + +const Footer = ({ darkMode, switchDarkMode }) => { + return ( +
+
+
+ +
+
+
+ ); +}; + +ViewerNavigation.BurgerMenu = MobileNavigationMenu; +ViewerNavigation.Header = ViewerHeader; +ViewerNavigation.Footer = Footer; diff --git a/frontend/src/Editor/WidgetManager/components.js b/frontend/src/Editor/WidgetManager/components.js index 82c802330d..d7aa4442f0 100644 --- a/frontend/src/Editor/WidgetManager/components.js +++ b/frontend/src/Editor/WidgetManager/components.js @@ -16,6 +16,9 @@ const universalProps = { others: {}, events: [], styles: {}, + generalStyles: { + boxShadow: { value: '0px 0px 0px 0px #00000040' }, + }, }, }; diff --git a/frontend/src/_components/DarkModeToggle.jsx b/frontend/src/_components/DarkModeToggle.jsx index bc499cef38..b3959f8233 100644 --- a/frontend/src/_components/DarkModeToggle.jsx +++ b/frontend/src/_components/DarkModeToggle.jsx @@ -8,6 +8,7 @@ export const DarkModeToggle = function DarkModeToggle({ darkMode = false, switchDarkMode, tooltipPlacement = 'bottom', + showText = false, }) { const toggleDarkMode = () => { switchDarkMode(!darkMode); @@ -58,46 +59,51 @@ export const DarkModeToggle = function DarkModeToggle({ } > - - - - - +
+ + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + {showText && ( + Switch to {!darkMode ? 'dark mode' : 'light mode'} + )} +
); }; diff --git a/frontend/src/_components/SortableList/SortableList.jsx b/frontend/src/_components/SortableList/SortableList.jsx new file mode 100644 index 0000000000..63f44ce21a --- /dev/null +++ b/frontend/src/_components/SortableList/SortableList.jsx @@ -0,0 +1,48 @@ +import React, { useMemo, useState } from 'react'; + +import { DndContext, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core'; + +import { SortableContext, arrayMove, sortableKeyboardCoordinates } from '@dnd-kit/sortable'; + +import { SortableItem, SortableOverlay } from './components'; + +export function SortableList({ items, onChange, renderItem }) { + const [active, setActive] = useState(null); + const activeItem = useMemo(() => items.find((item) => item.id === active?.id), [active, items]); + const sensors = useSensors( + useSensor(PointerSensor), + useSensor(KeyboardSensor, { + coordinateGetter: sortableKeyboardCoordinates, + }) + ); + + return ( + { + setActive(active); + }} + onDragEnd={({ active, over }) => { + if (over && active.id !== over?.id) { + const activeIndex = items.findIndex(({ id }) => id === active.id); + const overIndex = items.findIndex(({ id }) => id === over.id); + + onChange(arrayMove(items, activeIndex, overIndex)); + } + setActive(null); + }} + onDragCancel={() => { + setActive(null); + }} + > + + {items.map((item) => ( + {renderItem(item)} + ))} + + {activeItem ? renderItem(activeItem) : null} + + ); +} + +SortableList.Item = SortableItem; diff --git a/frontend/src/_components/SortableList/components/SortableItem.jsx b/frontend/src/_components/SortableList/components/SortableItem.jsx new file mode 100644 index 0000000000..07789c46aa --- /dev/null +++ b/frontend/src/_components/SortableList/components/SortableItem.jsx @@ -0,0 +1,53 @@ +import React, { createContext, useContext, useMemo } from 'react'; + +import { useSortable } from '@dnd-kit/sortable'; +import { CSS } from '@dnd-kit/utilities'; + +const SortableItemContext = createContext({ + attributes: {}, + listeners: undefined, + ref() {}, +}); + +export function SortableItem({ children, id, classNames }) { + const { attributes, isDragging, listeners, setNodeRef, setActivatorNodeRef, transform, transition } = useSortable({ + id, + }); + const context = useMemo( + () => ({ + attributes, + listeners, + ref: setActivatorNodeRef, + }), + [attributes, listeners, setActivatorNodeRef] + ); + const style = { + opacity: isDragging ? 0.4 : undefined, + transform: CSS.Translate.toString(transform), + transition, + }; + + return ( + +
+ {children} +
+
+ ); +} + +export function DragHandle({ show = true }) { + const { attributes, listeners, ref } = useContext(SortableItemContext); + + if (!show) { + return ; + } + + return ( + + ); +} diff --git a/frontend/src/_components/SortableList/components/SortableOverlay.jsx b/frontend/src/_components/SortableList/components/SortableOverlay.jsx new file mode 100644 index 0000000000..77b2bdcf71 --- /dev/null +++ b/frontend/src/_components/SortableList/components/SortableOverlay.jsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { DragOverlay, defaultDropAnimationSideEffects } from '@dnd-kit/core'; + +const dropAnimationConfig = { + sideEffects: defaultDropAnimationSideEffects({ + styles: { + active: { + opacity: '0.4', + }, + }, + }), +}; + +export function SortableOverlay({ children }) { + return {children}; +} diff --git a/frontend/src/_components/SortableList/components/index.js b/frontend/src/_components/SortableList/components/index.js new file mode 100644 index 0000000000..80b9dc0a52 --- /dev/null +++ b/frontend/src/_components/SortableList/components/index.js @@ -0,0 +1,4 @@ +import { SortableItem, DragHandle } from './SortableItem'; +import { SortableOverlay } from './SortableOverlay'; + +export { SortableItem, SortableOverlay, DragHandle }; diff --git a/frontend/src/_components/SortableList/index.js b/frontend/src/_components/SortableList/index.js new file mode 100644 index 0000000000..98b719403a --- /dev/null +++ b/frontend/src/_components/SortableList/index.js @@ -0,0 +1,47 @@ +import React from 'react'; +import { SortableList } from './SortableList'; +import { DragHandle } from './components'; + +const SortableComponent = ({ data, Element, ...restProps }) => { + const { onSort } = restProps; + + const [items, setItems] = React.useState([]); + + React.useEffect(() => { + setItems(data); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [JSON.stringify(data)]); + + //function to check if the item in items array has changed position with respect to the original data + const didItemChangePosition = (originalArr, sortedArry) => { + return originalArr.some((item, index) => { + return item.id !== sortedArry[index].id; + }); + }; + + React.useEffect(() => { + if (items.length > 0 && didItemChangePosition(data, items)) { + console.log('items changed ==>'); + onSort(items); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [items]); + + return ( +
+ ( + + + + )} + /> +
+ ); +}; + +SortableComponent.DragHandle = DragHandle; + +export default SortableComponent; diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index ce39a99ca2..3e9b1f8f65 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -110,6 +110,7 @@ async function exceutePycode(payload, code, currentState, query, mode) { variables = currentState['variables'] client = currentState['client'] server = currentState['server'] + page = currentState['page'] code_to_execute = ${_code} try: @@ -186,7 +187,7 @@ export async function runTransformation( if (transformationLanguage === 'javascript') { try { const evalFunction = Function( - ['data', 'moment', '_', 'components', 'queries', 'globals', 'variables'], + ['data', 'moment', '_', 'components', 'queries', 'globals', 'variables', 'page'], transformation ); @@ -197,7 +198,8 @@ export async function runTransformation( currentState.components, currentState.queries, currentState.globals, - currentState.variables + currentState.variables, + currentState.page ); } catch (err) { console.log('Transformation failed for query: ', query.name, err); @@ -212,7 +214,7 @@ export async function runTransformation( } export async function executeActionsForEventId(_ref, eventId, component, mode, customVariables) { - const events = component.definition.events || []; + const events = component?.definition?.events || []; const filteredEvents = events.filter((event) => event.eventId === eventId); for (const event of filteredEvents) { @@ -251,7 +253,7 @@ function showModal(_ref, modal, show) { return Promise.resolve(); } - const modalMeta = _ref.state.appDefinition.components[modalId]; + const modalMeta = _ref.state.appDefinition.pages[_ref.state.currentPageId].components[modalId]; const newState = { currentState: { ..._ref.state.currentState, @@ -422,6 +424,37 @@ export const executeAction = (_ref, event, mode, customVariables) => { }); } + case 'set-page-variable': { + const key = resolveReferences(event.key, _ref.state.currentState, undefined, customVariables); + const value = resolveReferences(event.value, _ref.state.currentState, undefined, customVariables); + const customPageVariables = { ..._ref.state.currentState.page.variables, [key]: value }; + + return _ref.setState({ + currentState: { + ..._ref.state.currentState, + page: { + ..._ref.state.currentState.page, + variables: customPageVariables, + }, + }, + }); + } + + case 'unset-page-variable': { + const key = resolveReferences(event.key, _ref.state.currentState, undefined, customVariables); + const customPageVariables = _.omit(_ref.state.currentState.page.variables, key); + + return _ref.setState({ + currentState: { + ..._ref.state.currentState, + page: { + ..._ref.state.currentState.page, + variables: customPageVariables, + }, + }, + }); + } + case 'control-component': { const component = Object.values(_ref.state.currentState?.components ?? {}).filter( (component) => component.id === event.componentId @@ -434,6 +467,14 @@ export const executeAction = (_ref, event, mode, customVariables) => { const actionPromise = action(...actionArguments.map((argument) => argument.value)); return actionPromise ?? Promise.resolve(); } + + case 'switch-page': { + _ref.switchPage( + event.pageId, + resolveReferences(event.queryParams, _ref.state.currentState, [], customVariables) + ); + return Promise.resolve(); + } } } }; @@ -444,6 +485,10 @@ export async function onEvent(_ref, eventName, options, mode = 'edit') { const { customVariables } = options; + if (eventName === 'onPageLoad') { + await executeActionsForEventId(_ref, 'onPageLoad', { definition: { events: [options] } }, mode, customVariables); + } + if (eventName === 'onTrigger') { const { component, queryId, queryName } = options; _self.setState( @@ -1042,7 +1087,9 @@ export const debuggerActions = { key, type: value.type, kind: errorType !== 'transformations' ? value.kind : 'transformations', + page: value.page, timestamp: moment(), + strace: value.strace ?? 'app_level', }; switch (errorType) { @@ -1097,19 +1144,22 @@ export const getComponentName = (currentState, id) => { } }; -const updateNewComponents = (appDefinition, newComponents, updateAppDefinition) => { +const updateNewComponents = (pageId, appDefinition, newComponents, updateAppDefinition) => { const newAppDefinition = JSON.parse(JSON.stringify(appDefinition)); newComponents.forEach((newComponent) => { - newComponent.component.name = computeComponentName(newComponent.component.component, newAppDefinition.components); - newAppDefinition.components[newComponent.id] = newComponent; + newComponent.component.name = computeComponentName( + newComponent.component.component, + newAppDefinition.pages[pageId].components + ); + newAppDefinition.pages[pageId].components[newComponent.id] = newComponent; }); updateAppDefinition(newAppDefinition); }; export const cloneComponents = (_ref, updateAppDefinition, isCloning = true, isCut = false) => { - const { selectedComponents, appDefinition } = _ref.state; + const { selectedComponents, appDefinition, currentPageId } = _ref.state; if (selectedComponents.length < 1) return getSelectedText(); - const { components: allComponents } = appDefinition; + const { components: allComponents } = appDefinition.pages[currentPageId]; let newDefinition = _.cloneDeep(appDefinition); let newComponents = [], newComponentObj = {}, @@ -1135,11 +1185,11 @@ export const cloneComponents = (_ref, updateAppDefinition, isCloning = true, isC }; } if (isCloning) { - addComponents(appDefinition, updateAppDefinition, undefined, newComponentObj); + addComponents(currentPageId, appDefinition, updateAppDefinition, undefined, newComponentObj); toast.success('Component cloned succesfully'); } else if (isCut) { navigator.clipboard.writeText(JSON.stringify(newComponentObj)); - removeSelectedComponent(newDefinition, selectedComponents); + removeSelectedComponent(currentPageId, newDefinition, selectedComponents); updateAppDefinition(newDefinition); } else { navigator.clipboard.writeText(JSON.stringify(newComponentObj)); @@ -1205,14 +1255,15 @@ const updateComponentLayout = (components, parentId, isCut = false) => { }); }; -export const addComponents = (appDefinition, appDefinitionChanged, parentId = undefined, newComponentObj) => { +export const addComponents = (pageId, appDefinition, appDefinitionChanged, parentId = undefined, newComponentObj) => { + console.log({ pageId, newComponentObj }); const finalComponents = []; let parentComponent = undefined; const { isCloning, isCut, newComponents: pastedComponent = [] } = newComponentObj; if (parentId) { - const id = Object.keys(appDefinition.components).filter((key) => parentId.startsWith(key)); - parentComponent = JSON.parse(JSON.stringify(appDefinition.components[id[0]])); + const id = Object.keys(appDefinition.pages[pageId].components).filter((key) => parentId.startsWith(key)); + parentComponent = JSON.parse(JSON.stringify(appDefinition.pages[pageId].components[id[0]])); parentComponent.id = parentId; } @@ -1247,7 +1298,7 @@ export const addComponents = (appDefinition, appDefinitionChanged, parentId = un buildComponents(pastedComponent, parentComponent, true); - updateNewComponents(appDefinition, finalComponents, appDefinitionChanged); + updateNewComponents(pageId, appDefinition, finalComponents, appDefinitionChanged); !isCloning && toast.success('Component pasted succesfully'); }; @@ -1340,25 +1391,25 @@ export function snapToGrid(canvasWidth, x, y) { const snappedY = Math.round(y / 10) * 10; return [snappedX, snappedY]; } -export const removeSelectedComponent = (newDefinition, selectedComponents) => { +export const removeSelectedComponent = (pageId, newDefinition, selectedComponents) => { selectedComponents.forEach((component) => { let childComponents = []; - if (newDefinition.components[component.id]?.component?.component === 'Tabs') { - childComponents = Object.keys(newDefinition.components).filter((key) => - newDefinition.components[key].parent?.startsWith(component.id) + if (newDefinition.pages[pageId].components[component.id]?.component?.component === 'Tabs') { + childComponents = Object.keys(newDefinition.pages[pageId].components).filter((key) => + newDefinition.pages[pageId].components[key].parent?.startsWith(component.id) ); } else { - childComponents = Object.keys(newDefinition.components).filter( - (key) => newDefinition.components[key].parent === component.id + childComponents = Object.keys(newDefinition.pages[pageId].components).filter( + (key) => newDefinition.pages[pageId].components[key].parent === component.id ); } childComponents.forEach((componentId) => { - delete newDefinition.components[componentId]; + delete newDefinition.pages[pageId].components[componentId]; }); - delete newDefinition.components[component.id]; + delete newDefinition.pages[pageId].components[component.id]; }); }; diff --git a/frontend/src/_helpers/utils.js b/frontend/src/_helpers/utils.js index a190f3b358..06ab2e6cce 100644 --- a/frontend/src/_helpers/utils.js +++ b/frontend/src/_helpers/utils.js @@ -56,6 +56,7 @@ function resolveCode(code, state, customObjects = {}, withError = false, reserve 'components', 'queries', 'globals', + 'page', 'client', 'server', 'moment', @@ -70,6 +71,7 @@ function resolveCode(code, state, customObjects = {}, withError = false, reserve isJsCode ? state?.components : undefined, isJsCode ? state?.queries : undefined, isJsCode ? state?.globals : undefined, + isJsCode ? state?.page : undefined, isJsCode ? undefined : state?.client, isJsCode ? undefined : state?.server, moment, @@ -470,6 +472,7 @@ export async function executeMultilineJS( 'components', 'queries', 'globals', + 'page', 'axios', 'variables', 'actions', @@ -483,6 +486,7 @@ export async function executeMultilineJS( currentState.components, currentState.queries, currentState.globals, + currentState.page, axios, currentState.variables, actions diff --git a/frontend/src/_services/comments.service.js b/frontend/src/_services/comments.service.js index 94f31d94a2..d774d49322 100644 --- a/frontend/src/_services/comments.service.js +++ b/frontend/src/_services/comments.service.js @@ -36,8 +36,10 @@ function deleteComment(commentId) { return adapter.delete(`/comments/${commentId}`); } -function getNotifications(appId, isResolved, appVersionsId) { - return adapter.get(`/comments/${appId}/notifications?isResolved=${isResolved}&appVersionsId=${appVersionsId}`); +function getNotifications(appId, isResolved, appVersionsId, pageId) { + return adapter.get( + `/comments/${appId}/notifications?isResolved=${isResolved}&appVersionsId=${appVersionsId}&pageId=${pageId}` + ); } export const commentsService = { diff --git a/frontend/src/_styles/components.scss b/frontend/src/_styles/components.scss new file mode 100644 index 0000000000..56ce3c2709 --- /dev/null +++ b/frontend/src/_styles/components.scss @@ -0,0 +1,298 @@ +$base-border-radius: 6px; +$btn-bg: #FFFFFF; +$btn-color: #11181C; + +$btn-dark-bg: #121212; +$btn-dark-color: #FFFFFF; + + + +@mixin button($bg, $color) { + background-color: $bg; + color: $color; + border-radius: $base-border-radius; + border: none; + font-weight: 500; + cursor: pointer; + transition: all 0.3s ease-in-out; + &:hover { + @if $bg != none { + background-color: darken($bg, 10%); + } + } +} + + +.base-button { + @include button($btn-bg, $btn-color); + border-radius: $base-border-radius; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 4px 16px; + border: 1px solid #D7DBDF; +} + +.base-button.dark { + background: $btn-dark-bg; + color: $btn-dark-color; + border-color: #11181C; + + &:hover { + background: lighten($btn-dark-bg, 10%); + } + + img { + filter: brightness(0) invert(1); + } +} + +.unstyled-button { + @include button(none, inherit); + border: none; + font-size: 12px; + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + line-height: 20px; +} + + +.page-handle-button-container { + border-radius: $base-border-radius; + display: flex; + flex-direction: row; + justify-content: left; + align-items: center; + padding: 6px 8px; + border: 1px solid #D7DBDF; + height: 32px; + + img { + position: absolute; + right: 0 !important; + margin-right: 1.5rem !important; + filter: invert(38%) sepia(85%) saturate(5221%) hue-rotate(217deg) brightness(91%) contrast(90%); + } +} + +.popover-dark-themed .page-handle-button-container { + border-color: #697177; + img { + filter: invert(95%) sepia(38%) saturate(4716%) hue-rotate(180deg) brightness(113%) contrast(102%); + } +} + +.leftsidebar-panel-header { + height: 100%; + background-color: #F1F3F5; + + .panel-header-container { + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 16px; + height: 52px; + border-bottom: 1px solid #E6E8EB; + + .add-new-page { + margin-left: 4px; + } + + } + .panel-search-container { + padding: 8px 12px; + border-bottom: 1px solid #E6E8EB; + } + } + +.leftsidebar-panel-header.dark { + // background-color: #202425; + background-color: #1F2936; + .panel-header-container, .panel-search-container { + border-color: #697177; + } +} + +.page-selector-panel-body { + height: 100%; + padding: 12px; + background-color: #FFFFFF; + + .page-handler { + height: 32px !important; + padding: 0; + margin-bottom: 6px; + font-weight: 500; + + .card, .card-body { + padding: 3px; + height: 32px; + } + + .card.active { + background: #ECEEF0; + } + + .card.non-active-page { + border: none; + box-shadow: none; + } + + .card:hover { + background: #E6EDFE !important; + } + + .page-name-input { + height: 32px; + } + } +} + +.page-selector-panel-body.dark { + background: #1F2936; + + .page-handler { + .card { + background: none !important + } + .card.active { + background: #26292B !important; + } + .card:hover{ + background: #2C3547 !important; + } + } +} + +.left-sidebar-page-selector.dark { + background: #1F2936 !important; + + .clear-icon { + filter: invert(100%); + } +} + +#page-handler-menu.global-settings { + min-height: 124px; + padding: 6px; +} + +#page-handler-menu { + border-radius: 4px; + width: 238px; + margin-top: 0.2rem !important; + margin-left: 0.5rem !important; + box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.25); + + .popover-body { + padding: 16px 6px 0px 6px; + height: 100%; + + .card-body { + padding: 0; + height: 100%; + } + + .field { + font-weight: 500; + font-size: 0.7rem; + + &:hover { + color:#919eab; + } + + &__danger { + color: #ff6666; + } + } + } +} + +.page-icons { + position: relative; + left: 1rem; +} + +.page-handler-alert { + background-color: #fff5f0!important; + border: 1px solid #FFF1E7!important; +} + +.page-handle-edit-container { + height: 60px; + width: 100%; + + .input-group { + height: 42px; + padding: 2px; + } + + .input-group-text { + border: none; + background: none; + font-weight: 400; + font-size: 14px; + line-height: 20px; + padding-right: 4px; + } + + .page-handler-input { + border-radius: $base-border-radius !important; + } +} + +.page-handle-edit-modal.theme-dark { + background: none !important; + + .input-group-text { + border: none !important; + background: none!important; ; + } +} + + +.page-handle-tip { + text-decoration: none!important; +} + +.delete-btn.field__danger { + img { + filter: invert(37%) sepia(50%) saturate(2105%) hue-rotate(342deg) brightness(93%) contrast(93%); + } +} + +.clear-icon { + margin-top: 6px; +} + +.secondary-text { + color: #687076; +} + + +.DragHandle { + display: flex; + width: 12px; + padding: 3px; + align-items: center; + justify-content: center; + flex: 0 0 auto; + touch-action: none; + cursor: grab !important; + border-radius: 5px; + border: none; + outline: none; + appearance: none; + background-color: transparent; + -webkit-tap-highlight-color: transparent; +} + +.DragHandle svg { + flex: 0 0 auto; + margin: auto; + height: 100%; + overflow: visible; + fill: #919eab; +} \ No newline at end of file diff --git a/frontend/src/_styles/custom.scss b/frontend/src/_styles/custom.scss index 96bfe2c93c..f670d6841d 100644 --- a/frontend/src/_styles/custom.scss +++ b/frontend/src/_styles/custom.scss @@ -68,9 +68,14 @@ div[data-disabled='true'] { } } +.switch-page { + .css-1nfapid-container{ + width: 100%; + } +} .loader-main-container{ width: 0px !important; position: absolute; bottom: 44%; left: 46%; -} \ No newline at end of file +} diff --git a/frontend/src/_styles/left-sidebar.scss b/frontend/src/_styles/left-sidebar.scss index e375977eb4..b25e752f93 100644 --- a/frontend/src/_styles/left-sidebar.scss +++ b/frontend/src/_styles/left-sidebar.scss @@ -38,7 +38,7 @@ max-height: 60%; } .datasources-popover { - top: 100px; + top: 200px; width: 200px; .add-btn { border: none; @@ -46,7 +46,7 @@ } } .debugger-popover { - top: 180px; + top: 270px; cursor: pointer; } .global-settings-popover { @@ -349,7 +349,6 @@ display: block; position: absolute; left: 0; - margin-right: 0.5rem; } .clear-icon { @@ -361,6 +360,12 @@ } } +.panel-search-container { + .search-icon { + margin: 0.4rem !important; + } +} + .link-span { text-decoration: none; text-decoration: underline; @@ -398,3 +403,64 @@ left: 0; } } + +.page-handler-wrapper { + background: transparent; +} + + +.viewer-page-handler { + height: 32px; + padding: 0; + // max-width: 185px; + + .card { + background: none; + border: none; + box-shadow: none; + } + .card,.card-body { + padding: 3px; + height: 32px; + } + + .card.active { + background: #fff; + } +} + +.viewer-page-handler.dark { + .card.active { + background: #2c405c; + } +} + +.theme-dark .viewer-page-handler .card { + background: transparent; +} + +.mobile-header { + width: 100%; +} + +.bm-item .pages-container { + width: 100% !important; + padding: 1rem 2rem; + + .card.active { + width: inherit; + background-color: #ECEEF0; + color: #3e525b; + } +} + +.bm-item .pages-container.dark { + .card.active { + background-color: #2c405c; + color: #fff; + } +} + +.viewer-footer { + height: 48px; +} \ No newline at end of file diff --git a/frontend/src/_styles/theme.scss b/frontend/src/_styles/theme.scss index 8d70ca7658..9c0a0a0751 100644 --- a/frontend/src/_styles/theme.scss +++ b/frontend/src/_styles/theme.scss @@ -2,6 +2,7 @@ @import "./colors.scss"; @import "./z-index.scss"; @import "./mixins.scss"; +@import "./components.scss"; // variables $border-radius: 4px; @@ -360,6 +361,13 @@ button { padding: 1rem 0rem 1rem 1rem; } } + + .left-sidebar-page-selector { + .add-new-page-button-container{ + width: 100%; + margin-top: 10px; + } + } } .editor-sidebar { @@ -560,7 +568,7 @@ button { } .query-pane { - z-index: 1; + z-index: 10; height: 350px; position: fixed; left: 76px; //sidebar is 76px @@ -769,6 +777,29 @@ button { background-size: 80px 80px; background-repeat: repeat; } + + .navigation-area { + background-color: #ECEEF0; + padding: 1rem; + a.page-link { + border-radius: 0; + border: 0; + } + + a.page-link:hover { + color: white; + background-color: #4D72FA ; + } + + a.page-link.active { + color: white; + background-color: #4D72FA ; + } + } + + .navigation-area.dark { + background-color: #2b3546 !important; + } } } } @@ -3034,7 +3065,7 @@ input:focus-visible { } .card { - background-color: #324156 !important; + background-color: #324156; } .card .table tbody td a { @@ -3076,6 +3107,25 @@ input:focus-visible { background-color: #2f3c4c; } + .main .navigation-area { + background-color: #2f3c4c !important; + a.page-link { + border-radius: 0; + border: 0; + color: white; + } + + a.page-link:hover { + color: white; + background-color: #4D72FA ; + } + + a.page-link.active { + color: white; + background-color: #4D72FA ; + } + } + .rdtOpen .rdtPicker { color: black; } @@ -3180,6 +3230,23 @@ input:focus-visible { .text-muted { color: #fff !important; } + + .left-sidebar-page-selector { + .list-group { + .list-group-item { + border: solid #1d2a39 1px; + color: white; + } + + .list-group-item:hover { + background-color: #1F2936; + } + + .list-group-item.active { + background-color: #1F2936; + } + } + } } .folder-list { @@ -4402,9 +4469,14 @@ input[type="text"] { .searchbox-wrapper { margin-top: 0 !important; + + .search-icon { + margin: 0.30rem + } input { border-radius: $border-radius !important; + padding-left: 1.75rem !important; } } @@ -4904,7 +4976,7 @@ input[type="text"] { // **Alert component** .alert-component { - border: 1px solid rgba(101, 109, 119, 0.16) !important; + border: 1px solid rgba(101, 109, 119, 0.16); background: #f5f7f9; a { @@ -5866,6 +5938,10 @@ div#driver-page-overlay { cursor: text; } +.cursor-not-allowed { + cursor: none; +} + .bade-component { display: inline-flex; justify-content: center; @@ -6930,9 +7006,33 @@ tbody { .page-body { height: calc(100vh - 1.25rem - 48px); - min-height: 500px; + min-height : 500px; +} + +.theme-dark{ + .org-avatar:hover{ + .avatar{ + background: #10141A no-repeat center/cover ; + } + } + } +.dark-theme-toggle-btn { + height: 32px; + display: flex; + align-items: center; + justify-content: center; + +} +.dark-theme-toggle-btn-text { + font-size: 14px; + margin: 12px; +} + +.maximum-canvas-height-input-field { + width: 90px; +} //ONBOARD START---------------------------->>>>> .onboarding-page-wrapper { @@ -8179,4 +8279,4 @@ tbody { } -//ONBOARD STYLES END---------------------------->>>>> \ No newline at end of file +//ONBOARD STYLES END---------------------------->>>>> diff --git a/frontend/src/_ui/LeftSidebar/Button.jsx b/frontend/src/_ui/LeftSidebar/Button.jsx new file mode 100644 index 0000000000..ca38fc2bbe --- /dev/null +++ b/frontend/src/_ui/LeftSidebar/Button.jsx @@ -0,0 +1,63 @@ +import React from 'react'; + +const defaultDisabledStyles = { + color: '#C1C8CD', + cursor: 'not-allowed', + pointerEvents: 'none', +}; + +const Button = ({ + children, + onClick, + darkMode, + size = 'sm', + classNames = '', + styles = {}, + disabled = false, + isLoading = false, +}) => { + const baseHeight = size === 'sm' ? 28 : 40; + const baseWidth = size === 'sm' ? 92 : 150; + + const diabledStyles = { + ...defaultDisabledStyles, + backgroundColor: '#F1F3F5', + }; + + return ( +
+ {!isLoading && children} +
+ ); +}; + +const Content = ({ title = null, iconSrc = null, direction = 'left' }) => { + const icon = !iconSrc ? '' : ; + const btnTitle = !title ? '' : typeof title === 'function' ? title() : {title}; + const content = direction === 'left' ? [icon, btnTitle] : [btnTitle, icon]; + + return content; +}; + +const UnstyledButton = ({ children, onClick, classNames = '', styles = {}, disabled = false }) => { + return ( +
+ {children} +
+ ); +}; + +Button.Content = Content; +Button.UnstyledButton = UnstyledButton; + +export default Button; diff --git a/frontend/src/_ui/LeftSidebar/Header.jsx b/frontend/src/_ui/LeftSidebar/Header.jsx new file mode 100644 index 0000000000..feabdecaf3 --- /dev/null +++ b/frontend/src/_ui/LeftSidebar/Header.jsx @@ -0,0 +1,35 @@ +import React from 'react'; +import { SearchBoxComponent } from '@/_ui/Search'; + +const Header = ({ children, darkMode }) => { + return
{children}
; +}; + +const PanelHeader = ({ children, title }) => { + return ( +
+
+

{title}

+
+
{children}
+
+ ); +}; + +const SearchContainer = ({ onChange, placeholder, placeholderIcon, callBack = null }) => { + return ( +
+ +
+ ); +}; + +Header.PanelHeader = PanelHeader; +Header.SearchBoxComponent = SearchContainer; + +export default Header; diff --git a/frontend/src/_ui/LeftSidebar/index.js b/frontend/src/_ui/LeftSidebar/index.js new file mode 100644 index 0000000000..222a59ea49 --- /dev/null +++ b/frontend/src/_ui/LeftSidebar/index.js @@ -0,0 +1,4 @@ +import Button from './Button'; +import HeaderSection from './Header'; + +export { Button, HeaderSection }; diff --git a/frontend/src/_ui/Search/Search.jsx b/frontend/src/_ui/Search/Search.jsx index c9d7b0da3b..c6779db096 100644 --- a/frontend/src/_ui/Search/Search.jsx +++ b/frontend/src/_ui/Search/Search.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; export const SearchBox = ({ onChange, ...restProps }) => { - const { callback, placeholder } = restProps; + const { callback, placeholder, placeholderIcon = null } = restProps; const [searchText, setSearchText] = React.useState(''); const { t } = useTranslation(); @@ -32,45 +32,43 @@ export const SearchBox = ({ onChange, ...restProps }) => {
{searchText.length === 0 && ( - - - - - + + + )} {searchText.length > 0 && ( - - - - - + + + + )} + + {placeholderIcon && searchText.length === 0 && ( + // custom placeholder icon + + {placeholderIcon} + + )} + {typeof callback === 'function' && searchText.length === 0 && ( { + const entityManager = queryRunner.manager; + const appVersions = await entityManager.find(AppVersion); + for (const version of appVersions) { + const definition = version['definition']; + + if (definition) { + const newDefinition = convertAppDefinitionFromSinglePageToMultiPage(definition); + version.definition = newDefinition; + await entityManager.update(AppVersion, { id: version.id }, { definition: newDefinition }); + } + } + } + + public async down(queryRunner: QueryRunner): Promise { + const entityManager = queryRunner.manager; + const appVersions = await entityManager.find(AppVersion); + for (const version of appVersions) { + const definition = version['definition']; + + if (definition) { + const newDefinition = convertAppDefinitionFromMultiPageToSinglePage(definition); + version.definition = newDefinition; + await entityManager.update(AppVersion, { id: version.id }, { definition: newDefinition }); + } + } + } +} diff --git a/server/data-migrations/1669293520796-ConnectExistingCommentThreadsToPageIds.ts b/server/data-migrations/1669293520796-ConnectExistingCommentThreadsToPageIds.ts new file mode 100644 index 0000000000..709553a337 --- /dev/null +++ b/server/data-migrations/1669293520796-ConnectExistingCommentThreadsToPageIds.ts @@ -0,0 +1,22 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; +import { Thread } from '../src/entities/thread.entity'; +import { AppVersion } from '../src/entities/app_version.entity'; + +export class ConnectExistingCommentThreadsToPageIds1669293520796 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + const entityManager = queryRunner.manager; + const threads = await entityManager.find(Thread); + for (const thread of threads) { + const appVersion = await entityManager.findOne(AppVersion, { + where: { + id: thread.appVersionsId, + }, + }); + if (appVersion?.definition) { + const pageId = Object.keys(appVersion.definition.pages)?.[0]; + await entityManager.update(Thread, { id: thread.id }, { pageId }); + } + } + } + public async down(queryRunner: QueryRunner): Promise {} +} diff --git a/server/lib/single-page-to-and-from-multipage-definition-conversion.ts b/server/lib/single-page-to-and-from-multipage-definition-conversion.ts new file mode 100644 index 0000000000..e7d5678858 --- /dev/null +++ b/server/lib/single-page-to-and-from-multipage-definition-conversion.ts @@ -0,0 +1,33 @@ +import { cloneDeep, omit } from 'lodash'; +import { v4 as uuid } from 'uuid'; + +export function convertAppDefinitionFromSinglePageToMultiPage(appDefinition: any) { + const components = cloneDeep(appDefinition.components); + const newPageId = uuid(); + const handle = 'home'; + const name = 'Home'; + const newAppDefinition = omit( + { + ...appDefinition, + homePageId: newPageId, + pages: { + [newPageId]: { name, handle, components }, + }, + showViewerNavigation: false, + }, + ['components'] + ); + return newAppDefinition; +} + +export function convertAppDefinitionFromMultiPageToSinglePage(appDefinition: any) { + const components = cloneDeep(Object.values(appDefinition?.pages ?? {})?.[0]?.['components'] ?? {}); + const newAppDefinition = omit( + { + ...appDefinition, + components, + }, + ['pages'] + ); + return newAppDefinition; +} diff --git a/server/migrations/1669280005881-AddPageIdToThreads.ts b/server/migrations/1669280005881-AddPageIdToThreads.ts new file mode 100644 index 0000000000..18f577041c --- /dev/null +++ b/server/migrations/1669280005881-AddPageIdToThreads.ts @@ -0,0 +1,18 @@ +import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm'; + +export class AddPageIdToThreads1669280005881 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.addColumn( + 'threads', + new TableColumn({ + name: 'page_id', + type: 'varchar', + isNullable: true, + }) + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.dropColumn('threads', 'page_id'); + } +} diff --git a/server/package-lock.json b/server/package-lock.json index e56d7c7406..5a1f067036 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -37,6 +37,7 @@ "joi": "^17.4.1", "js-base64": "^3.7.2", "jszip": "^3.10.1", + "lodash": "^4.17.21", "module-from-string": "^3.3.0", "nestjs-pino": "^1.4.0", "nodemailer": "^6.6.3", diff --git a/server/package.json b/server/package.json index 0a1f35c547..d243c76e26 100644 --- a/server/package.json +++ b/server/package.json @@ -63,6 +63,7 @@ "joi": "^17.4.1", "js-base64": "^3.7.2", "jszip": "^3.10.1", + "lodash": "^4.17.21", "module-from-string": "^3.3.0", "nestjs-pino": "^1.4.0", "nodemailer": "^6.6.3", diff --git a/server/src/controllers/comment.controller.ts b/server/src/controllers/comment.controller.ts index ab8fdb8595..218049d1a3 100644 --- a/server/src/controllers/comment.controller.ts +++ b/server/src/controllers/comment.controller.ts @@ -62,7 +62,13 @@ export class CommentController { if (!ability.can('fetchComments', Comment)) { throw new ForbiddenException('You do not have permissions to perform this action'); } - const comments = await this.commentService.getNotifications(appId, user.id, query.isResolved, query.appVersionsId); + const comments = await this.commentService.getNotifications( + appId, + user.id, + query.isResolved, + query.appVersionsId, + query.pageId + ); return comments; } diff --git a/server/src/dto/thread.dto.ts b/server/src/dto/thread.dto.ts index 5e8d8124d2..a08618042f 100644 --- a/server/src/dto/thread.dto.ts +++ b/server/src/dto/thread.dto.ts @@ -21,6 +21,10 @@ export class CreateThreadDto { @IsBoolean() @IsOptional() isResolved: boolean; + + @IsUUID() + @IsOptional() + pageId: string; } export class UpdateThreadDto extends PartialType(CreateThreadDto) {} diff --git a/server/src/entities/thread.entity.ts b/server/src/entities/thread.entity.ts index 1bb053e545..fd29952f30 100644 --- a/server/src/entities/thread.entity.ts +++ b/server/src/entities/thread.entity.ts @@ -30,6 +30,9 @@ export class Thread extends BaseEntity { @Column({ default: false, name: 'is_resolved' }) isResolved: boolean; + @Column({ name: 'page_id' }) + pageId: string; + @ManyToOne(() => User, (user) => user.id) @JoinColumn({ name: 'user_id' }) user: User; diff --git a/server/src/repositories/thread.repository.ts b/server/src/repositories/thread.repository.ts index 3bdbb35b24..a2f76e8ee1 100644 --- a/server/src/repositories/thread.repository.ts +++ b/server/src/repositories/thread.repository.ts @@ -5,7 +5,7 @@ import { CreateThreadDto, UpdateThreadDto } from '../dto/thread.dto'; @EntityRepository(Thread) export class ThreadRepository extends Repository { public async createThread(createThreadDto: CreateThreadDto, userId: string, organizationId: string): Promise { - const { x, y, appId, appVersionsId } = createThreadDto; + const { x, y, appId, appVersionsId, pageId } = createThreadDto; const thread = new Thread(); thread.x = x; @@ -14,6 +14,7 @@ export class ThreadRepository extends Repository { thread.userId = userId; thread.organizationId = organizationId; thread.appVersionsId = appVersionsId; + thread.pageId = pageId; return await thread.save(); } diff --git a/server/src/services/app_import_export.service.ts b/server/src/services/app_import_export.service.ts index 2820dda0b8..929201b36b 100644 --- a/server/src/services/app_import_export.service.ts +++ b/server/src/services/app_import_export.service.ts @@ -10,6 +10,7 @@ import { AppGroupPermission } from 'src/entities/app_group_permission.entity'; import { DataSourcesService } from './data_sources.service'; import { dbTransactionWrap } from 'src/helpers/utils.helper'; import { isEmpty } from 'lodash'; +import { convertAppDefinitionFromSinglePageToMultiPage } from '../../lib/single-page-to-and-from-multipage-definition-conversion'; @Injectable() export class AppImportExportService { @@ -59,6 +60,9 @@ export class AppImportExportService { appToExport['dataQueries'] = await queryDataQueries.getMany(); appToExport['dataSources'] = await queryDataSources.getMany(); appToExport['appVersions'] = await queryAppVersions.getMany(); + appToExport['schemaDetails'] = { + multiPages: true, + }; return appToExport; } @@ -70,9 +74,13 @@ export class AppImportExportService { let importedApp: App; + const schemaUnifiedAppParams = appParams?.schemaDetails?.multiPages + ? appParams + : convertSinglePageSchemaToMultiPageSchema(appParams); + await dbTransactionWrap(async (manager) => { - importedApp = await this.createImportedAppForUser(manager, appParams, user); - await this.buildImportedAppAssociations(manager, importedApp, appParams); + importedApp = await this.createImportedAppForUser(manager, schemaUnifiedAppParams, user); + await this.buildImportedAppAssociations(manager, importedApp, schemaUnifiedAppParams); await this.createAdminGroupPermissions(manager, importedApp); }); @@ -255,51 +263,66 @@ export class AppImportExportService { } replaceDataQueryIdWithinDefinitions(definition, dataQueryMapping) { - if (definition?.components) { - for (const id of Object.keys(definition.components)) { - const component = definition.components[id].component; + if (definition?.pages) { + for (const pageId of Object.keys(definition?.pages)) { + if (definition.pages[pageId].components) { + for (const id of Object.keys(definition.pages[pageId].components)) { + const component = definition.pages[pageId].components[id].component; - if (component?.definition?.events) { - const replacedComponentEvents = component.definition.events.map((event) => { - if (event.queryId) { - event.queryId = dataQueryMapping[event.queryId]; - } - return event; - }); - component.definition.events = replacedComponentEvents; - } - - if (component?.definition?.properties?.actions?.value) { - for (const value of component.definition.properties.actions.value) { - if (value?.events) { - const replacedComponentActionEvents = value.events.map((event) => { + if (component?.definition?.events) { + const replacedComponentEvents = component.definition.events.map((event) => { if (event.queryId) { event.queryId = dataQueryMapping[event.queryId]; } return event; }); - value.events = replacedComponentActionEvents; + component.definition.events = replacedComponentEvents; } - } - } - if (component?.component === 'Table') { - for (const column of component?.definition?.properties?.columns?.value ?? []) { - if (column?.events) { - const replacedComponentActionEvents = column.events.map((event) => { - if (event.queryId) { - event.queryId = dataQueryMapping[event.queryId]; + if (component?.definition?.properties?.actions?.value) { + for (const value of component.definition.properties.actions.value) { + if (value?.events) { + const replacedComponentActionEvents = value.events.map((event) => { + if (event.queryId) { + event.queryId = dataQueryMapping[event.queryId]; + } + return event; + }); + value.events = replacedComponentActionEvents; } - return event; - }); - column.events = replacedComponentActionEvents; + } } + + if (component?.component === 'Table') { + for (const column of component?.definition?.properties?.columns?.value ?? []) { + if (column?.events) { + const replacedComponentActionEvents = column.events.map((event) => { + if (event.queryId) { + event.queryId = dataQueryMapping[event.queryId]; + } + return event; + }); + column.events = replacedComponentActionEvents; + } + } + } + + definition.pages[pageId].components[id].component = component; } } - - definition.components[id].component = component; } } return definition; } } + +function convertSinglePageSchemaToMultiPageSchema(appParams: any) { + const appParamsWithMultipageSchema = { + ...appParams, + appVersions: appParams.appVersions?.map((appVersion) => ({ + ...appVersion, + definition: convertAppDefinitionFromSinglePageToMultiPage(appVersion.definition), + })), + }; + return appParamsWithMultipageSchema; +} diff --git a/server/src/services/apps.service.ts b/server/src/services/apps.service.ts index ecd4c30cce..15a9232050 100644 --- a/server/src/services/apps.service.ts +++ b/server/src/services/apps.service.ts @@ -391,49 +391,53 @@ export class AppsService { } replaceDataQueryIdWithinDefinitions(definition, dataQueryMapping) { - if (definition?.components) { - for (const id of Object.keys(definition.components)) { - const component = definition.components[id].component; + if (definition?.pages) { + for (const pageId of Object.keys(definition?.pages)) { + if (definition.pages[pageId].components) { + for (const id of Object.keys(definition.pages[pageId].components)) { + const component = definition.pages[pageId].components[id].component; - if (component?.definition?.events) { - const replacedComponentEvents = component.definition.events.map((event) => { - if (event.queryId) { - event.queryId = dataQueryMapping[event.queryId]; - } - return event; - }); - component.definition.events = replacedComponentEvents; - } - - if (component?.definition?.properties?.actions?.value) { - for (const value of component.definition.properties.actions.value) { - if (value?.events) { - const replacedComponentActionEvents = value.events.map((event) => { + if (component?.definition?.events) { + const replacedComponentEvents = component.definition.events.map((event) => { if (event.queryId) { event.queryId = dataQueryMapping[event.queryId]; } return event; }); - value.events = replacedComponentActionEvents; + component.definition.events = replacedComponentEvents; } - } - } - if (component?.component === 'Table') { - for (const column of component?.definition?.properties?.columns?.value ?? []) { - if (column?.events) { - const replacedComponentActionEvents = column.events.map((event) => { - if (event.queryId) { - event.queryId = dataQueryMapping[event.queryId]; + if (component?.definition?.properties?.actions?.value) { + for (const value of component.definition.properties.actions.value) { + if (value?.events) { + const replacedComponentActionEvents = value.events.map((event) => { + if (event.queryId) { + event.queryId = dataQueryMapping[event.queryId]; + } + return event; + }); + value.events = replacedComponentActionEvents; } - return event; - }); - column.events = replacedComponentActionEvents; + } } + + if (component?.component === 'Table') { + for (const column of component?.definition?.properties?.columns?.value ?? []) { + if (column?.events) { + const replacedComponentActionEvents = column.events.map((event) => { + if (event.queryId) { + event.queryId = dataQueryMapping[event.queryId]; + } + return event; + }); + column.events = replacedComponentActionEvents; + } + } + } + + definition.pages[pageId].components[id].component = component; } } - - definition.components[id].component = component; } } return definition; diff --git a/server/src/services/comment.service.ts b/server/src/services/comment.service.ts index 3f3c237d0f..b842dd1bbb 100644 --- a/server/src/services/comment.service.ts +++ b/server/src/services/comment.service.ts @@ -93,7 +93,8 @@ export class CommentService { appId: string, userId: string, isResolved = false, - appVersionsId: string + appVersionsId: string, + pageId: string ): Promise { const comments = await createQueryBuilder(Comment, 'comment') .innerJoin('comment.user', 'user') @@ -103,6 +104,9 @@ export class CommentService { .andWhere('thread.appId = :appId', { appId, }) + .andWhere('thread.pageId = :pageId', { + pageId, + }) .andWhere('thread.isResolved = :isResolved', { isResolved, }) diff --git a/server/templates/customer-dashboard/definition.json b/server/templates/customer-dashboard/definition.json index 5158895f40..51df01c2d0 100644 --- a/server/templates/customer-dashboard/definition.json +++ b/server/templates/customer-dashboard/definition.json @@ -1,399 +1 @@ -{ - "id": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "name": "Customer Dashboard", - "slug": null, - "isPublic": false, - "organizationId": "7471c14a-c11a-416a-94b2-863125bc69d7", - "currentVersionId": null, - "userId": "319a2ca8-395e-4f77-8998-78358f78b716", - "createdAt": "2021-12-09T10:00:40.049Z", - "updatedAt": "2021-12-09T10:00:40.136Z", - "dataQueries": [ - { - "id": "cd789375-9d88-4880-a941-301faff6844a", - "name": "chartData", - "kind": "postgresql", - "options": { - "mode": "sql", - "query": "select created_at::date, COUNT(*) from customers GROUP BY created_at::date ORDER BY created_at::date ASC;", - "enableTransformation": true, - "transformation": "return data.map(row => {\n return { \"x\": row.created_at, \"y\": parseInt(row.count) } \n});", - "runOnPageLoad": true - }, - "dataSourceId": "1258859c-9657-4e48-bf89-aaf1b1166979", - "appId": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "createdAt": "2021-12-09T10:00:40.047Z", - "updatedAt": "2021-12-09T10:00:40.047Z" - }, - { - "id": "1c1dfc69-4048-4e81-8213-a6c436a0de30", - "name": "fetchCustomers", - "kind": "postgresql", - "options": { - "mode": "sql", - "query": "SELECT * FROM customers;", - "runOnPageLoad": true - }, - "dataSourceId": "1258859c-9657-4e48-bf89-aaf1b1166979", - "appId": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "createdAt": "2021-12-09T10:00:40.047Z", - "updatedAt": "2021-12-09T10:00:40.047Z" - } - ], - "dataSources": [ - { - "id": "1258859c-9657-4e48-bf89-aaf1b1166979", - "name": "PostgreSQL", - "kind": "postgresql", - "options": { - "host": { - "value": "sample-data.cye0quy9d2fs.us-east-2.rds.amazonaws.com", - "encrypted": false - }, - "port": { "value": 5432, "encrypted": false }, - "database": { "value": "postgres", "encrypted": false }, - "username": { "value": "postgres", "encrypted": false }, - "password": { - "credential_id": "1e4f4085-d85f-452d-a458-863fb772ba46", - "encrypted": true - }, - "ssl_enabled": { "value": true, "encrypted": false } - }, - "appId": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "createdAt": "2021-12-09T10:00:40.099Z", - "updatedAt": "2021-12-09T10:00:40.099Z" - } - ], - "appVersions": [ - { - "id": "f6f31f2f-0298-4f32-ace3-8aa8b668730a", - "name": "v0", - "definition": { - "components": { - "b0319b2d-c580-4830-8ee4-d1920b944020": { - "top": 510, - "left": 30, - "width": 714, - "height": 658, - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { "type": "string", "displayName": "Title" }, - "data": { "type": "code", "displayName": "Table data" }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { "type": "array", "displayName": "Table Columns" }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server Side Pagination" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background Color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "defaultSize": { "width": 810, "height": 300 }, - "events": { - "onRowClicked": { "displayName": "On row clicked" }, - "onBulkUpdate": { "displayName": "Bulk update query" }, - "onPageChanged": { "displayName": "On page changed query" } - }, - "styles": { - "textColor": { "type": "color", "displayName": "Text Color" } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0 - }, - "definition": { - "properties": { - "title": { "value": "Table" }, - "visible": { "value": true }, - "loadingState": { "value": false }, - "data": { "value": "{{queries.fetchCustomers.data}}" }, - "serverSidePagination": { "value": true }, - "columns": { - "value": [ - { "name": "id" }, - { "name": "name" }, - { "name": "email" } - ] - }, - "columnSizes": { "id": 167 }, - "showBulkSelector": { "value": false }, - "highlightSelectedRow": { "value": false } - }, - "events": [], - "styles": { - "textColor": { "value": "" }, - "cellSize": { "value": "compact" } - }, - "others": { - "showOnDesktop": { "value": true }, - "showOnMobile": { "value": false } - } - } - }, - "layouts": { - "desktop": { - "top": 510, - "left": 2.321981424148607, - "width": 23.763157894736842, - "height": 658 - } - } - }, - "ead4cb23-ae0b-4c8a-8875-13fa47643762": { - "top": 60, - "left": 30, - "width": 1220, - "height": 400, - "component": { - "icon": "https://www.svgrepo.com/show/36266/chart.svg", - "name": "chart1", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { "width": 600, "height": 400 }, - "properties": { - "title": { "type": "string", "displayName": "Title" }, - "data": { "type": "json", "displayName": "Data" }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { "name": "Line", "value": "line" }, - { "name": "Bar", "value": "bar" }, - { "name": "Pie", "value": "pie" } - ] - } - }, - "events": {}, - "styles": {}, - "exposedVariables": { "show": null }, - "definition": { - "properties": { - "title": { "value": "Daily signups" }, - "markerColor": { "value": "#CDE1F8" }, - "showGridLines": { "value": true }, - "loadingState": { "value": "{{false}}" }, - "type": { "value": "bar" }, - "data": { "value": "{{queries.chartData.data}}" } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { "value": true }, - "showOnMobile": { "value": false } - } - } - }, - "layouts": { - "desktop": { - "top": 60, - "left": 2.321981424148607, - "width": 40.60371517027864, - "height": 400 - } - } - } - }, - "globalSettings": { - "hideHeader": false, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "createdAt": "2021-12-09T10:00:40.121Z", - "updatedAt": "2021-12-09T10:01:17.071Z" - } - ], - "editingVersion": { - "id": "f6f31f2f-0298-4f32-ace3-8aa8b668730a", - "name": "v0", - "definition": { - "components": { - "b0319b2d-c580-4830-8ee4-d1920b944020": { - "top": 510, - "left": 30, - "width": 714, - "height": 658, - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { "type": "string", "displayName": "Title" }, - "data": { "type": "code", "displayName": "Table data" }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { "type": "array", "displayName": "Table Columns" }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server Side Pagination" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background Color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "defaultSize": { "width": 810, "height": 300 }, - "events": { - "onRowClicked": { "displayName": "On row clicked" }, - "onBulkUpdate": { "displayName": "Bulk update query" }, - "onPageChanged": { "displayName": "On page changed query" } - }, - "styles": { - "textColor": { "type": "color", "displayName": "Text Color" } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0 - }, - "definition": { - "properties": { - "title": { "value": "Table" }, - "visible": { "value": true }, - "loadingState": { "value": "{{false}}" }, - "data": { "value": "{{queries.fetchCustomers.data}}" }, - "serverSidePagination": { "value": true }, - "columns": { - "value": [ - { "name": "id" }, - { "name": "name" }, - { "name": "email" } - ] - }, - "columnSizes": { "id": 167 }, - "showBulkSelector": { "value": false }, - "highlightSelectedRow": { "value": false } - }, - "events": [], - "styles": { - "textColor": { "value": "" }, - "cellSize": { "value": "compact" } - }, - "others": { - "showOnDesktop": { "value": true }, - "showOnMobile": { "value": false } - } - } - }, - "layouts": { - "desktop": { - "top": 510, - "left": 2.321981424148607, - "width": 23.763157894736842, - "height": 658 - } - } - }, - "ead4cb23-ae0b-4c8a-8875-13fa47643762": { - "top": 60, - "left": 30, - "width": 1220, - "height": 400, - "component": { - "icon": "https://www.svgrepo.com/show/36266/chart.svg", - "name": "chart1", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { "width": 600, "height": 400 }, - "properties": { - "title": { "type": "string", "displayName": "Title" }, - "data": { "type": "json", "displayName": "Data" }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { "type": "color", "displayName": "Marker color" }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { "name": "Line", "value": "line" }, - { "name": "Bar", "value": "bar" }, - { "name": "Pie", "value": "pie" } - ] - } - }, - "events": {}, - "styles": {}, - "exposedVariables": { "show": null }, - "definition": { - "properties": { - "title": { "value": "Daily signups" }, - "markerColor": { "value": "#CDE1F8" }, - "showGridLines": { "value": true }, - "loadingState": { "value": "{{false}}" }, - "type": { "value": "bar" }, - "data": { "value": "{{queries.chartData.data}}" } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { "value": true }, - "showOnMobile": { "value": false } - } - } - }, - "layouts": { - "desktop": { - "top": 60, - "left": 2.321981424148607, - "width": 40.60371517027864, - "height": 400 - } - } - } - }, - "globalSettings": { - "hideHeader": false, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "78391197-8d81-40fe-ae2f-78a8b2c97e30", - "createdAt": "2021-12-09T10:00:40.121Z", - "updatedAt": "2021-12-09T10:01:17.071Z" - }, - "tooljetVersion": "0.10.0" -} +{"id":"78391197-8d81-40fe-ae2f-78a8b2c97e30","name":"Customer Dashboard","slug":null,"isPublic":false,"organizationId":"7471c14a-c11a-416a-94b2-863125bc69d7","currentVersionId":null,"userId":"319a2ca8-395e-4f77-8998-78358f78b716","createdAt":"2021-12-09T10:00:40.049Z","updatedAt":"2021-12-09T10:00:40.136Z","dataQueries":[{"id":"cd789375-9d88-4880-a941-301faff6844a","name":"chartData","kind":"postgresql","options":{"mode":"sql","query":"select created_at::date, COUNT(*) from customers GROUP BY created_at::date ORDER BY created_at::date ASC;","enableTransformation":true,"transformation":"return data.map(row => {\n return { \"x\": row.created_at, \"y\": parseInt(row.count) } \n});","runOnPageLoad":true},"dataSourceId":"1258859c-9657-4e48-bf89-aaf1b1166979","appId":"78391197-8d81-40fe-ae2f-78a8b2c97e30","createdAt":"2021-12-09T10:00:40.047Z","updatedAt":"2021-12-09T10:00:40.047Z"},{"id":"1c1dfc69-4048-4e81-8213-a6c436a0de30","name":"fetchCustomers","kind":"postgresql","options":{"mode":"sql","query":"SELECT * FROM customers;","runOnPageLoad":true},"dataSourceId":"1258859c-9657-4e48-bf89-aaf1b1166979","appId":"78391197-8d81-40fe-ae2f-78a8b2c97e30","createdAt":"2021-12-09T10:00:40.047Z","updatedAt":"2021-12-09T10:00:40.047Z"}],"dataSources":[{"id":"1258859c-9657-4e48-bf89-aaf1b1166979","name":"PostgreSQL","kind":"postgresql","options":{"host":{"value":"sample-data.cye0quy9d2fs.us-east-2.rds.amazonaws.com","encrypted":false},"port":{"value":5432,"encrypted":false},"database":{"value":"postgres","encrypted":false},"username":{"value":"postgres","encrypted":false},"password":{"credential_id":"1e4f4085-d85f-452d-a458-863fb772ba46","encrypted":true},"ssl_enabled":{"value":true,"encrypted":false}},"appId":"78391197-8d81-40fe-ae2f-78a8b2c97e30","createdAt":"2021-12-09T10:00:40.099Z","updatedAt":"2021-12-09T10:00:40.099Z"}],"appVersions":[{"id":"f6f31f2f-0298-4f32-ace3-8aa8b668730a","name":"v0","definition":{"components":{"b0319b2d-c580-4830-8ee4-d1920b944020":{"top":510,"left":30,"width":714,"height":658,"component":{"name":"table1","displayName":"Table","description":"Display paginated tabular data","component":"Table","properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"code","displayName":"Table data"},"loadingState":{"type":"code","displayName":"Loading state"},"columns":{"type":"array","displayName":"Table Columns"},"serverSidePagination":{"type":"toggle","displayName":"Server Side Pagination"},"actionButtonBackgroundColor":{"type":"color","displayName":"Background Color"},"actionButtonTextColor":{"type":"color","displayName":"Text Color"}},"defaultSize":{"width":810,"height":300},"events":{"onRowClicked":{"displayName":"On row clicked"},"onBulkUpdate":{"displayName":"Bulk update query"},"onPageChanged":{"displayName":"On page changed query"}},"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{"selectedRow":{},"changeSet":{},"dataUpdates":[],"pageIndex":0},"definition":{"properties":{"title":{"value":"Table"},"visible":{"value":true},"loadingState":{"value":false},"data":{"value":"{{queries.fetchCustomers.data}}"},"serverSidePagination":{"value":true},"columns":{"value":[{"name":"id"},{"name":"name"},{"name":"email"}]},"columnSizes":{"id":167},"showBulkSelector":{"value":false},"highlightSelectedRow":{"value":false}},"events":[],"styles":{"textColor":{"value":""},"cellSize":{"value":"compact"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":510,"left":2.321981424148607,"width":23.763157894736842,"height":658}}},"ead4cb23-ae0b-4c8a-8875-13fa47643762":{"top":60,"left":30,"width":1220,"height":400,"component":{"icon":"https://www.svgrepo.com/show/36266/chart.svg","name":"chart1","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":600,"height":400},"properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]}},"events":{},"styles":{},"exposedVariables":{"show":null},"definition":{"properties":{"title":{"value":"Daily signups"},"markerColor":{"value":"#CDE1F8"},"showGridLines":{"value":true},"loadingState":{"value":"{{false}}"},"type":{"value":"bar"},"data":{"value":"{{queries.chartData.data}}"}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":60,"left":2.321981424148607,"width":40.60371517027864,"height":400}}}},"globalSettings":{"hideHeader":false,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"78391197-8d81-40fe-ae2f-78a8b2c97e30","createdAt":"2021-12-09T10:00:40.121Z","updatedAt":"2021-12-09T10:01:17.071Z","homePageId":"67f5b95a-7f06-4038-82eb-4fdfc055e889","pages":{"67f5b95a-7f06-4038-82eb-4fdfc055e889":{"name":"Home","handle":"home"}},"showViewerNavigation":false}],"editingVersion":{"id":"f6f31f2f-0298-4f32-ace3-8aa8b668730a","name":"v0","definition":{"components":{"b0319b2d-c580-4830-8ee4-d1920b944020":{"top":510,"left":30,"width":714,"height":658,"component":{"name":"table1","displayName":"Table","description":"Display paginated tabular data","component":"Table","properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"code","displayName":"Table data"},"loadingState":{"type":"code","displayName":"Loading state"},"columns":{"type":"array","displayName":"Table Columns"},"serverSidePagination":{"type":"toggle","displayName":"Server Side Pagination"},"actionButtonBackgroundColor":{"type":"color","displayName":"Background Color"},"actionButtonTextColor":{"type":"color","displayName":"Text Color"}},"defaultSize":{"width":810,"height":300},"events":{"onRowClicked":{"displayName":"On row clicked"},"onBulkUpdate":{"displayName":"Bulk update query"},"onPageChanged":{"displayName":"On page changed query"}},"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{"selectedRow":{},"changeSet":{},"dataUpdates":[],"pageIndex":0},"definition":{"properties":{"title":{"value":"Table"},"visible":{"value":true},"loadingState":{"value":"{{false}}"},"data":{"value":"{{queries.fetchCustomers.data}}"},"serverSidePagination":{"value":true},"columns":{"value":[{"name":"id"},{"name":"name"},{"name":"email"}]},"columnSizes":{"id":167},"showBulkSelector":{"value":false},"highlightSelectedRow":{"value":false}},"events":[],"styles":{"textColor":{"value":""},"cellSize":{"value":"compact"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":510,"left":2.321981424148607,"width":23.763157894736842,"height":658}}},"ead4cb23-ae0b-4c8a-8875-13fa47643762":{"top":60,"left":30,"width":1220,"height":400,"component":{"icon":"https://www.svgrepo.com/show/36266/chart.svg","name":"chart1","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":600,"height":400},"properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]}},"events":{},"styles":{},"exposedVariables":{"show":null},"definition":{"properties":{"title":{"value":"Daily signups"},"markerColor":{"value":"#CDE1F8"},"showGridLines":{"value":true},"loadingState":{"value":"{{false}}"},"type":{"value":"bar"},"data":{"value":"{{queries.chartData.data}}"}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":60,"left":2.321981424148607,"width":40.60371517027864,"height":400}}}},"globalSettings":{"hideHeader":false,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"78391197-8d81-40fe-ae2f-78a8b2c97e30","createdAt":"2021-12-09T10:00:40.121Z","updatedAt":"2021-12-09T10:01:17.071Z","homePageId":"e3049341-4704-416a-96df-82580e9d7f43","pages":{"e3049341-4704-416a-96df-82580e9d7f43":{"name":"Home","handle":"home"}},"showViewerNavigation":false},"tooljetVersion":"0.10.0"} \ No newline at end of file diff --git a/server/templates/gcs-file-explorer/definition.json b/server/templates/gcs-file-explorer/definition.json index 4563776bf1..b30ddd2f0b 100644 --- a/server/templates/gcs-file-explorer/definition.json +++ b/server/templates/gcs-file-explorer/definition.json @@ -1,12007 +1 @@ -{ - "id": "b98bfa27-71ca-4382-be70-660d9903f570", - "name": "file_explorer_gcs", - "slug": "file_explorer_gcs", - "isPublic": true, - "isMaintenanceOn": false, - "icon": null, - "organizationId": "7fff090d-7c26-48c4-8a58-c1c8bee62225", - "currentVersionId": null, - "userId": "255e4bf9-ba1e-458e-9269-030735c526ad", - "createdAt": "2022-08-14T17:32:31.546Z", - "updatedAt": "2022-08-17T20:46:53.491Z", - "editingVersion": { - "id": "cd1205bb-a275-435b-9a13-0848fc33813a", - "name": "v8", - "definition": { - "components": { - "eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 0, - "left": 2.4529185793653596e-8, - "width": 43, - "height": 60 - } - } - }, - "bc1b0e28-02c3-498f-8300-9d97d5f36553": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#f5f7fcff" - }, - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 50, - "left": 2.4529185793653596e-8, - "width": 43, - "height": 940 - } - } - }, - "82083134-fec5-48d8-bf94-aeaac12ecf69": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#4586f8ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "

GCS File Explorer

" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670", - "layouts": { - "desktop": { - "top": 0, - "left": 4.573642713133641, - "width": 7.986821705426356, - "height": 60 - } - } - }, - "bab873b2-aedb-4be5-8dec-5c10c2ae94c1": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "5" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container3", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 108, - "left": 67.44187196139158, - "width": 11.99119422712821, - "height": 420 - } - } - }, - "b5c52fd2-414e-4afd-a4bc-e521fffb8d80": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "dividerColor": { - "type": "color", - "displayName": "Divider Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "dividerColor": { - "value": "#E7E8EA" - } - }, - "properties": {}, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "divider1", - "displayName": "Divider", - "description": "Separator between components", - "component": "Divider", - "defaultSize": { - "width": 10, - "height": 10 - }, - "exposedVariables": { - "value": {} - } - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 50, - "left": 0, - "width": 43.02439230915107, - "height": 10 - } - } - }, - "9328491e-7962-4db3-938e-0e055528f36b": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#223170ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "

Upload to bucket

" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 10, - "left": 4.651292515902895, - "width": 19.074263827543284, - "height": 40 - } - } - }, - "cfdc8736-2374-46e4-872e-f4cff861ec74": { - "component": { - "properties": { - "instructionText": { - "type": "code", - "displayName": "Instruction Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "enableDropzone": { - "type": "code", - "displayName": "Use Drop zone", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "enablePicker": { - "type": "code", - "displayName": "Use File Picker", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "enableMultiple": { - "type": "code", - "displayName": "Pick multiple files", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "maxFileCount": { - "type": "code", - "displayName": "Max file count", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "fileType": { - "type": "code", - "displayName": "Accept file types", - "validation": { - "schema": { - "type": "string" - } - } - }, - "maxSize": { - "type": "code", - "displayName": "Max size limit (Bytes)", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "minSize": { - "type": "code", - "displayName": "Min size limit (Bytes)", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "parseContent": { - "type": "toggle", - "displayName": "Parse content", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "parseFileType": { - "type": "select", - "displayName": "File type", - "options": [ - { - "name": "Autodetect from extension", - "value": "auto-detect" - }, - { - "name": "CSV", - "value": "csv" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onFileSelected": { - "displayName": "On File Selected" - } - }, - "styles": { - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "properties": { - "instructionText": { - "value": "Drag and Drop some files here, or click to select files" - }, - "enableDropzone": { - "value": "{{true}}" - }, - "enablePicker": { - "value": "{{true}}" - }, - "maxFileCount": { - "value": "{{2}}" - }, - "enableMultiple": { - "value": "{{false}}" - }, - "fileType": { - "value": "{{\"image/*\"}}" - }, - "maxSize": { - "value": "{{1048576}}" - }, - "minSize": { - "value": "{{50}}" - }, - "parseContent": { - "value": "{{false}}" - }, - "parseFileType": { - "value": "auto-detect" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "filepicker1", - "displayName": "File Picker", - "description": "File Picker", - "component": "FilePicker", - "defaultSize": { - "width": 15, - "height": 100 - }, - "actions": [ - { - "handle": "clearFiles", - "displayName": "Clear Files" - } - ], - "exposedVariables": { - "file": [ - { - "name": "", - "content": "", - "dataURL": "", - "type": "", - "parsedData": "" - } - ], - "isParsing": false - } - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 200, - "left": 4.571594407163237, - "width": 38.93270617407695, - "height": 100 - } - } - }, - "f4401979-55eb-4276-b3d8-52a5befa1752": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Path" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 70, - "left": 4.651188261951318, - "width": 13.953488372093023, - "height": 30 - } - } - }, - "11169e8e-41db-4d34-a8bb-190c0b6b1124": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Attach files" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 170, - "left": 4.651172325074638, - "width": 13.953488372093023, - "height": 30 - } - } - }, - "42399b04-4c96-4253-bac6-b21219e797bf": { - "component": { - "properties": { - "value": { - "type": "code", - "displayName": "Default value", - "validation": { - "schema": { - "type": "string" - } - } - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onChange": { - "displayName": "On change" - } - }, - "styles": { - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "properties": { - "value": { - "value": "" - }, - "placeholder": { - "value": "File Path" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 6, - "height": 30 - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "exposedVariables": { - "value": "" - }, - "actions": [ - { - "handle": "setText", - "displayName": "Set text", - "params": [ - { - "handle": "text", - "displayName": "text", - "defaultValue": "New Text" - } - ] - }, - { - "handle": "clear", - "displayName": "Clear" - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 100, - "left": 4.571626808507315, - "width": 38.96192664289661, - "height": 40 - } - } - }, - "f4c65680-adfa-46fb-8ae7-ff32c8919c72": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#9b9999ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Accepted file types: .png and .jpeg" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 300, - "left": 4.651224901553507, - "width": 38.96192664289661, - "height": 30 - } - } - }, - "fdd69706-f317-4121-b8b2-2b7f9b9659ca": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "878ffc7b-eace-4a71-948a-913728ad9288", - "queryName": "upload" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}", - "fxActive": false - } - }, - "properties": { - "text": { - "value": "Upload" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.upload.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 350, - "left": 4.6512178972348845, - "width": 38.89227493164346, - "height": 50 - } - } - }, - "87ea444b-9584-4e9e-bb10-d85dbe7bfdd7": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "show-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Change" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button2", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 88.32564346618183, - "width": 3.0136105454935143, - "height": 40 - } - } - }, - "f61d6270-bff9-43bd-8d74-b07c8e4507e4": { - "component": { - "properties": { - "title": { - "type": "code", - "displayName": "Title", - "validation": { - "schema": { - "type": "string" - } - } - }, - "hideTitleBar": { - "type": "toggle", - "displayName": "Hide title bar" - }, - "hideCloseButton": { - "type": "toggle", - "displayName": "Hide close button" - }, - "hideOnEsc": { - "type": "toggle", - "displayName": "Hide on escape" - }, - "size": { - "type": "select", - "displayName": "Modal size", - "options": [ - { - "name": "small", - "value": "sm" - }, - { - "name": "medium", - "value": "md" - }, - { - "name": "large", - "value": "lg" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "title": { - "value": "Choose Bucket from GCS" - }, - "size": { - "value": "sm" - }, - "hideTitleBar": { - "value": "{{false}}" - }, - "hideCloseButton": { - "value": "{{false}}" - }, - "hideOnEsc": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "modal1", - "displayName": "Modal", - "description": "Modal triggered by events", - "component": "Modal", - "defaultSize": { - "width": 10, - "height": 400 - }, - "exposedVariables": { - "show": false - }, - "actions": [ - { - "handle": "open", - "displayName": "Open" - }, - { - "handle": "close", - "displayName": "Close" - } - ] - }, - "layouts": { - "desktop": { - "top": 1040, - "left": 51.16279674018522, - "width": 10, - "height": 230 - } - } - }, - "ccbfef77-b2cf-491d-99c9-507c6a341bb4": { - "component": { - "properties": { - "label": { - "type": "code", - "displayName": "Label", - "validation": { - "schema": { - "type": "string" - } - } - }, - "value": { - "type": "code", - "displayName": "Default value", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - }, - "values": { - "type": "code", - "displayName": "Option values", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - } - }, - "display_values": { - "type": "code", - "displayName": "Option labels", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Options loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onSelect": { - "displayName": "On select" - }, - "onSearchTextChanged": { - "displayName": "On search text changed" - } - }, - "styles": { - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "selectedTextColor": { - "type": "color", - "displayName": "Selected Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "justifyContent": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "justifyContent": { - "value": "left" - } - }, - "validation": { - "customRule": { - "value": null - } - }, - "properties": { - "label": { - "value": "Choose Bucket:" - }, - "value": { - "value": "{{queries.listBuckets.data.buckets[0]}}" - }, - "values": { - "value": "{{queries.listBuckets.data.buckets}}" - }, - "display_values": { - "value": "{{queries.listBuckets.data.buckets}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.listBuckets.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "dropdown1", - "displayName": "Dropdown", - "description": "Select one value from options", - "defaultSize": { - "width": 8, - "height": 30 - }, - "component": "DropDown", - "validation": { - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "exposedVariables": { - "value": 2, - "searchText": "" - }, - "actions": [ - { - "handle": "selectOption", - "displayName": "Select option", - "params": [ - { - "handle": "select", - "displayName": "Select" - } - ] - } - ] - }, - "parent": "f61d6270-bff9-43bd-8d74-b07c8e4507e4", - "layouts": { - "desktop": { - "top": 40, - "left": 6.976754743229841, - "width": 36.97274974464393, - "height": 40 - } - } - }, - "a64b93c4-9add-43b7-ac26-a51032c69d92": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "750ce2ce-3749-4325-9377-50264ab1188e", - "queryName": "listFiles" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "List Objects" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.listFiles.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button3", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "f61d6270-bff9-43bd-8d74-b07c8e4507e4", - "layouts": { - "desktop": { - "top": 130, - "left": 6.8721574788313715, - "width": 37.01906239379223, - "height": 40 - } - } - }, - "1ad63f52-4035-4dd1-959c-f2cb9ee64c70": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Bucket: " - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text12", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 67.44186512549514, - "width": 2.031061336762763, - "height": 40 - } - } - }, - "9f207ce7-e09b-4c6d-bdba-d85933058fbd": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#0a4c98ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{components.dropdown1.value}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text13", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 30, - "left": 72.23948881934179, - "width": 7.018004501125282, - "height": 60 - } - } - }, - "492687d4-aa8b-4ed1-ab6c-6c1f2ff2ec72": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#910c0cff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Please select a Bucket" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text17", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 240, - "left": 27.906975084377784, - "width": 5.003411567177508, - "height": 30 - } - } - }, - "38465e58-3274-4527-b2dc-ee887bb9da61": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "5" - }, - "visibility": { - "value": "{{queries.listFiles.data.files == null ? false : true}}", - "fxActive": true - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container4", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 4.651169755454559, - "width": 25.00348301361054, - "height": 850 - } - } - }, - "eb9d8228-f999-4173-8aa1-ab221563dd8d": { - "id": "eb9d8228-f999-4173-8aa1-ab221563dd8d", - "component": { - "properties": { - "data": { - "type": "code", - "displayName": "List data", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "object" - } - } - } - }, - "rowHeight": { - "type": "code", - "displayName": "Row height", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "showBorder": { - "type": "code", - "displayName": "Show bottom border", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onRowClicked": { - "displayName": "Row clicked" - } - }, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onRowClicked", - "actionId": "set-custom-variable", - "message": "Hello world!", - "alertType": "info", - "key": "currentlyLoadingId", - "value": "{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}" - }, - { - "eventId": "onRowClicked", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "63add963-cc26-4498-a318-9613349854d6", - "queryName": "urlfordownload" - } - ], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "visibility": { - "value": "", - "fxActive": false - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "properties": { - "data": { - "value": "{{queries.listFiles.data.files}}" - }, - "rowHeight": { - "value": "{{70}}" - }, - "visible": { - "value": "{{true}}" - }, - "showBorder": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "listview2", - "displayName": "List View", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Listview", - "exposedVariables": { - "data": [ - {} - ] - } - }, - "layouts": { - "desktop": { - "top": 40, - "left": 2.2514073754219828, - "width": 42.04535857090364, - "height": 750 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "201a4aa4-19f7-43bc-89b6-f07071d32d8f": { - "id": "201a4aa4-19f7-43bc-89b6-f07071d32d8f", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#0831a7ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{listItem.name}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text18", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 2.3374985208155206, - "width": 11.97667411744889, - "height": 60 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "1801dc7f-9cfd-42b4-9308-b9e8a7247a01": { - "id": "1801dc7f-9cfd-42b4-9308-b9e8a7247a01", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{moment(listItem).format(\"DD/MM/YYYY h:mm:ss a\")}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text19", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 32.80875988475089, - "width": 10.988266990126824, - "height": 50 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "d5cb9a4d-de68-4acf-833e-268350eab348": { - "id": "d5cb9a4d-de68-4acf-833e-268350eab348", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{(listItem.size/1024).toFixed(2)}} kb" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text20", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 61.30284202143677, - "width": 6.046231353516493, - "height": 50 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "1504f3eb-7a7f-41e9-aa21-e3c464376c4e": { - "id": "1504f3eb-7a7f-41e9-aa21-e3c464376c4e", - "component": { - "properties": { - "source": { - "type": "code", - "displayName": "URL", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "alternativeText": { - "type": "code", - "displayName": "Alternative text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "zoomButtons": { - "type": "toggle", - "displayName": "Zoom button", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "borderType": { - "type": "select", - "displayName": "Border type", - "options": [ - { - "name": "None", - "value": "none" - }, - { - "name": "Rounded", - "value": "rounded" - }, - { - "name": "Circle", - "value": "rounded-circle" - }, - { - "name": "Thumbnail", - "value": "img-thumbnail" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - }, - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "padding": { - "type": "code", - "displayName": "Padding", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "imageFit": { - "type": "select", - "displayName": "Image fit", - "options": [ - { - "name": "fill", - "value": "fill" - }, - { - "name": "contain", - "value": "contain" - }, - { - "name": "cover", - "value": "cover" - }, - { - "name": "scale-down", - "value": "scale-down" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "open-webpage", - "message": "Hello world!", - "alertType": "info", - "url": "{{queries.urlfordownload.data.url}}" - } - ], - "styles": { - "borderType": { - "value": "none" - }, - "padding": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "imageFit": { - "value": "contain" - } - }, - "properties": { - "source": { - "value": "https://www.svgrepo.com/show/12258/download.svg" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{listItem.id === variables.currentlyLoadingId}}", - "fxActive": true - }, - "alternativeText": { - "value": "" - }, - "zoomButtons": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "image2", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 3, - "height": 100 - }, - "component": "Image", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 10, - "left": 84.29852559087144, - "width": 2.0347085494361803, - "height": 30 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "8c9e0be7-91e6-48f4-b604-fd9f079da736": { - "id": "8c9e0be7-91e6-48f4-b604-fd9f079da736", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "center" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Name" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text16", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 4.651160676682724, - "width": 3.02184474690101, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "927c6186-fa7f-4f52-9545-a9a5aac68e6a": { - "id": "927c6186-fa7f-4f52-9545-a9a5aac68e6a", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Updated on" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text21", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 34.88390917709527, - "width": 7.008187219741155, - "height": 40 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "58a0747c-f5ef-4684-be4e-e9758c1d0b03": { - "id": "58a0747c-f5ef-4684-be4e-e9758c1d0b03", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Actions" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text22", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 83.72136505021093, - "width": 3.9899564903050453, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723": { - "id": "f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Size" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text23", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 62.833379149847055, - "width": 3.9899564903050453, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - } - }, - "globalSettings": { - "hideHeader": true, - "appInMaintenance": false, - "canvasMaxWidth": "1920", - "canvasMaxHeight": 2400, - "canvasBackgroundColor": "#edeff5", - "backgroundFxQuery": "" - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "createdAt": "2022-08-21T20:09:25.054Z", - "updatedAt": "2022-08-21T22:24:15.623Z" - }, - "dataQueries": [ - { - "id": "440eeadb-b81d-4e4f-a449-b907658430db", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-14T19:55:30.169Z", - "updatedAt": "2022-08-14T19:56:18.618Z" - }, - { - "id": "b4787869-31f0-4c06-aad9-845f5ddee2e1", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "c1169979-cf8a-4b88-b891-10153b4deb8f", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-16T05:14:53.235Z", - "updatedAt": "2022-08-16T11:41:39.292Z" - }, - { - "id": "73b2191b-eff3-41ed-9566-87e1b676a6c2", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}" - }, - "dataSourceId": "c1169979-cf8a-4b88-b891-10153b4deb8f", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-16T05:19:18.327Z", - "updatedAt": "2022-08-16T05:19:18.327Z" - }, - { - "id": "c5406064-4a11-4698-aee4-a4fd211a8f48", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "73b2191b-eff3-41ed-9566-87e1b676a6c2", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "c1169979-cf8a-4b88-b891-10153b4deb8f", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-16T05:31:44.762Z", - "updatedAt": "2022-08-16T11:28:37.927Z" - }, - { - "id": "c03ed704-4a81-402e-a575-f928f4a1f8f9", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}" - }, - "dataSourceId": "c1169979-cf8a-4b88-b891-10153b4deb8f", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-16T11:12:01.673Z", - "updatedAt": "2022-08-16T11:14:57.563Z" - }, - { - "id": "a9fa8b72-0f38-4fc8-8e00-0d6d29532dff", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "6abc1056-ece2-482b-9a99-6b73a458d235", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:43:05.072Z" - }, - { - "id": "75b7d17b-5951-45b9-8ad2-9259d5ed1154", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "b1f11108-e5fe-4c81-994f-7d4690b3be6b", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "6abc1056-ece2-482b-9a99-6b73a458d235", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:43:05.072Z" - }, - { - "id": "312fbb2b-9726-4a0e-a3b7-416df7a880d5", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}" - }, - "dataSourceId": "6abc1056-ece2-482b-9a99-6b73a458d235", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:43:05.072Z" - }, - { - "id": "6867c113-2b50-48a0-b069-c50c45a1162a", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:43:05.072Z" - }, - { - "id": "b1f11108-e5fe-4c81-994f-7d4690b3be6b", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "6abc1056-ece2-482b-9a99-6b73a458d235", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:53:51.434Z" - }, - { - "id": "347f5c9b-df47-4909-8c1c-87533650d4a2", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "54a1d473-7d08-47bc-a1e4-74aeeec1dc5b", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "c5eda19e-6dc8-42eb-9650-b6dcf0064b21", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "54a1d473-7d08-47bc-a1e4-74aeeec1dc5b", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "c5eda19e-6dc8-42eb-9650-b6dcf0064b21", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "a028e50f-34f8-4c2d-86db-c9d7d454ae32", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "c5eda19e-6dc8-42eb-9650-b6dcf0064b21", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "9459defa-c071-4f59-8363-b65ab1f0bf87", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}" - }, - "dataSourceId": "c5eda19e-6dc8-42eb-9650-b6dcf0064b21", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "ce5e2168-0e99-4cd5-b6f4-9002dda4ef56", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "6c4fc4f4-72cb-45e9-84a4-312023700f6e", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "957418b3-d9c0-4c06-9cad-fadb93816a65", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "4c2dfec7-8c20-4fbe-a24a-61540fba8ddd", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "6c4fc4f4-72cb-45e9-84a4-312023700f6e", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "957418b3-d9c0-4c06-9cad-fadb93816a65", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "cae22427-7c56-4c5d-8c88-2d81a522b164", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "db5c0e90-b2c2-4e9a-818a-9da88fb587b9", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}" - }, - "dataSourceId": "957418b3-d9c0-4c06-9cad-fadb93816a65", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "00e2372c-985c-4bca-90c4-c53386e3fad6", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "957418b3-d9c0-4c06-9cad-fadb93816a65", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "902889b8-a9b8-4765-baeb-67aa87a2d3e0", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "349ff067-1751-4baf-9138-2203c3d96d21", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}" - }, - "dataSourceId": "d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "19d607cb-455b-42b4-b043-64a55b6444b9", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "98ee0cd9-0ff8-44dd-ab82-5129ad92a196", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "8723b00a-890e-455b-88a9-418340a4a069", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "8723b00a-890e-455b-88a9-418340a4a069", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "6f000797-0a8d-4268-9a9d-6e651801fa18", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "86795aa9-3160-44fe-8d0e-a5a2d419fec0", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "7ecd7434-254e-465a-a091-b3b952427e41", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T13:04:56.626Z" - }, - { - "id": "86795aa9-3160-44fe-8d0e-a5a2d419fec0", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "7ecd7434-254e-465a-a091-b3b952427e41", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T13:04:56.626Z" - }, - { - "id": "ce32b1aa-5106-44c9-8d97-e0c5fcdb75af", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "7ecd7434-254e-465a-a091-b3b952427e41", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T13:04:56.626Z" - }, - { - "id": "d4d7598b-f045-40a0-9583-3c4b3e78bd6f", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}" - }, - "dataSourceId": "7ecd7434-254e-465a-a091-b3b952427e41", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T17:20:13.295Z" - }, - { - "id": "295b96c3-01cf-4587-a3a6-f327d3302b0e", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T13:04:56.626Z" - }, - { - "id": "74607834-cc7f-4009-bff8-51e220cf26eb", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "d1b45765-8da1-459e-a8e4-5c9d59edc57a", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-16T17:21:13.096Z" - }, - { - "id": "5caef108-9db6-46a7-90c9-e0d274a20487", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "d1b45765-8da1-459e-a8e4-5c9d59edc57a", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-16T17:21:13.096Z" - }, - { - "id": "fdfe5bd6-deed-4b43-9f8b-7674c0959060", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "unset-custom-variable", - "message": "Hello world!", - "alertType": "info", - "key": "currentlyLoadingId", - "value": "{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}" - } - ] - }, - "dataSourceId": "d1b45765-8da1-459e-a8e4-5c9d59edc57a", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-17T11:05:27.269Z" - }, - { - "id": "ef473188-8da9-4977-8c6a-77c269781a0e", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "5caef108-9db6-46a7-90c9-e0d274a20487", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "d1b45765-8da1-459e-a8e4-5c9d59edc57a", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-16T17:21:13.096Z" - }, - { - "id": "57c909c9-2817-4558-932f-b72d73f83629", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-16T17:21:13.096Z" - }, - { - "id": "750ce2ce-3749-4325-9377-50264ab1188e", - "name": "listFiles", - "kind": "gcs", - "options": { - "operation": "list_files", - "bucket": "{{components.dropdown1.value}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "close-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ] - }, - "dataSourceId": "93c027be-2b79-4e39-8317-a6dadd80eb74", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:09:25.058Z" - }, - { - "id": "878ffc7b-eace-4a71-948a-913728ad9288", - "name": "upload", - "kind": "gcs", - "options": { - "operation": "upload_file", - "bucket": "{{components.dropdown1.value}}", - "file": "{{components.textinput1.value}}", - "contentType": "{{components.filepicker1.file[0].type}}", - "data": "{{components.filepicker1.file[0].content}}", - "encoding": "utf8", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "750ce2ce-3749-4325-9377-50264ab1188e", - "queryName": "listFiles" - }, - { - "eventId": "onDataQuerySuccess", - "actionId": "control-component", - "message": "Hello world!", - "alertType": "info", - "componentSpecificActionHandle": "clearFiles", - "componentId": "cfdc8736-2374-46e4-872e-f4cff861ec74", - "componentSpecificActionParams": [] - } - ] - }, - "dataSourceId": "93c027be-2b79-4e39-8317-a6dadd80eb74", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:09:25.058Z" - }, - { - "id": "63add963-cc26-4498-a318-9613349854d6", - "name": "urlfordownload", - "kind": "gcs", - "options": { - "operation": "signed_url_for_get", - "bucket": "{{components.dropdown1.value}}", - "file": "{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "unset-custom-variable", - "message": "Hello world!", - "alertType": "info", - "key": "currentlyLoadingId", - "value": "{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}" - } - ] - }, - "dataSourceId": "93c027be-2b79-4e39-8317-a6dadd80eb74", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:09:25.058Z" - }, - { - "id": "82ed585a-29e4-43a4-9fb8-5b16e2935a0a", - "name": "showModalOnPageLoad", - "kind": "runjs", - "options": { - "code": "actions.showModal('modal1')", - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:09:25.058Z" - }, - { - "id": "a428b6b5-d3e2-415f-8d55-da35c33082bc", - "name": "listBuckets", - "kind": "gcs", - "options": { - "operation": "list_buckets", - "runOnPageLoad": true - }, - "dataSourceId": "93c027be-2b79-4e39-8317-a6dadd80eb74", - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:09:25.058Z" - } - ], - "dataSources": [ - { - "id": "c1169979-cf8a-4b88-b891-10153b4deb8f", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "5f53b412-0e07-4d83-b9eb-684fd08a6c12", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "65ed56b7-bd8b-4c63-ac72-722cd8613fd6", - "createdAt": "2022-08-14T18:57:09.085Z", - "updatedAt": "2022-08-16T10:29:17.339Z" - }, - { - "id": "6abc1056-ece2-482b-9a99-6b73a458d235", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "d5ec2e7c-1846-42ee-8cd0-7b6b2513c210", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "03a42c53-d2c1-4d91-b5a4-df5cf310e7a2", - "createdAt": "2022-08-16T11:43:05.072Z", - "updatedAt": "2022-08-16T11:43:05.072Z" - }, - { - "id": "c5eda19e-6dc8-42eb-9650-b6dcf0064b21", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "d678d865-43ea-4ebb-bd4f-1c55b0b98a67", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "0181146c-90ad-4bdd-a76a-91558df1c413", - "createdAt": "2022-08-16T12:08:22.039Z", - "updatedAt": "2022-08-16T12:08:22.039Z" - }, - { - "id": "957418b3-d9c0-4c06-9cad-fadb93816a65", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "a999316e-0650-4fbc-8aad-d8b42aad3cce", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "26a87aa8-af99-467a-9830-a052f97703db", - "createdAt": "2022-08-16T12:20:14.816Z", - "updatedAt": "2022-08-16T12:20:14.816Z" - }, - { - "id": "d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "9a5d7d7f-8f96-438d-bd86-3d07a8c804d3", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "88788351-bee6-455d-a059-e8150f9833c7", - "createdAt": "2022-08-16T12:55:48.044Z", - "updatedAt": "2022-08-16T12:55:48.044Z" - }, - { - "id": "7ecd7434-254e-465a-a091-b3b952427e41", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "3723ec92-2b2d-4a55-ab67-085c66b1b1e3", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "c0317221-41e9-4e84-9b17-ca9f9770f588", - "createdAt": "2022-08-16T13:04:56.626Z", - "updatedAt": "2022-08-16T13:04:56.626Z" - }, - { - "id": "d1b45765-8da1-459e-a8e4-5c9d59edc57a", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "b11f30bd-f491-4dc2-8008-e5c843b70224", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "createdAt": "2022-08-16T17:21:13.096Z", - "updatedAt": "2022-08-16T17:21:13.096Z" - }, - { - "id": "93c027be-2b79-4e39-8317-a6dadd80eb74", - "name": "GCS", - "kind": "gcs", - "options": { - "private_key": { - "credential_id": "48b44e33-251e-49aa-90c7-938bbbdc777b", - "encrypted": true - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "appVersionId": "cd1205bb-a275-435b-9a13-0848fc33813a", - "createdAt": "2022-08-21T20:09:25.058Z", - "updatedAt": "2022-08-21T20:57:08.474Z" - } - ], - "appVersions": [ - { - "id": "a41d85f8-12b2-480c-af80-8a0d39ef6f57", - "name": "v7", - "definition": { - "components": { - "eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 0, - "left": 2.4529185793653596e-8, - "width": 43, - "height": 60 - } - } - }, - "bc1b0e28-02c3-498f-8300-9d97d5f36553": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#f5f7fcff" - }, - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 50, - "left": 0, - "width": 43, - "height": 940 - } - } - }, - "82083134-fec5-48d8-bf94-aeaac12ecf69": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#4586f8ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "

GCS File Explorer

" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670", - "layouts": { - "desktop": { - "top": 0, - "left": 4.573642713133641, - "width": 7.986821705426356, - "height": 60 - } - } - }, - "bab873b2-aedb-4be5-8dec-5c10c2ae94c1": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "5" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container3", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 108, - "left": 67.44186940464189, - "width": 11.99119422712821, - "height": 420 - } - } - }, - "b5c52fd2-414e-4afd-a4bc-e521fffb8d80": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "dividerColor": { - "type": "color", - "displayName": "Divider Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "dividerColor": { - "value": "#E7E8EA" - } - }, - "properties": {}, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "divider1", - "displayName": "Divider", - "description": "Separator between components", - "component": "Divider", - "defaultSize": { - "width": 10, - "height": 10 - }, - "exposedVariables": { - "value": {} - } - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 50, - "left": 0, - "width": 43.02439230915107, - "height": 10 - } - } - }, - "9328491e-7962-4db3-938e-0e055528f36b": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#223170ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "

Upload to bucket

" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 10, - "left": 4.651292515902895, - "width": 19.074263827543284, - "height": 40 - } - } - }, - "cfdc8736-2374-46e4-872e-f4cff861ec74": { - "component": { - "properties": { - "instructionText": { - "type": "code", - "displayName": "Instruction Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "enableDropzone": { - "type": "code", - "displayName": "Use Drop zone", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "enablePicker": { - "type": "code", - "displayName": "Use File Picker", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "enableMultiple": { - "type": "code", - "displayName": "Pick multiple files", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "maxFileCount": { - "type": "code", - "displayName": "Max file count", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "fileType": { - "type": "code", - "displayName": "Accept file types", - "validation": { - "schema": { - "type": "string" - } - } - }, - "maxSize": { - "type": "code", - "displayName": "Max size limit (Bytes)", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "minSize": { - "type": "code", - "displayName": "Min size limit (Bytes)", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "parseContent": { - "type": "toggle", - "displayName": "Parse content", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "parseFileType": { - "type": "select", - "displayName": "File type", - "options": [ - { - "name": "Autodetect from extension", - "value": "auto-detect" - }, - { - "name": "CSV", - "value": "csv" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onFileSelected": { - "displayName": "On File Selected" - } - }, - "styles": { - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "properties": { - "instructionText": { - "value": "Drag and Drop some files here, or click to select files" - }, - "enableDropzone": { - "value": "{{true}}" - }, - "enablePicker": { - "value": "{{true}}" - }, - "maxFileCount": { - "value": "{{2}}" - }, - "enableMultiple": { - "value": "{{false}}" - }, - "fileType": { - "value": "{{\"image/*\"}}" - }, - "maxSize": { - "value": "{{1048576}}" - }, - "minSize": { - "value": "{{50}}" - }, - "parseContent": { - "value": "{{false}}" - }, - "parseFileType": { - "value": "auto-detect" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "filepicker1", - "displayName": "File Picker", - "description": "File Picker", - "component": "FilePicker", - "defaultSize": { - "width": 15, - "height": 100 - }, - "actions": [ - { - "handle": "clearFiles", - "displayName": "Clear Files" - } - ], - "exposedVariables": { - "file": [ - { - "name": "", - "content": "", - "dataURL": "", - "type": "", - "parsedData": "" - } - ], - "isParsing": false - } - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 200, - "left": 4.571606172530938, - "width": 38.93270617407695, - "height": 100 - } - } - }, - "f4401979-55eb-4276-b3d8-52a5befa1752": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Path" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 70, - "left": 4.651188261951318, - "width": 13.953488372093023, - "height": 30 - } - } - }, - "11169e8e-41db-4d34-a8bb-190c0b6b1124": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Attach files" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 170, - "left": 4.651172325074638, - "width": 13.953488372093023, - "height": 30 - } - } - }, - "42399b04-4c96-4253-bac6-b21219e797bf": { - "component": { - "properties": { - "value": { - "type": "code", - "displayName": "Default value", - "validation": { - "schema": { - "type": "string" - } - } - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onChange": { - "displayName": "On change" - } - }, - "styles": { - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "properties": { - "value": { - "value": "" - }, - "placeholder": { - "value": "File Path" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 6, - "height": 30 - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "exposedVariables": { - "value": "" - }, - "actions": [ - { - "handle": "setText", - "displayName": "Set text", - "params": [ - { - "handle": "text", - "displayName": "text", - "defaultValue": "New Text" - } - ] - }, - { - "handle": "clear", - "displayName": "Clear" - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 100, - "left": 4.571624942217262, - "width": 38.96192664289661, - "height": 40 - } - } - }, - "f4c65680-adfa-46fb-8ae7-ff32c8919c72": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#9b9999ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Accepted file types: .png and .jpeg" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 300, - "left": 4.651224901553507, - "width": 38.96192664289661, - "height": 30 - } - } - }, - "fdd69706-f317-4121-b8b2-2b7f9b9659ca": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "ef473188-8da9-4977-8c6a-77c269781a0e", - "queryName": "upload" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{true}}", - "fxActive": true - } - }, - "properties": { - "text": { - "value": "Upload" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.upload.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "bab873b2-aedb-4be5-8dec-5c10c2ae94c1", - "layouts": { - "desktop": { - "top": 350, - "left": 4.651220478513762, - "width": 38.89227493164346, - "height": 50 - } - } - }, - "87ea444b-9584-4e9e-bb10-d85dbe7bfdd7": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "show-modal", - "message": "Hello world!", - "alertType": "info", - "modal": "f61d6270-bff9-43bd-8d74-b07c8e4507e4" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Change" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button2", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 88.32564346618183, - "width": 3.0136105454935143, - "height": 40 - } - } - }, - "f61d6270-bff9-43bd-8d74-b07c8e4507e4": { - "component": { - "properties": { - "title": { - "type": "code", - "displayName": "Title", - "validation": { - "schema": { - "type": "string" - } - } - }, - "hideTitleBar": { - "type": "toggle", - "displayName": "Hide title bar" - }, - "hideCloseButton": { - "type": "toggle", - "displayName": "Hide close button" - }, - "hideOnEsc": { - "type": "toggle", - "displayName": "Hide on escape" - }, - "size": { - "type": "select", - "displayName": "Modal size", - "options": [ - { - "name": "small", - "value": "sm" - }, - { - "name": "medium", - "value": "md" - }, - { - "name": "large", - "value": "lg" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "title": { - "value": "Choose Bucket from GCS" - }, - "size": { - "value": "sm" - }, - "hideTitleBar": { - "value": "{{false}}" - }, - "hideCloseButton": { - "value": "{{false}}" - }, - "hideOnEsc": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "modal1", - "displayName": "Modal", - "description": "Modal triggered by events", - "component": "Modal", - "defaultSize": { - "width": 10, - "height": 400 - }, - "exposedVariables": { - "show": false - }, - "actions": [ - { - "handle": "open", - "displayName": "Open" - }, - { - "handle": "close", - "displayName": "Close" - } - ] - }, - "layouts": { - "desktop": { - "top": 1250, - "left": 39.534890578568344, - "width": 10, - "height": 230 - } - } - }, - "ccbfef77-b2cf-491d-99c9-507c6a341bb4": { - "component": { - "properties": { - "label": { - "type": "code", - "displayName": "Label", - "validation": { - "schema": { - "type": "string" - } - } - }, - "value": { - "type": "code", - "displayName": "Default value", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - }, - "values": { - "type": "code", - "displayName": "Option values", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - } - }, - "display_values": { - "type": "code", - "displayName": "Option labels", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] - } - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Options loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onSelect": { - "displayName": "On select" - }, - "onSearchTextChanged": { - "displayName": "On search text changed" - } - }, - "styles": { - "borderRadius": { - "type": "code", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "selectedTextColor": { - "type": "color", - "displayName": "Selected Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "justifyContent": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "borderRadius": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "justifyContent": { - "value": "left" - } - }, - "validation": { - "customRule": { - "value": null - } - }, - "properties": { - "label": { - "value": "Choose Bucket:" - }, - "value": { - "value": "{{queries.listBuckets.data.buckets[0]}}" - }, - "values": { - "value": "{{queries.listBuckets.data.buckets}}" - }, - "display_values": { - "value": "{{queries.listBuckets.data.buckets}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.listBuckets.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "dropdown1", - "displayName": "Dropdown", - "description": "Select one value from options", - "defaultSize": { - "width": 8, - "height": 30 - }, - "component": "DropDown", - "validation": { - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "exposedVariables": { - "value": 2, - "searchText": "" - }, - "actions": [ - { - "handle": "selectOption", - "displayName": "Select option", - "params": [ - { - "handle": "select", - "displayName": "Select" - } - ] - } - ] - }, - "parent": "f61d6270-bff9-43bd-8d74-b07c8e4507e4", - "layouts": { - "desktop": { - "top": 40, - "left": 6.976756881526478, - "width": 36.97274974464393, - "height": 40 - } - } - }, - "a64b93c4-9add-43b7-ac26-a51032c69d92": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Button Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading State", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "textColor": { - "type": "color", - "displayName": "Text color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "loaderColor": { - "type": "color", - "displayName": "Loader color", - "validation": { - "schema": { - "type": "string" - }, - "defaultValue": false - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - }, - "defaultValue": false - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "number" - }, - "defaultValue": false - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "5caef108-9db6-46a7-90c9-e0d274a20487", - "queryName": "listFiles" - } - ], - "styles": { - "backgroundColor": { - "value": "#4586f8ff" - }, - "textColor": { - "value": "#fff" - }, - "loaderColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "List Objects" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{queries.listFiles.isLoading}}", - "fxActive": true - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "button3", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "click", - "displayName": "Click" - }, - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New Text" - } - ] - } - ] - }, - "parent": "f61d6270-bff9-43bd-8d74-b07c8e4507e4", - "layouts": { - "desktop": { - "top": 130, - "left": 6.8721549220816796, - "width": 37.01906239379223, - "height": 40 - } - } - }, - "1ad63f52-4035-4dd1-959c-f2cb9ee64c70": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Bucket: " - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text12", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 67.44186471684188, - "width": 2.031061336762763, - "height": 40 - } - } - }, - "9f207ce7-e09b-4c6d-bdba-d85933058fbd": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#0a4c98ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{components.dropdown1.value}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text13", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 30, - "left": 72.23948795814326, - "width": 7.018004501125282, - "height": 60 - } - } - }, - "492687d4-aa8b-4ed1-ab6c-6c1f2ff2ec72": { - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#910c0cff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Please select a Bucket" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text17", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 240, - "left": 27.90697510890697, - "width": 5.003411567177508, - "height": 30 - } - } - }, - "38465e58-3274-4527-b2dc-ee887bb9da61": { - "component": { - "properties": {}, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "5" - }, - "visibility": { - "value": "{{queries.listFiles.data.files == null ? false : true}}", - "fxActive": true - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "visible": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "container4", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "exposedVariables": {} - }, - "parent": "bc1b0e28-02c3-498f-8300-9d97d5f36553", - "layouts": { - "desktop": { - "top": 40, - "left": 4.651162518151161, - "width": 25.00348301361054, - "height": 850 - } - } - }, - "eb9d8228-f999-4173-8aa1-ab221563dd8d": { - "id": "eb9d8228-f999-4173-8aa1-ab221563dd8d", - "component": { - "properties": { - "data": { - "type": "code", - "displayName": "List data", - "validation": { - "schema": { - "type": "array", - "element": { - "type": "object" - } - } - } - }, - "rowHeight": { - "type": "code", - "displayName": "Row height", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "showBorder": { - "type": "code", - "displayName": "Show bottom border", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onRowClicked": { - "displayName": "Row clicked" - } - }, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "borderRadius": { - "type": "number", - "displayName": "Border radius", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onRowClicked", - "actionId": "set-custom-variable", - "message": "Hello world!", - "alertType": "info", - "key": "currentlyLoadingId", - "value": "{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}" - }, - { - "eventId": "onRowClicked", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "fdfe5bd6-deed-4b43-9f8b-7674c0959060", - "queryName": "urlfordownload" - } - ], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "visibility": { - "value": "", - "fxActive": false - }, - "disabledState": { - "value": "{{false}}" - }, - "borderRadius": { - "value": "{{5}}" - } - }, - "properties": { - "data": { - "value": "{{queries.listFiles.data.files}}" - }, - "rowHeight": { - "value": "{{70}}" - }, - "visible": { - "value": "{{true}}" - }, - "showBorder": { - "value": "{{true}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "listview2", - "displayName": "List View", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Listview", - "exposedVariables": { - "data": [ - {} - ] - } - }, - "layouts": { - "desktop": { - "top": 40, - "left": 2.251407932260419, - "width": 42.04535857090364, - "height": 750 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "201a4aa4-19f7-43bc-89b6-f07071d32d8f": { - "id": "201a4aa4-19f7-43bc-89b6-f07071d32d8f", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#0831a7ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{listItem.name}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text18", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 2.3374990023345372, - "width": 11.97667411744889, - "height": 60 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "1801dc7f-9cfd-42b4-9308-b9e8a7247a01": { - "id": "1801dc7f-9cfd-42b4-9308-b9e8a7247a01", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{moment(listItem).format(\"DD/MM/YYYY h:mm:ss a\")}}" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text19", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 32.808758754514436, - "width": 10.988266990126824, - "height": 50 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "d5cb9a4d-de68-4acf-833e-268350eab348": { - "id": "d5cb9a4d-de68-4acf-833e-268350eab348", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "{{(listItem.size/1024).toFixed(2)}} kb" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text20", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 0, - "left": 61.30283951484706, - "width": 6.046231353516493, - "height": 50 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "1504f3eb-7a7f-41e9-aa21-e3c464376c4e": { - "id": "1504f3eb-7a7f-41e9-aa21-e3c464376c4e", - "component": { - "properties": { - "source": { - "type": "code", - "displayName": "URL", - "validation": { - "schema": { - "type": "string" - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "alternativeText": { - "type": "code", - "displayName": "Alternative text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "zoomButtons": { - "type": "toggle", - "displayName": "Zoom button", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "borderType": { - "type": "select", - "displayName": "Border type", - "options": [ - { - "name": "None", - "value": "none" - }, - { - "name": "Rounded", - "value": "rounded" - }, - { - "name": "Circle", - "value": "rounded-circle" - }, - { - "name": "Thumbnail", - "value": "img-thumbnail" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - }, - "backgroundColor": { - "type": "color", - "displayName": "Background color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "padding": { - "type": "code", - "displayName": "Padding", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "imageFit": { - "type": "select", - "displayName": "Image fit", - "options": [ - { - "name": "fill", - "value": "fill" - }, - { - "name": "contain", - "value": "contain" - }, - { - "name": "cover", - "value": "cover" - }, - { - "name": "scale-down", - "value": "scale-down" - } - ], - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "open-webpage", - "message": "Hello world!", - "alertType": "info", - "url": "{{queries.urlfordownload.data.url}}" - } - ], - "styles": { - "borderType": { - "value": "none" - }, - "padding": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "imageFit": { - "value": "contain" - } - }, - "properties": { - "source": { - "value": "https://www.svgrepo.com/show/12258/download.svg" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{listItem.id === variables.currentlyLoadingId}}", - "fxActive": true - }, - "alternativeText": { - "value": "" - }, - "zoomButtons": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "image2", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 3, - "height": 100 - }, - "component": "Image", - "exposedVariables": {} - }, - "layouts": { - "desktop": { - "top": 10, - "left": 84.29852707937381, - "width": 2.0347085494361803, - "height": 30 - } - }, - "parent": "eb9d8228-f999-4173-8aa1-ab221563dd8d" - }, - "8c9e0be7-91e6-48f4-b604-fd9f079da736": { - "id": "8c9e0be7-91e6-48f4-b604-fd9f079da736", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "center" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Name" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text16", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 4.651160676682724, - "width": 3.02184474690101, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "927c6186-fa7f-4f52-9545-a9a5aac68e6a": { - "id": "927c6186-fa7f-4f52-9545-a9a5aac68e6a", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Updated on" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text21", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 34.88390917709527, - "width": 7.008187219741155, - "height": 40 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "58a0747c-f5ef-4684-be4e-e9758c1d0b03": { - "id": "58a0747c-f5ef-4684-be4e-e9758c1d0b03", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Actions" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text22", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 83.72136505021093, - "width": 3.9899564903050453, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - }, - "f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723": { - "id": "f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723", - "component": { - "properties": { - "text": { - "type": "code", - "displayName": "Text", - "validation": { - "schema": { - "type": "union", - "schemas": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - } - } - }, - "loadingState": { - "type": "toggle", - "displayName": "Show loading state", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "general": { - "tooltip": { - "type": "code", - "displayName": "Tooltip", - "validation": { - "schema": { - "type": "string" - } - } - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "events": {}, - "styles": { - "textSize": { - "type": "number", - "displayName": "Text Size", - "validation": { - "schema": { - "type": "number" - } - } - }, - "textColor": { - "type": "color", - "displayName": "Text Color", - "validation": { - "schema": { - "type": "string" - } - } - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text", - "validation": { - "schema": { - "type": "string" - } - } - }, - "visibility": { - "type": "toggle", - "displayName": "Visibility", - "validation": { - "schema": { - "type": "boolean" - } - } - }, - "disabledState": { - "type": "toggle", - "displayName": "Disable", - "validation": { - "schema": { - "type": "boolean" - } - } - } - }, - "validate": true, - "generalStyles": { - "boxShadow": { - "type": "boxShadow", - "displayName": "Box Shadow" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": "{{true}}" - }, - "showOnMobile": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textSize": { - "value": 14 - }, - "textColor": { - "value": "#000" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - }, - "properties": { - "text": { - "value": "Size" - }, - "visible": { - "value": "{{true}}" - }, - "loadingState": { - "value": "{{false}}" - } - }, - "general": {}, - "generalStyles": { - "boxShadow": { - "value": "0px 0px 0px 0px #00000040" - } - }, - "exposedVariables": {} - }, - "name": "text23", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "defaultSize": { - "width": 6, - "height": 30 - }, - "exposedVariables": {}, - "actions": [ - { - "handle": "setText", - "displayName": "Set Text", - "params": [ - { - "handle": "text", - "displayName": "Text", - "defaultValue": "New text" - } - ] - } - ] - }, - "layouts": { - "desktop": { - "top": 10, - "left": 62.833379149847055, - "width": 3.9899564903050453, - "height": 30 - } - }, - "parent": "38465e58-3274-4527-b2dc-ee887bb9da61" - } - }, - "globalSettings": { - "hideHeader": true, - "appInMaintenance": false, - "canvasMaxWidth": "1920", - "canvasMaxHeight": 2400, - "canvasBackgroundColor": "#edeff5", - "backgroundFxQuery": "" - } - }, - "appId": "b98bfa27-71ca-4382-be70-660d9903f570", - "createdAt": "2022-08-16T17:21:13.093Z", - "updatedAt": "2022-08-17T20:46:38.753Z" - } - ], - "tooljetVersion": "1.21.5-ee1.3.13-cloud1.1" -} \ No newline at end of file +{"id":"b98bfa27-71ca-4382-be70-660d9903f570","name":"file_explorer_gcs","slug":"file_explorer_gcs","isPublic":true,"isMaintenanceOn":false,"icon":null,"organizationId":"7fff090d-7c26-48c4-8a58-c1c8bee62225","currentVersionId":null,"userId":"255e4bf9-ba1e-458e-9269-030735c526ad","createdAt":"2022-08-14T17:32:31.546Z","updatedAt":"2022-08-17T20:46:53.491Z","editingVersion":{"id":"cd1205bb-a275-435b-9a13-0848fc33813a","name":"v8","definition":{"components":{"eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"layouts":{"desktop":{"top":0,"left":2.4529185793653596e-8,"width":43,"height":60}}},"bc1b0e28-02c3-498f-8300-9d97d5f36553":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#f5f7fcff"},"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"layouts":{"desktop":{"top":50,"left":2.4529185793653596e-8,"width":43,"height":940}}},"82083134-fec5-48d8-bf94-aeaac12ecf69":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#4586f8ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"

GCS File Explorer

"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670","layouts":{"desktop":{"top":0,"left":4.573642713133641,"width":7.986821705426356,"height":60}}},"bab873b2-aedb-4be5-8dec-5c10c2ae94c1":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"5"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container3","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":108,"left":67.44187196139158,"width":11.99119422712821,"height":420}}},"b5c52fd2-414e-4afd-a4bc-e521fffb8d80":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"dividerColor":{"type":"color","displayName":"Divider Color","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"dividerColor":{"value":"#E7E8EA"}},"properties":{},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"divider1","displayName":"Divider","description":"Separator between components","component":"Divider","defaultSize":{"width":10,"height":10},"exposedVariables":{"value":{}}},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":50,"left":0,"width":43.02439230915107,"height":10}}},"9328491e-7962-4db3-938e-0e055528f36b":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#223170ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"

Upload to bucket

"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":10,"left":4.651292515902895,"width":19.074263827543284,"height":40}}},"cfdc8736-2374-46e4-872e-f4cff861ec74":{"component":{"properties":{"instructionText":{"type":"code","displayName":"Instruction Text","validation":{"schema":{"type":"string"}}},"enableDropzone":{"type":"code","displayName":"Use Drop zone","validation":{"schema":{"type":"boolean"}}},"enablePicker":{"type":"code","displayName":"Use File Picker","validation":{"schema":{"type":"boolean"}}},"enableMultiple":{"type":"code","displayName":"Pick multiple files","validation":{"schema":{"type":"boolean"}}},"maxFileCount":{"type":"code","displayName":"Max file count","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"fileType":{"type":"code","displayName":"Accept file types","validation":{"schema":{"type":"string"}}},"maxSize":{"type":"code","displayName":"Max size limit (Bytes)","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"minSize":{"type":"code","displayName":"Min size limit (Bytes)","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"parseContent":{"type":"toggle","displayName":"Parse content","validation":{"schema":{"type":"boolean"}}},"parseFileType":{"type":"select","displayName":"File type","options":[{"name":"Autodetect from extension","value":"auto-detect"},{"name":"CSV","value":"csv"}],"validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onFileSelected":{"displayName":"On File Selected"}},"styles":{"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"properties":{"instructionText":{"value":"Drag and Drop some files here, or click to select files"},"enableDropzone":{"value":"{{true}}"},"enablePicker":{"value":"{{true}}"},"maxFileCount":{"value":"{{2}}"},"enableMultiple":{"value":"{{false}}"},"fileType":{"value":"{{\"image/*\"}}"},"maxSize":{"value":"{{1048576}}"},"minSize":{"value":"{{50}}"},"parseContent":{"value":"{{false}}"},"parseFileType":{"value":"auto-detect"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"filepicker1","displayName":"File Picker","description":"File Picker","component":"FilePicker","defaultSize":{"width":15,"height":100},"actions":[{"handle":"clearFiles","displayName":"Clear Files"}],"exposedVariables":{"file":[{"name":"","content":"","dataURL":"","type":"","parsedData":""}],"isParsing":false}},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":200,"left":4.571594407163237,"width":38.93270617407695,"height":100}}},"f4401979-55eb-4276-b3d8-52a5befa1752":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Path"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":70,"left":4.651188261951318,"width":13.953488372093023,"height":30}}},"11169e8e-41db-4d34-a8bb-190c0b6b1124":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Attach files"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":170,"left":4.651172325074638,"width":13.953488372093023,"height":30}}},"42399b04-4c96-4253-bac6-b21219e797bf":{"component":{"properties":{"value":{"type":"code","displayName":"Default value","validation":{"schema":{"type":"string"}}},"placeholder":{"type":"code","displayName":"Placeholder","validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onChange":{"displayName":"On change"}},"styles":{"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"properties":{"value":{"value":""},"placeholder":{"value":"File Path"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":6,"height":30},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"exposedVariables":{"value":""},"actions":[{"handle":"setText","displayName":"Set text","params":[{"handle":"text","displayName":"text","defaultValue":"New Text"}]},{"handle":"clear","displayName":"Clear"}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":100,"left":4.571626808507315,"width":38.96192664289661,"height":40}}},"f4c65680-adfa-46fb-8ae7-ff32c8919c72":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#9b9999ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Accepted file types: .png and .jpeg"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":300,"left":4.651224901553507,"width":38.96192664289661,"height":30}}},"fdd69706-f317-4121-b8b2-2b7f9b9659ca":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"878ffc7b-eace-4a71-948a-913728ad9288","queryName":"upload"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{false}}","fxActive":false}},"properties":{"text":{"value":"Upload"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.upload.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":350,"left":4.6512178972348845,"width":38.89227493164346,"height":50}}},"87ea444b-9584-4e9e-bb10-d85dbe7bfdd7":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"show-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Change"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button2","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":88.32564346618183,"width":3.0136105454935143,"height":40}}},"f61d6270-bff9-43bd-8d74-b07c8e4507e4":{"component":{"properties":{"title":{"type":"code","displayName":"Title","validation":{"schema":{"type":"string"}}},"hideTitleBar":{"type":"toggle","displayName":"Hide title bar"},"hideCloseButton":{"type":"toggle","displayName":"Hide close button"},"hideOnEsc":{"type":"toggle","displayName":"Hide on escape"},"size":{"type":"select","displayName":"Modal size","options":[{"name":"small","value":"sm"},{"name":"medium","value":"md"},{"name":"large","value":"lg"}],"validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"disabledState":{"value":"{{false}}"}},"properties":{"title":{"value":"Choose Bucket from GCS"},"size":{"value":"sm"},"hideTitleBar":{"value":"{{false}}"},"hideCloseButton":{"value":"{{false}}"},"hideOnEsc":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"modal1","displayName":"Modal","description":"Modal triggered by events","component":"Modal","defaultSize":{"width":10,"height":400},"exposedVariables":{"show":false},"actions":[{"handle":"open","displayName":"Open"},{"handle":"close","displayName":"Close"}]},"layouts":{"desktop":{"top":1040,"left":51.16279674018522,"width":10,"height":230}}},"ccbfef77-b2cf-491d-99c9-507c6a341bb4":{"component":{"properties":{"label":{"type":"code","displayName":"Label","validation":{"schema":{"type":"string"}}},"value":{"type":"code","displayName":"Default value","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}},"values":{"type":"code","displayName":"Option values","validation":{"schema":{"type":"array","element":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}}},"display_values":{"type":"code","displayName":"Option labels","validation":{"schema":{"type":"array","element":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}}},"loadingState":{"type":"toggle","displayName":"Options loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onSelect":{"displayName":"On select"},"onSearchTextChanged":{"displayName":"On search text changed"}},"styles":{"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"number"},{"type":"string"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"selectedTextColor":{"type":"color","displayName":"Selected Text Color","validation":{"schema":{"type":"string"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"justifyContent":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"justifyContent":{"value":"left"}},"validation":{"customRule":{"value":null}},"properties":{"label":{"value":"Choose Bucket:"},"value":{"value":"{{queries.listBuckets.data.buckets[0]}}"},"values":{"value":"{{queries.listBuckets.data.buckets}}"},"display_values":{"value":"{{queries.listBuckets.data.buckets}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.listBuckets.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"dropdown1","displayName":"Dropdown","description":"Select one value from options","defaultSize":{"width":8,"height":30},"component":"DropDown","validation":{"customRule":{"type":"code","displayName":"Custom validation"}},"exposedVariables":{"value":2,"searchText":""},"actions":[{"handle":"selectOption","displayName":"Select option","params":[{"handle":"select","displayName":"Select"}]}]},"parent":"f61d6270-bff9-43bd-8d74-b07c8e4507e4","layouts":{"desktop":{"top":40,"left":6.976754743229841,"width":36.97274974464393,"height":40}}},"a64b93c4-9add-43b7-ac26-a51032c69d92":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"750ce2ce-3749-4325-9377-50264ab1188e","queryName":"listFiles"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"List Objects"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.listFiles.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button3","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"f61d6270-bff9-43bd-8d74-b07c8e4507e4","layouts":{"desktop":{"top":130,"left":6.8721574788313715,"width":37.01906239379223,"height":40}}},"1ad63f52-4035-4dd1-959c-f2cb9ee64c70":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Bucket: "},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text12","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":67.44186512549514,"width":2.031061336762763,"height":40}}},"9f207ce7-e09b-4c6d-bdba-d85933058fbd":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#0a4c98ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{components.dropdown1.value}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text13","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":30,"left":72.23948881934179,"width":7.018004501125282,"height":60}}},"492687d4-aa8b-4ed1-ab6c-6c1f2ff2ec72":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#910c0cff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Please select a Bucket"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text17","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":240,"left":27.906975084377784,"width":5.003411567177508,"height":30}}},"38465e58-3274-4527-b2dc-ee887bb9da61":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"5"},"visibility":{"value":"{{queries.listFiles.data.files == null ? false : true}}","fxActive":true},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container4","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":4.651169755454559,"width":25.00348301361054,"height":850}}},"eb9d8228-f999-4173-8aa1-ab221563dd8d":{"id":"eb9d8228-f999-4173-8aa1-ab221563dd8d","component":{"properties":{"data":{"type":"code","displayName":"List data","validation":{"schema":{"type":"array","element":{"type":"object"}}}},"rowHeight":{"type":"code","displayName":"Row height","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"showBorder":{"type":"code","displayName":"Show bottom border","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onRowClicked":{"displayName":"Row clicked"}},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onRowClicked","actionId":"set-custom-variable","message":"Hello world!","alertType":"info","key":"currentlyLoadingId","value":"{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}"},{"eventId":"onRowClicked","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"63add963-cc26-4498-a318-9613349854d6","queryName":"urlfordownload"}],"styles":{"backgroundColor":{"value":"#ffffffff"},"visibility":{"value":"","fxActive":false},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"properties":{"data":{"value":"{{queries.listFiles.data.files}}"},"rowHeight":{"value":"{{70}}"},"visible":{"value":"{{true}}"},"showBorder":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"listview2","displayName":"List View","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Listview","exposedVariables":{"data":[{}]}},"layouts":{"desktop":{"top":40,"left":2.2514073754219828,"width":42.04535857090364,"height":750}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"201a4aa4-19f7-43bc-89b6-f07071d32d8f":{"id":"201a4aa4-19f7-43bc-89b6-f07071d32d8f","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#0831a7ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{listItem.name}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text18","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":2.3374985208155206,"width":11.97667411744889,"height":60}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"1801dc7f-9cfd-42b4-9308-b9e8a7247a01":{"id":"1801dc7f-9cfd-42b4-9308-b9e8a7247a01","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{moment(listItem).format(\"DD/MM/YYYY h:mm:ss a\")}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text19","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":32.80875988475089,"width":10.988266990126824,"height":50}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"d5cb9a4d-de68-4acf-833e-268350eab348":{"id":"d5cb9a4d-de68-4acf-833e-268350eab348","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{(listItem.size/1024).toFixed(2)}} kb"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text20","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":61.30284202143677,"width":6.046231353516493,"height":50}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"1504f3eb-7a7f-41e9-aa21-e3c464376c4e":{"id":"1504f3eb-7a7f-41e9-aa21-e3c464376c4e","component":{"properties":{"source":{"type":"code","displayName":"URL","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading state","validation":{"schema":{"type":"boolean"}}},"alternativeText":{"type":"code","displayName":"Alternative text","validation":{"schema":{"type":"string"}}},"zoomButtons":{"type":"toggle","displayName":"Zoom button","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"borderType":{"type":"select","displayName":"Border type","options":[{"name":"None","value":"none"},{"name":"Rounded","value":"rounded"},{"name":"Circle","value":"rounded-circle"},{"name":"Thumbnail","value":"img-thumbnail"}],"validation":{"schema":{"type":"string"}}},"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"padding":{"type":"code","displayName":"Padding","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"imageFit":{"type":"select","displayName":"Image fit","options":[{"name":"fill","value":"fill"},{"name":"contain","value":"contain"},{"name":"cover","value":"cover"},{"name":"scale-down","value":"scale-down"}],"validation":{"schema":{"type":"string"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"open-webpage","message":"Hello world!","alertType":"info","url":"{{queries.urlfordownload.data.url}}"}],"styles":{"borderType":{"value":"none"},"padding":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"imageFit":{"value":"contain"}},"properties":{"source":{"value":"https://www.svgrepo.com/show/12258/download.svg"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{listItem.id === variables.currentlyLoadingId}}","fxActive":true},"alternativeText":{"value":""},"zoomButtons":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"image2","displayName":"Image","description":"Display an Image","defaultSize":{"width":3,"height":100},"component":"Image","exposedVariables":{}},"layouts":{"desktop":{"top":10,"left":84.29852559087144,"width":2.0347085494361803,"height":30}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"8c9e0be7-91e6-48f4-b604-fd9f079da736":{"id":"8c9e0be7-91e6-48f4-b604-fd9f079da736","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"center"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Name"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text16","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":4.651160676682724,"width":3.02184474690101,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"927c6186-fa7f-4f52-9545-a9a5aac68e6a":{"id":"927c6186-fa7f-4f52-9545-a9a5aac68e6a","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Updated on"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text21","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":34.88390917709527,"width":7.008187219741155,"height":40}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"58a0747c-f5ef-4684-be4e-e9758c1d0b03":{"id":"58a0747c-f5ef-4684-be4e-e9758c1d0b03","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Actions"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text22","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":83.72136505021093,"width":3.9899564903050453,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723":{"id":"f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Size"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text23","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":62.833379149847055,"width":3.9899564903050453,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"}},"globalSettings":{"hideHeader":true,"appInMaintenance":false,"canvasMaxWidth":"1920","canvasMaxHeight":2400,"canvasBackgroundColor":"#edeff5","backgroundFxQuery":""}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","createdAt":"2022-08-21T20:09:25.054Z","updatedAt":"2022-08-21T22:24:15.623Z","homePageId":"0af9a59d-04b6-4076-8c95-92707aa7bfa9","pages":{"0af9a59d-04b6-4076-8c95-92707aa7bfa9":{"name":"Home","handle":"home"}},"showViewerNavigation":false},"dataQueries":[{"id":"440eeadb-b81d-4e4f-a449-b907658430db","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-14T19:55:30.169Z","updatedAt":"2022-08-14T19:56:18.618Z"},{"id":"b4787869-31f0-4c06-aad9-845f5ddee2e1","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"c1169979-cf8a-4b88-b891-10153b4deb8f","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-16T05:14:53.235Z","updatedAt":"2022-08-16T11:41:39.292Z"},{"id":"73b2191b-eff3-41ed-9566-87e1b676a6c2","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}"},"dataSourceId":"c1169979-cf8a-4b88-b891-10153b4deb8f","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-16T05:19:18.327Z","updatedAt":"2022-08-16T05:19:18.327Z"},{"id":"c5406064-4a11-4698-aee4-a4fd211a8f48","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"73b2191b-eff3-41ed-9566-87e1b676a6c2","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"c1169979-cf8a-4b88-b891-10153b4deb8f","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-16T05:31:44.762Z","updatedAt":"2022-08-16T11:28:37.927Z"},{"id":"c03ed704-4a81-402e-a575-f928f4a1f8f9","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}"},"dataSourceId":"c1169979-cf8a-4b88-b891-10153b4deb8f","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-16T11:12:01.673Z","updatedAt":"2022-08-16T11:14:57.563Z"},{"id":"a9fa8b72-0f38-4fc8-8e00-0d6d29532dff","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"6abc1056-ece2-482b-9a99-6b73a458d235","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:43:05.072Z"},{"id":"75b7d17b-5951-45b9-8ad2-9259d5ed1154","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"b1f11108-e5fe-4c81-994f-7d4690b3be6b","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"6abc1056-ece2-482b-9a99-6b73a458d235","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:43:05.072Z"},{"id":"312fbb2b-9726-4a0e-a3b7-416df7a880d5","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}"},"dataSourceId":"6abc1056-ece2-482b-9a99-6b73a458d235","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:43:05.072Z"},{"id":"6867c113-2b50-48a0-b069-c50c45a1162a","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:43:05.072Z"},{"id":"b1f11108-e5fe-4c81-994f-7d4690b3be6b","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"6abc1056-ece2-482b-9a99-6b73a458d235","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:53:51.434Z"},{"id":"347f5c9b-df47-4909-8c1c-87533650d4a2","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"54a1d473-7d08-47bc-a1e4-74aeeec1dc5b","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"c5eda19e-6dc8-42eb-9650-b6dcf0064b21","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"54a1d473-7d08-47bc-a1e4-74aeeec1dc5b","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"c5eda19e-6dc8-42eb-9650-b6dcf0064b21","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"a028e50f-34f8-4c2d-86db-c9d7d454ae32","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"c5eda19e-6dc8-42eb-9650-b6dcf0064b21","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"9459defa-c071-4f59-8363-b65ab1f0bf87","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}"},"dataSourceId":"c5eda19e-6dc8-42eb-9650-b6dcf0064b21","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"ce5e2168-0e99-4cd5-b6f4-9002dda4ef56","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"6c4fc4f4-72cb-45e9-84a4-312023700f6e","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"957418b3-d9c0-4c06-9cad-fadb93816a65","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"4c2dfec7-8c20-4fbe-a24a-61540fba8ddd","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"6c4fc4f4-72cb-45e9-84a4-312023700f6e","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"957418b3-d9c0-4c06-9cad-fadb93816a65","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"cae22427-7c56-4c5d-8c88-2d81a522b164","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"db5c0e90-b2c2-4e9a-818a-9da88fb587b9","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}"},"dataSourceId":"957418b3-d9c0-4c06-9cad-fadb93816a65","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"00e2372c-985c-4bca-90c4-c53386e3fad6","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"957418b3-d9c0-4c06-9cad-fadb93816a65","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"902889b8-a9b8-4765-baeb-67aa87a2d3e0","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"349ff067-1751-4baf-9138-2203c3d96d21","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview1.selectedRowId].name}}"},"dataSourceId":"d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"19d607cb-455b-42b4-b043-64a55b6444b9","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"98ee0cd9-0ff8-44dd-ab82-5129ad92a196","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"8723b00a-890e-455b-88a9-418340a4a069","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"8723b00a-890e-455b-88a9-418340a4a069","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"6f000797-0a8d-4268-9a9d-6e651801fa18","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"86795aa9-3160-44fe-8d0e-a5a2d419fec0","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"7ecd7434-254e-465a-a091-b3b952427e41","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T13:04:56.626Z"},{"id":"86795aa9-3160-44fe-8d0e-a5a2d419fec0","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"7ecd7434-254e-465a-a091-b3b952427e41","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T13:04:56.626Z"},{"id":"ce32b1aa-5106-44c9-8d97-e0c5fcdb75af","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"7ecd7434-254e-465a-a091-b3b952427e41","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T13:04:56.626Z"},{"id":"d4d7598b-f045-40a0-9583-3c4b3e78bd6f","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}"},"dataSourceId":"7ecd7434-254e-465a-a091-b3b952427e41","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T17:20:13.295Z"},{"id":"295b96c3-01cf-4587-a3a6-f327d3302b0e","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T13:04:56.626Z"},{"id":"74607834-cc7f-4009-bff8-51e220cf26eb","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"d1b45765-8da1-459e-a8e4-5c9d59edc57a","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-16T17:21:13.096Z"},{"id":"5caef108-9db6-46a7-90c9-e0d274a20487","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"d1b45765-8da1-459e-a8e4-5c9d59edc57a","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-16T17:21:13.096Z"},{"id":"fdfe5bd6-deed-4b43-9f8b-7674c0959060","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}","events":[{"eventId":"onDataQuerySuccess","actionId":"unset-custom-variable","message":"Hello world!","alertType":"info","key":"currentlyLoadingId","value":"{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}"}]},"dataSourceId":"d1b45765-8da1-459e-a8e4-5c9d59edc57a","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-17T11:05:27.269Z"},{"id":"ef473188-8da9-4977-8c6a-77c269781a0e","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"5caef108-9db6-46a7-90c9-e0d274a20487","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"d1b45765-8da1-459e-a8e4-5c9d59edc57a","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-16T17:21:13.096Z"},{"id":"57c909c9-2817-4558-932f-b72d73f83629","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-16T17:21:13.096Z"},{"id":"750ce2ce-3749-4325-9377-50264ab1188e","name":"listFiles","kind":"gcs","options":{"operation":"list_files","bucket":"{{components.dropdown1.value}}","events":[{"eventId":"onDataQuerySuccess","actionId":"close-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}]},"dataSourceId":"93c027be-2b79-4e39-8317-a6dadd80eb74","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:09:25.058Z"},{"id":"878ffc7b-eace-4a71-948a-913728ad9288","name":"upload","kind":"gcs","options":{"operation":"upload_file","bucket":"{{components.dropdown1.value}}","file":"{{components.textinput1.value}}","contentType":"{{components.filepicker1.file[0].type}}","data":"{{components.filepicker1.file[0].content}}","encoding":"utf8","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"750ce2ce-3749-4325-9377-50264ab1188e","queryName":"listFiles"},{"eventId":"onDataQuerySuccess","actionId":"control-component","message":"Hello world!","alertType":"info","componentSpecificActionHandle":"clearFiles","componentId":"cfdc8736-2374-46e4-872e-f4cff861ec74","componentSpecificActionParams":[]}]},"dataSourceId":"93c027be-2b79-4e39-8317-a6dadd80eb74","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:09:25.058Z"},{"id":"63add963-cc26-4498-a318-9613349854d6","name":"urlfordownload","kind":"gcs","options":{"operation":"signed_url_for_get","bucket":"{{components.dropdown1.value}}","file":"{{queries.listFiles.data.files[components.listview2.selectedRowId].name}}","events":[{"eventId":"onDataQuerySuccess","actionId":"unset-custom-variable","message":"Hello world!","alertType":"info","key":"currentlyLoadingId","value":"{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}"}]},"dataSourceId":"93c027be-2b79-4e39-8317-a6dadd80eb74","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:09:25.058Z"},{"id":"82ed585a-29e4-43a4-9fb8-5b16e2935a0a","name":"showModalOnPageLoad","kind":"runjs","options":{"code":"actions.showModal('modal1')","runOnPageLoad":true},"dataSourceId":null,"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:09:25.058Z"},{"id":"a428b6b5-d3e2-415f-8d55-da35c33082bc","name":"listBuckets","kind":"gcs","options":{"operation":"list_buckets","runOnPageLoad":true},"dataSourceId":"93c027be-2b79-4e39-8317-a6dadd80eb74","appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:09:25.058Z"}],"dataSources":[{"id":"c1169979-cf8a-4b88-b891-10153b4deb8f","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"5f53b412-0e07-4d83-b9eb-684fd08a6c12","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"65ed56b7-bd8b-4c63-ac72-722cd8613fd6","createdAt":"2022-08-14T18:57:09.085Z","updatedAt":"2022-08-16T10:29:17.339Z"},{"id":"6abc1056-ece2-482b-9a99-6b73a458d235","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"d5ec2e7c-1846-42ee-8cd0-7b6b2513c210","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"03a42c53-d2c1-4d91-b5a4-df5cf310e7a2","createdAt":"2022-08-16T11:43:05.072Z","updatedAt":"2022-08-16T11:43:05.072Z"},{"id":"c5eda19e-6dc8-42eb-9650-b6dcf0064b21","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"d678d865-43ea-4ebb-bd4f-1c55b0b98a67","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"0181146c-90ad-4bdd-a76a-91558df1c413","createdAt":"2022-08-16T12:08:22.039Z","updatedAt":"2022-08-16T12:08:22.039Z"},{"id":"957418b3-d9c0-4c06-9cad-fadb93816a65","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"a999316e-0650-4fbc-8aad-d8b42aad3cce","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"26a87aa8-af99-467a-9830-a052f97703db","createdAt":"2022-08-16T12:20:14.816Z","updatedAt":"2022-08-16T12:20:14.816Z"},{"id":"d5f378df-417b-47f5-ac4c-cf6cb4c7d3f7","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"9a5d7d7f-8f96-438d-bd86-3d07a8c804d3","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"88788351-bee6-455d-a059-e8150f9833c7","createdAt":"2022-08-16T12:55:48.044Z","updatedAt":"2022-08-16T12:55:48.044Z"},{"id":"7ecd7434-254e-465a-a091-b3b952427e41","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"3723ec92-2b2d-4a55-ab67-085c66b1b1e3","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"c0317221-41e9-4e84-9b17-ca9f9770f588","createdAt":"2022-08-16T13:04:56.626Z","updatedAt":"2022-08-16T13:04:56.626Z"},{"id":"d1b45765-8da1-459e-a8e4-5c9d59edc57a","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"b11f30bd-f491-4dc2-8008-e5c843b70224","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","createdAt":"2022-08-16T17:21:13.096Z","updatedAt":"2022-08-16T17:21:13.096Z"},{"id":"93c027be-2b79-4e39-8317-a6dadd80eb74","name":"GCS","kind":"gcs","options":{"private_key":{"credential_id":"48b44e33-251e-49aa-90c7-938bbbdc777b","encrypted":true}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","appVersionId":"cd1205bb-a275-435b-9a13-0848fc33813a","createdAt":"2022-08-21T20:09:25.058Z","updatedAt":"2022-08-21T20:57:08.474Z"}],"appVersions":[{"id":"a41d85f8-12b2-480c-af80-8a0d39ef6f57","name":"v7","definition":{"components":{"eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"layouts":{"desktop":{"top":0,"left":2.4529185793653596e-8,"width":43,"height":60}}},"bc1b0e28-02c3-498f-8300-9d97d5f36553":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#f5f7fcff"},"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"layouts":{"desktop":{"top":50,"left":0,"width":43,"height":940}}},"82083134-fec5-48d8-bf94-aeaac12ecf69":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#4586f8ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"

GCS File Explorer

"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"eea5b1c1-6aa6-4865-83b4-3e0e9a3a3670","layouts":{"desktop":{"top":0,"left":4.573642713133641,"width":7.986821705426356,"height":60}}},"bab873b2-aedb-4be5-8dec-5c10c2ae94c1":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"5"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container3","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":108,"left":67.44186940464189,"width":11.99119422712821,"height":420}}},"b5c52fd2-414e-4afd-a4bc-e521fffb8d80":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"dividerColor":{"type":"color","displayName":"Divider Color","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"dividerColor":{"value":"#E7E8EA"}},"properties":{},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"divider1","displayName":"Divider","description":"Separator between components","component":"Divider","defaultSize":{"width":10,"height":10},"exposedVariables":{"value":{}}},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":50,"left":0,"width":43.02439230915107,"height":10}}},"9328491e-7962-4db3-938e-0e055528f36b":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#223170ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"

Upload to bucket

"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":10,"left":4.651292515902895,"width":19.074263827543284,"height":40}}},"cfdc8736-2374-46e4-872e-f4cff861ec74":{"component":{"properties":{"instructionText":{"type":"code","displayName":"Instruction Text","validation":{"schema":{"type":"string"}}},"enableDropzone":{"type":"code","displayName":"Use Drop zone","validation":{"schema":{"type":"boolean"}}},"enablePicker":{"type":"code","displayName":"Use File Picker","validation":{"schema":{"type":"boolean"}}},"enableMultiple":{"type":"code","displayName":"Pick multiple files","validation":{"schema":{"type":"boolean"}}},"maxFileCount":{"type":"code","displayName":"Max file count","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"fileType":{"type":"code","displayName":"Accept file types","validation":{"schema":{"type":"string"}}},"maxSize":{"type":"code","displayName":"Max size limit (Bytes)","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"minSize":{"type":"code","displayName":"Min size limit (Bytes)","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"parseContent":{"type":"toggle","displayName":"Parse content","validation":{"schema":{"type":"boolean"}}},"parseFileType":{"type":"select","displayName":"File type","options":[{"name":"Autodetect from extension","value":"auto-detect"},{"name":"CSV","value":"csv"}],"validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onFileSelected":{"displayName":"On File Selected"}},"styles":{"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"properties":{"instructionText":{"value":"Drag and Drop some files here, or click to select files"},"enableDropzone":{"value":"{{true}}"},"enablePicker":{"value":"{{true}}"},"maxFileCount":{"value":"{{2}}"},"enableMultiple":{"value":"{{false}}"},"fileType":{"value":"{{\"image/*\"}}"},"maxSize":{"value":"{{1048576}}"},"minSize":{"value":"{{50}}"},"parseContent":{"value":"{{false}}"},"parseFileType":{"value":"auto-detect"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"filepicker1","displayName":"File Picker","description":"File Picker","component":"FilePicker","defaultSize":{"width":15,"height":100},"actions":[{"handle":"clearFiles","displayName":"Clear Files"}],"exposedVariables":{"file":[{"name":"","content":"","dataURL":"","type":"","parsedData":""}],"isParsing":false}},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":200,"left":4.571606172530938,"width":38.93270617407695,"height":100}}},"f4401979-55eb-4276-b3d8-52a5befa1752":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Path"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":70,"left":4.651188261951318,"width":13.953488372093023,"height":30}}},"11169e8e-41db-4d34-a8bb-190c0b6b1124":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Attach files"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":170,"left":4.651172325074638,"width":13.953488372093023,"height":30}}},"42399b04-4c96-4253-bac6-b21219e797bf":{"component":{"properties":{"value":{"type":"code","displayName":"Default value","validation":{"schema":{"type":"string"}}},"placeholder":{"type":"code","displayName":"Placeholder","validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onChange":{"displayName":"On change"}},"styles":{"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"properties":{"value":{"value":""},"placeholder":{"value":"File Path"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":6,"height":30},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"exposedVariables":{"value":""},"actions":[{"handle":"setText","displayName":"Set text","params":[{"handle":"text","displayName":"text","defaultValue":"New Text"}]},{"handle":"clear","displayName":"Clear"}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":100,"left":4.571624942217262,"width":38.96192664289661,"height":40}}},"f4c65680-adfa-46fb-8ae7-ff32c8919c72":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#9b9999ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Accepted file types: .png and .jpeg"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":300,"left":4.651224901553507,"width":38.96192664289661,"height":30}}},"fdd69706-f317-4121-b8b2-2b7f9b9659ca":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"ef473188-8da9-4977-8c6a-77c269781a0e","queryName":"upload"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{true}}","fxActive":true}},"properties":{"text":{"value":"Upload"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.upload.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"bab873b2-aedb-4be5-8dec-5c10c2ae94c1","layouts":{"desktop":{"top":350,"left":4.651220478513762,"width":38.89227493164346,"height":50}}},"87ea444b-9584-4e9e-bb10-d85dbe7bfdd7":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"show-modal","message":"Hello world!","alertType":"info","modal":"f61d6270-bff9-43bd-8d74-b07c8e4507e4"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Change"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button2","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":88.32564346618183,"width":3.0136105454935143,"height":40}}},"f61d6270-bff9-43bd-8d74-b07c8e4507e4":{"component":{"properties":{"title":{"type":"code","displayName":"Title","validation":{"schema":{"type":"string"}}},"hideTitleBar":{"type":"toggle","displayName":"Hide title bar"},"hideCloseButton":{"type":"toggle","displayName":"Hide close button"},"hideOnEsc":{"type":"toggle","displayName":"Hide on escape"},"size":{"type":"select","displayName":"Modal size","options":[{"name":"small","value":"sm"},{"name":"medium","value":"md"},{"name":"large","value":"lg"}],"validation":{"schema":{"type":"string"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"disabledState":{"value":"{{false}}"}},"properties":{"title":{"value":"Choose Bucket from GCS"},"size":{"value":"sm"},"hideTitleBar":{"value":"{{false}}"},"hideCloseButton":{"value":"{{false}}"},"hideOnEsc":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"modal1","displayName":"Modal","description":"Modal triggered by events","component":"Modal","defaultSize":{"width":10,"height":400},"exposedVariables":{"show":false},"actions":[{"handle":"open","displayName":"Open"},{"handle":"close","displayName":"Close"}]},"layouts":{"desktop":{"top":1250,"left":39.534890578568344,"width":10,"height":230}}},"ccbfef77-b2cf-491d-99c9-507c6a341bb4":{"component":{"properties":{"label":{"type":"code","displayName":"Label","validation":{"schema":{"type":"string"}}},"value":{"type":"code","displayName":"Default value","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}},"values":{"type":"code","displayName":"Option values","validation":{"schema":{"type":"array","element":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}}},"display_values":{"type":"code","displayName":"Option labels","validation":{"schema":{"type":"array","element":{"type":"union","schemas":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}}},"loadingState":{"type":"toggle","displayName":"Options loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onSelect":{"displayName":"On select"},"onSearchTextChanged":{"displayName":"On search text changed"}},"styles":{"borderRadius":{"type":"code","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"number"},{"type":"string"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"selectedTextColor":{"type":"color","displayName":"Selected Text Color","validation":{"schema":{"type":"string"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"justifyContent":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"borderRadius":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"justifyContent":{"value":"left"}},"validation":{"customRule":{"value":null}},"properties":{"label":{"value":"Choose Bucket:"},"value":{"value":"{{queries.listBuckets.data.buckets[0]}}"},"values":{"value":"{{queries.listBuckets.data.buckets}}"},"display_values":{"value":"{{queries.listBuckets.data.buckets}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.listBuckets.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"dropdown1","displayName":"Dropdown","description":"Select one value from options","defaultSize":{"width":8,"height":30},"component":"DropDown","validation":{"customRule":{"type":"code","displayName":"Custom validation"}},"exposedVariables":{"value":2,"searchText":""},"actions":[{"handle":"selectOption","displayName":"Select option","params":[{"handle":"select","displayName":"Select"}]}]},"parent":"f61d6270-bff9-43bd-8d74-b07c8e4507e4","layouts":{"desktop":{"top":40,"left":6.976756881526478,"width":36.97274974464393,"height":40}}},"a64b93c4-9add-43b7-ac26-a51032c69d92":{"component":{"properties":{"text":{"type":"code","displayName":"Button Text","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading State","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"},"defaultValue":false}},"textColor":{"type":"color","displayName":"Text color","validation":{"schema":{"type":"string"},"defaultValue":false}},"loaderColor":{"type":"color","displayName":"Loader color","validation":{"schema":{"type":"string"},"defaultValue":false}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"},"defaultValue":false}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"number"},"defaultValue":false}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"5caef108-9db6-46a7-90c9-e0d274a20487","queryName":"listFiles"}],"styles":{"backgroundColor":{"value":"#4586f8ff"},"textColor":{"value":"#fff"},"loaderColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{5}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"List Objects"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{queries.listFiles.isLoading}}","fxActive":true}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"button3","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"exposedVariables":{},"actions":[{"handle":"click","displayName":"Click"},{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New Text"}]}]},"parent":"f61d6270-bff9-43bd-8d74-b07c8e4507e4","layouts":{"desktop":{"top":130,"left":6.8721549220816796,"width":37.01906239379223,"height":40}}},"1ad63f52-4035-4dd1-959c-f2cb9ee64c70":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Bucket: "},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text12","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":67.44186471684188,"width":2.031061336762763,"height":40}}},"9f207ce7-e09b-4c6d-bdba-d85933058fbd":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#0a4c98ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{components.dropdown1.value}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text13","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":30,"left":72.23948795814326,"width":7.018004501125282,"height":60}}},"492687d4-aa8b-4ed1-ab6c-6c1f2ff2ec72":{"component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#910c0cff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Please select a Bucket"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text17","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":240,"left":27.90697510890697,"width":5.003411567177508,"height":30}}},"38465e58-3274-4527-b2dc-ee887bb9da61":{"component":{"properties":{},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"borderRadius":{"type":"code","displayName":"Border Radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"5"},"visibility":{"value":"{{queries.listFiles.data.files == null ? false : true}}","fxActive":true},"disabledState":{"value":"{{false}}"}},"properties":{"visible":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"container4","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","exposedVariables":{}},"parent":"bc1b0e28-02c3-498f-8300-9d97d5f36553","layouts":{"desktop":{"top":40,"left":4.651162518151161,"width":25.00348301361054,"height":850}}},"eb9d8228-f999-4173-8aa1-ab221563dd8d":{"id":"eb9d8228-f999-4173-8aa1-ab221563dd8d","component":{"properties":{"data":{"type":"code","displayName":"List data","validation":{"schema":{"type":"array","element":{"type":"object"}}}},"rowHeight":{"type":"code","displayName":"Row height","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"showBorder":{"type":"code","displayName":"Show bottom border","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onRowClicked":{"displayName":"Row clicked"}},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"borderRadius":{"type":"number","displayName":"Border radius","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onRowClicked","actionId":"set-custom-variable","message":"Hello world!","alertType":"info","key":"currentlyLoadingId","value":"{{queries.listFiles.data.files[components.listview2.selectedRowId].id}}"},{"eventId":"onRowClicked","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"fdfe5bd6-deed-4b43-9f8b-7674c0959060","queryName":"urlfordownload"}],"styles":{"backgroundColor":{"value":"#ffffffff"},"visibility":{"value":"","fxActive":false},"disabledState":{"value":"{{false}}"},"borderRadius":{"value":"{{5}}"}},"properties":{"data":{"value":"{{queries.listFiles.data.files}}"},"rowHeight":{"value":"{{70}}"},"visible":{"value":"{{true}}"},"showBorder":{"value":"{{true}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"listview2","displayName":"List View","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Listview","exposedVariables":{"data":[{}]}},"layouts":{"desktop":{"top":40,"left":2.251407932260419,"width":42.04535857090364,"height":750}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"201a4aa4-19f7-43bc-89b6-f07071d32d8f":{"id":"201a4aa4-19f7-43bc-89b6-f07071d32d8f","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#0831a7ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{listItem.name}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text18","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":2.3374990023345372,"width":11.97667411744889,"height":60}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"1801dc7f-9cfd-42b4-9308-b9e8a7247a01":{"id":"1801dc7f-9cfd-42b4-9308-b9e8a7247a01","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{moment(listItem).format(\"DD/MM/YYYY h:mm:ss a\")}}"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text19","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":32.808758754514436,"width":10.988266990126824,"height":50}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"d5cb9a4d-de68-4acf-833e-268350eab348":{"id":"d5cb9a4d-de68-4acf-833e-268350eab348","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"{{(listItem.size/1024).toFixed(2)}} kb"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text20","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":0,"left":61.30283951484706,"width":6.046231353516493,"height":50}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"1504f3eb-7a7f-41e9-aa21-e3c464376c4e":{"id":"1504f3eb-7a7f-41e9-aa21-e3c464376c4e","component":{"properties":{"source":{"type":"code","displayName":"URL","validation":{"schema":{"type":"string"}}},"loadingState":{"type":"toggle","displayName":"Loading state","validation":{"schema":{"type":"boolean"}}},"alternativeText":{"type":"code","displayName":"Alternative text","validation":{"schema":{"type":"string"}}},"zoomButtons":{"type":"toggle","displayName":"Zoom button","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"borderType":{"type":"select","displayName":"Border type","options":[{"name":"None","value":"none"},{"name":"Rounded","value":"rounded"},{"name":"Circle","value":"rounded-circle"},{"name":"Thumbnail","value":"img-thumbnail"}],"validation":{"schema":{"type":"string"}}},"backgroundColor":{"type":"color","displayName":"Background color","validation":{"schema":{"type":"string"}}},"padding":{"type":"code","displayName":"Padding","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}},"imageFit":{"type":"select","displayName":"Image fit","options":[{"name":"fill","value":"fill"},{"name":"contain","value":"contain"},{"name":"cover","value":"cover"},{"name":"scale-down","value":"scale-down"}],"validation":{"schema":{"type":"string"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[{"eventId":"onClick","actionId":"open-webpage","message":"Hello world!","alertType":"info","url":"{{queries.urlfordownload.data.url}}"}],"styles":{"borderType":{"value":"none"},"padding":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"},"imageFit":{"value":"contain"}},"properties":{"source":{"value":"https://www.svgrepo.com/show/12258/download.svg"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{listItem.id === variables.currentlyLoadingId}}","fxActive":true},"alternativeText":{"value":""},"zoomButtons":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"image2","displayName":"Image","description":"Display an Image","defaultSize":{"width":3,"height":100},"component":"Image","exposedVariables":{}},"layouts":{"desktop":{"top":10,"left":84.29852707937381,"width":2.0347085494361803,"height":30}},"parent":"eb9d8228-f999-4173-8aa1-ab221563dd8d"},"8c9e0be7-91e6-48f4-b604-fd9f079da736":{"id":"8c9e0be7-91e6-48f4-b604-fd9f079da736","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"center"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Name"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text16","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":4.651160676682724,"width":3.02184474690101,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"927c6186-fa7f-4f52-9545-a9a5aac68e6a":{"id":"927c6186-fa7f-4f52-9545-a9a5aac68e6a","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Updated on"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text21","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":34.88390917709527,"width":7.008187219741155,"height":40}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"58a0747c-f5ef-4684-be4e-e9758c1d0b03":{"id":"58a0747c-f5ef-4684-be4e-e9758c1d0b03","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Actions"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text22","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":83.72136505021093,"width":3.9899564903050453,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"},"f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723":{"id":"f6bc2d87-8fe6-4ef9-809a-cf9b79e7f723","component":{"properties":{"text":{"type":"code","displayName":"Text","validation":{"schema":{"type":"union","schemas":[{"type":"string"},{"type":"number"}]}}},"loadingState":{"type":"toggle","displayName":"Show loading state","validation":{"schema":{"type":"boolean"}}}},"general":{"tooltip":{"type":"code","displayName":"Tooltip","validation":{"schema":{"type":"string"}}}},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"events":{},"styles":{"textSize":{"type":"number","displayName":"Text Size","validation":{"schema":{"type":"number"}}},"textColor":{"type":"color","displayName":"Text Color","validation":{"schema":{"type":"string"}}},"textAlign":{"type":"alignButtons","displayName":"Align Text","validation":{"schema":{"type":"string"}}},"visibility":{"type":"toggle","displayName":"Visibility","validation":{"schema":{"type":"boolean"}}},"disabledState":{"type":"toggle","displayName":"Disable","validation":{"schema":{"type":"boolean"}}}},"validate":true,"generalStyles":{"boxShadow":{"type":"boxShadow","displayName":"Box Shadow"}},"definition":{"others":{"showOnDesktop":{"value":"{{true}}"},"showOnMobile":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textSize":{"value":14},"textColor":{"value":"#000"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}},"properties":{"text":{"value":"Size"},"visible":{"value":"{{true}}"},"loadingState":{"value":"{{false}}"}},"general":{},"generalStyles":{"boxShadow":{"value":"0px 0px 0px 0px #00000040"}},"exposedVariables":{}},"name":"text23","displayName":"Text","description":"Display markdown or HTML","component":"Text","defaultSize":{"width":6,"height":30},"exposedVariables":{},"actions":[{"handle":"setText","displayName":"Set Text","params":[{"handle":"text","displayName":"Text","defaultValue":"New text"}]}]},"layouts":{"desktop":{"top":10,"left":62.833379149847055,"width":3.9899564903050453,"height":30}},"parent":"38465e58-3274-4527-b2dc-ee887bb9da61"}},"globalSettings":{"hideHeader":true,"appInMaintenance":false,"canvasMaxWidth":"1920","canvasMaxHeight":2400,"canvasBackgroundColor":"#edeff5","backgroundFxQuery":""}},"appId":"b98bfa27-71ca-4382-be70-660d9903f570","createdAt":"2022-08-16T17:21:13.093Z","updatedAt":"2022-08-17T20:46:38.753Z","homePageId":"b48908ea-c81a-4c4d-b176-4b81b05acb49","pages":{"b48908ea-c81a-4c4d-b176-4b81b05acb49":{"name":"Home","handle":"home"}},"showViewerNavigation":false}],"tooljetVersion":"1.21.5-ee1.3.13-cloud1.1"} \ No newline at end of file diff --git a/server/templates/github-contributors/definition.json b/server/templates/github-contributors/definition.json index f9ba7f34fd..a8076cbea4 100644 --- a/server/templates/github-contributors/definition.json +++ b/server/templates/github-contributors/definition.json @@ -1,1784 +1 @@ -{ - "id": "1986f492-3a77-412a-b930-b4c97def943a", - "name": "GitHub Contributor Leaderboard", - "slug": null, - "isPublic": false, - "organizationId": "7471c14a-c11a-416a-94b2-863125bc69d7", - "currentVersionId": null, - "userId": "319a2ca8-395e-4f77-8998-78358f78b716", - "createdAt": "2021-12-09T10:00:47.877Z", - "updatedAt": "2021-12-09T10:00:47.942Z", - "dataQueries": [ - { - "id": "acf2e546-d3e4-4b5b-b8c9-7e0e25675501", - "name": "fetchGithubProfile", - "kind": "restapi", - "options": { - "method": "get", - "url": "https://api.github.com/users/{{components.table1.selectedRow.login}}", - "url_params": [], - "headers": [], - "body": [] - }, - "dataSourceId": null, - "appId": "1986f492-3a77-412a-b930-b4c97def943a", - "createdAt": "2021-12-09T10:00:47.876Z", - "updatedAt": "2021-12-09T10:00:47.876Z" - }, - { - "id": "9630ba6f-1558-4a3a-8659-ec6a9554fc38", - "name": "fetchContributors", - "kind": "restapi", - "options": { - "method": "get", - "url": "https://api.github.com/repos/{{components.textinput1.value}}/contributors", - "url_params": [ - [ - "page", - "{{components.table1.pageIndex}}" - ], - [ - "per_page", - "100" - ] - ], - "headers": [], - "body": [] - }, - "dataSourceId": null, - "appId": "1986f492-3a77-412a-b930-b4c97def943a", - "createdAt": "2021-12-09T10:00:47.876Z", - "updatedAt": "2021-12-09T10:00:47.876Z" - } - ], - "dataSources": [], - "appVersions": [ - { - "id": "82726a42-6b45-497c-80b7-e9e69660e4ec", - "name": "v0", - "definition": { - "components": { - "d911a00b-96f8-4b00-b15d-dd1fef84d10e": { - "top": 150, - "left": 30, - "width": 715, - "height": 686, - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { - "type": "string", - "displayName": "Title" - }, - "data": { - "type": "code", - "displayName": "Table data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { - "type": "array", - "displayName": "Table Columns" - }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server Side Pagination" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background Color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "defaultSize": { - "width": 810, - "height": 300 - }, - "events": { - "onRowClicked": { - "displayName": "On row clicked" - }, - "onBulkUpdate": { - "displayName": "Bulk update query" - }, - "onPageChanged": { - "displayName": "On page changed query" - } - }, - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0 - }, - "definition": { - "properties": { - "title": { - "value": "Table" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchContributors.isLoading}}" - }, - "data": { - "value": "{{queries.fetchContributors.data}}" - }, - "serverSidePagination": { - "value": true - }, - "columns": { - "value": [ - { - "name": "username", - "key": "login" - }, - { - "name": "contributions" - } - ] - }, - "actions": { - "value": [ - { - "name": "Action0", - "buttonText": "GitHub", - "backgroundColor": "#000000", - "textColor": "#ffffff", - "onClick": { - "actionId": "open-webpage", - "options": { - "url": "{{queries.fetchGithubProfile.data.html_url}}" - } - }, - "events": [ - { - "actionId": "open-webpage", - "eventId": "onClick", - "url": "{{queries.fetchGithubProfile.data.html_url}}" - } - ] - } - ] - }, - "columnSizes": { - "actions": 229, - "contributions": 208 - }, - "showBulkSelector": { - "value": false - }, - "highlightSelectedRow": { - "value": false - } - }, - "events": [ - { - "queryName": "fetchGithubProfile", - "actionId": "run-query", - "eventId": "onRowClicked" - }, - { - "queryName": "fetchGithubProfile", - "actionId": "run-query", - "eventId": "onPageChanged" - } - ], - "styles": { - "textColor": { - "value": "" - }, - "cellSize": { - "value": "compact" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 150, - "left": 2.321981424148607, - "width": 23.796439628482972, - "height": 686 - } - } - }, - "ad27f56c-8fda-4c21-a60d-0951ba0f46f8": { - "top": 150, - "left": 780, - "width": 476, - "height": 504, - "component": { - "icon": "https://www.svgrepo.com/show/14343/table.svg", - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 200, - "height": 200 - }, - "component": "Container", - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 150, - "left": 60.371517027863774, - "width": 15.842105263157896, - "height": 504 - } - } - }, - "6b3d8bce-bc34-42af-af46-24847cad360a": { - "top": 30, - "left": 150, - "width": 200, - "height": 200, - "component": { - "icon": "https://www.svgrepo.com/show/35088/image.svg", - "name": "image1", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 200, - "height": 200 - }, - "component": "Image", - "properties": { - "source": { - "type": "code", - "displayName": "URL" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": {}, - "exposedVariables": {}, - "definition": { - "properties": { - "source": { - "value": "{{queries.fetchGithubProfile.data.avatar_url}}" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 30, - "left": 31.51260504201681, - "width": 18.067226890756302, - "height": 200 - } - } - }, - "2bf00d77-caf1-404d-a505-fec4d3ec6e7f": { - "top": 300, - "left": 30, - "width": 114, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Name:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 300, - "left": 6.302521008403361, - "width": 10.298319327731093, - "height": 24 - } - } - }, - "a7cce90d-c3cd-40b3-9b7a-348e6f51da3e": { - "top": 360, - "left": 30, - "width": 116, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Organization:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 360, - "left": 6.302521008403361, - "width": 10.478991596638656, - "height": 24 - } - } - }, - "517f8c1d-1f4b-488a-8e42-f1d779e0ff09": { - "top": 420, - "left": 30, - "width": 117, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Followers:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 420, - "left": 6.302521008403361, - "width": 10.569327731092438, - "height": 24 - } - } - }, - "1a109bae-548f-48b5-a22a-683364a414b1": { - "top": 300, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.name}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 300, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "49da9d80-21fa-4068-bfe7-d8189e286f2d": { - "top": 360, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.company}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 360, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "b607d4c7-edf1-4d5f-b947-98845d0673b7": { - "top": 420, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.followers}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 420, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "0c28ef81-6cdf-4e12-8f21-de47b72b7bea": { - "top": 90, - "left": 30, - "width": 443, - "height": 30, - "component": { - "icon": "https://www.svgrepo.com/show/38828/text.svg", - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 200, - "height": 30 - }, - "properties": { - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": {}, - "exposedVariables": { - "value": {} - }, - "definition": { - "properties": { - "placeholder": { - "value": "organization/repository" - } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 90, - "left": 2.321981424148607, - "width": 14.743808049535604, - "height": 30 - } - } - }, - "5dc58297-2a31-48eb-9eab-e80fe2e669a9": { - "top": 90, - "left": 570, - "width": 174, - "height": 30, - "component": { - "icon": "assets/images/icons/button.svg", - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 120, - "height": 30 - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Fetch contributors" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [ - { - "queryName": "fetchContributors", - "actionId": "run-query", - "eventId": "onClick" - } - ], - "styles": { - "backgroundColor": { - "value": "#3c92dc" - }, - "textColor": { - "value": "#fff" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 90, - "left": 44.11764705882353, - "width": 5.791021671826625, - "height": 30 - } - } - } - }, - "globalSettings": { - "hideHeader": false, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "1986f492-3a77-412a-b930-b4c97def943a", - "createdAt": "2021-12-09T10:00:47.905Z", - "updatedAt": "2021-12-09T10:01:17.080Z" - } - ], - "editingVersion": { - "id": "82726a42-6b45-497c-80b7-e9e69660e4ec", - "name": "v0", - "definition": { - "components": { - "d911a00b-96f8-4b00-b15d-dd1fef84d10e": { - "top": 150, - "left": 30, - "width": 715, - "height": 686, - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { - "type": "string", - "displayName": "Title" - }, - "data": { - "type": "code", - "displayName": "Table data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { - "type": "array", - "displayName": "Table Columns" - }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server Side Pagination" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background Color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "defaultSize": { - "width": 810, - "height": 300 - }, - "events": { - "onRowClicked": { - "displayName": "On row clicked" - }, - "onBulkUpdate": { - "displayName": "Bulk update query" - }, - "onPageChanged": { - "displayName": "On page changed query" - } - }, - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0 - }, - "definition": { - "properties": { - "title": { - "value": "Table" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchContributors.isLoading}}" - }, - "data": { - "value": "{{queries.fetchContributors.data}}" - }, - "serverSidePagination": { - "value": true - }, - "columns": { - "value": [ - { - "name": "username", - "key": "login" - }, - { - "name": "contributions" - } - ] - }, - "actions": { - "value": [ - { - "name": "Action0", - "buttonText": "GitHub", - "backgroundColor": "#000000", - "textColor": "#ffffff", - "onClick": { - "actionId": "open-webpage", - "options": { - "url": "{{queries.fetchGithubProfile.data.html_url}}" - } - }, - "events": [ - { - "actionId": "open-webpage", - "eventId": "onClick", - "url": "{{queries.fetchGithubProfile.data.html_url}}" - } - ] - } - ] - }, - "columnSizes": { - "actions": 229, - "contributions": 208 - }, - "showBulkSelector": { - "value": false - }, - "highlightSelectedRow": { - "value": false - } - }, - "events": [ - { - "queryName": "fetchGithubProfile", - "actionId": "run-query", - "eventId": "onRowClicked" - }, - { - "queryName": "fetchGithubProfile", - "actionId": "run-query", - "eventId": "onPageChanged" - } - ], - "styles": { - "textColor": { - "value": "" - }, - "cellSize": { - "value": "compact" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 150, - "left": 2.321981424148607, - "width": 23.796439628482972, - "height": 686 - } - } - }, - "ad27f56c-8fda-4c21-a60d-0951ba0f46f8": { - "top": 150, - "left": 780, - "width": 476, - "height": 504, - "component": { - "icon": "https://www.svgrepo.com/show/14343/table.svg", - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 200, - "height": 200 - }, - "component": "Container", - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 150, - "left": 60.371517027863774, - "width": 15.842105263157896, - "height": 504 - } - } - }, - "6b3d8bce-bc34-42af-af46-24847cad360a": { - "top": 30, - "left": 150, - "width": 200, - "height": 200, - "component": { - "icon": "https://www.svgrepo.com/show/35088/image.svg", - "name": "image1", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 200, - "height": 200 - }, - "component": "Image", - "properties": { - "source": { - "type": "code", - "displayName": "URL" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": {}, - "exposedVariables": {}, - "definition": { - "properties": { - "source": { - "value": "{{queries.fetchGithubProfile.data.avatar_url}}" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 30, - "left": 31.51260504201681, - "width": 18.067226890756302, - "height": 200 - } - } - }, - "2bf00d77-caf1-404d-a505-fec4d3ec6e7f": { - "top": 300, - "left": 30, - "width": 114, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Name:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 300, - "left": 6.302521008403361, - "width": 10.298319327731093, - "height": 24 - } - } - }, - "a7cce90d-c3cd-40b3-9b7a-348e6f51da3e": { - "top": 360, - "left": 30, - "width": 116, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Organization:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 360, - "left": 6.302521008403361, - "width": 10.478991596638656, - "height": 24 - } - } - }, - "517f8c1d-1f4b-488a-8e42-f1d779e0ff09": { - "top": 420, - "left": 30, - "width": 117, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Followers:" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 420, - "left": 6.302521008403361, - "width": 10.569327731092438, - "height": 24 - } - } - }, - "1a109bae-548f-48b5-a22a-683364a414b1": { - "top": 300, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.name}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 300, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "49da9d80-21fa-4068-bfe7-d8189e286f2d": { - "top": 360, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.company}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 360, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "b607d4c7-edf1-4d5f-b947-98845d0673b7": { - "top": 420, - "left": 180, - "width": 210, - "height": 24, - "component": { - "icon": "https://www.svgrepo.com/show/219344/text.svg", - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 210, - "height": 24 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "{{queries.fetchGithubProfile.data.followers}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.fetchGithubProfile.isLoading}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "parent": "ad27f56c-8fda-4c21-a60d-0951ba0f46f8", - "layouts": { - "desktop": { - "top": 420, - "left": 37.81512605042017, - "width": 18.970588235294116, - "height": 24 - } - } - }, - "0c28ef81-6cdf-4e12-8f21-de47b72b7bea": { - "top": 90, - "left": 30, - "width": 443, - "height": 30, - "component": { - "icon": "https://www.svgrepo.com/show/38828/text.svg", - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 200, - "height": 30 - }, - "properties": { - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": {}, - "exposedVariables": { - "value": {} - }, - "definition": { - "properties": { - "placeholder": { - "value": "organization/repository" - } - }, - "events": [], - "styles": {}, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 90, - "left": 2.321981424148607, - "width": 14.743808049535604, - "height": 30 - } - } - }, - "5dc58297-2a31-48eb-9eab-e80fe2e669a9": { - "top": 90, - "left": 570, - "width": 174, - "height": 30, - "component": { - "icon": "assets/images/icons/button.svg", - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 120, - "height": 30 - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - } - }, - "exposedVariables": {}, - "definition": { - "properties": { - "text": { - "value": "Fetch contributors" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [ - { - "queryName": "fetchContributors", - "actionId": "run-query", - "eventId": "onClick" - } - ], - "styles": { - "backgroundColor": { - "value": "#3c92dc" - }, - "textColor": { - "value": "#fff" - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - } - } - }, - "layouts": { - "desktop": { - "top": 90, - "left": 44.11764705882353, - "width": 5.791021671826625, - "height": 30 - } - } - } - }, - "globalSettings": { - "hideHeader": false, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "1986f492-3a77-412a-b930-b4c97def943a", - "createdAt": "2021-12-09T10:00:47.905Z", - "updatedAt": "2021-12-09T10:01:17.080Z" - }, - "tooljetVersion": "0.10.0" -} \ No newline at end of file +{"id":"1986f492-3a77-412a-b930-b4c97def943a","name":"GitHub Contributor Leaderboard","slug":null,"isPublic":false,"organizationId":"7471c14a-c11a-416a-94b2-863125bc69d7","currentVersionId":null,"userId":"319a2ca8-395e-4f77-8998-78358f78b716","createdAt":"2021-12-09T10:00:47.877Z","updatedAt":"2021-12-09T10:00:47.942Z","dataQueries":[{"id":"acf2e546-d3e4-4b5b-b8c9-7e0e25675501","name":"fetchGithubProfile","kind":"restapi","options":{"method":"get","url":"https://api.github.com/users/{{components.table1.selectedRow.login}}","url_params":[],"headers":[],"body":[]},"dataSourceId":null,"appId":"1986f492-3a77-412a-b930-b4c97def943a","createdAt":"2021-12-09T10:00:47.876Z","updatedAt":"2021-12-09T10:00:47.876Z"},{"id":"9630ba6f-1558-4a3a-8659-ec6a9554fc38","name":"fetchContributors","kind":"restapi","options":{"method":"get","url":"https://api.github.com/repos/{{components.textinput1.value}}/contributors","url_params":[["page","{{components.table1.pageIndex}}"],["per_page","100"]],"headers":[],"body":[]},"dataSourceId":null,"appId":"1986f492-3a77-412a-b930-b4c97def943a","createdAt":"2021-12-09T10:00:47.876Z","updatedAt":"2021-12-09T10:00:47.876Z"}],"dataSources":[],"appVersions":[{"id":"82726a42-6b45-497c-80b7-e9e69660e4ec","name":"v0","definition":{"components":{"d911a00b-96f8-4b00-b15d-dd1fef84d10e":{"top":150,"left":30,"width":715,"height":686,"component":{"name":"table1","displayName":"Table","description":"Display paginated tabular data","component":"Table","properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"code","displayName":"Table data"},"loadingState":{"type":"code","displayName":"Loading state"},"columns":{"type":"array","displayName":"Table Columns"},"serverSidePagination":{"type":"toggle","displayName":"Server Side Pagination"},"actionButtonBackgroundColor":{"type":"color","displayName":"Background Color"},"actionButtonTextColor":{"type":"color","displayName":"Text Color"}},"defaultSize":{"width":810,"height":300},"events":{"onRowClicked":{"displayName":"On row clicked"},"onBulkUpdate":{"displayName":"Bulk update query"},"onPageChanged":{"displayName":"On page changed query"}},"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{"selectedRow":{},"changeSet":{},"dataUpdates":[],"pageIndex":0},"definition":{"properties":{"title":{"value":"Table"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchContributors.isLoading}}"},"data":{"value":"{{queries.fetchContributors.data}}"},"serverSidePagination":{"value":true},"columns":{"value":[{"name":"username","key":"login"},{"name":"contributions"}]},"actions":{"value":[{"name":"Action0","buttonText":"GitHub","backgroundColor":"#000000","textColor":"#ffffff","onClick":{"actionId":"open-webpage","options":{"url":"{{queries.fetchGithubProfile.data.html_url}}"}},"events":[{"actionId":"open-webpage","eventId":"onClick","url":"{{queries.fetchGithubProfile.data.html_url}}"}]}]},"columnSizes":{"actions":229,"contributions":208},"showBulkSelector":{"value":false},"highlightSelectedRow":{"value":false}},"events":[{"queryName":"fetchGithubProfile","actionId":"run-query","eventId":"onRowClicked"},{"queryName":"fetchGithubProfile","actionId":"run-query","eventId":"onPageChanged"}],"styles":{"textColor":{"value":""},"cellSize":{"value":"compact"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":150,"left":2.321981424148607,"width":23.796439628482972,"height":686}}},"ad27f56c-8fda-4c21-a60d-0951ba0f46f8":{"top":150,"left":780,"width":476,"height":504,"component":{"icon":"https://www.svgrepo.com/show/14343/table.svg","name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":200,"height":200},"component":"Container","properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"}},"exposedVariables":{},"definition":{"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":150,"left":60.371517027863774,"width":15.842105263157896,"height":504}}},"6b3d8bce-bc34-42af-af46-24847cad360a":{"top":30,"left":150,"width":200,"height":200,"component":{"icon":"https://www.svgrepo.com/show/35088/image.svg","name":"image1","displayName":"Image","description":"Display an Image","defaultSize":{"width":200,"height":200},"component":"Image","properties":{"source":{"type":"code","displayName":"URL"}},"events":{"onClick":{"displayName":"On click"}},"styles":{},"exposedVariables":{},"definition":{"properties":{"source":{"value":"{{queries.fetchGithubProfile.data.avatar_url}}"},"visible":{"value":true}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":30,"left":31.51260504201681,"width":18.067226890756302,"height":200}}},"2bf00d77-caf1-404d-a505-fec4d3ec6e7f":{"top":300,"left":30,"width":114,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Name:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":300,"left":6.302521008403361,"width":10.298319327731093,"height":24}}},"a7cce90d-c3cd-40b3-9b7a-348e6f51da3e":{"top":360,"left":30,"width":116,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Organization:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":360,"left":6.302521008403361,"width":10.478991596638656,"height":24}}},"517f8c1d-1f4b-488a-8e42-f1d779e0ff09":{"top":420,"left":30,"width":117,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Followers:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":420,"left":6.302521008403361,"width":10.569327731092438,"height":24}}},"1a109bae-548f-48b5-a22a-683364a414b1":{"top":300,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.name}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":300,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"49da9d80-21fa-4068-bfe7-d8189e286f2d":{"top":360,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.company}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":360,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"b607d4c7-edf1-4d5f-b947-98845d0673b7":{"top":420,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.followers}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":420,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"0c28ef81-6cdf-4e12-8f21-de47b72b7bea":{"top":90,"left":30,"width":443,"height":30,"component":{"icon":"https://www.svgrepo.com/show/38828/text.svg","name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":200,"height":30},"properties":{"placeholder":{"type":"code","displayName":"Placeholder"}},"events":{},"styles":{},"exposedVariables":{"value":{}},"definition":{"properties":{"placeholder":{"value":"organization/repository"}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":90,"left":2.321981424148607,"width":14.743808049535604,"height":30}}},"5dc58297-2a31-48eb-9eab-e80fe2e669a9":{"top":90,"left":570,"width":174,"height":30,"component":{"icon":"assets/images/icons/button.svg","name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":120,"height":30},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Fetch contributors"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[{"queryName":"fetchContributors","actionId":"run-query","eventId":"onClick"}],"styles":{"backgroundColor":{"value":"#3c92dc"},"textColor":{"value":"#fff"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":90,"left":44.11764705882353,"width":5.791021671826625,"height":30}}}},"globalSettings":{"hideHeader":false,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"1986f492-3a77-412a-b930-b4c97def943a","createdAt":"2021-12-09T10:00:47.905Z","updatedAt":"2021-12-09T10:01:17.080Z","homePageId":"a739335b-d15c-40b5-beb7-c6f0438683b4","pages":{"a739335b-d15c-40b5-beb7-c6f0438683b4":{"name":"Home","handle":"home"}},"showViewerNavigation":false}],"editingVersion":{"id":"82726a42-6b45-497c-80b7-e9e69660e4ec","name":"v0","definition":{"components":{"d911a00b-96f8-4b00-b15d-dd1fef84d10e":{"top":150,"left":30,"width":715,"height":686,"component":{"name":"table1","displayName":"Table","description":"Display paginated tabular data","component":"Table","properties":{"title":{"type":"string","displayName":"Title"},"data":{"type":"code","displayName":"Table data"},"loadingState":{"type":"code","displayName":"Loading state"},"columns":{"type":"array","displayName":"Table Columns"},"serverSidePagination":{"type":"toggle","displayName":"Server Side Pagination"},"actionButtonBackgroundColor":{"type":"color","displayName":"Background Color"},"actionButtonTextColor":{"type":"color","displayName":"Text Color"}},"defaultSize":{"width":810,"height":300},"events":{"onRowClicked":{"displayName":"On row clicked"},"onBulkUpdate":{"displayName":"Bulk update query"},"onPageChanged":{"displayName":"On page changed query"}},"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{"selectedRow":{},"changeSet":{},"dataUpdates":[],"pageIndex":0},"definition":{"properties":{"title":{"value":"Table"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchContributors.isLoading}}"},"data":{"value":"{{queries.fetchContributors.data}}"},"serverSidePagination":{"value":true},"columns":{"value":[{"name":"username","key":"login"},{"name":"contributions"}]},"actions":{"value":[{"name":"Action0","buttonText":"GitHub","backgroundColor":"#000000","textColor":"#ffffff","onClick":{"actionId":"open-webpage","options":{"url":"{{queries.fetchGithubProfile.data.html_url}}"}},"events":[{"actionId":"open-webpage","eventId":"onClick","url":"{{queries.fetchGithubProfile.data.html_url}}"}]}]},"columnSizes":{"actions":229,"contributions":208},"showBulkSelector":{"value":false},"highlightSelectedRow":{"value":false}},"events":[{"queryName":"fetchGithubProfile","actionId":"run-query","eventId":"onRowClicked"},{"queryName":"fetchGithubProfile","actionId":"run-query","eventId":"onPageChanged"}],"styles":{"textColor":{"value":""},"cellSize":{"value":"compact"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":150,"left":2.321981424148607,"width":23.796439628482972,"height":686}}},"ad27f56c-8fda-4c21-a60d-0951ba0f46f8":{"top":150,"left":780,"width":476,"height":504,"component":{"icon":"https://www.svgrepo.com/show/14343/table.svg","name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":200,"height":200},"component":"Container","properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"}},"exposedVariables":{},"definition":{"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":150,"left":60.371517027863774,"width":15.842105263157896,"height":504}}},"6b3d8bce-bc34-42af-af46-24847cad360a":{"top":30,"left":150,"width":200,"height":200,"component":{"icon":"https://www.svgrepo.com/show/35088/image.svg","name":"image1","displayName":"Image","description":"Display an Image","defaultSize":{"width":200,"height":200},"component":"Image","properties":{"source":{"type":"code","displayName":"URL"}},"events":{"onClick":{"displayName":"On click"}},"styles":{},"exposedVariables":{},"definition":{"properties":{"source":{"value":"{{queries.fetchGithubProfile.data.avatar_url}}"},"visible":{"value":true}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":30,"left":31.51260504201681,"width":18.067226890756302,"height":200}}},"2bf00d77-caf1-404d-a505-fec4d3ec6e7f":{"top":300,"left":30,"width":114,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Name:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":300,"left":6.302521008403361,"width":10.298319327731093,"height":24}}},"a7cce90d-c3cd-40b3-9b7a-348e6f51da3e":{"top":360,"left":30,"width":116,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Organization:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":360,"left":6.302521008403361,"width":10.478991596638656,"height":24}}},"517f8c1d-1f4b-488a-8e42-f1d779e0ff09":{"top":420,"left":30,"width":117,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Followers:"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":420,"left":6.302521008403361,"width":10.569327731092438,"height":24}}},"1a109bae-548f-48b5-a22a-683364a414b1":{"top":300,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.name}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":300,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"49da9d80-21fa-4068-bfe7-d8189e286f2d":{"top":360,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.company}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":360,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"b607d4c7-edf1-4d5f-b947-98845d0673b7":{"top":420,"left":180,"width":210,"height":24,"component":{"icon":"https://www.svgrepo.com/show/219344/text.svg","name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":210,"height":24},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"{{queries.fetchGithubProfile.data.followers}}"},"visible":{"value":true},"loadingState":{"value":"{{queries.fetchGithubProfile.isLoading}}"}},"events":[],"styles":{"textColor":{"value":"#000"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"parent":"ad27f56c-8fda-4c21-a60d-0951ba0f46f8","layouts":{"desktop":{"top":420,"left":37.81512605042017,"width":18.970588235294116,"height":24}}},"0c28ef81-6cdf-4e12-8f21-de47b72b7bea":{"top":90,"left":30,"width":443,"height":30,"component":{"icon":"https://www.svgrepo.com/show/38828/text.svg","name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":200,"height":30},"properties":{"placeholder":{"type":"code","displayName":"Placeholder"}},"events":{},"styles":{},"exposedVariables":{"value":{}},"definition":{"properties":{"placeholder":{"value":"organization/repository"}},"events":[],"styles":{},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":90,"left":2.321981424148607,"width":14.743808049535604,"height":30}}},"5dc58297-2a31-48eb-9eab-e80fe2e669a9":{"top":90,"left":570,"width":174,"height":30,"component":{"icon":"assets/images/icons/button.svg","name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":120,"height":30},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"}},"exposedVariables":{},"definition":{"properties":{"text":{"value":"Fetch contributors"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[{"queryName":"fetchContributors","actionId":"run-query","eventId":"onClick"}],"styles":{"backgroundColor":{"value":"#3c92dc"},"textColor":{"value":"#fff"}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}}}},"layouts":{"desktop":{"top":90,"left":44.11764705882353,"width":5.791021671826625,"height":30}}}},"globalSettings":{"hideHeader":false,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"1986f492-3a77-412a-b930-b4c97def943a","createdAt":"2021-12-09T10:00:47.905Z","updatedAt":"2021-12-09T10:01:17.080Z","homePageId":"cb686a4f-5597-4b64-8be8-6ffefb80dcc9","pages":{"cb686a4f-5597-4b64-8be8-6ffefb80dcc9":{"name":"Home","handle":"home"}},"showViewerNavigation":false},"tooljetVersion":"0.10.0"} \ No newline at end of file diff --git a/server/templates/github-star-history-tracker/definition.json b/server/templates/github-star-history-tracker/definition.json index 980a7b7376..459022329f 100644 --- a/server/templates/github-star-history-tracker/definition.json +++ b/server/templates/github-star-history-tracker/definition.json @@ -1,2559 +1 @@ -{ - "id": "dbe889f1-05ec-47b5-a117-d894706420c7", - "name": "Stars", - "slug": "github-star-history", - "isPublic": true, - "organizationId": "1d89c866-802d-4e0a-a9ef-05660d38a0f4", - "currentVersionId": "ac5fc98a-23a7-470a-a417-84f1836cc7ba", - "userId": "5d0e3769-e0c6-42cd-a7b9-a112e178296f", - "createdAt": "2021-12-09T12:22:10.668Z", - "updatedAt": "2022-01-17T04:45:12.567Z", - "dataQueries": [ - { - "id": "e4c5b5b3-23cb-4161-b90d-28d443b47944", - "name": "runjs2", - "kind": "runjs", - "options": { - "code": "const stargazersURL = `https://api.github.com/repos/${components.textinput1.value}/stargazers?per_page=100&page={page}`;\n\nconst totalPages = parseInt(queries.restapi1.data.starGazers/100);\n\nlet pages = [...Array(totalPages).keys()];\n\nlet dates = {};\nlet results = [];\n\nlet headers = {\n 'Accept': 'application/vnd.github.v3.star+json'\n}\n\nif(components.passwordinput1.value !== '') { \n headers['Authorization'] = `token ${components.passwordinput1.value}`\n}\n\nfor(const page of pages) {\n const url = stargazersURL.replace('{page}', page + 1);\n const data = (await axios.get(url, { headers })).data;\n \n for(star of data) {\n const starredAt = moment(star.starred_at).endOf('day').format('yyyy-MM-DD');\n dates[starredAt] = (dates[starredAt] || 0) + 1;\n }\n \n}\n\nlet total = 0;\nfor (date of Object.keys(dates)) {\n total = total + dates[date];\n results.push({ x: date, y: total});\n}\n\nreturn results;" - }, - "dataSourceId": null, - "appId": "dbe889f1-05ec-47b5-a117-d894706420c7", - "createdAt": "2021-12-09T12:22:10.667Z", - "updatedAt": "2021-12-09T13:07:31.327Z" - }, - { - "id": "f006d058-8cac-442e-a093-a2757247fefb", - "name": "restapi1", - "kind": "restapi", - "options": { - "method": "get", - "url": "https://api.github.com/repos/{{components.textinput1.value}}", - "url_params": [ - [ - "", - "" - ] - ], - "headers": [ - [ - "", - "" - ] - ], - "body": [ - [ - "", - "" - ] - ], - "enableTransformation": true, - "transformation": "// write your code here\n// return value will be set as data and the original data will be available as rawData\nreturn { starGazers: data.stargazers_count }; ", - "events": [ - { - "eventId": "onDataQuerySuccess", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "e4c5b5b3-23cb-4161-b90d-28d443b47944", - "queryName": "runjs2" - } - ] - }, - "dataSourceId": null, - "appId": "dbe889f1-05ec-47b5-a117-d894706420c7", - "createdAt": "2021-12-09T12:22:10.667Z", - "updatedAt": "2021-12-09T12:22:10.667Z" - } - ], - "dataSources": [], - "appVersions": [ - { - "id": "ac5fc98a-23a7-470a-a417-84f1836cc7ba", - "name": "vv", - "definition": { - "components": { - "e2007b03-4c80-4925-8816-b3867579b2b6": { - "component": { - "name": "chart1", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "Stars over time " - }, - "markerColor": { - "value": "#394d9d" - }, - "showGridLines": { - "value": true - }, - "loadingState": { - "value": "{{queries.runjs2.isLoading || queries.restapi1.isLoading}}" - }, - "type": { - "value": "line" - }, - "data": { - "value": "{{queries.runjs2.data}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 200, - "left": 2.36158105241994, - "width": 32, - "height": 550 - } - } - }, - "f073e059-7476-4999-86f8-335e1d6c095e": { - "component": { - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": "" - }, - "definition": { - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "" - }, - "placeholder": { - "value": "ToolJet/ToolJet" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 130, - "left": 2.325578813582382, - "width": 10, - "height": 40 - } - } - }, - "919579eb-4b19-4cf1-8fbb-701dd933412c": { - "component": { - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Repository" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 100, - "left": 2.3255811756240323, - "width": 4, - "height": 30 - } - } - }, - "3222f722-d6ff-4cdc-bc04-4c1dbe40ae86": { - "component": { - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Fetch History" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.runjs2.isLoading || queries.restapi1.isLoading}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "f006d058-8cac-442e-a093-a2757247fefb", - "queryName": "restapi1" - } - ], - "styles": { - "backgroundColor": { - "value": "#3c4bdc" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{4}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 130, - "left": 28.178344348635836, - "width": 5, - "height": 40 - } - } - }, - "002460c5-7ae0-450a-8eec-2039f8ef1463": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Required if more than 5000 stars. Token is not stored or sent to backend." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#a92121" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 240, - "left": 79.00856337123992, - "width": 8, - "height": 60 - } - } - }, - "c6592886-aa84-4f4b-9204-65a3570b6193": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Built using https://github.com/ToolJet/ToolJet" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 770, - "left": 2.3255811756240323, - "width": 13, - "height": 30 - } - } - }, - "4c6dd385-c867-49a3-9553-deeb32ae1557": { - "component": { - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 310, - "left": 79.04095951476702, - "width": 8, - "height": 440 - } - } - }, - "8a3a0a85-44f3-4241-bd55-b95608dfcf4e": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "This repository has {{queries.restapi1.data.starGazers}} stars 🌟" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4c6dd385-c867-49a3-9553-deeb32ae1557", - "layouts": { - "desktop": { - "top": 30, - "left": 4.796531874795149, - "width": 39.067200999949264, - "height": 70 - } - } - }, - "09ca79b6-9576-4afa-9144-05e7688f24ee": { - "component": { - "name": "text7", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Repository was created {{moment(queries.restapi1.rawData.created_at).fromNow()}} ago." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4c6dd385-c867-49a3-9553-deeb32ae1557", - "layouts": { - "desktop": { - "top": 110, - "left": 5.404523725480118, - "width": 37.103522291585676, - "height": 50 - } - } - }, - "d53e0412-bba9-47d7-bf37-1cb5e91eefed": { - "component": { - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 0, - "left": 0, - "width": 43, - "height": 60 - } - } - }, - "8a367ae0-68cf-4ef8-947d-4a25b8ded078": { - "component": { - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

GitHub Star History 🌟

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#3c4bdc" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 10, - "left": 2.3255894427698096, - "width": 10, - "height": 40 - } - } - }, - "c603d2c9-99b9-40f0-a0b3-a96c9c920221": { - "component": { - "name": "text7", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Source code" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 20, - "left": 86.03571369182953, - "width": 5, - "height": 20 - } - } - }, - "9391da2c-a298-4233-936a-87e01280714f": { - "component": { - "name": "passwordinput1", - "displayName": "Password Input", - "description": "Password input field for forms", - "component": "PasswordInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": "" - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "placeholder": { - "value": "GitHub token" - } - }, - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 200, - "left": 79.04096195941369, - "width": 8, - "height": 40 - } - } - } - }, - "globalSettings": { - "hideHeader": true, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "dbe889f1-05ec-47b5-a117-d894706420c7", - "createdAt": "2021-12-09T12:22:10.702Z", - "updatedAt": "2021-12-22T12:14:48.401Z" - } - ], - "editingVersion": { - "id": "ac5fc98a-23a7-470a-a417-84f1836cc7ba", - "name": "vv", - "definition": { - "components": { - "e2007b03-4c80-4925-8816-b3867579b2b6": { - "component": { - "name": "chart1", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "Stars over time " - }, - "markerColor": { - "value": "#394d9d" - }, - "showGridLines": { - "value": true - }, - "loadingState": { - "value": "{{queries.runjs2.isLoading || queries.restapi1.isLoading}}" - }, - "type": { - "value": "line" - }, - "data": { - "value": "{{queries.runjs2.data}}" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 200, - "left": 2.36158105241994, - "width": 32, - "height": 550 - } - } - }, - "f073e059-7476-4999-86f8-335e1d6c095e": { - "component": { - "name": "textinput1", - "displayName": "Text Input", - "description": "Text field for forms", - "component": "TextInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": "" - }, - "definition": { - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "" - }, - "placeholder": { - "value": "ToolJet/ToolJet" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 130, - "left": 2.325578813582382, - "width": 10, - "height": 40 - } - } - }, - "919579eb-4b19-4cf1-8fbb-701dd933412c": { - "component": { - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Repository" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 100, - "left": 2.3255811756240323, - "width": 4, - "height": 30 - } - } - }, - "3222f722-d6ff-4cdc-bc04-4c1dbe40ae86": { - "component": { - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Fetch History" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.runjs2.isLoading || queries.restapi1.isLoading}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "f006d058-8cac-442e-a093-a2757247fefb", - "queryName": "restapi1" - } - ], - "styles": { - "backgroundColor": { - "value": "#3c4bdc" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{4}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 130, - "left": 28.178344348635836, - "width": 5, - "height": 40 - } - } - }, - "002460c5-7ae0-450a-8eec-2039f8ef1463": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Required if more than 5000 stars. Token is not stored or sent to backend." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#a92121" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 240, - "left": 79.00856337123992, - "width": 8, - "height": 60 - } - } - }, - "c6592886-aa84-4f4b-9204-65a3570b6193": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Built using https://github.com/ToolJet/ToolJet" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 770, - "left": 2.3255811756240323, - "width": 13, - "height": 30 - } - } - }, - "4c6dd385-c867-49a3-9553-deeb32ae1557": { - "component": { - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 310, - "left": 79.04095951476702, - "width": 8, - "height": 440 - } - } - }, - "8a3a0a85-44f3-4241-bd55-b95608dfcf4e": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "This repository has {{queries.restapi1.data.starGazers}} stars 🌟" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4c6dd385-c867-49a3-9553-deeb32ae1557", - "layouts": { - "desktop": { - "top": 30, - "left": 4.796531874795149, - "width": 39.067200999949264, - "height": 70 - } - } - }, - "09ca79b6-9576-4afa-9144-05e7688f24ee": { - "component": { - "name": "text7", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Repository was created {{moment(queries.restapi1.rawData.created_at).fromNow()}} ago." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4c6dd385-c867-49a3-9553-deeb32ae1557", - "layouts": { - "desktop": { - "top": 110, - "left": 5.404523725480118, - "width": 37.103522291585676, - "height": 50 - } - } - }, - "d53e0412-bba9-47d7-bf37-1cb5e91eefed": { - "component": { - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 0, - "left": 0, - "width": 43, - "height": 60 - } - } - }, - "8a367ae0-68cf-4ef8-947d-4a25b8ded078": { - "component": { - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

GitHub Star History 🌟

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#3c4bdc" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 10, - "left": 2.3255894427698096, - "width": 10, - "height": 40 - } - } - }, - "c603d2c9-99b9-40f0-a0b3-a96c9c920221": { - "component": { - "name": "text7", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Source code" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 20, - "left": 86.03571369182953, - "width": 5, - "height": 20 - } - } - }, - "9391da2c-a298-4233-936a-87e01280714f": { - "component": { - "name": "passwordinput1", - "displayName": "Password Input", - "description": "Password input field for forms", - "component": "PasswordInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "validation": { - "regex": { - "type": "code", - "displayName": "Regex" - }, - "minLength": { - "type": "code", - "displayName": "Min length" - }, - "maxLength": { - "type": "code", - "displayName": "Max length" - }, - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": "" - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "placeholder": { - "value": "GitHub token" - } - }, - "validation": { - "regex": { - "value": "" - }, - "minLength": { - "value": null - }, - "maxLength": { - "value": null - }, - "customRule": { - "value": null - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 200, - "left": 79.04096195941369, - "width": 8, - "height": 40 - } - } - } - }, - "globalSettings": { - "hideHeader": true, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "dbe889f1-05ec-47b5-a117-d894706420c7", - "createdAt": "2021-12-09T12:22:10.702Z", - "updatedAt": "2021-12-22T12:14:48.401Z" - }, - "tooljetVersion": "0.12.0" -} \ No newline at end of file +{"id":"dbe889f1-05ec-47b5-a117-d894706420c7","name":"Stars","slug":"github-star-history","isPublic":true,"organizationId":"1d89c866-802d-4e0a-a9ef-05660d38a0f4","currentVersionId":"ac5fc98a-23a7-470a-a417-84f1836cc7ba","userId":"5d0e3769-e0c6-42cd-a7b9-a112e178296f","createdAt":"2021-12-09T12:22:10.668Z","updatedAt":"2022-01-17T04:45:12.567Z","dataQueries":[{"id":"e4c5b5b3-23cb-4161-b90d-28d443b47944","name":"runjs2","kind":"runjs","options":{"code":"const stargazersURL = `https://api.github.com/repos/${components.textinput1.value}/stargazers?per_page=100&page={page}`;\n\nconst totalPages = parseInt(queries.restapi1.data.starGazers/100);\n\nlet pages = [...Array(totalPages).keys()];\n\nlet dates = {};\nlet results = [];\n\nlet headers = {\n 'Accept': 'application/vnd.github.v3.star+json'\n}\n\nif(components.passwordinput1.value !== '') { \n headers['Authorization'] = `token ${components.passwordinput1.value}`\n}\n\nfor(const page of pages) {\n const url = stargazersURL.replace('{page}', page + 1);\n const data = (await axios.get(url, { headers })).data;\n \n for(star of data) {\n const starredAt = moment(star.starred_at).endOf('day').format('yyyy-MM-DD');\n dates[starredAt] = (dates[starredAt] || 0) + 1;\n }\n \n}\n\nlet total = 0;\nfor (date of Object.keys(dates)) {\n total = total + dates[date];\n results.push({ x: date, y: total});\n}\n\nreturn results;"},"dataSourceId":null,"appId":"dbe889f1-05ec-47b5-a117-d894706420c7","createdAt":"2021-12-09T12:22:10.667Z","updatedAt":"2021-12-09T13:07:31.327Z"},{"id":"f006d058-8cac-442e-a093-a2757247fefb","name":"restapi1","kind":"restapi","options":{"method":"get","url":"https://api.github.com/repos/{{components.textinput1.value}}","url_params":[["",""]],"headers":[["",""]],"body":[["",""]],"enableTransformation":true,"transformation":"// write your code here\n// return value will be set as data and the original data will be available as rawData\nreturn { starGazers: data.stargazers_count }; ","events":[{"eventId":"onDataQuerySuccess","actionId":"run-query","message":"Hello world!","queryId":"e4c5b5b3-23cb-4161-b90d-28d443b47944","queryName":"runjs2"}]},"dataSourceId":null,"appId":"dbe889f1-05ec-47b5-a117-d894706420c7","createdAt":"2021-12-09T12:22:10.667Z","updatedAt":"2021-12-09T12:22:10.667Z"}],"dataSources":[],"appVersions":[{"id":"ac5fc98a-23a7-470a-a417-84f1836cc7ba","name":"vv","definition":{"components":{"e2007b03-4c80-4925-8816-b3867579b2b6":{"component":{"name":"chart1","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"Stars over time "},"markerColor":{"value":"#394d9d"},"showGridLines":{"value":true},"loadingState":{"value":"{{queries.runjs2.isLoading || queries.restapi1.isLoading}}"},"type":{"value":"line"},"data":{"value":"{{queries.runjs2.data}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":200,"left":2.36158105241994,"width":32,"height":550}}},"f073e059-7476-4999-86f8-335e1d6c095e":{"component":{"name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":4,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"value":{"type":"code","displayName":"Default value"},"placeholder":{"type":"code","displayName":"Placeholder"}},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"value":""},"definition":{"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"value":{"value":""},"placeholder":{"value":"ToolJet/ToolJet"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":130,"left":2.325578813582382,"width":10,"height":40}}},"919579eb-4b19-4cf1-8fbb-701dd933412c":{"component":{"name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Repository"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":100,"left":2.3255811756240323,"width":4,"height":30}}},"3222f722-d6ff-4cdc-bc04-4c1dbe40ae86":{"component":{"name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"},"borderRadius":{"type":"code","displayName":"Border radius"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Fetch History"},"visible":{"value":true},"loadingState":{"value":"{{queries.runjs2.isLoading || queries.restapi1.isLoading}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","queryId":"f006d058-8cac-442e-a093-a2757247fefb","queryName":"restapi1"}],"styles":{"backgroundColor":{"value":"#3c4bdc"},"textColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{4}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":130,"left":28.178344348635836,"width":5,"height":40}}},"002460c5-7ae0-450a-8eec-2039f8ef1463":{"component":{"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Required if more than 5000 stars. Token is not stored or sent to backend."},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#a92121"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":240,"left":79.00856337123992,"width":8,"height":60}}},"c6592886-aa84-4f4b-9204-65a3570b6193":{"component":{"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Built using https://github.com/ToolJet/ToolJet"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":770,"left":2.3255811756240323,"width":13,"height":30}}},"4c6dd385-c867-49a3-9553-deeb32ae1557":{"component":{"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":310,"left":79.04095951476702,"width":8,"height":440}}},"8a3a0a85-44f3-4241-bd55-b95608dfcf4e":{"component":{"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"This repository has {{queries.restapi1.data.starGazers}} stars 🌟"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4c6dd385-c867-49a3-9553-deeb32ae1557","layouts":{"desktop":{"top":30,"left":4.796531874795149,"width":39.067200999949264,"height":70}}},"09ca79b6-9576-4afa-9144-05e7688f24ee":{"component":{"name":"text7","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Repository was created {{moment(queries.restapi1.rawData.created_at).fromNow()}} ago."},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4c6dd385-c867-49a3-9553-deeb32ae1557","layouts":{"desktop":{"top":110,"left":5.404523725480118,"width":37.103522291585676,"height":50}}},"d53e0412-bba9-47d7-bf37-1cb5e91eefed":{"component":{"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":0,"left":0,"width":43,"height":60}}},"8a367ae0-68cf-4ef8-947d-4a25b8ded078":{"component":{"name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

GitHub Star History 🌟

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#3c4bdc"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":10,"left":2.3255894427698096,"width":10,"height":40}}},"c603d2c9-99b9-40f0-a0b3-a96c9c920221":{"component":{"name":"text7","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Source code"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":20,"left":86.03571369182953,"width":5,"height":20}}},"9391da2c-a298-4233-936a-87e01280714f":{"component":{"name":"passwordinput1","displayName":"Password Input","description":"Password input field for forms","component":"PasswordInput","defaultSize":{"width":4,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"placeholder":{"type":"code","displayName":"Placeholder"}},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"value":""},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"placeholder":{"value":"GitHub token"}},"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":200,"left":79.04096195941369,"width":8,"height":40}}}},"globalSettings":{"hideHeader":true,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"dbe889f1-05ec-47b5-a117-d894706420c7","createdAt":"2021-12-09T12:22:10.702Z","updatedAt":"2021-12-22T12:14:48.401Z","homePageId":"cc56f174-6e7c-4de1-9d41-9e0ab5f3b2d8","pages":{"cc56f174-6e7c-4de1-9d41-9e0ab5f3b2d8":{"name":"Home","handle":"home"}},"showViewerNavigation":false}],"editingVersion":{"id":"ac5fc98a-23a7-470a-a417-84f1836cc7ba","name":"vv","definition":{"components":{"e2007b03-4c80-4925-8816-b3867579b2b6":{"component":{"name":"chart1","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"Stars over time "},"markerColor":{"value":"#394d9d"},"showGridLines":{"value":true},"loadingState":{"value":"{{queries.runjs2.isLoading || queries.restapi1.isLoading}}"},"type":{"value":"line"},"data":{"value":"{{queries.runjs2.data}}"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":200,"left":2.36158105241994,"width":32,"height":550}}},"f073e059-7476-4999-86f8-335e1d6c095e":{"component":{"name":"textinput1","displayName":"Text Input","description":"Text field for forms","component":"TextInput","defaultSize":{"width":4,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"value":{"type":"code","displayName":"Default value"},"placeholder":{"type":"code","displayName":"Placeholder"}},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"value":""},"definition":{"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"value":{"value":""},"placeholder":{"value":"ToolJet/ToolJet"}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":130,"left":2.325578813582382,"width":10,"height":40}}},"919579eb-4b19-4cf1-8fbb-701dd933412c":{"component":{"name":"text2","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Repository"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":100,"left":2.3255811756240323,"width":4,"height":30}}},"3222f722-d6ff-4cdc-bc04-4c1dbe40ae86":{"component":{"name":"button1","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"},"borderRadius":{"type":"code","displayName":"Border radius"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Fetch History"},"visible":{"value":true},"loadingState":{"value":"{{queries.runjs2.isLoading || queries.restapi1.isLoading}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","queryId":"f006d058-8cac-442e-a093-a2757247fefb","queryName":"restapi1"}],"styles":{"backgroundColor":{"value":"#3c4bdc"},"textColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{4}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":130,"left":28.178344348635836,"width":5,"height":40}}},"002460c5-7ae0-450a-8eec-2039f8ef1463":{"component":{"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Required if more than 5000 stars. Token is not stored or sent to backend."},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#a92121"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":240,"left":79.00856337123992,"width":8,"height":60}}},"c6592886-aa84-4f4b-9204-65a3570b6193":{"component":{"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Built using https://github.com/ToolJet/ToolJet"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":770,"left":2.3255811756240323,"width":13,"height":30}}},"4c6dd385-c867-49a3-9553-deeb32ae1557":{"component":{"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":310,"left":79.04095951476702,"width":8,"height":440}}},"8a3a0a85-44f3-4241-bd55-b95608dfcf4e":{"component":{"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"This repository has {{queries.restapi1.data.starGazers}} stars 🌟"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4c6dd385-c867-49a3-9553-deeb32ae1557","layouts":{"desktop":{"top":30,"left":4.796531874795149,"width":39.067200999949264,"height":70}}},"09ca79b6-9576-4afa-9144-05e7688f24ee":{"component":{"name":"text7","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Repository was created {{moment(queries.restapi1.rawData.created_at).fromNow()}} ago."},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4c6dd385-c867-49a3-9553-deeb32ae1557","layouts":{"desktop":{"top":110,"left":5.404523725480118,"width":37.103522291585676,"height":50}}},"d53e0412-bba9-47d7-bf37-1cb5e91eefed":{"component":{"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":0,"left":0,"width":43,"height":60}}},"8a367ae0-68cf-4ef8-947d-4a25b8ded078":{"component":{"name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

GitHub Star History 🌟

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#3c4bdc"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":10,"left":2.3255894427698096,"width":10,"height":40}}},"c603d2c9-99b9-40f0-a0b3-a96c9c920221":{"component":{"name":"text7","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":3,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Source code"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"textColor":{"value":"#000"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":20,"left":86.03571369182953,"width":5,"height":20}}},"9391da2c-a298-4233-936a-87e01280714f":{"component":{"name":"passwordinput1","displayName":"Password Input","description":"Password input field for forms","component":"PasswordInput","defaultSize":{"width":4,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"placeholder":{"type":"code","displayName":"Placeholder"}},"validation":{"regex":{"type":"code","displayName":"Regex"},"minLength":{"type":"code","displayName":"Min length"},"maxLength":{"type":"code","displayName":"Max length"},"customRule":{"type":"code","displayName":"Custom validation"}},"events":{},"styles":{"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"value":""},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"placeholder":{"value":"GitHub token"}},"validation":{"regex":{"value":""},"minLength":{"value":null},"maxLength":{"value":null},"customRule":{"value":null}},"events":[],"styles":{"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":200,"left":79.04096195941369,"width":8,"height":40}}}},"globalSettings":{"hideHeader":true,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"dbe889f1-05ec-47b5-a117-d894706420c7","createdAt":"2021-12-09T12:22:10.702Z","updatedAt":"2021-12-22T12:14:48.401Z","homePageId":"b325ad90-fb39-4ad5-a126-4c61aa8471ff","pages":{"b325ad90-fb39-4ad5-a126-4c61aa8471ff":{"name":"Home","handle":"home"}},"showViewerNavigation":false},"tooljetVersion":"0.12.0"} \ No newline at end of file diff --git a/server/templates/github-star-ranking/definition.json b/server/templates/github-star-ranking/definition.json index 7a659e1862..5101acd3a2 100644 --- a/server/templates/github-star-ranking/definition.json +++ b/server/templates/github-star-ranking/definition.json @@ -1,2333 +1,2349 @@ { - "id": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", - "name": "GitHub Star Ranking", - "slug": "github-star-ranking", - "isPublic": true, - "organizationId": "1d89c866-802d-4e0a-a9ef-05660d38a0f4", - "currentVersionId": "78e4c141-5efd-4648-8121-c1339ac8de5e", - "userId": "5d0e3769-e0c6-42cd-a7b9-a112e178296f", - "createdAt": "2021-12-03T13:03:04.425Z", - "updatedAt": "2021-12-03T13:03:26.544Z", - "dataQueries": [ - { - "id": "69f70cd8-d6f4-487b-acc7-b9a88c721767", - "name": "restapi1", - "kind": "restapi", - "options": { - "method": "get", - "url": "https://api.github.com/search/repositories?q=stars:>{{components.numberinput1.value}} forks:>={{components.numberinput2.value}} language:{{components.dropdown1.value}}&sort=stars&order=desc&per_page=25&page={{components.table1.pageIndex}}", - "url_params": [ - [ - "", - "" - ] - ], - "headers": [ - [ - "Accept", - "application/vnd.github.v3+json" - ], - [ - "", - "" - ] - ], - "body": [ - [ - "", - "" - ] - ], - "runOnPageLoad": true - }, - "dataSourceId": null, - "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", - "createdAt": "2021-12-03T13:03:04.424Z", - "updatedAt": "2021-12-03T13:03:04.424Z" - } - ], - "dataSources": [], - "appVersions": [ - { - "id": "78e4c141-5efd-4648-8121-c1339ac8de5e", - "name": "v1", - "definition": { - "components": { - "83cb7c64-4e8f-4fc2-ab0c-eb75d695f57b": { - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { - "type": "string", - "displayName": "Title" - }, - "data": { - "type": "code", - "displayName": "Table data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { - "type": "array", - "displayName": "Table Columns" - }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server-side pagination" - }, - "clientSidePagination": { - "type": "toggle", - "displayName": "Client-side pagination" - }, - "serverSideSearch": { - "type": "toggle", - "displayName": "Server-side search" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text color" - }, - "displaySearchBox": { - "type": "toggle", - "displayName": "Show search box" - }, - "showDownloadButton": { - "type": "toggle", - "displayName": "Show download button" - }, - "showFilterButton": { - "type": "toggle", - "displayName": "Show filter button" - }, - "showBulkUpdateActions": { - "type": "toggle", - "displayName": "Show update buttons" - }, - "showBulkSelector": { - "type": "toggle", - "displayName": "Bulk selection" - }, - "highlightSelectedRow": { - "type": "toggle", - "displayName": "Highlight selected row" - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop " - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "defaultSize": { - "width": 20, - "height": 300 - }, - "events": { - "onRowClicked": { - "displayName": "Row clicked" - }, - "onBulkUpdate": { - "displayName": "Bulk update" - }, - "onPageChanged": { - "displayName": "Page changed" - }, - "onSearch": { - "displayName": "Search" - } - }, - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "tableType": { - "type": "select", - "displayName": "Table type", - "options": [ - { - "name": "Bordered", - "value": "" - }, - { - "name": "Borderless", - "value": "table-borderless" - }, - { - "name": "Classic", - "value": "table-classic" - }, - { - "name": "Striped", - "value": "table-striped" - }, - { - "name": "Striped & bordered", - "value": "table-striped table-bordered" - } - ] - }, - "cellSize": { - "type": "select", - "displayName": "Cell size", - "options": [ - { - "name": "Compact", - "value": "compact" - }, - { - "name": "Spacious", - "value": "spacious" - } - ] - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0, - "searchText": "", - "selectedRows": [] - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "Table" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.restapi1.isLoading}}" - }, - "data": { - "value": "{{queries.restapi1.data.items}}" - }, - "serverSidePagination": { - "value": true - }, - "clientSidePagination": { - "value": false - }, - "displaySearchBox": { - "value": true - }, - "showDownloadButton": { - "value": true - }, - "showFilterButton": { - "value": true - }, - "columns": { - "value": [ - { - "name": "repo", - "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", - "key": "full_name", - "isEditable": false - }, - { - "name": "description", - "id": "1f58dd7d-4c06-4f0f-b8e1-8f097386b843", - "key": "description", - "columnType": "text", - "isEditable": false - }, - { - "name": "stars", - "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", - "key": "stargazers_count" - }, - { - "name": "watchers", - "id": "664e49c8-1600-4d0f-92c4-e1de83338d50", - "key": "watchers" - }, - { - "name": "forks", - "id": "1f9b9cba-e001-4874-8280-bb5f2c7f5367", - "key": "forks" - } - ] - }, - "showBulkUpdateActions": { - "value": true - }, - "showBulkSelector": { - "value": false - }, - "highlightSelectedRow": { - "value": false - }, - "actions": { - "value": [ - { - "name": "Action0", - "buttonText": "View repo", - "events": [], - "backgroundColor": "#4d72da", - "textColor": "#ffffff" - } - ] - }, - "columnSizes": { - "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 183, - "rightActions": 118, - "1f9b9cba-e001-4874-8280-bb5f2c7f5367": 145, - "664e49c8-1600-4d0f-92c4-e1de83338d50": 191, - "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 304, - "1f58dd7d-4c06-4f0f-b8e1-8f097386b843": 282 - }, - "serverSideSearch": { - "value": false - } - }, - "events": [ - { - "eventId": "onPageChanged", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", - "queryName": "restapi1" - } - ], - "styles": { - "textColor": {}, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "cellSize": { - "value": "spacious" - }, - "tableType": { - "value": "" - } - } - } - }, - "layouts": { - "desktop": { - "top": 240, - "left": 2.226580923924874, - "width": 41, - "height": 580 - } - } - }, - "b77260ff-1c04-4621-b8ba-dafcb7770ad8": { - "component": { - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Min. stars" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 55.803153684633806, - "width": 3, - "height": 30 - } - } - }, - "a66009c5-64b6-488b-b687-1896e7cb53c4": { - "component": { - "name": "numberinput1", - "displayName": "Number Input", - "description": "Number field for forms", - "component": "NumberInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": 0 - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "4000" - }, - "placeholder": { - "value": "0" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 62.79069646593218, - "width": 4, - "height": 30 - } - } - }, - "dcdd92d6-d43e-4e37-a46f-d6be4988ce8b": { - "component": { - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Search" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", - "queryName": "restapi1" - } - ], - "styles": { - "backgroundColor": { - "value": "#4d72da" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 74.41860706813564, - "width": 3, - "height": 30 - } - } - }, - "d8c51eee-c15b-415e-9b20-c3f6422d10c9": { - "component": { - "name": "dropdown1", - "displayName": "Dropdown", - "description": "Select one value from options", - "defaultSize": { - "width": 8, - "height": 30 - }, - "component": "DropDown", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "validation": { - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "properties": { - "label": { - "type": "code", - "displayName": "Label" - }, - "value": { - "type": "code", - "displayName": "Default value" - }, - "values": { - "type": "code", - "displayName": "Option values" - }, - "display_values": { - "type": "code", - "displayName": "Option labels" - } - }, - "events": { - "onSelect": { - "displayName": "On select" - } - }, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "validation": { - "customRule": { - "value": null - } - }, - "properties": { - "label": { - "value": "Language" - }, - "value": { - "value": "{{'JavaScript'}}" - }, - "values": { - "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" - }, - "display_values": { - "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 16.25027021756482, - "width": 8, - "height": 30 - } - } - }, - "318ba122-f19d-46b2-bd2b-8e3ea16c7bba": { - "component": { - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "The total number of public {{components.dropdown1.value}} repositories with more than {{components.numberinput1.value}} stars and more than {{components.numberinput2.value}} forks is {{queries.restapi1.data.total_count}}. NOTE: GitHub search API will return only the first 1000 results." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 170, - "left": 23.27741498917618, - "width": 23, - "height": 50 - } - } - }, - "4f80be22-6802-4c7f-a577-ba67fef0c5f1": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

GitHub Star Ranking ⭐️

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 10, - "left": 41.82446364647833, - "width": 9, - "height": 70 - } - } - }, - "e0fa4219-0156-4fb5-8e82-42768496142f": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Min. forks" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 37.20929880998452, - "width": 3, - "height": 30 - } - } - }, - "c7b2d034-a95c-4259-8352-3cfcaff28885": { - "component": { - "name": "numberinput2", - "displayName": "Number Input", - "description": "Number field for forms", - "component": "NumberInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": 0 - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "0" - }, - "placeholder": { - "value": "0" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 44.18604706093992, - "width": 4, - "height": 30 - } - } - }, - "c8cfef28-9b97-40ac-ad8b-e4ffef560baf": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Built using ToolJet (https://github.com/ToolJet/ToolJet)" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 860, - "left": 2.309382293984617, - "width": 17, - "height": 30 - } - } - } - } - }, - "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", - "createdAt": "2021-12-03T13:03:04.448Z", - "updatedAt": "2021-12-03T13:20:11.906Z" - } - ], - "editingVersion": { - "id": "78e4c141-5efd-4648-8121-c1339ac8de5e", - "name": "v1", - "definition": { - "components": { - "83cb7c64-4e8f-4fc2-ab0c-eb75d695f57b": { - "component": { - "name": "table1", - "displayName": "Table", - "description": "Display paginated tabular data", - "component": "Table", - "properties": { - "title": { - "type": "string", - "displayName": "Title" - }, - "data": { - "type": "code", - "displayName": "Table data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading state" - }, - "columns": { - "type": "array", - "displayName": "Table Columns" - }, - "serverSidePagination": { - "type": "toggle", - "displayName": "Server-side pagination" - }, - "clientSidePagination": { - "type": "toggle", - "displayName": "Client-side pagination" - }, - "serverSideSearch": { - "type": "toggle", - "displayName": "Server-side search" - }, - "actionButtonBackgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "actionButtonTextColor": { - "type": "color", - "displayName": "Text color" - }, - "displaySearchBox": { - "type": "toggle", - "displayName": "Show search box" - }, - "showDownloadButton": { - "type": "toggle", - "displayName": "Show download button" - }, - "showFilterButton": { - "type": "toggle", - "displayName": "Show filter button" - }, - "showBulkUpdateActions": { - "type": "toggle", - "displayName": "Show update buttons" - }, - "showBulkSelector": { - "type": "toggle", - "displayName": "Bulk selection" - }, - "highlightSelectedRow": { - "type": "toggle", - "displayName": "Highlight selected row" - } - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop " - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "defaultSize": { - "width": 20, - "height": 300 - }, - "events": { - "onRowClicked": { - "displayName": "Row clicked" - }, - "onBulkUpdate": { - "displayName": "Bulk update" - }, - "onPageChanged": { - "displayName": "Page changed" - }, - "onSearch": { - "displayName": "Search" - } - }, - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "tableType": { - "type": "select", - "displayName": "Table type", - "options": [ - { - "name": "Bordered", - "value": "" - }, - { - "name": "Borderless", - "value": "table-borderless" - }, - { - "name": "Classic", - "value": "table-classic" - }, - { - "name": "Striped", - "value": "table-striped" - }, - { - "name": "Striped & bordered", - "value": "table-striped table-bordered" - } - ] - }, - "cellSize": { - "type": "select", - "displayName": "Cell size", - "options": [ - { - "name": "Compact", - "value": "compact" - }, - { - "name": "Spacious", - "value": "spacious" - } - ] - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "selectedRow": {}, - "changeSet": {}, - "dataUpdates": [], - "pageIndex": 0, - "searchText": "", - "selectedRows": [] - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "Table" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.restapi1.isLoading}}" - }, - "data": { - "value": "{{queries.restapi1.data.items}}" - }, - "serverSidePagination": { - "value": true - }, - "clientSidePagination": { - "value": false - }, - "displaySearchBox": { - "value": true - }, - "showDownloadButton": { - "value": true - }, - "showFilterButton": { - "value": true - }, - "columns": { - "value": [ - { - "name": "repo", - "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", - "key": "full_name", - "isEditable": false - }, - { - "name": "description", - "id": "1f58dd7d-4c06-4f0f-b8e1-8f097386b843", - "key": "description", - "columnType": "text", - "isEditable": false - }, - { - "name": "stars", - "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", - "key": "stargazers_count" - }, - { - "name": "watchers", - "id": "664e49c8-1600-4d0f-92c4-e1de83338d50", - "key": "watchers" - }, - { - "name": "forks", - "id": "1f9b9cba-e001-4874-8280-bb5f2c7f5367", - "key": "forks" - } - ] - }, - "showBulkUpdateActions": { - "value": true - }, - "showBulkSelector": { - "value": false - }, - "highlightSelectedRow": { - "value": false - }, - "actions": { - "value": [ - { - "name": "Action0", - "buttonText": "View repo", - "events": [], - "backgroundColor": "#4d72da", - "textColor": "#ffffff" - } - ] - }, - "columnSizes": { - "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 183, - "rightActions": 118, - "1f9b9cba-e001-4874-8280-bb5f2c7f5367": 145, - "664e49c8-1600-4d0f-92c4-e1de83338d50": 191, - "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 304, - "1f58dd7d-4c06-4f0f-b8e1-8f097386b843": 282 - }, - "serverSideSearch": { - "value": false - } - }, - "events": [ - { - "eventId": "onPageChanged", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", - "queryName": "restapi1" - } - ], - "styles": { - "textColor": {}, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - }, - "cellSize": { - "value": "spacious" - }, - "tableType": { - "value": "" - } - } - } - }, - "layouts": { - "desktop": { - "top": 240, - "left": 2.226580923924874, - "width": 41, - "height": 580 - } - } - }, - "b77260ff-1c04-4621-b8ba-dafcb7770ad8": { - "component": { - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Min. stars" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 55.803153684633806, - "width": 3, - "height": 30 - } - } - }, - "a66009c5-64b6-488b-b687-1896e7cb53c4": { - "component": { - "name": "numberinput1", - "displayName": "Number Input", - "description": "Number field for forms", - "component": "NumberInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": 0 - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "4000" - }, - "placeholder": { - "value": "0" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 62.79069646593218, - "width": 4, - "height": 30 - } - } - }, - "dcdd92d6-d43e-4e37-a46f-d6be4988ce8b": { - "component": { - "name": "button1", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Search" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", - "queryName": "restapi1" - } - ], - "styles": { - "backgroundColor": { - "value": "#4d72da" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{5}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 74.41860706813564, - "width": 3, - "height": 30 - } - } - }, - "d8c51eee-c15b-415e-9b20-c3f6422d10c9": { - "component": { - "name": "dropdown1", - "displayName": "Dropdown", - "description": "Select one value from options", - "defaultSize": { - "width": 8, - "height": 30 - }, - "component": "DropDown", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "validation": { - "customRule": { - "type": "code", - "displayName": "Custom validation" - } - }, - "properties": { - "label": { - "type": "code", - "displayName": "Label" - }, - "value": { - "type": "code", - "displayName": "Default value" - }, - "values": { - "type": "code", - "displayName": "Option values" - }, - "display_values": { - "type": "code", - "displayName": "Option labels" - } - }, - "events": { - "onSelect": { - "displayName": "On select" - } - }, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "validation": { - "customRule": { - "value": null - } - }, - "properties": { - "label": { - "value": "Language" - }, - "value": { - "value": "{{'JavaScript'}}" - }, - "values": { - "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" - }, - "display_values": { - "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 16.25027021756482, - "width": 8, - "height": 30 - } - } - }, - "318ba122-f19d-46b2-bd2b-8e3ea16c7bba": { - "component": { - "name": "text2", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "The total number of public {{components.dropdown1.value}} repositories with more than {{components.numberinput1.value}} stars and more than {{components.numberinput2.value}} forks is {{queries.restapi1.data.total_count}}. NOTE: GitHub search API will return only the first 1000 results." - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 170, - "left": 23.27741498917618, - "width": 23, - "height": 50 - } - } - }, - "4f80be22-6802-4c7f-a577-ba67fef0c5f1": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

GitHub Star Ranking ⭐️

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 10, - "left": 41.82446364647833, - "width": 9, - "height": 70 - } - } - }, - "e0fa4219-0156-4fb5-8e82-42768496142f": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Min. forks" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 37.20929880998452, - "width": 3, - "height": 30 - } - } - }, - "c7b2d034-a95c-4259-8352-3cfcaff28885": { - "component": { - "name": "numberinput2", - "displayName": "Number Input", - "description": "Number field for forms", - "component": "NumberInput", - "defaultSize": { - "width": 4, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "value": { - "type": "code", - "displayName": "Default value" - }, - "placeholder": { - "type": "code", - "displayName": "Placeholder" - } - }, - "events": {}, - "styles": { - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "value": 0 - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "value": { - "value": "0" - }, - "placeholder": { - "value": "0" - } - }, - "events": [], - "styles": { - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 110, - "left": 44.18604706093992, - "width": 4, - "height": 30 - } - } - }, - "c8cfef28-9b97-40ac-ad8b-e4ffef560baf": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 3, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Built using ToolJet (https://github.com/ToolJet/ToolJet)" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "textColor": { - "value": "#000" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 860, - "left": 2.309382293984617, - "width": 17, - "height": 30 - } - } - } - } - }, - "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", - "createdAt": "2021-12-03T13:03:04.448Z", - "updatedAt": "2021-12-03T13:20:11.906Z" - }, - "tooljetVersion": "0.9.1" + "id": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", + "name": "GitHub Star Ranking", + "slug": "github-star-ranking", + "isPublic": true, + "organizationId": "1d89c866-802d-4e0a-a9ef-05660d38a0f4", + "currentVersionId": "78e4c141-5efd-4648-8121-c1339ac8de5e", + "userId": "5d0e3769-e0c6-42cd-a7b9-a112e178296f", + "createdAt": "2021-12-03T13:03:04.425Z", + "updatedAt": "2021-12-03T13:03:26.544Z", + "dataQueries": [ + { + "id": "69f70cd8-d6f4-487b-acc7-b9a88c721767", + "name": "restapi1", + "kind": "restapi", + "options": { + "method": "get", + "url": "https://api.github.com/search/repositories?q=stars:>{{components.numberinput1.value}} forks:>={{components.numberinput2.value}} language:{{components.dropdown1.value}}&sort=stars&order=desc&per_page=25&page={{components.table1.pageIndex}}", + "url_params": [ + [ + "", + "" + ] + ], + "headers": [ + [ + "Accept", + "application/vnd.github.v3+json" + ], + [ + "", + "" + ] + ], + "body": [ + [ + "", + "" + ] + ], + "runOnPageLoad": true + }, + "dataSourceId": null, + "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", + "createdAt": "2021-12-03T13:03:04.424Z", + "updatedAt": "2021-12-03T13:03:04.424Z" + } + ], + "dataSources": [], + "appVersions": [ + { + "id": "78e4c141-5efd-4648-8121-c1339ac8de5e", + "name": "v1", + "definition": { + "components": { + "83cb7c64-4e8f-4fc2-ab0c-eb75d695f57b": { + "component": { + "name": "table1", + "displayName": "Table", + "description": "Display paginated tabular data", + "component": "Table", + "properties": { + "title": { + "type": "string", + "displayName": "Title" + }, + "data": { + "type": "code", + "displayName": "Table data" + }, + "loadingState": { + "type": "code", + "displayName": "Loading state" + }, + "columns": { + "type": "array", + "displayName": "Table Columns" + }, + "serverSidePagination": { + "type": "toggle", + "displayName": "Server-side pagination" + }, + "clientSidePagination": { + "type": "toggle", + "displayName": "Client-side pagination" + }, + "serverSideSearch": { + "type": "toggle", + "displayName": "Server-side search" + }, + "actionButtonBackgroundColor": { + "type": "color", + "displayName": "Background color" + }, + "actionButtonTextColor": { + "type": "color", + "displayName": "Text color" + }, + "displaySearchBox": { + "type": "toggle", + "displayName": "Show search box" + }, + "showDownloadButton": { + "type": "toggle", + "displayName": "Show download button" + }, + "showFilterButton": { + "type": "toggle", + "displayName": "Show filter button" + }, + "showBulkUpdateActions": { + "type": "toggle", + "displayName": "Show bulk update actions" + }, + "showBulkSelector": { + "type": "toggle", + "displayName": "Bulk selection" + }, + "highlightSelectedRow": { + "type": "toggle", + "displayName": "Highlight selected row" + } + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop " + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "defaultSize": { + "width": 20, + "height": 300 + }, + "events": { + "onRowClicked": { + "displayName": "Row clicked" + }, + "onBulkUpdate": { + "displayName": "Bulk update" + }, + "onPageChanged": { + "displayName": "Page changed" + }, + "onSearch": { + "displayName": "Search" + } + }, + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "tableType": { + "type": "select", + "displayName": "Table type", + "options": [ + { + "name": "Bordered", + "value": "" + }, + { + "name": "Borderless", + "value": "table-borderless" + }, + { + "name": "Classic", + "value": "table-classic" + }, + { + "name": "Striped", + "value": "table-striped" + }, + { + "name": "Striped & bordered", + "value": "table-striped table-bordered" + } + ] + }, + "cellSize": { + "type": "select", + "displayName": "Cell size", + "options": [ + { + "name": "Compact", + "value": "compact" + }, + { + "name": "Spacious", + "value": "spacious" + } + ] + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "selectedRow": {}, + "changeSet": {}, + "dataUpdates": [], + "pageIndex": 0, + "searchText": "", + "selectedRows": [] + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "title": { + "value": "Table" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{queries.restapi1.isLoading}}" + }, + "data": { + "value": "{{queries.restapi1.data.items}}" + }, + "serverSidePagination": { + "value": true + }, + "clientSidePagination": { + "value": false + }, + "displaySearchBox": { + "value": true + }, + "showDownloadButton": { + "value": true + }, + "showFilterButton": { + "value": true + }, + "columns": { + "value": [ + { + "name": "repo", + "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", + "key": "full_name", + "isEditable": false + }, + { + "name": "description", + "id": "1f58dd7d-4c06-4f0f-b8e1-8f097386b843", + "key": "description", + "columnType": "text", + "isEditable": false + }, + { + "name": "stars", + "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", + "key": "stargazers_count" + }, + { + "name": "watchers", + "id": "664e49c8-1600-4d0f-92c4-e1de83338d50", + "key": "watchers" + }, + { + "name": "forks", + "id": "1f9b9cba-e001-4874-8280-bb5f2c7f5367", + "key": "forks" + } + ] + }, + "showBulkUpdateActions": { + "value": true + }, + "showBulkSelector": { + "value": false + }, + "highlightSelectedRow": { + "value": false + }, + "actions": { + "value": [ + { + "name": "Action0", + "buttonText": "View repo", + "events": [], + "backgroundColor": "#4d72da", + "textColor": "#ffffff" + } + ] + }, + "columnSizes": { + "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 183, + "rightActions": 118, + "1f9b9cba-e001-4874-8280-bb5f2c7f5367": 145, + "664e49c8-1600-4d0f-92c4-e1de83338d50": 191, + "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 304, + "1f58dd7d-4c06-4f0f-b8e1-8f097386b843": 282 + }, + "serverSideSearch": { + "value": false + } + }, + "events": [ + { + "eventId": "onPageChanged", + "actionId": "run-query", + "message": "Hello world!", + "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", + "queryName": "restapi1" + } + ], + "styles": { + "textColor": {}, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + }, + "cellSize": { + "value": "spacious" + }, + "tableType": { + "value": "" + } + } + } + }, + "layouts": { + "desktop": { + "top": 240, + "left": 2.226580923924874, + "width": 41, + "height": 580 + } + } + }, + "b77260ff-1c04-4621-b8ba-dafcb7770ad8": { + "component": { + "name": "text1", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Min. stars" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 55.803153684633806, + "width": 3, + "height": 30 + } + } + }, + "a66009c5-64b6-488b-b687-1896e7cb53c4": { + "component": { + "name": "numberinput1", + "displayName": "Number Input", + "description": "Number field for forms", + "component": "NumberInput", + "defaultSize": { + "width": 4, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "value": { + "type": "code", + "displayName": "Default value" + }, + "placeholder": { + "type": "code", + "displayName": "Placeholder" + } + }, + "events": {}, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": 0 + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "value": { + "value": "4000" + }, + "placeholder": { + "value": "0" + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 62.79069646593218, + "width": 4, + "height": 30 + } + } + }, + "dcdd92d6-d43e-4e37-a46f-d6be4988ce8b": { + "component": { + "name": "button1", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" + }, + "loadingState": { + "type": "code", + "displayName": "Loading State" + } + }, + "events": { + "onClick": { + "displayName": "On click" + } + }, + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" + }, + "textColor": { + "type": "color", + "displayName": "Text color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + }, + "borderRadius": { + "type": "code", + "displayName": "Border radius" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Search" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [ + { + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", + "queryName": "restapi1" + } + ], + "styles": { + "backgroundColor": { + "value": "#4d72da" + }, + "textColor": { + "value": "#fff" + }, + "visibility": { + "value": "{{true}}" + }, + "borderRadius": { + "value": "{{5}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 74.41860706813564, + "width": 3, + "height": 30 + } + } + }, + "d8c51eee-c15b-415e-9b20-c3f6422d10c9": { + "component": { + "name": "dropdown1", + "displayName": "Dropdown", + "description": "Select one value from options", + "defaultSize": { + "width": 8, + "height": 30 + }, + "component": "DropDown", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "validation": { + "customRule": { + "type": "code", + "displayName": "Custom validation" + } + }, + "properties": { + "label": { + "type": "code", + "displayName": "Label" + }, + "value": { + "type": "code", + "displayName": "Default value" + }, + "values": { + "type": "code", + "displayName": "Option values" + }, + "display_values": { + "type": "code", + "displayName": "Option labels" + } + }, + "events": { + "onSelect": { + "displayName": "On select" + } + }, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": null + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "validation": { + "customRule": { + "value": null + } + }, + "properties": { + "label": { + "value": "Language" + }, + "value": { + "value": "{{'JavaScript'}}" + }, + "values": { + "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" + }, + "display_values": { + "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" + }, + "visible": { + "value": true + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 16.25027021756482, + "width": 8, + "height": 30 + } + } + }, + "318ba122-f19d-46b2-bd2b-8e3ea16c7bba": { + "component": { + "name": "text2", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "The total number of public {{components.dropdown1.value}} repositories with more than {{components.numberinput1.value}} stars and more than {{components.numberinput2.value}} forks is {{queries.restapi1.data.total_count}}. NOTE: GitHub search API will return only the first 1000 results." + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 170, + "left": 23.27741498917618, + "width": 23, + "height": 50 + } + } + }, + "4f80be22-6802-4c7f-a577-ba67fef0c5f1": { + "component": { + "name": "text3", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "

GitHub Star Ranking ⭐️

" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 10, + "left": 41.82446364647833, + "width": 9, + "height": 70 + } + } + }, + "e0fa4219-0156-4fb5-8e82-42768496142f": { + "component": { + "name": "text4", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Min. forks" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 37.20929880998452, + "width": 3, + "height": 30 + } + } + }, + "c7b2d034-a95c-4259-8352-3cfcaff28885": { + "component": { + "name": "numberinput2", + "displayName": "Number Input", + "description": "Number field for forms", + "component": "NumberInput", + "defaultSize": { + "width": 4, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "value": { + "type": "code", + "displayName": "Default value" + }, + "placeholder": { + "type": "code", + "displayName": "Placeholder" + } + }, + "events": {}, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": 0 + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "value": { + "value": "0" + }, + "placeholder": { + "value": "0" + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 44.18604706093992, + "width": 4, + "height": 30 + } + } + }, + "c8cfef28-9b97-40ac-ad8b-e4ffef560baf": { + "component": { + "name": "text5", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Built using ToolJet (https://github.com/ToolJet/ToolJet)" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 860, + "left": 2.309382293984617, + "width": 17, + "height": 30 + } + } + } + } + }, + "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", + "createdAt": "2021-12-03T13:03:04.448Z", + "updatedAt": "2021-12-03T13:20:11.906Z", + "homePageId": "b9eb7bf7-a08f-4c10-815d-acba141d6256", + "pages": { + "b9eb7bf7-a08f-4c10-815d-acba141d6256": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false + } + ], + "editingVersion": { + "id": "78e4c141-5efd-4648-8121-c1339ac8de5e", + "name": "v1", + "definition": { + "components": { + "83cb7c64-4e8f-4fc2-ab0c-eb75d695f57b": { + "component": { + "name": "table1", + "displayName": "Table", + "description": "Display paginated tabular data", + "component": "Table", + "properties": { + "title": { + "type": "string", + "displayName": "Title" + }, + "data": { + "type": "code", + "displayName": "Table data" + }, + "loadingState": { + "type": "code", + "displayName": "Loading state" + }, + "columns": { + "type": "array", + "displayName": "Table Columns" + }, + "serverSidePagination": { + "type": "toggle", + "displayName": "Server-side pagination" + }, + "clientSidePagination": { + "type": "toggle", + "displayName": "Client-side pagination" + }, + "serverSideSearch": { + "type": "toggle", + "displayName": "Server-side search" + }, + "actionButtonBackgroundColor": { + "type": "color", + "displayName": "Background color" + }, + "actionButtonTextColor": { + "type": "color", + "displayName": "Text color" + }, + "displaySearchBox": { + "type": "toggle", + "displayName": "Show search box" + }, + "showDownloadButton": { + "type": "toggle", + "displayName": "Show download button" + }, + "showFilterButton": { + "type": "toggle", + "displayName": "Show filter button" + }, + "showBulkUpdateActions": { + "type": "toggle", + "displayName": "Show bulk update actions" + }, + "showBulkSelector": { + "type": "toggle", + "displayName": "Bulk selection" + }, + "highlightSelectedRow": { + "type": "toggle", + "displayName": "Highlight selected row" + } + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop " + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "defaultSize": { + "width": 20, + "height": 300 + }, + "events": { + "onRowClicked": { + "displayName": "Row clicked" + }, + "onBulkUpdate": { + "displayName": "Bulk update" + }, + "onPageChanged": { + "displayName": "Page changed" + }, + "onSearch": { + "displayName": "Search" + } + }, + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "tableType": { + "type": "select", + "displayName": "Table type", + "options": [ + { + "name": "Bordered", + "value": "" + }, + { + "name": "Borderless", + "value": "table-borderless" + }, + { + "name": "Classic", + "value": "table-classic" + }, + { + "name": "Striped", + "value": "table-striped" + }, + { + "name": "Striped & bordered", + "value": "table-striped table-bordered" + } + ] + }, + "cellSize": { + "type": "select", + "displayName": "Cell size", + "options": [ + { + "name": "Compact", + "value": "compact" + }, + { + "name": "Spacious", + "value": "spacious" + } + ] + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "selectedRow": {}, + "changeSet": {}, + "dataUpdates": [], + "pageIndex": 0, + "searchText": "", + "selectedRows": [] + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "title": { + "value": "Table" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{queries.restapi1.isLoading}}" + }, + "data": { + "value": "{{queries.restapi1.data.items}}" + }, + "serverSidePagination": { + "value": true + }, + "clientSidePagination": { + "value": false + }, + "displaySearchBox": { + "value": true + }, + "showDownloadButton": { + "value": true + }, + "showFilterButton": { + "value": true + }, + "columns": { + "value": [ + { + "name": "repo", + "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", + "key": "full_name", + "isEditable": false + }, + { + "name": "description", + "id": "1f58dd7d-4c06-4f0f-b8e1-8f097386b843", + "key": "description", + "columnType": "text", + "isEditable": false + }, + { + "name": "stars", + "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", + "key": "stargazers_count" + }, + { + "name": "watchers", + "id": "664e49c8-1600-4d0f-92c4-e1de83338d50", + "key": "watchers" + }, + { + "name": "forks", + "id": "1f9b9cba-e001-4874-8280-bb5f2c7f5367", + "key": "forks" + } + ] + }, + "showBulkUpdateActions": { + "value": true + }, + "showBulkSelector": { + "value": false + }, + "highlightSelectedRow": { + "value": false + }, + "actions": { + "value": [ + { + "name": "Action0", + "buttonText": "View repo", + "events": [], + "backgroundColor": "#4d72da", + "textColor": "#ffffff" + } + ] + }, + "columnSizes": { + "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 183, + "rightActions": 118, + "1f9b9cba-e001-4874-8280-bb5f2c7f5367": 145, + "664e49c8-1600-4d0f-92c4-e1de83338d50": 191, + "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 304, + "1f58dd7d-4c06-4f0f-b8e1-8f097386b843": 282 + }, + "serverSideSearch": { + "value": false + } + }, + "events": [ + { + "eventId": "onPageChanged", + "actionId": "run-query", + "message": "Hello world!", + "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", + "queryName": "restapi1" + } + ], + "styles": { + "textColor": {}, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + }, + "cellSize": { + "value": "spacious" + }, + "tableType": { + "value": "" + } + } + } + }, + "layouts": { + "desktop": { + "top": 240, + "left": 2.226580923924874, + "width": 41, + "height": 580 + } + } + }, + "b77260ff-1c04-4621-b8ba-dafcb7770ad8": { + "component": { + "name": "text1", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Min. stars" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 55.803153684633806, + "width": 3, + "height": 30 + } + } + }, + "a66009c5-64b6-488b-b687-1896e7cb53c4": { + "component": { + "name": "numberinput1", + "displayName": "Number Input", + "description": "Number field for forms", + "component": "NumberInput", + "defaultSize": { + "width": 4, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "value": { + "type": "code", + "displayName": "Default value" + }, + "placeholder": { + "type": "code", + "displayName": "Placeholder" + } + }, + "events": {}, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": 0 + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "value": { + "value": "4000" + }, + "placeholder": { + "value": "0" + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 62.79069646593218, + "width": 4, + "height": 30 + } + } + }, + "dcdd92d6-d43e-4e37-a46f-d6be4988ce8b": { + "component": { + "name": "button1", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" + }, + "loadingState": { + "type": "code", + "displayName": "Loading State" + } + }, + "events": { + "onClick": { + "displayName": "On click" + } + }, + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" + }, + "textColor": { + "type": "color", + "displayName": "Text color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + }, + "borderRadius": { + "type": "code", + "displayName": "Border radius" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Search" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [ + { + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "queryId": "69f70cd8-d6f4-487b-acc7-b9a88c721767", + "queryName": "restapi1" + } + ], + "styles": { + "backgroundColor": { + "value": "#4d72da" + }, + "textColor": { + "value": "#fff" + }, + "visibility": { + "value": "{{true}}" + }, + "borderRadius": { + "value": "{{5}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 74.41860706813564, + "width": 3, + "height": 30 + } + } + }, + "d8c51eee-c15b-415e-9b20-c3f6422d10c9": { + "component": { + "name": "dropdown1", + "displayName": "Dropdown", + "description": "Select one value from options", + "defaultSize": { + "width": 8, + "height": 30 + }, + "component": "DropDown", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "validation": { + "customRule": { + "type": "code", + "displayName": "Custom validation" + } + }, + "properties": { + "label": { + "type": "code", + "displayName": "Label" + }, + "value": { + "type": "code", + "displayName": "Default value" + }, + "values": { + "type": "code", + "displayName": "Option values" + }, + "display_values": { + "type": "code", + "displayName": "Option labels" + } + }, + "events": { + "onSelect": { + "displayName": "On select" + } + }, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": null + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "validation": { + "customRule": { + "value": null + } + }, + "properties": { + "label": { + "value": "Language" + }, + "value": { + "value": "{{'JavaScript'}}" + }, + "values": { + "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" + }, + "display_values": { + "value": "{{[\"ActionScript\", \"C\", \"CSharp\", \"CPP\", \"Clojure\", \"CoffeeScript\", \"CSS\", \"Dart\", \"DM\", \"Elixir\", \"Go\", \"Groovy\", \"Haskell\", \"HTML\", \"Java\",\n \"JavaScript\", \"Julia\", \"Kotlin\", \"Lua\", \"MATLAB\", \"Objective-C\", \"Perl\", \"PHP\", \"PowerShell\", \"Python\", \"R\", \"Ruby\", \"Rust\", \"Scala\", \"Shell\",\n \"Swift\", \"TeX\", \"TypeScript\", \"Vim-script\"]}}" + }, + "visible": { + "value": true + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 16.25027021756482, + "width": 8, + "height": 30 + } + } + }, + "318ba122-f19d-46b2-bd2b-8e3ea16c7bba": { + "component": { + "name": "text2", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "The total number of public {{components.dropdown1.value}} repositories with more than {{components.numberinput1.value}} stars and more than {{components.numberinput2.value}} forks is {{queries.restapi1.data.total_count}}. NOTE: GitHub search API will return only the first 1000 results." + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 170, + "left": 23.27741498917618, + "width": 23, + "height": 50 + } + } + }, + "4f80be22-6802-4c7f-a577-ba67fef0c5f1": { + "component": { + "name": "text3", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "

GitHub Star Ranking ⭐️

" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 10, + "left": 41.82446364647833, + "width": 9, + "height": 70 + } + } + }, + "e0fa4219-0156-4fb5-8e82-42768496142f": { + "component": { + "name": "text4", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Min. forks" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 37.20929880998452, + "width": 3, + "height": 30 + } + } + }, + "c7b2d034-a95c-4259-8352-3cfcaff28885": { + "component": { + "name": "numberinput2", + "displayName": "Number Input", + "description": "Number field for forms", + "component": "NumberInput", + "defaultSize": { + "width": 4, + "height": 30 + }, + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "value": { + "type": "code", + "displayName": "Default value" + }, + "placeholder": { + "type": "code", + "displayName": "Placeholder" + } + }, + "events": {}, + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": { + "value": 0 + }, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "value": { + "value": "0" + }, + "placeholder": { + "value": "0" + } + }, + "events": [], + "styles": { + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 110, + "left": 44.18604706093992, + "width": 4, + "height": 30 + } + } + }, + "c8cfef28-9b97-40ac-ad8b-e4ffef560baf": { + "component": { + "name": "text5", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" + }, + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" + } + }, + "properties": { + "text": { + "type": "code", + "displayName": "Text" + }, + "loadingState": { + "type": "code", + "displayName": "Show loading state" + } + }, + "defaultSize": { + "width": 3, + "height": 30 + }, + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" + }, + "visibility": { + "type": "code", + "displayName": "Visibility" + }, + "disabledState": { + "type": "code", + "displayName": "Disable" + } + }, + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true + }, + "showOnMobile": { + "value": false + } + }, + "properties": { + "text": { + "value": "Built using ToolJet (https://github.com/ToolJet/ToolJet)" + }, + "visible": { + "value": true + }, + "loadingState": { + "value": "{{false}}" + } + }, + "events": [], + "styles": { + "textColor": { + "value": "#000" + }, + "visibility": { + "value": "{{true}}" + }, + "disabledState": { + "value": "{{false}}" + } + } + } + }, + "layouts": { + "desktop": { + "top": 860, + "left": 2.309382293984617, + "width": 17, + "height": 30 + } + } + } + } + }, + "appId": "436e9e86-04e4-46ae-a75f-8ba192b7d0af", + "createdAt": "2021-12-03T13:03:04.448Z", + "updatedAt": "2021-12-03T13:20:11.906Z", + "homePageId": "a8f706b0-5de1-4b33-b0d5-bd4778c7e29a", + "pages": { + "a8f706b0-5de1-4b33-b0d5-bd4778c7e29a": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false + }, + "tooljetVersion": "0.9.1" } \ No newline at end of file diff --git a/server/templates/job-application-tracker/definition.json b/server/templates/job-application-tracker/definition.json index 2fd7dd7975..c322b2c340 100644 --- a/server/templates/job-application-tracker/definition.json +++ b/server/templates/job-application-tracker/definition.json @@ -773,7 +773,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -2091,7 +2091,15 @@ }, "appId": "2c069ded-9922-4ef1-923d-d7b4433b766c", "createdAt": "2021-12-15T21:54:07.261Z", - "updatedAt": "2022-01-19T13:12:04.860Z" + "updatedAt": "2022-01-19T13:12:04.860Z", + "homePageId": "3dcfcaf8-b273-4d36-bedf-c78033f05f6d", + "pages": { + "3dcfcaf8-b273-4d36-bedf-c78033f05f6d": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false } ], "editingVersion": { @@ -2736,7 +2744,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -4054,7 +4062,15 @@ }, "appId": "2c069ded-9922-4ef1-923d-d7b4433b766c", "createdAt": "2021-12-15T21:54:07.261Z", - "updatedAt": "2022-01-19T13:12:04.860Z" + "updatedAt": "2022-01-19T13:12:04.860Z", + "homePageId": "954bb5f0-2808-4cb9-b168-0a6af854bff6", + "pages": { + "954bb5f0-2808-4cb9-b168-0a6af854bff6": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false }, "tooljetVersion": "0.13.5-ee1.3.6\n" } \ No newline at end of file diff --git a/server/templates/kpi-management-dashboard/definition.json b/server/templates/kpi-management-dashboard/definition.json index 8c5ac176fb..cf280c4c36 100644 --- a/server/templates/kpi-management-dashboard/definition.json +++ b/server/templates/kpi-management-dashboard/definition.json @@ -1,3866 +1 @@ -{ - "id": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "name": "Company wide KPI dashboard", - "slug": "kpi-dashboard", - "isPublic": true, - "icon": null, - "organizationId": "bd274bab-15ae-4015-9bb6-eb10e1428302", - "currentVersionId": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "userId": "a63b96d1-171d-4799-b7fb-1c457c45130c", - "createdAt": "2022-02-02T06:46:10.397Z", - "updatedAt": "2022-02-02T18:58:02.829Z", - "dataQueries": [ - { - "id": "ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442", - "name": "airtable1", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})", - "runOnPageLoad": true - }, - "dataSourceId": "11e0254a-6ab5-4443-87c1-6a0ab9f38915", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "createdAt": "2022-02-02T14:53:57.120Z", - "updatedAt": "2022-02-02T18:57:21.717Z" - }, - { - "id": "66d41af6-75f6-4810-8d21-feb6d3fdc2e7", - "name": "airtable1", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})" - }, - "dataSourceId": "68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "56905efd-6c95-4094-82f2-3437b44f47db", - "createdAt": "2022-02-02T12:00:32.682Z", - "updatedAt": "2022-02-02T14:41:11.302Z" - }, - { - "id": "52db844b-5103-4dce-a317-3e18926154f6", - "name": "airtable2", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})" - }, - "dataSourceId": "68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "56905efd-6c95-4094-82f2-3437b44f47db", - "createdAt": "2022-02-02T14:53:42.784Z", - "updatedAt": "2022-02-02T14:53:42.784Z" - }, - { - "id": "78903b11-d17a-4b0c-aee9-178115421e12", - "name": "airtable2", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})", - "runOnPageLoad": true - }, - "dataSourceId": "bb369435-d414-4aff-8a0a-01358d5fe2fd", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "4cc498af-18cf-49ba-af3f-25c9eb3c4c55", - "createdAt": "2022-02-02T18:52:50.661Z", - "updatedAt": "2022-02-02T18:53:34.877Z" - }, - { - "id": "c1a6b146-a7de-472d-888a-884fb6bcdadc", - "name": "airtable3", - "kind": "airtable", - "options": { - "operation": "list_records", - "enableTransformation": true, - "transformation": "var prefOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst lists = data.records.map(lists => lists.fields).sort((a,b) => {\n\treturn prefOrder.indexOf(a.month) - prefOrder.indexOf(b.month);\n})\n\nreturn data = lists.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "runOnPageLoad": true - }, - "dataSourceId": "bb369435-d414-4aff-8a0a-01358d5fe2fd", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "4cc498af-18cf-49ba-af3f-25c9eb3c4c55", - "createdAt": "2022-02-02T18:53:52.135Z", - "updatedAt": "2022-02-02T18:54:15.585Z" - }, - { - "id": "470f6da3-6c56-41d9-90cc-7a5252bce743", - "name": "airtable3", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "var prefOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst lists = data.records.map(lists => lists.fields).sort((a,b) => {\n\treturn prefOrder.indexOf(a.month) - prefOrder.indexOf(b.month);\n})\n\nreturn data = lists.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})", - "runOnPageLoad": true - }, - "dataSourceId": "11e0254a-6ab5-4443-87c1-6a0ab9f38915", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "createdAt": "2022-02-02T15:15:41.660Z", - "updatedAt": "2022-02-02T18:57:14.915Z" - }, - { - "id": "4d74c9c2-cf8c-47f7-8148-3e84c7425ef5", - "name": "airtable1", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": true, - "transformation": "var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})", - "runOnPageLoad": true - }, - "dataSourceId": "bb369435-d414-4aff-8a0a-01358d5fe2fd", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "4cc498af-18cf-49ba-af3f-25c9eb3c4c55", - "createdAt": "2022-02-02T18:52:50.661Z", - "updatedAt": "2022-02-02T18:53:31.086Z" - }, - { - "id": "b05fd9ca-4f53-47e5-b0f1-7551b674e2e2", - "name": "airtable2", - "kind": "airtable", - "options": { - "operation": "list_records", - "base_id": "appFvkoWIoYbiJqHZ", - "table_name": "table", - "enableTransformation": false, - "transformation": "// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})", - "runOnPageLoad": true - }, - "dataSourceId": "11e0254a-6ab5-4443-87c1-6a0ab9f38915", - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "createdAt": "2022-02-02T14:53:57.120Z", - "updatedAt": "2022-02-02T18:57:18.707Z" - } - ], - "dataSources": [ - { - "id": "68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e", - "name": "Airtable", - "kind": "airtable", - "options": { - "api_key": { - "credential_id": "4d260acf-03ba-413e-a1b7-d61cde91583f", - "encrypted": true - } - }, - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "56905efd-6c95-4094-82f2-3437b44f47db", - "createdAt": "2022-02-02T11:59:44.664Z", - "updatedAt": "2022-02-02T11:59:44.664Z" - }, - { - "id": "11e0254a-6ab5-4443-87c1-6a0ab9f38915", - "name": "Airtable", - "kind": "airtable", - "options": { - "api_key": { - "credential_id": "a803245f-1d14-4132-acb3-5f4c0adf1ff7", - "encrypted": true - } - }, - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "createdAt": "2022-02-02T14:53:57.120Z", - "updatedAt": "2022-02-02T14:53:57.120Z" - }, - { - "id": "bb369435-d414-4aff-8a0a-01358d5fe2fd", - "name": "Airtable", - "kind": "airtable", - "options": { - "api_key": { - "credential_id": "7ee052b2-c3f7-4811-8a8b-644722e7abe1", - "encrypted": true - } - }, - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "appVersionId": "4cc498af-18cf-49ba-af3f-25c9eb3c4c55", - "createdAt": "2022-02-02T18:52:50.661Z", - "updatedAt": "2022-02-02T18:52:50.661Z" - } - ], - "appVersions": [ - { - "id": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "name": "v3", - "definition": { - "components": { - "40a4c16f-8929-4399-b6b5-7e84268f8592": { - "component": { - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#f4f8fcff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 0, - "left": 0, - "width": 43, - "height": 910 - } - } - }, - "6e9f3607-f1c1-42f1-86fd-99ce1bb5704e": { - "component": { - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

Company-wide KPI dashboard

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#0e2340ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 80, - "left": 2.32918801322441, - "width": 12.027906976744186, - "height": 40 - } - } - }, - "22892782-687e-416f-857f-260bc08b5bda": { - "component": { - "name": "image1", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 3, - "height": 100 - }, - "component": "Image", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "source": { - "type": "code", - "displayName": "URL" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "borderType": { - "type": "select", - "displayName": "Border type", - "options": [ - { - "name": "None", - "value": "none" - }, - { - "name": "Rounded", - "value": "rounded" - }, - { - "name": "Circle", - "value": "rounded-circle" - }, - { - "name": "Thumbnail", - "value": "img-thumbnail" - } - ] - }, - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "source": { - "value": "https://jayambepetrocheminfra.com/wp-content/uploads/2019/04/clients-logo.png" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "borderType": { - "value": "none" - }, - "padding": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 0, - "left": 2.3146411984465844, - "width": 4.010077519379845, - "height": 70 - } - } - }, - "ba064f68-416c-4eed-8a2c-be2429faa60e": { - "component": { - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 150, - "left": 2.370661921545448, - "width": 12.027906976744186, - "height": 350 - } - } - }, - "c28fef99-5786-4833-8a03-8252c1dbe18d": { - "component": { - "name": "container3", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 150, - "left": 32.77120206378193, - "width": 27.99457364341085, - "height": 350 - } - } - }, - "b568158d-9241-4a58-be03-37a7bf96ad80": { - "component": { - "name": "container4", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#1b2755ff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 520, - "left": 2.332798393887263, - "width": 12.027906976744186, - "height": 350 - } - } - }, - "4aa18b35-1afa-4c5e-bac8-2f3086338ec1": { - "component": { - "name": "container5", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 520, - "left": 32.65918486274147, - "width": 27.99457364341085, - "height": 350 - } - } - }, - "d99baaa3-9639-4119-ad63-9910be6e4f66": { - "component": { - "name": "chart2", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showAxes": { - "type": "toggle", - "displayName": "Show axes" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - }, - "jsonDescription": { - "type": "json", - "displayName": "Json Description" - }, - "plotFromJson": { - "type": "toggle", - "displayName": "Use Plotly JSON schema" - } - }, - "events": {}, - "styles": { - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "New users per month" - }, - "markerColor": { - "value": "#4dcfffff" - }, - "showAxes": { - "value": true, - "fxActive": false - }, - "showGridLines": { - "value": true - }, - "plotFromJson": { - "value": false - }, - "loadingState": { - "value": "{{false}}" - }, - "jsonDescription": { - "value": "{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }" - }, - "type": { - "value": "bar" - }, - "data": { - "value": "{{queries.airtable3.data}}" - } - }, - "events": [], - "styles": { - "padding": { - "value": "25" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4aa18b35-1afa-4c5e-bac8-2f3086338ec1", - "layouts": { - "desktop": { - "top": 8, - "left": 2.217973929913321, - "width": 41.03767950738859, - "height": 340 - } - } - }, - "128e091b-0040-4b16-8a59-45ffaf642fff": { - "component": { - "name": "statistics1", - "displayName": "Statistics", - "description": "Statistics can be used to display different statistical information", - "component": "Statistics", - "defaultSize": { - "width": 9.2, - "height": 152 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "primaryValueLabel": { - "type": "code", - "displayName": "Primary value label" - }, - "primaryValue": { - "type": "code", - "displayName": "Primary value" - }, - "secondaryValueLabel": { - "type": "code", - "displayName": "Secondary value label" - }, - "secondaryValue": { - "type": "code", - "displayName": "Secondary value" - }, - "secondarySignDisplay": { - "type": "code", - "displayName": "Secondary sign display" - } - }, - "events": {}, - "styles": { - "primaryLabelColour": { - "type": "color", - "displayName": "Primary Label Colour" - }, - "primaryTextColour": { - "type": "color", - "displayName": "Primary Text Colour" - }, - "secondaryLabelColour": { - "type": "color", - "displayName": "Secondary Label Colour" - }, - "secondaryTextColour": { - "type": "color", - "displayName": "Secondary Text Colour" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "primaryValueLabel": { - "value": "MoM Revenue" - }, - "primaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.momrev}} USD" - }, - "secondaryValueLabel": { - "value": "Last month" - }, - "secondaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.momrevper}}%" - }, - "secondarySignDisplay": { - "value": "negative" - } - }, - "events": [], - "styles": { - "primaryLabelColour": { - "value": "#8092AB" - }, - "primaryTextColour": { - "value": "#000000" - }, - "secondaryLabelColour": { - "value": "#8092AB" - }, - "secondaryTextColour": { - "value": "#36AF8B" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "ba064f68-416c-4eed-8a2c-be2429faa60e", - "layouts": { - "desktop": { - "top": 0, - "left": -0.6743273578478922, - "width": 42.93180409906472, - "height": 160 - } - } - }, - "5ab2c384-58be-449b-a01d-baef5c195fd5": { - "component": { - "name": "statistics2", - "displayName": "Statistics", - "description": "Statistics can be used to display different statistical information", - "component": "Statistics", - "defaultSize": { - "width": 9.2, - "height": 152 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "primaryValueLabel": { - "type": "code", - "displayName": "Primary value label" - }, - "primaryValue": { - "type": "code", - "displayName": "Primary value" - }, - "secondaryValueLabel": { - "type": "code", - "displayName": "Secondary value label" - }, - "secondaryValue": { - "type": "code", - "displayName": "Secondary value" - }, - "secondarySignDisplay": { - "type": "code", - "displayName": "Secondary sign display" - } - }, - "events": {}, - "styles": { - "primaryLabelColour": { - "type": "color", - "displayName": "Primary Label Colour" - }, - "primaryTextColour": { - "type": "color", - "displayName": "Primary Text Colour" - }, - "secondaryLabelColour": { - "type": "color", - "displayName": "Secondary Label Colour" - }, - "secondaryTextColour": { - "type": "color", - "displayName": "Secondary Text Colour" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "primaryValueLabel": { - "value": "MoM new users" - }, - "primaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.newusers}}" - }, - "secondaryValueLabel": { - "value": "Last month" - }, - "secondaryValue": { - "value": "28%" - }, - "secondarySignDisplay": { - "value": "positive" - } - }, - "events": [], - "styles": { - "primaryLabelColour": { - "value": "#8092AB" - }, - "primaryTextColour": { - "value": "#000000" - }, - "secondaryLabelColour": { - "value": "#8092AB" - }, - "secondaryTextColour": { - "value": "#36AF8B" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "ba064f68-416c-4eed-8a2c-be2429faa60e", - "layouts": { - "desktop": { - "top": 178, - "left": -0.38861295930573253, - "width": 42.9318056027148, - "height": 170 - } - } - }, - "c2613713-ffbe-4a0b-9746-f8397a1d59c8": { - "component": { - "name": "circularprogressbar1", - "displayName": "Circular Progressbar", - "description": "Show the progress using circular progressbar", - "component": "CircularProgressBar", - "defaultSize": { - "width": 2, - "height": 50 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "progress": { - "type": "code", - "displayName": "Progress" - } - }, - "events": {}, - "styles": { - "color": { - "type": "color", - "displayName": "Color" - }, - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textSize": { - "type": "code", - "displayName": "Text Size" - }, - "strokeWidth": { - "type": "code", - "displayName": "Stroke Width" - }, - "counterClockwise": { - "type": "code", - "displayName": "Counter Clockwise" - }, - "circleRatio": { - "type": "code", - "displayName": "Circle Ratio" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "{{queries.airtable2.data.records[11].fields.momrevper}}%" - }, - "progress": { - "value": "{{queries.airtable2.data.records[11].fields.momrevper}}" - } - }, - "events": [], - "styles": { - "color": { - "value": "#5fa8ffff" - }, - "textColor": { - "value": "#ffffffff" - }, - "textSize": { - "value": "{{20}}" - }, - "strokeWidth": { - "value": "{{8}}" - }, - "counterClockwise": { - "value": "{{false}}" - }, - "circleRatio": { - "value": "{{1}}" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 110, - "left": 38.738603826136476, - "width": 26.067970755568766, - "height": 180 - } - } - }, - "52cc1be2-4cd1-49a4-a6d5-42327971e5e0": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

Monthly Profits

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#ffffffff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 20, - "left": 4.114528002827358, - "width": 20.960370782665667, - "height": 40 - } - } - }, - "2e3f1f75-22c7-4cf7-81e7-b85e7fc0eb5f": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Total profit gain of {{queries.airtable2.data.records[11].fields.momrevper}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#ffffffff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 60, - "left": 4.716288885608838, - "width": 20.960370782665667, - "height": 30 - } - } - }, - "098e187c-ee10-40bc-a147-fb5cec3a5233": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Last month: {{queries.airtable2.data.records[10].fields.momrevper}}%" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#e0d1d1ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 110, - "left": 4.66414505788613, - "width": 17.96919648589596, - "height": 30 - } - } - }, - "f8523650-758f-4ad9-8429-04c937248c5b": { - "component": { - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "This month: {{queries.airtable2.data.records[11].fields.momrevper}}%" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#e0d1d1ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 160, - "left": 4.677128237663242, - "width": 14.978022189126255, - "height": 30 - } - } - }, - "cfd5d92d-f9ed-4c41-8429-c1e7473a6a09": { - "component": { - "name": "chart2", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showAxes": { - "type": "toggle", - "displayName": "Show axes" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - }, - "jsonDescription": { - "type": "json", - "displayName": "Json Description" - }, - "plotFromJson": { - "type": "toggle", - "displayName": "Use Plotly JSON schema" - } - }, - "events": {}, - "styles": { - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "New Subscriptions" - }, - "markerColor": { - "value": "#b06cecff" - }, - "showAxes": { - "value": true - }, - "showGridLines": { - "value": true - }, - "plotFromJson": { - "value": false - }, - "loadingState": { - "value": "{{false}}" - }, - "jsonDescription": { - "value": "{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }" - }, - "type": { - "value": "line" - }, - "data": { - "value": "{{queries.airtable1.data}}" - } - }, - "events": [], - "styles": { - "padding": { - "value": "50" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "c28fef99-5786-4833-8a03-8252c1dbe18d", - "layouts": { - "desktop": { - "top": 10, - "left": 2.33115689342485, - "width": 40.9772915446946, - "height": 338 - } - } - }, - "ecf496e1-b9b9-4169-8b85-783db0ef1f87": { - "component": { - "name": "button2", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Refresh" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.airtable2.isLoading}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442", - "queryName": "airtable1" - }, - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "b05fd9ca-4f53-47e5-b0f1-7551b674e2e2", - "queryName": "airtable2" - }, - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "470f6da3-6c56-41d9-90cc-7a5252bce743", - "queryName": "airtable3" - } - ], - "styles": { - "backgroundColor": { - "value": "#666d7cff" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{15}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 100, - "left": 90.69767529750386, - "width": 3, - "height": 30 - } - } - } - }, - "globalSettings": { - "hideHeader": true, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "createdAt": "2022-02-02T14:53:57.119Z", - "updatedAt": "2022-02-02T18:58:00.902Z" - } - ], - "editingVersion": { - "id": "b9d8f3be-a780-480f-b2a6-4d1bff13723a", - "name": "v3", - "definition": { - "components": { - "40a4c16f-8929-4399-b6b5-7e84268f8592": { - "component": { - "name": "container1", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#f4f8fcff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 0, - "left": 0, - "width": 43, - "height": 910 - } - } - }, - "6e9f3607-f1c1-42f1-86fd-99ce1bb5704e": { - "component": { - "name": "text1", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

Company-wide KPI dashboard

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#0e2340ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 80, - "left": 2.32918801322441, - "width": 12.027906976744186, - "height": 40 - } - } - }, - "22892782-687e-416f-857f-260bc08b5bda": { - "component": { - "name": "image1", - "displayName": "Image", - "description": "Display an Image", - "defaultSize": { - "width": 3, - "height": 100 - }, - "component": "Image", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "source": { - "type": "code", - "displayName": "URL" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "borderType": { - "type": "select", - "displayName": "Border type", - "options": [ - { - "name": "None", - "value": "none" - }, - { - "name": "Rounded", - "value": "rounded" - }, - { - "name": "Circle", - "value": "rounded-circle" - }, - { - "name": "Thumbnail", - "value": "img-thumbnail" - } - ] - }, - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "source": { - "value": "https://jayambepetrocheminfra.com/wp-content/uploads/2019/04/clients-logo.png" - }, - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "borderType": { - "value": "none" - }, - "padding": { - "value": "0" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 0, - "left": 2.3146411984465844, - "width": 4.010077519379845, - "height": 70 - } - } - }, - "ba064f68-416c-4eed-8a2c-be2429faa60e": { - "component": { - "name": "container2", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#ffffffff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 150, - "left": 2.370661921545448, - "width": 12.027906976744186, - "height": 350 - } - } - }, - "c28fef99-5786-4833-8a03-8252c1dbe18d": { - "component": { - "name": "container3", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 150, - "left": 32.77120206378193, - "width": 27.99457364341085, - "height": 350 - } - } - }, - "b568158d-9241-4a58-be03-37a7bf96ad80": { - "component": { - "name": "container4", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#1b2755ff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 520, - "left": 2.332798393887263, - "width": 12.027906976744186, - "height": 350 - } - } - }, - "4aa18b35-1afa-4c5e-bac8-2f3086338ec1": { - "component": { - "name": "container5", - "displayName": "Container", - "description": "Wrapper for multiple components", - "defaultSize": { - "width": 5, - "height": 200 - }, - "component": "Container", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": {}, - "events": {}, - "styles": { - "backgroundColor": { - "type": "color" - }, - "borderRadius": { - "type": "code", - "displayName": "Border Radius" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "visible": { - "value": true - } - }, - "events": [], - "styles": { - "backgroundColor": { - "value": "#fff" - }, - "borderRadius": { - "value": "15" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "40a4c16f-8929-4399-b6b5-7e84268f8592", - "layouts": { - "desktop": { - "top": 520, - "left": 32.65918486274147, - "width": 27.99457364341085, - "height": 350 - } - } - }, - "d99baaa3-9639-4119-ad63-9910be6e4f66": { - "component": { - "name": "chart2", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showAxes": { - "type": "toggle", - "displayName": "Show axes" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - }, - "jsonDescription": { - "type": "json", - "displayName": "Json Description" - }, - "plotFromJson": { - "type": "toggle", - "displayName": "Use Plotly JSON schema" - } - }, - "events": {}, - "styles": { - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "New users per month" - }, - "markerColor": { - "value": "#4dcfffff" - }, - "showAxes": { - "value": true, - "fxActive": false - }, - "showGridLines": { - "value": true - }, - "plotFromJson": { - "value": false - }, - "loadingState": { - "value": "{{false}}" - }, - "jsonDescription": { - "value": "{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }" - }, - "type": { - "value": "bar" - }, - "data": { - "value": "{{queries.airtable3.data}}" - } - }, - "events": [], - "styles": { - "padding": { - "value": "25" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "4aa18b35-1afa-4c5e-bac8-2f3086338ec1", - "layouts": { - "desktop": { - "top": 8, - "left": 2.217973929913321, - "width": 41.03767950738859, - "height": 340 - } - } - }, - "128e091b-0040-4b16-8a59-45ffaf642fff": { - "component": { - "name": "statistics1", - "displayName": "Statistics", - "description": "Statistics can be used to display different statistical information", - "component": "Statistics", - "defaultSize": { - "width": 9.2, - "height": 152 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "primaryValueLabel": { - "type": "code", - "displayName": "Primary value label" - }, - "primaryValue": { - "type": "code", - "displayName": "Primary value" - }, - "secondaryValueLabel": { - "type": "code", - "displayName": "Secondary value label" - }, - "secondaryValue": { - "type": "code", - "displayName": "Secondary value" - }, - "secondarySignDisplay": { - "type": "code", - "displayName": "Secondary sign display" - } - }, - "events": {}, - "styles": { - "primaryLabelColour": { - "type": "color", - "displayName": "Primary Label Colour" - }, - "primaryTextColour": { - "type": "color", - "displayName": "Primary Text Colour" - }, - "secondaryLabelColour": { - "type": "color", - "displayName": "Secondary Label Colour" - }, - "secondaryTextColour": { - "type": "color", - "displayName": "Secondary Text Colour" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "primaryValueLabel": { - "value": "MoM Revenue" - }, - "primaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.momrev}} USD" - }, - "secondaryValueLabel": { - "value": "Last month" - }, - "secondaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.momrevper}}%" - }, - "secondarySignDisplay": { - "value": "negative" - } - }, - "events": [], - "styles": { - "primaryLabelColour": { - "value": "#8092AB" - }, - "primaryTextColour": { - "value": "#000000" - }, - "secondaryLabelColour": { - "value": "#8092AB" - }, - "secondaryTextColour": { - "value": "#36AF8B" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "ba064f68-416c-4eed-8a2c-be2429faa60e", - "layouts": { - "desktop": { - "top": 0, - "left": -0.6743273578478922, - "width": 42.93180409906472, - "height": 160 - } - } - }, - "5ab2c384-58be-449b-a01d-baef5c195fd5": { - "component": { - "name": "statistics2", - "displayName": "Statistics", - "description": "Statistics can be used to display different statistical information", - "component": "Statistics", - "defaultSize": { - "width": 9.2, - "height": 152 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "primaryValueLabel": { - "type": "code", - "displayName": "Primary value label" - }, - "primaryValue": { - "type": "code", - "displayName": "Primary value" - }, - "secondaryValueLabel": { - "type": "code", - "displayName": "Secondary value label" - }, - "secondaryValue": { - "type": "code", - "displayName": "Secondary value" - }, - "secondarySignDisplay": { - "type": "code", - "displayName": "Secondary sign display" - } - }, - "events": {}, - "styles": { - "primaryLabelColour": { - "type": "color", - "displayName": "Primary Label Colour" - }, - "primaryTextColour": { - "type": "color", - "displayName": "Primary Text Colour" - }, - "secondaryLabelColour": { - "type": "color", - "displayName": "Secondary Label Colour" - }, - "secondaryTextColour": { - "type": "color", - "displayName": "Secondary Text Colour" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "primaryValueLabel": { - "value": "MoM new users" - }, - "primaryValue": { - "value": "{{queries.airtable2.data.records[10].fields.newusers}}" - }, - "secondaryValueLabel": { - "value": "Last month" - }, - "secondaryValue": { - "value": "28%" - }, - "secondarySignDisplay": { - "value": "positive" - } - }, - "events": [], - "styles": { - "primaryLabelColour": { - "value": "#8092AB" - }, - "primaryTextColour": { - "value": "#000000" - }, - "secondaryLabelColour": { - "value": "#8092AB" - }, - "secondaryTextColour": { - "value": "#36AF8B" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "ba064f68-416c-4eed-8a2c-be2429faa60e", - "layouts": { - "desktop": { - "top": 178, - "left": -0.38861295930573253, - "width": 42.9318056027148, - "height": 170 - } - } - }, - "c2613713-ffbe-4a0b-9746-f8397a1d59c8": { - "component": { - "name": "circularprogressbar1", - "displayName": "Circular Progressbar", - "description": "Show the progress using circular progressbar", - "component": "CircularProgressBar", - "defaultSize": { - "width": 2, - "height": 50 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "progress": { - "type": "code", - "displayName": "Progress" - } - }, - "events": {}, - "styles": { - "color": { - "type": "color", - "displayName": "Color" - }, - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textSize": { - "type": "code", - "displayName": "Text Size" - }, - "strokeWidth": { - "type": "code", - "displayName": "Stroke Width" - }, - "counterClockwise": { - "type": "code", - "displayName": "Counter Clockwise" - }, - "circleRatio": { - "type": "code", - "displayName": "Circle Ratio" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "{{queries.airtable2.data.records[11].fields.momrevper}}%" - }, - "progress": { - "value": "{{queries.airtable2.data.records[11].fields.momrevper}}" - } - }, - "events": [], - "styles": { - "color": { - "value": "#5fa8ffff" - }, - "textColor": { - "value": "#ffffffff" - }, - "textSize": { - "value": "{{20}}" - }, - "strokeWidth": { - "value": "{{8}}" - }, - "counterClockwise": { - "value": "{{false}}" - }, - "circleRatio": { - "value": "{{1}}" - }, - "visibility": { - "value": "{{true}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 110, - "left": 38.738603826136476, - "width": 26.067970755568766, - "height": 180 - } - } - }, - "52cc1be2-4cd1-49a4-a6d5-42327971e5e0": { - "component": { - "name": "text3", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "

Monthly Profits

" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#ffffffff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 20, - "left": 4.114528002827358, - "width": 20.960370782665667, - "height": 40 - } - } - }, - "2e3f1f75-22c7-4cf7-81e7-b85e7fc0eb5f": { - "component": { - "name": "text4", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Total profit gain of {{queries.airtable2.data.records[11].fields.momrevper}}" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#ffffffff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 60, - "left": 4.716288885608838, - "width": 20.960370782665667, - "height": 30 - } - } - }, - "098e187c-ee10-40bc-a147-fb5cec3a5233": { - "component": { - "name": "text5", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Last month: {{queries.airtable2.data.records[10].fields.momrevper}}%" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#e0d1d1ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 110, - "left": 4.66414505788613, - "width": 17.96919648589596, - "height": 30 - } - } - }, - "f8523650-758f-4ad9-8429-04c937248c5b": { - "component": { - "name": "text6", - "displayName": "Text", - "description": "Display markdown or HTML", - "component": "Text", - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Text" - }, - "loadingState": { - "type": "code", - "displayName": "Show loading state" - } - }, - "defaultSize": { - "width": 5, - "height": 30 - }, - "events": [], - "styles": { - "textColor": { - "type": "color", - "displayName": "Text Color" - }, - "textAlign": { - "type": "alignButtons", - "displayName": "Align Text" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "This month: {{queries.airtable2.data.records[11].fields.momrevper}}%" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{false}}" - } - }, - "events": [], - "styles": { - "groupActions": { - "value": "left" - }, - "textColor": { - "value": "#e0d1d1ff" - }, - "textAlign": { - "value": "left" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "b568158d-9241-4a58-be03-37a7bf96ad80", - "layouts": { - "desktop": { - "top": 160, - "left": 4.677128237663242, - "width": 14.978022189126255, - "height": 30 - } - } - }, - "cfd5d92d-f9ed-4c41-8429-c1e7473a6a09": { - "component": { - "name": "chart2", - "displayName": "Chart", - "description": "Display charts", - "component": "Chart", - "defaultSize": { - "width": 20, - "height": 400 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "title": { - "type": "code", - "displayName": "Title" - }, - "data": { - "type": "json", - "displayName": "Data" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - }, - "markerColor": { - "type": "color", - "displayName": "Marker color" - }, - "showAxes": { - "type": "toggle", - "displayName": "Show axes" - }, - "showGridLines": { - "type": "toggle", - "displayName": "Show grid lines" - }, - "type": { - "type": "select", - "displayName": "Chart type", - "options": [ - { - "name": "Line", - "value": "line" - }, - { - "name": "Bar", - "value": "bar" - }, - { - "name": "Pie", - "value": "pie" - } - ] - }, - "jsonDescription": { - "type": "json", - "displayName": "Json Description" - }, - "plotFromJson": { - "type": "toggle", - "displayName": "Use Plotly JSON schema" - } - }, - "events": {}, - "styles": { - "padding": { - "type": "code", - "displayName": "Padding" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - } - }, - "exposedVariables": { - "show": null - }, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "title": { - "value": "New Subscriptions" - }, - "markerColor": { - "value": "#b06cecff" - }, - "showAxes": { - "value": true - }, - "showGridLines": { - "value": true - }, - "plotFromJson": { - "value": false - }, - "loadingState": { - "value": "{{false}}" - }, - "jsonDescription": { - "value": "{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }" - }, - "type": { - "value": "line" - }, - "data": { - "value": "{{queries.airtable1.data}}" - } - }, - "events": [], - "styles": { - "padding": { - "value": "50" - }, - "visibility": { - "value": "{{true}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "parent": "c28fef99-5786-4833-8a03-8252c1dbe18d", - "layouts": { - "desktop": { - "top": 10, - "left": 2.33115689342485, - "width": 40.9772915446946, - "height": 338 - } - } - }, - "ecf496e1-b9b9-4169-8b85-783db0ef1f87": { - "component": { - "name": "button2", - "displayName": "Button", - "description": "Trigger actions: queries, alerts etc", - "component": "Button", - "defaultSize": { - "width": 3, - "height": 30 - }, - "others": { - "showOnDesktop": { - "type": "toggle", - "displayName": "Show on desktop" - }, - "showOnMobile": { - "type": "toggle", - "displayName": "Show on mobile" - } - }, - "properties": { - "text": { - "type": "code", - "displayName": "Button Text" - }, - "loadingState": { - "type": "code", - "displayName": "Loading State" - } - }, - "events": { - "onClick": { - "displayName": "On click" - } - }, - "styles": { - "backgroundColor": { - "type": "color", - "displayName": "Background color" - }, - "textColor": { - "type": "color", - "displayName": "Text color" - }, - "visibility": { - "type": "code", - "displayName": "Visibility" - }, - "disabledState": { - "type": "code", - "displayName": "Disable" - }, - "borderRadius": { - "type": "code", - "displayName": "Border radius" - } - }, - "exposedVariables": {}, - "definition": { - "others": { - "showOnDesktop": { - "value": true - }, - "showOnMobile": { - "value": false - } - }, - "properties": { - "text": { - "value": "Refresh" - }, - "visible": { - "value": true - }, - "loadingState": { - "value": "{{queries.airtable2.isLoading}}" - } - }, - "events": [ - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442", - "queryName": "airtable1" - }, - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "b05fd9ca-4f53-47e5-b0f1-7551b674e2e2", - "queryName": "airtable2" - }, - { - "eventId": "onClick", - "actionId": "run-query", - "message": "Hello world!", - "alertType": "info", - "queryId": "470f6da3-6c56-41d9-90cc-7a5252bce743", - "queryName": "airtable3" - } - ], - "styles": { - "backgroundColor": { - "value": "#666d7cff" - }, - "textColor": { - "value": "#fff" - }, - "visibility": { - "value": "{{true}}" - }, - "borderRadius": { - "value": "{{15}}" - }, - "disabledState": { - "value": "{{false}}" - } - } - } - }, - "layouts": { - "desktop": { - "top": 100, - "left": 90.69767529750386, - "width": 3, - "height": 30 - } - } - } - }, - "globalSettings": { - "hideHeader": true, - "canvasMaxWidth": 1292, - "canvasBackgroundColor": "#edeff5" - } - }, - "appId": "95c8084c-b5a0-4f36-a193-a93ad01c65cf", - "createdAt": "2022-02-02T14:53:57.119Z", - "updatedAt": "2022-02-02T18:58:00.902Z" - }, - "tooljetVersion": "0.13.5" -} \ No newline at end of file +{"id":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","name":"Company wide KPI dashboard","slug":"kpi-dashboard","isPublic":true,"icon":null,"organizationId":"bd274bab-15ae-4015-9bb6-eb10e1428302","currentVersionId":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","userId":"a63b96d1-171d-4799-b7fb-1c457c45130c","createdAt":"2022-02-02T06:46:10.397Z","updatedAt":"2022-02-02T18:58:02.829Z","dataQueries":[{"id":"ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442","name":"airtable1","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})","runOnPageLoad":true},"dataSourceId":"11e0254a-6ab5-4443-87c1-6a0ab9f38915","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","createdAt":"2022-02-02T14:53:57.120Z","updatedAt":"2022-02-02T18:57:21.717Z"},{"id":"66d41af6-75f6-4810-8d21-feb6d3fdc2e7","name":"airtable1","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})"},"dataSourceId":"68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"56905efd-6c95-4094-82f2-3437b44f47db","createdAt":"2022-02-02T12:00:32.682Z","updatedAt":"2022-02-02T14:41:11.302Z"},{"id":"52db844b-5103-4dce-a317-3e18926154f6","name":"airtable2","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})"},"dataSourceId":"68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"56905efd-6c95-4094-82f2-3437b44f47db","createdAt":"2022-02-02T14:53:42.784Z","updatedAt":"2022-02-02T14:53:42.784Z"},{"id":"78903b11-d17a-4b0c-aee9-178115421e12","name":"airtable2","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})","runOnPageLoad":true},"dataSourceId":"bb369435-d414-4aff-8a0a-01358d5fe2fd","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"4cc498af-18cf-49ba-af3f-25c9eb3c4c55","createdAt":"2022-02-02T18:52:50.661Z","updatedAt":"2022-02-02T18:53:34.877Z"},{"id":"c1a6b146-a7de-472d-888a-884fb6bcdadc","name":"airtable3","kind":"airtable","options":{"operation":"list_records","enableTransformation":true,"transformation":"var prefOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst lists = data.records.map(lists => lists.fields).sort((a,b) => {\n\treturn prefOrder.indexOf(a.month) - prefOrder.indexOf(b.month);\n})\n\nreturn data = lists.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","runOnPageLoad":true},"dataSourceId":"bb369435-d414-4aff-8a0a-01358d5fe2fd","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"4cc498af-18cf-49ba-af3f-25c9eb3c4c55","createdAt":"2022-02-02T18:53:52.135Z","updatedAt":"2022-02-02T18:54:15.585Z"},{"id":"470f6da3-6c56-41d9-90cc-7a5252bce743","name":"airtable3","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"var prefOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst lists = data.records.map(lists => lists.fields).sort((a,b) => {\n\treturn prefOrder.indexOf(a.month) - prefOrder.indexOf(b.month);\n})\n\nreturn data = lists.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})","runOnPageLoad":true},"dataSourceId":"11e0254a-6ab5-4443-87c1-6a0ab9f38915","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","createdAt":"2022-02-02T15:15:41.660Z","updatedAt":"2022-02-02T18:57:14.915Z"},{"id":"4d74c9c2-cf8c-47f7-8148-3e84c7425ef5","name":"airtable1","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":true,"transformation":"var preferredOrder = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'july', 'aug', 'sep', 'oct', 'nov', 'dec'];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {\"x\": i.month, \"y\": i.newsubs }\n})","runOnPageLoad":true},"dataSourceId":"bb369435-d414-4aff-8a0a-01358d5fe2fd","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"4cc498af-18cf-49ba-af3f-25c9eb3c4c55","createdAt":"2022-02-02T18:52:50.661Z","updatedAt":"2022-02-02T18:53:31.086Z"},{"id":"b05fd9ca-4f53-47e5-b0f1-7551b674e2e2","name":"airtable2","kind":"airtable","options":{"operation":"list_records","base_id":"appFvkoWIoYbiJqHZ","table_name":"table","enableTransformation":false,"transformation":"// write your code here\n// return value will be set as data and the original data will be available as rawData\nvar preferredOrder = [‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘july’, ‘aug’, ‘sep’, ‘oct’, ‘nov’, ‘dec’];\n\nconst list = data.records.map(list => list.fields).sort((a,b) => {\n\treturn preferredOrder.indexOf(a.month) - preferredOrder.indexOf(b.month);\n})\n\nreturn data = list.map((i) => {\n\treturn {“x”: i.month, “y”: i.newsubs }\n})","runOnPageLoad":true},"dataSourceId":"11e0254a-6ab5-4443-87c1-6a0ab9f38915","appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","createdAt":"2022-02-02T14:53:57.120Z","updatedAt":"2022-02-02T18:57:18.707Z"}],"dataSources":[{"id":"68fe2dbd-38ec-401f-bb9b-0d73f6b88b9e","name":"Airtable","kind":"airtable","options":{"api_key":{"credential_id":"4d260acf-03ba-413e-a1b7-d61cde91583f","encrypted":true}},"appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"56905efd-6c95-4094-82f2-3437b44f47db","createdAt":"2022-02-02T11:59:44.664Z","updatedAt":"2022-02-02T11:59:44.664Z"},{"id":"11e0254a-6ab5-4443-87c1-6a0ab9f38915","name":"Airtable","kind":"airtable","options":{"api_key":{"credential_id":"a803245f-1d14-4132-acb3-5f4c0adf1ff7","encrypted":true}},"appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","createdAt":"2022-02-02T14:53:57.120Z","updatedAt":"2022-02-02T14:53:57.120Z"},{"id":"bb369435-d414-4aff-8a0a-01358d5fe2fd","name":"Airtable","kind":"airtable","options":{"api_key":{"credential_id":"7ee052b2-c3f7-4811-8a8b-644722e7abe1","encrypted":true}},"appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","appVersionId":"4cc498af-18cf-49ba-af3f-25c9eb3c4c55","createdAt":"2022-02-02T18:52:50.661Z","updatedAt":"2022-02-02T18:52:50.661Z"}],"appVersions":[{"id":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","name":"v3","definition":{"components":{"40a4c16f-8929-4399-b6b5-7e84268f8592":{"component":{"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#f4f8fcff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":0,"left":0,"width":43,"height":910}}},"6e9f3607-f1c1-42f1-86fd-99ce1bb5704e":{"component":{"name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

Company-wide KPI dashboard

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#0e2340ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":80,"left":2.32918801322441,"width":12.027906976744186,"height":40}}},"22892782-687e-416f-857f-260bc08b5bda":{"component":{"name":"image1","displayName":"Image","description":"Display an Image","defaultSize":{"width":3,"height":100},"component":"Image","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"source":{"type":"code","displayName":"URL"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"borderType":{"type":"select","displayName":"Border type","options":[{"name":"None","value":"none"},{"name":"Rounded","value":"rounded"},{"name":"Circle","value":"rounded-circle"},{"name":"Thumbnail","value":"img-thumbnail"}]},"backgroundColor":{"type":"color","displayName":"Background color"},"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"source":{"value":"https://jayambepetrocheminfra.com/wp-content/uploads/2019/04/clients-logo.png"},"visible":{"value":true}},"events":[],"styles":{"borderType":{"value":"none"},"padding":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":0,"left":2.3146411984465844,"width":4.010077519379845,"height":70}}},"ba064f68-416c-4eed-8a2c-be2429faa60e":{"component":{"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":150,"left":2.370661921545448,"width":12.027906976744186,"height":350}}},"c28fef99-5786-4833-8a03-8252c1dbe18d":{"component":{"name":"container3","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":150,"left":32.77120206378193,"width":27.99457364341085,"height":350}}},"b568158d-9241-4a58-be03-37a7bf96ad80":{"component":{"name":"container4","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#1b2755ff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":520,"left":2.332798393887263,"width":12.027906976744186,"height":350}}},"4aa18b35-1afa-4c5e-bac8-2f3086338ec1":{"component":{"name":"container5","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":520,"left":32.65918486274147,"width":27.99457364341085,"height":350}}},"d99baaa3-9639-4119-ad63-9910be6e4f66":{"component":{"name":"chart2","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showAxes":{"type":"toggle","displayName":"Show axes"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]},"jsonDescription":{"type":"json","displayName":"Json Description"},"plotFromJson":{"type":"toggle","displayName":"Use Plotly JSON schema"}},"events":{},"styles":{"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"New users per month"},"markerColor":{"value":"#4dcfffff"},"showAxes":{"value":true,"fxActive":false},"showGridLines":{"value":true},"plotFromJson":{"value":false},"loadingState":{"value":"{{false}}"},"jsonDescription":{"value":"{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }"},"type":{"value":"bar"},"data":{"value":"{{queries.airtable3.data}}"}},"events":[],"styles":{"padding":{"value":"25"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4aa18b35-1afa-4c5e-bac8-2f3086338ec1","layouts":{"desktop":{"top":8,"left":2.217973929913321,"width":41.03767950738859,"height":340}}},"128e091b-0040-4b16-8a59-45ffaf642fff":{"component":{"name":"statistics1","displayName":"Statistics","description":"Statistics can be used to display different statistical information","component":"Statistics","defaultSize":{"width":9.2,"height":152},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"primaryValueLabel":{"type":"code","displayName":"Primary value label"},"primaryValue":{"type":"code","displayName":"Primary value"},"secondaryValueLabel":{"type":"code","displayName":"Secondary value label"},"secondaryValue":{"type":"code","displayName":"Secondary value"},"secondarySignDisplay":{"type":"code","displayName":"Secondary sign display"}},"events":{},"styles":{"primaryLabelColour":{"type":"color","displayName":"Primary Label Colour"},"primaryTextColour":{"type":"color","displayName":"Primary Text Colour"},"secondaryLabelColour":{"type":"color","displayName":"Secondary Label Colour"},"secondaryTextColour":{"type":"color","displayName":"Secondary Text Colour"},"visibility":{"type":"code","displayName":"Visibility"}},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"primaryValueLabel":{"value":"MoM Revenue"},"primaryValue":{"value":"{{queries.airtable2.data.records[10].fields.momrev}} USD"},"secondaryValueLabel":{"value":"Last month"},"secondaryValue":{"value":"{{queries.airtable2.data.records[10].fields.momrevper}}%"},"secondarySignDisplay":{"value":"negative"}},"events":[],"styles":{"primaryLabelColour":{"value":"#8092AB"},"primaryTextColour":{"value":"#000000"},"secondaryLabelColour":{"value":"#8092AB"},"secondaryTextColour":{"value":"#36AF8B"},"visibility":{"value":"{{true}}"}}}},"parent":"ba064f68-416c-4eed-8a2c-be2429faa60e","layouts":{"desktop":{"top":0,"left":-0.6743273578478922,"width":42.93180409906472,"height":160}}},"5ab2c384-58be-449b-a01d-baef5c195fd5":{"component":{"name":"statistics2","displayName":"Statistics","description":"Statistics can be used to display different statistical information","component":"Statistics","defaultSize":{"width":9.2,"height":152},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"primaryValueLabel":{"type":"code","displayName":"Primary value label"},"primaryValue":{"type":"code","displayName":"Primary value"},"secondaryValueLabel":{"type":"code","displayName":"Secondary value label"},"secondaryValue":{"type":"code","displayName":"Secondary value"},"secondarySignDisplay":{"type":"code","displayName":"Secondary sign display"}},"events":{},"styles":{"primaryLabelColour":{"type":"color","displayName":"Primary Label Colour"},"primaryTextColour":{"type":"color","displayName":"Primary Text Colour"},"secondaryLabelColour":{"type":"color","displayName":"Secondary Label Colour"},"secondaryTextColour":{"type":"color","displayName":"Secondary Text Colour"},"visibility":{"type":"code","displayName":"Visibility"}},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"primaryValueLabel":{"value":"MoM new users"},"primaryValue":{"value":"{{queries.airtable2.data.records[10].fields.newusers}}"},"secondaryValueLabel":{"value":"Last month"},"secondaryValue":{"value":"28%"},"secondarySignDisplay":{"value":"positive"}},"events":[],"styles":{"primaryLabelColour":{"value":"#8092AB"},"primaryTextColour":{"value":"#000000"},"secondaryLabelColour":{"value":"#8092AB"},"secondaryTextColour":{"value":"#36AF8B"},"visibility":{"value":"{{true}}"}}}},"parent":"ba064f68-416c-4eed-8a2c-be2429faa60e","layouts":{"desktop":{"top":178,"left":-0.38861295930573253,"width":42.9318056027148,"height":170}}},"c2613713-ffbe-4a0b-9746-f8397a1d59c8":{"component":{"name":"circularprogressbar1","displayName":"Circular Progressbar","description":"Show the progress using circular progressbar","component":"CircularProgressBar","defaultSize":{"width":2,"height":50},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"progress":{"type":"code","displayName":"Progress"}},"events":{},"styles":{"color":{"type":"color","displayName":"Color"},"textColor":{"type":"color","displayName":"Text Color"},"textSize":{"type":"code","displayName":"Text Size"},"strokeWidth":{"type":"code","displayName":"Stroke Width"},"counterClockwise":{"type":"code","displayName":"Counter Clockwise"},"circleRatio":{"type":"code","displayName":"Circle Ratio"},"visibility":{"type":"code","displayName":"Visibility"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"{{queries.airtable2.data.records[11].fields.momrevper}}%"},"progress":{"value":"{{queries.airtable2.data.records[11].fields.momrevper}}"}},"events":[],"styles":{"color":{"value":"#5fa8ffff"},"textColor":{"value":"#ffffffff"},"textSize":{"value":"{{20}}"},"strokeWidth":{"value":"{{8}}"},"counterClockwise":{"value":"{{false}}"},"circleRatio":{"value":"{{1}}"},"visibility":{"value":"{{true}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":110,"left":38.738603826136476,"width":26.067970755568766,"height":180}}},"52cc1be2-4cd1-49a4-a6d5-42327971e5e0":{"component":{"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

Monthly Profits

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#ffffffff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":20,"left":4.114528002827358,"width":20.960370782665667,"height":40}}},"2e3f1f75-22c7-4cf7-81e7-b85e7fc0eb5f":{"component":{"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Total profit gain of {{queries.airtable2.data.records[11].fields.momrevper}}"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#ffffffff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":60,"left":4.716288885608838,"width":20.960370782665667,"height":30}}},"098e187c-ee10-40bc-a147-fb5cec3a5233":{"component":{"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Last month: {{queries.airtable2.data.records[10].fields.momrevper}}%"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#e0d1d1ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":110,"left":4.66414505788613,"width":17.96919648589596,"height":30}}},"f8523650-758f-4ad9-8429-04c937248c5b":{"component":{"name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"This month: {{queries.airtable2.data.records[11].fields.momrevper}}%"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#e0d1d1ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":160,"left":4.677128237663242,"width":14.978022189126255,"height":30}}},"cfd5d92d-f9ed-4c41-8429-c1e7473a6a09":{"component":{"name":"chart2","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showAxes":{"type":"toggle","displayName":"Show axes"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]},"jsonDescription":{"type":"json","displayName":"Json Description"},"plotFromJson":{"type":"toggle","displayName":"Use Plotly JSON schema"}},"events":{},"styles":{"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"New Subscriptions"},"markerColor":{"value":"#b06cecff"},"showAxes":{"value":true},"showGridLines":{"value":true},"plotFromJson":{"value":false},"loadingState":{"value":"{{false}}"},"jsonDescription":{"value":"{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }"},"type":{"value":"line"},"data":{"value":"{{queries.airtable1.data}}"}},"events":[],"styles":{"padding":{"value":"50"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"c28fef99-5786-4833-8a03-8252c1dbe18d","layouts":{"desktop":{"top":10,"left":2.33115689342485,"width":40.9772915446946,"height":338}}},"ecf496e1-b9b9-4169-8b85-783db0ef1f87":{"component":{"name":"button2","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"},"borderRadius":{"type":"code","displayName":"Border radius"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Refresh"},"visible":{"value":true},"loadingState":{"value":"{{queries.airtable2.isLoading}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442","queryName":"airtable1"},{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"b05fd9ca-4f53-47e5-b0f1-7551b674e2e2","queryName":"airtable2"},{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"470f6da3-6c56-41d9-90cc-7a5252bce743","queryName":"airtable3"}],"styles":{"backgroundColor":{"value":"#666d7cff"},"textColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{15}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":100,"left":90.69767529750386,"width":3,"height":30}}}},"globalSettings":{"hideHeader":true,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","createdAt":"2022-02-02T14:53:57.119Z","updatedAt":"2022-02-02T18:58:00.902Z","homePageId":"bfac5b60-3914-445e-82b9-1f5f6b6508e3","pages":{"bfac5b60-3914-445e-82b9-1f5f6b6508e3":{"name":"Home","handle":"home"}},"showViewerNavigation":false}],"editingVersion":{"id":"b9d8f3be-a780-480f-b2a6-4d1bff13723a","name":"v3","definition":{"components":{"40a4c16f-8929-4399-b6b5-7e84268f8592":{"component":{"name":"container1","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#f4f8fcff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":0,"left":0,"width":43,"height":910}}},"6e9f3607-f1c1-42f1-86fd-99ce1bb5704e":{"component":{"name":"text1","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

Company-wide KPI dashboard

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#0e2340ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":80,"left":2.32918801322441,"width":12.027906976744186,"height":40}}},"22892782-687e-416f-857f-260bc08b5bda":{"component":{"name":"image1","displayName":"Image","description":"Display an Image","defaultSize":{"width":3,"height":100},"component":"Image","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"source":{"type":"code","displayName":"URL"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"borderType":{"type":"select","displayName":"Border type","options":[{"name":"None","value":"none"},{"name":"Rounded","value":"rounded"},{"name":"Circle","value":"rounded-circle"},{"name":"Thumbnail","value":"img-thumbnail"}]},"backgroundColor":{"type":"color","displayName":"Background color"},"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"source":{"value":"https://jayambepetrocheminfra.com/wp-content/uploads/2019/04/clients-logo.png"},"visible":{"value":true}},"events":[],"styles":{"borderType":{"value":"none"},"padding":{"value":"0"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":0,"left":2.3146411984465844,"width":4.010077519379845,"height":70}}},"ba064f68-416c-4eed-8a2c-be2429faa60e":{"component":{"name":"container2","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#ffffffff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":150,"left":2.370661921545448,"width":12.027906976744186,"height":350}}},"c28fef99-5786-4833-8a03-8252c1dbe18d":{"component":{"name":"container3","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":150,"left":32.77120206378193,"width":27.99457364341085,"height":350}}},"b568158d-9241-4a58-be03-37a7bf96ad80":{"component":{"name":"container4","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#1b2755ff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":520,"left":2.332798393887263,"width":12.027906976744186,"height":350}}},"4aa18b35-1afa-4c5e-bac8-2f3086338ec1":{"component":{"name":"container5","displayName":"Container","description":"Wrapper for multiple components","defaultSize":{"width":5,"height":200},"component":"Container","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{},"events":{},"styles":{"backgroundColor":{"type":"color"},"borderRadius":{"type":"code","displayName":"Border Radius"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"visible":{"value":true}},"events":[],"styles":{"backgroundColor":{"value":"#fff"},"borderRadius":{"value":"15"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"40a4c16f-8929-4399-b6b5-7e84268f8592","layouts":{"desktop":{"top":520,"left":32.65918486274147,"width":27.99457364341085,"height":350}}},"d99baaa3-9639-4119-ad63-9910be6e4f66":{"component":{"name":"chart2","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showAxes":{"type":"toggle","displayName":"Show axes"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]},"jsonDescription":{"type":"json","displayName":"Json Description"},"plotFromJson":{"type":"toggle","displayName":"Use Plotly JSON schema"}},"events":{},"styles":{"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"New users per month"},"markerColor":{"value":"#4dcfffff"},"showAxes":{"value":true,"fxActive":false},"showGridLines":{"value":true},"plotFromJson":{"value":false},"loadingState":{"value":"{{false}}"},"jsonDescription":{"value":"{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }"},"type":{"value":"bar"},"data":{"value":"{{queries.airtable3.data}}"}},"events":[],"styles":{"padding":{"value":"25"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"4aa18b35-1afa-4c5e-bac8-2f3086338ec1","layouts":{"desktop":{"top":8,"left":2.217973929913321,"width":41.03767950738859,"height":340}}},"128e091b-0040-4b16-8a59-45ffaf642fff":{"component":{"name":"statistics1","displayName":"Statistics","description":"Statistics can be used to display different statistical information","component":"Statistics","defaultSize":{"width":9.2,"height":152},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"primaryValueLabel":{"type":"code","displayName":"Primary value label"},"primaryValue":{"type":"code","displayName":"Primary value"},"secondaryValueLabel":{"type":"code","displayName":"Secondary value label"},"secondaryValue":{"type":"code","displayName":"Secondary value"},"secondarySignDisplay":{"type":"code","displayName":"Secondary sign display"}},"events":{},"styles":{"primaryLabelColour":{"type":"color","displayName":"Primary Label Colour"},"primaryTextColour":{"type":"color","displayName":"Primary Text Colour"},"secondaryLabelColour":{"type":"color","displayName":"Secondary Label Colour"},"secondaryTextColour":{"type":"color","displayName":"Secondary Text Colour"},"visibility":{"type":"code","displayName":"Visibility"}},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"primaryValueLabel":{"value":"MoM Revenue"},"primaryValue":{"value":"{{queries.airtable2.data.records[10].fields.momrev}} USD"},"secondaryValueLabel":{"value":"Last month"},"secondaryValue":{"value":"{{queries.airtable2.data.records[10].fields.momrevper}}%"},"secondarySignDisplay":{"value":"negative"}},"events":[],"styles":{"primaryLabelColour":{"value":"#8092AB"},"primaryTextColour":{"value":"#000000"},"secondaryLabelColour":{"value":"#8092AB"},"secondaryTextColour":{"value":"#36AF8B"},"visibility":{"value":"{{true}}"}}}},"parent":"ba064f68-416c-4eed-8a2c-be2429faa60e","layouts":{"desktop":{"top":0,"left":-0.6743273578478922,"width":42.93180409906472,"height":160}}},"5ab2c384-58be-449b-a01d-baef5c195fd5":{"component":{"name":"statistics2","displayName":"Statistics","description":"Statistics can be used to display different statistical information","component":"Statistics","defaultSize":{"width":9.2,"height":152},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"primaryValueLabel":{"type":"code","displayName":"Primary value label"},"primaryValue":{"type":"code","displayName":"Primary value"},"secondaryValueLabel":{"type":"code","displayName":"Secondary value label"},"secondaryValue":{"type":"code","displayName":"Secondary value"},"secondarySignDisplay":{"type":"code","displayName":"Secondary sign display"}},"events":{},"styles":{"primaryLabelColour":{"type":"color","displayName":"Primary Label Colour"},"primaryTextColour":{"type":"color","displayName":"Primary Text Colour"},"secondaryLabelColour":{"type":"color","displayName":"Secondary Label Colour"},"secondaryTextColour":{"type":"color","displayName":"Secondary Text Colour"},"visibility":{"type":"code","displayName":"Visibility"}},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"primaryValueLabel":{"value":"MoM new users"},"primaryValue":{"value":"{{queries.airtable2.data.records[10].fields.newusers}}"},"secondaryValueLabel":{"value":"Last month"},"secondaryValue":{"value":"28%"},"secondarySignDisplay":{"value":"positive"}},"events":[],"styles":{"primaryLabelColour":{"value":"#8092AB"},"primaryTextColour":{"value":"#000000"},"secondaryLabelColour":{"value":"#8092AB"},"secondaryTextColour":{"value":"#36AF8B"},"visibility":{"value":"{{true}}"}}}},"parent":"ba064f68-416c-4eed-8a2c-be2429faa60e","layouts":{"desktop":{"top":178,"left":-0.38861295930573253,"width":42.9318056027148,"height":170}}},"c2613713-ffbe-4a0b-9746-f8397a1d59c8":{"component":{"name":"circularprogressbar1","displayName":"Circular Progressbar","description":"Show the progress using circular progressbar","component":"CircularProgressBar","defaultSize":{"width":2,"height":50},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"progress":{"type":"code","displayName":"Progress"}},"events":{},"styles":{"color":{"type":"color","displayName":"Color"},"textColor":{"type":"color","displayName":"Text Color"},"textSize":{"type":"code","displayName":"Text Size"},"strokeWidth":{"type":"code","displayName":"Stroke Width"},"counterClockwise":{"type":"code","displayName":"Counter Clockwise"},"circleRatio":{"type":"code","displayName":"Circle Ratio"},"visibility":{"type":"code","displayName":"Visibility"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"{{queries.airtable2.data.records[11].fields.momrevper}}%"},"progress":{"value":"{{queries.airtable2.data.records[11].fields.momrevper}}"}},"events":[],"styles":{"color":{"value":"#5fa8ffff"},"textColor":{"value":"#ffffffff"},"textSize":{"value":"{{20}}"},"strokeWidth":{"value":"{{8}}"},"counterClockwise":{"value":"{{false}}"},"circleRatio":{"value":"{{1}}"},"visibility":{"value":"{{true}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":110,"left":38.738603826136476,"width":26.067970755568766,"height":180}}},"52cc1be2-4cd1-49a4-a6d5-42327971e5e0":{"component":{"name":"text3","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"

Monthly Profits

"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#ffffffff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":20,"left":4.114528002827358,"width":20.960370782665667,"height":40}}},"2e3f1f75-22c7-4cf7-81e7-b85e7fc0eb5f":{"component":{"name":"text4","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Total profit gain of {{queries.airtable2.data.records[11].fields.momrevper}}"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#ffffffff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":60,"left":4.716288885608838,"width":20.960370782665667,"height":30}}},"098e187c-ee10-40bc-a147-fb5cec3a5233":{"component":{"name":"text5","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Last month: {{queries.airtable2.data.records[10].fields.momrevper}}%"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#e0d1d1ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":110,"left":4.66414505788613,"width":17.96919648589596,"height":30}}},"f8523650-758f-4ad9-8429-04c937248c5b":{"component":{"name":"text6","displayName":"Text","description":"Display markdown or HTML","component":"Text","others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Text"},"loadingState":{"type":"code","displayName":"Show loading state"}},"defaultSize":{"width":5,"height":30},"events":[],"styles":{"textColor":{"type":"color","displayName":"Text Color"},"textAlign":{"type":"alignButtons","displayName":"Align Text"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"This month: {{queries.airtable2.data.records[11].fields.momrevper}}%"},"visible":{"value":true},"loadingState":{"value":"{{false}}"}},"events":[],"styles":{"groupActions":{"value":"left"},"textColor":{"value":"#e0d1d1ff"},"textAlign":{"value":"left"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"b568158d-9241-4a58-be03-37a7bf96ad80","layouts":{"desktop":{"top":160,"left":4.677128237663242,"width":14.978022189126255,"height":30}}},"cfd5d92d-f9ed-4c41-8429-c1e7473a6a09":{"component":{"name":"chart2","displayName":"Chart","description":"Display charts","component":"Chart","defaultSize":{"width":20,"height":400},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"title":{"type":"code","displayName":"Title"},"data":{"type":"json","displayName":"Data"},"loadingState":{"type":"code","displayName":"Loading State"},"markerColor":{"type":"color","displayName":"Marker color"},"showAxes":{"type":"toggle","displayName":"Show axes"},"showGridLines":{"type":"toggle","displayName":"Show grid lines"},"type":{"type":"select","displayName":"Chart type","options":[{"name":"Line","value":"line"},{"name":"Bar","value":"bar"},{"name":"Pie","value":"pie"}]},"jsonDescription":{"type":"json","displayName":"Json Description"},"plotFromJson":{"type":"toggle","displayName":"Use Plotly JSON schema"}},"events":{},"styles":{"padding":{"type":"code","displayName":"Padding"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"}},"exposedVariables":{"show":null},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"title":{"value":"New Subscriptions"},"markerColor":{"value":"#b06cecff"},"showAxes":{"value":true},"showGridLines":{"value":true},"plotFromJson":{"value":false},"loadingState":{"value":"{{false}}"},"jsonDescription":{"value":"{\n \"data\": [\n {\n \"x\": [\n \"Jan\",\n \"Feb\",\n \"Mar\"\n ],\n \"y\": [\n 100,\n 80,\n 40\n ],\n \"type\": \"bar\"\n }\n ]\n }"},"type":{"value":"line"},"data":{"value":"{{queries.airtable1.data}}"}},"events":[],"styles":{"padding":{"value":"50"},"visibility":{"value":"{{true}}"},"disabledState":{"value":"{{false}}"}}}},"parent":"c28fef99-5786-4833-8a03-8252c1dbe18d","layouts":{"desktop":{"top":10,"left":2.33115689342485,"width":40.9772915446946,"height":338}}},"ecf496e1-b9b9-4169-8b85-783db0ef1f87":{"component":{"name":"button2","displayName":"Button","description":"Trigger actions: queries, alerts etc","component":"Button","defaultSize":{"width":3,"height":30},"others":{"showOnDesktop":{"type":"toggle","displayName":"Show on desktop"},"showOnMobile":{"type":"toggle","displayName":"Show on mobile"}},"properties":{"text":{"type":"code","displayName":"Button Text"},"loadingState":{"type":"code","displayName":"Loading State"}},"events":{"onClick":{"displayName":"On click"}},"styles":{"backgroundColor":{"type":"color","displayName":"Background color"},"textColor":{"type":"color","displayName":"Text color"},"visibility":{"type":"code","displayName":"Visibility"},"disabledState":{"type":"code","displayName":"Disable"},"borderRadius":{"type":"code","displayName":"Border radius"}},"exposedVariables":{},"definition":{"others":{"showOnDesktop":{"value":true},"showOnMobile":{"value":false}},"properties":{"text":{"value":"Refresh"},"visible":{"value":true},"loadingState":{"value":"{{queries.airtable2.isLoading}}"}},"events":[{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"ac1a9cb9-b576-4ee4-8b7b-2e8d8d122442","queryName":"airtable1"},{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"b05fd9ca-4f53-47e5-b0f1-7551b674e2e2","queryName":"airtable2"},{"eventId":"onClick","actionId":"run-query","message":"Hello world!","alertType":"info","queryId":"470f6da3-6c56-41d9-90cc-7a5252bce743","queryName":"airtable3"}],"styles":{"backgroundColor":{"value":"#666d7cff"},"textColor":{"value":"#fff"},"visibility":{"value":"{{true}}"},"borderRadius":{"value":"{{15}}"},"disabledState":{"value":"{{false}}"}}}},"layouts":{"desktop":{"top":100,"left":90.69767529750386,"width":3,"height":30}}}},"globalSettings":{"hideHeader":true,"canvasMaxWidth":1292,"canvasBackgroundColor":"#edeff5"}},"appId":"95c8084c-b5a0-4f36-a193-a93ad01c65cf","createdAt":"2022-02-02T14:53:57.119Z","updatedAt":"2022-02-02T18:58:00.902Z","homePageId":"4b7d0ab0-0f53-4eee-adf3-fbb65bab2489","pages":{"4b7d0ab0-0f53-4eee-adf3-fbb65bab2489":{"name":"Home","handle":"home"}},"showViewerNavigation":false},"tooljetVersion":"0.13.5"} \ No newline at end of file diff --git a/server/templates/s3-file-explorer/definition.json b/server/templates/s3-file-explorer/definition.json index 08ebb22b97..f79a259699 100644 --- a/server/templates/s3-file-explorer/definition.json +++ b/server/templates/s3-file-explorer/definition.json @@ -574,7 +574,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -1390,7 +1390,15 @@ }, "appId": "e115ddba-cf45-4246-91ee-6bb40101a12d", "createdAt": "2021-12-16T15:52:12.610Z", - "updatedAt": "2021-12-16T16:21:24.728Z" + "updatedAt": "2021-12-16T16:21:24.728Z", + "homePageId": "77ca5170-7220-44a9-9c8e-0e203f42850f", + "pages": { + "77ca5170-7220-44a9-9c8e-0e203f42850f": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false } ], "editingVersion": { @@ -1868,7 +1876,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -2684,7 +2692,15 @@ }, "appId": "e115ddba-cf45-4246-91ee-6bb40101a12d", "createdAt": "2021-12-16T15:52:12.610Z", - "updatedAt": "2021-12-16T16:21:24.728Z" + "updatedAt": "2021-12-16T16:21:24.728Z", + "homePageId": "1c368412-aad1-40cf-a0b9-eadba9e798d6", + "pages": { + "1c368412-aad1-40cf-a0b9-eadba9e798d6": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false }, "tooljetVersion": "0.11.0" } \ No newline at end of file diff --git a/server/templates/store-catalogue-management-dashboard/definition.json b/server/templates/store-catalogue-management-dashboard/definition.json index 91af77bd9a..cdf5a962fb 100644 --- a/server/templates/store-catalogue-management-dashboard/definition.json +++ b/server/templates/store-catalogue-management-dashboard/definition.json @@ -1,7003 +1,6747 @@ { - "id":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "name":"Store catalogue", - "slug":"store-catalogue", - "isPublic":true, - "icon":null, - "organizationId":"bd274bab-15ae-4015-9bb6-eb10e1428302", - "currentVersionId":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "userId":"a63b96d1-171d-4799-b7fb-1c457c45130c", - "createdAt":"2022-02-03T05:48:22.092Z", - "updatedAt":"2022-02-09T13:54:09.634Z", - "dataQueries":[ + "id": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "name": "Store catalogue", + "slug": "store-catalogue", + "isPublic": true, + "icon": null, + "organizationId": "bd274bab-15ae-4015-9bb6-eb10e1428302", + "currentVersionId": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "userId": "a63b96d1-171d-4799-b7fb-1c457c45130c", + "createdAt": "2022-02-03T05:48:22.092Z", + "updatedAt": "2022-02-09T13:54:09.634Z", + "dataQueries": [ { - "id":"db02a67e-8bd5-4729-adc7-a95a9fd0cbe5", - "name":"listRecords", - "kind":"airtable", - "options":{ - "operation":"list_records", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "runOnPageLoad":true, - "enableTransformation":false, - "transformation":"" + "id": "db02a67e-8bd5-4729-adc7-a95a9fd0cbe5", + "name": "listRecords", + "kind": "airtable", + "options": { + "operation": "list_records", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "runOnPageLoad": true, + "enableTransformation": false, + "transformation": "" }, - "dataSourceId":"50a1db0c-b511-4a05-bfdf-61554ed1807a", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"ab9fa2ab-abcd-4bb8-aab1-bdba301f1dc8", - "createdAt":"2022-02-03T10:09:40.434Z", - "updatedAt":"2022-02-03T10:41:28.288Z" + "dataSourceId": "50a1db0c-b511-4a05-bfdf-61554ed1807a", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "ab9fa2ab-abcd-4bb8-aab1-bdba301f1dc8", + "createdAt": "2022-02-03T10:09:40.434Z", + "updatedAt": "2022-02-03T10:41:28.288Z" }, { - "id":"63668745-08f7-4689-bf28-a71ba66dbdb8", - "name":"listRecords", - "kind":"airtable", - "options":{ - "operation":"list_records", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "runOnPageLoad":true, - "enableTransformation":false, - "transformation":"" + "id": "63668745-08f7-4689-bf28-a71ba66dbdb8", + "name": "listRecords", + "kind": "airtable", + "options": { + "operation": "list_records", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "runOnPageLoad": true, + "enableTransformation": false, + "transformation": "" }, - "dataSourceId":"75be4128-fe03-41ec-8abf-476bbad94eaa", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"ced71bd1-00cc-431e-a849-12e38e927eeb", - "createdAt":"2022-02-03T12:29:58.196Z", - "updatedAt":"2022-02-03T12:29:58.196Z" + "dataSourceId": "75be4128-fe03-41ec-8abf-476bbad94eaa", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "ced71bd1-00cc-431e-a849-12e38e927eeb", + "createdAt": "2022-02-03T12:29:58.196Z", + "updatedAt": "2022-02-03T12:29:58.196Z" }, { - "id":"cf8d513a-7e53-456d-af03-975bcea5123b", - "name":"listRecords", - "kind":"airtable", - "options":{ - "operation":"list_records", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "runOnPageLoad":true, - "enableTransformation":false, - "transformation":"" + "id": "cf8d513a-7e53-456d-af03-975bcea5123b", + "name": "listRecords", + "kind": "airtable", + "options": { + "operation": "list_records", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "runOnPageLoad": true, + "enableTransformation": false, + "transformation": "" }, - "dataSourceId":"7b3a2601-7860-4781-8ea9-1cc127c4b79f", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", - "createdAt":"2022-02-03T12:34:51.729Z", - "updatedAt":"2022-02-03T12:34:51.729Z" + "dataSourceId": "7b3a2601-7860-4781-8ea9-1cc127c4b79f", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", + "createdAt": "2022-02-03T12:34:51.729Z", + "updatedAt": "2022-02-03T12:34:51.729Z" }, { - "id":"0d64dd53-ba83-4def-883b-6f29242cb9bc", - "name":"airtable2", - "kind":"airtable", - "options":{ - "operation":"create_record", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "body":"[{\"fields\": {\"customer\":\"Create Test\",\n\"delivery-date\":\"2022-02-24\",\n\"delivery-status\":\"fsdazxfgasdfsda\",\n\"order\":\"sdfsfsfsdf\",\n\"order-id\":\"sdfsdfdsfsf\",\n\"payment\":\"sdfasdfasdf\",\n\"pricing\":\"43535\"}}]" + "id": "0d64dd53-ba83-4def-883b-6f29242cb9bc", + "name": "airtable2", + "kind": "airtable", + "options": { + "operation": "create_record", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "body": "[{\"fields\": {\"customer\":\"Create Test\",\n\"delivery-date\":\"2022-02-24\",\n\"delivery-status\":\"fsdazxfgasdfsda\",\n\"order\":\"sdfsfsfsdf\",\n\"order-id\":\"sdfsdfdsfsf\",\n\"payment\":\"sdfasdfasdf\",\n\"pricing\":\"43535\"}}]" }, - "dataSourceId":"7b3a2601-7860-4781-8ea9-1cc127c4b79f", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", - "createdAt":"2022-02-08T05:34:27.382Z", - "updatedAt":"2022-02-08T05:49:31.178Z" + "dataSourceId": "7b3a2601-7860-4781-8ea9-1cc127c4b79f", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", + "createdAt": "2022-02-08T05:34:27.382Z", + "updatedAt": "2022-02-08T05:49:31.178Z" }, { - "id":"82178b68-767b-4229-adfb-46dde60c31b7", - "name":"listRecords", - "kind":"airtable", - "options":{ - "operation":"list_records", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "runOnPageLoad":true, - "enableTransformation":false, - "transformation":"" + "id": "82178b68-767b-4229-adfb-46dde60c31b7", + "name": "listRecords", + "kind": "airtable", + "options": { + "operation": "list_records", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "runOnPageLoad": true, + "enableTransformation": false, + "transformation": "" }, - "dataSourceId":"7097de99-f771-4867-be91-9f21ef948ec6", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "createdAt":"2022-02-09T13:23:41.031Z", - "updatedAt":"2022-02-09T13:23:41.031Z" + "dataSourceId": "7097de99-f771-4867-be91-9f21ef948ec6", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "createdAt": "2022-02-09T13:23:41.031Z", + "updatedAt": "2022-02-09T13:23:41.031Z" }, { - "id":"8d018065-ce4b-4c7e-912e-fcff3b99a4a8", - "name":"createRecord", - "kind":"airtable", - "options":{ - "operation":"create_record", - "base_id":"appDT3UCPffPiSmFd", - "table_name":"orders", - "body":"[{\"fields\": {\"order-id\": \"{{components.textinput1.value}}\", \"customer\": \"{{components.textinput2.value}}\", \"order\": \"{{components.textinput3.value}}\", \"delivery-date\": \"{{components.textinput4.value}}\", \"delivery-status\": \"{{components.textinput5.value}}\", \"pricing\": \"{{components.textinput6.value}}\", \"payment\": \"{{components.textinput7.value}}\"}}]", - "events":[ + "id": "8d018065-ce4b-4c7e-912e-fcff3b99a4a8", + "name": "createRecord", + "kind": "airtable", + "options": { + "operation": "create_record", + "base_id": "appDT3UCPffPiSmFd", + "table_name": "orders", + "body": "[{\"fields\": {\"order-id\": \"{{components.textinput1.value}}\", \"customer\": \"{{components.textinput2.value}}\", \"order\": \"{{components.textinput3.value}}\", \"delivery-date\": \"{{components.textinput4.value}}\", \"delivery-status\": \"{{components.textinput5.value}}\", \"pricing\": \"{{components.textinput6.value}}\", \"payment\": \"{{components.textinput7.value}}\"}}]", + "events": [ { - "eventId":"onDataQuerySuccess", - "actionId":"run-query", - "message":"Hello world!", - "alertType":"info", - "queryId":"82178b68-767b-4229-adfb-46dde60c31b7", - "queryName":"listRecords" + "eventId": "onDataQuerySuccess", + "actionId": "run-query", + "message": "Hello world!", + "alertType": "info", + "queryId": "82178b68-767b-4229-adfb-46dde60c31b7", + "queryName": "listRecords" } ] }, - "dataSourceId":"7097de99-f771-4867-be91-9f21ef948ec6", - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "createdAt":"2022-02-09T13:23:41.031Z", - "updatedAt":"2022-02-09T13:52:38.974Z" + "dataSourceId": "7097de99-f771-4867-be91-9f21ef948ec6", + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "createdAt": "2022-02-09T13:23:41.031Z", + "updatedAt": "2022-02-09T13:52:38.974Z" } ], - "dataSources":[ + "dataSources": [ { - "id":"50a1db0c-b511-4a05-bfdf-61554ed1807a", - "name":"Airtable", - "kind":"airtable", - "options":{ - "api_key":{ - "credential_id":"26f64322-9c10-47ac-afb1-c79bec3ebb42", - "encrypted":true + "id": "50a1db0c-b511-4a05-bfdf-61554ed1807a", + "name": "Airtable", + "kind": "airtable", + "options": { + "api_key": { + "credential_id": "26f64322-9c10-47ac-afb1-c79bec3ebb42", + "encrypted": true } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"ab9fa2ab-abcd-4bb8-aab1-bdba301f1dc8", - "createdAt":"2022-02-03T06:37:23.316Z", - "updatedAt":"2022-02-03T06:37:23.316Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "ab9fa2ab-abcd-4bb8-aab1-bdba301f1dc8", + "createdAt": "2022-02-03T06:37:23.316Z", + "updatedAt": "2022-02-03T06:37:23.316Z" }, { - "id":"75be4128-fe03-41ec-8abf-476bbad94eaa", - "name":"Airtable", - "kind":"airtable", - "options":{ - "api_key":{ - "credential_id":"1aad6c6e-a99c-4c12-b507-031678a0058e", - "encrypted":true + "id": "75be4128-fe03-41ec-8abf-476bbad94eaa", + "name": "Airtable", + "kind": "airtable", + "options": { + "api_key": { + "credential_id": "1aad6c6e-a99c-4c12-b507-031678a0058e", + "encrypted": true } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"ced71bd1-00cc-431e-a849-12e38e927eeb", - "createdAt":"2022-02-03T12:29:58.196Z", - "updatedAt":"2022-02-03T12:29:58.196Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "ced71bd1-00cc-431e-a849-12e38e927eeb", + "createdAt": "2022-02-03T12:29:58.196Z", + "updatedAt": "2022-02-03T12:29:58.196Z" }, { - "id":"7b3a2601-7860-4781-8ea9-1cc127c4b79f", - "name":"Airtable", - "kind":"airtable", - "options":{ - "api_key":{ - "credential_id":"730651ff-bab0-43f6-9ea5-bafa478368ce", - "encrypted":true + "id": "7b3a2601-7860-4781-8ea9-1cc127c4b79f", + "name": "Airtable", + "kind": "airtable", + "options": { + "api_key": { + "credential_id": "730651ff-bab0-43f6-9ea5-bafa478368ce", + "encrypted": true } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", - "createdAt":"2022-02-03T12:34:51.729Z", - "updatedAt":"2022-02-03T12:34:51.729Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "0b3e895d-7e00-42fe-b7c4-bf2c06c122e6", + "createdAt": "2022-02-03T12:34:51.729Z", + "updatedAt": "2022-02-03T12:34:51.729Z" }, { - "id":"7097de99-f771-4867-be91-9f21ef948ec6", - "name":"Airtable", - "kind":"airtable", - "options":{ - "api_key":{ - "credential_id":"e93e717d-e964-4a28-9660-edf3b2d941e2", - "encrypted":true + "id": "7097de99-f771-4867-be91-9f21ef948ec6", + "name": "Airtable", + "kind": "airtable", + "options": { + "api_key": { + "credential_id": "e93e717d-e964-4a28-9660-edf3b2d941e2", + "encrypted": true } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "appVersionId":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "createdAt":"2022-02-09T13:23:41.031Z", - "updatedAt":"2022-02-09T13:27:57.255Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "appVersionId": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "createdAt": "2022-02-09T13:23:41.031Z", + "updatedAt": "2022-02-09T13:27:57.255Z" } ], - "appVersions":[ + "appVersions": [ { - "id":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "name":"v4", - "definition":{ - "components":{ - "431205f0-41a3-4c3b-967b-076d0d306dd6":{ - "component":{ - "name":"container1", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "id": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "name": "v4", + "definition": { + "components": { + "431205f0-41a3-4c3b-967b-076d0d306dd6": { + "component": { + "name": "container1", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#dadfeaff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#dadfeaff" }, - "borderRadius":{ - "value":"0" + "borderRadius": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "layouts":{ - "desktop":{ - "top":0, - "left":0, - "width":43, - "height":1060 + "layouts": { + "desktop": { + "top": 0, + "left": 0, + "width": 43, + "height": 1060 } } }, - "f5977604-e89c-46bf-a09e-4f8d2868d215":{ - "component":{ - "name":"container2", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "f5977604-e89c-46bf-a09e-4f8d2868d215": { + "component": { + "name": "container2", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#c0cae0ff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#c0cae0ff" }, - "borderRadius":{ - "value":"0" + "borderRadius": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":0, - "left":0, - "width":42.99457364341085, - "height":60 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 0, + "left": 0, + "width": 42.99457364341085, + "height": 60 } } }, - "13bc42c4-437d-49cd-9e37-bf34b1656431":{ - "component":{ - "name":"image1", - "displayName":"Image", - "description":"Display an Image", - "defaultSize":{ - "width":3, - "height":100 + "13bc42c4-437d-49cd-9e37-bf34b1656431": { + "component": { + "name": "image1", + "displayName": "Image", + "description": "Display an Image", + "defaultSize": { + "width": 3, + "height": 100 }, - "component":"Image", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Image", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "source":{ - "type":"code", - "displayName":"URL" + "properties": { + "source": { + "type": "code", + "displayName": "URL" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "borderType":{ - "type":"select", - "displayName":"Border type", - "options":[ + "styles": { + "borderType": { + "type": "select", + "displayName": "Border type", + "options": [ { - "name":"None", - "value":"none" + "name": "None", + "value": "none" }, { - "name":"Rounded", - "value":"rounded" + "name": "Rounded", + "value": "rounded" }, { - "name":"Circle", - "value":"rounded-circle" + "name": "Circle", + "value": "rounded-circle" }, { - "name":"Thumbnail", - "value":"img-thumbnail" + "name": "Thumbnail", + "value": "img-thumbnail" } ] }, - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "padding":{ - "type":"code", - "displayName":"Padding" + "padding": { + "type": "code", + "displayName": "Padding" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "source":{ - "value":"https://download.logo.wine/logo/John_Wood_Group/John_Wood_Group-Logo.wine.png" + "properties": { + "source": { + "value": "https://download.logo.wine/logo/John_Wood_Group/John_Wood_Group-Logo.wine.png" }, - "visible":{ - "value":true + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "borderType":{ - "value":"none" + "events": [], + "styles": { + "borderType": { + "value": "none" }, - "padding":{ - "value":"0" + "padding": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"f5977604-e89c-46bf-a09e-4f8d2868d215", - "layouts":{ - "desktop":{ - "top":0, - "left":0.02547074734027328, - "width":5.009815452809283, - "height":58 + "parent": "f5977604-e89c-46bf-a09e-4f8d2868d215", + "layouts": { + "desktop": { + "top": 0, + "left": 0.02547074734027328, + "width": 5.009815452809283, + "height": 58 } } }, - "d15645c1-53e8-4a23-bc68-1e89a92f3cc3":{ - "component":{ - "name":"container3", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "d15645c1-53e8-4a23-bc68-1e89a92f3cc3": { + "component": { + "name": "container3", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#c6cadbff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#c6cadbff" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":180, - "left":2.440669293005031, - "width":8.99457364341085, - "height":660 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 180, + "left": 2.440669293005031, + "width": 8.99457364341085, + "height": 660 } } }, - "aad5998a-7699-4a39-87ea-e58992c9823a":{ - "component":{ - "name":"text1", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "aad5998a-7699-4a39-87ea-e58992c9823a": { + "component": { + "name": "text1", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"

Dashboard

" + "properties": { + "text": { + "value": "

Dashboard

" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#111845ff" + "textColor": { + "value": "#111845ff" }, - "textAlign":{ - "value":"center" + "textAlign": { + "value": "center" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":80, - "left":2.200248883604634, - "width":5.986821705426356, - "height":70 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 80, + "left": 2.200248883604634, + "width": 5.986821705426356, + "height": 70 } } }, - "ce02774f-2e45-47c6-b2e0-b81efb63bff3":{ - "component":{ - "name":"modal1", - "displayName":"Modal", - "description":"Modal triggered by events", - "component":"Modal", - "defaultSize":{ - "width":10, - "height":400 + "ce02774f-2e45-47c6-b2e0-b81efb63bff3": { + "component": { + "name": "modal1", + "displayName": "Modal", + "description": "Modal triggered by events", + "component": "Modal", + "defaultSize": { + "width": 10, + "height": 400 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "title":{ - "type":"code", - "displayName":"Title" + "properties": { + "title": { + "type": "code", + "displayName": "Title" }, - "size":{ - "type":"select", - "displayName":"Modal size", - "options":[ + "size": { + "type": "select", + "displayName": "Modal size", + "options": [ { - "name":"small", - "value":"sm" + "name": "small", + "value": "sm" }, { - "name":"medium", - "value":"md" + "name": "medium", + "value": "md" }, { - "name":"large", - "value":"lg" + "name": "large", + "value": "lg" } ] } }, - "events":{ - - }, - "styles":{ - "disabledState":{ - "type":"code", - "displayName":"Disable" + "events": {}, + "styles": { + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - "show":null + "exposedVariables": { + "show": null }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "title":{ - "value":"Add new item" + "properties": { + "title": { + "value": "Add new item" }, - "size":{ - "value":"sm" + "size": { + "value": "sm" } }, - "events":[ - - ], - "styles":{ - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "events": [], + "styles": { + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":110, - "left":25.668013723273027, - "width":15.022480620155036, - "height":460 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 110, + "left": 25.668013723273027, + "width": 15.022480620155036, + "height": 460 } } }, - "995baada-980b-4640-860f-f5782eaf3741":{ - "component":{ - "name":"textinput1", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "995baada-980b-4640-860f-f5782eaf3741": { + "component": { + "name": "textinput1", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"ABC1234" + "placeholder": { + "value": "ABC1234" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":10, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 10, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "ad33e7bb-a95d-454f-a886-9275171f2183":{ - "component":{ - "name":"text2", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "ad33e7bb-a95d-454f-a886-9275171f2183": { + "component": { + "name": "text2", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Order ID" + "properties": { + "text": { + "value": "Order ID" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":10, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 10, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "4e93bcad-433c-412b-8dce-9b97492ed7ad":{ - "component":{ - "name":"text3", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "4e93bcad-433c-412b-8dce-9b97492ed7ad": { + "component": { + "name": "text3", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Customer" + "properties": { + "text": { + "value": "Customer" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":60, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 60, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "296a0a3e-8f8c-46f5-bac1-86303f7979b1":{ - "component":{ - "name":"textinput2", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "296a0a3e-8f8c-46f5-bac1-86303f7979b1": { + "component": { + "name": "textinput2", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"Name" + "placeholder": { + "value": "Name" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":60, - "left":44.186062282986114, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 60, + "left": 44.186062282986114, + "width": 21.006398425003077, + "height": 30 } } }, - "b33e348c-54a1-4348-8bbc-0cdb832411ea":{ - "component":{ - "name":"button2", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "b33e348c-54a1-4348-8bbc-0cdb832411ea": { + "component": { + "name": "button2", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Submit" + "properties": { + "text": { + "value": "Submit" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"run-query", - "message":"Hello world!", - "alertType":"info", - "queryId":"8d018065-ce4b-4c7e-912e-fcff3b99a4a8", - "queryName":"createRecord" + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "alertType": "info", + "queryId": "8d018065-ce4b-4c7e-912e-fcff3b99a4a8", + "queryName": "createRecord" }, { - "eventId":"onClick", - "actionId":"show-alert", - "message":"Order listed!", - "alertType":"success" + "eventId": "onClick", + "actionId": "show-alert", + "message": "Order listed!", + "alertType": "success" }, { - "eventId":"onClick", - "actionId":"close-modal", - "message":"Hello world!", - "alertType":"info", - "modal":"ce02774f-2e45-47c6-b2e0-b81efb63bff3" + "eventId": "onClick", + "actionId": "close-modal", + "message": "Hello world!", + "alertType": "info", + "modal": "ce02774f-2e45-47c6-b2e0-b81efb63bff3" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":380, - "left":34.88373933015046, - "width":11.982035191337516, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 380, + "left": 34.88373933015046, + "width": 11.982035191337516, + "height": 30 } } }, - "359d0ce4-ba04-4aa6-af37-cac5d2a41525":{ - "component":{ - "name":"button3", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "359d0ce4-ba04-4aa6-af37-cac5d2a41525": { + "component": { + "name": "button3", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Refresh" + "properties": { + "text": { + "value": "Refresh" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{queries.listRecords.isLoading}}", - "fxActive":true + "loadingState": { + "value": "{{queries.listRecords.isLoading}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"run-query", - "message":"Hello world!", - "alertType":"info", - "queryId":"82178b68-767b-4229-adfb-46dde60c31b7", - "queryName":"listRecords" + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "alertType": "info", + "queryId": "82178b68-767b-4229-adfb-46dde60c31b7", + "queryName": "listRecords" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":130, - "left":88.49829328318498, - "width":3.9767441860465116, - "height":30 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 130, + "left": 88.49829328318498, + "width": 3.9767441860465116, + "height": 30 } } }, - "fa6d17e7-cd02-4054-a813-ab1fb9c0fe6d":{ - "component":{ - "name":"button4", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "fa6d17e7-cd02-4054-a813-ab1fb9c0fe6d": { + "component": { + "name": "button4", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Add new item" + "properties": { + "text": { + "value": "Add new item" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"show-modal", - "message":"Hello world!", - "alertType":"info", - "modal":"ce02774f-2e45-47c6-b2e0-b81efb63bff3" + "eventId": "onClick", + "actionId": "show-modal", + "message": "Hello world!", + "alertType": "info", + "modal": "ce02774f-2e45-47c6-b2e0-b81efb63bff3" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"d15645c1-53e8-4a23-bc68-1e89a92f3cc3", - "layouts":{ - "desktop":{ - "top":20, - "left":4.72096935844812, - "width":39.036390038795815, - "height":30 + "parent": "d15645c1-53e8-4a23-bc68-1e89a92f3cc3", + "layouts": { + "desktop": { + "top": 20, + "left": 4.72096935844812, + "width": 39.036390038795815, + "height": 30 } } }, - "cbf7b1ce-c170-42b0-92ad-0dfdda56e2d1":{ - "component":{ - "name":"table1", - "displayName":"Table", - "description":"Display paginated tabular data", - "component":"Table", - "properties":{ - "title":{ - "type":"string", - "displayName":"Title" + "cbf7b1ce-c170-42b0-92ad-0dfdda56e2d1": { + "component": { + "name": "table1", + "displayName": "Table", + "description": "Display paginated tabular data", + "component": "Table", + "properties": { + "title": { + "type": "string", + "displayName": "Title" }, - "data":{ - "type":"code", - "displayName":"Table data" + "data": { + "type": "code", + "displayName": "Table data" }, - "loadingState":{ - "type":"code", - "displayName":"Loading state" + "loadingState": { + "type": "code", + "displayName": "Loading state" }, - "columns":{ - "type":"array", - "displayName":"Table Columns" + "columns": { + "type": "array", + "displayName": "Table Columns" }, - "serverSidePagination":{ - "type":"toggle", - "displayName":"Server-side pagination" + "serverSidePagination": { + "type": "toggle", + "displayName": "Server-side pagination" }, - "clientSidePagination":{ - "type":"toggle", - "displayName":"Client-side pagination" + "clientSidePagination": { + "type": "toggle", + "displayName": "Client-side pagination" }, - "serverSideSearch":{ - "type":"toggle", - "displayName":"Server-side search" + "serverSideSearch": { + "type": "toggle", + "displayName": "Server-side search" }, - "actionButtonBackgroundColor":{ - "type":"color", - "displayName":"Background color" + "actionButtonBackgroundColor": { + "type": "color", + "displayName": "Background color" }, - "actionButtonTextColor":{ - "type":"color", - "displayName":"Text color" + "actionButtonTextColor": { + "type": "color", + "displayName": "Text color" }, - "displaySearchBox":{ - "type":"toggle", - "displayName":"Show search box" + "displaySearchBox": { + "type": "toggle", + "displayName": "Show search box" }, - "showDownloadButton":{ - "type":"toggle", - "displayName":"Show download button" + "showDownloadButton": { + "type": "toggle", + "displayName": "Show download button" }, - "showFilterButton":{ - "type":"toggle", - "displayName":"Show filter button" + "showFilterButton": { + "type": "toggle", + "displayName": "Show filter button" }, - "showBulkUpdateActions":{ - "type":"toggle", - "displayName":"Show update buttons" + "showBulkUpdateActions": { + "type": "toggle", + "displayName": "Show bulk update actions" }, - "showBulkSelector":{ - "type":"toggle", - "displayName":"Bulk selection" + "showBulkSelector": { + "type": "toggle", + "displayName": "Bulk selection" }, - "highlightSelectedRow":{ - "type":"toggle", - "displayName":"Highlight selected row" + "highlightSelectedRow": { + "type": "toggle", + "displayName": "Highlight selected row" } }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop " + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop " }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "defaultSize":{ - "width":20, - "height":300 + "defaultSize": { + "width": 20, + "height": 300 }, - "events":{ - "onRowClicked":{ - "displayName":"Row clicked" + "events": { + "onRowClicked": { + "displayName": "Row clicked" }, - "onBulkUpdate":{ - "displayName":"Bulk update" + "onBulkUpdate": { + "displayName": "Bulk update" }, - "onPageChanged":{ - "displayName":"Page changed" + "onPageChanged": { + "displayName": "Page changed" }, - "onSearch":{ - "displayName":"Search" + "onSearch": { + "displayName": "Search" } }, - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "actionButtonRadius":{ - "type":"code", - "displayName":"Action Button Radius" + "actionButtonRadius": { + "type": "code", + "displayName": "Action Button Radius" }, - "tableType":{ - "type":"select", - "displayName":"Table type", - "options":[ + "tableType": { + "type": "select", + "displayName": "Table type", + "options": [ { - "name":"Bordered", - "value":"" + "name": "Bordered", + "value": "" }, { - "name":"Borderless", - "value":"table-borderless" + "name": "Borderless", + "value": "table-borderless" }, { - "name":"Classic", - "value":"table-classic" + "name": "Classic", + "value": "table-classic" }, { - "name":"Striped", - "value":"table-striped" + "name": "Striped", + "value": "table-striped" }, { - "name":"Striped & bordered", - "value":"table-striped table-bordered" + "name": "Striped & bordered", + "value": "table-striped table-bordered" } ] }, - "cellSize":{ - "type":"select", - "displayName":"Cell size", - "options":[ + "cellSize": { + "type": "select", + "displayName": "Cell size", + "options": [ { - "name":"Compact", - "value":"compact" + "name": "Compact", + "value": "compact" }, { - "name":"Spacious", - "value":"spacious" + "name": "Spacious", + "value": "spacious" } ] }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - "selectedRow":{ - - }, - "changeSet":{ - - }, - "dataUpdates":[ - - ], - "pageIndex":1, - "searchText":"", - "selectedRows":[ - - ] + "exposedVariables": { + "selectedRow": {}, + "changeSet": {}, + "dataUpdates": [], + "pageIndex": 1, + "searchText": "", + "selectedRows": [] }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "title":{ - "value":"Table" + "properties": { + "title": { + "value": "Table" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{queries.listRecords.isLoading}}", - "fxActive":true + "loadingState": { + "value": "{{queries.listRecords.isLoading}}", + "fxActive": true }, - "data":{ - "value":"{{queries.listRecords.data.records.map(record => record.fields)}}" + "data": { + "value": "{{queries.listRecords.data.records.map(record => record.fields)}}" }, - "serverSidePagination":{ - "value":"{{true}}" + "serverSidePagination": { + "value": "{{true}}" }, - "clientSidePagination":{ - "value":true + "clientSidePagination": { + "value": true }, - "displaySearchBox":{ - "value":true + "displaySearchBox": { + "value": true }, - "showDownloadButton":{ - "value":true + "showDownloadButton": { + "value": true }, - "showFilterButton":{ - "value":true + "showFilterButton": { + "value": true }, - "columns":{ - "value":[ + "columns": { + "value": [ { - "name":"Order ID", - "id":"e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", - "key":"order-id" + "name": "Order ID", + "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", + "key": "order-id" }, { - "name":"Customer", - "id":"5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a", - "key":"customer" + "name": "Customer", + "id": "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a", + "key": "customer" }, { - "name":"Order", - "id":"fd144133-cca9-48b0-a6a4-c51086058295", - "key":"order" + "name": "Order", + "id": "fd144133-cca9-48b0-a6a4-c51086058295", + "key": "order" }, { - "name":"Delivery Date", - "id":"afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", - "key":"delivery-date" + "name": "Delivery Date", + "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", + "key": "delivery-date" }, { - "name":"Delivery Status", - "id":"bc93cbcb-ea0a-4768-8b0b-e855a7a92399", - "key":"delivery-status" + "name": "Delivery Status", + "id": "bc93cbcb-ea0a-4768-8b0b-e855a7a92399", + "key": "delivery-status" }, { - "name":"Pricing (USD)", - "id":"5529a8da-3acd-4aeb-8b99-a384dd2a2bf5", - "key":"pricing" + "name": "Pricing (USD)", + "id": "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5", + "key": "pricing" }, { - "name":"Payment Mode", - "id":"2713507e-e24d-4859-8ef9-effc2d87e991", - "key":"payment" + "name": "Payment Mode", + "id": "2713507e-e24d-4859-8ef9-effc2d87e991", + "key": "payment" } ] }, - "showBulkUpdateActions":{ - "value":true + "showBulkUpdateActions": { + "value": true }, - "showBulkSelector":{ - "value":false + "showBulkSelector": { + "value": false }, - "highlightSelectedRow":{ - "value":"{{true}}" + "highlightSelectedRow": { + "value": "{{true}}" }, - "actions":{ - "value":[ - - ] + "actions": { + "value": [] }, - "serverSideSearch":{ - "value":"{{true}}" + "serverSideSearch": { + "value": "{{true}}" }, - "columnSizes":{ - "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737":135, - "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a":188, - "fd144133-cca9-48b0-a6a4-c51086058295":197, - "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f":151, - "bc93cbcb-ea0a-4768-8b0b-e855a7a92399":170, - "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5":148 + "columnSizes": { + "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 135, + "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a": 188, + "fd144133-cca9-48b0-a6a4-c51086058295": 197, + "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 151, + "bc93cbcb-ea0a-4768-8b0b-e855a7a92399": 170, + "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5": 148 } }, - "events":[ - - ], - "styles":{ - "textColor":{ - "value":"#111845ff" + "events": [], + "styles": { + "textColor": { + "value": "#111845ff" }, - "actionButtonRadius":{ - "value":"10" + "actionButtonRadius": { + "value": "10" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "cellSize":{ - "value":"compact" + "cellSize": { + "value": "compact" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "tableType":{ - "value":"table-striped table-bordered" + "tableType": { + "value": "table-striped table-bordered" } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":180, - "left":25.736961719052342, - "width":30.97829457364341, - "height":660 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 180, + "left": 25.736961719052342, + "width": 30.97829457364341, + "height": 660 } } }, - "4913e1fd-dce2-4917-970e-d38a59435460":{ - "component":{ - "name":"container6", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "4913e1fd-dce2-4917-970e-d38a59435460": { + "component": { + "name": "container6", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#faf4f4ff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#faf4f4ff" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"d15645c1-53e8-4a23-bc68-1e89a92f3cc3", - "layouts":{ - "desktop":{ - "top":60, - "left":2.166381632186725, - "width":41.122781161273544, - "height":230 + "parent": "d15645c1-53e8-4a23-bc68-1e89a92f3cc3", + "layouts": { + "desktop": { + "top": 60, + "left": 2.166381632186725, + "width": 41.122781161273544, + "height": 230 } } }, - "565c67b1-08d4-4b8b-aa34-67d6afede03f":{ - "component":{ - "name":"image2", - "displayName":"Image", - "description":"Display an Image", - "defaultSize":{ - "width":3, - "height":100 + "565c67b1-08d4-4b8b-aa34-67d6afede03f": { + "component": { + "name": "image2", + "displayName": "Image", + "description": "Display an Image", + "defaultSize": { + "width": 3, + "height": 100 }, - "component":"Image", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Image", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "source":{ - "type":"code", - "displayName":"URL" + "properties": { + "source": { + "type": "code", + "displayName": "URL" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "borderType":{ - "type":"select", - "displayName":"Border type", - "options":[ + "styles": { + "borderType": { + "type": "select", + "displayName": "Border type", + "options": [ { - "name":"None", - "value":"none" + "name": "None", + "value": "none" }, { - "name":"Rounded", - "value":"rounded" + "name": "Rounded", + "value": "rounded" }, { - "name":"Circle", - "value":"rounded-circle" + "name": "Circle", + "value": "rounded-circle" }, { - "name":"Thumbnail", - "value":"img-thumbnail" + "name": "Thumbnail", + "value": "img-thumbnail" } ] }, - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "padding":{ - "type":"code", - "displayName":"Padding" + "padding": { + "type": "code", + "displayName": "Padding" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "source":{ - "value":"https://www.svgrepo.com/show/345044/people.svg" + "properties": { + "source": { + "value": "https://www.svgrepo.com/show/345044/people.svg" }, - "visible":{ - "value":true + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "borderType":{ - "value":"none" + "events": [], + "styles": { + "borderType": { + "value": "none" }, - "padding":{ - "value":"0" + "padding": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":30, - "left":28.59118049484415, - "width":16.977120714208453, - "height":80 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 30, + "left": 28.59118049484415, + "width": 16.977120714208453, + "height": 80 } } }, - "d36af799-fe91-469f-8a1a-f0cbbfe0cb5d":{ - "component":{ - "name":"text5", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "d36af799-fe91-469f-8a1a-f0cbbfe0cb5d": { + "component": { + "name": "text5", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Total Customers" + "properties": { + "text": { + "value": "Total Customers" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#746f6fff" + "textColor": { + "value": "#746f6fff" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":160, - "left":25.84541758604002, - "width":19.988198345983847, - "height":30 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 160, + "left": 25.84541758604002, + "width": 19.988198345983847, + "height": 30 } } }, - "fbc7b3b0-aa37-47d4-9d32-6c0326a70dc1":{ - "component":{ - "name":"text6", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "fbc7b3b0-aa37-47d4-9d32-6c0326a70dc1": { + "component": { + "name": "text6", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"

{{queries.listRecords.data.records.length}}

" + "properties": { + "text": { + "value": "

{{queries.listRecords.data.records.length}}

" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"center" + "textAlign": { + "value": "center" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":110, - "left":28.73259859895069, - "width":15.16043036687119, - "height":50 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 110, + "left": 28.73259859895069, + "width": 15.16043036687119, + "height": 50 } } }, - "c9aef57d-f54f-4788-b5e5-af224cd5543e":{ - "component":{ - "name":"text6", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "c9aef57d-f54f-4788-b5e5-af224cd5543e": { + "component": { + "name": "text6", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Order" + "properties": { + "text": { + "value": "Order" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":110, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 110, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "eb14e790-4399-4e66-b483-20d540cc89e0":{ - "component":{ - "name":"textinput3", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "eb14e790-4399-4e66-b483-20d540cc89e0": { + "component": { + "name": "textinput3", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"Order name" + "placeholder": { + "value": "Order name" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":110, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 110, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "84b8fb14-2ff2-4857-b4d7-af682e0ecb82":{ - "component":{ - "name":"text7", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "84b8fb14-2ff2-4857-b4d7-af682e0ecb82": { + "component": { + "name": "text7", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Delivery date" + "properties": { + "text": { + "value": "Delivery date" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":160, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 160, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "0a433732-980a-43a3-a764-ff5c87333ab2":{ - "component":{ - "name":"textinput4", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "0a433732-980a-43a3-a764-ff5c87333ab2": { + "component": { + "name": "textinput4", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"MM/DD/YYYY" + "placeholder": { + "value": "MM/DD/YYYY" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":160, - "left":44.186029989252646, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 160, + "left": 44.186029989252646, + "width": 21.006398425003077, + "height": 30 } } }, - "50a8f554-a736-45cb-9494-8111dd3d932f":{ - "component":{ - "name":"text8", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "50a8f554-a736-45cb-9494-8111dd3d932f": { + "component": { + "name": "text8", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Delivery status" + "properties": { + "text": { + "value": "Delivery status" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":210, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 210, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "c56c2efe-4002-446a-8e5d-7a895dc0b5d9":{ - "component":{ - "name":"textinput5", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "c56c2efe-4002-446a-8e5d-7a895dc0b5d9": { + "component": { + "name": "textinput5", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"status" + "placeholder": { + "value": "status" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":210, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 210, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "d11459ec-9287-497e-acce-2b7465b50b5d":{ - "component":{ - "name":"text9", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "d11459ec-9287-497e-acce-2b7465b50b5d": { + "component": { + "name": "text9", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Pricing" + "properties": { + "text": { + "value": "Pricing" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":260, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 260, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "e2589f4e-6bd2-4929-ae0d-ad84326b5d15":{ - "component":{ - "name":"textinput6", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "e2589f4e-6bd2-4929-ae0d-ad84326b5d15": { + "component": { + "name": "textinput6", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"3999" + "placeholder": { + "value": "3999" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":260, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 260, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "ab1bbefd-5cd2-42f2-a60d-0c6c79f621cd":{ - "component":{ - "name":"text10", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "ab1bbefd-5cd2-42f2-a60d-0c6c79f621cd": { + "component": { + "name": "text10", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Payment method" + "properties": { + "text": { + "value": "Payment method" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":310, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 310, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "30b9b2cc-d527-4b65-96bd-c34ef51a1a17":{ - "component":{ - "name":"textinput7", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "30b9b2cc-d527-4b65-96bd-c34ef51a1a17": { + "component": { + "name": "textinput7", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"PayPal" + "placeholder": { + "value": "PayPal" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":310, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 310, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } } }, - "globalSettings":{ - "hideHeader":true, - "canvasMaxWidth":1292, - "canvasBackgroundColor":"#dadfea" + "globalSettings": { + "hideHeader": true, + "canvasMaxWidth": 1292, + "canvasBackgroundColor": "#dadfea" } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "createdAt":"2022-02-09T13:23:41.033Z", - "updatedAt":"2022-02-09T13:53:04.247Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "createdAt": "2022-02-09T13:23:41.033Z", + "updatedAt": "2022-02-09T13:53:04.247Z", + "homePageId": "66e50f11-34d3-493e-9f9c-d7f55f7096b9", + "pages": { + "66e50f11-34d3-493e-9f9c-d7f55f7096b9": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false } ], - "editingVersion":{ - "id":"7d8b238f-4391-4e4d-88a5-1cd612fed7b6", - "name":"v4", - "definition":{ - "components":{ - "431205f0-41a3-4c3b-967b-076d0d306dd6":{ - "component":{ - "name":"container1", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "editingVersion": { + "id": "7d8b238f-4391-4e4d-88a5-1cd612fed7b6", + "name": "v4", + "definition": { + "components": { + "431205f0-41a3-4c3b-967b-076d0d306dd6": { + "component": { + "name": "container1", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#dadfeaff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#dadfeaff" }, - "borderRadius":{ - "value":"0" + "borderRadius": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "layouts":{ - "desktop":{ - "top":0, - "left":0, - "width":43, - "height":1060 + "layouts": { + "desktop": { + "top": 0, + "left": 0, + "width": 43, + "height": 1060 } } }, - "f5977604-e89c-46bf-a09e-4f8d2868d215":{ - "component":{ - "name":"container2", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "f5977604-e89c-46bf-a09e-4f8d2868d215": { + "component": { + "name": "container2", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#c0cae0ff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#c0cae0ff" }, - "borderRadius":{ - "value":"0" + "borderRadius": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":0, - "left":0, - "width":42.99457364341085, - "height":60 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 0, + "left": 0, + "width": 42.99457364341085, + "height": 60 } } }, - "13bc42c4-437d-49cd-9e37-bf34b1656431":{ - "component":{ - "name":"image1", - "displayName":"Image", - "description":"Display an Image", - "defaultSize":{ - "width":3, - "height":100 + "13bc42c4-437d-49cd-9e37-bf34b1656431": { + "component": { + "name": "image1", + "displayName": "Image", + "description": "Display an Image", + "defaultSize": { + "width": 3, + "height": 100 }, - "component":"Image", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Image", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "source":{ - "type":"code", - "displayName":"URL" + "properties": { + "source": { + "type": "code", + "displayName": "URL" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "borderType":{ - "type":"select", - "displayName":"Border type", - "options":[ + "styles": { + "borderType": { + "type": "select", + "displayName": "Border type", + "options": [ { - "name":"None", - "value":"none" + "name": "None", + "value": "none" }, { - "name":"Rounded", - "value":"rounded" + "name": "Rounded", + "value": "rounded" }, { - "name":"Circle", - "value":"rounded-circle" + "name": "Circle", + "value": "rounded-circle" }, { - "name":"Thumbnail", - "value":"img-thumbnail" + "name": "Thumbnail", + "value": "img-thumbnail" } ] }, - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "padding":{ - "type":"code", - "displayName":"Padding" + "padding": { + "type": "code", + "displayName": "Padding" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "source":{ - "value":"https://download.logo.wine/logo/John_Wood_Group/John_Wood_Group-Logo.wine.png" + "properties": { + "source": { + "value": "https://download.logo.wine/logo/John_Wood_Group/John_Wood_Group-Logo.wine.png" }, - "visible":{ - "value":true + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "borderType":{ - "value":"none" + "events": [], + "styles": { + "borderType": { + "value": "none" }, - "padding":{ - "value":"0" + "padding": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"f5977604-e89c-46bf-a09e-4f8d2868d215", - "layouts":{ - "desktop":{ - "top":0, - "left":0.02547074734027328, - "width":5.009815452809283, - "height":58 + "parent": "f5977604-e89c-46bf-a09e-4f8d2868d215", + "layouts": { + "desktop": { + "top": 0, + "left": 0.02547074734027328, + "width": 5.009815452809283, + "height": 58 } } }, - "d15645c1-53e8-4a23-bc68-1e89a92f3cc3":{ - "component":{ - "name":"container3", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "d15645c1-53e8-4a23-bc68-1e89a92f3cc3": { + "component": { + "name": "container3", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#c6cadbff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#c6cadbff" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":180, - "left":2.440669293005031, - "width":8.99457364341085, - "height":660 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 180, + "left": 2.440669293005031, + "width": 8.99457364341085, + "height": 660 } } }, - "aad5998a-7699-4a39-87ea-e58992c9823a":{ - "component":{ - "name":"text1", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "aad5998a-7699-4a39-87ea-e58992c9823a": { + "component": { + "name": "text1", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"

Dashboard

" + "properties": { + "text": { + "value": "

Dashboard

" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#111845ff" + "textColor": { + "value": "#111845ff" }, - "textAlign":{ - "value":"center" + "textAlign": { + "value": "center" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":80, - "left":2.200248883604634, - "width":5.986821705426356, - "height":70 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 80, + "left": 2.200248883604634, + "width": 5.986821705426356, + "height": 70 } } }, - "ce02774f-2e45-47c6-b2e0-b81efb63bff3":{ - "component":{ - "name":"modal1", - "displayName":"Modal", - "description":"Modal triggered by events", - "component":"Modal", - "defaultSize":{ - "width":10, - "height":400 + "ce02774f-2e45-47c6-b2e0-b81efb63bff3": { + "component": { + "name": "modal1", + "displayName": "Modal", + "description": "Modal triggered by events", + "component": "Modal", + "defaultSize": { + "width": 10, + "height": 400 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "title":{ - "type":"code", - "displayName":"Title" + "properties": { + "title": { + "type": "code", + "displayName": "Title" }, - "size":{ - "type":"select", - "displayName":"Modal size", - "options":[ + "size": { + "type": "select", + "displayName": "Modal size", + "options": [ { - "name":"small", - "value":"sm" + "name": "small", + "value": "sm" }, { - "name":"medium", - "value":"md" + "name": "medium", + "value": "md" }, { - "name":"large", - "value":"lg" + "name": "large", + "value": "lg" } ] } }, - "events":{ - - }, - "styles":{ - "disabledState":{ - "type":"code", - "displayName":"Disable" + "events": {}, + "styles": { + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - "show":null + "exposedVariables": { + "show": null }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "title":{ - "value":"Add new item" + "properties": { + "title": { + "value": "Add new item" }, - "size":{ - "value":"sm" + "size": { + "value": "sm" } }, - "events":[ - - ], - "styles":{ - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "events": [], + "styles": { + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":110, - "left":25.668013723273027, - "width":15.022480620155036, - "height":460 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 110, + "left": 25.668013723273027, + "width": 15.022480620155036, + "height": 460 } } }, - "995baada-980b-4640-860f-f5782eaf3741":{ - "component":{ - "name":"textinput1", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "995baada-980b-4640-860f-f5782eaf3741": { + "component": { + "name": "textinput1", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"ABC1234" + "placeholder": { + "value": "ABC1234" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":10, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 10, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "ad33e7bb-a95d-454f-a886-9275171f2183":{ - "component":{ - "name":"text2", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "ad33e7bb-a95d-454f-a886-9275171f2183": { + "component": { + "name": "text2", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Order ID" + "properties": { + "text": { + "value": "Order ID" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":10, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 10, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "4e93bcad-433c-412b-8dce-9b97492ed7ad":{ - "component":{ - "name":"text3", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "4e93bcad-433c-412b-8dce-9b97492ed7ad": { + "component": { + "name": "text3", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Customer" + "properties": { + "text": { + "value": "Customer" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":60, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 60, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "296a0a3e-8f8c-46f5-bac1-86303f7979b1":{ - "component":{ - "name":"textinput2", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "296a0a3e-8f8c-46f5-bac1-86303f7979b1": { + "component": { + "name": "textinput2", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"Name" + "placeholder": { + "value": "Name" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":60, - "left":44.186062282986114, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 60, + "left": 44.186062282986114, + "width": 21.006398425003077, + "height": 30 } } }, - "b33e348c-54a1-4348-8bbc-0cdb832411ea":{ - "component":{ - "name":"button2", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "b33e348c-54a1-4348-8bbc-0cdb832411ea": { + "component": { + "name": "button2", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Submit" + "properties": { + "text": { + "value": "Submit" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"run-query", - "message":"Hello world!", - "alertType":"info", - "queryId":"8d018065-ce4b-4c7e-912e-fcff3b99a4a8", - "queryName":"createRecord" + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "alertType": "info", + "queryId": "8d018065-ce4b-4c7e-912e-fcff3b99a4a8", + "queryName": "createRecord" }, { - "eventId":"onClick", - "actionId":"show-alert", - "message":"Order listed!", - "alertType":"success" + "eventId": "onClick", + "actionId": "show-alert", + "message": "Order listed!", + "alertType": "success" }, { - "eventId":"onClick", - "actionId":"close-modal", - "message":"Hello world!", - "alertType":"info", - "modal":"ce02774f-2e45-47c6-b2e0-b81efb63bff3" + "eventId": "onClick", + "actionId": "close-modal", + "message": "Hello world!", + "alertType": "info", + "modal": "ce02774f-2e45-47c6-b2e0-b81efb63bff3" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":380, - "left":34.88373933015046, - "width":11.982035191337516, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 380, + "left": 34.88373933015046, + "width": 11.982035191337516, + "height": 30 } } }, - "359d0ce4-ba04-4aa6-af37-cac5d2a41525":{ - "component":{ - "name":"button3", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "359d0ce4-ba04-4aa6-af37-cac5d2a41525": { + "component": { + "name": "button3", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Refresh" + "properties": { + "text": { + "value": "Refresh" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{queries.listRecords.isLoading}}", - "fxActive":true + "loadingState": { + "value": "{{queries.listRecords.isLoading}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"run-query", - "message":"Hello world!", - "alertType":"info", - "queryId":"82178b68-767b-4229-adfb-46dde60c31b7", - "queryName":"listRecords" + "eventId": "onClick", + "actionId": "run-query", + "message": "Hello world!", + "alertType": "info", + "queryId": "82178b68-767b-4229-adfb-46dde60c31b7", + "queryName": "listRecords" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":130, - "left":88.49829328318498, - "width":3.9767441860465116, - "height":30 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 130, + "left": 88.49829328318498, + "width": 3.9767441860465116, + "height": 30 } } }, - "fa6d17e7-cd02-4054-a813-ab1fb9c0fe6d":{ - "component":{ - "name":"button4", - "displayName":"Button", - "description":"Trigger actions: queries, alerts etc", - "component":"Button", - "defaultSize":{ - "width":3, - "height":30 + "fa6d17e7-cd02-4054-a813-ab1fb9c0fe6d": { + "component": { + "name": "button4", + "displayName": "Button", + "description": "Trigger actions: queries, alerts etc", + "component": "Button", + "defaultSize": { + "width": 3, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Button Text" + "properties": { + "text": { + "type": "code", + "displayName": "Button Text" }, - "loadingState":{ - "type":"code", - "displayName":"Loading State" + "loadingState": { + "type": "code", + "displayName": "Loading State" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "styles": { + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "textColor":{ - "type":"color", - "displayName":"Text color" + "textColor": { + "type": "color", + "displayName": "Text color" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Add new item" + "properties": { + "text": { + "value": "Add new item" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ + "events": [ { - "eventId":"onClick", - "actionId":"show-modal", - "message":"Hello world!", - "alertType":"info", - "modal":"ce02774f-2e45-47c6-b2e0-b81efb63bff3" + "eventId": "onClick", + "actionId": "show-modal", + "message": "Hello world!", + "alertType": "info", + "modal": "ce02774f-2e45-47c6-b2e0-b81efb63bff3" } ], - "styles":{ - "backgroundColor":{ - "value":"#111845ff" + "styles": { + "backgroundColor": { + "value": "#111845ff" }, - "textColor":{ - "value":"#fff" + "textColor": { + "value": "#fff" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{15}}" + "borderRadius": { + "value": "{{15}}" }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"d15645c1-53e8-4a23-bc68-1e89a92f3cc3", - "layouts":{ - "desktop":{ - "top":20, - "left":4.72096935844812, - "width":39.036390038795815, - "height":30 + "parent": "d15645c1-53e8-4a23-bc68-1e89a92f3cc3", + "layouts": { + "desktop": { + "top": 20, + "left": 4.72096935844812, + "width": 39.036390038795815, + "height": 30 } } }, - "cbf7b1ce-c170-42b0-92ad-0dfdda56e2d1":{ - "component":{ - "name":"table1", - "displayName":"Table", - "description":"Display paginated tabular data", - "component":"Table", - "properties":{ - "title":{ - "type":"string", - "displayName":"Title" + "cbf7b1ce-c170-42b0-92ad-0dfdda56e2d1": { + "component": { + "name": "table1", + "displayName": "Table", + "description": "Display paginated tabular data", + "component": "Table", + "properties": { + "title": { + "type": "string", + "displayName": "Title" }, - "data":{ - "type":"code", - "displayName":"Table data" + "data": { + "type": "code", + "displayName": "Table data" }, - "loadingState":{ - "type":"code", - "displayName":"Loading state" + "loadingState": { + "type": "code", + "displayName": "Loading state" }, - "columns":{ - "type":"array", - "displayName":"Table Columns" + "columns": { + "type": "array", + "displayName": "Table Columns" }, - "serverSidePagination":{ - "type":"toggle", - "displayName":"Server-side pagination" + "serverSidePagination": { + "type": "toggle", + "displayName": "Server-side pagination" }, - "clientSidePagination":{ - "type":"toggle", - "displayName":"Client-side pagination" + "clientSidePagination": { + "type": "toggle", + "displayName": "Client-side pagination" }, - "serverSideSearch":{ - "type":"toggle", - "displayName":"Server-side search" + "serverSideSearch": { + "type": "toggle", + "displayName": "Server-side search" }, - "actionButtonBackgroundColor":{ - "type":"color", - "displayName":"Background color" + "actionButtonBackgroundColor": { + "type": "color", + "displayName": "Background color" }, - "actionButtonTextColor":{ - "type":"color", - "displayName":"Text color" + "actionButtonTextColor": { + "type": "color", + "displayName": "Text color" }, - "displaySearchBox":{ - "type":"toggle", - "displayName":"Show search box" + "displaySearchBox": { + "type": "toggle", + "displayName": "Show search box" }, - "showDownloadButton":{ - "type":"toggle", - "displayName":"Show download button" + "showDownloadButton": { + "type": "toggle", + "displayName": "Show download button" }, - "showFilterButton":{ - "type":"toggle", - "displayName":"Show filter button" + "showFilterButton": { + "type": "toggle", + "displayName": "Show filter button" }, - "showBulkUpdateActions":{ - "type":"toggle", - "displayName":"Show update buttons" + "showBulkUpdateActions": { + "type": "toggle", + "displayName": "Show bulk update actions" }, - "showBulkSelector":{ - "type":"toggle", - "displayName":"Bulk selection" + "showBulkSelector": { + "type": "toggle", + "displayName": "Bulk selection" }, - "highlightSelectedRow":{ - "type":"toggle", - "displayName":"Highlight selected row" + "highlightSelectedRow": { + "type": "toggle", + "displayName": "Highlight selected row" } }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop " + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop " }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "defaultSize":{ - "width":20, - "height":300 + "defaultSize": { + "width": 20, + "height": 300 }, - "events":{ - "onRowClicked":{ - "displayName":"Row clicked" + "events": { + "onRowClicked": { + "displayName": "Row clicked" }, - "onBulkUpdate":{ - "displayName":"Bulk update" + "onBulkUpdate": { + "displayName": "Bulk update" }, - "onPageChanged":{ - "displayName":"Page changed" + "onPageChanged": { + "displayName": "Page changed" }, - "onSearch":{ - "displayName":"Search" + "onSearch": { + "displayName": "Search" } }, - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "actionButtonRadius":{ - "type":"code", - "displayName":"Action Button Radius" + "actionButtonRadius": { + "type": "code", + "displayName": "Action Button Radius" }, - "tableType":{ - "type":"select", - "displayName":"Table type", - "options":[ + "tableType": { + "type": "select", + "displayName": "Table type", + "options": [ { - "name":"Bordered", - "value":"" + "name": "Bordered", + "value": "" }, { - "name":"Borderless", - "value":"table-borderless" + "name": "Borderless", + "value": "table-borderless" }, { - "name":"Classic", - "value":"table-classic" + "name": "Classic", + "value": "table-classic" }, { - "name":"Striped", - "value":"table-striped" + "name": "Striped", + "value": "table-striped" }, { - "name":"Striped & bordered", - "value":"table-striped table-bordered" + "name": "Striped & bordered", + "value": "table-striped table-bordered" } ] }, - "cellSize":{ - "type":"select", - "displayName":"Cell size", - "options":[ + "cellSize": { + "type": "select", + "displayName": "Cell size", + "options": [ { - "name":"Compact", - "value":"compact" + "name": "Compact", + "value": "compact" }, { - "name":"Spacious", - "value":"spacious" + "name": "Spacious", + "value": "spacious" } ] }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - "selectedRow":{ - - }, - "changeSet":{ - - }, - "dataUpdates":[ - - ], - "pageIndex":1, - "searchText":"", - "selectedRows":[ - - ] + "exposedVariables": { + "selectedRow": {}, + "changeSet": {}, + "dataUpdates": [], + "pageIndex": 1, + "searchText": "", + "selectedRows": [] }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "title":{ - "value":"Table" + "properties": { + "title": { + "value": "Table" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{queries.listRecords.isLoading}}", - "fxActive":true + "loadingState": { + "value": "{{queries.listRecords.isLoading}}", + "fxActive": true }, - "data":{ - "value":"{{queries.listRecords.data.records.map(record => record.fields)}}" + "data": { + "value": "{{queries.listRecords.data.records.map(record => record.fields)}}" }, - "serverSidePagination":{ - "value":"{{true}}" + "serverSidePagination": { + "value": "{{true}}" }, - "clientSidePagination":{ - "value":true + "clientSidePagination": { + "value": true }, - "displaySearchBox":{ - "value":true + "displaySearchBox": { + "value": true }, - "showDownloadButton":{ - "value":true + "showDownloadButton": { + "value": true }, - "showFilterButton":{ - "value":true + "showFilterButton": { + "value": true }, - "columns":{ - "value":[ + "columns": { + "value": [ { - "name":"Order ID", - "id":"e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", - "key":"order-id" + "name": "Order ID", + "id": "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737", + "key": "order-id" }, { - "name":"Customer", - "id":"5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a", - "key":"customer" + "name": "Customer", + "id": "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a", + "key": "customer" }, { - "name":"Order", - "id":"fd144133-cca9-48b0-a6a4-c51086058295", - "key":"order" + "name": "Order", + "id": "fd144133-cca9-48b0-a6a4-c51086058295", + "key": "order" }, { - "name":"Delivery Date", - "id":"afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", - "key":"delivery-date" + "name": "Delivery Date", + "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", + "key": "delivery-date" }, { - "name":"Delivery Status", - "id":"bc93cbcb-ea0a-4768-8b0b-e855a7a92399", - "key":"delivery-status" + "name": "Delivery Status", + "id": "bc93cbcb-ea0a-4768-8b0b-e855a7a92399", + "key": "delivery-status" }, { - "name":"Pricing (USD)", - "id":"5529a8da-3acd-4aeb-8b99-a384dd2a2bf5", - "key":"pricing" + "name": "Pricing (USD)", + "id": "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5", + "key": "pricing" }, { - "name":"Payment Mode", - "id":"2713507e-e24d-4859-8ef9-effc2d87e991", - "key":"payment" + "name": "Payment Mode", + "id": "2713507e-e24d-4859-8ef9-effc2d87e991", + "key": "payment" } ] }, - "showBulkUpdateActions":{ - "value":true + "showBulkUpdateActions": { + "value": true }, - "showBulkSelector":{ - "value":false + "showBulkSelector": { + "value": false }, - "highlightSelectedRow":{ - "value":"{{true}}" + "highlightSelectedRow": { + "value": "{{true}}" }, - "actions":{ - "value":[ - - ] + "actions": { + "value": [] }, - "serverSideSearch":{ - "value":"{{true}}" + "serverSideSearch": { + "value": "{{true}}" }, - "columnSizes":{ - "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737":135, - "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a":188, - "fd144133-cca9-48b0-a6a4-c51086058295":197, - "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f":151, - "bc93cbcb-ea0a-4768-8b0b-e855a7a92399":170, - "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5":148 + "columnSizes": { + "e3ecbf7fa52c4d7210a93edb8f43776267a489bad52bd108be9588f790126737": 135, + "5d2a3744a006388aadd012fcc15cc0dbcb5f9130e0fbb64c558561c97118754a": 188, + "fd144133-cca9-48b0-a6a4-c51086058295": 197, + "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 151, + "bc93cbcb-ea0a-4768-8b0b-e855a7a92399": 170, + "5529a8da-3acd-4aeb-8b99-a384dd2a2bf5": 148 } }, - "events":[ - - ], - "styles":{ - "textColor":{ - "value":"#111845ff" + "events": [], + "styles": { + "textColor": { + "value": "#111845ff" }, - "actionButtonRadius":{ - "value":"10" + "actionButtonRadius": { + "value": "10" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "cellSize":{ - "value":"compact" + "cellSize": { + "value": "compact" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "tableType":{ - "value":"table-striped table-bordered" + "tableType": { + "value": "table-striped table-bordered" } } } }, - "parent":"431205f0-41a3-4c3b-967b-076d0d306dd6", - "layouts":{ - "desktop":{ - "top":180, - "left":25.736961719052342, - "width":30.97829457364341, - "height":660 + "parent": "431205f0-41a3-4c3b-967b-076d0d306dd6", + "layouts": { + "desktop": { + "top": 180, + "left": 25.736961719052342, + "width": 30.97829457364341, + "height": 660 } } }, - "4913e1fd-dce2-4917-970e-d38a59435460":{ - "component":{ - "name":"container6", - "displayName":"Container", - "description":"Wrapper for multiple components", - "defaultSize":{ - "width":5, - "height":200 + "4913e1fd-dce2-4917-970e-d38a59435460": { + "component": { + "name": "container6", + "displayName": "Container", + "description": "Wrapper for multiple components", + "defaultSize": { + "width": 5, + "height": 200 }, - "component":"Container", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Container", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - - }, - "events":{ - - }, - "styles":{ - "backgroundColor":{ - "type":"color" + "properties": {}, + "events": {}, + "styles": { + "backgroundColor": { + "type": "color" }, - "borderRadius":{ - "type":"code", - "displayName":"Border Radius" + "borderRadius": { + "type": "code", + "displayName": "Border Radius" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "visible":{ - "value":true + "properties": { + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "backgroundColor":{ - "value":"#faf4f4ff" + "events": [], + "styles": { + "backgroundColor": { + "value": "#faf4f4ff" }, - "borderRadius":{ - "value":"15" + "borderRadius": { + "value": "15" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"d15645c1-53e8-4a23-bc68-1e89a92f3cc3", - "layouts":{ - "desktop":{ - "top":60, - "left":2.166381632186725, - "width":41.122781161273544, - "height":230 + "parent": "d15645c1-53e8-4a23-bc68-1e89a92f3cc3", + "layouts": { + "desktop": { + "top": 60, + "left": 2.166381632186725, + "width": 41.122781161273544, + "height": 230 } } }, - "565c67b1-08d4-4b8b-aa34-67d6afede03f":{ - "component":{ - "name":"image2", - "displayName":"Image", - "description":"Display an Image", - "defaultSize":{ - "width":3, - "height":100 + "565c67b1-08d4-4b8b-aa34-67d6afede03f": { + "component": { + "name": "image2", + "displayName": "Image", + "description": "Display an Image", + "defaultSize": { + "width": 3, + "height": 100 }, - "component":"Image", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "component": "Image", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "source":{ - "type":"code", - "displayName":"URL" + "properties": { + "source": { + "type": "code", + "displayName": "URL" } }, - "events":{ - "onClick":{ - "displayName":"On click" + "events": { + "onClick": { + "displayName": "On click" } }, - "styles":{ - "borderType":{ - "type":"select", - "displayName":"Border type", - "options":[ + "styles": { + "borderType": { + "type": "select", + "displayName": "Border type", + "options": [ { - "name":"None", - "value":"none" + "name": "None", + "value": "none" }, { - "name":"Rounded", - "value":"rounded" + "name": "Rounded", + "value": "rounded" }, { - "name":"Circle", - "value":"rounded-circle" + "name": "Circle", + "value": "rounded-circle" }, { - "name":"Thumbnail", - "value":"img-thumbnail" + "name": "Thumbnail", + "value": "img-thumbnail" } ] }, - "backgroundColor":{ - "type":"color", - "displayName":"Background color" + "backgroundColor": { + "type": "color", + "displayName": "Background color" }, - "padding":{ - "type":"code", - "displayName":"Padding" + "padding": { + "type": "code", + "displayName": "Padding" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "source":{ - "value":"https://www.svgrepo.com/show/345044/people.svg" + "properties": { + "source": { + "value": "https://www.svgrepo.com/show/345044/people.svg" }, - "visible":{ - "value":true + "visible": { + "value": true } }, - "events":[ - - ], - "styles":{ - "borderType":{ - "value":"none" + "events": [], + "styles": { + "borderType": { + "value": "none" }, - "padding":{ - "value":"0" + "padding": { + "value": "0" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":30, - "left":28.59118049484415, - "width":16.977120714208453, - "height":80 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 30, + "left": 28.59118049484415, + "width": 16.977120714208453, + "height": 80 } } }, - "d36af799-fe91-469f-8a1a-f0cbbfe0cb5d":{ - "component":{ - "name":"text5", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "d36af799-fe91-469f-8a1a-f0cbbfe0cb5d": { + "component": { + "name": "text5", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Total Customers" + "properties": { + "text": { + "value": "Total Customers" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#746f6fff" + "textColor": { + "value": "#746f6fff" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":160, - "left":25.84541758604002, - "width":19.988198345983847, - "height":30 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 160, + "left": 25.84541758604002, + "width": 19.988198345983847, + "height": 30 } } }, - "fbc7b3b0-aa37-47d4-9d32-6c0326a70dc1":{ - "component":{ - "name":"text6", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "fbc7b3b0-aa37-47d4-9d32-6c0326a70dc1": { + "component": { + "name": "text6", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"

{{queries.listRecords.data.records.length}}

" + "properties": { + "text": { + "value": "

{{queries.listRecords.data.records.length}}

" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"center" + "textAlign": { + "value": "center" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"4913e1fd-dce2-4917-970e-d38a59435460", - "layouts":{ - "desktop":{ - "top":110, - "left":28.73259859895069, - "width":15.16043036687119, - "height":50 + "parent": "4913e1fd-dce2-4917-970e-d38a59435460", + "layouts": { + "desktop": { + "top": 110, + "left": 28.73259859895069, + "width": 15.16043036687119, + "height": 50 } } }, - "c9aef57d-f54f-4788-b5e5-af224cd5543e":{ - "component":{ - "name":"text6", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "c9aef57d-f54f-4788-b5e5-af224cd5543e": { + "component": { + "name": "text6", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Order" + "properties": { + "text": { + "value": "Order" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":110, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 110, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "eb14e790-4399-4e66-b483-20d540cc89e0":{ - "component":{ - "name":"textinput3", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "eb14e790-4399-4e66-b483-20d540cc89e0": { + "component": { + "name": "textinput3", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"Order name" + "placeholder": { + "value": "Order name" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":110, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 110, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "84b8fb14-2ff2-4857-b4d7-af682e0ecb82":{ - "component":{ - "name":"text7", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "84b8fb14-2ff2-4857-b4d7-af682e0ecb82": { + "component": { + "name": "text7", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Delivery date" + "properties": { + "text": { + "value": "Delivery date" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":160, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 160, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "0a433732-980a-43a3-a764-ff5c87333ab2":{ - "component":{ - "name":"textinput4", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "0a433732-980a-43a3-a764-ff5c87333ab2": { + "component": { + "name": "textinput4", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"MM/DD/YYYY" + "placeholder": { + "value": "MM/DD/YYYY" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":160, - "left":44.186029989252646, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 160, + "left": 44.186029989252646, + "width": 21.006398425003077, + "height": 30 } } }, - "50a8f554-a736-45cb-9494-8111dd3d932f":{ - "component":{ - "name":"text8", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "50a8f554-a736-45cb-9494-8111dd3d932f": { + "component": { + "name": "text8", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Delivery status" + "properties": { + "text": { + "value": "Delivery status" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":210, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 210, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "c56c2efe-4002-446a-8e5d-7a895dc0b5d9":{ - "component":{ - "name":"textinput5", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "c56c2efe-4002-446a-8e5d-7a895dc0b5d9": { + "component": { + "name": "textinput5", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"status" + "placeholder": { + "value": "status" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":210, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 210, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "d11459ec-9287-497e-acce-2b7465b50b5d":{ - "component":{ - "name":"text9", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "d11459ec-9287-497e-acce-2b7465b50b5d": { + "component": { + "name": "text9", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Pricing" + "properties": { + "text": { + "value": "Pricing" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":260, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 260, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "e2589f4e-6bd2-4929-ae0d-ad84326b5d15":{ - "component":{ - "name":"textinput6", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "e2589f4e-6bd2-4929-ae0d-ad84326b5d15": { + "component": { + "name": "textinput6", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"3999" + "placeholder": { + "value": "3999" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":260, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 260, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } }, - "ab1bbefd-5cd2-42f2-a60d-0c6c79f621cd":{ - "component":{ - "name":"text10", - "displayName":"Text", - "description":"Display markdown or HTML", - "component":"Text", - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "ab1bbefd-5cd2-42f2-a60d-0c6c79f621cd": { + "component": { + "name": "text10", + "displayName": "Text", + "description": "Display markdown or HTML", + "component": "Text", + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "text":{ - "type":"code", - "displayName":"Text" + "properties": { + "text": { + "type": "code", + "displayName": "Text" }, - "loadingState":{ - "type":"code", - "displayName":"Show loading state" + "loadingState": { + "type": "code", + "displayName": "Show loading state" } }, - "defaultSize":{ - "width":6, - "height":30 + "defaultSize": { + "width": 6, + "height": 30 }, - "events":[ - - ], - "styles":{ - "textColor":{ - "type":"color", - "displayName":"Text Color" + "events": [], + "styles": { + "textColor": { + "type": "color", + "displayName": "Text Color" }, - "textAlign":{ - "type":"alignButtons", - "displayName":"Align Text" + "textAlign": { + "type": "alignButtons", + "displayName": "Align Text" }, - "visibility":{ - "type":"code", - "displayName":"Visibility" + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" } }, - "exposedVariables":{ - - }, - "definition":{ - "others":{ - "showOnDesktop":{ - "value":true + "exposedVariables": {}, + "definition": { + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "text":{ - "value":"Payment method" + "properties": { + "text": { + "value": "Payment method" }, - "visible":{ - "value":true + "visible": { + "value": true }, - "loadingState":{ - "value":"{{false}}", - "fxActive":true + "loadingState": { + "value": "{{false}}", + "fxActive": true } }, - "events":[ - - ], - "styles":{ - "groupActions":{ - "value":"left" + "events": [], + "styles": { + "groupActions": { + "value": "left" }, - "textColor":{ - "value":"#000" + "textColor": { + "value": "#000" }, - "textAlign":{ - "value":"left" + "textAlign": { + "value": "left" }, - "visibility":{ - "value":"{{true}}", - "fxActive":true + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":310, - "left":9.302322952835649, - "width":13.953488372093023, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 310, + "left": 9.302322952835649, + "width": 13.953488372093023, + "height": 30 } } }, - "30b9b2cc-d527-4b65-96bd-c34ef51a1a17":{ - "component":{ - "name":"textinput7", - "displayName":"Text Input", - "description":"Text field for forms", - "component":"TextInput", - "defaultSize":{ - "width":6, - "height":30 + "30b9b2cc-d527-4b65-96bd-c34ef51a1a17": { + "component": { + "name": "textinput7", + "displayName": "Text Input", + "description": "Text field for forms", + "component": "TextInput", + "defaultSize": { + "width": 6, + "height": 30 }, - "others":{ - "showOnDesktop":{ - "type":"toggle", - "displayName":"Show on desktop" + "others": { + "showOnDesktop": { + "type": "toggle", + "displayName": "Show on desktop" }, - "showOnMobile":{ - "type":"toggle", - "displayName":"Show on mobile" + "showOnMobile": { + "type": "toggle", + "displayName": "Show on mobile" } }, - "properties":{ - "value":{ - "type":"code", - "displayName":"Default value" + "properties": { + "value": { + "type": "code", + "displayName": "Default value" }, - "placeholder":{ - "type":"code", - "displayName":"Placeholder" + "placeholder": { + "type": "code", + "displayName": "Placeholder" } }, - "validation":{ - "regex":{ - "type":"code", - "displayName":"Regex" + "validation": { + "regex": { + "type": "code", + "displayName": "Regex" }, - "minLength":{ - "type":"code", - "displayName":"Min length" + "minLength": { + "type": "code", + "displayName": "Min length" }, - "maxLength":{ - "type":"code", - "displayName":"Max length" + "maxLength": { + "type": "code", + "displayName": "Max length" }, - "customRule":{ - "type":"code", - "displayName":"Custom validation" + "customRule": { + "type": "code", + "displayName": "Custom validation" } }, - "events":{ - "onChange":{ - "displayName":"On change" + "events": { + "onChange": { + "displayName": "On change" } }, - "styles":{ - "visibility":{ - "type":"code", - "displayName":"Visibility" + "styles": { + "visibility": { + "type": "code", + "displayName": "Visibility" }, - "disabledState":{ - "type":"code", - "displayName":"Disable" + "disabledState": { + "type": "code", + "displayName": "Disable" }, - "borderRadius":{ - "type":"code", - "displayName":"Border radius" + "borderRadius": { + "type": "code", + "displayName": "Border radius" } }, - "exposedVariables":{ - "value":"" + "exposedVariables": { + "value": "" }, - "definition":{ - "validation":{ - "regex":{ - "value":"" + "definition": { + "validation": { + "regex": { + "value": "" }, - "minLength":{ - "value":null + "minLength": { + "value": null }, - "maxLength":{ - "value":null + "maxLength": { + "value": null }, - "customRule":{ - "value":null + "customRule": { + "value": null } }, - "others":{ - "showOnDesktop":{ - "value":true + "others": { + "showOnDesktop": { + "value": true }, - "showOnMobile":{ - "value":false + "showOnMobile": { + "value": false } }, - "properties":{ - "value":{ - "value":"" + "properties": { + "value": { + "value": "" }, - "placeholder":{ - "value":"PayPal" + "placeholder": { + "value": "PayPal" } }, - "events":[ - - ], - "styles":{ - "visibility":{ - "value":"{{true}}", - "fxActive":true + "events": [], + "styles": { + "visibility": { + "value": "{{true}}", + "fxActive": true }, - "disabledState":{ - "value":"{{false}}", - "fxActive":true + "disabledState": { + "value": "{{false}}", + "fxActive": true }, - "borderRadius":{ - "value":"{{0}}" + "borderRadius": { + "value": "{{0}}" } } } }, - "parent":"ce02774f-2e45-47c6-b2e0-b81efb63bff3", - "layouts":{ - "desktop":{ - "top":310, - "left":44.18604613611938, - "width":21.006398425003077, - "height":30 + "parent": "ce02774f-2e45-47c6-b2e0-b81efb63bff3", + "layouts": { + "desktop": { + "top": 310, + "left": 44.18604613611938, + "width": 21.006398425003077, + "height": 30 } } } }, - "globalSettings":{ - "hideHeader":true, - "canvasMaxWidth":1292, - "canvasBackgroundColor":"#dadfea" + "globalSettings": { + "hideHeader": true, + "canvasMaxWidth": 1292, + "canvasBackgroundColor": "#dadfea" } }, - "appId":"62ab9ca6-24a8-4500-8141-f2afccf18595", - "createdAt":"2022-02-09T13:23:41.033Z", - "updatedAt":"2022-02-09T13:53:04.247Z" + "appId": "62ab9ca6-24a8-4500-8141-f2afccf18595", + "createdAt": "2022-02-09T13:23:41.033Z", + "updatedAt": "2022-02-09T13:53:04.247Z", + "homePageId": "c70cc600-a6e4-4803-9c64-37e1fdbe2375", + "pages": { + "c70cc600-a6e4-4803-9c64-37e1fdbe2375": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false }, - "tooljetVersion":"1.0.0" + "tooljetVersion": "1.0.0" } \ No newline at end of file diff --git a/server/templates/template-converter.js b/server/templates/template-converter.js new file mode 100644 index 0000000000..b435455748 --- /dev/null +++ b/server/templates/template-converter.js @@ -0,0 +1,24 @@ +const fs = require('fs'); +const convertAppDefinitionFromSinglePageToMultiPage = require('../lib/single-page-to-and-from-multipage-definition-conversion.ts') + +fs.readdir('./', function (err, files) { + //handling error + if (err) { + return console.log('Unable to scan directory: ' + err); + } + //listing all files using forEach + for (const file of files) { + fs.readFile(file + '/definition.json', 'utf8', (err, data) => { + if (!err) { + const appData = JSON.parse(data); + const newAppData = { + ...appData, + //appVersions: appData.appVersions?.map(convertAppDefinitionFromSinglePageToMultiPage), + editingVersion: convertAppDefinitionFromSinglePageToMultiPage(appData.editingVersion) + }; + + console.log({ newAppData }); + } + }) + } +}); \ No newline at end of file diff --git a/server/templates/whatsapp-and-sms-crm/definition.json b/server/templates/whatsapp-and-sms-crm/definition.json index d097ef48ac..d92be53351 100644 --- a/server/templates/whatsapp-and-sms-crm/definition.json +++ b/server/templates/whatsapp-and-sms-crm/definition.json @@ -753,7 +753,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -1537,7 +1537,15 @@ }, "appId": "05dda983-aa25-4a4c-b52d-bf703eec2658", "createdAt": "2021-12-28T19:18:12.890Z", - "updatedAt": "2021-12-30T05:05:39.802Z" + "updatedAt": "2021-12-30T05:05:39.802Z", + "homePageId": "187cbb5d-d19d-4c3f-aa91-dc440f00a7d0", + "pages": { + "187cbb5d-d19d-4c3f-aa91-dc440f00a7d0": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false } ], "editingVersion": { @@ -1935,7 +1943,7 @@ }, "showBulkUpdateActions": { "type": "toggle", - "displayName": "Show update buttons" + "displayName": "Show bulk update actions" }, "showBulkSelector": { "type": "toggle", @@ -2719,7 +2727,15 @@ }, "appId": "05dda983-aa25-4a4c-b52d-bf703eec2658", "createdAt": "2021-12-28T19:18:12.890Z", - "updatedAt": "2021-12-30T05:05:39.802Z" + "updatedAt": "2021-12-30T05:05:39.802Z", + "homePageId": "6c280ec2-a6b9-487e-90cf-f467e1349e11", + "pages": { + "6c280ec2-a6b9-487e-90cf-f467e1349e11": { + "name": "Home", + "handle": "home" + } + }, + "showViewerNavigation": false }, "tooljetVersion": "0.13.5-ee1.3.6\n" } \ No newline at end of file diff --git a/server/test/controllers/thread.e2e-spec.ts b/server/test/controllers/thread.e2e-spec.ts index f87b3214bd..c438423315 100644 --- a/server/test/controllers/thread.e2e-spec.ts +++ b/server/test/controllers/thread.e2e-spec.ts @@ -52,7 +52,7 @@ describe('thread controller', () => { expect(response.statusCode).toBe(200); expect(response.body).toHaveLength(1); expect(Object.keys(response.body[0]).sort()).toEqual( - ['id', 'x', 'y', 'appId', 'appVersionsId', 'userId', 'organizationId', 'isResolved', 'user'].sort() + ['id', 'x', 'y', 'appId', 'appVersionsId', 'userId', 'organizationId', 'isResolved', 'user', 'pageId'].sort() ); }); diff --git a/server/test/test.helper.ts b/server/test/test.helper.ts index 8e7013041d..1303de75dd 100644 --- a/server/test/test.helper.ts +++ b/server/test/test.helper.ts @@ -492,6 +492,7 @@ export async function createThread(_nestApp, { appId, x, y, userId, organization isResolved: false, organizationId, appVersionsId, + pageId: 'placeholder', }, userId, organizationId