quadro 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +194 -0
  4. data/Rakefile +39 -0
  5. data/app/assets/images/quadro/close.png +0 -0
  6. data/app/assets/images/quadro/favicon.ico +0 -0
  7. data/app/assets/images/quadro/loading.gif +0 -0
  8. data/app/assets/images/quadro/missing/cover/large.png +0 -0
  9. data/app/assets/images/quadro/missing/cover/medium.png +0 -0
  10. data/app/assets/images/quadro/missing/cover/small.png +0 -0
  11. data/app/assets/images/quadro/missing/cover/thumb.png +0 -0
  12. data/app/assets/images/quadro/missing/image/large.png +0 -0
  13. data/app/assets/images/quadro/missing/image/medium.png +0 -0
  14. data/app/assets/images/quadro/missing/image/small.png +0 -0
  15. data/app/assets/images/quadro/missing/image/thumb.png +0 -0
  16. data/app/assets/images/quadro/missing/slide/large.png +0 -0
  17. data/app/assets/images/quadro/missing/slide/medium.png +0 -0
  18. data/app/assets/images/quadro/missing/slide/small.png +0 -0
  19. data/app/assets/images/quadro/missing/slide/thumb.png +0 -0
  20. data/app/assets/images/quadro/next.png +0 -0
  21. data/app/assets/images/quadro/prev.png +0 -0
  22. data/app/assets/images/quadro/quadro-logo-mini.png +0 -0
  23. data/app/assets/images/quadro/quadro-logo.png +0 -0
  24. data/app/assets/javascripts/quadro/application.js.coffee +27 -0
  25. data/app/assets/javascripts/quadro/message.js.coffee +6 -0
  26. data/app/assets/javascripts/quadro/plugins/gmaps.min.js +1 -0
  27. data/app/assets/javascripts/quadro/plugins/humane.min.js +11 -0
  28. data/app/assets/javascripts/quadro/plugins/jasny-bootstrap.min.js +6 -0
  29. data/app/assets/javascripts/quadro/plugins/jquery.fs.dropper.min.js +9 -0
  30. data/app/assets/javascripts/quadro/plugins/jquery.show_char_limit.min.js +1 -0
  31. data/app/assets/javascripts/quadro/plugins/jquery.smartmenus.bootstrap.min.js +3 -0
  32. data/app/assets/javascripts/quadro/plugins/jquery.smartmenus.min.js +3 -0
  33. data/app/assets/javascripts/quadro/plugins/lightbox.min.js +13 -0
  34. data/app/assets/javascripts/quadro/plugins/pace.min.js +2 -0
  35. data/app/assets/javascripts/quadro/quadro.js.coffee +43 -0
  36. data/app/assets/javascripts/quadro/site.js.coffee +0 -0
  37. data/app/assets/javascripts/quadro/uploader.js.coffee +17 -0
  38. data/app/assets/javascripts/quadro/widget.js.coffee +80 -0
  39. data/app/assets/stylesheets/bootstrap/_mixins.scss +40 -0
  40. data/app/assets/stylesheets/quadro/application.css.sass +19 -0
  41. data/app/assets/stylesheets/quadro/plugins/humane-libnotify.min.css +1 -0
  42. data/app/assets/stylesheets/quadro/plugins/jasny-bootstrap.min.css +7 -0
  43. data/app/assets/stylesheets/quadro/plugins/jquery.fs.dropper.min.css +9 -0
  44. data/app/assets/stylesheets/quadro/plugins/jquery.smartmenus.bootstrap.min.css +1 -0
  45. data/app/assets/stylesheets/quadro/plugins/lightbox.min.css +1 -0
  46. data/app/assets/stylesheets/quadro/plugins/pace.min.css +1 -0
  47. data/app/assets/stylesheets/quadro/quadro.css.sass +99 -0
  48. data/app/assets/stylesheets/quadro/site.css.sass +0 -0
  49. data/app/controllers/quadro/application_controller.rb +122 -0
  50. data/app/controllers/quadro/assets_controller.rb +21 -0
  51. data/app/controllers/quadro/feeds_controller.rb +6 -0
  52. data/app/controllers/quadro/pages_controller.rb +42 -0
  53. data/app/controllers/quadro/robots_controller.rb +6 -0
  54. data/app/controllers/quadro/users_controller.rb +15 -0
  55. data/app/controllers/quadro/widgets_controller.rb +14 -0
  56. data/app/helpers/quadro/application_helper.rb +4 -0
  57. data/app/helpers/quadro/asset_helper.rb +7 -0
  58. data/app/helpers/quadro/navigation_helper.rb +43 -0
  59. data/app/helpers/quadro/widget_helper.rb +54 -0
  60. data/app/models/quadro/asset.rb +11 -0
  61. data/app/models/quadro/asset/cover.rb +18 -0
  62. data/app/models/quadro/asset/image.rb +18 -0
  63. data/app/models/quadro/asset/slide.rb +18 -0
  64. data/app/models/quadro/interaction.rb +13 -0
  65. data/app/models/quadro/page.rb +88 -0
  66. data/app/models/quadro/user.rb +19 -0
  67. data/app/models/quadro/widget.rb +21 -0
  68. data/app/models/quadro/widget/form.rb +13 -0
  69. data/app/models/quadro/widget/gallery.rb +17 -0
  70. data/app/models/quadro/widget/html.rb +14 -0
  71. data/app/models/quadro/widget/map.rb +13 -0
  72. data/app/models/quadro/widget/slider.rb +17 -0
  73. data/app/views/layouts/quadro/application.html.haml +33 -0
  74. data/app/views/layouts/quadro/devise.html.haml +11 -0
  75. data/app/views/quadro/assets/create.js.erb +11 -0
  76. data/app/views/quadro/assets/destroy.js.erb +11 -0
  77. data/app/views/quadro/assets/edit.js.erb +9 -0
  78. data/app/views/quadro/assets/image/_form.html.haml +25 -0
  79. data/app/views/quadro/assets/image/_image.html.haml +10 -0
  80. data/app/views/quadro/assets/slide/_form.html.haml +26 -0
  81. data/app/views/quadro/assets/slide/_slide.html.haml +9 -0
  82. data/app/views/quadro/assets/update.js.erb +18 -0
  83. data/app/views/quadro/feeds/atom.xml.builder +27 -0
  84. data/app/views/quadro/feeds/rss.xml.builder +25 -0
  85. data/app/views/quadro/interactions/_interaction.html.haml +22 -0
  86. data/app/views/quadro/pages/_edit.html.haml +35 -0
  87. data/app/views/quadro/pages/_new.html.haml +11 -0
  88. data/app/views/quadro/pages/_page.html.haml +1 -0
  89. data/app/views/quadro/pages/create.js.erb +7 -0
  90. data/app/views/quadro/pages/destroy.js.erb +5 -0
  91. data/app/views/quadro/pages/edit.js.erb +4 -0
  92. data/app/views/quadro/pages/form.js.erb +6 -0
  93. data/app/views/quadro/pages/index.html.haml +1 -0
  94. data/app/views/quadro/pages/new.js.erb +2 -0
  95. data/app/views/quadro/pages/show.html.haml +1 -0
  96. data/app/views/quadro/pages/update.js.erb +7 -0
  97. data/app/views/quadro/robots/index.text.erb +4 -0
  98. data/app/views/quadro/shared/_modal.html.haml +3 -0
  99. data/app/views/quadro/shared/_navigation.html.haml +17 -0
  100. data/app/views/quadro/shared/_toolbar.html.haml +55 -0
  101. data/app/views/quadro/shared/templates/_blank.html.haml +11 -0
  102. data/app/views/quadro/shared/templates/_demo.html.haml +22 -0
  103. data/app/views/quadro/shared/templates/_jumbotron.html.haml +10 -0
  104. data/app/views/quadro/shared/templates/_sidebar.html.haml +15 -0
  105. data/app/views/quadro/shared/templates/page/_list.html.haml +9 -0
  106. data/app/views/quadro/shared/templates/page/_thumbnail.html.haml +9 -0
  107. data/app/views/quadro/users/_edit.html.haml +15 -0
  108. data/app/views/quadro/users/edit.js.erb +2 -0
  109. data/app/views/quadro/users/update.js.erb +7 -0
  110. data/app/views/quadro/widgets/edit.js.erb +0 -0
  111. data/app/views/quadro/widgets/form/_empty.html.haml +4 -0
  112. data/app/views/quadro/widgets/form/_fields.html.haml +1 -0
  113. data/app/views/quadro/widgets/form/_form.html.haml +0 -0
  114. data/app/views/quadro/widgets/form/_signed_off.html.haml +6 -0
  115. data/app/views/quadro/widgets/form/_signed_on.html.haml +14 -0
  116. data/app/views/quadro/widgets/form/_toolbar.html.haml +7 -0
  117. data/app/views/quadro/widgets/form/_widget.html.haml +1 -0
  118. data/app/views/quadro/widgets/gallery/_empty.html.haml +20 -0
  119. data/app/views/quadro/widgets/gallery/_form.html.haml +0 -0
  120. data/app/views/quadro/widgets/gallery/_signed_off.html.haml +6 -0
  121. data/app/views/quadro/widgets/gallery/_signed_on.html.haml +10 -0
  122. data/app/views/quadro/widgets/gallery/_toolbar.html.haml +7 -0
  123. data/app/views/quadro/widgets/gallery/_uploader.html.haml +5 -0
  124. data/app/views/quadro/widgets/gallery/_widget.html.haml +6 -0
  125. data/app/views/quadro/widgets/html/_empty.html.haml +2 -0
  126. data/app/views/quadro/widgets/html/_form.html.haml +0 -0
  127. data/app/views/quadro/widgets/html/_signed_off.html.haml +6 -0
  128. data/app/views/quadro/widgets/html/_signed_on.html.haml +9 -0
  129. data/app/views/quadro/widgets/html/_toolbar.html.haml +7 -0
  130. data/app/views/quadro/widgets/html/_widget.html.haml +1 -0
  131. data/app/views/quadro/widgets/map/_empty.html.haml +18 -0
  132. data/app/views/quadro/widgets/map/_form.html.haml +0 -0
  133. data/app/views/quadro/widgets/map/_signed_off.html.haml +4 -0
  134. data/app/views/quadro/widgets/map/_signed_on.html.haml +6 -0
  135. data/app/views/quadro/widgets/map/_toolbar.html.haml +7 -0
  136. data/app/views/quadro/widgets/map/_widget.html.haml +45 -0
  137. data/app/views/quadro/widgets/slider/_empty.html.haml +7 -0
  138. data/app/views/quadro/widgets/slider/_form.html.haml +0 -0
  139. data/app/views/quadro/widgets/slider/_signed_off.html.haml +6 -0
  140. data/app/views/quadro/widgets/slider/_signed_on.html.haml +10 -0
  141. data/app/views/quadro/widgets/slider/_toolbar.html.haml +7 -0
  142. data/app/views/quadro/widgets/slider/_uploader.html.haml +5 -0
  143. data/app/views/quadro/widgets/slider/_widget.html.haml +4 -0
  144. data/app/views/quadro/widgets/update.js.erb +0 -0
  145. data/app/views/users/mailer/reset_password_instructions.html.haml +6 -0
  146. data/app/views/users/mailer/unlock_instructions.html.haml +5 -0
  147. data/app/views/users/passwords/edit.html.haml +15 -0
  148. data/app/views/users/passwords/new.html.haml +13 -0
  149. data/app/views/users/sessions/new.html.haml +15 -0
  150. data/app/views/users/shared/_links.html.haml +19 -0
  151. data/app/views/users/unlocks/new.html.haml +13 -0
  152. data/config/initializers/crummy.rb +5 -0
  153. data/config/initializers/devise.rb +261 -0
  154. data/config/initializers/gravatar_image_tag.rb +7 -0
  155. data/config/initializers/kaminari_config.rb +10 -0
  156. data/config/initializers/simple_form.rb +142 -0
  157. data/config/initializers/simple_form_bootstrap.rb +79 -0
  158. data/config/initializers/sitemap.rb +9 -0
  159. data/config/locales/devise.en.yml +60 -0
  160. data/config/locales/kaminari.en.yml +17 -0
  161. data/config/locales/quadro.en.yml +5 -0
  162. data/config/locales/simple_form.en.yml +26 -0
  163. data/config/routes.rb +25 -0
  164. data/db/migrate/20141122163450_create_quadro_widgets.rb +19 -0
  165. data/db/migrate/20141129022344_create_quadro_pages.rb +20 -0
  166. data/db/migrate/20141206085127_create_quadro_assets.rb +16 -0
  167. data/db/migrate/20141207202401_devise_create_quadro_users.rb +28 -0
  168. data/db/migrate/20160606213156_create_quadro_interactions.rb +11 -0
  169. data/lib/generators/quadro/install/USAGE +8 -0
  170. data/lib/generators/quadro/install/install_generator.rb +35 -0
  171. data/lib/generators/quadro/install/templates/app/assets/images/quadro/favicon.ico +0 -0
  172. data/lib/generators/quadro/install/templates/app/assets/images/quadro/quadro-logo-mini.png +0 -0
  173. data/lib/generators/quadro/install/templates/app/assets/images/quadro/quadro-logo.png +0 -0
  174. data/lib/generators/quadro/install/templates/app/assets/javascripts/quadro/site.js.coffee +0 -0
  175. data/lib/generators/quadro/install/templates/app/assets/stylesheets/quadro/site.css.sass +0 -0
  176. data/lib/generators/quadro/install/templates/app/views/quadro/shared/_navigation.html.haml +17 -0
  177. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/_blank.html.haml +11 -0
  178. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/_demo.html.haml +22 -0
  179. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/_jumbotron.html.haml +10 -0
  180. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/_sidebar.html.haml +15 -0
  181. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/page/_list.html.haml +9 -0
  182. data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/page/_thumbnail.html.haml +9 -0
  183. data/lib/generators/quadro/install/templates/config/initializers/quadro.rb +12 -0
  184. data/lib/generators/quadro/install/templates/db/GeoLite2-Country.mmdb +0 -0
  185. data/lib/generators/quadro/install/templates/public/404.html +37 -0
  186. data/lib/generators/quadro/install/templates/public/422.html +37 -0
  187. data/lib/generators/quadro/install/templates/public/500.html +37 -0
  188. data/lib/generators/quadro/install/templates/public/maintenance.html +37 -0
  189. data/lib/quadro.rb +16 -0
  190. data/lib/quadro/engine.rb +44 -0
  191. data/lib/quadro/loader.rb +30 -0
  192. data/lib/quadro/signature.rb +3 -0
  193. data/lib/quadro/version.rb +3 -0
  194. data/lib/tasks/quadro_tasks.rake +15 -0
  195. data/test/dummy/README.rdoc +261 -0
  196. data/test/dummy/Rakefile +7 -0
  197. data/test/dummy/app/assets/images/quadro/favicon.ico +0 -0
  198. data/test/dummy/app/assets/images/quadro/quadro-logo-mini.png +0 -0
  199. data/test/dummy/app/assets/images/quadro/quadro-logo.png +0 -0
  200. data/test/dummy/app/assets/javascripts/application.js +15 -0
  201. data/test/dummy/app/assets/javascripts/quadro/site.js.coffee +0 -0
  202. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  203. data/test/dummy/app/assets/stylesheets/quadro/site.css.sass +0 -0
  204. data/test/dummy/app/controllers/application_controller.rb +3 -0
  205. data/test/dummy/app/helpers/application_helper.rb +2 -0
  206. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  207. data/test/dummy/app/views/quadro/shared/_navigation.html.haml +17 -0
  208. data/test/dummy/app/views/quadro/shared/templates/_blank.html.haml +11 -0
  209. data/test/dummy/app/views/quadro/shared/templates/_demo.html.haml +22 -0
  210. data/test/dummy/app/views/quadro/shared/templates/_jumbotron.html.haml +10 -0
  211. data/test/dummy/app/views/quadro/shared/templates/_sidebar.html.haml +15 -0
  212. data/test/dummy/app/views/quadro/shared/templates/page/_list.html.haml +9 -0
  213. data/test/dummy/app/views/quadro/shared/templates/page/_thumbnail.html.haml +9 -0
  214. data/test/dummy/config.ru +4 -0
  215. data/test/dummy/config/application.rb +59 -0
  216. data/test/dummy/config/boot.rb +10 -0
  217. data/test/dummy/config/database.yml +25 -0
  218. data/test/dummy/config/environment.rb +5 -0
  219. data/test/dummy/config/environments/development.rb +37 -0
  220. data/test/dummy/config/environments/production.rb +67 -0
  221. data/test/dummy/config/environments/test.rb +37 -0
  222. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  223. data/test/dummy/config/initializers/inflections.rb +15 -0
  224. data/test/dummy/config/initializers/mime_types.rb +5 -0
  225. data/test/dummy/config/initializers/quadro.rb +12 -0
  226. data/test/dummy/config/initializers/secret_token.rb +7 -0
  227. data/test/dummy/config/initializers/session_store.rb +8 -0
  228. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  229. data/test/dummy/config/locales/en.yml +5 -0
  230. data/test/dummy/config/routes.rb +3 -0
  231. data/test/dummy/db/GeoLite2-Country.mmdb +0 -0
  232. data/test/dummy/db/migrate/20160615055717_create_quadro_widgets.quadro.rb +20 -0
  233. data/test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb +21 -0
  234. data/test/dummy/db/migrate/20160615055719_create_quadro_assets.quadro.rb +17 -0
  235. data/test/dummy/db/migrate/20160615055720_devise_create_quadro_users.quadro.rb +29 -0
  236. data/test/dummy/db/migrate/20160615055721_create_quadro_interactions.quadro.rb +12 -0
  237. data/test/dummy/db/schema.rb +105 -0
  238. data/test/dummy/db/test.sqlite3 +0 -0
  239. data/test/dummy/log/development.log +0 -0
  240. data/test/dummy/log/test.log +3 -0
  241. data/test/dummy/public/404.html +37 -0
  242. data/test/dummy/public/422.html +37 -0
  243. data/test/dummy/public/500.html +37 -0
  244. data/test/dummy/public/maintenance.html +37 -0
  245. data/test/dummy/script/rails +6 -0
  246. data/test/integration/navigation_test.rb +10 -0
  247. data/test/quadro_test.rb +7 -0
  248. data/test/test_helper.rb +18 -0
  249. metadata +806 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ Quadro.setup do |config|
2
+ config.host = "www.example.com"
3
+ config.email = "quadro@example.com"
4
+ config.site = "Quadro"
5
+ config.layout = "list"
6
+ config.template = "blank"
7
+ config.frequency = "monthly"
8
+ config.priority = "0.5"
9
+ config.google_maps_api_key = ""
10
+ config.facebook_id = ""
11
+ config.twitter_username = ""
12
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '7e7e54cec462a59d1b068ff78c55995373c2b1e52e77298b90ab0f28d2cdacba024cf9aaf9af589cf0ea6295eedd256dac0607b16af83d8577ea0a57e4fa3a29'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Quadro::Engine => '/'
3
+ end
Binary file
@@ -0,0 +1,20 @@
1
+ # This migration comes from quadro (originally 20141122163450)
2
+ class CreateQuadroWidgets < ActiveRecord::Migration
3
+ def change
4
+ create_table :quadro_widgets do |t|
5
+ t.references :page
6
+ t.string :type
7
+ t.string :name
8
+ t.text :content
9
+ t.text :settings
10
+ t.timestamp :deleted_at
11
+ t.timestamps
12
+ end
13
+
14
+ add_index :quadro_widgets, [:page_id, :name], unique: true
15
+ add_index :quadro_widgets, :name
16
+ add_index :quadro_widgets, :page_id
17
+ add_index :quadro_widgets, :type
18
+ add_index :quadro_widgets, :deleted_at
19
+ end
20
+ end
@@ -0,0 +1,21 @@
1
+ # This migration comes from quadro (originally 20141129022344)
2
+ class CreateQuadroPages < ActiveRecord::Migration
3
+ def change
4
+ create_table :quadro_pages do |t|
5
+ t.references :author
6
+ t.string :title
7
+ t.string :slug
8
+ t.string :summary
9
+ t.string :ancestry
10
+ t.integer :ancestry_depth, default: 0
11
+ t.text :settings
12
+ t.timestamp :deleted_at
13
+ t.timestamps
14
+ end
15
+
16
+ add_index :quadro_pages, :slug, unique: true
17
+ add_index :quadro_pages, :ancestry
18
+ add_index :quadro_pages, :deleted_at
19
+ add_index :quadro_pages, :author_id
20
+ end
21
+ end
@@ -0,0 +1,17 @@
1
+ # This migration comes from quadro (originally 20141206085127)
2
+ class CreateQuadroAssets < ActiveRecord::Migration
3
+ def change
4
+ create_table :quadro_assets do |t|
5
+ t.references :assetable, polymorphic: true
6
+ t.string :type
7
+ t.text :settings
8
+ t.attachment :attachment
9
+ t.timestamp :deleted_at
10
+ t.timestamps
11
+ end
12
+
13
+ add_index :quadro_assets, [:assetable_id, :assetable_type]
14
+ add_index :quadro_assets, :type
15
+ add_index :quadro_assets, :deleted_at
16
+ end
17
+ end
@@ -0,0 +1,29 @@
1
+ # This migration comes from quadro (originally 20141207202401)
2
+ class DeviseCreateQuadroUsers < ActiveRecord::Migration
3
+ def change
4
+ create_table(:quadro_users) do |t|
5
+ t.string :email
6
+ t.string :name
7
+ t.string :slug
8
+ t.string :encrypted_password
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+ t.datetime :remember_created_at
12
+ t.integer :sign_in_count, default: 0
13
+ t.datetime :current_sign_in_at
14
+ t.datetime :last_sign_in_at
15
+ t.string :current_sign_in_ip
16
+ t.string :last_sign_in_ip
17
+ t.integer :failed_attempts, default: 0
18
+ t.string :unlock_token
19
+ t.datetime :locked_at
20
+ t.timestamp :deleted_at
21
+ t.timestamps
22
+ end
23
+
24
+ add_index :quadro_users, :email, unique: true
25
+ add_index :quadro_users, :reset_password_token, unique: true
26
+ add_index :quadro_users, :unlock_token, unique: true
27
+ add_index :quadro_users, :slug, unique: true
28
+ end
29
+ end
@@ -0,0 +1,12 @@
1
+ # This migration comes from quadro (originally 20160606213156)
2
+ class CreateQuadroInteractions < ActiveRecord::Migration
3
+ def change
4
+ create_table :quadro_interactions do |t|
5
+ t.references :interactable, polymorphic: true
6
+ t.text :content
7
+ t.string :ip_address
8
+ t.string :user_agent
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,105 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20160615055721) do
15
+
16
+ create_table "quadro_assets", :force => true do |t|
17
+ t.integer "assetable_id"
18
+ t.string "assetable_type"
19
+ t.string "type"
20
+ t.text "settings"
21
+ t.string "attachment_file_name"
22
+ t.string "attachment_content_type"
23
+ t.integer "attachment_file_size"
24
+ t.datetime "attachment_updated_at"
25
+ t.datetime "deleted_at"
26
+ t.datetime "created_at", :null => false
27
+ t.datetime "updated_at", :null => false
28
+ end
29
+
30
+ add_index "quadro_assets", ["assetable_id", "assetable_type"], :name => "index_quadro_assets_on_assetable_id_and_assetable_type"
31
+ add_index "quadro_assets", ["deleted_at"], :name => "index_quadro_assets_on_deleted_at"
32
+ add_index "quadro_assets", ["type"], :name => "index_quadro_assets_on_type"
33
+
34
+ create_table "quadro_interactions", :force => true do |t|
35
+ t.integer "interactable_id"
36
+ t.string "interactable_type"
37
+ t.text "content"
38
+ t.string "ip_address"
39
+ t.string "user_agent"
40
+ t.datetime "created_at", :null => false
41
+ t.datetime "updated_at", :null => false
42
+ end
43
+
44
+ create_table "quadro_pages", :force => true do |t|
45
+ t.integer "author_id"
46
+ t.string "title"
47
+ t.string "slug"
48
+ t.string "summary"
49
+ t.string "ancestry"
50
+ t.integer "ancestry_depth", :default => 0
51
+ t.text "settings"
52
+ t.datetime "deleted_at"
53
+ t.datetime "created_at", :null => false
54
+ t.datetime "updated_at", :null => false
55
+ end
56
+
57
+ add_index "quadro_pages", ["ancestry"], :name => "index_quadro_pages_on_ancestry"
58
+ add_index "quadro_pages", ["author_id"], :name => "index_quadro_pages_on_author_id"
59
+ add_index "quadro_pages", ["deleted_at"], :name => "index_quadro_pages_on_deleted_at"
60
+ add_index "quadro_pages", ["slug"], :name => "index_quadro_pages_on_slug", :unique => true
61
+
62
+ create_table "quadro_users", :force => true do |t|
63
+ t.string "email"
64
+ t.string "name"
65
+ t.string "slug"
66
+ t.string "encrypted_password"
67
+ t.string "reset_password_token"
68
+ t.datetime "reset_password_sent_at"
69
+ t.datetime "remember_created_at"
70
+ t.integer "sign_in_count", :default => 0
71
+ t.datetime "current_sign_in_at"
72
+ t.datetime "last_sign_in_at"
73
+ t.string "current_sign_in_ip"
74
+ t.string "last_sign_in_ip"
75
+ t.integer "failed_attempts", :default => 0
76
+ t.string "unlock_token"
77
+ t.datetime "locked_at"
78
+ t.datetime "deleted_at"
79
+ t.datetime "created_at", :null => false
80
+ t.datetime "updated_at", :null => false
81
+ end
82
+
83
+ add_index "quadro_users", ["email"], :name => "index_quadro_users_on_email", :unique => true
84
+ add_index "quadro_users", ["reset_password_token"], :name => "index_quadro_users_on_reset_password_token", :unique => true
85
+ add_index "quadro_users", ["slug"], :name => "index_quadro_users_on_slug", :unique => true
86
+ add_index "quadro_users", ["unlock_token"], :name => "index_quadro_users_on_unlock_token", :unique => true
87
+
88
+ create_table "quadro_widgets", :force => true do |t|
89
+ t.integer "page_id"
90
+ t.string "type"
91
+ t.string "name"
92
+ t.text "content"
93
+ t.text "settings"
94
+ t.datetime "deleted_at"
95
+ t.datetime "created_at", :null => false
96
+ t.datetime "updated_at", :null => false
97
+ end
98
+
99
+ add_index "quadro_widgets", ["deleted_at"], :name => "index_quadro_widgets_on_deleted_at"
100
+ add_index "quadro_widgets", ["name"], :name => "index_quadro_widgets_on_name"
101
+ add_index "quadro_widgets", ["page_id", "name"], :name => "index_quadro_widgets_on_page_id_and_name", :unique => true
102
+ add_index "quadro_widgets", ["page_id"], :name => "index_quadro_widgets_on_page_id"
103
+ add_index "quadro_widgets", ["type"], :name => "index_quadro_widgets_on_type"
104
+
105
+ end
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ Connecting to database specified by database.yml
2
+  (0.3ms) begin transaction
3
+  (0.1ms) rollback transaction
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>The page you were looking for doesn&rsquo;t exist!</title>
5
+ <meta charset="utf-8" />
6
+ <style>
7
+ body { display: table; height: 100vh; margin: 0px; padding: 0px; }
8
+ section { display: table-cell; vertical-align: middle; text-align: left; }
9
+ article { color: #333; }
10
+ h1 { font-family: sans; }
11
+ p { font-family: sans-serif; }
12
+ a { color: #666; text-decoration: none; }
13
+ a:hover { color: #333; text-decoration: none; }
14
+ @media only screen and (min-width : 320px) {
15
+ body { font-size: 16px; }
16
+ article { margin: 0px 1em; }
17
+ h1 { font-size: 32px; }
18
+ }
19
+ @media only screen and (min-width : 768px) {
20
+ body { font-size: 20px; }
21
+ article { margin: 0px 4em; }
22
+ h1 { font-size: 40px; }
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <section>
28
+ <article>
29
+ <h1>The page you were looking for doesn&rsquo;t exist!</h1>
30
+ <div>
31
+ <p>You may have mistyped the address or the page may have moved. You can always go to <a href="/">home page</a> instead.</p>
32
+ <p>&mdash; Quadro Team</p>
33
+ </div>
34
+ </article>
35
+ </section>
36
+ </body>
37
+ </html>
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>The change you wanted was rejected!</title>
5
+ <meta charset="utf-8" />
6
+ <style>
7
+ body { display: table; height: 100vh; margin: 0px; padding: 0px; }
8
+ section { display: table-cell; vertical-align: middle; text-align: left; }
9
+ article { color: #333; }
10
+ h1 { font-family: sans; }
11
+ p { font-family: sans-serif; }
12
+ a { color: #666; text-decoration: none; }
13
+ a:hover { color: #333; text-decoration: none; }
14
+ @media only screen and (min-width : 320px) {
15
+ body { font-size: 16px; }
16
+ article { margin: 0px 1em; }
17
+ h1 { font-size: 32px; }
18
+ }
19
+ @media only screen and (min-width : 768px) {
20
+ body { font-size: 20px; }
21
+ article { margin: 0px 4em; }
22
+ h1 { font-size: 40px; }
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <section>
28
+ <article>
29
+ <h1>The change you wanted was rejected!</h1>
30
+ <div>
31
+ <p>Maybe you tried to change something you didn&rsquo;t have access to. You can always go to <a href="/">home page</a> instead.</p>
32
+ <p>&mdash; Quadro Team</p>
33
+ </div>
34
+ </article>
35
+ </section>
36
+ </body>
37
+ </html>
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>We&rsquo;re sorry, but something went wrong!</title>
5
+ <meta charset="utf-8" />
6
+ <style>
7
+ body { display: table; height: 100vh; margin: 0px; padding: 0px; }
8
+ section { display: table-cell; vertical-align: middle; text-align: left; }
9
+ article { color: #333; }
10
+ h1 { font-family: sans; }
11
+ p { font-family: sans-serif; }
12
+ a { color: #666; text-decoration: none; }
13
+ a:hover { color: #333; text-decoration: none; }
14
+ @media only screen and (min-width : 320px) {
15
+ body { font-size: 16px; }
16
+ article { margin: 0px 1em; }
17
+ h1 { font-size: 32px; }
18
+ }
19
+ @media only screen and (min-width : 768px) {
20
+ body { font-size: 20px; }
21
+ article { margin: 0px 4em; }
22
+ h1 { font-size: 40px; }
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <section>
28
+ <article>
29
+ <h1>We&rsquo;re sorry, but something went wrong!</h1>
30
+ <div>
31
+ <p>We&rsquo;re working on it and we&rsquo;ll get it fixed as son as we can. You can always go to <a href="/">home page</a> instead.</p>
32
+ <p>&mdash; Quadro Team</p>
33
+ </div>
34
+ </article>
35
+ </section>
36
+ </body>
37
+ </html>
@@ -0,0 +1,37 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Website under maintenance!</title>
5
+ <meta charset="utf-8" />
6
+ <style>
7
+ body { display: table; height: 100vh; margin: 0px; padding: 0px; }
8
+ section { display: table-cell; vertical-align: middle; text-align: left; }
9
+ article { color: #333; }
10
+ h1 { font-family: sans; }
11
+ p { font-family: sans-serif; }
12
+ a { color: #666; text-decoration: none; }
13
+ a:hover { color: #333; text-decoration: none; }
14
+ @media only screen and (min-width : 320px) {
15
+ body { font-size: 16px; }
16
+ article { margin: 0px 1em; }
17
+ h1 { font-size: 32px; }
18
+ }
19
+ @media only screen and (min-width : 768px) {
20
+ body { font-size: 20px; }
21
+ article { margin: 0px 4em; }
22
+ h1 { font-size: 40px; }
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <section>
28
+ <article>
29
+ <h1>Website under maintenance!</h1>
30
+ <div>
31
+ <p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. You can always <a href="mailto:quadro@example.com">contact us</a>, otherwise we&rsquo;ll be back online shortly.</p>
32
+ <p>&mdash; Quadro Team</p>
33
+ </div>
34
+ </article>
35
+ </section>
36
+ </body>
37
+ </html>