-
Notifications
You must be signed in to change notification settings - Fork 10
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
31 changed files
with
7,252 additions
and
191 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,4 @@ | ||
build | ||
lib | ||
node_modules | ||
.idea |
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,66 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: true, | ||
}, | ||
extends: ['plugin:import/recommended', 'airbnb'], | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['jest', 'react-hooks'], | ||
rules: { | ||
curly: ['error', 'all'], | ||
'consistent-this': ['error', 'self'], | ||
'linebreak-style': 'off', // Doesn't play nicely with Windows | ||
quotes: ['error', 'single', { allowTemplateLiterals: true }], | ||
'prefer-destructuring': 'off', // Destructuring harm grep potential. | ||
'jsx-a11y/label-has-associated-control': 'off', | ||
'jsx-a11y/label-has-for': 'off', // deprecated | ||
'react/jsx-handler-names': ['error', { | ||
eventHandlerPrefix: 'handle', | ||
eventHandlerPropPrefix: 'on', | ||
}, | ||
], | ||
'react/no-danger': 'error', | ||
'react/no-direct-mutation-state': 'error', | ||
'react/sort-prop-types': 'error', | ||
'import/no-extraneous-dependencies': 'off', | ||
'import/no-named-as-default': 'off', | ||
'import/no-unresolved': [0], | ||
'import/namespace': ['error', { allowComputed: true }], | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'error', | ||
'object-curly-newline': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/test-utils/**/*.js', | ||
// matching the pattern of the test runner | ||
'*.test.js', | ||
'*.int-test.js', | ||
], | ||
env: { | ||
browser: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
rules: { | ||
// does not work with wildcard imports. Mistakes will throw at runtime anyway | ||
'import/named': 0, | ||
// for expect style assertions | ||
'no-unused-expressions': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.md'], | ||
rules: { | ||
'no-console': 'off', | ||
'no-unused-expressions': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,35 @@ | ||
import React from 'react'; | ||
import { StatusBar } from 'expo-status-bar'; | ||
import { StyleSheet, Text, View } from 'react-native'; | ||
|
||
import { Provider as PaperProvider } from 'react-native-paper'; | ||
import { Provider as StoreProvider } from 'react-redux'; | ||
|
||
import { store } from 'Controllers'; | ||
|
||
import Logo from 'Components/Logo'; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); | ||
|
||
export default function App() { | ||
return ( | ||
<StoreProvider store={store}> | ||
<PaperProvider theme={store.getState().theme}> | ||
<View style={styles.container}> | ||
<Logo height={100} width={100} /> | ||
<Text style={{ marginTop: 16 }}> | ||
Welcome to Monk Software Development Kit! | ||
</Text> | ||
<StatusBar /> | ||
</View> | ||
</PaperProvider> | ||
</StoreProvider> | ||
); | ||
} |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021-current Monk, Inc. <support@monkvision.ai> (https://monkvision.ai) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,57 @@ | ||
![Banner](assets/banner.webp) | ||
|
||
# Monk SDK | ||
|
||
[![Build Status][circleci-image]][circleci-url] | ||
[![NPM version][npm-image]][npm-url] | ||
[![Coverage][codecov-image]][codecov-url] | ||
[![License][license-image]][license-url] | ||
[![Downloads][downloads-image]][downloads-url] | ||
|
||
Client Side JavaScript toolkit for Monk API including React Native components. | ||
|
||
If you want to read the full API documentation of Monk SDK, see [here](https://monkvision.github.io/monk-sdk/api). | ||
|
||
- [Install](#install) | ||
- [Documentation](#documentation) | ||
- [Issue Reporting](#issue-reporting) | ||
- [License](#license) | ||
|
||
## Install | ||
|
||
```sh | ||
npm install monk-sdk | ||
``` | ||
If you are using yarn. | ||
```sh | ||
yarn add monk-sdk | ||
``` | ||
|
||
After installing the `monk-sdk` module, you'll need bundle it up along with all of its dependencies. | ||
|
||
## Documentation | ||
|
||
For a complete reference and examples please check our [docs](https://auth0.com/docs/libraries/auth0js). | ||
|
||
## Issue Reporting | ||
|
||
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues. | ||
|
||
For Monk related questions/support please use the [Support Center](https://support.monkvision.ai). | ||
|
||
## License | ||
|
||
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info. | ||
|
||
<!-- CONST --> | ||
|
||
[npm-image]: https://img.shields.io/npm/v/monk-sdk.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/monk-sdk | ||
[circleci-image]: https://img.shields.io/circleci/project/github/monkvision/monk-sdk.svg?branch=master&style=flat-square | ||
[circleci-url]: https://circleci.com/gh/monkvision/monk-sdk.js | ||
[codecov-image]: https://img.shields.io/codecov/c/github/monkvision/monk-sdk.js/master.svg?style=flat-square | ||
[codecov-url]: https://codecov.io/github/monkvision/monk-sdk.js?branch=master | ||
[license-image]: https://img.shields.io/npm/l/monk-sdk-js.svg?style=flat-square | ||
[license-url]: #license | ||
[downloads-image]: https://img.shields.io/npm/dm/monk-sdk-js.svg?style=flat-square | ||
[downloads-url]: https://npmjs.org/package/monk-sdk |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 +1,17 @@ | ||
module.exports = function(api) { | ||
function babelConfig(api) { | ||
api.cache(true); | ||
|
||
return { | ||
presets: ['babel-preset-expo'], | ||
env: { | ||
production: { | ||
plugins: ['react-native-paper/babel'], | ||
}, | ||
}, | ||
plugins: [ | ||
['module-resolver', { root: ['./src'] }], | ||
], | ||
}; | ||
}; | ||
} | ||
|
||
module.exports = babelConfig; |
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,16 @@ | ||
module.exports = { | ||
source: 'src', | ||
output: 'lib', | ||
targets: [ | ||
['commonjs', { copyFlow: true }], | ||
'module', | ||
], | ||
main: 'lib/commonjs/index.js', | ||
module: 'lib/module/index.js', | ||
'react-native': 'src/index.native.js', | ||
files: [ | ||
'lib/', | ||
'src/', | ||
], | ||
modulePathIgnorePatterns: ['<rootDir>/lib/'], | ||
}; |
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,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "src/" | ||
} | ||
} |
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,22 +1,59 @@ | ||
{ | ||
"main": "node_modules/expo/AppEntry.js", | ||
"scripts": { | ||
"docusaurus": "docusaurus", | ||
"docs:start": "docusaurus start --port 3001", | ||
"docs:build": "docusaurus build --out-dir docs/build", | ||
"docs:deploy": "docusaurus deploy --out-dir docs/build", | ||
"docs:clear": "docusaurus clear", | ||
"docs:serve": "docusaurus serve --port 8001", | ||
"docs:write-translations": "docusaurus write-translations", | ||
"docs:write-heading-ids": "docusaurus write-heading-ids", | ||
"prepare": "bob build", | ||
"start": "expo start", | ||
"android": "expo start --android", | ||
"ios": "expo start --ios", | ||
"web": "expo start --web", | ||
"eject": "expo eject" | ||
}, | ||
"peerDependencies": { | ||
"@reduxjs/toolkit": "^1.6.1", | ||
"lodash.identity": "^3.0.0", | ||
"lodash.isempty": "^4.4.0", | ||
"prop-types": "^15.7.2", | ||
"react-native-paper": "^4.9.2", | ||
"react-native-svg": "12.1.1", | ||
"react-redux": "^7.2.4" | ||
}, | ||
"dependencies": { | ||
"@reduxjs/toolkit": "^1.6.1", | ||
"expo": "~42.0.1", | ||
"expo-status-bar": "~1.0.4", | ||
"lodash.identity": "^3.0.0", | ||
"lodash.isempty": "^4.4.0", | ||
"prop-types": "^15.7.2", | ||
"react": "16.13.1", | ||
"react-dom": "16.13.1", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz", | ||
"react-native-web": "~0.13.12" | ||
"react-native-paper": "^4.9.2", | ||
"react-native-svg": "12.1.1", | ||
"react-native-web": "~0.13.12", | ||
"react-redux": "^7.2.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.9.0" | ||
"@babel/core": "^7.9.0", | ||
"@docusaurus/core": "^2.0.0-beta.0", | ||
"@docusaurus/preset-classic": "^2.0.0-beta.0", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"babel-preset-expo": "^8.4.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-plugin-import": "^2.24.1", | ||
"eslint-plugin-jest": "^24.4.0", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.24.0", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"react-native-builder-bob": "^0.18.1" | ||
}, | ||
"private": true | ||
} |
Oops, something went wrong.