├── .babelrc ├── .editorconfig ├── .eslintrc ├── .gitignore ├── .npmignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── README.md ├── karma.conf.js ├── lib ├── components │ ├── AuthorizedComponent.react.js │ └── RoleAwareComponent.react.js ├── index.js └── utils │ └── roleMatcher.js ├── package.json ├── spec ├── SpecHelper.js └── roleMatcher.spec.js ├── webpack.config.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/.npmignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/README.md -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/karma.conf.js -------------------------------------------------------------------------------- /lib/components/AuthorizedComponent.react.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/lib/components/AuthorizedComponent.react.js -------------------------------------------------------------------------------- /lib/components/RoleAwareComponent.react.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/lib/components/RoleAwareComponent.react.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/utils/roleMatcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/lib/utils/roleMatcher.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/package.json -------------------------------------------------------------------------------- /spec/SpecHelper.js: -------------------------------------------------------------------------------- 1 | beforeEach(function() { 2 | 3 | }); 4 | -------------------------------------------------------------------------------- /spec/roleMatcher.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/spec/roleMatcher.spec.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/burczu/react-router-role-authorization/HEAD/yarn.lock --------------------------------------------------------------------------------