]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Update leaflet to 1.6.0
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.cookie.js', 'https://raw.githubusercontent.com/carhartl/jquery-cookie/master/src/jquery.cookie.js'
4     file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
5     file 'jquery.simulate.js', 'https://raw.githubusercontent.com/jquery/jquery-simulate/1.0.0/jquery.simulate.js'
6   end
7
8   folder 'bootstrap' do
9     file 'bootstrap.tooltip.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/tooltip.js'
10     file 'bootstrap.dropdown.js', 'https://raw.githubusercontent.com/twbs/bootstrap/v3.3.2/js/dropdown.js'
11   end
12
13   folder 'leaflet' do
14     file 'leaflet.js', 'https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js'
15     file 'leaflet.css', 'https://unpkg.com/leaflet@1.6.0/dist/leaflet.css'
16
17     [ 'layers.png', 'layers-2x.png',
18       'marker-icon.png', 'marker-icon-2x.png',
19       'marker-shadow.png' ].each do |image|
20       file "images/#{image}", "https://unpkg.com/leaflet@1.6.0/dist/images/#{image}"
21     end
22
23     from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.0' do
24       file 'leaflet.contextmenu.js', 'dist/leaflet.contextmenu.js'
25       file 'leaflet.contextmenu.css', 'dist/leaflet.contextmenu.css'
26     end
27
28     from 'git://github.com/kajic/leaflet-locationfilter.git' do
29       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
30       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
31       folder 'img', 'src/img'
32     end
33
34     from 'git://github.com/domoritz/leaflet-locatecontrol.git', :tag => 'v0.66.0' do
35       file 'leaflet.locate.js', 'src/L.Control.Locate.js'
36     end
37
38     from 'git://github.com/jfirebaugh/leaflet-osm.git' do
39       file 'leaflet.osm.js', 'leaflet-osm.js'
40     end
41
42     from 'git://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.8' do
43       file 'leaflet.polyline.js', 'Polyline.encoded.js'
44     end
45   end
46
47   folder 'ohauth' do
48     from 'git://github.com/osmlab/ohauth.git' do
49       file 'ohauth.js'
50     end
51   end
52
53   folder 'iD' do
54     from 'git://github.com/openstreetmap/iD', :branch => 'release' do
55       folder 'iD/img', 'dist/img'
56       folder 'iD/locales', 'dist/locales'
57       folder 'iD/mapillary-js', 'dist/mapillary-js'
58       folder 'iD/pannellum-streetside', 'dist/pannellum-streetside'
59
60       file 'iD.css.erb', 'dist/iD.css' do |path|
61         rewrite(path) do |content|
62           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
63         end
64       end
65
66       file 'iD.js', 'dist/iD.js'
67     end
68   end
69
70   folder 'polyfill' do
71     file 'es5.js', 'https://polyfill.io/v3/polyfill.js?features=es5&flags=gated,always'
72     file 'es6.js', 'https://polyfill.io/v3/polyfill.js?features=es6&flags=gated,always'
73   end
74
75   folder 'javascripts' do
76     file 'html5shiv.js', 'https://raw.githubusercontent.com/aFarkas/html5shiv/master/src/html5shiv.js'
77   end
78
79   folder 'swfobject' do
80     from 'git://github.com/swfobject/swfobject.git', :tag => '2.2' do
81       file 'expressInstall.swf', 'swfobject/expressInstall.swf'
82       file 'swfobject.js', 'swfobject/src/swfobject.js'
83     end
84   end
85 end