Robert Schäfer
16997ee63d
Refactor login with confidence
...
This is why I ❤️ testing. First I wrote several tests to get
familiar with the existing code and specified everything that I believe to
be required. Then I refactor the entire method at once and the tests pass.
Note that I do **not** believe that setting the user data to `null` is
really relevant.
2018-12-19 18:04:25 +01:00
Robert Schäfer
f85081c308
Properly test the reject branch of login
2018-12-19 17:58:25 +01:00
Robert Schäfer
4236881218
Fix CodeFactor issues
2018-12-19 15:36:45 +01:00
Robert Schäfer
48467bc697
Fix lint
2018-12-19 15:24:58 +01:00
Robert Schäfer
b17686656b
Test error path of #login procedure
2018-12-19 11:58:03 +01:00
Grzegorz Leoniec
f47b136232
Merge pull request #84 from Human-Connection/update_env_template
...
Fix 'audience must be a string or array'
2018-12-19 11:25:49 +01:00
Robert Schäfer
bf8f2f8877
Remove dead code
2018-12-19 11:11:12 +01:00
Robert Schäfer
d465db5906
Test store/auth#login
2018-12-19 11:11:12 +01:00
Robert Schäfer
01f5cfd481
Run yarn run lint --fix
2018-12-19 11:11:12 +01:00
Robert Schäfer
fec665eaf4
Implement+test auth.isAuthenticated()
2018-12-19 11:11:12 +01:00
Robert Schäfer
9eef9bc81c
Fix 'audience must be a string or array'
...
I ran into this issue after setting up the installation locally.
2018-12-19 10:06:00 +01:00
Grzegorz Leoniec
27e30581c4
Created a menu for the LocaleSwitch
2018-12-19 09:52:44 +01:00
dependabot[bot]
434cd9e2f7
Merge pull request #90 from Human-Connection/dependabot/submodules/Nitro-Backend-618368c
2018-12-19 04:30:23 +00:00
dependabot[bot]
84bdb0ef13
Bump Nitro-Backend from 5f133a2 to 618368c
...
Bumps [Nitro-Backend](https://github.com/Human-Connection/Nitro-Backend ) from `5f133a2` to `618368c`.
- [Release notes](https://github.com/Human-Connection/Nitro-Backend/releases )
- [Commits](5f133a2d48...618368cefe )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-19 04:29:50 +00:00
Grzegorz Leoniec
961f317473
Only import isEmpty
2018-12-18 18:38:02 +01:00
Grzegorz Leoniec
e49534cdf6
Created dropdown component
2018-12-18 18:37:45 +01:00
Grzegorz Leoniec
b1376fb2e2
Merge branch 'master' into locations
2018-12-18 16:28:57 +01:00
Grzegorz Leoniec
618368cefe
Merge pull request #82 from Human-Connection/dependabot/npm_and_yarn/sanitize-html-1.20.0
...
Bump sanitize-html from 1.19.3 to 1.20.0
2018-12-18 16:25:54 +01:00
Grzegorz Leoniec
d804b47736
fixed integration test for defailt english locale
2018-12-18 16:10:45 +01:00
Grzegorz Leoniec
5d8cd73e30
Added very simple locale switch test
2018-12-18 16:07:41 +01:00
Grzegorz Leoniec
8599612499
use locale env var for loading locale files
2018-12-18 15:25:36 +01:00
Grzegorz Leoniec
8f44685ca7
updated translations
2018-12-18 15:25:08 +01:00
Grzegorz Leoniec
4e91d253ae
added polish flag and further optimized flag filesize
2018-12-18 15:24:46 +01:00
Grzegorz Leoniec
fbe885b01d
added missing alt tag
2018-12-18 14:53:00 +01:00
Grzegorz Leoniec
8faf00e660
made lokalise img a link to our project
2018-12-18 14:37:32 +01:00
Grzegorz Leoniec
d077de87d2
added mention of lokalise.co to our readme
2018-12-18 14:36:54 +01:00
Grzegorz Leoniec
fe04d383d3
added initial translations for
2018-12-18 14:32:45 +01:00
Grzegorz Leoniec
13af495a5d
Added spanish, italian and portuguese flags
2018-12-18 13:28:10 +01:00
Grzegorz Leoniec
38154cfd33
improved en flag filesize
2018-12-18 13:27:34 +01:00
Grzegorz Leoniec
2eaebf2bc3
first attempt for basic date localization
2018-12-18 13:01:06 +01:00
Grzegorz Leoniec
c539dd1276
translated profile partially
2018-12-18 12:34:35 +01:00
Grzegorz Leoniec
4bb2d81fb0
translated usermenu
2018-12-18 12:33:11 +01:00
Grzegorz Leoniec
ee6bb7dc2d
Merge remote-tracking branch 'origin/master' into i18n-pure
2018-12-18 12:02:56 +01:00
Grzegorz Leoniec
e0d70cd650
Added note to login appear fix
2018-12-18 11:57:27 +01:00
Grzegorz Leoniec
ada0c34830
speed up login appearance
2018-12-18 11:51:42 +01:00
Grzegorz Leoniec
1173a28af6
Fixed login positioning glitch on first page visit
2018-12-18 11:51:14 +01:00
Grzegorz Leoniec
a9f9cb18f2
Updated hc sign-in graphicy
2018-12-18 11:50:45 +01:00
Grzegorz Leoniec
024dc12048
fixed centering inside ds-space
2018-12-18 11:50:14 +01:00
Grzegorz Leoniec
5f9fb4fa8b
improved LocaleSwitch and login button
2018-12-18 11:33:15 +01:00
Grzegorz Leoniec
8252346d67
translated login page
2018-12-18 11:28:51 +01:00
Grzegorz Leoniec
e16a9ab5dc
ranamed LanguageSwitch to LocaleSwitch
2018-12-18 11:14:18 +01:00
Grzegorz Leoniec
0386fd4bb7
added some optimized locale flags and created a LanguageSwitch component
2018-12-18 11:11:56 +01:00
Grzegorz Leoniec
c37ef40cb1
persist and use locale in cookie
2018-12-18 10:23:36 +01:00
Grzegorz Leoniec
deb62834b1
fixed language switch
2018-12-18 10:20:22 +01:00
Grzegorz Leoniec
b546126583
fixed missing admin menu translation
2018-12-18 10:19:20 +01:00
dependabot[bot]
870170e19a
Merge pull request #89 from Human-Connection/dependabot/submodules/Nitro-Web-679f4bd
2018-12-18 04:43:41 +00:00
dependabot[bot]
8467a9d7d7
Merge pull request #88 from Human-Connection/dependabot/submodules/Nitro-Backend-5f133a2
2018-12-18 04:43:28 +00:00
dependabot[bot]
1e3970c340
Bump Nitro-Web from 7a14979 to 679f4bd
...
Bumps [Nitro-Web](https://github.com/Human-Connection/Nitro-Web ) from `7a14979` to `679f4bd`.
- [Release notes](https://github.com/Human-Connection/Nitro-Web/releases )
- [Commits](7a149793e9...679f4bddbe )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-18 04:43:02 +00:00
dependabot[bot]
120861a294
Bump Nitro-Backend from 1539d9a to 5f133a2
...
Bumps [Nitro-Backend](https://github.com/Human-Connection/Nitro-Backend ) from `1539d9a` to `5f133a2`.
- [Release notes](https://github.com/Human-Connection/Nitro-Backend/releases )
- [Commits](1539d9ac91...5f133a2d48 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-18 04:43:01 +00:00
dependabot[bot]
acd1197ca1
Bump sanitize-html from 1.19.3 to 1.20.0
...
Bumps [sanitize-html](https://github.com/punkave/sanitize-html ) from 1.19.3 to 1.20.0.
- [Release notes](https://github.com/punkave/sanitize-html/releases )
- [Changelog](https://github.com/punkave/sanitize-html/blob/master/CHANGELOG.md )
- [Commits](https://github.com/punkave/sanitize-html/compare/1.19.3...1.20.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-18 04:20:24 +00:00