-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathapp.js
111 lines (108 loc) · 4.25 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import Fluxible from 'fluxible';
import fetchrPlugin from 'fluxible-plugin-fetchr';
import userStoragePlugin from './plugins/UserStorage/userStoragePlugin';
import Application from './components/Application';
import ApplicationStore from './stores/ApplicationStore';
import RouteStore from './stores/RouteStore';
import ContributorsStore from './stores/ContributorsStore';
import DeckPageStore from './stores/DeckPageStore';
import ContentStore from './stores/ContentStore';
import DeckViewStore from './stores/DeckViewStore';
import DeckEditStore from './stores/DeckEditStore';
import SlideViewStore from './stores/SlideViewStore';
import SlideEditStore from './stores/SlideEditStore';
import DataSourceStore from './stores/DataSourceStore';
import TagsStore from './stores/TagsStore';
import ActivityFeedStore from './stores/ActivityFeedStore';
import DeckTreeStore from './stores/DeckTreeStore';
import TranslationStore from './stores/TranslationStore';
import DeckHistoryStore from './stores/DeckHistoryStore';
import SlideHistoryStore from './stores/SlideHistoryStore';
import DiffViewStore from './stores/DiffViewStore';
import ContentUsageStore from './stores/ContentUsageStore';
import ContentQuestionsStore from './stores/ContentQuestionsStore';
import ContentDiscussionStore from './stores/ContentDiscussionStore';
import SimilarContentStore from './stores/SimilarContentStore';
import ContentModulesStore from './stores/ContentModulesStore';
import ImportStore from './stores/ImportStore';
import PresentationStore from './stores/PresentationStore';
import UserNotificationsStore from './stores/UserNotificationsStore';
import UserRegistrationStore from './stores/UserRegistrationStore';
import SearchResultsStore from './stores/SearchResultsStore';
import SearchParamsStore from './stores/SearchParamsStore';
import UserProfileStore from './stores/UserProfileStore';
import ErrorStore from './stores/ErrorStore';
import AddDeckStore from './stores/AddDeckStore';
import ResetPasswordStore from './stores/ResetPasswordStore';
import SendReportStore from './stores/SendReportStore';
import DeckListStore from './stores/DeckListStore';
import ContentActionsFooterStore from './stores/ContentActionsFooterStore';
import IntlStore from './stores/IntlStore';
import AttachSubdeckModalStore from './stores/AttachSubdeckModalStore';
import ServiceErrorStore from './stores/ServiceErrorStore';
import PermissionsStore from './stores/PermissionsStore';
import ContentLikeStore from './stores/ContentLikeStore';
import DeckFamilyStore from './stores/DeckFamilyStore';
import MediaStore from './stores/MediaStore';
import UserReviewStore from './stores/UserReviewStore';
import DeckCollectionStore from './stores/DeckCollectionStore';
import SSOStore from './stores/SSOStore';
import UserPerformancePredictionsStore from './stores/UserPerformancePredictionsStore';
// create new fluxible instance & register all stores
const app = new Fluxible({
component: Application,
stores: [
RouteStore,
ApplicationStore,
DeckPageStore,
ContentStore,
ContributorsStore,
DeckViewStore,
DeckEditStore,
SlideViewStore,
SlideEditStore,
DataSourceStore,
TagsStore,
ActivityFeedStore,
DeckTreeStore,
TranslationStore,
DeckHistoryStore,
SlideHistoryStore,
DiffViewStore,
ContentUsageStore,
ContentQuestionsStore,
ContentDiscussionStore,
SimilarContentStore,
ContentModulesStore,
ImportStore,
PresentationStore,
UserNotificationsStore,
UserRegistrationStore,
SearchResultsStore,
SearchParamsStore,
UserProfileStore,
ErrorStore,
AddDeckStore,
ResetPasswordStore,
SendReportStore,
DeckListStore,
ContentActionsFooterStore,
IntlStore,
AttachSubdeckModalStore,
ServiceErrorStore,
PermissionsStore,
ContentLikeStore,
DeckFamilyStore,
UserReviewStore,
MediaStore,
DeckCollectionStore,
SSOStore,
UserPerformancePredictionsStore
]
});
// register plugins
app.plug(fetchrPlugin({
xhrPath: '/api' // Path for XHR to be served from
}));
app.plug(userStoragePlugin({}));
module.exports = app;