From 6afa91ab01eff42057c4fe2b704a510d7aceb93f Mon Sep 17 00:00:00 2001 From: Carson Farmer Date: Mon, 21 Dec 2020 14:11:04 -0800 Subject: [PATCH 1/3] feat: most basic es modules demo Signed-off-by: Carson Farmer --- basic-es-modules/README.md | 9 +++++++++ basic-es-modules/index.html | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 basic-es-modules/README.md create mode 100644 basic-es-modules/index.html diff --git a/basic-es-modules/README.md b/basic-es-modules/README.md new file mode 100644 index 0000000..6c4cd6a --- /dev/null +++ b/basic-es-modules/README.md @@ -0,0 +1,9 @@ +See full [README.md here](../README.md). + +Remember to edit `index.html` to include your Hub API key: + +```javascript +... +const client = await Client.withKeyInfo({ key: 'HUB API KEY HERE' }) +... +``` \ No newline at end of file diff --git a/basic-es-modules/index.html b/basic-es-modules/index.html new file mode 100644 index 0000000..616f0d3 --- /dev/null +++ b/basic-es-modules/index.html @@ -0,0 +1,37 @@ + + + + + + Textile ES Modules + + + + + + + \ No newline at end of file From f70f0cd819bc2a614e98343ecc90105039defd3f Mon Sep 17 00:00:00 2001 From: Carson Farmer Date: Mon, 21 Dec 2020 14:15:59 -0800 Subject: [PATCH 2/3] chore: replace placeholder text Signed-off-by: Carson Farmer --- basic-es-modules/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic-es-modules/index.html b/basic-es-modules/index.html index 616f0d3..5e815e7 100644 --- a/basic-es-modules/index.html +++ b/basic-es-modules/index.html @@ -22,7 +22,7 @@ async function createAndAuthenticate() { // Connect to the API with hub keys. // Use withUserAuth for production. - const client = await Client.withKeyInfo({ key: '' }); + const client = await Client.withKeyInfo({ key: 'HUB API KEY HERE' }); // Authorize the user to access your Huh api return client.getToken(identity); // Now we're authenticated... start creating buckets or threaddb updates! From 8d6e1b3e1b6ac88b5971b0a68be2c48af9a4d578 Mon Sep 17 00:00:00 2001 From: Carson Farmer Date: Mon, 21 Dec 2020 14:36:33 -0800 Subject: [PATCH 3/3] chore: bump @textile/hub version throughout Signed-off-by: Carson Farmer --- 3box-identities-ed25519/package.json | 2 +- basic-es-modules/index.html | 2 +- bucket-photo-gallery/package.json | 2 +- hub-browser-auth-app/package.json | 2 +- metamask-identities-ed25519/package.json | 2 +- react-native-hub-app/package.json | 2 +- simple-auth/package.json | 2 +- user-mailbox-setup/package.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/3box-identities-ed25519/package.json b/3box-identities-ed25519/package.json index 6953c26..c323d9e 100644 --- a/3box-identities-ed25519/package.json +++ b/3box-identities-ed25519/package.json @@ -5,7 +5,7 @@ "dependencies": { "3box": "^1.21.0", "@emotion/react": "11.0.0-next.12", - "@textile/hub": "^5.0.0", + "@textile/hub": "^5.0.1", "ethers": "^5.0.8", "react": "^16.13.1", "react-dom": "^16.13.1", diff --git a/basic-es-modules/index.html b/basic-es-modules/index.html index 5e815e7..f9b1e1c 100644 --- a/basic-es-modules/index.html +++ b/basic-es-modules/index.html @@ -8,7 +8,7 @@