-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from shigde/3-make-sdk-integrable
3 make sdk integrable
- Loading branch information
Showing
32 changed files
with
2,612 additions
and
1,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ quote_type = single | |
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
[*.json] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,5 +168,6 @@ Thumbs.db | |
testem.log | ||
/typings | ||
deploy.sh | ||
publish.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,18 @@ | |
|
||
Shig Client-Server SDK for JavaScript | ||
|
||
## Build | ||
## Development | ||
The Lobby web component is based on the `Shig/core` library. For development, please follow the instructions in the ``Shig/core`` [README](https://github.com/shigde/shig-js-sdk/tree/main/projects/core#readme). | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
## Download Lobby web component artifact | ||
Please download the last tagged version | ||
|
||
## Build Core lib | ||
|
||
Run `npm run build:core` or run `ng build core` to build the core library. The build artifacts will be stored in the `dist/` directory. | ||
|
||
## Build Lobby web component | ||
## Build Lobby web component artifact | ||
|
||
Run `npm run build:lobby` to build the lobby web component. The build `shig-lobby.js` artifacts will be stored in | ||
the `dist/` directory. | ||
the `dist/lobby` directory. | ||
|
||
### Use web component | ||
## Use web component | ||
|
||
```html | ||
<!DOCTYPE html> | ||
|
@@ -33,10 +31,15 @@ the `dist/` directory. | |
// settings: | ||
lobby.setAttribute('token', 'your-proxy-api-token'); | ||
lobby.setAttribute('api-prefix', '/your/proxy/api/prefix'); | ||
lobby.setAttribute('stream', '1234'); | ||
lobby.setAttribute('space', '[email protected]'); | ||
lobby.setAttribute('user', '[email protected]'); | ||
const wrapper = document.getElementById("wrapper"); | ||
wrapper.appendChild(lobby); | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
|
||
You can find the complete list of parameters here: [Parameter](https://github.com/shigde/shig-js-sdk/tree/main/projects/core#readme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.