Commit Graph

933 Commits

Author SHA1 Message Date
krawieck e673eac152 Add handlink links in markdown and general link launcher 2020-08-30 16:49:59 +02:00
krawieck 8c68c17308 Add markdown support for post 2020-08-29 22:50:37 +02:00
krawieck 015a29435b Restruture `post.dart` to be more sane 2020-08-29 21:01:01 +02:00
krawieck 9fabb75676 fix overflow for number of comments 2020-08-29 20:31:53 +02:00
krawieck 697bbf4e9c Bump `lemmy_api_client` and revise imports 2020-08-28 13:47:52 +02:00
krawieck e107fb6cc6 Rename `components` to `widgets` 2020-08-28 13:45:03 +02:00
krawieck 10cc96d23a Move actions to separate functions.
still not implemented
2020-08-28 13:30:42 +02:00
krawieck 2cba79e689 Add basic post component 2020-08-27 23:27:27 +02:00
shilangyu b19e7d50fa fix lints 2020-08-21 00:37:51 +00:00
shilangyu 9e1333e462 removed migrated code (now at krawieck/lemmy_api_client) 2020-08-21 00:22:24 +00:00
krawieck 8720272ee5 Implement 3 endpoints and add 1 model
endpoints:
* createPostLike
* getSite
* getFollowedCommunities

model:
* FullSiteView
2020-08-18 23:38:57 +02:00
krawieck eeac5af15e Add 3 endpoints related to communities and 1 model
Endpoints:
* getCommunity
* listCommunities
* followCommunity

Model:
* FullCommunityView
2020-08-18 22:22:56 +02:00
krawieck f3329b82ff Update `register` method to be compliant with the docs 2020-08-14 16:43:42 +02:00
krawieck be71efd3c1 Implement `getPost` 2020-08-14 15:47:23 +02:00
krawieck e464a0b922 Implement `getReplies` 2020-08-14 14:41:35 +02:00
krawieck 177b6ea712 Add a bunch of `assert`s 2020-08-14 14:13:44 +02:00
krawieck 705b90148e Implement `getUserDetails` 2020-08-14 13:49:20 +02:00
krawieck 05caba277e Implement `login` (`POST /user/login`) 2020-08-14 00:34:09 +02:00
krawieck c90a3bdd73 Make second argument in `get` optional 2020-08-14 00:10:46 +02:00
krawieck cbd6a208d3 Implement `listCategories` (`GET /categories`) 2020-08-13 23:56:00 +02:00
krawieck 5e15ddd7bd Implement `search` method (`GET /search`) 2020-08-13 23:32:41 +02:00
krawieck 92d684cbfd Change strings to single quotes 2020-08-13 20:25:48 +02:00
shilangyu 9c9de8c41d changed abstract class to mixin 2020-08-13 16:18:33 +02:00
shilangyu 506b007eea implemented get/post helpers 2020-08-13 15:39:53 +02:00
shilangyu 141b929661 export enums as well 2020-08-12 21:00:31 +02:00
krawieck b433bf0971 Add more `assert`s for checking required props 2020-08-12 11:55:26 +02:00
krawieck 1307b5e5b1 Add `assert`s for checking required props 2020-08-12 11:53:17 +02:00
krawieck f68467708a yet another imports cleanup 2020-08-11 19:54:38 +02:00
krawieck be3bd569f4 Replace `type_` with `type` 2020-08-11 19:54:12 +02:00
krawieck 4a096602b5 Fix up imports 2020-08-11 19:32:13 +02:00
krawieck 771a5f28ff implement a bunch of enums 2020-08-11 19:29:56 +02:00
krawieck 5971a947d6 Add `SearchType` and implement it 2020-08-11 19:04:03 +02:00
krawieck da988f74bd Change `PostType` to `PostListingType` 2020-08-11 19:03:24 +02:00
krawieck 6436244b66 Add comments to properties based on web docs 2020-08-11 02:43:03 +02:00
krawieck bfae0ef57d Implement `getPosts` 2020-08-11 02:42:23 +02:00
krawieck 13522248d4 Add exports 2020-08-11 00:10:17 +02:00
krawieck 9deb17edc7 Add `PostType` and `SortType` 2020-08-10 23:07:13 +02:00
krawieck f4206be302 Make imports safer 2020-08-10 19:49:19 +02:00
krawieck b5a9d72fb6 Add some more return types 2020-08-10 19:48:26 +02:00
krawieck c40c72eeac Add even MORE return types! 2020-08-10 19:47:44 +02:00
krawieck c6361291aa Make import safer 2020-08-10 19:39:53 +02:00
krawieck 06230c2248 Autoformat 2020-08-10 19:25:13 +02:00
krawieck 5902cd8f6f Add codegen files 2020-08-10 19:23:21 +02:00
krawieck 29dd4dcc35 Add missing import 2020-08-10 19:23:03 +02:00
shilangyu 51cc332f7c Added FullPost, Search, and UserDetails #1 2020-08-10 14:47:05 +00:00
shilangyu e0a149f688 added Category 2020-08-10 14:07:00 +00:00
shilangyu cf59f9f2ae added UserMention and Site views 2020-08-10 12:39:22 +00:00
shilangyu 2af364abeb fixed import 2020-08-10 12:36:30 +00:00
shilangyu 101c7c4afc made captcha json-serializable 2020-08-10 12:22:28 +00:00
shilangyu 3aa92f695d added CommunityModerator and CommunityFollower views 2020-08-10 11:52:42 +00:00
krawieck f0bfdba132 Updated placement of `Captcha` in filesystem 2020-08-10 00:42:31 +02:00
krawieck f85b91bb49 removed unnecesairy duplication 2020-08-10 00:34:50 +02:00
krawieck 413b4bef30 Add `ReplyView` 2020-08-10 00:01:10 +02:00
krawieck ca9759db47 Add more return types 2020-08-09 23:32:42 +02:00
krawieck 8ab016076a Add `Captcha` class and return type 2020-08-09 23:24:06 +02:00
krawieck 9c101868a3 stfu mr linter 2020-08-09 23:20:21 +02:00
krawieck 039fd6e6a0 Autoformat 2020-08-09 23:03:44 +02:00
krawieck 33a00e0628 Update codegen files 2020-08-09 21:17:22 +02:00
krawieck 047274f722 Add codegen files 2020-08-09 21:15:26 +02:00
krawieck 8dee300ffa Add constructor (+ autoformat) 2020-08-09 21:15:05 +02:00
shilangyu 4de70c8c24 added PrivateMessage and Reply views 2020-08-09 18:14:06 +00:00
shilangyu d3744476de Merge branch 'http-client' of ssh://github.com/krawieck/lemmur into http-client 2020-08-09 13:19:18 +00:00
shilangyu 63fed075ed Added community and user views 2020-08-09 13:19:13 +00:00
krawieck 1e84b6057b removed `Date.tryParse` cuz it's not what we thought it was 2020-08-09 13:17:32 +02:00
krawieck 8f0a2b14b7 Update return types 2020-08-09 00:27:13 +02:00
Filip Krawczyk 8ff51b4aec
Merge pull request #8 from krawieck/mapping_objects 2020-08-08 23:54:24 +02:00
krawieck 8cc0591dfa Add codegen files 2020-08-08 23:51:17 +02:00
shilangyu f4f6ddd8fe added missing commas and removed codegen files 2020-08-08 23:46:27 +00:00
shilangyu b829b30593 models cleanup 2020-08-08 23:24:25 +00:00
krawieck 1515c6f397 Add Vote enum for upvotes 2020-08-08 23:24:34 +02:00
krawieck 091070726e Change methods to be top level with names
based on OP codes. classes changed to
extensions of `V1` class
2020-08-06 22:06:53 +02:00
krawieck 4ad3b8d6fc Remove unneeded import and convert local import to relative 2020-08-06 12:11:41 +02:00
Mikwk 43ab1990d7 Implemented ParseDateFromJson method. 2020-08-06 12:03:31 +02:00
krawieck 2a89add283 Create `CommentEndpoint`
seems like all important endpoints are created, now we can get to implementing them
2020-08-05 23:59:10 +02:00
krawieck 19c10d27f9 Move endponts to separate files to reduce clutter
Move `v1` endpoint to it's own directory, and `PostEndpoint`and `UserEndpoint` to their own files
2020-08-05 23:21:26 +02:00
krawieck 8c0f211cf2 `PostEndpoint` created and with most methods created
methods created for:
* `POST /post`
* `GET  /post`
* `GET  /post/list`
* `POST /post/like`
* `PUT  /post`
* `POST /post/delete`
* `POST /post/remove`
* `POST /post/save`

I'm not implementing admin stuff cuz we don't need it for now,
and we keep track of what is yet to be added in #6

also we might need to move a bunch of stuff to separate files cuz it's getting cluttered in here
2020-08-05 23:06:54 +02:00
Mikwk a7a0e4bf12 Added CommentView class along with autogenerated Json (de)serialization.
Cleaned code in post.dart for it to be more readable.
Moved ParseDateFromJson static method from PostView to UtilityClass in utility.dart, because it's also used by CommentView class.
2020-08-05 17:33:59 +02:00
Mikwk cf09486479 TODO:
Add methods and fields for comments associated with post.
2020-08-05 17:03:21 +02:00
Mikwk b5e8620931 Implemented PostView class.
Added auto generated JSON (de)serialization of PostView class by json_serializable package.
Added required packages and dependencies in pubsec.yalm:
 - json_annotation: ^3.0.1,
 - json_serializable: ^3.3.0,
 - build_runner: ^1.10.0.
TODO:
Implement ParseDateFromJson static method in PostView class.
2020-08-05 13:17:52 +02:00
krawieck a54325649f removed unneeded `jwt` variable from `LemmyAPI` 2020-08-04 17:49:46 +02:00
krawieck f75bc05a01 Add `search` and `listCategories` #6
Add endpoints for:
* `GET /categories`
* `POST /search`
2020-08-04 17:27:44 +02:00
krawieck 1c8394549b Add barebones of user endpoint 2020-08-04 16:41:07 +02:00
krawieck 58c70d715a first commit 2020-08-02 13:34:42 +02:00