Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Commit 56e41fa

Browse files
author
Jakub Ner
committed
[1] Fix a race condition whereby appsell buttons might not be wired-up with the login widget by the time of first update.
[2] add link to React.js demo
1 parent 50ea1f9 commit 56e41fa

File tree

12 files changed

+48
-24
lines changed

12 files changed

+48
-24
lines changed

README.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
2+
13
<p align="center"><a href="https://overhide.io"><img src="https://overhide.github.io/overhide-widgets/assets/logo.png" width="200px"/></a></p>
24

5+
6+
37
<p align="center"><a href="https://overhide.io">overhide.io</a></p><p style="width: 500px; margin: auto">A free and open-sourced (mostly) ecosystem of widgets, a front-end library, and back-end services &mdash; to make addition of "logins" and "in-app-purchases" (IAP) to your app as banal as possible.</p>
48

9+
10+
511
<hr/>
612

713
# overhide widgets
@@ -16,7 +22,11 @@ The authentication and authorization mechanism used herein is the [Ledger-Based
1622

1723

1824

19-
It's simple to add IAPs to your Web application &mdash; 🎈 check out the "simplest" [demo](https://overhide.github.io/overhide-widgets/demo-front-end/simplest.html) ([code](/demo-front-end/simplest.html)) 🎈 &mdash; it's essentially:
25+
👁👁 For the impatient, jump to the [demos](#demos).
26+
27+
28+
29+
It's simple to add IAPs to your Web application &mdash; check out the "simplest" [demo](https://overhide.github.io/overhide-widgets/demo-front-end/simplest.html) ([code](/demo-front-end/simplest.html)) &mdash; it's essentially:
2030

2131
```
2232
<html>
@@ -77,6 +87,18 @@ When a user wants to authorize for a feature; different UI experiences will pres
7787

7888
A logged in user can check their previous payments in new browser tabs &mdash; UI experiences vary by currency/wallet.
7989

90+
91+
92+
> ## Framework Users -- React.js, Angular, Vue.js, ...
93+
>
94+
> These are standard Web components written using [FAST](https://www.fast.design/).
95+
>
96+
> They [can be incorporated into any framework](https://www.fast.design/docs/integrations/introduction).
97+
>
98+
> An example/demo of these components used in a React.js app is provided in its own repository: [overhide-widgets React.js Demo app](https://github.com/overhide/overhide-widgets-react-demo-app).
99+
100+
101+
80102
## Quick Start
81103

82104
To use these widgets in your Web app follow the steps below.
@@ -146,13 +168,14 @@ The reminder of the steps are actual code changes in your Web application.
146168

147169
We have several component demo files in [/demo-front-end](/demo-front-end):
148170

149-
| **Demo Name** | **Link** | **Code** | **Uses Back-End** | **Notes** |
150-
| -------------- | ------------------------------------------------------------ | ------------------------------------------- | ----------------- | ------------------------------------------------------------ |
151-
| basic | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/basic.html) | [code](/demo-front-end/basic.html) || the basic demo &mdash; *overhide-status* in the nav-bar, a login button, 3 feature buttons. |
152-
| no back-end | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/no-back-end.html) | [code](/demo-front-end/no-back-end.html) || a no [back-end](#back-end) demo, everything just in-browser &mdash; same as basic otherwise |
153-
| custom buttons | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/custom.html) | [code](/demo-front-end/custom.html) || same as basic demo but the login button has different colors and the feature buttons are ice cream desserts &mdash; see [slots](#slots-2) section of the [overhide-appsell](#overhide-appsell) component below |
154-
| javascript-hub | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/javascript-hub.html) | [code](/demo-front-end/javascript-hub.html) || same as basic demo but the *overhide-hub* component is not in the DOM, it's wired in via script |
155-
| simplest | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/simplest.html) | [code](/demo-front-end/simplest.html) || bare bones single button demo &mdash; the simplest demo, no [back-end](#back-end) |
171+
| **Demo Name** | **Link** | **Code** | **Uses Back-End** | **Notes** |
172+
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ----------------- | ------------------------------------------------------------ |
173+
| basic | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/basic.html) | [code](/demo-front-end/basic.html) || the basic demo &mdash; *overhide-status* in the nav-bar, a login button, 3 feature buttons. |
174+
| no back-end | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/no-back-end.html) | [code](/demo-front-end/no-back-end.html) || a no [back-end](#back-end) demo, everything just in-browser &mdash; same as basic otherwise |
175+
| custom buttons | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/custom.html) | [code](/demo-front-end/custom.html) || same as basic demo but the login button has different colors and the feature buttons are ice cream desserts &mdash; see [slots](#slots-2) section of the [overhide-appsell](#overhide-appsell) component below |
176+
| javascript-hub | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/javascript-hub.html) | [code](/demo-front-end/javascript-hub.html) || same as basic demo but the *overhide-hub* component is not in the DOM, it's wired in via script |
177+
| simplest | [demo](https://overhide.github.io/overhide-widgets/demo-front-end/simplest.html) | [code](/demo-front-end/simplest.html) || bare bones single button demo &mdash; the simplest demo, no [back-end](#back-end) |
178+
| ![](./assets/react.png)<br /><br />[overhide-widgets React.js Demo app](https://github.com/overhide/overhide-widgets-react-demo-app) | [demo](https://github.com/overhide/overhide-widgets-react-demo-app) | [code](https://github.com/overhide/overhide-widgets-react-demo-app) || React.js version of these demos. |
156179

157180

158181

@@ -235,15 +258,15 @@ All demos below show one or the other.
235258

236259
You can include *overhide-widgets* via CDN:
237260

238-
* `https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js`
261+
* `https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js`
239262

240263
You can see all the [/demo-front-end/*.html](/demo-front-end) demos load it this way:
241264

242265
```
243-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
266+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
244267
```
245268

246-
In our demos we specifically load the latest version, e.g. version *1.0.12*: `https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js`
269+
In our demos we specifically load the latest version, e.g. version *1.0.13*: `https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js`
247270

248271
The widgets can then be used in your DOM and via your framework JavaScript.
249272

@@ -254,7 +277,7 @@ In [npm](https://www.npmjs.com/) based app projects, include the components and
254277
```
255278
"dependencies": {
256279
..
257-
"overhide-widgets": "1.0.12",
280+
"overhide-widgets": "1.0.13",
258281
..
259282
}
260283
```

assets/react.png

4.46 KB
Loading

demo-back-end/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo-front-end/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
6-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
77

88
<script>
99
// Uncomment on of the back-end connection strings below.

demo-front-end/custom.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
6-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
77

88
<script>
99
// Uncomment on of the back-end connection strings below.

demo-front-end/javascript-hub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
6-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
77

88
<script>
99
// Uncomment on of the back-end connection strings below.

demo-front-end/no-back-end.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
6-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
77

88
<script>
99
// Uncomment on of the back-end connection strings below.

demo-front-end/simplest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.12/dist/overhide-widgets.js"></script>
5+
<script src="https://cdn.jsdelivr.net/npm/overhide-widgets@1.0.13/dist/overhide-widgets.js"></script>
66

77
<script>
88
window.addEventListener('overhide-appsell-sku-clicked',(e) => {

dist/overhide-widgets.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/overhide-widgets.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)