Commit Graph

79 Commits (89d468ada74a48a72b7810b2231dc7ff2b66b250)

Author SHA1 Message Date
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 ()
Yamagishi Kazutoshi 6fd2e8c3c5 Fix profile page when use system's font ()
Yamagishi Kazutoshi 2305f7c391 Use system's default font on non web UI pages ()
* Use system's default font on non web UI pages

* Remove import for Redirect
Sorin Davidoi c1f201c49a 🎄🔨 Force tree shake emojione ()
* chore(yarn): Install babel-plugin-preval as development dependency

* feat(babel): Add preval as a plugin

* feat(emojione_light): Prevaled module what tree-shaked emojione

* refactor(emoji): Use emojione_light

* feat: Preload emojione_picker bundle

* fix(emojione_light): Do not use Object.entries

* fix(emojify): Update tests

* chore(emojione_light): Remove silly ascii art
Akihiko Odaki (@fn_aki@pawoo.net) 8784bd79d0 Require stylesheets in common.js ()
Require stylesheets in common.js because stylesheets are shared by the
entry points.
Sorin Davidoi 37c832cdf7 refactor: Make all reducers sync ()
Sorin Davidoi 348d6f5e75 Lazy load components ()
* feat: Lazy-load routes

* feat: Lazy-load modals

* feat: Lazy-load columns

* refactor: Simplify Bundle API

* feat: Optimize bundles

* feat: Prevent flashing the waiting state

* feat: Preload commonly used bundles

* feat: Lazy load Compose reducers

* feat: Lazy load Notifications reducer

* refactor: Move all dynamic imports into one file

* fix: Minor bugs

* fix: Manually hydrate the lazy-loaded reducers

* refactor: Move all dynamic imports to async-components

* fix: Loading modal style

* refactor: Avoid converting the raw state for each lazy hydration

* refactor: Remove unused component

* refactor: Maintain modal name

* fix: Add as=script to preload link

* chore: Fix lint error

* fix(components/bundle): Check if timestamp is set when computing elapsed

* fix: Load compose reducers for the onboarding modal
Akihiko Odaki (@fn_aki@pawoo.net) e98559c3ff Resolve custom application stylesheet with Webpack ()
This implementation is a bit smaller and still has the following benefits:

* No need of app/javascript/packs/custom.js
For custom stylesheet, it typically has only
"require('../styles/custom.scss')" and is redundant.

* No need to extract vendor stylesheet to another asset
Extracting vendor stylesheet could be forgotten by developers who do not
use custom stylesheet.
Eugen Rochko 62ca37884a Fix - Load stylesheet from "custom.css" entrypoint when present ()
* Fix  - Load stylesheet from "custom.css" entrypoint when present

This is pretty much the same way it worked as before, albeit with
having to create app/javascript/packs/custom.js with
require('../styles/custom.scss') (or whatever you want really), which
will be a blank slate for you to import whatever you want

* Remove old assets directory

* Extract font-awesome into common.css and always load it
Nolan Lawson 9d04de1c8d Only load Intl data for current language ()
* Only load Intl data for current language

* Extract common chunk only from application.js and public.js

* Generate locale packs, avoid caching on window object
Akihiko Odaki 85c9496340 Introduce common JavaScript file ()
* Create common chunk rather than vendor chunk

vendor chunk is a set of modules provided by external vendors, but now we
can have a chunk as a set of modules shared by multiple entry points,
which could be more efficent than having vendor chunk.

* Start rails-ujs in common.js

This is used by /settings/two_factor_authentication.
yhirano 48594b18e6 Added haml-lint and fix warnings ()
* add haml_lint to Gemfile

* add .haml-lint.yml

* fix warnings of haml_lint
Eugen Rochko f5bf5ebb82 Replace sprockets/browserify with Webpack ()
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
Ashley 1736badf28 Added '(dev)' to the title in development mode ()
* Added different title for dev

* Changed indentation
Lindsey Bieda 25cbb8454c Red favicon for dev ()
* Set a dev specific favicon

* Consistent spacing

* Add trailing slash for consistency

* Update to remove interpolation
Eugen e59f5c8e13 Add an RTL stylesheet for Arabic i18n ()