forked from supertokens/supertokens-auth-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature email password (supertokens#16)
* email/password feature * DRY routing + react-test-app in test + fix clashing node_modules * npmignore * signIn API + feature events * normalised form fields * normaliseAppInfo + use enums in constants * remove unnecessary promises * remove useless usecallback and useeffect * signin theme wip * signin theme * fix react hooks issue + add eslint to replace deprecated tslint * signIn/signUp themes * tweaks * fix svg * use focus-within for the writing state * handleChange onFocus only * normalise emailpassword correctly + restructure emailpassword recipe * fix svg * add default className for docs * allow to override palette * update default password validator * FormBase * fix recipe import/export * reset password feature and theme * add test skeleton for password reset * enforce linter pre commit * enforce linter precommit * enforce linter precommit * remove unnecessary console.log * trim email + tests * add WithRouter to redirect in app with or without react router dom * fix getRoutingComponent returning component * modify git hook to include linter + remove useless EmailPasswordFeature type * server tests + fix API Calls * quick fixes * allow autocomplete + correct rubik fonts * useShadoWDom option * normaliseEmailPasswordConfig (no throw)
- Loading branch information
NkxxkN
committed
Nov 4, 2020
1 parent
961c5a0
commit c4a8f3d
Showing
162 changed files
with
14,680 additions
and
1,777 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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env" | ||
"@babel/preset-env", {}, | ||
"@babel/preset-react" | ||
] | ||
], | ||
"plugins": [ | ||
"inline-react-svg", | ||
[ | ||
"@babel/plugin-transform-react-jsx", | ||
{ | ||
"pragmaFrag": "React.Fragment" | ||
} | ||
] | ||
] | ||
} |
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,5 +1,7 @@ | ||
exit: true | ||
spec: test/**/*.test.js | ||
spec: | ||
- test/unit/**/*.test.js | ||
- test/end-to-end/**/*.test.js | ||
reporter: spec | ||
slow: 20000 | ||
timeout: 30000 |
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
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
* under the License. | ||
*/ | ||
|
||
export * from './lib/build/'; | ||
export * from './lib/build/'; |
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 @@ | ||
build/ |
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,127 @@ | ||
/* | ||
👋 Hi! This file was autogenerated by tslint-to-eslint-config. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config | ||
It represents the closest reasonable ESLint configuration to this | ||
project's original TSLint configuration. | ||
We recommend eventually switching this configuration to extend from | ||
the recommended rulesets in typescript-eslint. | ||
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md | ||
Happy linting! 💖 | ||
*/ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"tsconfigRootDir": __dirname, | ||
"project": "tsconfig.json", | ||
"sourceType": "module", | ||
"createDefaultProgram": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"@typescript-eslint/tslint" | ||
], | ||
"extends":[ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
"globals":{ | ||
"React": "readable", | ||
"jsx": "readable" | ||
}, | ||
"rules": { | ||
"typescript-eslint/indent": "off", // Prettier takes care of indentation. | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/member-delimiter-style": [ | ||
"error", | ||
{ | ||
"multiline": { | ||
"delimiter": "semi", | ||
"requireLast": true | ||
}, | ||
"singleline": { | ||
"delimiter": "semi", | ||
"requireLast": false | ||
} | ||
} | ||
], | ||
"@typescript-eslint/naming-convention": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
2, | ||
{ "vars": "all", "args": "all", "varsIgnorePattern": "^React$|^jsx$" } | ||
], | ||
"@typescript-eslint/prefer-namespace-keyword": "error", | ||
"@typescript-eslint/quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"@typescript-eslint/semi": [ | ||
"error", | ||
"always" | ||
], | ||
"@typescript-eslint/type-annotation-spacing": "error", | ||
"brace-style": [ | ||
"error", | ||
"1tbs" | ||
], | ||
"no-implicit-coercion": [2, { | ||
"boolean": true, | ||
"number": true, | ||
"string": true | ||
}], | ||
"curly": ["error"], | ||
"eqeqeq": [ | ||
"error", | ||
"smart" | ||
], | ||
"id-blacklist": [ | ||
"error", | ||
"any", | ||
"Number", | ||
"number", | ||
"String", | ||
"string", | ||
"Boolean", | ||
"boolean", | ||
"Undefined" | ||
], | ||
"id-match": "error", | ||
"no-eval": "error", | ||
"no-trailing-spaces": "error", | ||
"no-unsafe-finally": "error", | ||
"no-var": "error", | ||
"spaced-comment": [ | ||
"error", | ||
"always", | ||
{ | ||
"markers": [ | ||
"/" | ||
] | ||
} | ||
], | ||
"@typescript-eslint/tslint/config": [ | ||
"error", | ||
{ | ||
"rules": { | ||
"whitespace": [ | ||
true, | ||
"check-branch", | ||
"check-decl", | ||
"check-operator", | ||
"check-separator", | ||
"check-type" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}; |
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.