source: indico/indico/web/assets.py @ 7263ff

hello-world-walkthroughipv6v0.99v1.0v1.1
Last change on this file since 7263ff was 7263ff, checked in by Alberto Resco Perez <alberto.resco.perez@…>, 13 months ago

[FIX] Functional tests

  • Property mode set to 100644
File size: 9.1 KB
Line 
1# -*- coding: utf-8 -*-
2##
3##
4## This file is part of CDS Indico.
5## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
6##
7## CDS Indico is free software; you can redistribute it and/or
8## modify it under the terms of the GNU General Public License as
9## published by the Free Software Foundation; either version 2 of the
10## License, or (at your option) any later version.
11##
12## CDS Indico is distributed in the hope that it will be useful, but
13## WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15## General Public License for more details.
16##
17## You should have received a copy of the GNU General Public License
18## along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
19## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
20
21
22"""
23This file declares all core JS/CSS assets used by Indico
24"""
25
26from webassets import Bundle
27
28
29indico_core = Bundle('js/indico/Core/Presentation.js',
30                     'js/indico/Core/Data.js',
31                     'js/indico/Core/Components.js',
32                     'js/indico/Core/Auxiliar.js',
33                     'js/indico/Core/Buttons.js',
34                     'js/indico/Core/Effects.js',
35                     'js/indico/Core/Interaction/Base.js',
36                     'js/indico/Core/Widgets/Base.js',
37                     'js/indico/Core/Widgets/Inline.js',
38                     'js/indico/Core/Widgets/DateTime.js',
39                     'js/indico/Core/Widgets/Menu.js',
40                     'js/indico/Core/Widgets/RichText.js',
41                     'js/indico/Core/Widgets/Navigation.js',
42                     'js/indico/Core/Widgets/UserList.js',
43                     'js/indico/Core/Dialogs/Popup.js',
44                     'js/indico/Core/Dialogs/Base.js',
45                     'js/indico/Core/Dialogs/Util.js',
46                     'js/indico/Core/Dialogs/Users.js',
47                     'js/indico/Core/Browser.js',
48                     'js/indico/Core/Services.js',
49                     'js/indico/Core/Util.js',
50                     'js/indico/Core/Login.js',
51                     filters='jsmin', output='indico_core_%(version)s.min.js')
52
53indico_management = Bundle('js/indico/Management/ConfModifDisplay.js',
54                           'js/indico/Management/RoomBooking.js',
55                           'js/indico/Management/eventCreation.js',
56                           'js/indico/Management/Timetable.js',
57                           'js/indico/Management/AbstractReviewing.js',
58                           'js/indico/Management/NotificationTPL.js',
59                           'js/indico/Management/Registration.js',
60                           'js/indico/Management/CFA.js',
61                           filters='jsmin', output='indico_management_%(version)s.min.js')
62
63indico_room_booking = Bundle('js/indico/RoomBooking/MapOfRooms.js',
64                             filters='jsmin', output='indico_room_booking_%(version)s.min.js')
65
66indico_admin = Bundle('js/indico/Admin/News.js',
67                      'js/indico/Admin/Upcoming.js',
68                      filters='jsmin', output='indico_admin_%(version)s.min.js')
69
70indico_timetable = Bundle('js/indico/Timetable/Filter.js',
71                          'js/indico/Timetable/Layout.js',
72                          'js/indico/Timetable/Undo.js',
73                          'js/indico/Timetable/Base.js',
74                          'js/indico/Timetable/DragAndDrop.js',
75                          'js/indico/Timetable/Draw.js',
76                          'js/indico/Timetable/Management.js',
77                          filters='jsmin', output='indico_timetable_%(version)s.min.js')
78
79indico_collaboration = Bundle('js/indico/Collaboration/Collaboration.js',
80                              filters='jsmin', output='indico_collaboration_%(version)s.min.js')
81
82indico_legacy = Bundle('js/indico/Legacy/Widgets.js',
83                       'js/indico/Legacy/Dialogs.js',
84                       'js/indico/Legacy/Util.js',
85                       filters='jsmin', output='indico_legacy_%(version)s.min.js')
86
87indico_common = Bundle('js/indico/Common/TimezoneSelector.js',
88                       'js/indico/Common/IntelligentSearchBox.js',
89                       'js/indico/Common/Social.js',
90                       'js/indico/Common/Export.js',
91                       'js/indico/Common/htmlparser.js',
92                       filters='jsmin', output='indico_common_%(version)s.min.js')
93
94indico_materialeditor = Bundle('js/indico/MaterialEditor/Editor.js',
95                               filters='jsmin', output='indico_materialeditor_%(version)s.min.js')
96
97indico_display = Bundle('js/indico/Display/Dialogs.js',
98                        filters='jsmin', output='indico_display_%(version)s.min.js')
99
100indico_jquery = Bundle('js/indico/jquery/defaults.js',
101                       'js/indico/jquery/global.js',
102                        filters='jsmin', output='indico_jquery_%(version)s.min.js')
103
104jquery = Bundle('js/jquery/underscore.js',
105                'js/jquery/jquery.js',
106                'js/jquery/jquery-ui.js',
107                'js/jquery/jquery.form.js',
108                'js/jquery/jquery.custom.js',
109                'js/jquery/jquery.daterange.js',
110                'js/jquery/jquery.form.js',
111                'js/jquery/jquery.qtip.js',
112                'js/jquery/jquery.dttbutton.js',
113                'js/jquery/jquery.colorbox.js',
114                'js/jquery/jquery.menu.js',
115                'js/jquery/date.js',
116                'js/jquery/jquery.multiselect.js',
117                filters='jsmin', output='jquery_code_%(version)s.min.js')
118
119presentation = Bundle('js/jquery/underscore.js',
120                      'js/presentation/Core/Primitives.js',
121                      'js/presentation/Core/Iterators.js',
122                      'js/presentation/Core/Tools.js',
123                      'js/presentation/Core/String.js',
124                      'js/presentation/Core/Type.js',
125                      'js/presentation/Core/Interfaces.js',
126                      'js/presentation/Core/Commands.js',
127                      'js/presentation/Core/MathEx.js',
128                      'js/presentation/Data/Bag.js',
129                      'js/presentation/Data/Watch.js',
130                      'js/presentation/Data/WatchValue.js',
131                      'js/presentation/Data/WatchList.js',
132                      'js/presentation/Data/WatchObject.js',
133                      'js/presentation/Data/Binding.js',
134                      'js/presentation/Data/Logic.js',
135                      'js/presentation/Data/Json.js',
136                      'js/presentation/Data/Remote.js',
137                      'js/presentation/Data/DateTime.js',
138                      'js/presentation/Ui/MimeTypes.js',
139                      'js/presentation/Ui/XElement.js',
140                      'js/presentation/Ui/Html.js',
141                      'js/presentation/Ui/Dom.js',
142                      'js/presentation/Ui/Style.js',
143                      'js/presentation/Ui/Extensions/Lookup.js',
144                      'js/presentation/Ui/Extensions/Layout.js',
145                      'js/presentation/Ui/Text.js',
146                      'js/presentation/Ui/Styles/SimpleStyles.js',
147                      'js/presentation/Ui/Widgets/WidgetBase.js',
148                      'js/presentation/Ui/Widgets/WidgetPage.js',
149                      'js/presentation/Ui/Widgets/WidgetComponents.js',
150                      'js/presentation/Ui/Widgets/WidgetControl.js',
151                      'js/presentation/Ui/Widgets/WidgetEditor.js',
152                      'js/presentation/Ui/Widgets/WidgetTable.js',
153                      'js/presentation/Ui/Widgets/WidgetField.js',
154                      'js/presentation/Ui/Widgets/WidgetEditable.js',
155                      'js/presentation/Ui/Widgets/WidgetMenu.js',
156                      'js/presentation/Ui/Widgets/WidgetGrid.js',
157                      filters='jsmin', output='presentation_%(version)s.min.js')
158
159
160base_js = Bundle(jquery, presentation, indico_core,
161                 indico_legacy, indico_common, indico_jquery)
162
163
164def register_all_js(env):
165    env.register('jquery', jquery)
166    env.register('presentation', presentation)
167    env.register('indico_core', indico_core)
168    env.register('indico_management', indico_management)
169    env.register('indico_room_booking', indico_room_booking)
170    env.register('indico_admin', indico_admin)
171    env.register('indico_timetable', indico_timetable)
172    env.register('indico_legacy', indico_legacy)
173    env.register('indico_common', indico_common)
174    env.register('indico_collaboration', indico_collaboration)
175    env.register('indico_materialeditor', indico_legacy)
176    env.register('indico_display', indico_display)
177    env.register('indico_jquery', indico_jquery)
178    env.register('base_js', base_js)
179
180
181def register_all_css(env, main_css_file):
182    env.register('base_css', Bundle(main_css_file,
183                                    'calendar-blue.css',
184                                    'jquery-ui.css',
185                                    'jquery.qtip.css',
186                                    'jquery.colorbox.css',
187                                    'jquery-ui-custom.css',
188                                    filters=('cssmin'),
189                                    output='base_%(version)s.min.css'))
Note: See TracBrowser for help on using the repository browser.