File tree Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ var uriFile = localStorage.getItem(appFileUri);
17
17
18
18
## Usage
19
19
20
- ``` js
21
- const SolidFile = require (' solid-file-client' )
22
- const Widget = require (" ./build/widget.js" )
23
20
24
- ` ` ` html
25
- <script src="https://cdn.jsdelivr.net/npm/solid-file-client/dist/browser/solid-file-client.bundle.js"></script>
26
- <script type="text/javascript" src="../build/widget.js"></script>
27
- <script>
21
+ ``` javascript
22
+ const SolidFile = require (' solid-file-client' )
23
+ const Widget = require (" solid-file-widget" )
24
+ ```
25
+ ``` HTML
26
+ <script src =" https://cdn.jsdelivr.net/npm/solid-file-client/dist/browser/solid-file-client.bundle.js" ></script >
27
+ <script type =" text/javascript" src =" ../build/widget.js" ></script >
28
+ <script >
28
29
const solidFile = SolidFileClient;
29
30
30
31
// ...
@@ -57,11 +58,6 @@ The widget has some configuration options to customize the behavior:
57
58
| ` appFolder` | app root folder registered in Solid pod TypeIndex | String | from TypeIndex or '/public' |
58
59
| ` appFile` | app file registered in Solid pod TypeIndex | String | from TypeIndex |
59
60
60
- Example:
61
-
62
- ```js
63
- const widget = new Widget(solidFile)
64
-
65
61
## Available Functions
66
62
67
63
` attach (elementID)` - Attach the widget to the DOM and display it. You can
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rs-widget" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"description" : " Solid connect widget using solid-file-client.js" ,
5
5
"main" : [
6
6
" ./build/widget.js"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " solid-file-widget" ,
3
- "version" : " 0.4.0 " ,
3
+ "version" : " 0.4.1 " ,
4
4
"description" : " solid-file-client connect widget" ,
5
5
"main" : " build/widget.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ <h1 class="rs-big-headline">Connect your Solid Pod</h1>
500
500
< input type ="text " name ="rs-user-address " placeholder ="Void 'webId-Pod' or 'https://<podName>' " autocapitalize ="off ">
501
501
< div class ="rs-sign-in-error rs-hidden "> </ div >
502
502
< input type ="submit " class ="rs-connect " value ="Connect ">
503
- < a href ="https://github.com/bourgeoa/solid-file-widget/README.md " class ="rs-help " target ="_blank "> Need help?</ a >
503
+ < a href ="https://github.com/bourgeoa/solid-file-widget/blob/master/ README.md " class ="rs-help " target ="_blank "> Need help?</ a >
504
504
</ form >
505
505
</ div >
506
506
</ div >
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ Widget.prototype = {
303
303
msgContainer . innerHTML = "" ;
304
304
msgContainer . classList . remove ( 'rs-visible' ) ;
305
305
msgContainer . classList . add ( 'rs-hidden' ) ;
306
- if ( this . click === true && this . windowReload === true ) { /*alert("disconnect windowReload");*/ window . location . reload ( true ) }
306
+ if ( this . click === true && this . windowReload === true ) { window . location . reload ( true ) }
307
307
} ,
308
308
309
309
/**
You can’t perform that action at this time.
0 commit comments