]> git.openstreetmap.org Git - rails.git/blob - Vendorfile
Remove .richtext_dopreview css class
[rails.git] / Vendorfile
1 folder 'vendor/assets' do
2   folder 'jquery' do
3     file 'jquery.throttle-debounce.js', 'https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js'
4   end
5
6   folder 'leaflet' do
7     from 'https://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.1' do
8       file 'leaflet.contextmenu.js', 'dist/leaflet.contextmenu.js'
9       file 'leaflet.contextmenu.css', 'dist/leaflet.contextmenu.css'
10     end
11
12     from 'https://github.com/kajic/leaflet-locationfilter.git' do
13       file 'leaflet.locationfilter.css', 'src/locationfilter.css'
14       file 'leaflet.locationfilter.js', 'src/locationfilter.js'
15       folder 'img', 'src/img'
16     end
17
18     from 'https://github.com/openstreetmap/leaflet-osm.git' do
19       file 'leaflet.osm.js', 'leaflet-osm.js'
20     end
21
22     from 'https://github.com/jieter/Leaflet.encoded.git', :tag => '0.0.9' do
23       file 'leaflet.polyline.js', 'Polyline.encoded.js'
24     end
25   end
26
27   folder 'iD' do
28     from 'https://github.com/openstreetmap/iD', :branch => 'release' do
29       folder 'iD/data', 'dist/data'
30       folder 'iD/img', 'dist/img'
31       folder 'iD/locales', 'dist/locales'
32       folder 'iD/mapillary-js', 'dist/mapillary-js'
33       folder 'iD/pannellum', 'dist/pannellum'
34
35       file 'iD.css.erb', 'dist/iD.css' do |path|
36         rewrite(path) do |content|
37           content.gsub(/url\('?(img\/[^')]+)'?\)/, 'url(<%= asset_path("iD/\1") %>)')
38         end
39       end
40
41       file 'iD.js', 'dist/iD.js'
42     end
43   end
44 end