Commit Graph

369 Commits

Author SHA1 Message Date
appflowy
59d447e27b config doc test with view 2021-09-11 14:26:30 +08:00
appflowy
68df54e9f2 config doc create test 2021-09-10 18:21:35 +08:00
appflowy
464d5396e6 config doc server api 2021-09-10 15:53:24 +08:00
appflowy
2b4a9c2497 config doc reqeust 2021-09-09 19:16:39 +08:00
appflowy
a5a07944dc refactor flowy-document & config server api 2021-09-09 15:43:05 +08:00
appflowy
0a82601eac impl ObservableParser with dart 2021-09-08 18:25:32 +08:00
appflowy
47851b3024 add middleware to handle user unauthorized 2021-09-08 13:50:20 +08:00
appflowy
916c2eee97 config user observable 2021-09-07 23:30:43 +08:00
appflowy
9a724d6881 refactor workspace sql with transaction 2021-09-07 21:31:04 +08:00
appflowy
f18cc717ea refactor extract observable payload 2021-09-07 17:12:03 +08:00
appflowy
024ab85864 add splash screen and config sign up 2021-09-06 16:18:34 +08:00
appflowy
317cbb37b6 config sdk log 2021-09-05 15:56:44 +08:00
appflowy
ee34ee4b5b async update user profile 2021-09-04 17:26:04 +08:00
appflowy
9771066d80 rename user detail 2021-09-04 16:53:58 +08:00
appflowy
f4ef9bc5f8 add FlowyEnv to provide default test env 2021-09-04 16:12:48 +08:00
appflowy
ccb51234c5 support run tests on remote 2021-09-04 15:12:53 +08:00
appflowy
a6346dffae add test script 2021-09-04 09:00:15 +08:00
appflowy
d27e2b9475 fix multithread test issue of database init 2021-09-03 16:43:03 +08:00
appflowy
b66b3b3dc2 fix flutter compile erros 2021-09-03 12:44:48 +08:00
appflowy
3a12d5ae79 test workspace server api 2021-09-02 23:32:37 +08:00
appflowy
9d667b6c96 mock workspace api 2021-09-02 19:57:19 +08:00
appflowy
6b7557314c fix test compile errors 2021-09-02 17:43:10 +08:00
appflowy
cfc10fb38e add auth middleware 2021-09-02 17:19:23 +08:00
appflowy
9b571a08f7 replace user_id with logger_user for auth 2021-09-02 14:47:39 +08:00
appflowy
498a594ad0 config workspace server 2021-09-01 22:50:22 +08:00
appflowy
99ef3c1112 user test with server 2021-09-01 17:57:06 +08:00
appflowy
06a1c96a28 remove warnings 2021-09-01 16:37:46 +08:00
appflowy
77a5e84979 update user profile api 2021-09-01 16:08:32 +08:00
appflowy
2088595f3b replace std::sync::RwLock with parking_lot::RwLock 2021-09-01 11:21:42 +08:00
appflowy
33138382bd rename struct 2021-08-31 23:01:46 +08:00
appflowy
3fb74f51fe get user detail with token 2021-08-31 17:56:38 +08:00
appflowy
92d7d6f60a [backend]: save active user 2021-08-31 17:25:08 +08:00
appflowy
4c93b04f3d explicityly print the internal error from DispatchError 2021-08-31 11:32:51 +08:00
appflowy
18d13a3cb2 add strum crate for event stringtify 2021-08-30 22:44:17 +08:00
appflowy
76e73ea17b [fluuter]: create & choose workspace after login 2021-08-30 16:18:58 +08:00
appflowy
99a4beb781 test passed 2021-08-29 22:00:42 +08:00
appflowy
876c49b904 fix compile issuse 2021-08-28 23:08:12 +08:00
appflowy
138998aebd add open workspace handler 2021-08-27 23:53:53 +08:00
appflowy
dd2cec28e4 create default workspace 2021-08-26 17:58:59 +08:00
appflowy
0734e53f07 read belongings 2021-08-26 10:19:50 +08:00
appflowy
c8664c8a28 view crud & test 2021-08-25 21:33:29 +08:00
appflowy
f520769283 app crud & test 2021-08-25 17:34:20 +08:00
appflowy
7cf563614b workspace crud 2021-08-24 21:38:53 +08:00
appflowy
74800278f9 add workspace/app/view router 2021-08-24 13:23:19 +08:00
appflowy
d6c761917b check params using flowy-user entities 2021-08-23 23:02:42 +08:00
appflowy
f05f0c43a3 test server api: register user and sign in 2021-08-23 22:10:36 +08:00
appflowy
15f1267956 save user password with bcrypt 2021-08-23 18:39:10 +08:00
appflowy
f626f6f638 add request builder 2021-08-23 08:27:29 +08:00
appflowy
8be53b323e check user email 2021-08-22 22:16:03 +08:00
appflowy
66c4daab7a save user info to pg && response to client with protobuf data 2021-08-22 15:32:48 +08:00
appflowy
952ac1cd3c config server docker 2021-08-21 23:19:57 +08:00
appflowy
49e5f38406 consume reqwest status code 2021-08-21 17:18:01 +08:00
appflowy
6229b7f5b9 generic error builder 2021-08-21 13:35:15 +08:00
appflowy
57b4a8e114 replace tryFrom &Bytes to Bytes 2021-08-21 12:34:11 +08:00
appflowy
fed6117d04 replace error type string with dispatch error 2021-08-21 12:11:33 +08:00
appflowy
2ebe922507 replace vec<u8> with Bytes 2021-08-20 22:00:03 +08:00
appflowy
e709e6bbbc config user login 2021-08-20 21:09:21 +08:00
appflowy
bda12233a1 config user mock server, integrate with backend 2021-08-20 14:38:03 +08:00
appflowy
139a21d98a add flowy-net crate shared code by server and client 2021-08-20 11:52:45 +08:00
appflowy
89c5d5468e add user sign up handler 2021-08-19 22:48:10 +08:00
appflowy
eac2e562c3 config log && run server 2021-08-19 14:08:24 +08:00
appflowy
7adb75e85d setup actix-web server 2021-08-19 08:36:30 +08:00
appflowy
48c3436ada generic document data 2021-08-18 16:04:22 +08:00
appflowy
27681fda07 update build script: disable dart isolate on test 2021-08-18 16:02:47 +08:00
appflowy
bfb80d1184 add undo test 2021-08-18 13:12:45 +08:00
appflowy
8272e2e8f6 preserve line format on merge && add merge test 2021-08-18 11:26:52 +08:00
appflowy
4d3eabb761 preserve line format on split 2021-08-17 22:04:55 +08:00
appflowy
7c4b2d74a5 preserve block attribute when insert inside 2021-08-17 14:14:09 +08:00
appflowy
4ab4f744ba add auto exit block test 2021-08-17 11:23:28 +08:00
appflowy
9bc72d3b9e config auto exit block extension 2021-08-16 23:07:40 +08:00
appflowy
0fb808ef4c add auto format link test 2021-08-16 17:05:07 +08:00
appflowy
41eacb7000 add auto format extension 2021-08-16 15:19:41 +08:00
appflowy
f7a6769e89 add images 2021-08-15 23:30:54 +08:00
appflowy
888cc81b13 rename some struct and fix warnings 2021-08-15 22:08:03 +08:00
appflowy
0962d5cd0f temp 2021-08-15 21:36:03 +08:00
appflowy
aef5e54c3f config header attribute & add test 2021-08-15 21:11:48 +08:00
appflowy
c8502151ed fix warnings 2021-08-15 00:05:18 +08:00
appflowy
f994155dfe refactor compose with iterator 2021-08-14 16:44:39 +08:00
appflowy
07268291d1 temp 2021-08-13 18:16:52 +08:00
appflowy
cd751a7b15 get next op length without consume it 2021-08-13 17:22:28 +08:00
appflowy
93cf9712dc cursor: next op with length 2021-08-13 14:13:31 +08:00
appflowy
bc7da582a3 extend cursor with generic metric 2021-08-12 13:57:41 +08:00
appflowy
1ec4655d1b add format and insert extension 2021-08-11 23:34:35 +08:00
appflowy
e4a64fd06a remove attributes type follow 2021-08-11 17:18:10 +08:00
appflowy
039b4917ed add attribute iterator 2021-08-11 11:42:46 +08:00
appflowy
15c3a821ec add extensions 2021-08-11 08:40:58 +08:00
appflowy
1490d5c1b0 fix warnings 2021-08-10 17:08:47 +08:00
appflowy
7b6d1632f4 replace attributes::empty with attributes::custom 2021-08-10 14:24:41 +08:00
appflowy
ca81c990bf fix undo redo bugs, merge last undo if need 2021-08-10 11:23:13 +08:00
appflowy
251b065dd8 add redo/undo test with delete operation 2021-08-10 11:23:13 +08:00
appflowy
efa78dd456 fix redo attribut bugs 2021-08-08 22:29:16 +08:00
appflowy
51ae139f89 fix invert attribute bugs 2021-08-07 09:19:18 +08:00
appflowy
481f158a4a fix tests bugs 2021-08-06 23:06:27 +08:00
appflowy
c667ee0f36 add redo test 2021-08-06 22:25:09 +08:00
appflowy
3d837c51f4 add undo test 2021-08-06 08:40:45 +08:00
appflowy
760c191758 config undo redo for document 2021-08-05 22:52:19 +08:00
appflowy
e2b8738b65 add flowy-ot document 2021-08-05 20:05:40 +08:00
appflowy
97bba6e286 splite attribute and operation into crate 2021-08-05 19:55:28 +08:00
appflowy
ab2ee27768 take the retain attributes when composing (insert, retain) 2021-08-05 15:05:20 +08:00
appflowy
98f8442194 fix invert bugs 2021-08-05 11:30:29 +08:00
appflowy
c960d063fb fix merge attributes bug 2021-08-04 22:33:16 +08:00
appflowy
b322f40ff7 fix: inverted delta not equal to the old delta 2021-08-04 16:59:21 +08:00
appflowy
80a94880fc config ot invert detal 2021-08-04 15:09:04 +08:00
appflowy
958918e0a0 add tests and fix warnings 2021-08-04 07:55:54 +08:00
appflowy
4ebeac13f5 insert text with index 2021-08-03 23:13:20 +08:00
appflowy
3770c648c3 attribute: follow, empty, custom 2021-08-03 16:57:37 +08:00
appflowy
d78c33e194 fix ot bugs 2021-08-02 23:34:06 +08:00
appflowy
0b82336b6c config flowy ot attributes and add attribute test 2021-08-02 18:35:59 +08:00
appflowy
efaee88466 attribute insert test 2021-08-01 16:39:32 +08:00
appflowy
592244f6b9 operation & delta serde 2021-08-01 14:39:30 +08:00
appflowy
eae0c17dda config delta 2021-08-01 10:45:15 +08:00
appflowy
a3ed1b2874 add attributes 2021-07-31 23:22:17 +08:00
appflowy
b449707021 add flowy ot 2021-07-31 20:53:45 +08:00
appflowy
55de7f69a4 rename flowy-editor to flowy-document 2021-07-31 10:50:56 +08:00
appflowy
6a02520f84 refactor app and view can carry belongings 2021-07-29 22:23:10 +08:00
appflowy
c8ba8284ef update view & update app & add some rust test 2021-07-29 17:27:59 +08:00
appflowy
199fbd8873 rename some widget with prefix Flowy 2021-07-28 18:40:08 +08:00
appflowy
dfcb5059bf config hover background & fix bugs 2021-07-28 18:40:08 +08:00
appflowy
0191645d49 fetch user workspaces 2021-07-26 14:35:07 +08:00
appflowy
d30ee5db89 opt: build the rust sdk while running the flutter program 2021-07-25 11:08:59 +08:00
appflowy
c5881daddd rename files 2021-07-25 08:14:38 +08:00
appflowy
b0df64138f config doc bloc 2021-07-24 18:55:13 +08:00
appflowy
0ec02c1ac0 fix: create doc with Delta requirement to fix Document load error 2021-07-24 15:20:18 +08:00
appflowy
64b8f37470 fix: create default workspace after sign in 2021-07-24 15:05:47 +08:00
appflowy
c05b772fe6 config editor for doc 2021-07-24 14:05:49 +08:00
appflowy
3bb12d50bd config view repository 2021-07-23 23:56:59 +08:00
appflowy
bfdc0b6ee9 config view's update and query handle 2021-07-23 22:42:44 +08:00
appflowy
7e5c2cc62c save doc file in user's doc dir 2021-07-23 17:30:33 +08:00
appflowy
af1c35de45 create local file when create view with type doc 2021-07-23 16:45:29 +08:00
appflowy
36e338ddde replace syc::rwlock with tokio::rwlock 2021-07-23 15:00:13 +08:00
appflowy
984e912542 rename moduleData to unit 2021-07-23 14:54:31 +08:00
appflowy
c27f616ddb test read file & save file in flowy-editor 2021-07-23 14:37:18 +08:00
appflowy
4e80b296f8 config doc sql table 2021-07-23 08:14:45 +08:00
appflowy
2bb332fb2c integrate editor into sdk 2021-07-22 22:26:38 +08:00
appflowy
fa061ea832 add flowy-editor crate 2021-07-22 21:43:01 +08:00
appflowy
959545c4b1 add new view type: doc 2021-07-22 17:39:44 +08:00
appflowy
9b9d462f36 combine event and state into bloc & add watch bloc of workspace 2021-07-22 11:23:15 +08:00
appflowy
ebc489738c test stream from rust to flutter 2021-07-21 22:41:44 +08:00
appflowy
a529a3bf43 config workspace and app repo callback 2021-07-21 17:07:49 +08:00
appflowy
892526c2f9 config rust and flutter steam 2021-07-21 17:07:49 +08:00
appflowy
b89958a551 config create app ui 2021-07-20 23:51:08 +08:00
appflowy
7868305a32 create app's views 2021-07-20 23:50:43 +08:00
appflowy
b1f4f0520a create app in workspace 2021-07-20 23:50:43 +08:00
appflowy
b547e94273 config view 2021-07-19 22:44:37 +08:00
appflowy
55fad84590 add create app test & create default workspace when user login at first time 2021-07-19 21:05:49 +08:00
appflowy
139222ddcb rename all sql table struct with Table signature 2021-07-19 17:37:58 +08:00
appflowy
7e9a68f9fd rm rust-lib .idea foler and ignore it 2021-07-19 17:29:18 +08:00
appflowy
ef4c4180e2 fix sqlite database is lock issue by setting busy_timeout and wal mode 2021-07-19 16:15:20 +08:00
appflowy
602018765d generic DispatchFuture and mark async_send with sync trait 2021-07-19 11:32:33 +08:00
appflowy
e1f73f5246 find out how to nested the future into handler 2021-07-18 23:58:06 +08:00
appflowy
a63d5f5eaf support multi user db initialize 2021-07-18 09:03:21 +08:00
appflowy
848975e7f4 enable test with single user id 2021-07-17 10:26:05 +08:00
appflowy
ce6412722f refactor build with generic tester 2021-07-17 08:24:17 +08:00
appflowy
bab373ba35 extract tester as trait 2021-07-16 23:18:12 +08:00
appflowy
4354ff0c59 writing code in airport, continue after onboard 2021-07-15 08:46:16 +08:00
appflowy
e767cc3a01 add test builder 2021-07-14 23:00:58 +08:00
appflowy
182adafee5 add update user test & add app and workspace test 2021-07-14 21:12:52 +08:00
appflowy
687ead563f generic the EventTester with specify error type 2021-07-14 08:23:35 +08:00
appflowy
0e26706176 add create workspace test 2021-07-14 08:07:25 +08:00
appflowy
df1d84d43d workspace and app dto 2021-07-13 23:08:20 +08:00
appflowy
5de69abb36 add workspace and app 2021-07-13 17:21:21 +08:00
appflowy
bf198783e1 [code gen]: generate the protobuf files in corresponding module 2021-07-13 14:28:01 +08:00
appflowy
7d342df1f1 test sign in 2021-07-13 13:14:49 +08:00
appflowy
cabd2384a2 remove files generated by code gen before code gen 2021-07-13 10:11:02 +08:00
appflowy
02f0eef08b construct appflowy home screen 2021-07-12 23:27:58 +08:00
appflowy
222f6c7ba7 support custom error ty of dart event code gen 2021-07-12 13:53:32 +08:00
appflowy
e998c9a532 extract event_err ty info from Flowy_Event macro 2021-07-12 11:41:08 +08:00
appflowy
6f3a03fa07 support event input and output as optional to generate dart code 2021-07-11 22:38:49 +08:00
appflowy
04fc7f1cd0 pass the user test: sign in , sign out, get status 2021-07-11 21:54:55 +08:00
appflowy
3b06cde2d2 [feat]: get user detail & logout 2021-07-11 17:38:03 +08:00
appflowy
a6e32627d4 fix flutter warnings 2021-07-11 15:39:38 +08:00
appflowy
1d74fbdd7b add get user detail event, extract remote serviceinto UserServer 2021-07-11 15:33:19 +08:00
appflowy
2a9d007c5c add kv store crate to save local setting 2021-07-11 00:07:37 +08:00
appflowy
55454c5bec save user info to database after sign up 2021-07-10 16:27:20 +08:00
appflowy
b9d7902acb config user db and user session 2021-07-09 23:31:44 +08:00
appflowy
13e52ae350 enable module data passed in 2021-07-09 17:47:15 +08:00
appflowy
a980843fe6 fix flutter warnings 2021-07-09 16:36:36 +08:00
appflowy
8bf355f956 use diesel as sqlite orm & setup db init schedule 2021-07-09 16:34:50 +08:00
appflowy
ae23a41445 fix some test bugs when dispatcher initialize by multi threads 2021-07-09 14:02:42 +08:00
appflowy
53a041b6cd rename flowy-sys to flowy-dispatch 2021-07-08 22:06:20 +08:00
appflowy
debc8960e0 generate the dart side code from the rust side event 2021-07-08 13:47:11 +08:00
appflowy
2cb26d9e90 test event from dart to rust using protobuf as bytes adaptor 2021-07-07 22:24:26 +08:00
appflowy
569da533a1 config event template 2021-07-07 14:14:37 +08:00
appflowy
f1a229002f enable test target parse response if need 2021-07-06 21:20:53 +08:00
appflowy
3d0200a4a0 add git flutter hook 2021-07-06 19:56:56 +08:00
appflowy
dfc2cbff4f add flowy-test crate 2021-07-06 14:14:55 +08:00
appflowy
2fca817136 export flutter protobuf model through protobuf.dart 2021-07-06 11:04:16 +08:00
appflowy
751d1dd3d3 create flutter protobuf model automatically 2021-07-06 09:08:24 +08:00
appflowy
8f615fd115 add flowy.toml file to control protobuf generation process 2021-07-05 23:17:12 +08:00
appflowy
0b76f82d97 test flowy-user with protobuf serde 2021-07-05 21:23:13 +08:00
appflowy
2d9c7ba48e config protobuf serialize 2021-07-05 16:54:41 +08:00
appflowy
447b5aa128 create crate protobuf mod file automatically 2021-07-05 15:49:03 +08:00
appflowy
f64bd55a33 auto generate crate protobuf file and model 2021-07-05 15:33:39 +08:00
appflowy
def717be59 auto generate proto file from rust struct 2021-07-04 23:31:33 +08:00
appflowy
e5ca614ceb refactor FromBytes and ToBytes trait auto impl in flowy-sys 2021-07-03 23:14:38 +08:00
appflowy
4a82d7157c replace response data with payload 2021-07-03 22:24:02 +08:00
appflowy
a242b9f036 config log 2021-07-03 21:40:13 +08:00
appflowy
77aa18d737 add tracing & test post data to dart 2021-07-03 14:14:10 +08:00
appflowy
1cfcdab124 config sdk initialize 2021-07-02 20:47:52 +08:00
appflowy
7e1cf1222f [refactor]:
1. replace unbounded sender with directory call using static runtime
2. sync + send for handler
2021-07-02 20:45:51 +08:00