remove import of no import(ance)
reorder defaults and add default for favourite confirmation
implement functionality for favourite confirmation
favorite -> favourite, not sure if that's the preferred form but i've seen a lot more written that way within the repo, altho this is trivial to change. also added the string for translation
reordered settings in order of \'severity\' \(unfollow, delete, boost, fav\) and added the setting to allow confirmation of favorites
Implemented functionality for the setting governing delete confirmation dialogs
fix typo and reword setting to be consistent with \'confirm_VERB\'
tweaked wording
removed \'boostModal\' and cleaned up the logic
make defaults sensible
Added boost confirmation modal. Shortcut `b` currently works with modal, but `Shift + b` does *not*
Add settings for confirmation dialogs within "General Settings" and add localization for english
[build] update caniuse-lite browserlist (#81) Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/81 Co-authored-by: Zoë Bijl <code@moiety.me> Co-committed-by: Zoë Bijl <code@moiety.me>
[bugfix] correctly format editorconfig (#78) I had incorrectly assumed you could split the array over multiple lines. Also removed non-existant (for now) files. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/78 Co-authored-by: Zoë Bijl <code@moiety.me> Co-committed-by: Zoë Bijl <code@moiety.me>
[feature] Preserve 'mastodon-settings' from localStorage on logout (#66)
This preserves the settings for the FE, things like theme, etc.
---
Retains the `mastodon-settings` object from localStorage on logout. I think this is safe to do, it doesn't appear there's any instance-specific or otherwise sensitive info in this object:
```json
{
"side_arm_reply_mode": "keep",
"media": {
"use_blurhash": true,
"letterbox": false,
"fullwidth": true,
"reveal_behind_cw": false,
"pop_in_player": true,
"pop_in_position": "right"
},
"stretch": true,
"inline_preview_cards": true,
"hicolor_privacy_icons": false,
"notifications": {
"favicon_badge": false,
"tab_badge": true
},
"confirm_missing_media_description": false,
"theme": "mastodon",
"layout": "mobile",
"preselect_on_reply": false,
"status_icons": {
"language": true,
"reply": true,
"local_only": true,
"media": true,
"visibility": true
},
"prepend_cw_re": false,
"confirm_boost_missing_media_description": false,
"tag_misleading_links": true,
"side_arm": "none",
"collapsed": {
"enabled": true,
"auto": {
"all": false,
"notifications": false,
"lengthy": true,
"reblogs": false,
"replies": false,
"media": false,
"height": 400
},
"backgrounds": {
"user_backgrounds": false,
"preview_images": false
},
"show_action_bar": true
},
"show_reply_count": false,
"confirm_before_clearing_draft": true,
"rewrite_mentions": "no",
"content_warnings": {
"auto_unfold": false,
"filter": null,
"media_outside": true,
"shared_state": true
},
"always_show_spoilers_field": true,
"show_content_type_choice": true
}
```
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/66
Co-authored-by: Matthew Jorgensen <me@prplecake.com>
Co-committed-by: Matthew Jorgensen <me@prplecake.com>
[feature] Redesigned login page (#76) Reworked the login page - Simplified some of the HTML and CSS - Removed some `aria-label`s - Added alt text for the logo - Added a label for the input field - Added subtle borders to otherwise flat elements  Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/76 Co-authored-by: Zoë Bijl <code@moiety.me> Co-committed-by: Zoë Bijl <code@moiety.me>
[docs] add documentation for `yarn dev` (#75) Added a few lines about running `yarn dev`. It’s easy enough to miss which port it runs on or whether it runs a server at all. Having this explicit URL should help. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/75 Co-authored-by: Zoë Bijl <code@moiety.me> Co-committed-by: Zoë Bijl <code@moiety.me>
[bugfix] account for data structure change in instance API fallback (#63) Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/63 Co-authored-by: Sqx. Flann <fl4nn+codeberg@opensuse.org> Co-committed-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
[feature] Query media description limit (#62) fixes #61 Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/62 Co-authored-by: Sqx. Flann <fl4nn+codeberg@opensuse.org> Co-committed-by: Sqx. Flann <fl4nn+codeberg@opensuse.org>
[feature] Add logout button to sidebar (#48) This one should probably be scrutinized a little more than my previous two. For example, I don't know why I needed to do this: https://codeberg.org/prplecake/masto-fe-standalone/src/commit/1a1f48ceaa544650a8b8f50f8fa4e8c7cdc44c12/app/javascript/flavours/glitch/features/ui/index.jsx#L152 ~~But, it appears to work.~~ It's live at https://masto-fe.compostintraining.club if you want to test it out. ~~Edit: it breaks stuff. Images don't load anymore...~~ Maybe that was just a network glitch... Fixes #21. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/48 Co-authored-by: prplecake <me@prplecake.com> Co-committed-by: prplecake <me@prplecake.com>