forked from born2net/studio-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.js
246 lines (243 loc) · 9.15 KB
/
init.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/**
Require js initialization module definition file for StudioLite
@class Require init js
**/
require.config({
waitSeconds: 45,
baseUrl: '/_studiolite-dev/',
paths: {
'Elements': 'Elements',
'Events': 'Events',
'jquery': '_common/_jquery/std/jq1.9.1/jquery-1.9.1',
'jqueryui': '_common/_jquery/std/jq1.10.1/jquery-ui-1.10.1',
'backbone': '_common/_js/backbone/backbone',
'backbone.controller': '_common/_js/backbone-controller/backbone.controller',
'underscore': '_common/_js/underscore/underscore',
'text': '_common/_js/requirejs/text',
'video': '_common/_js/video/video.dev',
'bootstrapfileinput': '_common/_js/bootstrapfileinput/bootstrapfileinput',
'bootstrap': '_common/_js/bootstrap/js/bootstrap',
'platform': '_common/_js/platform/platform',
'fabric': '_common/_js/fabric/fabric.require',
'bootbox': '_common/_js/bootbox/bootbox',
'Cookie': '_common/_js/cookie/jquery.cookie',
'gradient': '_common/_js/gradient/jquery.gradientPicker',
'minicolors': '_common/_js/minicolors/jquery.minicolors',
'colorpicker': '_common/_js/gradient/colorpicker',
'timepicker': '_common/_js/timepicker/bootstrap-timepicker',
'datepicker': '_common/_js/datepicker/bootstrap-datepicker',
'highcharts': '_common/_js/highcharts/highcharts',
'flashdetect': '_common/_js/flashdetect/flashdetect',
'TimelineMax': '_common/_js/gsap/TimelineMax',
'TweenMax': '_common/_js/gsap/TweenMax',
'TweenLite': '_common/_js/gsap/TweenLite',
'Draggable': '_common/_js/gsap/utils/Draggable',
'RC4': '_common/_js/rc4/RC4',
'RC4V2': '_common/_js/rc4/RC4V2',
'localizer': '_common/_js/localizer/dist/jquery.localize',
'spinner': '_common/_js/fuelux/src/spinner',
'contextmenu': '_common/_js/contextmenu/bootstrap-contextmenu',
'simplestorage': '_common/_js/simplestorage/simpleStorage',
'nouislider': '_common/_js/nouislider/jquery.nouislider',
'XDate': '_common/_js/xdate/xdate',
'Base64': '_common/_js/base64/jquery.base64',
'Knob': '_common/_js/knob/jquery.knob',
'TouchPunch': '_common/_js/touchpunch/TouchPunch',
'X2JS': '_common/_js/x2js/xml2json',
'LayoutRouter': '_controllers/LayoutRouter',
'ComBroker': '_controllers/ComBroker',
'ScreenTemplateFactory': '_controllers/ScreenTemplateFactory',
'BlockFactory': '_controllers/BlockFactory',
'AppAuth': '_controllers/AppAuth',
'Timeline': '_controllers/Timeline',
'Channel': '_controllers/Channel',
'Block': '_controllers/_blocks/Block',
'BlockScene': '_controllers/_blocks/BlockScene',
'BlockRSS': '_controllers/_blocks/BlockRSS',
'BlockQR': '_controllers/_blocks/BlockQR',
'BlockYouTube': '_controllers/_blocks/BlockYouTube',
'BlockTwitter': '_controllers/_blocks/BlockTwitter',
'BlockTwitterItem': '_controllers/_blocks/BlockTwitterItem',
'BlockVideo': '_controllers/_blocks/BlockVideo',
'BlockImage': '_controllers/_blocks/BlockImage',
'BlockExtImage': '_controllers/_blocks/BlockExtImage',
'BlockExtVideo': '_controllers/_blocks/BlockExtVideo',
'BlockClock': '_controllers/_blocks/BlockClock',
'BlockHTML': '_controllers/_blocks/BlockHTML',
'BlockLabel': '_controllers/_blocks/BlockLabel',
'BlockMRSS': '_controllers/_blocks/BlockMRSS',
'StackView': '_views/StackView',
'DashboardView': '_views/DashboardView',
'NavigationView': '_views/NavigationView',
'WaitView': '_views/WaitView',
'TutorialView': '_views/TutorialView',
'BarMeterView': '_views/BarMeterView',
'SceneSliderView': '_views/_scenes/SceneSliderView',
'SceneLoaderView': '_views/_scenes/SceneLoaderView',
'SceneSelectionView': '_views/_scenes/SceneSelectionView',
'SceneEditorView': '_views/_scenes/SceneEditorView',
'ScenesToolbarView': '_views/_scenes/ScenesToolbarView',
'ResourceListView': '_views/ResourceListView',
'ResourcesLoaderView': '_views/ResourcesLoaderView',
'AddBlockView': '_views/AddBlockView',
'BlockProperties': '_views/BlockProperties',
'FontSelector': '_views/FontSelector',
'DimensionProps': '_views/DimensionProps',
'AppContentFaderView': '_views/AppContentFaderView',
'AppEntryFaderView': '_views/AppEntryFaderView',
'LoginView': '_views/LoginView',
'LivePreView': '_views/LivePreView',
'StorylineView': '_views/StorylineView',
'StationsViewLoader': '_views/StationsViewLoader',
'StationsListView': '_views/StationsListView',
'SettingsView': '_views/SettingsView',
'ProStudioView': '_views/ProStudioView',
'HelpView': '_views/HelpView',
'InstallView': '_views/InstallView',
'LogoutView': '_views/LogoutView',
'PropertiesView': '_views/PropertiesView',
'CampaignManagerView': '_views/CampaignManagerView',
'CampaignSliderStackView': '_views/CampaignSliderStackView',
'CampaignSelectorView': '_views/CampaignSelectorView',
'CampaignNameSelectorView': '_views/CampaignNameSelectorView',
'ResolutionSelectorView': '_views/ResolutionSelectorView',
'OrientationSelectorView': '_views/OrientationSelectorView',
'ScreenLayoutSelectorView': '_views/ScreenLayoutSelectorView',
'ScreenLayoutEditorView': '_views/ScreenLayoutEditorView',
'LanguageSelectorView': '_views/LanguageSelectorView',
'CampaignView': '_views/CampaignView',
'SequencerView': '_views/SequencerView',
'ChannelListView': '_views/ChannelListView',
'PopModalView': '_views/PopModalView',
'RSSLinks': '_views/RSSLinks',
'MRSSLinks': '_views/MRSSLinks',
'StationsCollection': '_collections/StationsCollection',
'StationModel': '_models/StationModel',
'Lib': '_libs/Lib',
'ScreenTemplate': '_libs/ScreenTemplate',
'Pepper': '_libs/Pepper',
'PepperHelper': '_libs/PepperHelper',
'FasterQView': '_views/_fasterQ/FasterQView',
'FasterQNavigationView': '_views/_fasterQ/FasterQNavigationView',
'FasterQManagerView': '_views/_fasterQ/FasterQManagerView',
'FasterQCreatorView': '_views/_fasterQ/FasterQCreatorView',
'Fonts': '_libs/Fonts'
//'AjaxRPC': '_controllers/AjaxRPC',
//'AjaxJsonGetter': '_controllers/AjaxJsonGetter',
},
shim: {
'Elements': {
exports: 'Elements'
},
'Events': {
exports: 'Events'
},
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'backbone.controller': {
deps: ['underscore', 'jquery']
},
'LayoutRouter': {
deps: ['backbone.controller']
},
'Lib': {
deps: ['backbone', 'jquery']
},
'sdk': {
exports: 'sdk'
},
'highcharts': {
deps: ['jquery'],
exports: 'highcharts'
},
'underscore': {
exports: '_'
},
'TweenMax': {
exports: 'TweenMax'
},
'TweenLite': {
exports: 'TweenLite'
},
'TimelineMax': {
dep: ['TweenLite'],
exports: 'TimelineMax'
},
'Draggable': {
exports: 'Draggable'
},
'bootstrap': {
deps: ['jquery']
},
'bootbox': {
deps: ['jquery'],
exports: 'bootbox'
},
'timepicker': {
exports: 'timepicker'
},
'datepicker': {
exports: 'datepicker'
},
'AppAuth': {
deps: ['RC4', 'Cookie']
},
'X2JS': {
exports: 'X2JS'
},
'RC4': {
exports: 'RC4'
},
'RC4V2': {
exports: 'RC4V2'
},
'nouislider': {
exports: 'nouislider'
},
'Knob': {
exports: 'knob'
},
'TouchPunch': {
exports: 'TouchPunch',
deps: ['jqueryui']
},
'ComBroker': {
deps: ['backbone', 'jquery']
},
'Pepper': {
deps: ['jquery', 'Base64', 'RC4V2'],
exports: 'Pepper'
},
'PepperHelper': {
exports: 'PepperHelper'
},
'Base64': {
deps: ['jquery'],
exports: 'base64'
},
'ScreenTemplate': {
exports: 'ScreenTemplate'
},
'colorpicker': {
deps: ['jquery', 'jqueryui'],
exports: 'colorpicker'
},
'minicolors': {
deps: ['jquery'],
exports: 'minicolors'
},
'gradient': {
deps: ['jquery', 'colorpicker', 'jqueryui']
}
}
});
if (window.location.href.indexOf('dist') > -1) {
requirejs.onError = function (err) {
console.log('require js error ' + err);
}
}
require(['StudioLite'], function (StudioLite) {
new StudioLite();
});