Commit graph

3223 commits

Author SHA1 Message Date
Yamagishi Kazutoshi
f1bf2214bc Remove local_time gem, and add similar () 2017-05-07 15:22:54 +02:00
Nolan Lawson
fa96b86b64 upgrade emojione-picker () 2017-05-07 15:22:42 +02:00
Nolan Lawson
c4d405f24c add source maps for dev/production () 2017-05-07 15:22:30 +02:00
Yamagishi Kazutoshi
7ef4bdce19 Fix a aspect ratio for the embedded video () 2017-05-07 15:21:46 +02:00
Yamagishi Kazutoshi
397369fc66 Fix redirect path for admin () 2017-05-07 15:21:31 +02:00
Ira
5649d15a71 i18n: Update Hebrew interface translation. ()
* follow the instructions for registering the language as stated on the Tootsuite's docs.

* Added translation strings from latest master

Adding ‏ characters to many strings that are misdirected in the interface.

A tiny grammar fix

Updates of Hebrew strings to v1.3.1

Hebrew translation of the mailer templates.

Fix strings and a missing comma.

Just discovered two string keys were updated. this should lay Travis' mind to rest at last.

Remove mentions before counting characters to decide RTL ratio

Fixes for PR 

updated strings for latest master

Undo RTL counting, moved out to another branch for future consideration...
2017-05-07 15:20:34 +02:00
Matt Jankowski
d2aae2c2e0 Unblock domain service specs/refactor ()
* Add spec for unblock domain service

* Refactor UnblockDomainService
2017-05-07 14:44:28 +02:00
Koala Yeung
c9a83b57fc Fix unused key issue in zh-HK ()
* locale: remove unused keys in zh-HK

* locale: update json translations

* handled the untranslated strings.
* removed unused keys.
2017-05-07 14:29:01 +02:00
Yamagishi Kazutoshi
2d39fc360d Fix locale key for account card () 2017-05-07 03:09:58 +02:00
yhirano
9d2266f420 Enable CodeClimate Brakeman checks ()
* add brakeman to Gemfile

* Enable CodeClimate brakeman checks

* add config/brakeman.ignore
2017-05-07 02:45:33 +02:00
Nolan Lawson
c9e8d229a4 add asynchronous emojione-picker (code-splitting) () 2017-05-07 02:42:38 +02:00
yhirano
092d220c97 Enable CodeClimate Bundler-Audit checks ()
* add bundler-audit to Gemfile

* Enable CodeClimate bundler-audit checks
2017-05-07 02:41:12 +02:00
alpaca-tc
ea2e2f4857 Hotfix convert string from symbol ()
* Convert key to string from symbol

* Prefer :public_send instead of
2017-05-06 23:06:52 +02:00
alpaca-tc
de0f63e0ac Fixes slow query in notifications api ()
* Add inclusion validation for activity_type

* When excluding all types with `WHERE NOT IN`, the query search all rows.
2017-05-06 21:55:40 +02:00
Koala Yeung
94460603c0 Eslintrc fix ()
* eslintrc: adapt changes in eslint-plugin-jsx-a11y

* Replace 'jsx-a11y/img-has-alt' with 'jsx-a11y/alt-text'.
  Reference: evcohen/eslint-plugin-jsx-a11y@24b6193

* Replace 'jsx-a11y/onclick-has-focus' with 'jsx-a11y/interactive-supports-focus'
  Reference: evcohen/eslint-plugin-jsx-a11y@cbdfeb8

* Replace 'jsx-a11y/onclick-has-role' with 'jsx-a11y/no-noninteractive-element-interactions'
  Reference: evcohen/eslint-plugin-jsx-a11y@18c9b71

* Update eslint-plugin-jsx-a11y to 5.0.0

Follow the change in Code Climate. Make sure the same eslintrc
can be executed locally and in Code Climate.

* Convert .eslintrc.json to equivlant .eslintrc.yml

* Less quotes and commas, more readability, allow comment.
2017-05-06 21:26:54 +02:00
Nolan Lawson
e1ac334a48 remove preset-es2015 from babel config () 2017-05-06 21:25:26 +02:00
Nolan Lawson
475c467847 switch uglify to compress:true,mangle:true () 2017-05-06 21:24:59 +02:00
Koala Yeung
582dcf4ff6 Fix Croatian localedata issues in mastodon.js ()
* locale: added hr and oc react-intl locale data

* adds Croatian locale data in mastodon.js
* adds Occitan locale data in mastodon.js

Resolves 

* locale: sort locale data imports in mastodon.js

* locale: remove oc reference

* [react-intl](https://github.com/yahoo/react-intl) does not provide
  default locale data for Occitan. Hence removed from reference.
2017-05-06 17:30:48 +02:00
Eshin Kunishima
0a9c2152c9 Replace ws with uws ()
* Replace ws with uws

* fix indent

* Adjust indentation

* remove trailing space
2017-05-06 17:05:38 +02:00
Yamagishi Kazutoshi
0682e4fe1a Remove final newline in generated locale files () 2017-05-06 17:05:25 +02:00
Koala Yeung
d9cfc5c821 translateionRunner: improve minimalist options ()
* translateionRunner: improve minimalist options

* Properly added flags.
* Added alias: -h, -f

* translationRunner: improve logic and flow

* Show all error messages instead of validate availability / name
  format separately.

* translationRunner: check messageDirectory existance

* translationRunner: changed throw string to Error

* translationRunner: use short cut for boolean
2017-05-06 17:05:13 +02:00
Yamagishi Kazutoshi
7b3424004d Add Japanese tranlsation for getting started, and run manage:tranlation ()
* Add Japanese tranlsation for getting started, and run manage:tranlation

* remove unnecessary {apps}
2017-05-06 17:04:53 +02:00
alpaca-tc
1f1ce0291f Refactor domain_blocks_controller ()
* Set domain_block by before_action

* Cast value with ActiveRecord::Type

* Batch update
2017-05-06 17:03:34 +02:00
m4sk1n
f0ea743fdb i18n: corrected Polish translation () 2017-05-06 16:41:46 +02:00
rch850
4a930bd556 Use null as default oEmbed height ()
Height 640 is too big for most toots.
Twitter use null value to support flexible height.
2017-05-06 16:31:43 +02:00
alpaca-tc
0f6ae77634 Optimize MuteService and AfterBlockService () 2017-05-06 16:31:07 +02:00
jeroenpraat
0b662eb783 Added support options to the bottom right ()
* Added support options to the bottom right

I don't know if this is actually wanted, but I made these changes on my instance, so why not share it. Not wanted? No problem! BTW: Maybe the Mastodon image should leave here, cause there is no space left cause of the increased height of the getting started column.

* 2 paragraphs looks cleaner

* Update

* Good morning
2017-05-06 13:43:43 +02:00
Matt Jankowski
7d8b674ef6 Version bumps for gems ()
* Update aws-sdk to version 2.9.15

* Update ox to version 2.5.0

* Update sidekiq-unique-jobs to version 5.0.8

* Update rspec-rails to version 3.6.0
2017-05-06 13:37:07 +02:00
Eugen Rochko
78b890cc81 Fix Scheduler::SubscriptionsScheduler ()
* Fix Scheduler::SubscriptionsScheduler, add worker test for it

* Change production log level of Sidekiq to "warn" instead of "info"
2017-05-06 13:05:03 +02:00
alpaca-tc
2bb3b70454 Handling failed http response () 2017-05-06 12:55:59 +02:00
m4sk1n
bb6176d36a i18n: Updated Polish translation ()
* i18n: updated Polish translation

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>

* i18n: completed Polish translation

Signed-off-by: Marcin Mikołajczak <m4sk1n@vivaldi.net>
2017-05-06 11:06:55 +02:00
Nolan Lawson
63ad61a2b6 remove legacy decorators, use lodash.debounce () 2017-05-06 11:05:32 +02:00
Yamagishi Kazutoshi
842f4fab9f Move babel-plugin-lodash to dependencies from devDependencies () 2017-05-06 11:04:55 +02:00
Nolan Lawson
a56fc930ae remove unnecessary buffer polyfill () 2017-05-06 11:02:19 +02:00
Nolan Lawson
7a874f1f98 separate .babelrc for prod/dev, add babel-plugin-lodash () 2017-05-06 04:18:23 +02:00
Koala Yeung
b1f14a1c7f Streamline javascript translation by improving translationRunner ()
* package.json: Add "build:*" targets

* Improve react-intl-translations-manager workflow.
  * Added "build:production" to build production bundle.
  * Added "build:development" to build development bundle.

* Fix json translation files

* Run `yarn manage:translations` to fix translation files.
* Fix `pl.json` for syntax error.

* translationRunner: auto detect existing languages

* Auto detect existing rfc5646 language tag in *.json filenames
  in `app/javascript/mastodon/locale` folder. No need to manually
  define every new language in the languages array here.

* translationRunner: add more functionality

* Allow script user to specify language code to check.
* Added available language check.
* Added --force flag to force creation of unexists language.
* Added --help flag and help messages.

* gitignore: ignore npm-debug.log

* Fix webpack error if NODE_ENV is not defined

Default to use 'development' in config/webpack/configuration.js
2017-05-06 04:05:38 +02:00
alpaca-tc
102c829f16 Optimize follower_accounts and following_accounts () 2017-05-06 04:03:07 +02:00
Matt Jankowski
05b8a950c6 Stream entry specs and refactor to use delegate ()
* Add coverage for stream entry delegated methods

* Use delegate with allow_nil to clean up stream entry
2017-05-06 04:00:21 +02:00
gentaro
d97e0e05e7 Added japanese version of terms of service and privacy policy ()
* Added japanese version of terms of service and privacy policy

* Fix typo

* Add trasnlation for title.

* Improve translation and update the date.
2017-05-06 02:23:22 +02:00
haoyayoi
48fa8ca930 add docker-compose.override to gitignore () 2017-05-05 23:52:35 +02:00
Matt Jankowski
b6b297a297 Move account header and avatar methods to a concern () 2017-05-05 21:37:02 +02:00
alpaca-tc
3ceb700ea2 Fixes unknown mime type () 2017-05-05 21:32:14 +02:00
alpaca-tc
672de1c21e Fixes propTypes warning introduced by () 2017-05-05 21:31:20 +02:00
Matt Jankowski
5393dbf4a2 Misc spec coverage improvements ()
* Dont use raise_error by itself (avoids warning)

* Add coverage for AccountFilter

* Improve coverage and refactor for Subscription#lease_seconds

* Improve coverage and refactor for NotificationMailer

* Simplify assignment of min/max threshold on subscription
2017-05-05 14:56:00 -04:00
masarakki
23bf01bcd6 use Twitter::Extractor for creating links () 2017-05-05 19:48:22 +02:00
Koala Yeung
b1e1acde70 Minor fix in Travis config with bundler call ()
* Travis: Fix bundler_args

`bundler_args` is not functional if using custom install script
in `.travis.yml`. Directly attach the argument to the install script.

* Travis: Run i18n-tasks through bundle exec

Parallel to similar scripts in the same travis config.
More resiliant to changes in configuration.

* Travis: bundler vendor directory

Travis + rvm seems to ignore `.bundle/config` and hence use rvm
global vendor directory by default. Adding `--path` will fix this
and hence make `cache.bundler = true` really functional.

* Travis: disable bundler cache

No significant change in build time. Huge cache. Best disabled.
2017-05-05 18:52:15 +02:00
Koala Yeung
79d3ce1408 Update Locale zh-HK ()
* locale: Add missing translation in zh-HK.yml

* locale: fix consistancy in zh-HK.yml translation

* locale: Improve zh-HK yml translations

* Use "PuSH" in all "PubSubHubBub" occurances.
* Simplify text on front page.
* Improve doorkeeper authorization table translations.
* Simplify setting form text for better layout.
* Improve "Business Email" translation.

* locale: Update zh-HK.json

* Fix untranslated text.
* Improve translations.
2017-05-05 18:48:54 +02:00
Yamagishi Kazutoshi
233b0e973e Run manage:translations () 2017-05-05 18:46:51 +02:00
Matt Jankowski
dc50a231de Add specs (and refactor) of FetchRemoteResourceService and SearchService ()
* Coverage for fetch remote resource service

* Refactor fetch remote resource service

* Coverage for search service

* Refactor search service
2017-05-05 17:26:04 +02:00
Yamagishi Kazutoshi
71d44fd9a9 Add Japanese translate to home column when inactive () 2017-05-05 17:25:42 +02:00