From d62e7123085ab282704c9ad543e6a75c89f7951b Mon Sep 17 00:00:00 2001 From: Faisal Nadeem Date: Mon, 14 Jun 2021 19:13:54 +0500 Subject: [PATCH 01/11] combined create class flow --- Parse-Dashboard/parse-dashboard-config.json | 70 +++++++++++++++---- src/components/Modal/Modal.react.js | 12 ++++ .../Data/Browser/AddColumnDialog.react.js | 5 +- src/dashboard/Data/Browser/Browser.react.js | 34 +++++++-- .../Data/Browser/CreateClassDialog.react.js | 10 +++ 5 files changed, 111 insertions(+), 20 deletions(-) diff --git a/Parse-Dashboard/parse-dashboard-config.json b/Parse-Dashboard/parse-dashboard-config.json index 07941d1cbb..c4d73369e7 100644 --- a/Parse-Dashboard/parse-dashboard-config.json +++ b/Parse-Dashboard/parse-dashboard-config.json @@ -1,14 +1,58 @@ { - "apps": [ - { - "serverURL": "http://localhost:1338/parse", - "appId": "hello", - "masterKey": "world", - "appName": "", - "iconName": "", - "primaryBackgroundColor": "", - "secondaryBackgroundColor": "" - } - ], - "iconsFolder": "icons" -} \ No newline at end of file + "apps": [{ + "serverURL": "https://parseapi.back4app.com", + "appId": "IvWJni5qb3gqJWmOlwZtfCA67cw5bZDvGU539T9J", + "javascriptKey": "HZ8PgZPHAM9r2tNrsnsQL7DU4JakERIAPD3sVIQI", + "restKey": "HnIKdoowoqFxJHgK3azdsigxR4vw4RnQUzwdiqWs", + "clientKey": "3oFJ03aUAlCtMFPqYz8enTP89tvp7GIuwvQbQ2Oz", + "windowsKey": "BQDTuFI9Tw6Tlh7C3rvlbNiZ3r0JLv8yDj015b5e", + "webhookKey": "LnirDOXQo3PUnvHFrVJriukXtwhwxHcWROXTdm4k", + "apiKey": "cda6c643-056e-4006-8080-3322c125f05d", + "appName": "Sample Blog App", + "production": true, + "appNameForURL": "8d153178-ab63-47fc-a546-0743ba667043", + "feedbackEmail": "faisal@back4app.com", + "custom": { + "isGDPR": false, + "forceShowGDPRFields": false, + "showAdminPage": false, + "isOwner": true, + "isDatabasePublic": false + }, + "supportedPushLocales": [], + "graphQLServerURL": "https://parseapi.back4app.com/graphql", + "masterKey": "0bdT7LmVrpSBbjWYmmOGPuhEPVFBpQk4jJnvdv2d" + }, { + "serverURL": "https://parseapi.back4app.com", + "appId": "dvTjcE3x2STnpZo1x3iUpccY82ptKS2s9grRYP4b", + "javascriptKey": "LFiEhZBtFi7LCSJshF2YTc0coBKnSfZ0cJucJOlv", + "restKey": "BWkv4t7tvQO4PJcQvh3DJg3v2pkb1kDJqnD11tXH", + "clientKey": "jkwrEAfTFDrhLaapdZLIw5mTutXQvfLjWVYqdRM1", + "windowsKey": "4WGzrXvmbS8SRBjka34tcqkxEs8hNumtRlnjHmbC", + "webhookKey": "n6pbMF39n0GR7h4yg5HoKHRxyiPsks0mk1KycCHW", + "apiKey": "81432ee4-5076-460c-95e0-dd2b579ab648", + "appName": "FirstApp", + "production": true, + "appNameForURL": "1baa601c-a967-443a-905b-d5e7df17515a", + "feedbackEmail": "faisal@back4app.com", + "custom": { + "isGDPR": false, + "forceShowGDPRFields": false, + "showAdminPage": false, + "isOwner": true, + "isDatabasePublic": false + }, + "supportedPushLocales": [], + "graphQLServerURL": "https://parseapi.back4app.com/graphql", + "masterKey": "c05f1V3DmG04GPRD2nEbbeCQCXSEI9klRtAZ4jgh" + }], + "newFeaturesInLatestVersion": [], + "user": { + "email": "faisal@back4app.com", + "has_password": false, + "account_keys": [], + "name": "faisal@back4app.com", + "playDatabaseBrowserTutorial": true + } +} + diff --git a/src/components/Modal/Modal.react.js b/src/components/Modal/Modal.react.js index 25f5055170..5bea30db9d 100644 --- a/src/components/Modal/Modal.react.js +++ b/src/components/Modal/Modal.react.js @@ -39,6 +39,9 @@ let Modal = (({ customFooter, textModal = false, width, + continueText, + onContinue, + showContinue, buttonsInCenter = React.Children.count(children) === 0, }) => { if (children) { @@ -63,6 +66,15 @@ let Modal = (({ disabled={!!disabled} onClick={onConfirm} progress={progress} /> + { + showContinue === true ? +