Skip to content

Commit

Permalink
Update docs, client SDK, package licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed Mar 9, 2024
1 parent 59cd718 commit 910fba7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
17 changes: 5 additions & 12 deletions docs/content/1.setup/6.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ description: Minimal examples of setting up a denied file.

- Create a file in any directory of your choice and name it whatever you want. For this example, we will name it `denied.html`.

- Add the following code to bottom of the body tag in the `denied.html` file:
- Add the following script to the `denied.html` file:


::code-group
::code-block{label="code"}
```javascript
if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) {
window.location.reload();
localStorage["auth"] = true;
}
```html
<script src="https://cdn.jsdelivr.net/npm/@rubynetwork/corlink-client@latest/index.min.js" defer></script>
```
::
::code-block{label="denied.html"}
Expand All @@ -33,16 +31,11 @@ description: Minimal examples of setting up a denied file.
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Access Denied</title>
<script src="https://cdn.jsdelivr.net/npm/@rubynetwork/corlink-client@latest/index.min.js" defer></script>
</head>
<body>
<h1>Access Denied</h1>
<p>You do not have permission to access this resource.</p>
<script>
if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) {
window.location.reload();
localStorage["auth"] = true;
}
</script>
</body>
</html>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/ruby-network/corlink#readme",
"author": "Ruby Network",
"license": "AGPL-3.0",
"license": "GPL-3.0",
"dependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/ruby-network/corlink#readme",
"author": "Ruby Network",
"license": "AGPL-3.0",
"license": "GPL-3.0",
"dependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ try {
localStorage["auth"] = true;
}
}
catch (e) {
console.log(e);
catch {
// do nothing
}
2 changes: 1 addition & 1 deletion packages/sdk/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"homepage": "https://github.com/ruby-network/corlink#readme",
"author": "Ruby Network",
"license": "AGPL-3.0",
"license": "GPL-3.0",
"dependencies": {
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"homepage": "https://github.com/ruby-network/corlink#readme",
"author": "Ruby Network",
"license": "AGPL-3.0",
"license": "GPL-3.0",
"dependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
Expand Down

0 comments on commit 910fba7

Please sign in to comment.