Commit Graph

53 Commits (a7c50c7abab98b3db0b89e3b2fe78abe0dc9789c)

Author SHA1 Message Date
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 ()
Matt Jankowski 598d3defd5 Use default locale for html lang in layouts ()
Eugen baabbce672 Fix double-escaping of display names in <title> ()
Matt Jankowski 389f8f8249 Instance helper to replace site title helper ()
* Move site title helper to instance helper (name change only)

* Remove newline in <title> tag

* Add site_hostname helper method to wrap up local_domain value

* Use site_hostname helper in places that need local_domain value
Dale Price f3b86c1bda Add mask-icon.svg () ()
* Add mask-icon ()

* use updated svg logo for mask-icon
Naouak 3d3e32befb Check for a custom css file to help customization of instances ()
* User can create a custom.scss to customize their instance without modifying gitted files.

* Add documentation for customization.

* Forgot the helper file

* Fix Style to pass codeclimate

* Requests from maintainer.
Matt Jankowski ca44c13455 Use Setting.site_title value for `og:site_name` occurrences ()
* Add helper method to return Setting.site_title

* Use site_title helper in application layout

* Use site_title value for og:site_name
Eugen 1c351709bc Force UTF8 encoding on generated XML ()
Eugen Rochko d2619e0b53 Site title is now a setting
Eugen Rochko f4bc9620a9 Update settings to re-use admin layout, one big navigation tree, improve settings forms
Eugen Rochko 587bf6820e Improved launcher icon on Android
Eugen Rochko e09d3a2c66 Fix - use window.location hack to let people login from sandboxed iOS homescreen
Eugen Rochko 6de079a5af Removing external hub completely, fix fixing digit-only hashtags,
removing web app capability from non-webapp pages
Eugen Rochko 7abbb02824 Fix - No need for Safari chrome on iOS
Eugen Rochko 3ce6ac0ce2 Adding some localizations
Eugen Rochko 4ea13d8dc9 Fix web app manifests
Eugen bc1dba22c5 Fix syntax errors
Frederic Hemberger e7cd6da938 Add touch icons for Chrome, iOS and Windows 10
Frederic Hemberger d991869498 a11y: Add HTML lang attribute and utf8 encoding meta tag
See: https://dequeuniversity.com/rules/axe/2.1/html-has-lang
Eugen Rochko ef2b50c9ac Deleting statuses from UI
Eugen Rochko db6df6ddb3 Only load JS on homepage, no other page uses it
Eugen Rochko 49520d6e62 Adding React.js, Redux, revamping dashboard
Eugen Rochko c349200761 Removing some unused gems, adding pagination to profiles, fix
Eugen Rochko aab9f57e36 Adding config for puma, dashboard layout, fixing some queries
Eugen Rochko 6045b6cb18 Customizing devise views and controllers
Eugen Rochko f1654da7ad Added <link> tags to profiles and entries
Eugen Rochko 2c70f0ecaa Adding paperclip for avatars, fixing design of the public pages