Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
2,870 additions
and
914 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Publish to Docs | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: pandoc/latex | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Copy Changelog | ||
run: | | ||
cp CHANGELOG.md docs | ||
- name: Pushes to another repository | ||
uses: cpina/github-action-push-to-another-repository@main | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source-directory: 'docs' | ||
target-directory: 'docs/developers/masa-react' | ||
destination-github-username: 'masa-finance' | ||
destination-repository-name: 'docs' | ||
user-email: 13647606+H34D@users.noreply.github.com | ||
target-branch: main |
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
[ | ||
{ | ||
"path": "dist/tools.cjs.production.min.js", | ||
"limit": "500kB" | ||
"path": "dist/masa-react.cjs.production.min.js", | ||
"limit": "500kB", | ||
"webpack": false | ||
}, | ||
{ | ||
"path": "dist/tools.esm.js", | ||
"limit": "300kB" | ||
"path": "dist/masa-react.esm.js", | ||
"limit": "300kB", | ||
"webpack": false | ||
} | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Masa React | ||
- v0.11.0 / [Exports](modules.md) | ||
|
||
--- | ||
|
||
**🌽🌽 THIS IS BETA SOFTWARE. IT COULD LEAD TO RAPID UNSCHEDULED DISASSEMBLY. If you run into problems, please open up a new issue. 🌽🌽** | ||
|
||
--- | ||
|
||
<!-- TOC --> | ||
|
||
* [Setup](#setup) | ||
|
||
<!-- TOC --> | ||
|
||
## Setup | ||
|
||
``` | ||
git clone https://github.com/masa-finance/masa-react.git | ||
sudo nano /etc/hosts | ||
// add 127.0.0.1 masatools.finance | ||
brew install mkcert | ||
cd masa-react | ||
mkcert masatools.finance | ||
yarn | ||
yarn storybook | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[# Masa React | ||
- v0.11.0](../README.md) / [Exports](../modules.md) / [rest](../modules/rest.md) / MethodMetadata | ||
|
||
# Interface: MethodMetadata | ||
|
||
[rest](../modules/rest.md).MethodMetadata | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [author](rest.MethodMetadata.md#author) | ||
- [authorPicture](rest.MethodMetadata.md#authorpicture) | ||
- [description](rest.MethodMetadata.md#description) | ||
- [method](rest.MethodMetadata.md#method) | ||
- [name](rest.MethodMetadata.md#name) | ||
- [parameters](rest.MethodMetadata.md#parameters) | ||
|
||
## Properties | ||
|
||
### author | ||
|
||
• **author**: `string` | ||
|
||
___ | ||
|
||
### authorPicture | ||
|
||
• **authorPicture**: `string` | ||
|
||
___ | ||
|
||
### description | ||
|
||
• **description**: `string` | ||
|
||
___ | ||
|
||
### method | ||
|
||
• **method**: ``"GET"`` \| ``"POST"`` \| ``"PUT"`` \| ``"DELETE"`` \| ``"OPTIONS"`` | ||
|
||
___ | ||
|
||
### name | ||
|
||
• **name**: `string` | ||
|
||
___ | ||
|
||
### parameters | ||
|
||
• **parameters**: [`Parameter`](rest.Parameter.md)[] |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[# Masa React | ||
- v0.11.0](../README.md) / [Exports](../modules.md) / [rest](../modules/rest.md) / Parameter | ||
|
||
# Interface: Parameter | ||
|
||
[rest](../modules/rest.md).Parameter | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [dataType](rest.Parameter.md#datatype) | ||
- [default](rest.Parameter.md#default) | ||
- [description](rest.Parameter.md#description) | ||
- [key](rest.Parameter.md#key) | ||
- [name](rest.Parameter.md#name) | ||
- [required](rest.Parameter.md#required) | ||
|
||
## Properties | ||
|
||
### dataType | ||
|
||
• **dataType**: ``"string"`` \| ``"number"`` | ||
|
||
___ | ||
|
||
### default | ||
|
||
• **default**: `string` | ||
|
||
___ | ||
|
||
### description | ||
|
||
• **description**: `string` | ||
|
||
___ | ||
|
||
### key | ||
|
||
• **key**: `number` | ||
|
||
___ | ||
|
||
### name | ||
|
||
• **name**: `string` | ||
|
||
___ | ||
|
||
### required | ||
|
||
• **required**: ``"yes"`` \| ``"no"`` |
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
[# Masa React | ||
- v0.11.0](README.md) / Exports | ||
|
||
# # Masa React | ||
- v0.11.0 | ||
|
||
## Table of contents | ||
|
||
### Namespaces | ||
|
||
- [rest](modules/rest.md) | ||
|
||
### Variables | ||
|
||
- [addresses](modules.md#addresses) | ||
|
||
### Functions | ||
|
||
- [AccessTokenProvider](modules.md#accesstokenprovider) | ||
- [MasaToolsProvider](modules.md#masatoolsprovider) | ||
- [MasaToolsWrapper](modules.md#masatoolswrapper) | ||
- [loadIdentityContracts](modules.md#loadidentitycontracts) | ||
- [useContractCall](modules.md#usecontractcall) | ||
- [useMasaTools](modules.md#usemasatools) | ||
|
||
## Variables | ||
|
||
### addresses | ||
|
||
• `Const` **addresses**: `Addresses` | ||
|
||
## Functions | ||
|
||
### AccessTokenProvider | ||
|
||
▸ **AccessTokenProvider**(`__namedParameters`): `Element` | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `__namedParameters` | `AccessTokenProps` | | ||
|
||
#### Returns | ||
|
||
`Element` | ||
|
||
___ | ||
|
||
### MasaToolsProvider | ||
|
||
▸ **MasaToolsProvider**(`__namedParameters`): `Element` | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `__namedParameters` | `MasaToolsProviderProps` | | ||
|
||
#### Returns | ||
|
||
`Element` | ||
|
||
___ | ||
|
||
### MasaToolsWrapper | ||
|
||
▸ **MasaToolsWrapper**(`__namedParameters`): `Element` | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `__namedParameters` | `MasaToolsWrapperProps` | | ||
|
||
#### Returns | ||
|
||
`Element` | ||
|
||
___ | ||
|
||
### loadIdentityContracts | ||
|
||
▸ **loadIdentityContracts**(`__namedParameters`): `Promise`<`IIdentityContracts`\> | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `__namedParameters` | `LoadContractArgs` | | ||
|
||
#### Returns | ||
|
||
`Promise`<`IIdentityContracts`\> | ||
|
||
___ | ||
|
||
### useContractCall | ||
|
||
▸ **useContractCall**(`__namedParameters`): `Object` | ||
|
||
#### Parameters | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `__namedParameters` | `Object` | | ||
| `__namedParameters.method` | `Promise`<`any`\> | | ||
|
||
#### Returns | ||
|
||
`Object` | ||
|
||
| Name | Type | | ||
| :------ | :------ | | ||
| `data` | `any` | | ||
| `error` | `any` | | ||
| `getData` | () => `any` | | ||
| `loading` | `boolean` | | ||
|
||
___ | ||
|
||
### useMasaTools | ||
|
||
▸ **useMasaTools**(): `MasaToolsShape` | ||
|
||
#### Returns | ||
|
||
`MasaToolsShape` |
Oops, something went wrong.