diff options
author | Shlee <github@shl.ee> | 2020-03-21 10:14:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 03:14:50 +0100 |
commit | 221eda646b09a5d993a999d000af9de6c7f25b50 (patch) | |
tree | bcfe11e8605c908606d77ef871cb355f798b78fd /app/javascript | |
parent | 44292a6952cfa1e87137eaecbd41269b35105a60 (diff) |
Migrate Rails ujs as required for Rails 6 Upgrade. (#13280)
* Update yarn.lock * Update package.json * Update public.js * Update admin.js * Update log_out.js * Update common.js
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/common.js | 2 | ||||
-rw-r--r-- | app/javascript/mastodon/utils/log_out.js | 2 | ||||
-rw-r--r-- | app/javascript/packs/admin.js | 2 | ||||
-rw-r--r-- | app/javascript/packs/public.js | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/mastodon/common.js b/app/javascript/mastodon/common.js index fba21316a..6818aa5d5 100644 --- a/app/javascript/mastodon/common.js +++ b/app/javascript/mastodon/common.js @@ -1,4 +1,4 @@ -import Rails from 'rails-ujs'; +import Rails from '@rails/ujs'; export function start() { require('font-awesome/css/font-awesome.css'); diff --git a/app/javascript/mastodon/utils/log_out.js b/app/javascript/mastodon/utils/log_out.js index b43417f4b..3a4cc8ecb 100644 --- a/app/javascript/mastodon/utils/log_out.js +++ b/app/javascript/mastodon/utils/log_out.js @@ -1,4 +1,4 @@ -import Rails from 'rails-ujs'; +import Rails from '@rails/ujs'; export const logOut = () => { const form = document.createElement('form'); diff --git a/app/javascript/packs/admin.js b/app/javascript/packs/admin.js index b318cadc6..061287f89 100644 --- a/app/javascript/packs/admin.js +++ b/app/javascript/packs/admin.js @@ -1,4 +1,4 @@ -import { delegate } from 'rails-ujs'; +import { delegate } from '@rails/ujs'; import ready from '../mastodon/ready'; const batchCheckboxClassName = '.batch-checkbox input[type="checkbox"]'; diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js index 2fb9cb29d..8ba4f6ee0 100644 --- a/app/javascript/packs/public.js +++ b/app/javascript/packs/public.js @@ -25,7 +25,7 @@ window.addEventListener('message', e => { function main() { const IntlMessageFormat = require('intl-messageformat').default; const { timeAgoString } = require('../mastodon/components/relative_timestamp'); - const { delegate } = require('rails-ujs'); + const { delegate } = require('@rails/ujs'); const emojify = require('../mastodon/features/emoji/emoji').default; const { getLocale } = require('../mastodon/locales'); const { messages } = getLocale(); |