Upgrading client dependancies. Upgrading to babel 6. Moving to es6 package system.
Этот коммит содержится в:
@@ -1,17 +1,17 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
var LOG_CHANGE_EVENT = 'log_change';
|
||||
var CONFIG_CHANGE_EVENT = 'config_change';
|
||||
var ALL_TEAMS_EVENT = 'all_team_change';
|
||||
const LOG_CHANGE_EVENT = 'log_change';
|
||||
const CONFIG_CHANGE_EVENT = 'config_change';
|
||||
const ALL_TEAMS_EVENT = 'all_team_change';
|
||||
|
||||
class AdminStoreClass extends EventEmitter {
|
||||
constructor() {
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var Utils;
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
var LEAVE_EVENT = 'leave';
|
||||
var MORE_CHANGE_EVENT = 'change';
|
||||
var EXTRA_INFO_EVENT = 'extra_info';
|
||||
const CHANGE_EVENT = 'change';
|
||||
const LEAVE_EVENT = 'leave';
|
||||
const MORE_CHANGE_EVENT = 'change';
|
||||
const EXTRA_INFO_EVENT = 'extra_info';
|
||||
|
||||
class ChannelStoreClass extends EventEmitter {
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
const CHANGE_EVENT = 'change';
|
||||
|
||||
class ErrorStoreClass extends EventEmitter {
|
||||
constructor() {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
const AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
const Constants = require('../utils/constants.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
class ModalStoreClass extends EventEmitter {
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var ChannelStore = require('../stores/channel_store.jsx');
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
var UserStore = require('../stores/user_store.jsx');
|
||||
import ChannelStore from '../stores/channel_store.jsx';
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
import UserStore from '../stores/user_store.jsx';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
var SELECTED_POST_CHANGE_EVENT = 'selected_post_change';
|
||||
var EDIT_POST_EVENT = 'edit_post';
|
||||
var POSTS_VIEW_JUMP_EVENT = 'post_list_jump';
|
||||
const CHANGE_EVENT = 'change';
|
||||
const SELECTED_POST_CHANGE_EVENT = 'selected_post_change';
|
||||
const EDIT_POST_EVENT = 'edit_post';
|
||||
const POSTS_VIEW_JUMP_EVENT = 'post_list_jump';
|
||||
|
||||
class PostStoreClass extends EventEmitter {
|
||||
constructor() {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
const ActionTypes = require('../utils/constants.jsx').ActionTypes;
|
||||
const AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
const BrowserStore = require('./browser_store.jsx');
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const UserStore = require('../stores/user_store.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import BrowserStore from './browser_store.jsx';
|
||||
import EventEmitter from 'events';
|
||||
import UserStore from '../stores/user_store.jsx';
|
||||
|
||||
const CHANGE_EVENT = 'change';
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
const AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
const UserStore = require('./user_store.jsx');
|
||||
const PostStore = require('./post_store.jsx');
|
||||
const ChannelStore = require('./channel_store.jsx');
|
||||
const BrowserStore = require('./browser_store.jsx');
|
||||
const ErrorStore = require('./error_store.jsx');
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import UserStore from './user_store.jsx';
|
||||
import PostStore from './post_store.jsx';
|
||||
import ChannelStore from './channel_store.jsx';
|
||||
import BrowserStore from './browser_store.jsx';
|
||||
import ErrorStore from './error_store.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
const Utils = require('../utils/utils.jsx');
|
||||
const AsyncClient = require('../utils/async_client.jsx');
|
||||
import * as Utils from '../utils/utils.jsx';
|
||||
import * as AsyncClient from '../utils/async_client.jsx';
|
||||
|
||||
const Constants = require('../utils/constants.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
const SocketEvents = Constants.SocketEvents;
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
var BrowserStore = require('../stores/browser_store.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
import BrowserStore from '../stores/browser_store.jsx';
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
const CHANGE_EVENT = 'change';
|
||||
|
||||
var Utils;
|
||||
function getWindowLocationOrigin() {
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import EventEmitter from 'events';
|
||||
|
||||
var Constants = require('../utils/constants.jsx');
|
||||
var ActionTypes = Constants.ActionTypes;
|
||||
var BrowserStore = require('./browser_store.jsx');
|
||||
import Constants from '../utils/constants.jsx';
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
import BrowserStore from './browser_store.jsx';
|
||||
|
||||
var CHANGE_EVENT = 'change';
|
||||
var CHANGE_EVENT_SESSIONS = 'change_sessions';
|
||||
var CHANGE_EVENT_AUDITS = 'change_audits';
|
||||
var CHANGE_EVENT_TEAMS = 'change_teams';
|
||||
var CHANGE_EVENT_STATUSES = 'change_statuses';
|
||||
const CHANGE_EVENT = 'change';
|
||||
const CHANGE_EVENT_SESSIONS = 'change_sessions';
|
||||
const CHANGE_EVENT_AUDITS = 'change_audits';
|
||||
const CHANGE_EVENT_TEAMS = 'change_teams';
|
||||
const CHANGE_EVENT_STATUSES = 'change_statuses';
|
||||
|
||||
class UserStoreClass extends EventEmitter {
|
||||
constructor() {
|
||||
@@ -354,5 +354,4 @@ UserStore.dispatchToken = AppDispatcher.register((payload) => {
|
||||
}
|
||||
});
|
||||
|
||||
global.window.UserStore = UserStore;
|
||||
export default UserStore;
|
||||
export {UserStore as default};
|
||||
|
||||
Ссылка в новой задаче
Block a user