Commit Graph

921 Commits

Author SHA1 Message Date
Simon Conseil
f178a50b5e Remove duplicated assert 2018-03-18 23:20:27 +01:00
Simon Conseil
bd9e547e78 Merge pull request #307 from edwinsteele/feature/faster-first-image-load
Galleria: Load first image earlier
2018-03-18 23:19:44 +01:00
Simon Conseil
108bba7999 Merge pull request #312 from edwinsteele/galleria-json-config
Galleria theme now reads image data from json
2018-03-18 23:18:04 +01:00
Simon Conseil
f2753ba52d Merge pull request #302 from Glandos/more_compress_tests
[compress_assets] Mission: 100% coverage
2018-03-18 22:01:38 +01:00
Glandos
99c7af208b Remove custom code to mask modules, use builtin features.
Note that it uses unittest.mock that is available from Python 3.3
2018-03-11 21:08:55 +01:00
Edwin Steele
2f66532718 Use galleria thumbnails for videos too
Also offer a big link for videos, if configured, not just for images
json loading means that static/img/empty.png is unnecessary.
2018-03-11 14:40:55 +11:00
Edwin Steele
472a58bb5f Remove duplicate simulation of map toggle click
Increase thumbnail lazy load chunk size, as only the first chunk
of thumbnails are loaded before the map layers are loaded in the
background. 50 thumbnails should fill the thumbnail row on most
screens, so gives the impression of a complete gallery load.
2018-03-11 14:30:04 +11:00
Simon Conseil
a7841c5da5 strings should always be unicode now 2018-03-11 01:38:19 +01:00
Simon Conseil
619b3d67cb Merge pull request #314 from saimn/subprocess
Use subprocess.run instead of custom wrapper
2018-03-11 01:37:01 +01:00
Simon Conseil
42793b50ad encoding was added in py36 2018-03-11 01:31:19 +01:00
Simon Conseil
599115a20f Use subprocess.run instead of custom wrapper 2018-03-11 01:22:11 +01:00
Simon Conseil
06744c83be Add some transparency for galleria's info box (fix #308) 2018-03-11 00:51:21 +01:00
Simon Conseil
dc88bba27a Merge pull request #309 from saimn/py3
Drop Python 2 support
2018-03-10 23:47:21 +01:00
Simon Conseil
ad0cec92b3 Merge pull request #310 from saimn/leaflet
Update Leaflet.js
2018-03-08 00:47:11 +01:00
Edwin Steele
5f6d62eaa6 Galleria theme now reads image data from json 2018-03-07 20:42:19 +11:00
Simon Conseil
9a60703ceb Update leaflet-providers 2018-03-07 01:05:33 +01:00
Simon Conseil
9e337be991 Update leaflet to 1.3.1 2018-03-07 01:03:58 +01:00
Simon Conseil
15c6166d27 Update changelog 2018-03-07 00:49:57 +01:00
Simon Conseil
cf3bd4bf6d Use python_requires and raise an error if an older Python is used 2018-03-07 00:48:52 +01:00
Simon Conseil
e9ae4b739c Add brotli/zopfli to requirements.txt 2018-03-07 00:48:18 +01:00
Simon Conseil
5ba8097a2d Remove py2/py3 compat file 2018-03-07 00:47:38 +01:00
Simon Conseil
39da00d5f8 Update tox 2018-03-05 01:07:55 +01:00
Simon Conseil
2d9a2e735e Remove old compatibility code for Pillow 3.0 2018-03-05 00:57:49 +01:00
Simon Conseil
4bab96fdde Remove py2 code 2018-03-05 00:53:39 +01:00
Simon Conseil
5fd55b27b1 Update travis conf 2018-03-05 00:45:11 +01:00
Edwin Steele
d81476ffc9 Galleria: Load first image earlier
Galleria triggers loading of the main gallery iamge via javascript
which has two problems. It only triggers the load when javascript
has been processed and loads it at the same time as the second and
third image which means it's competing with background images for
bandwidth. We know that the first image will always be seen, so
trigger a load in the document rather than waiting for js to do it.
2018-03-04 14:17:32 +11:00
Glandos
a4cfce4371 prepend instead of appending, to be the first 2018-02-20 22:25:00 +01:00
Glandos
f8f67db0d9 Return a loader, to be sure to interrupt the finder algorithm 2018-02-20 22:24:41 +01:00
Glandos
dda9fbc592 delete existing import harder 2018-02-20 22:24:09 +01:00
Simon Conseil
55399b2b4d Prepare next version 2018-02-20 00:41:34 +01:00
Simon Conseil
432532c891 Merge pull request #301 from saimn/release-1.4
Release 1.4
2018-02-20 00:28:15 +01:00
Simon Conseil
f6b3e4a843 Version 1.4.0 2018-02-20 00:18:59 +01:00
Simon Conseil
10dc09999d Add source for jquery 2.2.1 2018-02-20 00:18:59 +01:00
Simon Conseil
3cdeca235a Add message about Python 2 support 2018-02-20 00:14:50 +01:00
Simon Conseil
0c70fda6c2 Add source file for echo 2018-02-19 23:33:47 +01:00
Simon Conseil
9d439a8677 Remove cssmin mentions as it is no more used 2018-02-19 23:32:47 +01:00
Glandos
2b3fcbaac3 make a function for duplicated code 2018-02-19 22:30:00 +01:00
Glandos
0e698e58b9 test no compression cases 2018-02-19 22:26:56 +01:00
Glandos
2d8f32cab4 Add a module masker fixture.
This is handy to make some module disappear to test an import failure.
2018-02-19 22:25:20 +01:00
Glandos
43139092ab test compression twice to ensure we test the stat path 2018-02-19 22:23:48 +01:00
Glandos
a832e35d38 speed up tests by using original media.
We don't care about media processing here.
2018-02-19 22:21:27 +01:00
Simon Conseil
d5a2423eeb Update changelog 2018-02-18 01:00:30 +01:00
Simon Conseil
d59df81e30 Update copyright 2018-02-18 01:00:30 +01:00
Simon Conseil
a1027809ff Merge branch 'pr/292' 2018-02-18 00:48:01 +01:00
Simon Conseil
a368a69672 Don't force logo image to be in images/ 2018-02-18 00:47:25 +01:00
brent.bb
3838533d85 Match files_to_copy example text to match the other example 2018-02-18 00:41:30 +01:00
brent.bb
3afeba778d Sidebar site logo image in Colorbox
Replace the index title in the Colorbox sidebar with an optional logo.
Use files_to_copy to place the logo file in the correct location.
2018-02-18 00:41:30 +01:00
Simon Conseil
45ac1e4c94 Merge branch 'pr/299' 2018-02-18 00:38:57 +01:00
Edwin Steele
09fdd14f4d Don't load both galleria.classic.css & minified
Fixes regression introduced in 6c5c4ed
2018-02-18 00:37:16 +01:00
Simon Conseil
bcf381d08f Remove use of JQuery CDN 2018-02-18 00:21:23 +01:00