pwb 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/comfy/admin/cms/custom.js.coffee +1 -0
  4. data/app/assets/stylesheets/comfy/admin/cms/custom.sass +1 -0
  5. data/app/assets/stylesheets/pwb/themes/berlin/inmo.scss +6 -1
  6. data/app/assets/stylesheets/pwb/themes/berlin/main.scss +12 -11
  7. data/app/assets/stylesheets/pwb/themes/default/shame.scss +1 -1
  8. data/app/controllers/pwb/admin_panel_controller.rb +2 -2
  9. data/app/controllers/pwb/api/v1/cms_pages_controller.rb +102 -0
  10. data/app/controllers/pwb/api/v1/website_controller.rb +7 -0
  11. data/app/controllers/pwb/api_public/v1/props_controller.rb +2 -2
  12. data/app/controllers/pwb/application_api_controller.rb +3 -7
  13. data/app/controllers/pwb/application_controller.rb +2 -3
  14. data/app/controllers/pwb/comfy_controller.rb +106 -0
  15. data/app/controllers/pwb/css_controller.rb +1 -2
  16. data/app/controllers/pwb/devise/registrations_controller.rb +2 -5
  17. data/app/controllers/pwb/devise_controller.rb +3 -8
  18. data/app/controllers/pwb/export/properties_controller.rb +5 -6
  19. data/app/controllers/pwb/export/translations_controller.rb +1 -5
  20. data/app/controllers/pwb/export/web_contents_controller.rb +1 -4
  21. data/app/controllers/pwb/export/website_controller.rb +0 -1
  22. data/app/controllers/pwb/import/mls_controller.rb +3 -6
  23. data/app/controllers/pwb/import/properties_controller.rb +2 -4
  24. data/app/controllers/pwb/import/scrapper_controller.rb +6 -9
  25. data/app/controllers/pwb/props_controller.rb +10 -13
  26. data/app/controllers/pwb/search_controller.rb +16 -16
  27. data/app/controllers/pwb/sections_controller.rb +21 -22
  28. data/app/controllers/pwb/welcome_controller.rb +1 -2
  29. data/app/helpers/pwb/application_helper.rb +37 -0
  30. data/app/helpers/pwb/css_helper.rb +9 -0
  31. data/app/models/pwb/cms_page_container.rb +9 -0
  32. data/app/models/pwb/content.rb +10 -6
  33. data/app/models/pwb/prop.rb +12 -4
  34. data/app/models/pwb/section.rb +1 -1
  35. data/app/models/pwb/website.rb +14 -1
  36. data/app/resources/pwb/api/v1/cms_block_resource.rb +11 -0
  37. data/app/resources/pwb/api/v1/cms_page_resource.rb +27 -0
  38. data/app/themes/berlin/views/layouts/pwb/application.html.erb +25 -9
  39. data/app/themes/berlin/views/pwb/props/show.html.erb +5 -5
  40. data/app/themes/berlin/views/pwb/search/_search_results.html.erb +2 -1
  41. data/app/themes/berlin/views/pwb/search/buy.html.erb +1 -1
  42. data/app/themes/berlin/views/pwb/search/rent.html.erb +2 -1
  43. data/app/themes/berlin/views/pwb/sections/about_us.html.erb +3 -2
  44. data/app/themes/berlin/views/pwb/sections/cms.html.erb +34 -0
  45. data/app/themes/berlin/views/pwb/sections/contact_us.html.erb +2 -1
  46. data/app/themes/berlin/views/pwb/welcome/_about_us_to_del.html.erb +35 -0
  47. data/app/themes/berlin/views/pwb/welcome/{_adv_search.html.erb → _adv_search_to_del.html.erb} +0 -0
  48. data/app/themes/berlin/views/pwb/welcome/_landing_carousel.html.erb +1 -1
  49. data/app/themes/berlin/views/pwb/welcome/_latest_properties.html.erb +2 -1
  50. data/app/themes/default/views/layouts/pwb/application.html.erb +24 -3
  51. data/app/themes/default/views/pwb/sections/about_us.html.erb +1 -2
  52. data/app/themes/default/views/pwb/sections/cms.html.erb +30 -0
  53. data/app/themes/default/views/pwb/welcome/_single_property_row.html.erb +2 -1
  54. data/app/themes/default/views/pwb/welcome/index.html.erb +3 -1
  55. data/app/views/layouts/pwb/devise.html.erb +1 -0
  56. data/app/views/pwb/_analytics.html.erb +15 -0
  57. data/app/views/pwb/_footer.html.erb +0 -12
  58. data/app/views/pwb/custom_css/{berlin.css.erb → _berlin.css.erb} +0 -1
  59. data/app/views/pwb/custom_css/{default.css.erb → _default.css.erb} +0 -1
  60. data/app/views/pwb/custom_css/_shared.css.erb +1 -0
  61. data/app/views/pwb/props/_images_section_carousel.html.erb +13 -27
  62. data/app/views/pwb/props/_prop_info_list.html.erb +1 -1
  63. data/app/views/pwb/search/_search_result_item.html.erb +62 -64
  64. data/app/views/pwb/search/_search_result_item_to_del.html.erb +3 -3
  65. data/config/client_setups/default.json +59 -21
  66. data/config/cms_page_containers/about-us.json +18 -0
  67. data/config/cms_page_containers/about.json +107 -0
  68. data/config/cms_page_containers/landing.json +19 -0
  69. data/config/cms_page_containers/legal.json +17 -0
  70. data/config/cms_page_containers/sell.json +96 -0
  71. data/config/initializers/cloudinary.rb +3 -0
  72. data/config/initializers/comfortable_mexican_sofa.rb +142 -0
  73. data/config/locales/admin.en.yml +213 -0
  74. data/config/locales/admin.es.yml +32 -17
  75. data/config/locales/admin.ru.yml +432 -0
  76. data/config/locales/admin.zh.yml.tmp +226 -0
  77. data/config/locales/de.yml +31 -32
  78. data/config/locales/devise.zh-HK.yml +119 -0
  79. data/config/locales/en.yml +3 -0
  80. data/config/locales/es.yml +3 -5
  81. data/config/locales/rails.zh-HK.yml +210 -0
  82. data/config/locales/ru.yml +11 -11
  83. data/config/locales/zh-HK.yml +154 -0
  84. data/config/routes.rb +17 -2
  85. data/db/cms_fixtures/cms/categories/pages.yml +3 -0
  86. data/db/cms_fixtures/cms/files/_rerenting-landing_framed.png.yml +6 -0
  87. data/{spec/dummy/public/system/comfy/cms/files/files/000/000/003/original → db/cms_fixtures/cms/files}/rerenting-landing_framed.png +0 -0
  88. data/db/cms_fixtures/cms/layouts/about-us/attributes.yml +4 -0
  89. data/db/cms_fixtures/cms/layouts/about-us/content.html +0 -0
  90. data/db/cms_fixtures/cms/layouts/about-us/javascript.js +0 -0
  91. data/db/cms_fixtures/cms/layouts/about-us/people/attributes.yml +4 -0
  92. data/db/cms_fixtures/cms/layouts/about-us/people/content.html +55 -0
  93. data/db/cms_fixtures/cms/layouts/about-us/services/attributes.yml +4 -0
  94. data/db/cms_fixtures/cms/layouts/about-us/services/content.html +32 -0
  95. data/db/cms_fixtures/cms/layouts/about-us/services/javascript.js +0 -0
  96. data/db/cms_fixtures/cms/layouts/about-us/services/stylesheet.css +0 -0
  97. data/db/cms_fixtures/cms/layouts/about-us/stylesheet.css +0 -0
  98. data/db/cms_fixtures/cms/layouts/default-layout/attributes.yml +4 -0
  99. data/db/cms_fixtures/cms/layouts/default-layout/content.html +51 -0
  100. data/db/cms_fixtures/cms/layouts/default-layout/javascript.js +0 -0
  101. data/db/cms_fixtures/cms/layouts/default-layout/stylesheet.css +0 -0
  102. data/db/cms_fixtures/cms/pages/index/about-us/attributes.yml +8 -0
  103. data/db/cms_fixtures/cms/pages/index/about-us/people/attributes.yml +8 -0
  104. data/db/cms_fixtures/cms/pages/index/about-us/people/de/attributes.yml +8 -0
  105. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_a.html +1 -0
  106. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_b.html +1 -0
  107. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_c.html +1 -0
  108. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_d.html +1 -0
  109. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_a.html +1 -0
  110. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_b.html +1 -0
  111. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_c.html +1 -0
  112. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_d.html +1 -0
  113. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_a.html +1 -0
  114. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_b.html +1 -0
  115. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_c.html +1 -0
  116. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_d.html +1 -0
  117. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_a.html +1 -0
  118. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_b.html +1 -0
  119. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_c.html +1 -0
  120. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_d.html +1 -0
  121. data/db/cms_fixtures/cms/pages/index/about-us/people/en/attributes.yml +8 -0
  122. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_a.html +1 -0
  123. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_b.html +1 -0
  124. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_c.html +1 -0
  125. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_d.html +1 -0
  126. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_a.html +1 -0
  127. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_b.html +1 -0
  128. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_c.html +1 -0
  129. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_d.html +1 -0
  130. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_a.html +1 -0
  131. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_b.html +1 -0
  132. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_c.html +1 -0
  133. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_d.html +1 -0
  134. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_a.html +1 -0
  135. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_b.html +1 -0
  136. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_c.html +1 -0
  137. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_d.html +1 -0
  138. data/db/cms_fixtures/cms/pages/index/about-us/people/es/attributes.yml +8 -0
  139. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_a.html +1 -0
  140. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_b.html +1 -0
  141. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_c.html +1 -0
  142. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_d.html +1 -0
  143. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_a.html +1 -0
  144. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_b.html +1 -0
  145. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_c.html +1 -0
  146. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_d.html +1 -0
  147. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_a.html +1 -0
  148. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_b.html +1 -0
  149. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_c.html +1 -0
  150. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_d.html +1 -0
  151. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_a.html +1 -0
  152. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_b.html +1 -0
  153. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_c.html +1 -0
  154. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_d.html +1 -0
  155. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/attributes.yml +8 -0
  156. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_a.html +1 -0
  157. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_b.html +1 -0
  158. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_c.html +1 -0
  159. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_d.html +1 -0
  160. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_a.html +1 -0
  161. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_b.html +1 -0
  162. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_c.html +1 -0
  163. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_d.html +1 -0
  164. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_a.html +1 -0
  165. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_b.html +1 -0
  166. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_c.html +1 -0
  167. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_d.html +1 -0
  168. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/attributes.yml +8 -0
  169. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_a.html +1 -0
  170. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_b.html +1 -0
  171. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_c.html +1 -0
  172. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_d.html +1 -0
  173. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_a.html +1 -0
  174. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_b.html +1 -0
  175. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_c.html +1 -0
  176. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_d.html +1 -0
  177. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_a.html +1 -0
  178. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_b.html +1 -0
  179. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_c.html +1 -0
  180. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_d.html +1 -0
  181. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_a.html +1 -0
  182. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_b.html +1 -0
  183. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_c.html +1 -0
  184. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_d.html +1 -0
  185. data/db/cms_fixtures/cms/pages/index/about-us/services/attributes.yml +8 -0
  186. data/db/cms_fixtures/cms/pages/index/about-us/services/content_a.html +1 -0
  187. data/db/cms_fixtures/cms/pages/index/about-us/services/content_b.html +0 -0
  188. data/db/cms_fixtures/cms/pages/index/about-us/services/content_c.html +0 -0
  189. data/db/cms_fixtures/cms/pages/index/about-us/services/de/attributes.yml +8 -0
  190. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_a.html +1 -0
  191. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_b.html +1 -0
  192. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_c.html +1 -0
  193. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_a.html +1 -0
  194. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_b.html +1 -0
  195. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_c.html +1 -0
  196. data/db/cms_fixtures/cms/pages/index/about-us/services/en/attributes.yml +8 -0
  197. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_a.html +1 -0
  198. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_b.html +1 -0
  199. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_c.html +1 -0
  200. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_a.html +1 -0
  201. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_b.html +1 -0
  202. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_c.html +1 -0
  203. data/db/cms_fixtures/cms/pages/index/about-us/services/es/attributes.yml +8 -0
  204. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_a.html +1 -0
  205. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_b.html +1 -0
  206. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_c.html +1 -0
  207. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_a.html +1 -0
  208. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_b.html +1 -0
  209. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_c.html +1 -0
  210. data/db/cms_fixtures/cms/pages/index/about-us/services/title_a.html +1 -0
  211. data/db/cms_fixtures/cms/pages/index/about-us/services/title_b.html +0 -0
  212. data/db/cms_fixtures/cms/pages/index/about-us/services/title_c.html +0 -0
  213. data/db/cms_fixtures/cms/pages/index/attributes.yml +8 -0
  214. data/db/cms_fixtures/cms/pages/index/content.html +1 -0
  215. data/db/cms_fixtures/cms/pages/index/title.html +0 -0
  216. data/db/cms_fixtures/cms/snippets/snippet1/attributes.yml +3 -0
  217. data/db/cms_fixtures/cms/snippets/snippet1/content.html +1 -0
  218. data/db/cms_fixtures/sample-site/categories/files.yml +1 -0
  219. data/db/cms_fixtures/sample-site/categories/pages.yml +1 -0
  220. data/db/cms_fixtures/sample-site/categories/snippets.yml +1 -0
  221. data/db/cms_fixtures/sample-site/files/_sample.jpg.yml +5 -0
  222. data/db/cms_fixtures/sample-site/files/sample.jpg +0 -0
  223. data/db/cms_fixtures/sample-site/layouts/default/attributes.yml +1 -0
  224. data/db/cms_fixtures/sample-site/layouts/default/content.html +5 -0
  225. data/db/cms_fixtures/sample-site/layouts/default/javascript.js +1 -0
  226. data/db/cms_fixtures/sample-site/layouts/default/nested/attributes.yml +2 -0
  227. data/db/cms_fixtures/sample-site/layouts/default/nested/content.haml +3 -0
  228. data/db/cms_fixtures/sample-site/layouts/default/nested/javascript.js +1 -0
  229. data/db/cms_fixtures/sample-site/layouts/default/nested/stylesheet.css +1 -0
  230. data/db/cms_fixtures/sample-site/layouts/default/stylesheet.css +1 -0
  231. data/db/cms_fixtures/sample-site/pages/index/attributes.yml +6 -0
  232. data/db/cms_fixtures/sample-site/pages/index/child/attributes.yml +3 -0
  233. data/db/cms_fixtures/sample-site/pages/index/child/left.haml +1 -0
  234. data/db/cms_fixtures/sample-site/pages/index/child/right.html +1 -0
  235. data/db/cms_fixtures/sample-site/pages/index/child/thumbnail.png +0 -0
  236. data/db/cms_fixtures/sample-site/pages/index/content.html +2 -0
  237. data/db/cms_fixtures/sample-site/snippets/default/attributes.yml +4 -0
  238. data/db/cms_fixtures/sample-site/snippets/default/content.html +1 -0
  239. data/db/migrate/20170513221300_create_cms.rb +133 -0
  240. data/db/seeds/spain/translations.rb +2 -2
  241. data/db/seeds/translations_ca.rb +92 -0
  242. data/db/seeds/translations_de.rb +86 -85
  243. data/db/seeds/translations_en.rb +73 -73
  244. data/db/seeds/translations_es.rb +79 -78
  245. data/db/seeds/translations_ru.rb +92 -0
  246. data/db/yml_seeds/prop/flat_for_rent.yml +4 -4
  247. data/db/yml_seeds/sections.yml +2 -2
  248. data/db/yml_seeds/website.yml +3 -1
  249. data/lib/pwb/cms_data_loader.rb +38 -0
  250. data/lib/pwb/engine.rb +1 -0
  251. data/lib/pwb/locale_loader.rb +47 -0
  252. data/lib/pwb/seeder.rb +8 -5
  253. data/lib/pwb/version.rb +1 -1
  254. data/lib/tasks/pwb_tasks.rake +1 -0
  255. data/spec/dummy/config/routes.rb +5 -0
  256. data/spec/dummy/config/secrets.yml +5 -0
  257. data/spec/dummy/db/schema.rb +111 -1
  258. data/spec/dummy/log/development.log +0 -0
  259. data/spec/features/pwb/admin_spec.rb +14 -40
  260. data/spec/features/pwb/admin_spec_tmp.rb +54 -0
  261. data/spec/fixtures/to_import/pwb-properties.csv +2 -2
  262. data/spec/views/pwb/application_layout.html.erb_spec.rb +1 -0
  263. metadata +207 -235
  264. data/app/themes/berlin/views/pwb/welcome/_about_us.html.erb +0 -36
  265. data/db/seeds/translations_others.rb +0 -215
  266. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css +0 -16
  267. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css.gz +0 -0
  268. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js +0 -617
  269. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js.gz +0 -0
  270. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot +0 -0
  271. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz +0 -0
  272. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg +0 -288
  273. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg.gz +0 -0
  274. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff +0 -0
  275. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf +0 -0
  276. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz +0 -0
  277. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 +0 -0
  278. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css +0 -13
  279. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css.gz +0 -0
  280. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js +0 -15656
  281. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js.gz +0 -0
  282. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js +0 -18690
  283. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js.gz +0 -0
  284. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css +0 -8582
  285. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css.gz +0 -0
  286. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css +0 -3500
  287. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css.gz +0 -0
  288. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css +0 -8423
  289. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css.gz +0 -0
  290. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js +0 -61
  291. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js.gz +0 -0
  292. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css +0 -17970
  293. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css.gz +0 -0
  294. data/spec/dummy/public/img/about-us.png +0 -0
  295. data/spec/dummy/public/img/agents/agent-1.png +0 -0
  296. data/spec/dummy/public/img/agents/agent-3.png +0 -0
  297. data/spec/dummy/public/img/agents/agent-4.png +0 -0
  298. data/spec/dummy/public/img/agents/agent-5.png +0 -0
  299. data/spec/dummy/public/img/banner-ads.jpg +0 -0
  300. data/spec/dummy/public/img/blog-img-1.jpg +0 -0
  301. data/spec/dummy/public/img/blog-img-2.jpg +0 -0
  302. data/spec/dummy/public/img/blog-img-3.jpg +0 -0
  303. data/spec/dummy/public/img/client-brand-1.png +0 -0
  304. data/spec/dummy/public/img/client-brand-2.png +0 -0
  305. data/spec/dummy/public/img/client-brand-3.png +0 -0
  306. data/spec/dummy/public/img/client-brand-4.png +0 -0
  307. data/spec/dummy/public/img/client-brand-5.png +0 -0
  308. data/spec/dummy/public/img/favicon.ico +0 -0
  309. data/spec/dummy/public/img/gallery/big/1.jpg +0 -0
  310. data/spec/dummy/public/img/gallery/big/10.jpg +0 -0
  311. data/spec/dummy/public/img/gallery/big/11 - Copy.jpg +0 -0
  312. data/spec/dummy/public/img/gallery/big/12.jpg +0 -0
  313. data/spec/dummy/public/img/gallery/big/2.jpg +0 -0
  314. data/spec/dummy/public/img/gallery/big/3.jpg +0 -0
  315. data/spec/dummy/public/img/gallery/big/4.jpg +0 -0
  316. data/spec/dummy/public/img/gallery/big/5.jpg +0 -0
  317. data/spec/dummy/public/img/gallery/big/6.jpg +0 -0
  318. data/spec/dummy/public/img/gallery/big/7.jpg +0 -0
  319. data/spec/dummy/public/img/gallery/big/8.jpg +0 -0
  320. data/spec/dummy/public/img/gallery/big/9.jpg +0 -0
  321. data/spec/dummy/public/img/gallery/fancybox_buttons.png +0 -0
  322. data/spec/dummy/public/img/gallery/fancybox_loading.gif +0 -0
  323. data/spec/dummy/public/img/gallery/fancybox_loading@2x.gif +0 -0
  324. data/spec/dummy/public/img/gallery/fancybox_overlay.png +0 -0
  325. data/spec/dummy/public/img/gallery/fancybox_sprite.png +0 -0
  326. data/spec/dummy/public/img/gallery/fancybox_sprite@2x.png +0 -0
  327. data/spec/dummy/public/img/gallery/small/1.jpg +0 -0
  328. data/spec/dummy/public/img/gallery/small/10.jpg +0 -0
  329. data/spec/dummy/public/img/gallery/small/11.jpg +0 -0
  330. data/spec/dummy/public/img/gallery/small/12.jpg +0 -0
  331. data/spec/dummy/public/img/gallery/small/2.jpg +0 -0
  332. data/spec/dummy/public/img/gallery/small/3.jpg +0 -0
  333. data/spec/dummy/public/img/gallery/small/4.jpg +0 -0
  334. data/spec/dummy/public/img/gallery/small/5.jpg +0 -0
  335. data/spec/dummy/public/img/gallery/small/6.jpg +0 -0
  336. data/spec/dummy/public/img/gallery/small/7.jpg +0 -0
  337. data/spec/dummy/public/img/gallery/small/8.jpg +0 -0
  338. data/spec/dummy/public/img/gallery/small/9.jpg +0 -0
  339. data/spec/dummy/public/img/item/1.jpg +0 -0
  340. data/spec/dummy/public/img/item/2.jpg +0 -0
  341. data/spec/dummy/public/img/item/3.jpg +0 -0
  342. data/spec/dummy/public/img/item/4.jpg +0 -0
  343. data/spec/dummy/public/img/item/5.jpg +0 -0
  344. data/spec/dummy/public/img/item/6.jpg +0 -0
  345. data/spec/dummy/public/img/logo.png +0 -0
  346. data/spec/dummy/public/img/promo-banner.jpg +0 -0
  347. data/spec/dummy/public/img/property-header-bg.jpg +0 -0
  348. data/spec/dummy/public/img/property-view-2.jpg +0 -0
  349. data/spec/dummy/public/img/signin-bg.jpg +0 -0
  350. data/spec/dummy/public/img/slider/1.jpg +0 -0
  351. data/spec/dummy/public/img/slider/2.jpg +0 -0
  352. data/spec/dummy/public/img/slider/3.jpg +0 -0
  353. data/spec/dummy/public/img/slider/4.jpg +0 -0
  354. data/spec/dummy/public/img/slider/5.jpg +0 -0
  355. data/spec/dummy/public/img/slider/6.jpg +0 -0
  356. data/spec/dummy/public/img/testimonial-1.png +0 -0
  357. data/spec/dummy/public/img/testimonial-2.png +0 -0
  358. data/spec/dummy/public/img/testimonial-3.png +0 -0
  359. data/spec/dummy/public/img/testimonial-bg.jpg +0 -0
  360. data/spec/dummy/public/js/bootstrap.js +0 -2363
  361. data/spec/dummy/public/js/custom.js +0 -355
  362. data/spec/dummy/public/js/jquery.fancybox.pack.js +0 -46
  363. data/spec/dummy/public/js/jquery.min.js +0 -5
  364. data/spec/dummy/public/js/jquery.mixitup.js +0 -2098
  365. data/spec/dummy/public/js/nouislider.js +0 -1899
  366. data/spec/dummy/public/js/slick.js +0 -2670
  367. data/spec/dummy/public/system/comfy/cms/files/files/000/000/003/cms_thumb/rerenting-landing_framed.png +0 -0
@@ -1,36 +0,0 @@
1
- <!-- About us -->
2
- <section id="aa-about-us">
3
- <div class="container">
4
- <div class="row">
5
- <div class="col-md-12">
6
- <div class="aa-about-us-area">
7
- <div class="row">
8
- <div class="col-md-5">
9
- <div class="aa-about-us-left">
10
- <img src="img/about-us.png" alt="image">
11
- </div>
12
- </div>
13
- <div class="col-md-7">
14
- <div class="aa-about-us-right">
15
- <div class="aa-title">
16
- <h2>About Us</h2>
17
- <span></span>
18
- </div>
19
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat ab dignissimos vitae maxime adipisci blanditiis rerum quae quos! Id at rerum maxime modi fugit vero corrupti, ad atque sit laborum ipsum sunt blanditiis suscipit odio, aut nostrum assumenda nobis rem a maiores temporibus non commodi laboriosam, doloremque expedita! Corporis, provident?</p>
20
- <ul>
21
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse, blanditiis.</li>
22
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
23
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia.</li>
24
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Esse, blanditiis.</li>
25
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
26
- <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quia.</li>
27
- </ul>
28
- </div>
29
- </div>
30
- </div>
31
- </div>
32
- </div>
33
- </div>
34
- </div>
35
- </section>
36
- <!-- / About us -->
@@ -1,215 +0,0 @@
1
- # load File.join(Rails.root, 'db', 'seeds', 'translations.rb')
2
- # unless I18n::Backend::ActiveRecord::Translation.all.length > 10
3
- I18n::Backend::ActiveRecord::Translation.create!(
4
- [
5
- {locale: "ru", key: "extras.aireAcondicionado", value: "Кондиционер", interpolations: [], is_proc: false},
6
- {locale: "ca", key: "extras.aireAcondicionado", value: "Aire condicionat", interpolations: [], is_proc: false},
7
-
8
- {locale: "ru", key: "extras.alarma", value: "Сигнализация", interpolations: [], is_proc: false},
9
- {locale: "ca", key: "extras.alarma", value: "Alarma", interpolations: [], is_proc: false},
10
-
11
- {locale: "ru", key: "extras.amueblado", value: "Меблированная", interpolations: [], is_proc: false},
12
- {locale: "ca", key: "extras.amueblado", value: "Moblat", interpolations: [], is_proc: false},
13
-
14
- {locale: "ru", key: "extras.armariosEmpotrados", value: "Встроенные Шкафы", interpolations: [], is_proc: false},
15
- {locale: "ca", key: "extras.armariosEmpotrados", value: "Armaris Encastats", interpolations: [], is_proc: false},
16
-
17
- {locale: "ru", key: "extras.ascensor", value: "Лифт", interpolations: [], is_proc: false},
18
- {locale: "ca", key: "extras.ascensor", value: "Ascensor", interpolations: [], is_proc: false},
19
-
20
- {locale: "ru", key: "extras.balcon", value: "Балкон", interpolations: [], is_proc: false},
21
- {locale: "ca", key: "extras.balcon", value: "Balcó", interpolations: [], is_proc: false},
22
-
23
- {locale: "ru", key: "extras.banoTurco", value: "Турецкая Баня", interpolations: [], is_proc: false},
24
- {locale: "ca", key: "extras.banoTurco", value: "Bany turc", interpolations: [], is_proc: false},
25
-
26
- {locale: "ru", key: "extras.calefaccionCentral", value: "Центральное Отопление", interpolations: [], is_proc: false},
27
- {locale: "ca", key: "extras.calefaccionCentral", value: "Calefacció Central", interpolations: [], is_proc: false},
28
-
29
- {locale: "ru", key: "extras.calefaccionElectrica", value: "Электрическое Отопление", interpolations: [], is_proc: false},
30
- {locale: "ca", key: "extras.calefaccionElectrica", value: "Calefacció Elèctrica", interpolations: [], is_proc: false},
31
-
32
- {locale: "ru", key: "extras.calefaccionPropano", value: "Газовое Отопление", interpolations: [], is_proc: false},
33
- {locale: "ca", key: "extras.calefaccionPropano", value: "Calefacció Propà", interpolations: [], is_proc: false},
34
-
35
- {locale: "ru", key: "extras.cocinaIndependiente", value: "Отдельная Кухня", interpolations: [], is_proc: false},
36
- {locale: "ca", key: "extras.cocinaIndependiente", value: "Cuina Independent", interpolations: [], is_proc: false},
37
-
38
- {locale: "ru", key: "extras.electrodomesticos", value: "Электро-Бытовая техника", interpolations: [], is_proc: false},
39
- {locale: "ca", key: "extras.electrodomesticos", value: "Electrodomèstics", interpolations: [], is_proc: false},
40
-
41
- {locale: "ru", key: "extras.energiaSolar", value: "Солнечные Батареи", interpolations: [], is_proc: false},
42
- {locale: "ca", key: "extras.energiaSolar", value: "Energia Solar", interpolations: [], is_proc: false},
43
-
44
- {locale: "ru", key: "extras.garajeComunitario", value: "Общий Гараж с Парковочным местом", interpolations: [], is_proc: false},
45
- {locale: "ca", key: "extras.garajeComunitario", value: "Garatge Comunitari", interpolations: [], is_proc: false},
46
-
47
- {locale: "ru", key: "extras.garajePrivado", value: "Собственный Гараж", interpolations: [], is_proc: false},
48
- {locale: "ca", key: "extras.garajePrivado", value: "Garatge Privat", interpolations: [], is_proc: false},
49
-
50
- {locale: "ru", key: "extras.gresCeramica", value: "Керамическая Плитка", interpolations: [], is_proc: false},
51
- {locale: "ca", key: "extras.gresCeramica", value: "Gres Ceràmica", interpolations: [], is_proc: false},
52
-
53
- {locale: "ru", key: "extras.horno", value: "Жарочный Шкаф-Духовка", interpolations: [], is_proc: false},
54
- {locale: "ca", key: "extras.horno", value: "Forn", interpolations: [], is_proc: false},
55
-
56
- {locale: "ru", key: "extras.jacuzzi", value: "Джакузи", interpolations: [], is_proc: false},
57
- {locale: "ca", key: "extras.jacuzzi", value: "Jacuzzi", interpolations: [], is_proc: false},
58
-
59
- {locale: "ru", key: "extras.jardinComunitario", value: "Сад Общего Пользования", interpolations: [], is_proc: false},
60
- {locale: "ca", key: "extras.jardinComunitario", value: "Jardí Comunitari", interpolations: [], is_proc: false},
61
-
62
- {locale: "ru", key: "extras.jardinPrivado", value: "Собственный Сад", interpolations: [], is_proc: false},
63
- {locale: "ca", key: "extras.jardinPrivado", value: "Jardí Privat", interpolations: [], is_proc: false},
64
-
65
- {locale: "ru", key: "extras.lavadero", value: "Прачечная", interpolations: [], is_proc: false},
66
- {locale: "ca", key: "extras.lavadero", value: "Afareig", interpolations: [], is_proc: false},
67
-
68
- {locale: "ru", key: "extras.lavadora", value: "Стиральная Машина", interpolations: [], is_proc: false},
69
- {locale: "ca", key: "extras.lavadora", value: "Rentadora", interpolations: [], is_proc: false},
70
-
71
- {locale: "ru", key: "extras.microondas", value: "Микроволновая Печь", interpolations: [], is_proc: false},
72
- {locale: "ca", key: "extras.microondas", value: "Microones", interpolations: [], is_proc: false},
73
-
74
- {locale: "ru", key: "extras.nevera", value: "Холодильник", interpolations: [], is_proc: false},
75
- {locale: "ca", key: "extras.nevera", value: "Nevera", interpolations: [], is_proc: false},
76
-
77
- {locale: "ru", key: "extras.parquet", value: "Паркет", interpolations: [], is_proc: false},
78
- {locale: "ca", key: "extras.parquet", value: "Parquet", interpolations: [], is_proc: false},
79
-
80
- {locale: "ru", key: "extras.piscinaClimatizada", value: "Климатизированный Бассейн ", interpolations: [], is_proc: false},
81
- {locale: "ca", key: "extras.piscinaClimatizada", value: "Piscina climatitzada", interpolations: [], is_proc: false},
82
-
83
- {locale: "ru", key: "extras.piscinaComunitaria", value: "Общий Бассейн", interpolations: [], is_proc: false},
84
- {locale: "ca", key: "extras.piscinaComunitaria", value: "Piscina comunitària", interpolations: [], is_proc: false},
85
-
86
- {locale: "ru", key: "extras.piscinaPrivada", value: "Личный Бассейн", interpolations: [], is_proc: false},
87
- {locale: "ca", key: "extras.piscinaPrivada", value: "Piscina privada", interpolations: [], is_proc: false},
88
-
89
- {locale: "ru", key: "extras.puertaBlindada", value: "Бронированная Дверь", interpolations: [], is_proc: false},
90
- {locale: "ca", key: "extras.puertaBlindada", value: "Porta Blindada", interpolations: [], is_proc: false},
91
-
92
- {locale: "ru", key: "extras.sauna", value: "Сауна", interpolations: [], is_proc: false},
93
- {locale: "ca", key: "extras.sauna", value: "Sauna", interpolations: [], is_proc: false},
94
-
95
- {locale: "ru", key: "extras.servPorteria", value: "Швейцар/Портье", interpolations: [], is_proc: false},
96
- {locale: "ca", key: "extras.servPorteria", value: "Serv. porteria", interpolations: [], is_proc: false},
97
-
98
- {locale: "ru", key: "extras.sueloMarmol", value: "Мраморные Полы", interpolations: [], is_proc: false},
99
- {locale: "ca", key: "extras.sueloMarmol", value: "Sòl Marbre", interpolations: [], is_proc: false},
100
-
101
- {locale: "ru", key: "extras.terraza", value: "Терраса", interpolations: [], is_proc: false},
102
- {locale: "ca", key: "extras.terraza", value: "Terrassa", interpolations: [], is_proc: false},
103
-
104
- {locale: "ru", key: "extras.trastero", value: "Подсобное Помещение", interpolations: [], is_proc: false},
105
- {locale: "ca", key: "extras.trastero", value: "Traster", interpolations: [], is_proc: false},
106
-
107
- {locale: "ru", key: "extras.tv", value: "Телевизор", interpolations: [], is_proc: false},
108
- {locale: "ca", key: "extras.tv", value: "TV", interpolations: [], is_proc: false},
109
-
110
- {locale: "ru", key: "extras.videoportero", value: "Видеонаблюдение", interpolations: [], is_proc: false},
111
- {locale: "ca", key: "extras.videoportero", value: "Videoporter", interpolations: [], is_proc: false},
112
-
113
- {locale: "ru", key: "extras.vigilancia", value: "Охрана", interpolations: [], is_proc: false},
114
- {locale: "ca", key: "extras.vigilancia", value: "Vigilància", interpolations: [], is_proc: false},
115
-
116
- {locale: "ru", key: "extras.vistasAlMar", value: "Вид на Море", interpolations: [], is_proc: false},
117
- {locale: "ca", key: "extras.vistasAlMar", value: "Vistes al mar", interpolations: [], is_proc: false},
118
-
119
- {locale: "ru", key: "extras.zComunitaria", value: "Общественная зона", interpolations: [], is_proc: false},
120
- {locale: "ca", key: "extras.zComunitaria", value: "Z. Comunitària", interpolations: [], is_proc: false},
121
-
122
- {locale: "ru", key: "extras.zonaDeportiva", value: "Зона для спорта", interpolations: [], is_proc: false},
123
- {locale: "ca", key: "extras.zonaDeportiva", value: "Zona Esportiva", interpolations: [], is_proc: false},
124
-
125
- {locale: "ru", key: "extras.cercaDeServicios", value: "Рядом со всеми удобствами/коммуникациями", interpolations: [], is_proc: false},
126
- {locale: "ca", key: "extras.cercaDeServicios", value: "Prop de Serveis", interpolations: [], is_proc: false},
127
-
128
- {locale: "ru", key: "extras.calefaccionGasCiudad", value: "Городское Газовое Отопление", interpolations: [], is_proc: false},
129
- {locale: "ca", key: "extras.calefaccionGasCiudad", value: "Calefacción gas ciudad", interpolations: [], is_proc: false},
130
-
131
- {locale: "ru", key: "extras.calefaccionGasoleo", value: "Дизельное отопление", interpolations: [], is_proc: false},
132
- {locale: "ca", key: "extras.calefaccionGasoleo", value: "Ccalefacció gasoil", interpolations: [], is_proc: false},
133
-
134
- {locale: "ru", key: "extras.zonasInfantiles", value: "Зона для детей", interpolations: [], is_proc: false},
135
- {locale: "ca", key: "extras.zonasInfantiles", value: "Zones infantils", interpolations: [], is_proc: false},
136
-
137
- {locale: "ru", key: "extras.sueloRadiante", value: "Полы с Подогревом", interpolations: [], is_proc: false},
138
- {locale: "ca", key: "extras.sueloRadiante", value: "Terra radiant", interpolations: [], is_proc: false},
139
-
140
- {locale: "ru", key: "extras.semiamueblado", value: "Частично меблированная", interpolations: [], is_proc: false},
141
- {locale: "ca", key: "extras.semiamueblado", value: "Semi moblat", interpolations: [], is_proc: false},
142
-
143
- {locale: "ru", key: "extras.chimenea", value: "Камин", interpolations: [], is_proc: false},
144
- {locale: "ca", key: "extras.chimenea", value: "Xemeneia", interpolations: [], is_proc: false},
145
-
146
- {locale: "ru", key: "extras.barbacoa", value: "Барбекю", interpolations: [], is_proc: false},
147
- {locale: "ca", key: "extras.barbacoa", value: "Barbacoa", interpolations: [], is_proc: false},
148
-
149
- {locale: "ru", key: "extras.porsche", value: "Веранда/Крыльцо", interpolations: [], is_proc: false},
150
- {locale: "ca", key: "extras.porsche", value: "Porsche", interpolations: [], is_proc: false},
151
-
152
- {locale: "ru", key: "extras.solarium", value: "Солярий", interpolations: [], is_proc: false},
153
- {locale: "ca", key: "extras.solarium", value: "Solarium", interpolations: [], is_proc: false},
154
-
155
- {locale: "ru", key: "extras.patioInterior", value: "Внутренний дворик", interpolations: [], is_proc: false},
156
- {locale: "ca", key: "extras.patioInterior", value: "Pati interior", interpolations: [], is_proc: false},
157
-
158
- {locale: "ru", key: "extras.vistasALaMontana", value: "Вид на Горы", interpolations: [], is_proc: false},
159
- {locale: "ca", key: "extras.vistasALaMontana", value: "Vistes a la muntanya", interpolations: [], is_proc: false},
160
-
161
- {locale: "ru", key: "extras.vistasAlJardin", value: "Вид на Сад", interpolations: [], is_proc: false},
162
- {locale: "ca", key: "extras.vistasAlJardin", value: "Vistes al jardí", interpolations: [], is_proc: false},
163
-
164
- {locale: "ru", key: "extras.urbanizacion", value: "Урбанизация", interpolations: [], is_proc: false},
165
- {locale: "ca", key: "extras.urbanizacion", value: "Urbanització", interpolations: [], is_proc: false},
166
-
167
- {locale: "ru", key: "extras.zonaTranquila", value: "Спокойная зона", interpolations: [], is_proc: false},
168
- {locale: "ca", key: "extras.zonaTranquila", value: "Zona tranquil · la", interpolations: [], is_proc: false},
169
-
170
- {locale: "ru", key: "propertyTypes.apartamento", value: "Квартира", interpolations: [], is_proc: false},
171
- {locale: "ca", key: "propertyTypes.apartamento", value: "Apartamento", interpolations: [], is_proc: false},
172
-
173
- {locale: "ru", key: "propertyTypes.chaletIndependiente", value: "undefined", interpolations: [], is_proc: false},
174
- {locale: "ca", key: "propertyTypes.chaletIndependiente", value: "Chalet independiente", interpolations: [], is_proc: false},
175
-
176
- {locale: "ru", key: "propertyTypes.bungalow", value: "Таунхаус", interpolations: [], is_proc: false},
177
- {locale: "ca", key: "propertyTypes.bungalow", value: "Bungalow", interpolations: [], is_proc: false},
178
-
179
- {locale: "ru", key: "propertyTypes.inversion", value: "Инвестиции", interpolations: [], is_proc: false},
180
- {locale: "ca", key: "propertyTypes.inversion", value: "Inversión", interpolations: [], is_proc: false},
181
-
182
- {locale: "ru", key: "propertyTypes.solar", value: "undefined", interpolations: [], is_proc: false},
183
- {locale: "ca", key: "propertyTypes.solar", value: "Solar", interpolations: [], is_proc: false},
184
-
185
- {locale: "ru", key: "propertyTypes.duplex", value: "Дуплекс", interpolations: [], is_proc: false},
186
- {locale: "ca", key: "propertyTypes.duplex", value: "Dúplex", interpolations: [], is_proc: false},
187
-
188
- {locale: "ru", key: "propertyTypes.piso", value: "квартира", interpolations: [], is_proc: false},
189
- {locale: "ca", key: "propertyTypes.piso", value: "Piso", interpolations: [], is_proc: false},
190
-
191
- {locale: "ru", key: "propertyTypes.hotel", value: "Отели", interpolations: [], is_proc: false},
192
- {locale: "ca", key: "propertyTypes.hotel", value: "Hotel", interpolations: [], is_proc: false},
193
-
194
- {locale: "ru", key: "propertyTypes.chaletAdosado", value: "Сдвоенный дом", interpolations: [], is_proc: false},
195
- {locale: "ca", key: "propertyTypes.chaletAdosado", value: "Chalet Adosado", interpolations: [], is_proc: false},
196
-
197
- {locale: "ru", key: "propertyTypes.atico", value: "Penthouse", interpolations: [], is_proc: false},
198
- {locale: "ca", key: "propertyTypes.atico", value: "Ático", interpolations: [], is_proc: false},
199
-
200
- {locale: "ru", key: "propertyTypes.estudio", value: "Studio", interpolations: [], is_proc: false},
201
- {locale: "ca", key: "propertyTypes.estudio", value: "Estudio", interpolations: [], is_proc: false},
202
-
203
- {locale: "ru", key: "propertyTypes.garaje", value: "Garage", interpolations: [], is_proc: false},
204
- {locale: "ca", key: "propertyTypes.garaje", value: "Garaje", interpolations: [], is_proc: false},
205
-
206
- {locale: "ru", key: "propertyTypes.local", value: "Commercial premises", interpolations: [], is_proc: false},
207
- {locale: "ca", key: "propertyTypes.local", value: "Local", interpolations: [], is_proc: false},
208
-
209
- {locale: "ru", key: "propertyTypes.trastero", value: "Warehouse", interpolations: [], is_proc: false},
210
- {locale: "ca", key: "propertyTypes.trastero", value: "Trastero", interpolations: [], is_proc: false},
211
-
212
- {locale: "ru", key: "propertyTypes.casaRural", value: "undefined", interpolations: [], is_proc: false},
213
- {locale: "ca", key: "propertyTypes.casaRural", value: "Casa Rural", interpolations: [], is_proc: false},
214
- ])
215
- # end
@@ -1,16 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
-
14
-
15
- */
16
-
@@ -1,617 +0,0 @@
1
- (function() {
2
- var slice = [].slice;
3
-
4
- this.ActionCable = {
5
- INTERNAL: {
6
- "message_types": {
7
- "welcome": "welcome",
8
- "ping": "ping",
9
- "confirmation": "confirm_subscription",
10
- "rejection": "reject_subscription"
11
- },
12
- "default_mount_path": "/cable",
13
- "protocols": ["actioncable-v1-json", "actioncable-unsupported"]
14
- },
15
- createConsumer: function(url) {
16
- var ref;
17
- if (url == null) {
18
- url = (ref = this.getConfig("url")) != null ? ref : this.INTERNAL.default_mount_path;
19
- }
20
- return new ActionCable.Consumer(this.createWebSocketURL(url));
21
- },
22
- getConfig: function(name) {
23
- var element;
24
- element = document.head.querySelector("meta[name='action-cable-" + name + "']");
25
- return element != null ? element.getAttribute("content") : void 0;
26
- },
27
- createWebSocketURL: function(url) {
28
- var a;
29
- if (url && !/^wss?:/i.test(url)) {
30
- a = document.createElement("a");
31
- a.href = url;
32
- a.href = a.href;
33
- a.protocol = a.protocol.replace("http", "ws");
34
- return a.href;
35
- } else {
36
- return url;
37
- }
38
- },
39
- startDebugging: function() {
40
- return this.debugging = true;
41
- },
42
- stopDebugging: function() {
43
- return this.debugging = null;
44
- },
45
- log: function() {
46
- var messages;
47
- messages = 1 <= arguments.length ? slice.call(arguments, 0) : [];
48
- if (this.debugging) {
49
- messages.push(Date.now());
50
- return console.log.apply(console, ["[ActionCable]"].concat(slice.call(messages)));
51
- }
52
- }
53
- };
54
-
55
- if (typeof window !== "undefined" && window !== null) {
56
- window.ActionCable = this.ActionCable;
57
- }
58
-
59
- if (typeof module !== "undefined" && module !== null) {
60
- module.exports = this.ActionCable;
61
- }
62
-
63
- }).call(this);
64
- (function() {
65
- var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
66
-
67
- ActionCable.ConnectionMonitor = (function() {
68
- var clamp, now, secondsSince;
69
-
70
- ConnectionMonitor.pollInterval = {
71
- min: 3,
72
- max: 30
73
- };
74
-
75
- ConnectionMonitor.staleThreshold = 6;
76
-
77
- function ConnectionMonitor(connection) {
78
- this.connection = connection;
79
- this.visibilityDidChange = bind(this.visibilityDidChange, this);
80
- this.reconnectAttempts = 0;
81
- }
82
-
83
- ConnectionMonitor.prototype.start = function() {
84
- if (!this.isRunning()) {
85
- this.startedAt = now();
86
- delete this.stoppedAt;
87
- this.startPolling();
88
- document.addEventListener("visibilitychange", this.visibilityDidChange);
89
- return ActionCable.log("ConnectionMonitor started. pollInterval = " + (this.getPollInterval()) + " ms");
90
- }
91
- };
92
-
93
- ConnectionMonitor.prototype.stop = function() {
94
- if (this.isRunning()) {
95
- this.stoppedAt = now();
96
- this.stopPolling();
97
- document.removeEventListener("visibilitychange", this.visibilityDidChange);
98
- return ActionCable.log("ConnectionMonitor stopped");
99
- }
100
- };
101
-
102
- ConnectionMonitor.prototype.isRunning = function() {
103
- return (this.startedAt != null) && (this.stoppedAt == null);
104
- };
105
-
106
- ConnectionMonitor.prototype.recordPing = function() {
107
- return this.pingedAt = now();
108
- };
109
-
110
- ConnectionMonitor.prototype.recordConnect = function() {
111
- this.reconnectAttempts = 0;
112
- this.recordPing();
113
- delete this.disconnectedAt;
114
- return ActionCable.log("ConnectionMonitor recorded connect");
115
- };
116
-
117
- ConnectionMonitor.prototype.recordDisconnect = function() {
118
- this.disconnectedAt = now();
119
- return ActionCable.log("ConnectionMonitor recorded disconnect");
120
- };
121
-
122
- ConnectionMonitor.prototype.startPolling = function() {
123
- this.stopPolling();
124
- return this.poll();
125
- };
126
-
127
- ConnectionMonitor.prototype.stopPolling = function() {
128
- return clearTimeout(this.pollTimeout);
129
- };
130
-
131
- ConnectionMonitor.prototype.poll = function() {
132
- return this.pollTimeout = setTimeout((function(_this) {
133
- return function() {
134
- _this.reconnectIfStale();
135
- return _this.poll();
136
- };
137
- })(this), this.getPollInterval());
138
- };
139
-
140
- ConnectionMonitor.prototype.getPollInterval = function() {
141
- var interval, max, min, ref;
142
- ref = this.constructor.pollInterval, min = ref.min, max = ref.max;
143
- interval = 5 * Math.log(this.reconnectAttempts + 1);
144
- return Math.round(clamp(interval, min, max) * 1000);
145
- };
146
-
147
- ConnectionMonitor.prototype.reconnectIfStale = function() {
148
- if (this.connectionIsStale()) {
149
- ActionCable.log("ConnectionMonitor detected stale connection. reconnectAttempts = " + this.reconnectAttempts + ", pollInterval = " + (this.getPollInterval()) + " ms, time disconnected = " + (secondsSince(this.disconnectedAt)) + " s, stale threshold = " + this.constructor.staleThreshold + " s");
150
- this.reconnectAttempts++;
151
- if (this.disconnectedRecently()) {
152
- return ActionCable.log("ConnectionMonitor skipping reopening recent disconnect");
153
- } else {
154
- ActionCable.log("ConnectionMonitor reopening");
155
- return this.connection.reopen();
156
- }
157
- }
158
- };
159
-
160
- ConnectionMonitor.prototype.connectionIsStale = function() {
161
- var ref;
162
- return secondsSince((ref = this.pingedAt) != null ? ref : this.startedAt) > this.constructor.staleThreshold;
163
- };
164
-
165
- ConnectionMonitor.prototype.disconnectedRecently = function() {
166
- return this.disconnectedAt && secondsSince(this.disconnectedAt) < this.constructor.staleThreshold;
167
- };
168
-
169
- ConnectionMonitor.prototype.visibilityDidChange = function() {
170
- if (document.visibilityState === "visible") {
171
- return setTimeout((function(_this) {
172
- return function() {
173
- if (_this.connectionIsStale() || !_this.connection.isOpen()) {
174
- ActionCable.log("ConnectionMonitor reopening stale connection on visibilitychange. visbilityState = " + document.visibilityState);
175
- return _this.connection.reopen();
176
- }
177
- };
178
- })(this), 200);
179
- }
180
- };
181
-
182
- now = function() {
183
- return new Date().getTime();
184
- };
185
-
186
- secondsSince = function(time) {
187
- return (now() - time) / 1000;
188
- };
189
-
190
- clamp = function(number, min, max) {
191
- return Math.max(min, Math.min(max, number));
192
- };
193
-
194
- return ConnectionMonitor;
195
-
196
- })();
197
-
198
- }).call(this);
199
- (function() {
200
- var i, message_types, protocols, ref, supportedProtocols, unsupportedProtocol,
201
- slice = [].slice,
202
- bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
203
- indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
204
-
205
- ref = ActionCable.INTERNAL, message_types = ref.message_types, protocols = ref.protocols;
206
-
207
- supportedProtocols = 2 <= protocols.length ? slice.call(protocols, 0, i = protocols.length - 1) : (i = 0, []), unsupportedProtocol = protocols[i++];
208
-
209
- ActionCable.Connection = (function() {
210
- Connection.reopenDelay = 500;
211
-
212
- function Connection(consumer) {
213
- this.consumer = consumer;
214
- this.open = bind(this.open, this);
215
- this.subscriptions = this.consumer.subscriptions;
216
- this.monitor = new ActionCable.ConnectionMonitor(this);
217
- this.disconnected = true;
218
- }
219
-
220
- Connection.prototype.send = function(data) {
221
- if (this.isOpen()) {
222
- this.webSocket.send(JSON.stringify(data));
223
- return true;
224
- } else {
225
- return false;
226
- }
227
- };
228
-
229
- Connection.prototype.open = function() {
230
- if (this.isActive()) {
231
- ActionCable.log("Attempted to open WebSocket, but existing socket is " + (this.getState()));
232
- throw new Error("Existing connection must be closed before opening");
233
- } else {
234
- ActionCable.log("Opening WebSocket, current state is " + (this.getState()) + ", subprotocols: " + protocols);
235
- if (this.webSocket != null) {
236
- this.uninstallEventHandlers();
237
- }
238
- this.webSocket = new WebSocket(this.consumer.url, protocols);
239
- this.installEventHandlers();
240
- this.monitor.start();
241
- return true;
242
- }
243
- };
244
-
245
- Connection.prototype.close = function(arg) {
246
- var allowReconnect, ref1;
247
- allowReconnect = (arg != null ? arg : {
248
- allowReconnect: true
249
- }).allowReconnect;
250
- if (!allowReconnect) {
251
- this.monitor.stop();
252
- }
253
- if (this.isActive()) {
254
- return (ref1 = this.webSocket) != null ? ref1.close() : void 0;
255
- }
256
- };
257
-
258
- Connection.prototype.reopen = function() {
259
- var error, error1;
260
- ActionCable.log("Reopening WebSocket, current state is " + (this.getState()));
261
- if (this.isActive()) {
262
- try {
263
- return this.close();
264
- } catch (error1) {
265
- error = error1;
266
- return ActionCable.log("Failed to reopen WebSocket", error);
267
- } finally {
268
- ActionCable.log("Reopening WebSocket in " + this.constructor.reopenDelay + "ms");
269
- setTimeout(this.open, this.constructor.reopenDelay);
270
- }
271
- } else {
272
- return this.open();
273
- }
274
- };
275
-
276
- Connection.prototype.getProtocol = function() {
277
- var ref1;
278
- return (ref1 = this.webSocket) != null ? ref1.protocol : void 0;
279
- };
280
-
281
- Connection.prototype.isOpen = function() {
282
- return this.isState("open");
283
- };
284
-
285
- Connection.prototype.isActive = function() {
286
- return this.isState("open", "connecting");
287
- };
288
-
289
- Connection.prototype.isProtocolSupported = function() {
290
- var ref1;
291
- return ref1 = this.getProtocol(), indexOf.call(supportedProtocols, ref1) >= 0;
292
- };
293
-
294
- Connection.prototype.isState = function() {
295
- var ref1, states;
296
- states = 1 <= arguments.length ? slice.call(arguments, 0) : [];
297
- return ref1 = this.getState(), indexOf.call(states, ref1) >= 0;
298
- };
299
-
300
- Connection.prototype.getState = function() {
301
- var ref1, state, value;
302
- for (state in WebSocket) {
303
- value = WebSocket[state];
304
- if (value === ((ref1 = this.webSocket) != null ? ref1.readyState : void 0)) {
305
- return state.toLowerCase();
306
- }
307
- }
308
- return null;
309
- };
310
-
311
- Connection.prototype.installEventHandlers = function() {
312
- var eventName, handler;
313
- for (eventName in this.events) {
314
- handler = this.events[eventName].bind(this);
315
- this.webSocket["on" + eventName] = handler;
316
- }
317
- };
318
-
319
- Connection.prototype.uninstallEventHandlers = function() {
320
- var eventName;
321
- for (eventName in this.events) {
322
- this.webSocket["on" + eventName] = function() {};
323
- }
324
- };
325
-
326
- Connection.prototype.events = {
327
- message: function(event) {
328
- var identifier, message, ref1, type;
329
- if (!this.isProtocolSupported()) {
330
- return;
331
- }
332
- ref1 = JSON.parse(event.data), identifier = ref1.identifier, message = ref1.message, type = ref1.type;
333
- switch (type) {
334
- case message_types.welcome:
335
- this.monitor.recordConnect();
336
- return this.subscriptions.reload();
337
- case message_types.ping:
338
- return this.monitor.recordPing();
339
- case message_types.confirmation:
340
- return this.subscriptions.notify(identifier, "connected");
341
- case message_types.rejection:
342
- return this.subscriptions.reject(identifier);
343
- default:
344
- return this.subscriptions.notify(identifier, "received", message);
345
- }
346
- },
347
- open: function() {
348
- ActionCable.log("WebSocket onopen event, using '" + (this.getProtocol()) + "' subprotocol");
349
- this.disconnected = false;
350
- if (!this.isProtocolSupported()) {
351
- ActionCable.log("Protocol is unsupported. Stopping monitor and disconnecting.");
352
- return this.close({
353
- allowReconnect: false
354
- });
355
- }
356
- },
357
- close: function(event) {
358
- ActionCable.log("WebSocket onclose event");
359
- if (this.disconnected) {
360
- return;
361
- }
362
- this.disconnected = true;
363
- this.monitor.recordDisconnect();
364
- return this.subscriptions.notifyAll("disconnected", {
365
- willAttemptReconnect: this.monitor.isRunning()
366
- });
367
- },
368
- error: function() {
369
- return ActionCable.log("WebSocket onerror event");
370
- }
371
- };
372
-
373
- return Connection;
374
-
375
- })();
376
-
377
- }).call(this);
378
- (function() {
379
- var slice = [].slice;
380
-
381
- ActionCable.Subscriptions = (function() {
382
- function Subscriptions(consumer) {
383
- this.consumer = consumer;
384
- this.subscriptions = [];
385
- }
386
-
387
- Subscriptions.prototype.create = function(channelName, mixin) {
388
- var channel, params, subscription;
389
- channel = channelName;
390
- params = typeof channel === "object" ? channel : {
391
- channel: channel
392
- };
393
- subscription = new ActionCable.Subscription(this.consumer, params, mixin);
394
- return this.add(subscription);
395
- };
396
-
397
- Subscriptions.prototype.add = function(subscription) {
398
- this.subscriptions.push(subscription);
399
- this.consumer.ensureActiveConnection();
400
- this.notify(subscription, "initialized");
401
- this.sendCommand(subscription, "subscribe");
402
- return subscription;
403
- };
404
-
405
- Subscriptions.prototype.remove = function(subscription) {
406
- this.forget(subscription);
407
- if (!this.findAll(subscription.identifier).length) {
408
- this.sendCommand(subscription, "unsubscribe");
409
- }
410
- return subscription;
411
- };
412
-
413
- Subscriptions.prototype.reject = function(identifier) {
414
- var i, len, ref, results, subscription;
415
- ref = this.findAll(identifier);
416
- results = [];
417
- for (i = 0, len = ref.length; i < len; i++) {
418
- subscription = ref[i];
419
- this.forget(subscription);
420
- this.notify(subscription, "rejected");
421
- results.push(subscription);
422
- }
423
- return results;
424
- };
425
-
426
- Subscriptions.prototype.forget = function(subscription) {
427
- var s;
428
- this.subscriptions = (function() {
429
- var i, len, ref, results;
430
- ref = this.subscriptions;
431
- results = [];
432
- for (i = 0, len = ref.length; i < len; i++) {
433
- s = ref[i];
434
- if (s !== subscription) {
435
- results.push(s);
436
- }
437
- }
438
- return results;
439
- }).call(this);
440
- return subscription;
441
- };
442
-
443
- Subscriptions.prototype.findAll = function(identifier) {
444
- var i, len, ref, results, s;
445
- ref = this.subscriptions;
446
- results = [];
447
- for (i = 0, len = ref.length; i < len; i++) {
448
- s = ref[i];
449
- if (s.identifier === identifier) {
450
- results.push(s);
451
- }
452
- }
453
- return results;
454
- };
455
-
456
- Subscriptions.prototype.reload = function() {
457
- var i, len, ref, results, subscription;
458
- ref = this.subscriptions;
459
- results = [];
460
- for (i = 0, len = ref.length; i < len; i++) {
461
- subscription = ref[i];
462
- results.push(this.sendCommand(subscription, "subscribe"));
463
- }
464
- return results;
465
- };
466
-
467
- Subscriptions.prototype.notifyAll = function() {
468
- var args, callbackName, i, len, ref, results, subscription;
469
- callbackName = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : [];
470
- ref = this.subscriptions;
471
- results = [];
472
- for (i = 0, len = ref.length; i < len; i++) {
473
- subscription = ref[i];
474
- results.push(this.notify.apply(this, [subscription, callbackName].concat(slice.call(args))));
475
- }
476
- return results;
477
- };
478
-
479
- Subscriptions.prototype.notify = function() {
480
- var args, callbackName, i, len, results, subscription, subscriptions;
481
- subscription = arguments[0], callbackName = arguments[1], args = 3 <= arguments.length ? slice.call(arguments, 2) : [];
482
- if (typeof subscription === "string") {
483
- subscriptions = this.findAll(subscription);
484
- } else {
485
- subscriptions = [subscription];
486
- }
487
- results = [];
488
- for (i = 0, len = subscriptions.length; i < len; i++) {
489
- subscription = subscriptions[i];
490
- results.push(typeof subscription[callbackName] === "function" ? subscription[callbackName].apply(subscription, args) : void 0);
491
- }
492
- return results;
493
- };
494
-
495
- Subscriptions.prototype.sendCommand = function(subscription, command) {
496
- var identifier;
497
- identifier = subscription.identifier;
498
- return this.consumer.send({
499
- command: command,
500
- identifier: identifier
501
- });
502
- };
503
-
504
- return Subscriptions;
505
-
506
- })();
507
-
508
- }).call(this);
509
- (function() {
510
- ActionCable.Subscription = (function() {
511
- var extend;
512
-
513
- function Subscription(consumer, params, mixin) {
514
- this.consumer = consumer;
515
- if (params == null) {
516
- params = {};
517
- }
518
- this.identifier = JSON.stringify(params);
519
- extend(this, mixin);
520
- }
521
-
522
- Subscription.prototype.perform = function(action, data) {
523
- if (data == null) {
524
- data = {};
525
- }
526
- data.action = action;
527
- return this.send(data);
528
- };
529
-
530
- Subscription.prototype.send = function(data) {
531
- return this.consumer.send({
532
- command: "message",
533
- identifier: this.identifier,
534
- data: JSON.stringify(data)
535
- });
536
- };
537
-
538
- Subscription.prototype.unsubscribe = function() {
539
- return this.consumer.subscriptions.remove(this);
540
- };
541
-
542
- extend = function(object, properties) {
543
- var key, value;
544
- if (properties != null) {
545
- for (key in properties) {
546
- value = properties[key];
547
- object[key] = value;
548
- }
549
- }
550
- return object;
551
- };
552
-
553
- return Subscription;
554
-
555
- })();
556
-
557
- }).call(this);
558
- (function() {
559
- ActionCable.Consumer = (function() {
560
- function Consumer(url) {
561
- this.url = url;
562
- this.subscriptions = new ActionCable.Subscriptions(this);
563
- this.connection = new ActionCable.Connection(this);
564
- }
565
-
566
- Consumer.prototype.send = function(data) {
567
- return this.connection.send(data);
568
- };
569
-
570
- Consumer.prototype.connect = function() {
571
- return this.connection.open();
572
- };
573
-
574
- Consumer.prototype.disconnect = function() {
575
- return this.connection.close({
576
- allowReconnect: false
577
- });
578
- };
579
-
580
- Consumer.prototype.ensureActiveConnection = function() {
581
- if (!this.connection.isActive()) {
582
- return this.connection.open();
583
- }
584
- };
585
-
586
- return Consumer;
587
-
588
- })();
589
-
590
- }).call(this);
591
- // Action Cable provides the framework to deal with WebSockets in Rails.
592
- // You can generate new channels where WebSocket features live using the rails generate channel command.
593
- //
594
-
595
-
596
-
597
-
598
- (function() {
599
- this.App || (this.App = {});
600
-
601
- App.cable = ActionCable.createConsumer();
602
-
603
- }).call(this);
604
- // This is a manifest file that'll be compiled into application.js, which will include all the files
605
- // listed below.
606
- //
607
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
608
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
609
- //
610
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
611
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
612
- //
613
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
614
- // about supported directives.
615
- //
616
-
617
- ;