Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukiai committed Aug 25, 2021
1 parent af4126a commit eb31535
Show file tree
Hide file tree
Showing 31 changed files with 7,252 additions and 191 deletions.
Empty file added .env
Empty file.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
lib
node_modules
.idea
66 changes: 66 additions & 0 deletions .eslintrc.js
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',
},
},
],
};
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules/
/.pnp
.pnp.js
.expo/
npm-debug.*
*.jks
Expand All @@ -11,3 +13,22 @@ web-build/

# macOS
.DS_Store

# testing
/coverage

# production
/build
/lib

# misc
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.docusaurus
6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/webResources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions App.js

This file was deleted.

35 changes: 35 additions & 0 deletions App.jsx
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>
);
}
21 changes: 21 additions & 0 deletions LICENSE
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.
57 changes: 57 additions & 0 deletions README.md
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
4 changes: 3 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"expo": {
"name": "monk-sdk",
"slug": "monk-sdk",
"version": "1.0.0",
"owner": "monkvision",
"version": "0.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"primaryColor": "#274b9f",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
Expand Down
Binary file added assets/banner.webp
Binary file not shown.
1 change: 1 addition & 0 deletions assets/logo-squared.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions babel.config.js
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;
16 changes: 16 additions & 0 deletions bob.config.js
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/'],
};
5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"baseUrl": "src/"
}
}
41 changes: 39 additions & 2 deletions package.json
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
}
Loading

0 comments on commit eb31535

Please sign in to comment.