You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
720 B
25 lines
720 B
import Mastodon from 'mastodon/containers/mastodon'; |
|
import React from 'react'; |
|
import ReactDOM from 'react-dom'; |
|
import Rails from 'rails-ujs'; |
|
import 'font-awesome/css/font-awesome.css'; |
|
import '../styles/application.scss'; |
|
|
|
if (!window.Intl) { |
|
require('intl'); |
|
require('intl/locale-data/jsonp/en.js'); |
|
} |
|
|
|
window.Perf = require('react-addons-perf'); |
|
|
|
Rails.start(); |
|
|
|
require.context('../images/', true); |
|
require.context('../../assets/stylesheets/', false, /custom.*\.scss$/); |
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
const mountNode = document.getElementById('mastodon'); |
|
const props = JSON.parse(mountNode.getAttribute('data-props')); |
|
|
|
ReactDOM.render(<Mastodon {...props} />, mountNode); |
|
});
|
|
|