Show More
The requested changes are too big and content was truncated. Show full diff
@@ -1,49 +1,50 b'' | |||
|
1 | 1 | syntax: glob |
|
2 | 2 | *.pyc |
|
3 | 3 | *.swp |
|
4 | 4 | *.sqlite |
|
5 | 5 | *.tox |
|
6 | 6 | *.egg-info |
|
7 | 7 | *.egg |
|
8 | 8 | *.mo |
|
9 | 9 | .eggs/ |
|
10 | 10 | tarballcache/ |
|
11 | 11 | |
|
12 | 12 | syntax: regexp |
|
13 | 13 | ^rcextensions |
|
14 | 14 | ^build |
|
15 | 15 | ^dist/ |
|
16 | 16 | ^docs/build/ |
|
17 | 17 | ^docs/_build/ |
|
18 | 18 | ^data$ |
|
19 | 19 | ^sql_dumps/ |
|
20 | 20 | ^\.settings$ |
|
21 | 21 | ^\.project$ |
|
22 | 22 | ^\.pydevproject$ |
|
23 | 23 | ^\.coverage$ |
|
24 | 24 | ^kallithea/front-end/node_modules$ |
|
25 | 25 | ^kallithea/front-end/package-lock\.json$ |
|
26 | 26 | ^kallithea/front-end/tmp$ |
|
27 | ^kallithea/public/codemirror$ | |
|
27 | 28 | ^kallithea/public/css/select2-spinner\.gif$ |
|
28 | 29 | ^kallithea/public/css/select2\.png$ |
|
29 | 30 | ^kallithea/public/css/select2x2\.png$ |
|
30 | 31 | ^kallithea/public/css/style\.css$ |
|
31 | 32 | ^kallithea/public/css/style\.css\.map$ |
|
32 | 33 | ^kallithea/public/js/bootstrap\.js$ |
|
33 | 34 | ^kallithea/public/js/dataTables\.bootstrap\.js$ |
|
34 | 35 | ^kallithea/public/js/jquery\.dataTables\.js$ |
|
35 | 36 | ^kallithea/public/js/jquery\.flot\.js$ |
|
36 | 37 | ^kallithea/public/js/jquery\.flot\.selection\.js$ |
|
37 | 38 | ^kallithea/public/js/jquery\.flot\.time\.js$ |
|
38 | 39 | ^kallithea/public/js/jquery\.min\.js$ |
|
39 | 40 | ^kallithea/public/js/select2\.js$ |
|
40 | 41 | ^theme\.less$ |
|
41 | 42 | ^kallithea\.db$ |
|
42 | 43 | ^test\.db$ |
|
43 | 44 | ^Kallithea\.egg-info$ |
|
44 | 45 | ^my\.ini$ |
|
45 | 46 | ^fabfile.py |
|
46 | 47 | ^\.idea$ |
|
47 | 48 | ^\.cache$ |
|
48 | 49 | ^\.pytest_cache$ |
|
49 | 50 | /__pycache__$ |
@@ -1,311 +1,311 b'' | |||
|
1 | 1 | Kallithea License |
|
2 | 2 | ================= |
|
3 | 3 | |
|
4 | 4 | Kallithea as a whole is copyrighted by various authors and is licensed under |
|
5 | 5 | the terms of the GNU General Public License, version 3 (GPLv3), which is a |
|
6 | 6 | license published by the Free Software Foundation, |
|
7 | 7 | Inc. [A copy of GPLv3](/COPYING) is included herein. |
|
8 | 8 | |
|
9 | 9 | Some individual files have copyright notices and those who offer changes to |
|
10 | 10 | those files should update the copyright notices in those specific files if |
|
11 | 11 | they so chose. |
|
12 | 12 | |
|
13 | 13 | However, the definitive list of copyright holders for this project is kept in |
|
14 | 14 | [the about page template](kallithea/templates/about.html) so that it is |
|
15 | 15 | displayed appropriately when Kallithea is installed. This is the most |
|
16 | 16 | important place to update copyright notices. |
|
17 | 17 | |
|
18 | 18 | Third-Party Code Incorporated in Kallithea |
|
19 | 19 | ========================================== |
|
20 | 20 | |
|
21 | 21 | Various third-party code under GPLv3-compatible licenses is included as part |
|
22 | 22 | of Kallithea. |
|
23 | 23 | |
|
24 | 24 | |
|
25 | 25 | Alembic |
|
26 | 26 | ------- |
|
27 | 27 | |
|
28 | 28 | Kallithea incorporates an [Alembic](http://alembic.zzzcomputing.com/en/latest/) |
|
29 | 29 | "migration environment" in `kallithea/alembic`, portions of which is: |
|
30 | 30 | |
|
31 | 31 | Copyright © 2009-2016 by Michael Bayer. |
|
32 | 32 | Alembic is a trademark of Michael Bayer. |
|
33 | 33 | |
|
34 | 34 | and licensed under the MIT-permissive license, which is |
|
35 | 35 | [included in this distribution](MIT-Permissive-License.txt). |
|
36 | 36 | |
|
37 | 37 | |
|
38 | 38 | Bootstrap |
|
39 | 39 | --------- |
|
40 | 40 | |
|
41 | 41 | Kallithea uses the web framework called |
|
42 | 42 | [Bootstrap](http://getbootstrap.com/), which is: |
|
43 | 43 | |
|
44 | 44 | Copyright © 2011-2016 Twitter, Inc. |
|
45 | 45 | |
|
46 | 46 | and licensed under the MIT-permissive license, which is |
|
47 | 47 | [included in this distribution](MIT-Permissive-License.txt). |
|
48 | 48 | |
|
49 | 49 | It is not distributed with Kallithea, but will be downloaded |
|
50 | 50 | using the ''kallithea-cli front-end-build'' command. |
|
51 | 51 | |
|
52 | 52 | |
|
53 | 53 | |
|
54 | 54 | Codemirror |
|
55 | 55 | ---------- |
|
56 | 56 | |
|
57 |
Kallithea |
|
|
57 | Kallithea uses the Javascript system called | |
|
58 | 58 | [Codemirror](http://codemirror.net/), version 4.7.0, which is primarily: |
|
59 | 59 | |
|
60 | 60 | Copyright © 2013-2014 by Marijn Haverbeke <marijnh@gmail.com> |
|
61 | 61 | |
|
62 | 62 | and licensed under the MIT-permissive license, which is |
|
63 | 63 | [included in this distribution](MIT-Permissive-License.txt). |
|
64 | 64 | |
|
65 | 65 | Additional files from upstream Codemirror are copyrighted by various authors |
|
66 |
and licensed under other permissive licenses. |
|
|
67 | [.../public/codemirror](kallithea/public/codemirror) include the copyright and | |
|
68 | license notice and information as they appeared in Codemirror's upstream | |
|
69 | release. | |
|
66 | and licensed under other permissive licenses. | |
|
67 | ||
|
68 | It is not distributed with Kallithea, but will be downloaded | |
|
69 | using the ''kallithea-cli front-end-build'' command. | |
|
70 | 70 | |
|
71 | 71 | |
|
72 | 72 | |
|
73 | 73 | jQuery |
|
74 | 74 | ------ |
|
75 | 75 | |
|
76 | 76 | Kallithea uses the Javascript system called |
|
77 | 77 | [jQuery](http://jquery.org/). |
|
78 | 78 | |
|
79 | 79 | It is Copyright 2013 jQuery Foundation and other contributors http://jquery.com/ and is under an |
|
80 | 80 | [MIT-permissive license](MIT-Permissive-License.txt). |
|
81 | 81 | |
|
82 | 82 | It is not distributed with Kallithea, but will be downloaded |
|
83 | 83 | using the ''kallithea-cli front-end-build'' command. |
|
84 | 84 | |
|
85 | 85 | |
|
86 | 86 | |
|
87 | 87 | DataTables |
|
88 | 88 | ---------- |
|
89 | 89 | |
|
90 | 90 | Kallithea uses the Javascript system called |
|
91 | 91 | [DataTables](http://www.datatables.net/). |
|
92 | 92 | |
|
93 | 93 | It is Copyright 2008-2015 SpryMedia Ltd. and is under an |
|
94 | 94 | [MIT-permissive license](MIT-Permissive-License.txt). |
|
95 | 95 | |
|
96 | 96 | It is not distributed with Kallithea, but will be downloaded |
|
97 | 97 | using the ''kallithea-cli front-end-build'' command. |
|
98 | 98 | |
|
99 | 99 | |
|
100 | 100 | |
|
101 | 101 | Mergely |
|
102 | 102 | ------- |
|
103 | 103 | |
|
104 | 104 | Kallithea incorporates some code from the Javascript system called |
|
105 | 105 | [Mergely](http://www.mergely.com/), version 3.3.9. |
|
106 | 106 | [Mergely's license](http://www.mergely.com/license.php), a |
|
107 | 107 | [copy of which is included in this repository](LICENSE-MERGELY.html), |
|
108 | 108 | is (GPL|LGPL|MPL). Kallithea as GPLv3'd project chooses the GPL arm of that |
|
109 | 109 | tri-license. |
|
110 | 110 | |
|
111 | 111 | |
|
112 | 112 | |
|
113 | 113 | Select2 |
|
114 | 114 | ------- |
|
115 | 115 | |
|
116 | 116 | Kallithea uses the Javascript system called |
|
117 | 117 | [Select2](http://ivaynberg.github.io/select2/), which is: |
|
118 | 118 | |
|
119 | 119 | Copyright 2012 Igor Vaynberg (and probably others) |
|
120 | 120 | |
|
121 | 121 | and is licensed [under the following license](https://github.com/ivaynberg/select2/blob/master/LICENSE): |
|
122 | 122 | |
|
123 | 123 | > This software is licensed under the Apache License, Version 2.0 (the |
|
124 | 124 | > "Apache License") or the GNU General Public License version 2 (the "GPL |
|
125 | 125 | > License"). You may choose either license to govern your use of this |
|
126 | 126 | > software only upon the condition that you accept all of the terms of either |
|
127 | 127 | > the Apache License or the GPL License. |
|
128 | 128 | |
|
129 | 129 | A [copy of the Apache License 2.0](Apache-License-2.0.txt) is also included |
|
130 | 130 | in this distribution. |
|
131 | 131 | |
|
132 | 132 | Kallithea will take the Apache license fork of the dual license, since |
|
133 | 133 | Kallithea is GPLv3'd. |
|
134 | 134 | |
|
135 | 135 | It is not distributed with Kallithea, but will be downloaded |
|
136 | 136 | using the ''kallithea-cli front-end-build'' command. |
|
137 | 137 | |
|
138 | 138 | |
|
139 | 139 | |
|
140 | 140 | Select2-Bootstrap-CSS |
|
141 | 141 | --------------------- |
|
142 | 142 | |
|
143 | 143 | Kallithea uses some CSS from a system called |
|
144 | 144 | [Select2-bootstrap-css](https://github.com/t0m/select2-bootstrap-css), which |
|
145 | 145 | is: |
|
146 | 146 | |
|
147 | 147 | Copyright © 2013 Tom Terrace (and likely others) |
|
148 | 148 | |
|
149 | 149 | and licensed under the MIT-permissive license, which is |
|
150 | 150 | [included in this distribution](MIT-Permissive-License.txt). |
|
151 | 151 | |
|
152 | 152 | It is not distributed with Kallithea, but will be downloaded |
|
153 | 153 | using the ''kallithea-cli front-end-build'' command. |
|
154 | 154 | |
|
155 | 155 | |
|
156 | 156 | |
|
157 | 157 | History.js |
|
158 | 158 | ---------- |
|
159 | 159 | |
|
160 | 160 | Kallithea incorporates some CSS from a system called History.js, which is |
|
161 | 161 | |
|
162 | 162 | Copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> |
|
163 | 163 | |
|
164 | 164 | Redistribution and use in source and binary forms, with or without |
|
165 | 165 | modification, are permitted provided that the following conditions are met: |
|
166 | 166 | |
|
167 | 167 | 1. Redistributions of source code must retain the above copyright notice, |
|
168 | 168 | this list of conditions and the following disclaimer. |
|
169 | 169 | |
|
170 | 170 | 2. Redistributions in binary form must reproduce the above copyright notice, |
|
171 | 171 | this list of conditions and the following disclaimer in the documentation |
|
172 | 172 | and/or other materials provided with the distribution. |
|
173 | 173 | |
|
174 | 174 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
175 | 175 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
176 | 176 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
177 | 177 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
|
178 | 178 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
179 | 179 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
180 | 180 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
181 | 181 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
182 | 182 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
183 | 183 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
184 | 184 | POSSIBILITY OF SUCH DAMAGE. |
|
185 | 185 | |
|
186 | 186 | |
|
187 | 187 | |
|
188 | 188 | YUI |
|
189 | 189 | --- |
|
190 | 190 | |
|
191 | 191 | Kallithea incorporates parts of the Javascript system called |
|
192 | 192 | [YUI 2 — Yahoo! User Interface Library](http://yui.github.io/yui2/docs/yui_2.9.0_full/), |
|
193 | 193 | which is made available under the [BSD License](http://yuilibrary.com/license/): |
|
194 | 194 | |
|
195 | 195 | Copyright © 2013 Yahoo! Inc. All rights reserved. |
|
196 | 196 | |
|
197 | 197 | Redistribution and use of this software in source and binary forms, with or |
|
198 | 198 | without modification, are permitted provided that the following conditions are |
|
199 | 199 | met: |
|
200 | 200 | |
|
201 | 201 | * Redistributions of source code must retain the above copyright notice, this |
|
202 | 202 | list of conditions and the following disclaimer. |
|
203 | 203 | |
|
204 | 204 | * Redistributions in binary form must reproduce the above copyright notice, |
|
205 | 205 | this list of conditions and the following disclaimer in the documentation |
|
206 | 206 | and/or other materials provided with the distribution. |
|
207 | 207 | |
|
208 | 208 | * Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be |
|
209 | 209 | used to endorse or promote products derived from this software without |
|
210 | 210 | specific prior written permission of Yahoo! Inc. |
|
211 | 211 | |
|
212 | 212 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
|
213 | 213 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
214 | 214 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
215 | 215 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
|
216 | 216 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|
217 | 217 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|
218 | 218 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
|
219 | 219 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
220 | 220 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
221 | 221 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
222 | 222 | |
|
223 | 223 | |
|
224 | 224 | Kallithea includes a minified version of YUI 2.9. To build yui.2.9.js: |
|
225 | 225 | |
|
226 | 226 | git clone https://github.com/yui/builder |
|
227 | 227 | git clone https://github.com/yui/yui2 |
|
228 | 228 | cd yui2/ |
|
229 | 229 | git checkout hudson-yui2-2800 |
|
230 | 230 | ln -sf JumpToPageDropDown.js src/paginator/js/JumpToPageDropdown.js # work around inconsistent casing |
|
231 | 231 | rm -f tmp.js |
|
232 | 232 | for m in yahoo event dom animation datasource autocomplete event-delegate; do |
|
233 | 233 | rm -f build/$m/$m.js |
|
234 | 234 | ( cd src/$m && ant build deploybuild ) && sed -e 's,@VERSION@,2.9.0,g' -e 's,@BUILD@,2800,g' build/$m/$m.js >> tmp.js |
|
235 | 235 | done |
|
236 | 236 | java -jar ../builder/componentbuild/lib/yuicompressor/yuicompressor-2.4.4.jar tmp.js -o yui.2.9.js |
|
237 | 237 | |
|
238 | 238 | In compliance with GPLv3 the Corresponding Source for this Object Code is made |
|
239 | 239 | available on |
|
240 | 240 | [https://kallithea-scm.org/repos/mirror](https://kallithea-scm.org/repos/mirror). |
|
241 | 241 | |
|
242 | 242 | |
|
243 | 243 | |
|
244 | 244 | YUI Flot |
|
245 | 245 | -------- |
|
246 | 246 | |
|
247 | 247 | Kallithea incorporates some CSS from a system called |
|
248 | 248 | [Flot](http://code.google.com/p/flot/), which is: |
|
249 | 249 | |
|
250 | 250 | Copyright 2006 Google Inc. |
|
251 | 251 | |
|
252 | 252 | Licensed under the Apache License, Version 2.0 (the "License"); |
|
253 | 253 | you may not use this file except in compliance with the License. |
|
254 | 254 | |
|
255 | 255 | A [copy of the Apache License 2.0](Apache-License-2.0.txt) is also included |
|
256 | 256 | in this distribution. |
|
257 | 257 | |
|
258 | 258 | |
|
259 | 259 | |
|
260 | 260 | Flot |
|
261 | 261 | ---- |
|
262 | 262 | |
|
263 | 263 | Kallithea uses some parts of a Javascript system called |
|
264 | 264 | [Flot](http://www.flotcharts.org/), which is: |
|
265 | 265 | |
|
266 | 266 | Copyright (c) 2007-2014 IOLA and Ole Laursen |
|
267 | 267 | |
|
268 | 268 | Permission is hereby granted, free of charge, to any person |
|
269 | 269 | obtaining a copy of this software and associated documentation |
|
270 | 270 | files (the "Software"), to deal in the Software without |
|
271 | 271 | restriction, including without limitation the rights to use, |
|
272 | 272 | copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
273 | 273 | copies of the Software, and to permit persons to whom the |
|
274 | 274 | Software is furnished to do so, subject to the following |
|
275 | 275 | conditions: |
|
276 | 276 | |
|
277 | 277 | The above copyright notice and this permission notice shall be |
|
278 | 278 | included in all copies or substantial portions of the Software. |
|
279 | 279 | |
|
280 | 280 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
281 | 281 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
282 | 282 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
283 | 283 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
284 | 284 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
285 | 285 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
286 | 286 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
287 | 287 | OTHER DEALINGS IN THE SOFTWARE. |
|
288 | 288 | |
|
289 | 289 | It is not distributed with Kallithea, but will be downloaded |
|
290 | 290 | using the ''kallithea-cli front-end-build'' command. |
|
291 | 291 | |
|
292 | 292 | |
|
293 | 293 | |
|
294 | 294 | Icon fonts |
|
295 | 295 | ---------- |
|
296 | 296 | |
|
297 | 297 | Kallithea incorporates subsets of both |
|
298 | 298 | [Font Awesome](http://fontawesome.io) and |
|
299 | 299 | [GitHub Octicons](https://octicons.github.com) for icons. Font Awesome is: |
|
300 | 300 | |
|
301 | 301 | Copyright (c) 2016, Dave Gandy |
|
302 | 302 | |
|
303 | 303 | Octicons is: |
|
304 | 304 | |
|
305 | 305 | Copyright (c) 2012-2014 GitHub |
|
306 | 306 | |
|
307 | 307 | These two sets are distributed under [SIL OFL 1.1](http://scripts.sil.org/OFL) |
|
308 | 308 | and have been combined into one font called "kallithea." |
|
309 | 309 | |
|
310 | 310 | |
|
311 | 311 | EOF |
@@ -1,103 +1,108 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | # This program is free software: you can redistribute it and/or modify |
|
3 | 3 | # it under the terms of the GNU General Public License as published by |
|
4 | 4 | # the Free Software Foundation, either version 3 of the License, or |
|
5 | 5 | # (at your option) any later version. |
|
6 | 6 | # |
|
7 | 7 | # This program is distributed in the hope that it will be useful, |
|
8 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
9 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
10 | 10 | # GNU General Public License for more details. |
|
11 | 11 | # |
|
12 | 12 | # You should have received a copy of the GNU General Public License |
|
13 | 13 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
14 | 14 | |
|
15 | 15 | import click |
|
16 | 16 | import kallithea.bin.kallithea_cli_base as cli_base |
|
17 | 17 | |
|
18 | 18 | import os |
|
19 | 19 | import shutil |
|
20 | 20 | import subprocess |
|
21 | 21 | import json |
|
22 | 22 | |
|
23 | 23 | import kallithea |
|
24 | 24 | |
|
25 | 25 | @cli_base.register_command() |
|
26 | 26 | @click.option('--install-deps/--no-install-deps', default=True, |
|
27 | 27 | help='Skip installation of dependencies, via "npm".') |
|
28 | 28 | @click.option('--generate/--no-generate', default=True, |
|
29 | 29 | help='Skip generation of front-end files.') |
|
30 | 30 | def front_end_build(install_deps, generate): |
|
31 | 31 | """Build the front-end. |
|
32 | 32 | |
|
33 | 33 | Install required dependencies for the front-end and generate the necessary |
|
34 | 34 | files. This step is complementary to any 'pip install' step which only |
|
35 | 35 | covers Python dependencies. |
|
36 | 36 | |
|
37 | 37 | The installation of front-end dependencies happens via the tool 'npm' which |
|
38 | 38 | is expected to be installed already. |
|
39 | 39 | """ |
|
40 | 40 | front_end_dir = os.path.abspath(os.path.join(kallithea.__file__, '..', 'front-end')) |
|
41 | 41 | public_dir = os.path.abspath(os.path.join(kallithea.__file__, '..', 'public')) |
|
42 | 42 | |
|
43 | 43 | if install_deps: |
|
44 | 44 | click.echo("Running 'npm install' to install front-end dependencies from package.json") |
|
45 | 45 | subprocess.check_call(['npm', 'install'], cwd=front_end_dir) |
|
46 | 46 | |
|
47 | 47 | if generate: |
|
48 | 48 | tmp_dir = os.path.join(front_end_dir, 'tmp') |
|
49 | 49 | if not os.path.isdir(tmp_dir): |
|
50 | 50 | os.mkdir(tmp_dir) |
|
51 | 51 | |
|
52 | 52 | click.echo("Building CSS styling based on Bootstrap") |
|
53 | 53 | with open(os.path.join(tmp_dir, 'pygments.css'), 'w') as f: |
|
54 | 54 | subprocess.check_call(['pygmentize', |
|
55 | 55 | '-S', 'default', |
|
56 | 56 | '-f', 'html', |
|
57 | 57 | '-a', '.code-highlight'], |
|
58 | 58 | stdout=f) |
|
59 | 59 | lesscpath = os.path.join(front_end_dir, 'node_modules', '.bin', 'lessc') |
|
60 | 60 | lesspath = os.path.join(public_dir, 'less', 'main.less') |
|
61 | 61 | csspath = os.path.join(public_dir, 'css', 'style.css') |
|
62 | 62 | subprocess.check_call([lesscpath, '--relative-urls', '--source-map', |
|
63 | 63 | '--source-map-less-inline', lesspath, csspath], |
|
64 | 64 | cwd=front_end_dir) |
|
65 | 65 | |
|
66 | 66 | click.echo("Preparing Bootstrap JS") |
|
67 | 67 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'bootstrap', 'dist', 'js', 'bootstrap.js'), os.path.join(public_dir, 'js', 'bootstrap.js')) |
|
68 | 68 | |
|
69 | 69 | click.echo("Preparing jQuery JS with Flot") |
|
70 | 70 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery', 'dist', 'jquery.min.js'), os.path.join(public_dir, 'js', 'jquery.min.js')) |
|
71 | 71 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.js'), os.path.join(public_dir, 'js', 'jquery.flot.js')) |
|
72 | 72 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.selection.js'), os.path.join(public_dir, 'js', 'jquery.flot.selection.js')) |
|
73 | 73 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'jquery.flot', 'jquery.flot.time.js'), os.path.join(public_dir, 'js', 'jquery.flot.time.js')) |
|
74 | 74 | |
|
75 | 75 | click.echo("Preparing DataTables JS") |
|
76 | 76 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'datatables.net', 'js', 'jquery.dataTables.js'), os.path.join(public_dir, 'js', 'jquery.dataTables.js')) |
|
77 | 77 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'datatables.net-bs', 'js', 'dataTables.bootstrap.js'), os.path.join(public_dir, 'js', 'dataTables.bootstrap.js')) |
|
78 | 78 | |
|
79 | 79 | click.echo("Preparing Select2 JS") |
|
80 | 80 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2.js'), os.path.join(public_dir, 'js', 'select2.js')) |
|
81 | 81 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2.png'), os.path.join(public_dir, 'css', 'select2.png')) |
|
82 | 82 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2x2.png'), os.path.join(public_dir, 'css', 'select2x2.png')) |
|
83 | 83 | shutil.copy(os.path.join(front_end_dir, 'node_modules', 'select2', 'select2-spinner.gif'), os.path.join(public_dir, 'css', 'select2-spinner.gif')) |
|
84 | 84 | |
|
85 | click.echo("Preparing CodeMirror JS") | |
|
86 | if os.path.isdir(os.path.join(public_dir, 'codemirror')): | |
|
87 | shutil.rmtree(os.path.join(public_dir, 'codemirror')) | |
|
88 | shutil.copytree(os.path.join(front_end_dir, 'node_modules', 'codemirror'), os.path.join(public_dir, 'codemirror')) | |
|
89 | ||
|
85 | 90 | click.echo("Generating LICENSES.txt") |
|
86 | 91 | check_licensing_json_path = os.path.join(tmp_dir, 'licensing.json') |
|
87 | 92 | licensing_txt_path = os.path.join(public_dir, 'LICENSES.txt') |
|
88 | 93 | subprocess.check_call([ |
|
89 | 94 | os.path.join(front_end_dir, 'node_modules', '.bin', 'license-checker'), |
|
90 | 95 | '--json', |
|
91 | 96 | '--out', check_licensing_json_path, |
|
92 | 97 | ], cwd=front_end_dir) |
|
93 | 98 | with open(check_licensing_json_path) as jsonfile: |
|
94 | 99 | rows = json.loads(jsonfile.read()) |
|
95 | 100 | with open(licensing_txt_path, 'w') as out: |
|
96 | 101 | out.write("The Kallithea front-end was built using the following Node modules:\n\n") |
|
97 | 102 | for name_version, values in sorted(rows.items()): |
|
98 | 103 | name, version = name_version.rsplit('@', 1) |
|
99 | 104 | line = "%s from https://www.npmjs.com/package/%s/v/%s\n License: %s\n Repository: %s\n" % ( |
|
100 | 105 | name_version, name, version, values['licenses'], values.get('repository', '-')) |
|
101 | 106 | if values.get('copyright'): |
|
102 | 107 | line += " Copyright: %s\n" % (values['copyright']) |
|
103 | 108 | out.write(line + '\n') |
@@ -1,18 +1,19 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "name": "kallithea", |
|
3 | 3 | "private": true, |
|
4 | 4 | "dependencies": { |
|
5 | 5 | "bootstrap": "3.3.7", |
|
6 | "codemirror": "4.7", | |
|
6 | 7 | "datatables.net": "1.10.13", |
|
7 | 8 | "datatables.net-bs": "1.10.13", |
|
8 | 9 | "jquery": "1.12.3", |
|
9 | 10 | "jquery.flot": "0.8.3", |
|
10 | 11 | "select2": "3.5.1", |
|
11 | 12 | "select2-bootstrap-css": "1.2.4" |
|
12 | 13 | }, |
|
13 | 14 | "devDependencies": { |
|
14 | 15 | "less": "~2.7", |
|
15 | 16 | "less-plugin-clean-css": "~1.5", |
|
16 | 17 | "license-checker": "24.1.0" |
|
17 | 18 | } |
|
18 | 19 | } |
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
This diff has been collapsed as it changes many lines, (7830 lines changed) Show them Hide them |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
This diff has been collapsed as it changes many lines, (717 lines changed) Show them Hide them |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed | |
The requested commit or file is too big and content was truncated. Show full diff |
General Comments 0
You need to be logged in to leave comments.
Login now