mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
react-i18n -> vulcan:i18n
This commit is contained in:
parent
bd192a5488
commit
7e2de51bde
46 changed files with 47 additions and 44 deletions
|
@ -9,7 +9,7 @@ functions, event handlers, etc.).
|
|||
|
||||
import { Components, getRawComponent, replaceComponent }from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage /*, intlShape */ } from 'react-intl';
|
||||
import { FormattedMessage /*, intlShape */ } from 'meteor/vulcan:i18n';
|
||||
|
||||
class CustomNewsletter extends getRawComponent('Newsletter') {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Components, getRawComponent, replaceComponent } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage, FormattedRelative } from 'react-intl';
|
||||
import { FormattedMessage, FormattedRelative } from 'meteor/vulcan:i18n';
|
||||
import { Link } from 'react-router';
|
||||
import Posts from "meteor/vulcan:posts";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import Tracker from 'tracker-component';
|
|||
import { Accounts } from 'meteor/accounts-base';
|
||||
import { KEY_PREFIX } from '../../login_session.js';
|
||||
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import { withApollo } from 'react-apollo';
|
||||
|
||||
import {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { hasPasswordService } from '../../helpers.js';
|
||||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
|
||||
export class AccountsPasswordOrService extends PureComponent {
|
||||
render () {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Components, registerComponent, getFragment, withMessages } from 'meteor/vulcan:core';
|
||||
import Categories from "meteor/vulcan:categories";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ModalTrigger, Components, registerComponent, withList, Utils } from "meteor/vulcan:core";
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Button, DropdownButton, MenuItem } from 'react-bootstrap';
|
||||
import { withRouter } from 'react-router'
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Components, registerComponent, getFragment, withMessages } from 'meteor/vulcan:core';
|
||||
import Categories from "meteor/vulcan:categories";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withCurrentUser, withMessages } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, FormattedMessage, FormattedRelative } from 'react-intl';
|
||||
import { intlShape, FormattedMessage, FormattedRelative } from 'meteor/vulcan:i18n';
|
||||
import Comments from 'meteor/vulcan:comments';
|
||||
|
||||
class CommentsItem extends PureComponent {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const CommentsList = ({comments, commentCount}) => {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Components, registerComponent, getFragment, withMessages } from 'meteor
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Comments from "meteor/vulcan:comments";
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const CommentsNewForm = (props, context) => {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const Footer = props => {
|
||||
return (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withCurrentUser, withMutation, withMessages, Utils } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import Formsy from 'formsy-react';
|
||||
import { Input } from 'formsy-react-components';
|
||||
import { Button } from 'react-bootstrap';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Components, registerComponent, withMutation, withCurrentUser, withMessages, Utils } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Button } from 'react-bootstrap';
|
||||
|
||||
class NewsletterButton extends Component {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent, Components } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import Formsy from 'formsy-react';
|
||||
import FRC from 'formsy-react-components';
|
||||
import { withRouter, Link } from 'react-router'
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import { withVote, hasUpvoted, hasDownvoted } from 'meteor/vulcan:voting';
|
||||
import { /*FormattedMessage,*/ intlShape } from 'react-intl';
|
||||
import { /*FormattedMessage,*/ intlShape } from 'meteor/vulcan:i18n';
|
||||
|
||||
class Vote extends PureComponent {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { withList, withCurrentUser, Components, registerComponent, Utils } from 'meteor/vulcan:core';
|
||||
import Comments from 'meteor/vulcan:comments';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import moment from 'moment';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import Posts from 'meteor/vulcan:posts';
|
||||
import { withCurrentUser, withList, getSetting, Components, getRawComponent, registerComponent } from 'meteor/vulcan:core';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Components, registerComponent, getFragment, withMessages } from 'meteor/vulcan:core';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import Posts from "meteor/vulcan:posts";
|
||||
import { withRouter } from 'react-router'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, ModalTrigger } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, FormattedRelative } from 'react-intl';
|
||||
import { FormattedMessage, FormattedRelative } from 'meteor/vulcan:i18n';
|
||||
import { Link } from 'react-router';
|
||||
import Posts from "meteor/vulcan:posts";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import Posts from 'meteor/vulcan:posts';
|
||||
import { Alert } from 'react-bootstrap';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import classNames from 'classnames';
|
||||
|
||||
const Error = ({error}) => <Alert className="flash-message" bsStyle="danger"><FormattedMessage id={error.id} values={{value: error.value}}/>{error.message}</Alert>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const PostsLoadMore = ({loadMore, count, totalCount}) => {
|
||||
return (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { Button } from 'react-bootstrap';
|
||||
|
||||
const PostsNewButton = (props, context) => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Components, registerComponent, getRawComponent, getFragment, withMessag
|
|||
import Posts from "meteor/vulcan:posts";
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, FormattedMessage } from 'react-intl';
|
||||
import { intlShape, FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { withRouter } from 'react-router'
|
||||
|
||||
const PostsNewForm = (props, context) =>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const PostsNoMore = props => <p className="posts-no-more"><FormattedMessage id="posts.no_more"/></p>;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const PostsNoResults = props => <p className="posts-no-results"><FormattedMessage id="posts.no_results"/></p>;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import Posts from 'meteor/vulcan:posts';
|
|||
import React, { Component, PropTypes } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
class PostsPage extends Component {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { DropdownButton, MenuItem } from 'react-bootstrap';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
import { withRouter } from 'react-router'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Dropdown } from 'react-bootstrap';
|
||||
import { STATES } from 'meteor/vulcan:accounts';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withCurrentUser, withMessages } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { STATES } from 'meteor/vulcan:accounts';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Dropdown, MenuItem } from 'react-bootstrap';
|
||||
import { LinkContainer } from 'react-router-bootstrap';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Components, registerComponent, withDocument, withCurrentUser } from 'meteor/vulcan:core';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { Link } from 'react-router';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|||
import { Modal } from 'react-bootstrap';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { withDocument, Components, registerComponent, withMessages } from 'meteor/vulcan:core';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import { gql } from 'react-apollo';
|
||||
|
||||
const UsersProfileCheck = ({currentUser, document, loading, flash}, context) => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:co
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Link } from 'react-router';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
|
||||
class UsersResetPassword extends PureComponent {
|
||||
componentDidMount() {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { Components, registerComponent, getSetting, Strings } from 'meteor/vulcan:lib';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { IntlProvider, intlShape} from 'react-intl';
|
||||
import { IntlProvider, intlShape} from 'meteor/vulcan:i18n';
|
||||
import withCurrentUser from '../containers/withCurrentUser.js';
|
||||
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
class App extends PureComponent {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { registerComponent } from 'meteor/vulcan:lib';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
|
||||
const Error404 = () => {
|
||||
return (
|
||||
|
|
|
@ -11,6 +11,7 @@ Package.onUse(function(api) {
|
|||
|
||||
api.use([
|
||||
'vulcan:lib@1.4.0',
|
||||
'vulcan:i18n@1.4.0',
|
||||
'vulcan:users@1.4.0',
|
||||
'vulcan:routing@1.4.0'
|
||||
]);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { getSetting, registerComponent, Components } from 'meteor/vulcan:core';
|
||||
|
||||
const renderSetting = key => (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, registerComponent, Utils, getSetting } from 'meteor/vulcan:core';
|
||||
import { withMutation } from 'meteor/vulcan:core';
|
||||
import React, { PropTypes, Component } from 'react';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import FRC from 'formsy-react-components';
|
||||
|
||||
const Input = FRC.Input;
|
||||
|
|
|
@ -25,7 +25,7 @@ This component expects:
|
|||
import { Components, Utils, runCallbacks } from 'meteor/vulcan:core';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n';
|
||||
import Formsy from 'formsy-react';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Flash from "./Flash.jsx";
|
||||
|
|
|
@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import Formsy from 'formsy-react';
|
||||
import FRC from 'formsy-react-components';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import DateTime from './DateTime.jsx';
|
||||
|
||||
// import Utils from './utils.js';
|
||||
|
|
|
@ -26,7 +26,7 @@ component is also added to wait for withDocument's loading prop to be false)
|
|||
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import { withApollo, compose } from 'react-apollo';
|
||||
import { Components, registerComponent, withCurrentUser, Utils, withNew, withEdit, withRemove } from 'meteor/vulcan:core';
|
||||
import Form from './Form.jsx';
|
||||
|
|
|
@ -4,7 +4,7 @@ import './settings.js';
|
|||
import './collections.js';
|
||||
import './deep.js';
|
||||
import './deep_extend.js';
|
||||
import './intl_polyfill.js';
|
||||
// import './intl_polyfill.js';
|
||||
import './graphql.js';
|
||||
import './icons.js';
|
||||
import './mongo_redux.js';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import './oauth_config.js';
|
||||
import './apollo_server.js';
|
||||
import './intl_polyfill.js';
|
||||
|
||||
export * from './meteor_patch.js';
|
||||
export * from '../modules/index.js';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Components, withMessages } from 'meteor/vulcan:core';
|
||||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
|
||||
// this component is used as a custom controller in user's account edit (cf. ./custom_fields.js)
|
||||
class NewsletterSubscribe extends PureComponent {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||
import StripeCheckout from 'react-stripe-checkout';
|
||||
import { Components, registerComponent, getSetting, withCurrentUser, withMessages } from 'meteor/vulcan:core';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
import { intlShape } from 'react-intl';
|
||||
import { intlShape } from 'meteor/vulcan:i18n';
|
||||
import classNames from 'classnames';
|
||||
import withCreateCharge from '../containers/withCreateCharge.js';
|
||||
import { Products } from '../modules/products.js';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { PureComponent } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { intlShape, FormattedMessage } from 'react-intl';
|
||||
import { intlShape, FormattedMessage } from 'meteor/vulcan:i18n';
|
||||
import { compose, graphql } from 'react-apollo';
|
||||
import gql from 'graphql-tag';
|
||||
import Users from 'meteor/vulcan:users';
|
||||
|
|
Loading…
Add table
Reference in a new issue