27 Commits

Author SHA1 Message Date
25589b870c Refactor common/team 2019-09-11 13:34:41 +07:00
eebe26f706 Extract redux, http-types, http-client and test-utils 2019-09-10 17:56:25 +07:00
7434c9fb42 Add UserService (RPC version) 2019-08-28 18:26:26 +07:00
cd5ff9b5da Generate @rondo.dev/common entities 2019-08-28 08:08:00 +07:00
b617069784 Add packages/services/src/services/TeamService2.ts
A few notes:

1) The context higher-order function will be tedious to define - a lot
   more typing than just an extra function argument.
2) As some methods do not require the context function, forgetting to
   call it might introduce bugs (await fn will not error out), but
   compile checks of the return value type might detect this

Possible solution is to go the GRPC way and allow only a single method
type as a parameter so all server-side method types would look like:

  async fn(param: IParam, context: Context) {}

and all client-side method types would look like:

  async fn(param: IParam) {}

However, This would deviate from the JSON-RPC standard which allows
multiple arguments to be passed in an array.

Alternatively, context could be passed as a first argument and then
filtered out:

  type Arguments<T> = T extends (context: Ctx, ...args: infer A) => infer R
    ? A
    : never

In this case, the type of Ctx would need to be known in advance. Will
have to think about this some more.
2019-08-06 19:26:11 +07:00
15d54639ab Move ILogger to @rondo/common 2019-08-04 13:15:33 +07:00
7711a9596c Remove markdown from client-side
Markdown parser takes too much space in the final compressed bundle
2019-04-11 12:20:39 +08:00
17d67900c1 Add safe Markdown parsing to CommentService 2019-04-07 13:44:35 +08:00
89af2f0845 Add StringUtils 2019-04-06 13:58:20 +08:00
831001a9c5 Add createFilterProps 2019-04-03 18:02:36 +08:00
264f5aba60 Add T prefix for all type defs 2019-04-02 16:22:38 +08:00
0a9648c392 Add packages/common/src/types.ts 2019-04-02 14:38:01 +08:00
e50dd99206 Add common/src/without.ts 2019-03-24 10:47:53 +08:00
a628082a73 Add packages/client/src/team 2019-03-20 15:01:15 +05:00
46e56b7ad4 Add routes for managing users in teams 2019-03-19 17:51:16 +05:00
30a8c56119 Fix test for User firstName & lastName
Also fix CSRF token. This was probably broken since csurf middleware was
modified to use cookie instead of session storage to provide support for
single page app (SPA).
2019-03-18 15:53:05 +05:00
61edf10a5b Extract @rondo/comments-common 2019-03-13 13:26:09 +05:00
051208753b Add more tests for Comments 2019-03-10 19:40:06 +05:00
3b295b2e13 Add StoryRoutes.test.ts 2019-01-25 12:28:20 +01:00
2ed3aeac26 Add Routes to application 2019-01-24 17:55:49 +01:00
d0e94808bb Fix CommentRoutes 2019-01-22 13:06:01 +01:00
8865b58747 Add basic Site, Story and TeamService 2019-01-22 12:29:47 +01:00
0c70a3b688 Move ICommentTree to @rondo/common 2019-01-22 11:59:23 +01:00
10e5775bf4 Add initial comments setup 2019-01-21 01:04:58 +01:00
eedd57c527 Add ability to easily create unions of action types 2019-01-19 15:23:51 +01:00
076ec515d3 Add packages/common 2019-01-18 20:33:54 +01:00
de174b8894 Create package common 2019-01-18 20:24:19 +01:00