validate projects on user card too
[redakcja.git] / redakcja / settings / compress.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 STATICFILES_FINDERS = (
7     'django.contrib.staticfiles.finders.FileSystemFinder',
8     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
9     # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
10 )
11
12
13 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
14 PIPELINE_CSS_COMPRESSOR = None
15 PIPELINE_JS_COMPRESSOR = None
16 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
17
18
19 # CSS and JS files to compress
20 PIPELINE_CSS = {
21     'detail': {
22         'source_filenames': (
23             'css/master.css',
24             'css/toolbar.css',
25             'css/gallery.css',
26             'css/history.css',
27             'css/summary.css',
28             'css/html.css',
29             'css/jquery.autocomplete.css',
30             'css/dialogs.css',
31         ),
32         'output_filename': 'compressed/detail_styles.css',
33     },
34     'catalogue': {
35         'source_filenames': (
36             # 'css/filelist.css',
37             'css/base.css',
38             'datepicker/css/datepicker.css',
39         ),
40         'output_filename': 'compressed/catalogue_styles.css',
41     },
42     'book': {
43         'source_filenames': (
44             'css/book.css',
45         ),
46         'output_filename': 'compressed/book.css',
47     },
48     'book_list': {
49         'source_filenames': (
50             'contextmenu/jquery.contextMenu.css',
51             'css/book_list.css',
52         ),
53         'output_filename': 'compressed/book_list.css',
54     },
55 }
56
57 PIPELINE_JS = {
58     # everything except codemirror
59     'detail': {
60         'source_filenames': (
61                 # libraries
62                 'js/lib/jquery/jquery.autocomplete.js',
63                 'js/lib/jquery/jquery.blockui.js',
64                 'js/lib/jquery/jquery.elastic.js',
65                 'js/lib/jquery/jquery.xmlns.js',
66                 'js/button_scripts.js',
67                 'js/slugify.js',
68
69                 # wiki scripts
70                 'js/wiki/wikiapi.js',
71                 'js/wiki/xslt.js',
72
73                 # base UI
74                 'js/wiki/base.js',
75                 'js/wiki/toolbar.js',
76
77                 # dialogs
78                 'js/wiki/dialog_save.js',
79                 'js/wiki/dialog_revert.js',
80                 'js/wiki/dialog_pubmark.js',
81
82                 # views
83                 'js/wiki/view_history.js',
84                 'js/wiki/view_summary.js',
85                 'js/wiki/view_editor_source.js',
86                 'js/wiki/view_editor_wysiwyg.js',
87                 'js/wiki/view_gallery.js',
88                 'js/wiki/view_annotations.js',
89                 'js/wiki/view_search.js',
90                 'js/wiki/view_column_diff.js',
91         ),
92         'output_filename': 'compressed/detail_scripts.js',
93      },
94     'catalogue': {
95         'source_filenames': (
96                 'js/catalogue/catalogue.js',
97                 'js/slugify.js',
98                 'email_mangler/email_mangler.js',
99                 'datepicker/js/bootstrap-datepicker.js',
100         ),
101         'output_filename': 'compressed/catalogue_scripts.js',
102     },
103     'book': {
104         'source_filenames': (
105             'js/book_text/jquery.eventdelegation.js',
106             'js/book_text/jquery.scrollto.js',
107             'js/book_text/jquery.highlightfade.js',
108             'js/book_text/book.js',
109         ),
110         'output_filename': 'compressed/book.js',
111          },
112     'book_list': {
113         'source_filenames': (
114             'contextmenu/jquery.ui.position.js',
115             'contextmenu/jquery.contextMenu.js',
116             'js/catalogue/book_list.js',
117         ),
118         'output_filename': 'compressed/book_list.js',
119     }
120 }