From 299dcbab3d063516799863a7c17573e2297bba2c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 12 Nov 2020 09:07:09 +0000 Subject: [PATCH] Add majority of API interactions to SDK --- .../userInterface/FlatButton.svelte | 3 +- packages/client/src/render/screenRouter.js | 2 +- packages/component-sdk/src/api/api.js | 60 +++++++++++++++---- packages/component-sdk/src/api/auth.js | 4 -- packages/component-sdk/src/api/datasources.js | 58 ++++++++++++++++++ .../component-sdk/src/api/relationships.js | 12 ++++ packages/component-sdk/src/api/rows.js | 16 +---- packages/component-sdk/src/api/tables.js | 16 +++++ packages/component-sdk/src/api/views.js | 22 +++++++ packages/component-sdk/src/store/auth.js | 4 -- packages/component-sdk/src/store/config.js | 4 -- packages/standard-components/src/Card.svelte | 2 +- .../src/CardHorizontal.svelte | 2 +- .../standard-components/src/Container.svelte | 2 - packages/standard-components/src/Link.svelte | 2 - packages/standard-components/src/Login.svelte | 2 - packages/standard-components/src/Nav.svelte | 2 +- 17 files changed, 166 insertions(+), 47 deletions(-) create mode 100644 packages/component-sdk/src/api/datasources.js create mode 100644 packages/component-sdk/src/api/relationships.js create mode 100644 packages/component-sdk/src/api/views.js diff --git a/packages/builder/src/components/userInterface/FlatButton.svelte b/packages/builder/src/components/userInterface/FlatButton.svelte index 4bac03d4a6..931b90a5a2 100644 --- a/packages/builder/src/components/userInterface/FlatButton.svelte +++ b/packages/builder/src/components/userInterface/FlatButton.svelte @@ -1,9 +1,8 @@