]> cat aescling's git repositories - mastodon.git/commitdiff
satisfy eslint and jest
authorOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 20:24:44 +0000 (22:24 +0200)
committerOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 20:24:44 +0000 (22:24 +0200)
app/javascript/glitch/components/account/header.js
app/javascript/glitch/components/local_settings/container.js
app/javascript/glitch/components/local_settings/index.js
app/javascript/glitch/components/local_settings/navigation/index.js
app/javascript/glitch/components/local_settings/navigation/item/index.js
app/javascript/glitch/components/local_settings/page/index.js
app/javascript/glitch/components/local_settings/page/item/index.js
app/javascript/mastodon/components/__tests__/__snapshots__/avatar-test.js.snap
app/javascript/mastodon/components/__tests__/__snapshots__/avatar_overlay-test.js.snap
app/javascript/packs/application.js
app/javascript/themes/spin/pack.js

index 6359c1775db2c8bd7bb403ec4efaa9b74d168c0d..f4a413aa3c5a65fc5b349ec7765e0e7d2352d58f 100644 (file)
@@ -48,7 +48,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
 import ImmutablePureComponent from 'react-immutable-pure-component';
 
 //  Mastodon imports  //
-import emojify from 'mastodon/features/emoji/emoji';
+import emojify from '../../../mastodon/features/emoji/emoji';
 import IconButton from '../../../mastodon/components/icon_button';
 import Avatar from '../../../mastodon/components/avatar';
 
index 6c202a4e7c5a5c42633188e5e12578ce9218e386..4569db99f496d18e35e7cee768c81533e0005586 100644 (file)
@@ -2,10 +2,10 @@
 import { connect } from 'react-redux';
 
 //  Mastodon imports  //
-import { closeModal } from 'mastodon/actions/modal';
+import { closeModal } from '../../../mastodon/actions/modal';
 
 //  Our imports  //
-import { changeLocalSetting } from 'glitch/actions/local_settings';
+import { changeLocalSetting } from '../../../glitch/actions/local_settings';
 import LocalSettings from '.';
 
 const mapStateToProps = state => ({
index 7f7b93de4c0491ad4f6eccba3fcc94a2b00fdda8..ef711229a2d0baa307a3b9e99b29bc4c579e4b2d 100644 (file)
@@ -8,7 +8,7 @@ import LocalSettingsPage from './page';
 import LocalSettingsNavigation from './navigation';
 
 //  Stylesheet imports
-import './style';
+import './style.scss';
 
 export default class LocalSettings extends React.PureComponent {
 
index 1f72cc8245fcb898bacabaf0e6a32f71bdb99e9b..fa35e83c753a9ca07e00a8408a963c951aa86782 100644 (file)
@@ -7,7 +7,7 @@ import { injectIntl, defineMessages } from 'react-intl';
 import LocalSettingsNavigationItem from './item';
 
 //  Stylesheet imports
-import './style';
+import './style.scss';
 
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
index 1676aa404c0a69b20bb6da4f0a1c65240db2811c..a352d5fb2a7d170a4ade46d555b7dbd3d8dd32d3 100644 (file)
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
 import classNames from 'classnames';
 
 //  Stylesheet imports
-import './style';
+import './style.scss';
 
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
index 338d863334782bd3e5162c42ddef3677717576df..366c113c059bab08eb2eb3256b8387668c9f13c2 100644 (file)
@@ -8,7 +8,7 @@ import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
 import LocalSettingsPageItem from './item';
 
 //  Stylesheet imports
-import './style';
+import './style.scss';
 
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
index 326c7eeb0451248fea74852cc850c33af4f9971c..37e28c08452dcacb70d79cb246c34831d9bab457 100644 (file)
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
 import ImmutablePropTypes from 'react-immutable-proptypes';
 
 //  Stylesheet imports
-import './style';
+import './style.scss';
 
 //  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
index 76ab3374ae84886653ec6719a405c8fb0c2357fa..4005c860f1aecbee128719e68acd9973c15117d8 100644 (file)
@@ -3,6 +3,7 @@
 exports[`<Avatar /> Autoplay renders a animated avatar 1`] = `
 <div
   className="account__avatar"
+  data-avatar-of="@alice"
   onMouseEnter={[Function]}
   onMouseLeave={[Function]}
   style={
@@ -19,6 +20,7 @@ exports[`<Avatar /> Autoplay renders a animated avatar 1`] = `
 exports[`<Avatar /> Still renders a still avatar 1`] = `
 <div
   className="account__avatar"
+  data-avatar-of="@alice"
   onMouseEnter={[Function]}
   onMouseLeave={[Function]}
   style={
index d59fee42f66e5c14cacd0a8d585e92da8983b39f..d9e5e52528adaa1993e27ef1bb33f8b626e55425 100644 (file)
@@ -6,6 +6,7 @@ exports[`<AvatarOverlay renders a overlay avatar 1`] = `
 >
   <div
     className="account__avatar-overlay-base"
+    data-avatar-of="@alice"
     style={
       Object {
         "backgroundImage": "url(/static/alice.jpg)",
@@ -14,6 +15,7 @@ exports[`<AvatarOverlay renders a overlay avatar 1`] = `
   />
   <div
     className="account__avatar-overlay-overlay"
+    data-avatar-of="@eve@blackhat.lair"
     style={
       Object {
         "backgroundImage": "url(/static/eve.jpg)",
index aa94006c63feb75529c62ede7e22b6e90ae2cb32..d275c3bb09c83e6f610181dbbe4e00d9a37eafb9 100644 (file)
@@ -2,7 +2,8 @@ import loadPolyfills from '../mastodon/load_polyfills';
 
 // import default stylesheet with variables
 require('font-awesome/css/font-awesome.css');
-import 'styles/application';
+
+import '../styles/application.scss';
 
 require.context('../images/', true);
 
index dab0e93a4e708a7612867fcb573ed6bf9962fd83..b11ac4802941e8dbfe9c689e304c6ed5222e0fd8 100644 (file)
@@ -1,2 +1,2 @@
-import 'packs/application';
-import 'themes/spin/style';
+import '../../packs/application';
+import './style.scss';
This page took 0.042969 seconds and 3 git commands to generate.