Merge branch 'develop' of https://git.youjo.love/fox/youjo-fe into develop

This commit is contained in:
Chizu 2023-03-10 02:41:51 +09:00
commit 311eae1f0b

View file

@ -1,22 +1,28 @@
# Akkoma-FE
# Akkounfucked-fe
![English OK](https://img.shields.io/badge/English-OK-blueviolet) ![日本語OK](https://img.shields.io/badge/%E6%97%A5%E6%9C%AC%E8%AA%9E-OK-blueviolet)
Changes:
- Restore the shoutbox and pleroma chats interfaces and the scripts to talk to the server endpoints (be176ad930 12ca73863e 6a5047bf96),
- Fix cropped emojis and tooltips from content div restraints (fc2ce67e40) Caveat: it could allow misskey markdown to escape the post and take over the screen, a real fix to just limit MFM would be a nice addition (fc2ce67e40),
- Allow replying to a post with a more open visibility than it previously had (you can take a private/unlisted thread into public) (c004aad4f3)
- Local storage based draft posts (9196d4c192)
This is a fork of Akkoma-FE from the Pleroma project, with support for new Akkoma features such as:
- MFM support via [marked-mfm](https://akkoma.dev/sfr/marked-mfm)
- Custom emoji reactions
Visual Changes:
- Repeats are renamed to boosts, quotes are renamed to quote boosts in order to align with mastodon (12ca73863e).
- Align post action buttons back to the left, like pleroma and older akkoma versions (d98e9ffafc 9a96f3c5bf).
- Emojis are upsized to 50px from 38px (b40a02b6df),
- Remove blurhash nsfw images completely (ab0779b846) (Should have been toggleable by the instance admin),
- Remove language selector (e7b05a41f7) (Again, should have been toggleable by the instance admin)
# For Translators
Intended/possible Future Changes (PRs welcome):
- Allow "Keep Picker Open" for reactions.
- I would like to make draft posts better and implement them into a server side table, a lazy and bad but low effort way could be to use the scheduled posts table and set the post date as many years in the future and the privacy as "direct" by default, then make the user choose when they publish the post.
- Change the bubble TL to allow admins to set it as only viewable by authenticated users (there is probably already a way to do this using the feature the timelines use to deny unauthed users and it just needs to be set up), it would still obviously be viewable through the instance api but it prevents unskilled viewing. (5084c2b202).
The [Weblate UI](https://translate.akkoma.dev/projects/akkoma/pleroma-fe/) is recommended for adding or modifying translations for Akkoma-FE.
Alternatively, edit/create `src/i18n/$LANGUAGE_CODE.json` (where `$LANGUAGE_CODE` is the [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) for your language), then add your language to [src/i18n/messages.js](https://akkoma.dev/AkkomaGang/pleroma-fe/src/branch/develop/src/i18n/messages.js) if it doesn't already exist there.
Akkoma-FE will set your language by your browser locale, but you can temporarily force it in the code by changing the locale in main.js.
# FOR ADMINS
To use Akkoma-FE in Akkoma, use the [frontend](https://docs.akkoma.dev/stable/administration/CLI_tasks/frontend/) CLI task to install Akkoma-FE, then modify your configuration as described in the [Frontend Management](https://docs.akkoma.dev/stable/configuration/frontend_management/) doc.
You need to build the front end and place it in /opt/akkoma/instance/static/frontends/youjo-fe/stable (from source install)
Install adminfe and pleromafe first, then you will be able to enter adminfe and change the stock front end to youjo-fe
## Build Setup