1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Move third party actions/stores to separate dispatcher

This commit is contained in:
Tim Daubenschütz 2015-10-06 16:47:59 +02:00
parent 43a5d8291f
commit 000719e14d
46 changed files with 53 additions and 52 deletions

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import ApplicationFetcher from '../fetchers/application_fetcher'; import ApplicationFetcher from '../fetchers/application_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import CoaFetcher from '../fetchers/coa_fetcher'; import CoaFetcher from '../fetchers/coa_fetcher';
import Q from 'q'; import Q from 'q';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import Q from 'q'; import Q from 'q';
import OwnershipFetcher from '../fetchers/ownership_fetcher'; import OwnershipFetcher from '../fetchers/ownership_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import OwnershipFetcher from '../fetchers/ownership_fetcher'; import OwnershipFetcher from '../fetchers/ownership_fetcher';
import Q from 'q'; import Q from 'q';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import EditionFetcher from '../fetchers/edition_fetcher'; import EditionFetcher from '../fetchers/edition_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import Q from 'q'; import Q from 'q';
import EditionListFetcher from '../fetchers/edition_list_fetcher.js'; import EditionListFetcher from '../fetchers/edition_list_fetcher.js';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
class EventActions { class EventActions {
@ -16,4 +16,4 @@ class EventActions {
} }
} }
export default alt.createActions(EventActions); export default altThirdParty.createActions(EventActions);

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
class GlobalNotificationActions { class GlobalNotificationActions {

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import LicenseFetcher from '../fetchers/license_fetcher'; import LicenseFetcher from '../fetchers/license_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import Q from 'q'; import Q from 'q';
import NotificationFetcher from '../fetchers/notification_fetcher'; import NotificationFetcher from '../fetchers/notification_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import OwnershipFetcher from '../fetchers/ownership_fetcher'; import OwnershipFetcher from '../fetchers/ownership_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import PieceFetcher from '../fetchers/piece_fetcher'; import PieceFetcher from '../fetchers/piece_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import Q from 'q'; import Q from 'q';
import PieceListFetcher from '../fetchers/piece_list_fetcher'; import PieceListFetcher from '../fetchers/piece_list_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import Q from 'q'; import Q from 'q';
import PrizeListFetcher from '../fetchers/prize_list_fetcher'; import PrizeListFetcher from '../fetchers/prize_list_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import UserFetcher from '../fetchers/user_fetcher'; import UserFetcher from '../fetchers/user_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import WalletSettingsFetcher from '../fetchers/wallet_settings_fetcher'; import WalletSettingsFetcher from '../fetchers/wallet_settings_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import WhitelabelFetcher from '../fetchers/whitelabel_fetcher'; import WhitelabelFetcher from '../fetchers/whitelabel_fetcher';

View File

@ -2,4 +2,5 @@
import Alt from 'alt'; import Alt from 'alt';
export default new Alt(); export let alt = new Alt();
export let altThirdParty = new Alt();

View File

@ -4,7 +4,7 @@ import React from 'react';
import Router from 'react-router'; import Router from 'react-router';
import UserActions from '../actions/user_actions'; import UserActions from '../actions/user_actions';
import Alt from '../alt'; import { alt } from '../alt';
import AppConstants from '../constants/application_constants'; import AppConstants from '../constants/application_constants';
let baseUrl = AppConstants.baseUrl; let baseUrl = AppConstants.baseUrl;

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import Q from 'q'; import Q from 'q';
import PrizeFetcher from '../fetchers/prize_fetcher'; import PrizeFetcher from '../fetchers/prize_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import Q from 'q'; import Q from 'q';
import PrizeJuryFetcher from '../fetchers/prize_jury_fetcher'; import PrizeJuryFetcher from '../fetchers/prize_jury_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import Q from 'q'; import Q from 'q';
import PrizeRatingFetcher from '../fetchers/prize_rating_fetcher'; import PrizeRatingFetcher from '../fetchers/prize_rating_fetcher';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import PrizeJuryActions from '../actions/prize_jury_actions'; import PrizeJuryActions from '../actions/prize_jury_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import PrizeRatingActions from '../actions/prize_rating_actions'; import PrizeRatingActions from '../actions/prize_rating_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../../../../alt'; import { alt } from '../../../../alt';
import PrizeActions from '../actions/prize_actions'; import PrizeActions from '../actions/prize_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import ApplicationActions from '../actions/application_actions'; import ApplicationActions from '../actions/application_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import CoaActions from '../actions/coa_actions'; import CoaActions from '../actions/coa_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import ContractAgreementListActions from '../actions/contract_agreement_list_actions'; import ContractAgreementListActions from '../actions/contract_agreement_list_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import ContractListActions from '../actions/contract_list_actions'; import ContractListActions from '../actions/contract_list_actions';

View File

@ -2,7 +2,7 @@
import React from 'react'; import React from 'react';
import alt from '../alt'; import { alt } from '../alt';
import EditionsListActions from '../actions/edition_list_actions'; import EditionsListActions from '../actions/edition_list_actions';
class EditionListStore { class EditionListStore {

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import EditionActions from '../actions/edition_actions'; import EditionActions from '../actions/edition_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import GlobalNotificationActions from '../actions/global_notification_actions'; import GlobalNotificationActions from '../actions/global_notification_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import LicenseActions from '../actions/license_actions'; import LicenseActions from '../actions/license_actions';

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import React from 'react'; import React from 'react';
import alt from '../alt'; import { alt } from '../alt';
import NotificationActions from '../actions/notification_actions'; import NotificationActions from '../actions/notification_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import OwnershipActions from '../actions/ownership_actions'; import OwnershipActions from '../actions/ownership_actions';

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
import React from 'react'; import React from 'react';
import alt from '../alt'; import { alt } from '../alt';
import PieceListActions from '../actions/piece_list_actions'; import PieceListActions from '../actions/piece_list_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import PieceActions from '../actions/piece_actions'; import PieceActions from '../actions/piece_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import PrizeListActions from '../actions/prize_list_actions'; import PrizeListActions from '../actions/prize_list_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import UserActions from '../actions/user_actions'; import UserActions from '../actions/user_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import WalletSettingsActions from '../actions/wallet_settings_actions'; import WalletSettingsActions from '../actions/wallet_settings_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { alt } from '../alt';
import WhitelabelActions from '../actions/whitelabel_actions'; import WhitelabelActions from '../actions/whitelabel_actions';

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions'; import EventActions from '../actions/event_actions';
@ -27,4 +27,4 @@ class DebugHandler {
} }
} }
export default alt.createStore(DebugHandler, 'DebugHandler'); export default altThirdParty.createStore(DebugHandler, 'DebugHandler');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions'; import EventActions from '../actions/event_actions';
class GoogleAnalyticsHandler { class GoogleAnalyticsHandler {
@ -23,4 +23,4 @@ class GoogleAnalyticsHandler {
} }
export default alt.createStore(GoogleAnalyticsHandler, 'GoogleAnalyticsHandler'); export default altThirdParty.createStore(GoogleAnalyticsHandler, 'GoogleAnalyticsHandler');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions'; import EventActions from '../actions/event_actions';
import { getSubdomain } from '../utils/general_utils'; import { getSubdomain } from '../utils/general_utils';
@ -33,4 +33,4 @@ class IntercomHandler {
} }
export default alt.createStore(IntercomHandler, 'IntercomHandler'); export default altThirdParty.createStore(IntercomHandler, 'IntercomHandler');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions'; import EventActions from '../actions/event_actions';
import NotificationActions from '../actions/notification_actions'; import NotificationActions from '../actions/notification_actions';
@ -35,4 +35,4 @@ class NotificationsHandler {
} }
} }
export default alt.createStore(NotificationsHandler, 'NotificationsHandler'); export default altThirdParty.createStore(NotificationsHandler, 'NotificationsHandler');

View File

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import alt from '../alt'; import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions'; import EventActions from '../actions/event_actions';
import Raven from 'raven-js'; import Raven from 'raven-js';
@ -25,4 +25,4 @@ class RavenHandler {
} }
} }
export default alt.createStore(RavenHandler, 'RavenHandler'); export default altThirdParty.createStore(RavenHandler, 'RavenHandler');