about summary refs log tree commit diff
path: root/app/javascript
AgeCommit message (Collapse)Author
2017-10-02Code-split emoji-mart picker and data (#5175)Nolan Lawson
2017-10-02Toggle contain:strict on fullscreen (#5159)Nolan Lawson
* Toggle contain:strict on fullscreen * Fix scss lint issue * fix scss whitespace lint issue
2017-10-01Improve privacy dropdown, remove react-simple-dropdown dependency (#5140)Eugen Rochko
* Improve privacy dropdown, remove react-simple-dropdown dependency * Animate privacy warning * Fix react-router-scroll
2017-10-01Reorganize preferences page (#5161)Eugen Rochko
2017-10-01Add image descriptions to title attribute to view on mouse hover/long-press. ↵Daggertooth
(#5137) * Add image descriptions to `title` attribute to view on mouse hover/long-press. * Too many title properties may spoil the broth.
2017-09-30trivial refactoring for emojify() (#5075)MIYAGI Hikaru
* unite loop process * add hint for original emojifier
2017-09-30Improve IntersectionObserverArticle perf (#5152)Nolan Lawson
2017-09-30Make emoji autosuggestions immediate, usernames appear sooner (#5149)Eugen Rochko
* Do not debounce emoji search * Make autosuggestions appear sooner
2017-09-30Upgrade to React 16 (#5119)Eugen Rochko
* Upgrade to React 16.0.0 * Disable some uncritical tests while chai-enzyme remains incompatible
2017-09-29Remove react-sizeme (#5143)Nolan Lawson
* Remove react-sizeme * Fix aspect ratio in "sensitive" mode
2017-09-29Updated German translation (#5151)Jakob Kramer
Translate "about" page, several settings pages, data export/import, sessions overview, authorized followers page, account deletion page. More consistent use of words: - A toot is a Beitrag. - An account is a Konto. Some small improvements.
2017-09-29Increase attachment descriptions to 420 characters (#5139)Eugen Rochko
Blaze it
2017-09-28Update German translation (#5133)Jakob Kramer
Create activerecord.de.yml (50%) Update devise.de.yml Update doorkeeper.de.yml (100%) Update simple_form.de.yml (100%)
2017-09-28Improve performance of modal and swipe animations (#5135)Nolan Lawson
* Improve performance of modal and swipe animations * Fix eslint issues
2017-09-28Updated German translation (#5132)Jakob Kramer
2017-09-28Add ability to specify alternative text for media attachments (#5123)Eugen Rochko
* Fix #117 - Add ability to specify alternative text for media attachments - POST /api/v1/media accepts `description` straight away - PUT /api/v1/media/:id to update `description` (only for unattached ones) - Serialized as `name` of Document object in ActivityPub - Uploads form adjusted for better performance and description input * Add tests * Change undo button blend mode to difference
2017-09-28Remove web UI warnings about OStatus privacy (#5102)Eugen Rochko
* Remove web UI warnings about OStatus privacy * yarn run manage:translations
2017-09-25New error page graphic. Other error page improvements (#5099)Eugen Rochko
- 500.html generated with admin-set default locale if set - Error page `<title>` includes Mastodon site title - 500 title changed to "This page is not correct" (ref: <https://www.youtube.com/watch?v=2VCAP_seh1A>) - 500 content appended with "on our end" to make clear it's not user's fault
2017-09-25Fix size of single media in media-gallery (#5098)Lynx Kotoura
2017-09-25Fix emojify() by generating a mapping to existing Twemoji files (#5080)Eugen Rochko
A new rake task emojis:generate downloads a full list of valid unicode sequences from unicode.org and checks it against existing Twemoji files, finally generating a map from each sequence to the existing file (e.g. when there's multiple ways an emoji can be expressed). The map is dumped into app/javascript/mastodon/emoji_map.json That file is loaded by emojione_light.js (now a misnomer) which decorates it further with shortcodes taken from emoji-mart's index.
2017-09-25Generate 500.html with assets:precompile, remove loading from Google Fonts ↵Eugen Rochko
(#5067)
2017-09-24OC update: different emoji picker (#5046) (#5077)JeanGauthier
2017-09-24Fix media spoiler of DetailedStatus (#5071)abcang
2017-09-24In detail status view, display attachment uncropped if there's only one (#5054)Eugen Rochko
* In detail status view, display attachment uncropped if there's only one * Make media spoiler the size of the media it hides, enable on static
2017-09-24Change mobile layout breakpoint from 1024px to 630px (#5063)Eugen Rochko
630px = Drawer + 1 Column
2017-09-24Dropdown triangles a bit nicer, smoother scrolling on touch (#5062)Eugen Rochko
2017-09-24Fix media gallery CSS (#5064)Eugen Rochko
2017-09-24Require at least 2 characters before showing autosuggestions (#5065)Eugen Rochko
2017-09-23jsx/zh-*: Fix "pin column" for Chinese (#5060)Mingye Wang
2017-09-23i18n: Update Polish translation (#5058)m4sk1n
2017-09-23Fix overflowing tabs in account__action-bar (#5056)Lynx Kotoura
* Fix numbers in accounts columns * Support edge compact-header
2017-09-23Add emoji autosuggest (#5053)Eugen Rochko
* Add emoji autosuggest Some credit goes to glitch-soc/mastodon#149 * 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
2017-09-23Add custom emojis to the emoji picker (#5052)Eugen Rochko
2017-09-23Switch from EmojiOne to Twemoji, different emoji picker (#5046)Eugen Rochko
* Switch from EmojiOne to Twemoji, different emoji picker * Make emoji-mart use a local spritesheet * Fix emojify test * yarn manage:translations
2017-09-22Fix PropTypes.oneOfType() warning (#5041)Nolan Lawson
2017-09-22Make dropdowns render into portal, expand animation (#5018)Eugen Rochko
* Make dropdowns render into portal, expand animation * Improve actions modal style
2017-09-22Use passive listener in privacy_dropdown.js (#5037)Nolan Lawson
2017-09-22Eliminate re-renders for intersection_observer_article.js (#5036)Nolan Lawson
2017-09-21fix : mobile style of /about/more (#5034)syui
2017-09-21Fix shortname problem in emojify() (regression from #5016) (#5032)MIYAGI Hikaru
When colon appears end of line, skiped all character containing unicode emojis. Fixed. https://github.com/tootsuite/mastodon/pull/5016#issuecomment-331012008
2017-09-20Reduce wasted renders for column_loading.js (#5021)Nolan Lawson
* Reduce wasted renders for column_loading.js * Use defaultProps
2017-09-20Remove unnecessary css property (#5025)TomoyaShibata
2017-09-20Change IDs to strings rather than numbers in API JSON output (#5019)aschmitz
* Fix JavaScript interface with long IDs Somewhat predictably, the JS interface handled IDs as numbers, which in JS are IEEE double-precision floats. This loses some precision when working with numbers as large as those generated by the new ID scheme, so we instead handle them here as strings. This is relatively simple, and doesn't appear to have caused any problems, but should definitely be tested more thoroughly than the built-in tests. Several days of use appear to support this working properly. BREAKING CHANGE: The major(!) change here is that IDs are now returned as strings by the REST endpoints, rather than as integers. In practice, relatively few changes were required to make the existing JS UI work with this change, but it will likely hit API clients pretty hard: it's an entirely different type to consume. (The one API client I tested, Tusky, handles this with no problems, however.) Twitter ran into this issue when introducing Snowflake IDs, and decided to instead introduce an `id_str` field in JSON responses. I have opted to *not* do that, and instead force all IDs to 64-bit integers represented by strings in one go. (I believe Twitter exacerbated their problem by rolling out the changes three times: once for statuses, once for DMs, and once for user IDs, as well as by leaving an integer ID value in JSON. As they said, "If you’re using the `id` field with JSON in a Javascript-related language, there is a very high likelihood that the integers will be silently munged by Javascript interpreters. In most cases, this will result in behavior such as being unable to load or delete a specific direct message, because the ID you're sending to the API is different than the actual identifier associated with the message." [1]) However, given that this is a significant change for API users, alternatives or a transition time may be appropriate. 1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html * Additional fixes for stringified IDs in JSON These should be the last two. These were identified using eslint to try to identify any plain casts to JavaScript numbers. (Some such casts are legitimate, but these were not.) Adding the following to .eslintrc.yml will identify casts to numbers: ~~~ no-restricted-syntax: - warn - selector: UnaryExpression[operator='+'] > :not(Literal) message: Avoid the use of unary + - selector: CallExpression[callee.name='Number'] message: Casting with Number() may coerce string IDs to numbers ~~~ The remaining three casts appear legitimate: two casts to array indices, one in a server to turn an environment variable into a number. * Back out RelationshipsController Change This was made to make a test a bit less flakey, but has nothing to do with this branch. * Change internal streaming payloads to stringified IDs as well Per https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452 we need these changes to send deleted status IDs as strings, not integers.
2017-09-20Fix custom emojis with non-1:1 aspect ratio being stretched (#5017)Eugen Rochko
2017-09-19redo #4500 with customEmojis (#5016)MIYAGI Hikaru
2017-09-19Set touchstart listener to 'passive', remove 'once' (#5011)Nolan Lawson
2017-09-19Add support for multiple themes (#4959)Andrew
* 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
2017-09-19Hide sensitive image in default on the public pages (#5009)unarist
Additionally, this restores previous background / text color for media spoiler.
2017-09-19Custom emoji (#4988)Eugen Rochko
* Custom emoji - In OStatus: `<link rel="emoji" name="coolcat" href="http://..." />` - In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }` - In REST API: Status object includes `emojis` array (`shortcode`, `url`) - Domain blocks with reject media stop emojis - Emoji file up to 50KB - Web UI handles custom emojis - Static pages render custom emojis as `<img />` tags Side effects: - Undo #4500 optimization, as I needed to modify it to restore shortcode handling in emojify() - Formatter#plaintext should now make sure stripped out line-breaks and paragraphs are replaced with newlines * Fix emoji at the start not being converted
2017-09-19A few updates to the Spanish translation and some typos fixing (#4997)BruWalfas
* So Spanish. Much changes. Wow. * Some little fixes * Updated es.yml, and fixed some ortographical errors * Some little changes to simple_form.es.yml * Yeah, so much translations * Spanish e-mail messages * Remove unused message