Commit Graph

933 Commits

Author SHA1 Message Date
shilangyu 85f9d3fd0e Add cross platform file picker 2022-04-30 16:28:50 +02:00
shilangyu 8838efc073 Add create post page 2022-04-30 16:28:50 +02:00
shilangyu f6191936e6 Add community picker 2022-04-30 16:28:50 +02:00
shilangyu c320585810 Add searching to CreatePostStore 2022-04-30 16:28:50 +02:00
shilangyu a821681903 Initial refactor 2022-04-30 16:28:50 +02:00
shilangyu 5068eb900f Update link launcher 2022-04-30 16:24:29 +02:00
shilangyu f5b02a369b Bump deps 2022-04-30 16:24:29 +02:00
Marcin Wojnarowski 11d63e0522
Upgrade to flutter 2.10 (#325) 2022-04-30 15:44:03 +02:00
Marcin Wojnarowski 88608ea9e1
Migrate instance page to mobx + l10 strings (#316) 2022-01-20 11:50:24 +01:00
Filip Krawczyk 682e1af2c0
Lemmy v0.15.0 changes (#314) 2022-01-14 14:25:31 +01:00
Marcin Wojnarowski 8712691926
Upgrade to flutter 2.8.1 (#308) 2022-01-06 16:05:46 +01:00
Marcin Wojnarowski 6bb5ca4473
Change repo links (#306) 2022-01-06 15:28:42 +01:00
Marcin Wojnarowski d4d4a5b999
Migrate modlog to mobx (#303)
* Migrate modlog to mobx

* Remove column

* Add MobxProvider and DisposableStore

* Add modlog store tests
2021-12-04 18:03:54 +01:00
Marcin Wojnarowski d87a8a83c3
Localize rest of intl (#301)
* Localize rest of intl

* Add changelog entry
2021-11-25 18:49:43 +01:00
Filip Krawczyk 95d8ee7fa7
refactor community page to use mobx (#299) 2021-11-25 18:12:36 +01:00
Marcin Wojnarowski 1e6e8a7774
L10n/timeago (#298)
* Change arb dir

* Localize timeago

* Document changes

* Add missing language names

* Fix language tags

* Fix translations
2021-11-16 17:06:07 +01:00
Marcin Wojnarowski e881dde992
Rename and remove stuff, add PullToRefresh (#293)
* Rename files

* Add PullToRefresh

* Remove l10n gen from repo

* Format l10n files in CI
2021-11-12 17:01:17 +01:00
Filip Krawczyk 9d004cefd7 Provider: nah, pass as arg: yah 2021-11-06 18:49:45 +01:00
Filip Krawczyk f51432d76e formatting 2021-11-06 17:19:39 +01:00
Filip Krawczyk 716d757d62 changes addressing CR
* remove outdated TODOs
* remove unneeded Expanded and Rows in 2 places
2021-11-06 17:15:07 +01:00
Filip Krawczyk 43bf944924
Update lib/pages/settings/blocks/blocks_store.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
2021-11-05 23:54:10 +01:00
Filip Krawczyk a8d91f7ba8
Update lib/pages/settings/blocks/blocks_store.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
2021-11-05 23:54:00 +01:00
Filip Krawczyk 8cf09f2fb5
Merge branch 'master' into blocking-part2 2021-11-05 23:33:34 +01:00
Marcin Wojnarowski 6e5470c05c
Stop using l10n synthetic package (#289)
* Stop using l10n synthetic package

* Remove nullability

* Keep l10n gen in repo
2021-11-05 21:37:27 +01:00
Filip Krawczyk 0adc26a5fb add search & block 2021-11-05 16:00:03 +01:00
Filip Krawczyk 59f0a0233c Move changelog to new page 2021-11-04 22:47:26 +01:00
Marcin Wojnarowski e0aa489478
Fix/overflows (#278)
* Fix overflow issues

* Add changelog entry

* Fix uneven paddings

* Fix avatar padding

* Better cover the background image

* Add changelog entry
2021-11-03 22:50:03 +01:00
Filip Krawczyk 84b60c83f7
Merge pull request #277 from krawieck/feature/new-share-icon 2021-11-03 09:48:16 +01:00
Marcin Wojnarowski 2b72fcce10
Fix minor post errors (#273)
* Use nested to decrease indentation

* Fix post tap area

* Fix overflow errors

* Add changelog entry
2021-11-03 06:21:00 +01:00
Filip Krawczyk 2c792a4a2c use adaptive share icon in in every instance 2021-11-03 00:36:09 +01:00
Marcin Wojnarowski 18b39be0a9
Bump deps (#275)
* Bump deps

* Bring back hosted photo_view

* Fix MarkdownBody old state

* Add changelog entry

* Add missing 'a'
2021-11-02 19:02:55 +01:00
Marcin Wojnarowski 760565384f
Migrate ConfigStore to mobx (#270)
* Migrate ConfigStore to mobx

* Add tests

* Remove provider imports

* Mock shared_preferences

* Reorganize saving in ConfigStore
2021-10-31 12:52:58 +01:00
Filip Krawczyk 8f34591111
Merge pull request #272 from krawieck/feature/report 2021-10-25 20:53:21 +02:00
Filip Krawczyk 725807c75b CR fixes 2021-10-25 19:52:29 +02:00
Filip Krawczyk 8703246c65 upgrade dependency & build runner build 2021-10-24 23:11:44 +02:00
Marcin Wojnarowski 36c5c59813
Add active users chips (#271) 2021-10-24 23:00:42 +02:00
Filip Krawczyk ae235069ba update dialog border radius to fit the whole app 2021-10-24 22:48:04 +02:00
Filip Krawczyk 5dbb621582 add reporting functionality 2021-10-24 22:36:41 +02:00
Filip Krawczyk 08cd26867b
Use `CircularProgressIndicator.adaptive` where possible (#269) 2021-10-24 16:28:25 +02:00
Filip Krawczyk 316964e990 align link preview text to the left 2021-10-24 14:37:55 +02:00
Filip Krawczyk 709cb3c409 yet another round of changes addressing CR
* reorder sections in stores
* List -> Iterable
* .postView = X -> .updatePostView(X)
* Container -> DecoratedBox
* remove useless computed: `wasVoted`
2021-10-24 14:19:12 +02:00
Filip Krawczyk b6d03960e2 Merge branch 'master' into feature/blocking-v2 2021-10-21 20:51:35 +02:00
Filip Krawczyk 0b72aab64a transition to another image widget 2021-10-21 14:40:28 +02:00
Filip Krawczyk f9d657cac6 silly stuff. constructor simplification. remove mistake 2021-10-19 23:42:28 +02:00
Filip Krawczyk fb78c5654b merge wrapper and proper FullPost since the separation is not needed anymore 2021-10-19 23:28:28 +02:00
Filip Krawczyk 43f2a73ad8 make some flex layouts not hacky 2021-10-19 23:27:50 +02:00
Filip Krawczyk 3efbc25cca update BlocksPage to have private constructor
it's because all that should be used from the outside is the `route` method
2021-10-19 21:36:54 +02:00
Filip Krawczyk 727b28de26 rework variables to reduce unwrapping 2021-10-19 19:39:43 +02:00
Filip Krawczyk b58f91bc84 make FullPostPage constructor private 2021-10-19 19:29:26 +02:00
Filip Krawczyk cff87e0682 Batch of changes addressing CR comments
post_info_section.dart
* Hook -> Stateless
* remove mysterious Rows & Columns

post_body.dart
* extract into variable instead of !-ing

post_media.dart
* extract url into variable, give reason for unwrapping
* make spinner adaptive

post_link_preview.dart
* extract url into a variable
* use ?? operator

full_post.dart
* fix bug from previous commit :^)

post_more_menu.dart
* remove useless column

post_title.dart
* rework variables to make it more safe

save_post_button.dart
* remove TODO comment that has been resolved

post_voting.dart
* spinner -> adaprive

post_voting.dart
* spinner -> adaptive
* stop manually adding myVote
2021-10-19 01:30:30 +02:00
Filip Krawczyk a884f07860 batch of changes adressing CR
comment_section.dart
* _SortSelection: text -> term
* assign fullPostView at the beggining of builder for later ease of use

full_post.dart
* use Providers in route methods since it makes the most sense
* merge _FPP & FPP to one widget
* assign postView earlier for ease of use
* Provider -> Provider.value

goto.dart
* switch goToPost to use Navigator with route instead of goTo

post_actions.dart
* padding fromLTRB -> symmetric

post_more_menu.dart
* turn showPostMoreMenu into a static method
* Provider -> Provider.value
* Hook -> Stateless
* goTo -> Navigator.push
2021-10-18 01:11:04 +02:00
Filip Krawczyk d223d71c59
Update lib/widgets/post/post_actions.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
2021-10-18 01:02:35 +02:00
krawieck ec8d9f84a3 remove useless state 2021-10-03 12:01:34 +02:00
krawieck 56611db175 revise blocking flow 2021-10-02 23:15:15 +02:00
krawieck e38100f705 extract tiles to separate file 2021-10-02 20:05:42 +02:00
krawieck d60217af88 errorTerm translate + hook -> normal widget 2021-10-02 20:01:33 +02:00
krawieck aa448adeb7 Code review changes
* remove useless comment from post_status.dart
* move fixed in changelog into a proper section
* move refresh into a provider create in UserBlocksWrapper
* use errorTerm in UserBlocks instead of hardcoded message
* add missing trailing comma
* add route method BlocksPage
* remove useless lint ignore
* use originPreferredName instead of referredName
* make UserBlocksWrapper private
* revise AsyncStoreListener
2021-10-02 18:48:00 +02:00
krawieck cb76875cee reorganize files 2021-10-02 17:42:28 +02:00
krawieck c5ef32a78d remove select_community.dart 2021-10-02 00:03:05 +02:00
krawieck 9ba800a435 Merge branch 'master' into feature/blocking-v2 2021-10-01 23:54:57 +02:00
krawieck 09ba4f32fc move files around so that it makes more sense 2021-10-01 23:39:43 +02:00
krawieck d58ecc878e comment out blocking buttons for later PR 2021-10-01 23:14:19 +02:00
krawieck bd8da4c2f7 change sort pairs to be more type safe 2021-10-01 23:13:36 +02:00
krawieck 46a2f48e3a transition comment section to use mobx 2021-10-01 23:03:42 +02:00
krawieck cca679d6ef make FullPostPage a bit easier to expand in the future 2021-10-01 00:48:34 +02:00
Marcin Wojnarowski c7f037de0f
Feature/routing refactor (#258)
* Use MaterialPageRoute

* Use T.route
2021-09-30 12:55:23 +02:00
Marcin Wojnarowski 9f9cc52cf5
Feature/logging (#251)
* Add logging package

* Refresh linux files

* Android flavor setup

* Setup ios flavors

* Setup release CI

* Refactor CI

* Remove debug prints

* Create prod signingConfig only if exists

* Store recent logs

* Remove flavoring on desktop

* Fix android signing

* Fix release paths (except windows)

* Quote secret var

* debug

* Fix env vars

* Add log console

* Add logs section in bug issue template

* Add time to logs

* Add changelog entry

* Rename log console

* Remove key

* Change way of routing

* Add title
2021-09-23 19:25:03 +02:00
krawieck ee57a0de07 fix bug where loading fullpostview wouldn't show what user did 2021-09-15 00:23:55 +02:00
krawieck 88466dfd73 add community blocking + minor fixes
minor fixes:
* make link preview show up in proper times
* ListTile for (un)blocking communities had a thing switched around
2021-09-14 23:48:04 +02:00
krawieck 5ca4748572 add block page to settings 2021-09-14 23:45:26 +02:00
Marcin Wojnarowski 8c69964657
Regenerate gen files (#254) 2021-09-13 23:37:08 +02:00
Marcin Wojnarowski e2f9c43675
Bump deps (#253)
* Migrate first chunk

* Upgrade rest of the deps

* Remove unawaited

* Enabled new lints

* Remove old TODO

* Update podlock
2021-09-12 22:47:05 +02:00
Marcin Wojnarowski 992a62b33c
Flutter 2.5 (#252)
* Stop using accentColor

* Update bootstrap files

* Stop using deprecated members

* Add temp fork use
2021-09-12 22:37:07 +02:00
krawieck 892c09c965 make asyncstorelistener better,
* add prop to asyncstorelistener: successMessageBuilder
* more menu reworkings
2021-09-11 16:26:10 +02:00
krawieck 399c0bdb83 small fixes & tweaks
* commenting uses mobx instead of hooks
* SavePostButton works with fullPost
* `is AsyncStateX` -> .errorTerm & .isLoading
* save post button better looking spinner
2021-09-11 01:27:21 +02:00
krawieck a78edcd54b stuff 2021-09-11 01:04:33 +02:00
krawieck 2e8ca0e858 rework post and full_post to use mobx 2021-09-11 01:04:15 +02:00
krawieck 2e3ccac233 add blocking to comments 2021-09-09 14:46:01 +02:00
Marcin Wojnarowski cb47bc5f72
Rewrite comment to mobx (#248)
* Add initial rewrite

* Progress

* Create AsyncStore

* Fix typo

* Remove outdated lint ignores

* Simplify comment layout

* Reorganize pubspec deps

* Small fixes

* Move all comment state to store

* Document async store

* Move marking as read to AsyncStore

* Add network_error l10n todo

* Rename comment_more_menu

* Hide popup after actions

* Observe changes in consumer
2021-09-08 14:38:26 +02:00
shilangyu ff44bbf7f9 Add modlog entries for community transfers 2021-09-04 15:18:38 +02:00
shilangyu 2ab3d7d657 Change localUser path 2021-08-26 00:27:50 +02:00
shilangyu f3cc7f3f99 Get follows from GetSite 2021-08-26 00:27:24 +02:00
shilangyu ab1b3778ff Fix memo future signature 2021-08-26 00:26:17 +02:00
krawieck 1e1de00539 Merge branch 'cake-day' of https://github.com/krawieck/lemmur into cake-day 2021-07-08 13:58:51 +02:00
krawieck 45ea7a0b54 add `.toUtc()` 2021-07-08 13:57:48 +02:00
shilangyu 8a82c986bb Format code 2021-07-08 12:19:26 +02:00
krawieck 5cb542609e add cake day extension and implement it 2021-07-08 11:39:32 +02:00
Filip Krawczyk 7e1cc387dd
Merge pull request #226 from krawieck/lemmy-0.11.0 2021-04-29 11:43:46 +02:00
shilangyu c6464f5335 Rename to preferred name 2021-04-29 11:38:28 +02:00
shilangyu 79d77f60df Add browser theme detection 2021-04-28 14:39:31 +02:00
shilangyu 2b15a5c4f8 Update translations 2021-04-27 22:42:52 +02:00
shilangyu 35ea0587b5 Add new profile settings 2021-04-27 22:22:02 +02:00
shilangyu 683da30532 Import showScores 2021-04-27 22:09:42 +02:00
shilangyu 4451bd7bd6 Adjust name change 2021-04-27 21:59:04 +02:00
shilangyu 9b5f13466b Import settings if first account 2021-04-23 19:32:10 +02:00
shilangyu f524dc3884 Import lang/theme 2021-04-23 19:26:30 +02:00
shilangyu 847eb3414f Implement default sort type 2021-04-23 19:20:32 +02:00
shilangyu 948fff79f3 Add deduplication 2021-04-22 21:08:30 +02:00
shilangyu 4519077ae2 Bring back show nsfw to manage_account 2021-04-22 19:34:35 +02:00
shilangyu 329bf46921 Merge branch 'master' into fix/deduplication-infinite-scroll 2021-04-22 19:26:39 +02:00