sforkowany z mirror/soapbox
Merge branch 'gabsocial' into 'master'
gabsocial --> soapbox paths See merge request soapbox-pub/soapbox-fe!34stable/1.0.x
commit
14f673cf7f
|
@ -194,7 +194,7 @@ module.exports = {
|
||||||
{
|
{
|
||||||
devDependencies: [
|
devDependencies: [
|
||||||
'webpack/**',
|
'webpack/**',
|
||||||
'app/gabsocial/test_setup.js',
|
'app/soapbox/test_setup.js',
|
||||||
'app/**/__tests__/**',
|
'app/**/__tests__/**',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
files:
|
files:
|
||||||
include: app/styles/**/*.scss
|
include: app/styles/**/*.scss
|
||||||
ignore:
|
ignore:
|
||||||
- app/styles/gabsocial/reset.scss
|
- app/styles/soapbox/reset.scss
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Disallows
|
# Disallows
|
||||||
|
|
|
@ -22,6 +22,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="app-body">
|
<body class="app-body">
|
||||||
<noscript>To use Soapbox, please enable JavaScript.</noscript>
|
<noscript>To use Soapbox, please enable JavaScript.</noscript>
|
||||||
<div class="app-holder" id="gabsocial"></div>
|
<div class="app-holder" id="soapbox"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import loadPolyfills from '../gabsocial/load_polyfills';
|
import loadPolyfills from '../soapbox/load_polyfills';
|
||||||
import { start } from '../gabsocial/common';
|
import { start } from '../soapbox/common';
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
function loaded() {
|
function loaded() {
|
||||||
const TimelineContainer = require('../gabsocial/containers/timeline_container').default;
|
const TimelineContainer = require('../soapbox/containers/timeline_container').default;
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
const mountNode = document.getElementById('gabsocial-timeline');
|
const mountNode = document.getElementById('soapbox-timeline');
|
||||||
|
|
||||||
if (mountNode !== null) {
|
if (mountNode !== null) {
|
||||||
const props = JSON.parse(mountNode.getAttribute('data-props'));
|
const props = JSON.parse(mountNode.getAttribute('data-props'));
|
||||||
|
@ -18,7 +18,7 @@ function loaded() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const ready = require('../gabsocial/ready').default;
|
const ready = require('../soapbox/ready').default;
|
||||||
ready(loaded);
|
ready(loaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import loadPolyfills from '../gabsocial/load_polyfills';
|
import loadPolyfills from '../soapbox/load_polyfills';
|
||||||
import { start } from '../gabsocial/common';
|
import { start } from '../soapbox/common';
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
loadPolyfills().then(() => {
|
loadPolyfills().then(() => {
|
||||||
require('../gabsocial/main').default();
|
require('../soapbox/main').default();
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import escapeTextContentForBrowser from 'escape-html';
|
import escapeTextContentForBrowser from 'escape-html';
|
||||||
import loadPolyfills from '../gabsocial/load_polyfills';
|
import loadPolyfills from '../soapbox/load_polyfills';
|
||||||
import ready from '../gabsocial/ready';
|
import ready from '../soapbox/ready';
|
||||||
import { start } from '../gabsocial/common';
|
import { start } from '../soapbox/common';
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ window.addEventListener('message', e => {
|
||||||
function main() {
|
function main() {
|
||||||
const IntlMessageFormat = require('intl-messageformat').default;
|
const IntlMessageFormat = require('intl-messageformat').default;
|
||||||
import('intl-pluralrules'); // eslint-disable-line
|
import('intl-pluralrules'); // eslint-disable-line
|
||||||
const { timeAgoString } = require('../gabsocial/components/relative_timestamp');
|
const { timeAgoString } = require('../soapbox/components/relative_timestamp');
|
||||||
const { delegate } = require('rails-ujs');
|
const { delegate } = require('rails-ujs');
|
||||||
const emojify = require('../gabsocial/features/emoji/emoji').default;
|
const emojify = require('../soapbox/features/emoji/emoji').default;
|
||||||
const { getLocale } = require('../gabsocial/locales');
|
const { getLocale } = require('../soapbox/locales');
|
||||||
const { messages } = getLocale();
|
const { messages } = getLocale();
|
||||||
//(Rjc) 2019-05-24 defined but never used
|
//(Rjc) 2019-05-24 defined but never used
|
||||||
// const React = require('react');
|
// const React = require('react');
|
||||||
|
@ -85,7 +85,7 @@ function main() {
|
||||||
const reactComponents = document.querySelectorAll('[data-component]');
|
const reactComponents = document.querySelectorAll('[data-component]');
|
||||||
|
|
||||||
if (reactComponents.length > 0) {
|
if (reactComponents.length > 0) {
|
||||||
import(/* webpackChunkName: "containers/media_container" */ '../gabsocial/containers/media_container')
|
import(/* webpackChunkName: "containers/media_container" */ '../soapbox/containers/media_container')
|
||||||
.then(({ default: MediaContainer }) => {
|
.then(({ default: MediaContainer }) => {
|
||||||
[].forEach.call(reactComponents, (component) => {
|
[].forEach.call(reactComponents, (component) => {
|
||||||
[].forEach.call(component.children, (child) => {
|
[].forEach.call(component.children, (child) => {
|
||||||
|
@ -155,7 +155,7 @@ function main() {
|
||||||
href = e.target.href;
|
href = e.target.href;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.open(href, 'gabsocial-intent', 'width=445,height=600,resizable=no,menubar=no,status=no,scrollbars=yes');
|
window.open(href, 'soapbox-intent', 'width=445,height=600,resizable=no,menubar=no,status=no,scrollbars=yes');
|
||||||
});
|
});
|
||||||
|
|
||||||
delegate(document, '#account_display_name', 'input', ({ target }) => {
|
delegate(document, '#account_display_name', 'input', ({ target }) => {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import loadPolyfills from '../gabsocial/load_polyfills';
|
import loadPolyfills from '../soapbox/load_polyfills';
|
||||||
import { start } from '../gabsocial/common';
|
import { start } from '../soapbox/common';
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
||||||
function loaded() {
|
function loaded() {
|
||||||
const ComposeContainer = require('../gabsocial/containers/compose_container').default;
|
const ComposeContainer = require('../soapbox/containers/compose_container').default;
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
const mountNode = document.getElementById('gabsocial-compose');
|
const mountNode = document.getElementById('soapbox-compose');
|
||||||
|
|
||||||
if (mountNode !== null) {
|
if (mountNode !== null) {
|
||||||
const props = JSON.parse(mountNode.getAttribute('data-props'));
|
const props = JSON.parse(mountNode.getAttribute('data-props'));
|
||||||
|
@ -18,7 +18,7 @@ function loaded() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const ready = require('../gabsocial/ready').default;
|
const ready = require('../soapbox/ready').default;
|
||||||
ready(loaded);
|
ready(loaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import api from '../api';
|
import api from '../api';
|
||||||
import { showAlert, showAlertForError } from 'gabsocial/actions/alerts';
|
import { showAlert, showAlertForError } from 'soapbox/actions/alerts';
|
||||||
import { fetchMe } from 'gabsocial/actions/me';
|
import { fetchMe } from 'soapbox/actions/me';
|
||||||
|
|
||||||
export const AUTH_APP_CREATED = 'AUTH_APP_CREATED';
|
export const AUTH_APP_CREATED = 'AUTH_APP_CREATED';
|
||||||
export const AUTH_APP_AUTHORIZED = 'AUTH_APP_AUTHORIZED';
|
export const AUTH_APP_AUTHORIZED = 'AUTH_APP_AUTHORIZED';
|
|
@ -1,6 +1,6 @@
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { showAlertForError } from './alerts';
|
import { showAlertForError } from './alerts';
|
||||||
import { patchMe } from 'gabsocial/actions/me';
|
import { patchMe } from 'soapbox/actions/me';
|
||||||
import { Map as ImmutableMap } from 'immutable';
|
import { Map as ImmutableMap } from 'immutable';
|
||||||
|
|
||||||
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
export const SETTING_CHANGE = 'SETTING_CHANGE';
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
|
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { getSettings } from 'gabsocial/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
animate: getSettings(state).get('autoPlayGif'),
|
animate: getSettings(state).get('autoPlayGif'),
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { getSettings } from 'gabsocial/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
animate: getSettings(state).get('autoPlayGif'),
|
animate: getSettings(state).get('autoPlayGif'),
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { getSettings } from 'gabsocial/actions/settings';
|
import { getSettings } from 'soapbox/actions/settings';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
animate: getSettings(state).get('autoPlayGif'),
|
animate: getSettings(state).get('autoPlayGif'),
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
export default class ColumnBackButton extends React.PureComponent {
|
export default class ColumnBackButton extends React.PureComponent {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import ColumnBackButton from './column_back_button';
|
import ColumnBackButton from './column_back_button';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
export default class ColumnBackButtonSlim extends ColumnBackButton {
|
export default class ColumnBackButtonSlim extends ColumnBackButton {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { injectIntl, defineMessages } from 'react-intl';
|
import { injectIntl, defineMessages } from 'react-intl';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
|
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { ALLOWED_EMOJI } from 'gabsocial/utils/emoji_reacts';
|
import { ALLOWED_EMOJI } from 'soapbox/utils/emoji_reacts';
|
||||||
import emojify from 'gabsocial/features/emoji/emoji';
|
import emojify from 'soapbox/features/emoji/emoji';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
export default class EmojiSelector extends React.Component {
|
export default class EmojiSelector extends React.Component {
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { isIOS } from 'gabsocial/is_mobile';
|
import { isIOS } from 'soapbox/is_mobile';
|
||||||
|
|
||||||
export default class ExtendedVideoPlayer extends React.PureComponent {
|
export default class ExtendedVideoPlayer extends React.PureComponent {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { injectIntl, defineMessages } from 'react-intl';
|
import { injectIntl, defineMessages } from 'react-intl';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { fetchLists } from 'gabsocial/actions/lists';
|
import { fetchLists } from 'soapbox/actions/lists';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
|
@ -3,8 +3,8 @@ import Motion from '../features/ui/util/optional_motion';
|
||||||
import spring from 'react-motion/lib/spring';
|
import spring from 'react-motion/lib/spring';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import emojify from 'gabsocial/features/emoji/emoji';
|
import emojify from 'soapbox/features/emoji/emoji';
|
||||||
|
|
||||||
export default class IconButton extends React.PureComponent {
|
export default class IconButton extends React.PureComponent {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { shortNumberFormat } from 'gabsocial/utils/numbers';
|
import { shortNumberFormat } from 'soapbox/utils/numbers';
|
||||||
|
|
||||||
const IconWithBadge = ({ id, count, className }) => {
|
const IconWithBadge = ({ id, count, className }) => {
|
||||||
if (count < 1) return null;
|
if (count < 1) return null;
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { injectIntl, defineMessages } from 'react-intl';
|
import { injectIntl, defineMessages } from 'react-intl';
|
||||||
import Icon from 'gabsocial/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
|
load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
|
Some files were not shown because too many files have changed in this diff Show More
Ładowanie…
Reference in New Issue