Commit Graph

697 Commits

Author SHA1 Message Date
shilangyu 34f8f5b155 removed outdated comment 2020-09-18 23:31:54 +02:00
shilangyu ea923b032c added @required decorator 2020-09-18 23:29:38 +02:00
shilangyu 0fb53e3314 added a controller and more robust behavior 2020-09-18 23:24:58 +02:00
krawieck a50501d434 fix up of votes 2020-09-18 22:07:48 +02:00
krawieck 1e59382214 convert `Voting` to use `loggedInAction` hook 2020-09-18 21:56:42 +02:00
krawieck 173f068cf0 change text to be more sane 2020-09-18 21:24:33 +02:00
krawieck 4b4e743413 Move message prop 2020-09-18 17:30:32 +02:00
krawieck 6cc0f70ec1 Make wording more formal 2020-09-18 17:28:09 +02:00
krawieck 10556770de Recude language cringyness 2020-09-18 17:27:01 +02:00
krawieck 620c2a6ee4 add lint ignore comment 2020-09-18 16:16:39 +02:00
krawieck baea08f857 remove unused function 2020-09-18 16:16:08 +02:00
krawieck 059cfd491c use `loggedInAction` hook in Community page 2020-09-18 15:57:45 +02:00
krawieck 65fdb1932f Add lint ignore comment 2020-09-18 15:55:39 +02:00
krawieck f11999c73a import cleanup 2020-09-18 15:55:23 +02:00
krawieck f1b41217ac switch to `loggedInAction` hook 2020-09-18 15:49:36 +02:00
krawieck 72949f4026 Change return type from `String` to `Jwt` 2020-09-18 15:48:37 +02:00
krawieck 3e07c963ac add tooltip 2020-09-18 12:48:32 +02:00
krawieck 7f981fe436 better loading handling 2020-09-18 01:29:17 +02:00
krawieck 700112e20b Add save post button 2020-09-17 22:50:18 +02:00
shilangyu 60dcf07001 convert hasMore into a ref + prevent double fetching 2020-09-17 19:49:42 +02:00
shilangyu 818097f962 created infinite scroll component 2020-09-17 19:43:26 +02:00
krawieck cc229f0bd3 remove useless functions 2020-09-17 18:45:00 +02:00
krawieck 5b014bd2c0 remove useless comment 2020-09-17 18:40:13 +02:00
krawieck 689bb79414 convert import to relatvie 2020-09-17 18:38:03 +02:00
krawieck c8c91c1ada Use token for post request 2020-09-17 18:37:27 +02:00
krawieck c83d92f79d Convert to using `useMemoFuture` 2020-09-17 18:34:03 +02:00
krawieck c9558a5945 Add voting widget for handling voting 2020-09-17 16:46:40 +02:00
krawieck c4329a163f remove obsolete todo 2020-09-17 15:25:47 +02:00
shilangyu a9634380a0 fixed susyemnavigationbarcolor 2020-09-17 00:29:35 +02:00
shilangyu c38dee0e73 an attempt at changing systemnavigationbarcolor 2020-09-17 00:25:19 +02:00
shilangyu a08a7c5b93 fix linting issues 2020-09-17 00:24:49 +02:00
shilangyu 08af8e5997 cleanup some TODOs 2020-09-16 23:29:14 +02:00
shilangyu 0540be3ede activate prefer_final_locals lint rule 2020-09-16 23:22:04 +02:00
shilangyu c6b03c3aef added hook for stores 2020-09-16 23:15:42 +02:00
shilangyu d3eee1e837 replace route pages with cupertino ones 2020-09-16 22:53:04 +02:00
Filip Krawczyk fc52ce91a8
Merge pull request #41 from krawieck/community-sub-button 2020-09-16 22:14:35 +02:00
krawieck 6af2349867 import cleanup 2020-09-16 22:09:11 +02:00
shilangyu a2b5a0a6f2 properly handling null in AccountsStore (removed tokenOrNull) 2020-09-16 21:51:08 +02:00
krawieck a5eaf784d5 convert pop to arrow function 2020-09-16 21:21:47 +02:00
krawieck d63c84d4bb Make comments selectable 2020-09-16 20:09:09 +02:00
Filip Krawczyk ee097ef386
Merge pull request #39 from krawieck/communities-tab 2020-09-16 01:34:10 +02:00
shilangyu 0352586f97 changed border radius 2020-09-16 01:28:40 +02:00
shilangyu 6625fe4da3 created useDelayedLoading 2020-09-16 01:27:49 +02:00
shilangyu 5c871da9ff remove use prefix from hook file 2020-09-16 01:27:01 +02:00
krawieck 689dbff41e add a todo 2020-09-16 01:23:57 +02:00
krawieck b5f803834e remove unnecesary check 2020-09-16 01:11:35 +02:00
krawieck d98f93b0f5 make `isAnonymousFor` work for not added isntances 2020-09-16 01:10:46 +02:00
shilangyu 9d49dedcdb handle fetch failure 2020-09-16 00:40:19 +02:00
shilangyu 65f71eef1a replace full text match with fuzzy match + sort according to best match 2020-09-16 00:26:36 +02:00
krawieck 288aa52a66 Add trailing comma to make formatting less disturbing 2020-09-15 23:52:15 +02:00
krawieck e977305a0e remove useless check. also fix an error 2020-09-15 23:46:55 +02:00
shilangyu 896337bf2f added some TODOs, moved a big handle out of UI, fix typo 2020-09-15 23:44:21 +02:00
krawieck b329a5fe4e Refactor to use `watch` instead of `select` and add check if instance is added 2020-09-15 23:43:18 +02:00
krawieck 6310ed988b fix import mess 2020-09-15 16:20:03 +02:00
krawieck 024a2ce981 remove `Dismissible` and instead use `GestureDetector` for dismissal 2020-09-15 16:03:52 +02:00
krawieck e553089032 refactor to use useMemoized and make subscribe button functional 2020-09-15 15:25:07 +02:00
krawieck 08c80b2568 Add `tokenOrNull` util function 2020-09-15 15:21:06 +02:00
krawieck fb8f6bfaa5 add `useMemoFuture` hook 2020-09-15 15:20:34 +02:00
shilangyu d68e9188ae moved extensions and hooks to separate folders 2020-09-15 15:14:24 +02:00
shilangyu 32cd87eefb hotfix: accounts are no persistently saved 2020-09-15 01:01:52 +02:00
shilangyu b74e3e5491 capitalized filter 2020-09-15 00:23:52 +02:00
shilangyu 93177c0072 make the input smaller 2020-09-15 00:09:02 +02:00
shilangyu feba320262 added `useRef` hook (might be useful later) 2020-09-15 00:01:59 +02:00
shilangyu 6df9060a72 loading animation after 500ms 2020-09-14 23:58:59 +02:00
shilangyu 6dac4ac72c sort communities and toggle instances 2020-09-14 23:54:47 +02:00
krawieck f3176128c5 add `return null` to stfu the linter 2020-09-13 21:15:20 +02:00
krawieck c89ad2833a Make `useEffect` actually work 2020-09-13 18:16:53 +02:00
krawieck 2e23148532 move ui showing/hiding logic to `useEffect` 2020-09-13 16:48:40 +02:00
krawieck 1e0fcf9c67 Fill errorWidget field on every cached network image, cuz otherwise they would break the app 2020-09-13 16:05:17 +02:00
krawieck 4bec0c533a Remove useless inkwell 2020-09-13 15:42:39 +02:00
krawieck 450f3373af remove dead code 2020-09-13 00:31:55 +02:00
Filip Krawczyk 8e9b1e17e4
Merge branch 'master' into media-view 2020-09-12 23:13:52 +02:00
krawieck 49b23265c6 add return 2020-09-12 17:14:08 +02:00
krawieck f02a54a2f8 Cahnge `urlLauncher` to `linkLauncher` 2020-09-12 17:05:52 +02:00
krawieck 383d194f51 Add missing type annotation 2020-09-12 17:03:00 +02:00
krawieck 3c22966ea3 Remove context from push signature cuz it was not needed 2020-09-12 10:25:22 +02:00
krawieck bc3d67bb4e Fix opening instance, and handling unfortunate urls 2020-09-12 10:23:39 +02:00
krawieck 3740341327 Improve consistency 2020-09-12 09:44:23 +02:00
krawieck 84d29bdf47 Remove accidentally committed debug prints 2020-09-12 09:43:21 +02:00
krawieck dedf219279 Add handling of links to comments in posts 2020-09-12 09:40:47 +02:00
krawieck 77d54016f3 Change `urlLanucher` signature to include `instanceUrl` 2020-09-12 09:30:22 +02:00
krawieck 28bbe5b06f Add support for `/u/user` and `/c/community` style of links 2020-09-12 00:46:16 +02:00
krawieck 704daca4c7 Add support for a number of pages
Linking to those pages is now supported:
* `CommunityPage` (https://lemmy.instance/c/community_name)
* `UserPage` (https://lemmy.instance/u/username)
* `FullPostPage` (https://lemmy.instance/)
2020-09-12 00:26:54 +02:00
krawieck 83f4f61952 baseline for handling a lot of stuff 2020-09-11 23:54:28 +02:00
krawieck 676d1a4696 turn function into expression 2020-09-11 21:21:58 +02:00
krawieck ac70400c38 make import relative 2020-09-11 21:21:47 +02:00
krawieck dea677e218 remove dead code 2020-09-11 21:20:43 +02:00
krawieck e735f065e1 make instance banner fullscreenable 2020-09-11 21:18:45 +02:00
krawieck 4cc1bd56b0 Make banner fullscreenable 2020-09-11 20:43:00 +02:00
krawieck 0f8a846e8a Make images in community, instance, markdown fullscreenable 2020-09-11 20:38:50 +02:00
krawieck 1746cc0db5 mark props as required and move onTap to a method 2020-09-11 20:36:19 +02:00
krawieck 6cc894be2c add widget for wrapping images that can be fullscreened 2020-09-11 20:26:06 +02:00
krawieck 4a5bb17afb Make image inside markdown fullscreenable 2020-09-11 19:29:17 +02:00
krawieck 9e27380985 use mediaviewpage in a post 2020-09-11 19:21:59 +02:00
krawieck 689b4c41cc Move media_view to pages, cuz it has a scaffold 2020-09-11 19:20:00 +02:00
krawieck e4e7f1d9a1 add dismiss handling. not perfect and prolly not final 2020-09-11 15:56:22 +02:00
krawieck c7baa125c4 add basic functionality to share button
add bottom sheet that opens when clicking
the share button. 2 options are present.
share url and share file
share url works
share file not yet
2020-09-11 11:24:06 +02:00
krawieck a8607fd661 Simplify hiding the appbar 2020-09-11 11:00:04 +02:00
krawieck 13b1a7ad8b Enter fullscreen when hiding buttons 2020-09-11 10:54:03 +02:00
shilangyu 2238e3303b added lacking iconbuttons 2020-09-10 23:35:14 +02:00
shilangyu f14c8730e2 added filter 2020-09-10 23:19:44 +02:00
krawieck 5fa9e22cd5 Add media view widget 2020-09-10 23:03:50 +02:00
krawieck 36534becf4 don't be engwy liter-senpai 2020-09-10 15:35:06 +02:00
krawieck 446b2ca598 remove modifying system chrome 2020-09-10 15:30:06 +02:00
krawieck 1e43d1a482 Move const structures to their own object to prevent spillage 2020-09-10 15:24:45 +02:00
krawieck 3ae7812ed7 Remove debug print 2020-09-10 15:19:02 +02:00
krawieck 53f5570666 Remove unneeded context passing 2020-09-10 15:18:24 +02:00
krawieck 4ca8e96e97 use `useEffect` instead of just plainly changing systemChrome 2020-09-10 15:16:45 +02:00
krawieck 704c7de2e6 fix comment section 2020-09-10 14:00:57 +02:00
krawieck 8713cbe0e1 Convert import to a relative one 2020-09-10 14:00:39 +02:00
krawieck cec2c7eeb4 Bring back the navigator cuz it needs to be `.fromPostView`
goToPost made it so that the post would get downloaded again when going from pots to fullpost
2020-09-10 13:11:16 +02:00
krawieck b5f581f773 Make amoled dark theme even darker 2020-09-10 01:30:02 +02:00
krawieck 98cc38a9d3 Make sorting popup prettier 2020-09-09 23:56:24 +02:00
krawieck 99fe7de64b Add more menu and info popup 2020-09-09 23:21:21 +02:00
krawieck 71272af69c Adjust brightness so that status bar sets itself to the right color 2020-09-09 22:15:39 +02:00
krawieck 11e6c4881b add more menu 2020-09-09 22:04:50 +02:00
krawieck 1c56ef0d63 No padding if no title 2020-09-09 21:23:58 +02:00
krawieck 0bd0efa320 Add more menu 2020-09-09 21:23:48 +02:00
krawieck ccfbc0188c Little tweaks 2020-09-09 20:52:31 +02:00
shilangyu 0b9c478e34 added vertical trail 2020-09-09 20:47:34 +02:00
shilangyu 09270c43f4 correctly handling missing icons 2020-09-09 19:25:12 +02:00
krawieck bb789b3ac9 Cleanup and a addition of couple comments 2020-09-09 19:23:41 +02:00
shilangyu ac1d22a611 connected following/unfollowing 2020-09-09 19:22:20 +02:00
shilangyu dbce173239 changed name of the subscribe toggle 2020-09-09 18:53:24 +02:00
shilangyu 260854386d added basic render of communities tab 2020-09-09 18:51:48 +02:00
krawieck ebc0854a49 fix an oopsie 2020-09-09 18:35:18 +02:00
krawieck 42ebde872e too much copy-pasting 👀 2020-09-09 17:49:01 +02:00
krawieck 1162fb1cd7 Create universal functions for going to common pages 2020-09-09 17:41:54 +02:00
krawieck c302d7dd5d Add set of extensions for getting instanceUrl 2020-09-09 17:26:17 +02:00
Marcin Wojnarowski 0fa880fdbc
Merge pull request #33 from krawieck/instance-page 2020-09-09 11:38:13 +02:00
krawieck 232cd32cf0 Add image error handling 2020-09-09 11:32:34 +02:00
krawieck d1cb84ba29 Properly handle empty usernames 2020-09-09 11:19:12 +02:00
krawieck 1fe1562ef2 Remove useless comment 2020-09-09 11:18:01 +02:00
krawieck d9d726b350 Remove unnecessary string interpolation 2020-09-09 11:12:43 +02:00
krawieck 3abd5875ee Remove "rencently banned" list. leave a button to it instead 2020-09-09 11:09:38 +02:00
krawieck b59022b001 Fix copy-paste artifacts 2020-09-09 11:05:39 +02:00
krawieck 77d010d15c Add "nerd stuff" section to `...` menu that just spits out random info about this instance 2020-09-09 01:22:07 +02:00
Filip Krawczyk 8bd4218dd3
Merge pull request #31 from krawieck/user-profile-page 2020-09-08 23:23:28 +02:00
krawieck 2e6c1dba4d Last minute tweaks 2020-09-08 23:16:30 +02:00
krawieck 865ec24db6 All hail the linter 2020-09-08 23:10:40 +02:00
krawieck 34cd4ff1c1 Add communities list page 2020-09-08 23:01:40 +02:00
shilangyu 50870ccd08 handling non-existant users 2020-09-08 22:56:45 +02:00
krawieck e3ef1fab2d Add share functionality, triple dot menu with 1 item
the 1 item is "open in browser"
2020-09-08 22:33:11 +02:00
shilangyu 6449929030 handling anonymous users in profile tab 2020-09-08 21:45:17 +02:00
shilangyu 9b3caf4927 added computed member for knowing if there are accounts 2020-09-08 21:44:52 +02:00
shilangyu 62beee4d5c exporting Accounts and Appearance pages 2020-09-08 21:44:27 +02:00
krawieck 9e0011f528 Make one title match all others 2020-09-08 21:20:29 +02:00
krawieck 2c20779387 Make share button actualy do something 2020-09-08 21:18:17 +02:00
shilangyu bd20931235 changed icon to email 2020-09-08 21:17:17 +02:00
shilangyu d9a7ce9773 created user page 2020-09-08 21:08:50 +02:00
shilangyu 90b2deb4a0 added from UserView constructor 2020-09-08 21:08:37 +02:00
krawieck ef1ae9cdd9 Add UsersListPage and button for going to page with all banned users 2020-09-08 20:24:36 +02:00
krawieck d333f15fad Convert all inline function to methods 2020-09-08 19:52:09 +02:00
krawieck 7a140fca6f Add recently banned section and modlog tile 2020-09-08 19:44:04 +02:00
krawieck 8c5def182d Add admin section 2020-09-08 19:14:05 +02:00
krawieck c38fc3f7a0 Add trending communities section 2020-09-08 18:57:48 +02:00
Filip Krawczyk 05287f7ef6
Merge pull request #28 from krawieck/amoled-dark-mode 2020-09-08 16:49:03 +02:00
shilangyu 94daf2acc6 moved out logic from UI 2020-09-08 16:41:46 +02:00
shilangyu 8eb31434e2 used expression functions where possible 2020-09-08 16:38:59 +02:00
shilangyu 81b10cf3e3 removed unnecessary dividers 2020-09-08 16:37:58 +02:00
shilangyu 94ff01bc55 moved cancel buttons before add buttons 2020-09-08 16:35:54 +02:00
shilangyu f0d508c37a added black color to background and canvas 2020-09-08 16:31:04 +02:00
shilangyu ffa484d895 capitalized amoled 2020-09-08 10:24:47 +02:00
shilangyu caff01130b added amoled dark mode 2020-09-08 10:23:08 +02:00
shilangyu c08e07311a you can now add accounts/instances 2020-09-08 01:27:02 +02:00
shilangyu 1dee2e21f5 added adding instances 2020-09-08 00:34:09 +02:00
shilangyu ed6c00172c seperated addition of instances and accounts 2020-09-07 23:43:23 +02:00
krawieck 45e42ac322 Convert functions with immidiate returns to expressions
change () { return X; }
    to () => X
2020-09-07 23:13:05 +02:00
krawieck 4deafcb29f Instead of passing to `_AboutTab` hardcode functions
the hardcoded functions are:
* `goToUser`
* `goToModLog`
* `goToCategories`
2020-09-07 23:09:53 +02:00
krawieck 327cc8a208 Rename `SortPostsPicker` to `PostListOptions` 2020-09-07 22:49:41 +02:00
krawieck 0da1d229dc Change `enum.toString()` to `describeEnum(enum)` 2020-09-07 22:05:50 +02:00
krawieck c2dedb14ac Make 3 constructors for `CommunityPage` instead of 2
instead of single default constructor using name of the
community, there are now 2 where first takes community
name, and second which takes the id
2020-09-07 21:57:43 +02:00
krawieck f00c02b631 Fix misuse of `assert` 2020-09-07 21:47:33 +02:00
krawieck e7380b4914 Move constructors above methods 2020-09-07 21:42:04 +02:00
krawieck c53cd047b7 Add InstancePage
* top section finished
* about section partially done
2020-09-07 21:29:07 +02:00
krawieck 5509e0bc90 Update property 2020-09-07 20:22:31 +02:00
krawieck 29e40887fb Tiny visual tweaks 2020-09-07 16:24:09 +02:00
krawieck 86f203ae55 Change flat buttons to outline buttons 2020-09-07 16:23:53 +02:00
krawieck 9f1d5bc5ac Adjust import formatting 2020-09-07 16:19:28 +02:00
krawieck 48a0851e06 Make buttons more round (and stylish ) 2020-09-06 00:39:38 +02:00
krawieck 51100c297c Bump `lemmy_api_client` 2020-09-06 00:20:08 +02:00
krawieck af3787740c Adjust padding on badges 2020-09-06 00:08:50 +02:00
krawieck e3dc2d1e14 Rename `_AboutSection` to `_AboutTab` 2020-09-06 00:03:52 +02:00
krawieck 3bb347fc02 Add picker for post sorting 2020-09-05 23:55:07 +02:00
krawieck 712ee3c8e2 Make it usable with very tall content
also it can now be paired with `isScrollControlled: true` passed to `showModalBottomSheet`
2020-09-05 23:48:30 +02:00
krawieck ff827e6126 Add category, modlog, list of mods, and refine other stuff 2020-09-05 19:27:11 +02:00
krawieck be49e93b28 Add about section with description and badges 2020-09-05 18:17:09 +02:00
krawieck de625de379 Add option to change Badge border radius 2020-09-05 18:16:16 +02:00
krawieck 88d796def7 Create `CommunityPage` and create everything above tabs 2020-09-05 17:13:23 +02:00
krawieck 05eb748980 Add todo comment 2020-09-04 11:08:11 +02:00
krawieck 8f9bf91056 Turn bio into IIFE 2020-09-04 11:04:10 +02:00
krawieck e788ed03e5 Increase vertical padding between items 2020-09-03 23:35:13 +02:00
krawieck 36cd9c5df0 oops wrong color 2020-09-03 23:26:17 +02:00
krawieck 78208c1306 Make bottom modal usable in dark mode 2020-09-03 23:23:36 +02:00
krawieck ebee170b44 Add padding around bio 2020-09-03 23:22:11 +02:00
krawieck 67b8ad3730 Remove unnecessary piece of code 2020-09-03 23:18:48 +02:00
krawieck 73a079bfca Change section heading 2020-09-03 23:14:26 +02:00
krawieck b704502c7d Convert `Columns` to `ListView`s where appropriate 2020-09-03 22:20:32 +02:00
krawieck b2f8e88375 Increase horizontal padding 2020-09-03 22:14:07 +02:00
krawieck d8234a671a Replace icon shadow with black gradient top to bottom 2020-09-03 22:10:22 +02:00
krawieck df36d0c06c Make username on top of the screen look like other appbar titles 2020-09-03 22:08:32 +02:00
krawieck ee0df56448 make badge color visible on different BGs 2020-09-03 16:18:42 +02:00
krawieck 2ccf2d953e Merge branch 'master' into full-post 2020-09-03 14:41:30 +02:00
krawieck a4ff7b5336 Change `Settings` to `SettingsPage` 2020-09-03 14:33:17 +02:00
krawieck 869bb0eccc remove useless import 2020-09-03 14:00:06 +02:00
krawieck e309c165d3 Change `fullPostFuture` to `fullPostSnap` and simplify error handling 2020-09-03 13:56:37 +02:00
krawieck d49715fb64 Revert "Add `Page` suffix to `Settings`"
This reverts commit b5277064a3.
2020-09-03 13:43:51 +02:00
krawieck b5277064a3 Add `Page` suffix to `Settings` 2020-09-03 13:06:10 +02:00
krawieck 31e51c424f Move burden of fetching to full_post 2020-09-03 13:02:38 +02:00
krawieck 8f6a1a6901 Add explenation why calculate hot rank and where
it was taken from
2020-09-03 12:29:39 +02:00
krawieck 11a2e40dfd Change `log` to `log10` and remove useless code 2020-09-03 12:23:46 +02:00
krawieck 54a4716feb Add ways to mark post
Now post can be marked as:
* stickied
* nsfw
* removed
* deleted
2020-09-03 00:35:08 +02:00
krawieck 7f0f0c11f1 Move InkWell one widget down 2020-09-03 00:18:29 +02:00
krawieck 8e23e418ba Fix bug with not updating 2020-09-03 00:17:42 +02:00
krawieck dec88a1d88 make `CommentTag` private 2020-09-03 00:10:36 +02:00
krawieck 3381e0c375 Adjust color of link preview border to be more universal 2020-09-03 00:07:07 +02:00
krawieck e44b6cf10f Add comment actions 2020-09-03 00:01:04 +02:00
krawieck b13508c011 Add util for getting text color based on background 2020-09-02 23:09:33 +02:00
krawieck 4bc6164b64 Restructure logic, comments are now sorted upon opening 2020-09-02 23:09:00 +02:00
krawieck 47116b1cb1 Add link opening to post 2020-09-02 23:05:34 +02:00
shilangyu c16f0f412c wrap modal in safearea 2020-09-02 16:54:29 +02:00
shilangyu dda7571c19 save tokens and users in AccountsStore 2020-09-02 15:16:33 +02:00
krawieck fcf622dcfe Add comment sorting with temporary dropdown 2020-09-02 13:49:07 +02:00
krawieck 9e85fd5a2d Add util extension for calculating hot rank of comments 2020-09-02 13:47:45 +02:00
shilangyu 624f0e995a persistently save default accounts 2020-09-02 10:00:08 +02:00
shilangyu 706bf94502 accounts screen in settings:
- you can see your accounts
- you can choose the default one for the instance with a long press
2020-09-02 01:35:30 +02:00
krawieck 82f2084b60 Add FullPost and implement a fair bit of it 2020-09-02 00:05:42 +02:00
shilangyu da107a7ad7 remove accentColor config 2020-09-01 22:05:33 +02:00
shilangyu 596e8f4e53 moved badge to seperate widget 2020-09-01 21:59:00 +02:00
shilangyu 708a680ddc showing modal for choosing default account 2020-09-01 21:36:58 +02:00
krawieck f44c0f60a5 change some expressions to IIFEs 2020-09-01 14:17:56 +02:00
shilangyu 2b3fc87f88 created accounts store 2020-09-01 13:22:37 +02:00
shilangyu 5808ab17a3 restructure user profile to work in both contexts:
- profile tab
- some user profile
2020-09-01 11:55:22 +02:00
shilangyu 0824e67b3f better 'no bio' text 2020-08-31 23:05:04 +02:00
shilangyu 4539a5c4ca extracting instance url 2020-08-31 22:49:23 +02:00
shilangyu 45d164e23e reverted main.dart 2020-08-31 22:30:11 +02:00
Marcin Wojnarowski 1c9a0e5fa8
Merge branch 'master' into user-profile-tab 2020-08-31 21:52:52 +02:00
krawieck d902c3d2aa Rename `Comments` to `CommentSection` 2020-08-31 21:37:24 +02:00
krawieck a6486f6e51 Convert functions with single return statements to `=>` 2020-08-31 21:35:54 +02:00
krawieck 19047de57d Remove useless code 2020-08-31 21:32:34 +02:00
shilangyu 3be7d518ea clean up some TODOs 2020-08-31 21:04:17 +02:00
krawieck 3c47eb0886 move ui building functions into the build method 2020-08-31 21:03:50 +02:00
krawieck fdcb29fb1c oops, moved the wrong thing 2020-08-31 20:10:05 +02:00
krawieck 8c7e7c283b reformat expression to be more sane 2020-08-31 20:02:51 +02:00
krawieck e22a3094e4 Convert string that include `'` in them to double quouted strings 2020-08-31 19:58:09 +02:00
krawieck eee965fba1 * move comment out of `widgets/`
* remove `Widget` suffix from widgets
* change `list.length != 0` to `list.isEmpty`
* convert MarkdownText into stateless widget
2020-08-31 19:56:48 +02:00
krawieck e1608d9f32 Change `@TODO` to `TODO:` 2020-08-31 19:04:23 +02:00
krawieck 16d490c0ad Add missing import 2020-08-31 18:26:57 +02:00
shilangyu 8c52ec1109 making sure stores are initialiazed before rendering 2020-08-31 17:52:16 +02:00
shilangyu 9133ef94cd fix lint errors 2020-08-31 16:19:44 +02:00
shilangyu f4bd1eb65b added settings screen 2020-08-31 16:17:39 +02:00
shilangyu a0850836dd added utility functions 2020-08-31 15:43:09 +02:00
krawieck 6704fed4e5 Add comment pfp, op, banned 2020-08-31 15:29:02 +02:00
krawieck 663d4bb913 Fix username displaying for comments 2020-08-31 13:39:27 +02:00
krawieck cf3862d2e2 Add markdown rendering to comments 2020-08-31 12:23:32 +02:00
krawieck 2ca3565bfc Moved displaying markdown to separate widget 2020-08-31 12:22:29 +02:00
shilangyu 8b738bf5e5 moved user profile to a widget 2020-08-31 12:05:45 +02:00
shilangyu dd06b79efa implemented rest of the main screen mockup 2020-08-31 03:54:24 +02:00
krawieck 3bb56a71dd Add 2 widgets for displaying comments #16 2020-08-31 01:47:08 +02:00
krawieck 712ea2994d Add CommentTree #16
`CommentTree` transforms `List` of `CommentView`s into a tree-like structure
2020-08-31 01:46:47 +02:00
shilangyu b7b5661f45 basic profile tab 2020-08-31 01:04:08 +02:00
shilangyu 80dd04ea1b created mobx ConfigStore 2020-08-30 22:43:16 +02:00
krawieck fcafde2d0f Change if with 2 `Text`s to 1 `Text` with ternary inside 2020-08-30 19:31:55 +02:00
krawieck 91aada67e9 Remove '@' from '@TODO:' 2020-08-30 19:29:12 +02:00
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