Commit Graph

19378 Commits

Author SHA1 Message Date
Thiago 'Jedi' Cerqueira
0f77cb593c [chore] Add dev script for easier development loop (#16)
This PR adds a npm "dev" script. Upon executing `npm run dev`, the project will be served (default port 3035) in "watch" mode, every local change of the files will refresh the page.

This change should enable faster development loop.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/16
Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
2025-03-13 13:28:26 +00:00
Thiago 'Jedi' Cerqueira
84718945c6 [bugfix] Fix blurhash losing proportion when more than one item (#17)
Fixes #14

The style changes I made in #11 didn't take hidden media in consideration. This PR fixes it.

![Captura de tela de 2025-03-12 11-19-12.png](/attachments/f395e341-9a31-4459-adb5-46439b4b3003)

![Captura de tela de 2025-03-12 11-54-24.png](/attachments/00b01da2-712d-43f7-99a6-e53241663339)

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/17
Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
2025-03-13 13:27:42 +00:00
tobi
1b66719b48 [feature] Send local_only instead of eyeball (#13)
Co-authored-by: Ember <me@ember-is.gay>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/13
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-03-04 20:54:32 +00:00
Thiago 'Jedi' Cerqueira
4bb7992d4c [Feature] Remove hardcoded limit of media (#11)
Fixes #7

The limit of upload and remote display media was hard coded to 4.

In this PR, I did the following changes:
- Status form now respects instance's upload limit config.
- Remove the limit of images shown on statuses
    - Remote statuses may have more than local instance's limit

Also, I kept the 16:9 aspect ratio of the images. I can change to more complex layouts in future PRs if needed.

This works, but it needs more tests. I don't have how to change the config of my instance, so I had to test forcing duplicates on the post. Any help to validate configuration would be nice.

![image](/attachments/f073ac59-c6d5-4d4c-a01a-17d0c6855094)

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/11
Co-authored-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
Co-committed-by: Thiago 'Jedi' Cerqueira <thiagoa7@gmail.com>
2025-03-04 19:45:04 +00:00
tobi
b15856c5fc [docs] Add steps for testing locally (#12)
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/12
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-03-04 10:26:19 +00:00
julia
3481816b99 [bugfix] Make the logo icon / wordmark on mobile/simple UI appear (#4)
At least for the logo-symbol-wordmark.svg, this appears to usually be added
by some ruby code in application.html.haml, but since we have a static index.html
this never gets inserted into the HTML. Rather than embedding it into the HTML,
just make the two logos pull from files in public/.

This does not update the branding of the files, just makes them appear.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/4
Co-authored-by: julia <midnight@trainwit.ch>
Co-committed-by: julia <midnight@trainwit.ch>
2024-12-27 11:55:03 +00:00
tobi
4df14235c6 [feature] Move use_blurhash to app settings, enable by default (#5)
Does what it says on the tin! This serves as a decent model (imo) for how to move something from Mastodon's rather opaque server-side settings to client settings.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/5
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2024-12-27 11:54:18 +00:00
tobi
9f520d3608 [chore] Remove more unused files (#3)
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/3
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2024-12-25 11:53:56 +00:00
julia
86fa133c50 [bugfix] Store /api/web/settings state locally for persistence (#2)
This also prevents the 'Can't verify CSRF token authenticity' errors that popup whenever you modify a 'web setting', such as the column layout.

~~NB: There is something funky going on. This works 99% of the time and sometimes doesn't?~~ Fixed now, there was two bits of stuff in verify_state doing the same thing, removed the duplicate.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/2
Co-authored-by: julia <midnight@trainwit.ch>
Co-committed-by: julia <midnight@trainwit.ch>
2024-12-25 11:40:11 +00:00
julia
873838ebfe [feature] Always show content warning: use existing glitch feature (#1)
The modifications you made are somewhat janky; for instance, editing a toot with an existing content warning makes the UI look very weird and doesn't quite work.

Glitch already has a feature for this, so simply turn it on by default. This should do the same thing.

Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/1
Co-authored-by: julia <midnight@trainwit.ch>
Co-committed-by: julia <midnight@trainwit.ch>
2024-12-24 14:03:51 +00:00
tobi
56ec0085a2 [feature] Set website 2024-12-21 15:26:26 +01:00
tobi
ba53e0335c [feature] Add theme selector to app settings 2024-12-21 15:26:14 +01:00
tobi
e83af75245 [bugfix] Fix spoiler not being sent 2024-12-21 13:05:13 +01:00
tobi
3ab0eac6ef [chore] Readme, docker build 2024-12-19 19:00:29 +01:00
tobi
b16e8bda7d [feature] Always show spoiler / content-warning box 2024-12-19 17:16:15 +01:00
tobi
bf5366e127 [feature] Use instance settings for media attachment cap 2024-12-19 17:15:55 +01:00
tobi
c541d569cf [chore] Use sloth flavour 2024-12-19 14:28:35 +01:00
tobi
7415961063 maoam 2024-12-18 12:07:50 +01:00
tobi
b8dd1e34bd remove unused translation languages 2024-12-18 11:55:01 +01:00
tobi
934f50dc21 tweaky bombeeky 2024-12-18 11:39:49 +01:00
tobi
a21f6a9a6b further tweaks 2024-12-17 11:34:02 +01:00
tobi
df322aacd4 source url 2024-12-16 14:40:16 +01:00
tobi
6d378b6b00 replace icons 2024-12-16 14:27:37 +01:00
tobi
0ba6ab88a9 weeeeeeeee 2024-12-15 17:19:57 +01:00
jwbjnwolf
915034f6a6 Revert "Remove layout glitch-soc settings"
Reverts 0d61985713. Re-enables the ability to toggle between single/multi column ui.
2024-07-17 16:41:39 +02:00
Laura Hausmann
3962700726 Fix 24:xx timestamps 2023-10-23 12:22:45 +02:00
Laura Hausmann
891d6c5fa5 Add domain to acct display in sidebar 2023-10-18 01:11:56 +02:00
Laura Hausmann
aa0801e1f3 Remove explore prompt 2023-10-18 01:05:23 +02:00
Laura Hausmann
1feffe4326 Ignore hashtag history if undefined 2023-10-14 15:03:34 +02:00
Laura Hausmann
aa27eaece4 Fix languages crash 2023-10-12 21:08:11 +02:00
Laura Hausmann
4a61246750 Remove issue templates 2023-10-12 21:01:51 +02:00
Laura Hausmann
114fd1a521 Update README 2023-10-12 20:26:48 +02:00
Laura Hausmann
ad151d2e3c Revert to old profile actions icon 2023-10-12 20:24:20 +02:00
Laura Hausmann
6ac4848fbb Merge remote-tracking branch 'upstream' into glitch 2023-10-12 20:16:41 +02:00
Laura Hausmann
d35cbe4473 Remove /deck prefix 2023-10-12 20:13:44 +02:00
Laura Hausmann
d7254bd332 Update default local-settings 2023-10-12 20:13:43 +02:00
Laura Hausmann
e6fd0de840 Update patchset to upstream glitch 2023-10-12 20:13:43 +02:00
Laura Hausmann
960614ec6f Merge patchset from akko branch 2023-10-12 20:13:42 +02:00
Claire
45a19ddfe4 Merge pull request #2440 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes up to 27e84c0691
2023-10-12 12:18:43 +02:00
Claire
99c72830bc [Glitch] Fix scroll position in thread view reseting when closing a modal
Port 9d1c3d0678 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-10-10 19:53:59 +02:00
Claire
3735e6f79d Merge commit '27e84c069112a3d2abfad947642457cc997a261a' into glitch-soc/merge-upstream 2023-10-10 19:53:41 +02:00
Claire
1a4a23b5c8 Merge pull request #2439 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes up to 4c2aca777f
2023-10-10 19:51:17 +02:00
Claire
27e84c0691 Fix duplicate reports being sent when reporting some remote posts (#27355) 2023-10-10 16:00:50 +02:00
Claire
9d1c3d0678 Fix scroll position in thread view reseting when closing a modal (#27350) 2023-10-10 11:35:32 +02:00
github-actions[bot]
1a2a4c389f New Crowdin Translations (automated) (#27347)
Co-authored-by: GitHub Actions <noreply@github.com>
2023-10-10 10:06:37 +02:00
renovate[bot]
1745c582f8 Update dependency sidekiq to v6.5.11 (#27345)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-10 09:52:09 +02:00
Claire
05159d2f94 [Glitch] Fix clicking on already-loaded thread scrolling to the top of the thread
Port 4c2aca777f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-10-09 21:15:59 +02:00
Claire
8ef1a95b1c Merge commit '4c2aca777f6ae6942d0cf11aee56a925694ccdef' into glitch-soc/merge-upstream 2023-10-09 21:14:57 +02:00
Renaud Chaput
7b325aa81b [Glitch] Autofix missing comma and indentation in JS files
Port 774e1189d2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2023-10-09 21:14:25 +02:00
Claire
4a9cdfb928 Merge commit '774e1189d26fffd914107a4236f6287043c988f8' into glitch-soc/merge-upstream 2023-10-09 21:12:28 +02:00