003bccc9e8
projects/node: Add custom redirectTo after successful login
2019-03-18 13:13:52 +05:00
8733dc2c30
projects/node: Add Buildfile for packages/client
2019-03-18 12:46:10 +05:00
cf8aefd099
Add custom Redirect component
...
react-router v4 was made before React introduced a more performant
function renderToNodeStream to replace renderToString. All guides for
react-router are made using renderToString method, but I would love to
use the renderToNodeStream instead.
Since we cannot issue a 302 redirect after the page has already been
rendered (because status codes are written first), we can display a
<a> link with a text message. Once the React client-side library
hydrates the DOM Tree, the redirect should happen client side, so no
user action should be required.
This idea was taken from:
https://github.com/ReactTraining/react-router/issues/6191
2019-03-17 19:59:46 +05:00
3fae7adc4a
Add isClientSide helper for server-side rendering
2019-03-17 19:42:26 +05:00
5f039f5f86
Add type to react-router context variable
2019-03-17 19:27:55 +05:00
85d5fd1110
Clear register & login forms after submit
2019-03-17 19:27:39 +05:00
5a34885605
Add withForm HOC, as well as RegisterForm
2019-03-17 15:05:02 +05:00
428630072c
Fix (hopefully) CSRF for SPA
2019-03-17 15:04:15 +05:00
0c7af3538c
Move LoginRoutes from /app to /api
2019-03-17 14:24:09 +05:00
491012a815
Update TypeScript to 3.3.3333
...
TODO: Remove cast this.router to any
2019-03-17 13:43:47 +05:00
c2c72457db
Add LoginForm to comments
2019-03-17 11:20:34 +05:00
49b77403f6
Add sample Nav
2019-03-16 16:57:09 +05:00
7b682c745c
Fix react-router-dom for server-side rendering
2019-03-16 12:31:18 +05:00
10b034e7f0
Add react-router-dom, TODO fix SSR
2019-03-16 12:20:55 +05:00
f5686c7dc9
Use bulma on frontend
2019-03-16 11:04:12 +05:00
20324bdff2
Add watch_ts to Buildfile
2019-03-16 10:13:08 +05:00
360dc83ded
Setup simple SSR, untested
2019-03-14 12:38:34 +05:00
949b008208
Update jest to 24 and set maxConcurrency
2019-03-14 12:08:37 +05:00
aafeaee3e3
Run npm audit fix
2019-03-14 11:54:20 +05:00
df74a7100f
Install latest version of buildfile
2019-03-14 11:51:37 +05:00
6ea422f340
Fix running jest from root directory
2019-03-13 22:19:51 +05:00
2fb77382c9
Log config files read
2019-03-13 22:18:58 +05:00
6c2728228e
Add render to comments-client
2019-03-13 19:07:49 +05:00
3257a6ffb4
Extract createStore into a separate module
2019-03-13 16:46:55 +05:00
ae670c8ea3
Fix compilation errors in @rondo/comments-client
2019-03-13 14:09:14 +05:00
93584575d9
Fix compile error in packages/client
2019-03-13 13:48:17 +05:00
61edf10a5b
Extract @rondo/comments-common
2019-03-13 13:26:09 +05:00
77d9bb9931
Add project template
2019-03-13 12:53:24 +05:00
6d926894db
Fix broken tests in new project
2019-03-13 11:53:42 +05:00
36c61646ed
Fix UserService.test.ts
2019-03-13 11:33:02 +05:00
155c98d000
Extract comments functionality to packages/comments-server
2019-03-13 11:24:08 +05:00
2fc22f05b7
Add comments-server
2019-03-12 22:42:14 +05:00
0a7442a932
Replace node-config with packages/server/config
2019-03-12 17:09:21 +05:00
a5ef6bd981
Add ConfigReader.ts
2019-03-12 17:04:42 +05:00
694d1857b3
Export Bootstrap in packages/server/src/application/index.ts
2019-03-12 14:16:22 +05:00
406858cf2d
Add unique constraint check to StoryService
2019-03-12 11:50:19 +05:00
a4be36d159
Add tests for CommentRoutes
2019-03-12 11:46:41 +05:00
cec34260ce
Add test for PUT /comments/:commentId
2019-03-11 22:11:53 +05:00
051208753b
Add more tests for Comments
2019-03-10 19:40:06 +05:00
234db553b1
Add ability to delete a Site
2019-03-10 16:05:20 +05:00
e18e00a6e5
Use UserPermissions in TeamRoutes
2019-03-10 15:42:58 +05:00
14e90f9559
Add put & delete team route
2019-03-09 22:56:55 +05:00
4cc03fe611
Add test for StoryRoutes
2019-01-27 16:19:35 +01:00
52dc876845
Add ability to specify query params in tests
2019-01-27 16:07:16 +01:00
04b3a7ca90
Add more tests for SiteRoutes
2019-01-27 15:48:47 +01:00
25574903ba
Run process.chdir in jest.setup.js for packages/server
2019-01-27 15:39:41 +01:00
3b295b2e13
Add StoryRoutes.test.ts
2019-01-25 12:28:20 +01:00
2b431bee78
Separate services and routes into features
2019-01-25 10:12:40 +01:00
2ed3aeac26
Add Routes to application
2019-01-24 17:55:49 +01:00
f0943cfe80
Add SiteRoutes, StoryRoutes and TeamRoutes
2019-01-22 13:30:15 +01:00