Commit Graph

94 Commits (4b4bf82ea99a5d4f223556e92d97a04dbfa45297)

Author SHA1 Message Date
Matt Jankowski 0c3c06f7cc
Remove vendor prefix from `mobile-web-app-capable` meta tag ()
Matt Jankowski 4c4bcad866
Remove `font-awesome` npm package ()
Claire 7a84b76bb1
Drop favicon.ico generation ()
Renaud Chaput 43bbdea421
Fix invalid `mask-icon` when a custom instance icon is configured ()
Louis Brauer f0ca874b09
Include crossorigin in inert css ()
Matt Jankowski 2fdd782f21
Fix empty `aria-hidden` attribute value in logo resources area ()
Jason Punyon 85c625d319
Fix repetitive database queries from ()
Claire d8c4284723
Ensure custom favicon is converted to PNG and ICO ()
Fawaz Farid bc24c4792d
Allow admins to configure instance favicon and logo ()
Matt Jankowski b61ae28f8d
Separate methods for theme style and meta color tags ()
Renaud Chaput 672c9f5f05
Change the `theme-color` value automatically when using a built-in theme ()
Renaud Chaput 02ea161506
Support "system" theme setting (light/dark theme depending on user system preference) ()
Co-authored-by: Nishiki Liu <hello@nshki.com>
Matt Jankowski d7ab5655ef
Replace `render_symbol` method with `inline_svg_tag` usage ()
Renaud Chaput cb5ac15923
Use a helper to avoid using `media/` asset prefixes ()
Renaud Chaput c6684aa1e3
Use the assets pipeline to load `inert.css` ()
Matt Jankowski 548bb30b2a
Consolidate html page title output logic into helper ()
Renaud Chaput 42698b4c5c
Fix the crossorigin attribute ()
Claire 64f7a11658
Fix cross-origin loading of locales ()
Renaud Chaput 44cd88adc4
Upgrade react-intl ()
Claire 276c39361b
Fix anonymous visitors getting a session cookie on first visit ()
SJang1 053dac2afa
Remove meta tag for official iOS app ()
Eugen Rochko f910f0dc92
Fix wrong host being used for custom.css when asset host configured ()
Eugen Rochko 1fd6460b02
Change floating action button to be a button in header in web UI ()
- Fix theme color
- Fix elephant being too big on error page on small screens
- Remove "Follows and Followers" link from navigation panel
Eugen Rochko d696f729f1
Add meta tag for official iOS app ()
Eugen Rochko 44b2ee3485
Add customizable user roles ()
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
Claire 37cd984acf
Fix logo gradient not working on some Safari and Blink-based browsers ()
Works around https://bugs.chromium.org/p/chromium/issues/detail?id=258029
Eugen Rochko 45aa5781ce
Change brand color and logotypes ()
- Add rake task for generating Apple/Android icons and favicons from SVG
- Add rake task for generating PNG icons and logos for e-mails from SVG
- Remove obsolete Microsoft icons and configuration
- Remove PWA shortcut icons
Claire 117f6638d0
Fix SVG files not being correctly included in templates ()
In Rails 6.1, raw file inclusion in templates have to be explicitly marked as
HTML-safe, otherwise it's rendered as text.
Claire 39a490c70e
Fix custom CSS when CDN_HOST is set ()
Eugen Rochko 9b1f2a4b61
Add subresource integrity for JS and CSS assets ()
Fix 
ThibG 4c45b43cb8
Change how CDN_HOST is passed down to make assets build reproducible ()
* Change how CDN_HOST is passed down to make assets build reproducible

* Change webpacker/webpack configuration to dynamically load publicPath based on meta header

* Fix embedded layout missing the cdn-host meta header
ThibG a783bdf4ad
Fix hashtag column options styling ()
* Enable nonces for stylesheets

* Pass nonce to react-select
ThibG e1629a7758
Remove 'unsafe-inline' from Content-Security-Policy style-src ()
* Make sure wicg-inert doesn't rely on inline CSS

* Remove unsafe-inline from style-src
ThibG 0e362b7678
Fix end-user-facing uses of inline CSS ()
* Move some inline styles to CSS files

* Move default_account_display_name span to fix useless tags with duplicate id

* Change handling of public pages spoiler text from inline CSS to dataset attribute

* Use the `dir` HTML attribute instead of inline CSS

* Move status action bar inline CSS to CSS file

* Hide logo resources from CSS file, not inline CSS

Fixes 

* Move translation prompt styling from inline CSS to CSS file

* Move “invited by” styling on registration form from inline to CSS file

* Use the progress tag to display poll results in JS fallback

* Fix poll results JS-less fallback when the user has voted for an option

* Change account public page “moved” notice to use img tags instead of inline CSS

* Move OTP hint inline CSS to SCSS file

* Hide JS-less fallback vote progressbars from accessibility tools

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Eugen Rochko 20dda5cca0
Change full logo to use primary text color of the given theme ()
* Change full logo to use primary text color of the given theme

* Fix colors of public layout header in light theme
Eugen Rochko 8d5dcc9301
Use `<use />` to render transparent SVG logo instead of inserting it ()
Eugen Rochko da7705b274
Add dns-prefetch if using different host for assets or uploads ()
Eugen Rochko 22e46ebad8
Add theme identifier to body classes for easier custom CSS styling ()
Add forgotten custom CSS admin setting strings
Eugen Rochko a2cabf3f4a
Add admin custom CSS setting ()
Fix 
Eugen Rochko 4476a45444
Fix : Do not double html-encode page titles ()
Eugen Rochko ff44b2e92d
Add missing meta description to profiles, some other SEO stuff ()
- Add missing meta description to profiles
- Add canonical rel link to landing page
- Remove linebreaks from title tags
- Add username to profile title
- Add toots/following/followers to profile description tags
- Add next/prev rel links to profiles
- Do not index follower/following variants of profiles
Otakan ce854ed506 delete X-UA-Compatible ()
* delete X-UA-Compatible

* undo

* restore
Nolan Lawson a8eb0bf44f Reduce motion for boost animation ()
* Reduce motion for boost animation

Fixes 

* Fix ternary expression
Nolan Lawson 3de22a82bf Refactor initial state: reduce_motion and auto_play_gif ()
Nolan Lawson 8980aa804f Fix reduced motion breaking public galleries ()
Nolan Lawson 6a50329a9c Only preload JS in /web pages ()
Eugen Rochko 1e02ba111a Add emoji autosuggest ()
* Add emoji autosuggest

Some credit goes to 

* Remove server-side shortcode->unicode conversion

* Insert shortcode when suggestion is custom emoji

* Remove remnant of server-side emojis

* Update style of autosuggestions

* Fix wrong emoji filenames generated in autosuggest item

* Do not lazy load emoji picker, as that no longer works

* Fix custom emoji autosuggest

* Fix multiple "Custom" categories getting added to emoji index, only add once
Eugen Rochko 846cd4e838 Switch from EmojiOne to Twemoji, different emoji picker ()
* Switch from EmojiOne to Twemoji, different emoji picker

* Make emoji-mart use a local spritesheet

* Fix emojify test

* yarn manage:translations
Andrew 0401a24558 Add support for multiple themes ()
* Add support for selecting a theme

* Fix codeclimate issues

* Look up site default style if current user is not available due to e.g. not being logged in

* Remove outdated comment in common.js

* Address requested changes in themes PR

* Fix codeclimate issues

* Explicitly check current_account in application controller and only check theme availability if non-nil

* codeclimate

* explicit precedence with &&

* Fix code style in application_controller according to @nightpool's suggestion, use default style in embedded.html.haml

* codeclimate: indentation + return
Eugen Rochko 09cffaaf04 Fix - Use correct syntax for content preloading ()