[next] Email (#2261)

* feat: suspending, banning, now propogation

* feat: added email rendering + localization support

* fix: fix related to lib

* refactor: moved juicer to queue task

* refactor: cleanup of job processor

* refactor: improved error messaging around failed email

* feat: initial forgot passwor impl

* fix: fixed rebase errors

* feat: send back Content-Language header with requests

* feat: added ban email

* feat: implemented forgotten password API

* fix: linting

* feat: support more emails

* fix: promise patches

* feat: initial confirm email API

* feat: added rate limiting

* feat: added URL support

* feat: added email docs

* fix: updated docs

* chore: documentation review

* fix: fixed build bug

* feat: implement forgot password in auth popup

* test: add tests + fixes

* chore: rename StatelessComponent to FunctionComponent

* fix: types and test fixes

* chore: upgrade deps

* fix: THANK YOU TESTS FOR SAVING MY A**

* chore: reorder imports

* chore: remove obsolete !

* feat: implement accounts bundle

* refactor: review suggestion

* fix: rebase upgrade error

* fix: rebase bug

* feat: reset password link support

* test: add tests for account password reset page

* fix: remove redirect uri

* fix: revert local state changes
This commit is contained in:
Wyatt Johnson
2019-05-09 22:54:56 +02:00
committed by Kiwi
parent 945bd7f2b0
commit df57b4eb17
487 changed files with 6794 additions and 2431 deletions
+30
View File
@@ -284,6 +284,22 @@ export default function createWebpackConfig(
},
],
},
{
test: paths.appAccountLocalesTemplate,
use: [
// This is the locales loader that loads available locales
// from a particular target.
{
loader: "locales-loader",
options: {
...localesOptions,
// Target specifies the prefix for fluent files to be loaded.
// ${target}-xyz.ftl and ${†arget}.ftl are loaded into the locales.
target: "account",
},
},
],
},
{
test: paths.appAdminLocalesTemplate,
use: [
@@ -550,6 +566,13 @@ export default function createWebpackConfig(
...devServerEntries,
paths.appInstallIndex,
],
account: [
// We ship polyfills by default
paths.appPolyfill,
...ifBuild(paths.appPublicPath),
...devServerEntries,
paths.appAccountIndex,
],
admin: [
// We ship polyfills by default
paths.appPolyfill,
@@ -593,6 +616,13 @@ export default function createWebpackConfig(
chunks: ["install"],
inject: "body",
}),
// Generates an `account.html` file with the <script> injected.
new HtmlWebpackPlugin({
filename: "account.html",
template: paths.appAccountHTML,
chunks: ["account"],
inject: "body",
}),
// Generates an `admin.html` file with the <script> injected.
new HtmlWebpackPlugin({
filename: "admin.html",