pageflow-sitemap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/.jshintrc +18 -0
  4. data/Gemfile +24 -0
  5. data/LICENSE.md +20 -0
  6. data/README.md +47 -0
  7. data/Rakefile +32 -0
  8. data/app/assets/images/pageflow/sitemap/.keep +0 -0
  9. data/app/assets/javascripts/pageflow/sitemap/.keep +0 -0
  10. data/app/assets/javascripts/pageflow/sitemap/editor/controllers/abstract_controller.js +68 -0
  11. data/app/assets/javascripts/pageflow/sitemap/editor/controllers/editor_mode_controller.js +301 -0
  12. data/app/assets/javascripts/pageflow/sitemap/editor/controllers/fragment_parser.js +31 -0
  13. data/app/assets/javascripts/pageflow/sitemap/editor/controllers/selection_mode_controller.js +37 -0
  14. data/app/assets/javascripts/pageflow/sitemap/editor/controllers/selection_navigator.js +43 -0
  15. data/app/assets/javascripts/pageflow/sitemap/editor/d3/behaviors/mouse_wheel.js +43 -0
  16. data/app/assets/javascripts/pageflow/sitemap/editor/d3/behaviors/multi_drag.js +73 -0
  17. data/app/assets/javascripts/pageflow/sitemap/editor/d3/behaviors/scroll_and_zoom.js +286 -0
  18. data/app/assets/javascripts/pageflow/sitemap/editor/d3/behaviors/selection_rect.js +104 -0
  19. data/app/assets/javascripts/pageflow/sitemap/editor/d3/behaviors/tooltip_target.js +24 -0
  20. data/app/assets/javascripts/pageflow/sitemap/editor/d3/graph_view.js +277 -0
  21. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout/chapter_collision.js +33 -0
  22. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout/collision.js +116 -0
  23. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout/dragging_decorator.js +58 -0
  24. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout/grid.js +238 -0
  25. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout/link_dragging_decorator.js +42 -0
  26. data/app/assets/javascripts/pageflow/sitemap/editor/d3/layout.js +94 -0
  27. data/app/assets/javascripts/pageflow/sitemap/editor/d3/options.js +25 -0
  28. data/app/assets/javascripts/pageflow/sitemap/editor/d3/paths/follow_path.js +36 -0
  29. data/app/assets/javascripts/pageflow/sitemap/editor/d3/paths/linkpath.js +64 -0
  30. data/app/assets/javascripts/pageflow/sitemap/editor/d3/paths/successor_path.js +49 -0
  31. data/app/assets/javascripts/pageflow/sitemap/editor/d3/utils.js +33 -0
  32. data/app/assets/javascripts/pageflow/sitemap/editor/d3/view_model.js +202 -0
  33. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/add_button_view.js +28 -0
  34. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/chapter_placeholders_view.js +22 -0
  35. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/chapters_view.js +89 -0
  36. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/group_view.js +104 -0
  37. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/page_links_view.js +7 -0
  38. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/pages_view.js +112 -0
  39. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/selectable_links_view.js +104 -0
  40. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/storylines_view.js +86 -0
  41. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/successor_links_view.js +7 -0
  42. data/app/assets/javascripts/pageflow/sitemap/editor/d3/views/text_label_view.js +45 -0
  43. data/app/assets/javascripts/pageflow/sitemap/editor/d3.js +20 -0
  44. data/app/assets/javascripts/pageflow/sitemap/editor/feature.js +126 -0
  45. data/app/assets/javascripts/pageflow/sitemap/editor/models/selection.js +41 -0
  46. data/app/assets/javascripts/pageflow/sitemap/editor/templates/scroll_bar.jst.ejs +2 -0
  47. data/app/assets/javascripts/pageflow/sitemap/editor/templates/sitemap.jst.ejs +85 -0
  48. data/app/assets/javascripts/pageflow/sitemap/editor/views/scroll_bar_view.js +130 -0
  49. data/app/assets/javascripts/pageflow/sitemap/editor/views/scroll_pane_view.js +73 -0
  50. data/app/assets/javascripts/pageflow/sitemap/editor/views/sitemap_view.js +137 -0
  51. data/app/assets/javascripts/pageflow/sitemap/editor.js +14 -0
  52. data/app/assets/javascripts/pageflow/sitemap/feature.js +3 -0
  53. data/app/assets/javascripts/pageflow/sitemap/scroll_navigator.js +112 -0
  54. data/app/assets/javascripts/pageflow/sitemap.js +5 -0
  55. data/app/assets/stylesheets/pageflow/sitemap/.keep +0 -0
  56. data/app/assets/stylesheets/pageflow/sitemap/editor/add_button.scss +29 -0
  57. data/app/assets/stylesheets/pageflow/sitemap/editor/chapter_placeholders.scss +14 -0
  58. data/app/assets/stylesheets/pageflow/sitemap/editor/chapters.scss +62 -0
  59. data/app/assets/stylesheets/pageflow/sitemap/editor/page_links.scss +19 -0
  60. data/app/assets/stylesheets/pageflow/sitemap/editor/pages.scss +78 -0
  61. data/app/assets/stylesheets/pageflow/sitemap/editor/scroll_bar.css.scss +33 -0
  62. data/app/assets/stylesheets/pageflow/sitemap/editor/scroll_pane.scss +15 -0
  63. data/app/assets/stylesheets/pageflow/sitemap/editor/selectable_links.scss +88 -0
  64. data/app/assets/stylesheets/pageflow/sitemap/editor/selection_rect.scss +12 -0
  65. data/app/assets/stylesheets/pageflow/sitemap/editor/storylines.scss +59 -0
  66. data/app/assets/stylesheets/pageflow/sitemap/editor/successor_links.scss +42 -0
  67. data/app/assets/stylesheets/pageflow/sitemap/editor/text_label.scss +23 -0
  68. data/app/assets/stylesheets/pageflow/sitemap/editor/toolbar.css.scss +45 -0
  69. data/app/assets/stylesheets/pageflow/sitemap/editor.css.scss +96 -0
  70. data/config/locales/de.yml +16 -0
  71. data/config/locales/en.yml +48 -0
  72. data/config/locales/new/help_button.de.yml +7 -0
  73. data/config/locales/new/help_button.en.yml +7 -0
  74. data/config/locales/new/tooltips.de.yml +11 -0
  75. data/config/locales/new/tooltips.en.yml +11 -0
  76. data/config/routes.rb +7 -0
  77. data/config/spring.rb +1 -0
  78. data/exec/rails +12 -0
  79. data/exec/spring +18 -0
  80. data/exec/teaspoon +17 -0
  81. data/lib/pageflow/sitemap/engine.rb +10 -0
  82. data/lib/pageflow/sitemap/plugin.rb +11 -0
  83. data/lib/pageflow/sitemap/version.rb +5 -0
  84. data/lib/pageflow-sitemap.rb +9 -0
  85. data/pageflow-sitemap.gemspec +29 -0
  86. data/spec/d/r/.gitignore +16 -0
  87. data/spec/d/r/README.rdoc +28 -0
  88. data/spec/d/r/Rakefile +6 -0
  89. data/spec/d/r/app/admin/dashboard.rb +33 -0
  90. data/spec/d/r/app/assets/images/.keep +0 -0
  91. data/spec/d/r/app/assets/javascripts/active_admin.js.coffee +2 -0
  92. data/spec/d/r/app/assets/javascripts/application.js +16 -0
  93. data/spec/d/r/app/assets/javascripts/pageflow/application.js +1 -0
  94. data/spec/d/r/app/assets/javascripts/pageflow/editor.js +4 -0
  95. data/spec/d/r/app/assets/stylesheets/active_admin.css.scss +18 -0
  96. data/spec/d/r/app/assets/stylesheets/application.css +13 -0
  97. data/spec/d/r/app/assets/stylesheets/pageflow/application.css.scss +1 -0
  98. data/spec/d/r/app/assets/stylesheets/pageflow/editor.css.scss +1 -0
  99. data/spec/d/r/app/controllers/application_controller.rb +5 -0
  100. data/spec/d/r/app/controllers/concerns/.keep +0 -0
  101. data/spec/d/r/app/helpers/application_helper.rb +2 -0
  102. data/spec/d/r/app/mailers/.keep +0 -0
  103. data/spec/d/r/app/models/.keep +0 -0
  104. data/spec/d/r/app/models/ability.rb +12 -0
  105. data/spec/d/r/app/models/concerns/.keep +0 -0
  106. data/spec/d/r/app/models/user.rb +9 -0
  107. data/spec/d/r/app/views/layouts/application.html.erb +14 -0
  108. data/spec/d/r/bin/bundle +3 -0
  109. data/spec/d/r/bin/rails +4 -0
  110. data/spec/d/r/bin/rake +4 -0
  111. data/spec/d/r/config/application.rb +31 -0
  112. data/spec/d/r/config/boot.rb +4 -0
  113. data/spec/d/r/config/database.yml +39 -0
  114. data/spec/d/r/config/environment.rb +5 -0
  115. data/spec/d/r/config/environments/development.rb +29 -0
  116. data/spec/d/r/config/environments/production.rb +80 -0
  117. data/spec/d/r/config/environments/test.rb +37 -0
  118. data/spec/d/r/config/initializers/active_admin.rb +225 -0
  119. data/spec/d/r/config/initializers/backtrace_silencers.rb +7 -0
  120. data/spec/d/r/config/initializers/devise.rb +252 -0
  121. data/spec/d/r/config/initializers/devise_async.rb +6 -0
  122. data/spec/d/r/config/initializers/filter_parameter_logging.rb +4 -0
  123. data/spec/d/r/config/initializers/friendly_id.rb +88 -0
  124. data/spec/d/r/config/initializers/inflections.rb +16 -0
  125. data/spec/d/r/config/initializers/mime_types.rb +5 -0
  126. data/spec/d/r/config/initializers/pageflow.rb +76 -0
  127. data/spec/d/r/config/initializers/resque.rb +4 -0
  128. data/spec/d/r/config/initializers/resque_enqueue_after_commit_patch.rb +25 -0
  129. data/spec/d/r/config/initializers/resque_logger.rb +16 -0
  130. data/spec/d/r/config/initializers/resque_mailer.rb +4 -0
  131. data/spec/d/r/config/initializers/secret_token.rb +12 -0
  132. data/spec/d/r/config/initializers/session_store.rb +3 -0
  133. data/spec/d/r/config/initializers/wrap_parameters.rb +14 -0
  134. data/spec/d/r/config/locales/devise.en.yml +59 -0
  135. data/spec/d/r/config/locales/en.yml +23 -0
  136. data/spec/d/r/config/routes.rb +59 -0
  137. data/spec/d/r/config.ru +4 -0
  138. data/spec/d/r/db/migrate/00000000000000_create_test_hosted_file.rb +7 -0
  139. data/spec/d/r/db/migrate/00000000000001_create_test_revision_component.rb +10 -0
  140. data/spec/d/r/db/migrate/20150209101518_create_active_admin_comments.rb +19 -0
  141. data/spec/d/r/db/migrate/20150209101524_devise_create_users.rb +46 -0
  142. data/spec/d/r/db/migrate/20150209101530_create_friendly_id_slugs.rb +15 -0
  143. data/spec/d/r/db/migrate/20150209101540_setup_schema.pageflow.rb +208 -0
  144. data/spec/d/r/db/migrate/20150209101541_add_attributes_to_users.pageflow.rb +16 -0
  145. data/spec/d/r/db/migrate/20150209101542_create_themings.pageflow.rb +16 -0
  146. data/spec/d/r/db/migrate/20150209101543_create_themings_for_existing_accounts.pageflow.rb +27 -0
  147. data/spec/d/r/db/migrate/20150209101544_change_theme_references_to_theming_references.pageflow.rb +46 -0
  148. data/spec/d/r/db/migrate/20150209101545_remove_attributes_from_themes.pageflow.rb +11 -0
  149. data/spec/d/r/db/migrate/20150209101546_create_accounts_themes_join_table.pageflow.rb +9 -0
  150. data/spec/d/r/db/migrate/20150209101547_move_cname_from_account_to_theming.pageflow.rb +22 -0
  151. data/spec/d/r/db/migrate/20150209101548_drop_themes.pageflow.rb +15 -0
  152. data/spec/d/r/db/migrate/20150209101549_add_confirmed_by_to_encoded_files.pageflow.rb +7 -0
  153. data/spec/d/r/db/migrate/20150209101550_add_home_url_attributes_to_themings_and_revisions.pageflow.rb +10 -0
  154. data/spec/d/r/db/migrate/20150209101551_create_widgets.pageflow.rb +12 -0
  155. data/spec/d/r/db/migrate/20150209101552_add_emphasize_chapter_beginning_to_revisions.pageflow.rb +6 -0
  156. data/spec/d/r/db/migrate/20150209101553_add_emphasize_new_pages_to_revisions.pageflow.rb +6 -0
  157. data/spec/d/r/db/migrate/20150209101554_add_sharing_image_to_revisions.pageflow.rb +8 -0
  158. data/spec/d/r/db/schema.rb +316 -0
  159. data/spec/d/r/db/seeds.rb +30 -0
  160. data/spec/d/r/lib/assets/.keep +0 -0
  161. data/spec/d/r/lib/tasks/.keep +0 -0
  162. data/spec/d/r/lib/tasks/resque.rake +7 -0
  163. data/spec/d/r/public/404.html +58 -0
  164. data/spec/d/r/public/422.html +58 -0
  165. data/spec/d/r/public/500.html +57 -0
  166. data/spec/d/r/public/favicon.ico +0 -0
  167. data/spec/d/r/public/javascripts/translations.js +2 -0
  168. data/spec/d/r/public/robots.txt +5 -0
  169. data/spec/d/r/vendor/assets/javascripts/.keep +0 -0
  170. data/spec/d/r/vendor/assets/stylesheets/.keep +0 -0
  171. data/spec/javascripts/.jshintrc +26 -0
  172. data/spec/javascripts/pageflow/sitemap/editor/controllers/selection_navigator_spec.js +52 -0
  173. data/spec/javascripts/pageflow/sitemap/editor/d3/layout/collision_spec.js +99 -0
  174. data/spec/javascripts/pageflow/sitemap/editor/d3/layout/dragging_decorator_spec.js +114 -0
  175. data/spec/javascripts/pageflow/sitemap/editor/d3/layout/grid_spec.js +183 -0
  176. data/spec/javascripts/pageflow/sitemap/editor/d3/layout_spec.js +31 -0
  177. data/spec/javascripts/pageflow/sitemap/editor/d3/view_model_spec.js +56 -0
  178. data/spec/javascripts/pageflow/sitemap/editor/models/selection_spec.js +62 -0
  179. data/spec/javascripts/pageflow/sitemap/scroll_navigator_spec.js +5 -0
  180. data/spec/javascripts/spec_helper.js +13 -0
  181. data/spec/javascripts/support/factories.js +81 -0
  182. data/spec/teaspoon_env.rb +182 -0
  183. data/vendor/assets/javascripts/d3.v3.js +9215 -0
  184. metadata +379 -0
@@ -0,0 +1,316 @@
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 that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150209101554) do
15
+
16
+ create_table "active_admin_comments", force: true do |t|
17
+ t.string "namespace"
18
+ t.text "body"
19
+ t.string "resource_id", null: false
20
+ t.string "resource_type", null: false
21
+ t.integer "author_id"
22
+ t.string "author_type"
23
+ t.datetime "created_at"
24
+ t.datetime "updated_at"
25
+ end
26
+
27
+ add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id", using: :btree
28
+ add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace", using: :btree
29
+ add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id", using: :btree
30
+
31
+ create_table "friendly_id_slugs", force: true do |t|
32
+ t.string "slug", null: false
33
+ t.integer "sluggable_id", null: false
34
+ t.string "sluggable_type", limit: 50
35
+ t.string "scope"
36
+ t.datetime "created_at"
37
+ end
38
+
39
+ add_index "friendly_id_slugs", ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true, using: :btree
40
+ add_index "friendly_id_slugs", ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type", using: :btree
41
+ add_index "friendly_id_slugs", ["sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_id", using: :btree
42
+ add_index "friendly_id_slugs", ["sluggable_type"], name: "index_friendly_id_slugs_on_sluggable_type", using: :btree
43
+
44
+ create_table "pageflow_accounts", force: true do |t|
45
+ t.string "name", default: "", null: false
46
+ t.datetime "created_at"
47
+ t.datetime "updated_at"
48
+ t.string "default_file_rights", default: "", null: false
49
+ t.string "landing_page_name", default: "", null: false
50
+ t.integer "default_theming_id"
51
+ end
52
+
53
+ add_index "pageflow_accounts", ["default_theming_id"], name: "index_pageflow_accounts_on_default_theming_id", using: :btree
54
+
55
+ create_table "pageflow_accounts_themes", id: false, force: true do |t|
56
+ t.integer "account_id"
57
+ t.integer "theme_name"
58
+ end
59
+
60
+ create_table "pageflow_audio_files", force: true do |t|
61
+ t.integer "entry_id"
62
+ t.integer "uploader_id"
63
+ t.string "attachment_on_filesystem_file_name"
64
+ t.string "attachment_on_filesystem_content_type"
65
+ t.integer "attachment_on_filesystem_file_size", limit: 8
66
+ t.datetime "attachment_on_filesystem_updated_at"
67
+ t.string "attachment_on_s3_file_name"
68
+ t.string "attachment_on_s3_content_type"
69
+ t.integer "attachment_on_s3_file_size", limit: 8
70
+ t.datetime "attachment_on_s3_updated_at"
71
+ t.integer "job_id"
72
+ t.string "state"
73
+ t.decimal "encoding_progress", precision: 5, scale: 2
74
+ t.datetime "created_at"
75
+ t.datetime "updated_at"
76
+ t.string "encoding_error_message"
77
+ t.integer "duration_in_ms"
78
+ t.string "format"
79
+ t.string "rights", default: "", null: false
80
+ t.integer "confirmed_by_id"
81
+ end
82
+
83
+ create_table "pageflow_chapters", force: true do |t|
84
+ t.integer "entry_id"
85
+ t.datetime "created_at"
86
+ t.datetime "updated_at"
87
+ t.integer "position", default: 0, null: false
88
+ t.string "title", default: "", null: false
89
+ t.integer "revision_id"
90
+ end
91
+
92
+ add_index "pageflow_chapters", ["entry_id"], name: "index_pageflow_chapters_on_entry_id", using: :btree
93
+ add_index "pageflow_chapters", ["revision_id"], name: "index_pageflow_chapters_on_revision_id", using: :btree
94
+
95
+ create_table "pageflow_edit_locks", force: true do |t|
96
+ t.integer "user_id"
97
+ t.integer "entry_id"
98
+ t.datetime "created_at"
99
+ t.datetime "updated_at"
100
+ end
101
+
102
+ add_index "pageflow_edit_locks", ["entry_id"], name: "index_pageflow_edit_locks_on_entry_id", using: :btree
103
+ add_index "pageflow_edit_locks", ["user_id"], name: "index_pageflow_edit_locks_on_user_id", using: :btree
104
+
105
+ create_table "pageflow_entries", force: true do |t|
106
+ t.string "title", default: "", null: false
107
+ t.datetime "created_at"
108
+ t.datetime "updated_at"
109
+ t.string "slug", null: false
110
+ t.integer "account_id"
111
+ t.integer "folder_id"
112
+ t.integer "theming_id"
113
+ end
114
+
115
+ add_index "pageflow_entries", ["account_id"], name: "index_pageflow_entries_on_account_id", using: :btree
116
+ add_index "pageflow_entries", ["folder_id"], name: "index_pageflow_entries_on_folder_id", using: :btree
117
+ add_index "pageflow_entries", ["slug"], name: "index_pageflow_entries_on_slug", unique: true, using: :btree
118
+ add_index "pageflow_entries", ["theming_id"], name: "index_pageflow_entries_on_theming_id", using: :btree
119
+
120
+ create_table "pageflow_file_usages", force: true do |t|
121
+ t.integer "revision_id"
122
+ t.integer "file_id"
123
+ t.string "file_type"
124
+ t.datetime "created_at"
125
+ t.datetime "updated_at"
126
+ end
127
+
128
+ add_index "pageflow_file_usages", ["file_id", "file_type"], name: "index_pageflow_file_usages_on_file_id_and_file_type", using: :btree
129
+ add_index "pageflow_file_usages", ["revision_id"], name: "index_pageflow_file_usages_on_revision_id", using: :btree
130
+
131
+ create_table "pageflow_folders", force: true do |t|
132
+ t.string "name"
133
+ t.integer "account_id"
134
+ t.datetime "created_at"
135
+ t.datetime "updated_at"
136
+ end
137
+
138
+ add_index "pageflow_folders", ["account_id"], name: "index_pageflow_folders_on_account_id", using: :btree
139
+
140
+ create_table "pageflow_image_files", force: true do |t|
141
+ t.integer "entry_id"
142
+ t.integer "uploader_id"
143
+ t.string "unprocessed_attachment_file_name"
144
+ t.string "unprocessed_attachment_content_type"
145
+ t.integer "unprocessed_attachment_file_size", limit: 8
146
+ t.datetime "unprocessed_attachment_updated_at"
147
+ t.string "processed_attachment_file_name"
148
+ t.string "processed_attachment_content_type"
149
+ t.integer "processed_attachment_file_size", limit: 8
150
+ t.datetime "processed_attachment_updated_at"
151
+ t.string "state"
152
+ t.datetime "created_at"
153
+ t.datetime "updated_at"
154
+ t.integer "width"
155
+ t.integer "height"
156
+ t.string "rights", default: "", null: false
157
+ end
158
+
159
+ create_table "pageflow_memberships", force: true do |t|
160
+ t.integer "user_id"
161
+ t.integer "entry_id"
162
+ t.string "name"
163
+ t.datetime "created_at"
164
+ t.datetime "updated_at"
165
+ end
166
+
167
+ add_index "pageflow_memberships", ["entry_id"], name: "index_pageflow_memberships_on_entry_id", using: :btree
168
+ add_index "pageflow_memberships", ["user_id"], name: "index_pageflow_memberships_on_user_id", using: :btree
169
+
170
+ create_table "pageflow_pages", force: true do |t|
171
+ t.integer "chapter_id"
172
+ t.string "template", default: "", null: false
173
+ t.text "configuration"
174
+ t.datetime "created_at"
175
+ t.datetime "updated_at"
176
+ t.integer "position", default: 0, null: false
177
+ t.boolean "display_in_navigation", default: true
178
+ t.integer "perma_id"
179
+ end
180
+
181
+ add_index "pageflow_pages", ["chapter_id"], name: "index_pageflow_pages_on_chapter_id", using: :btree
182
+ add_index "pageflow_pages", ["perma_id"], name: "index_pageflow_pages_on_perma_id", using: :btree
183
+
184
+ create_table "pageflow_revisions", force: true do |t|
185
+ t.integer "entry_id"
186
+ t.integer "creator_id"
187
+ t.datetime "published_at"
188
+ t.datetime "published_until"
189
+ t.datetime "created_at"
190
+ t.datetime "updated_at"
191
+ t.text "credits"
192
+ t.string "title", default: "", null: false
193
+ t.text "summary"
194
+ t.boolean "manual_start", default: false
195
+ t.integer "restored_from_id"
196
+ t.datetime "frozen_at"
197
+ t.string "snapshot_type"
198
+ t.string "home_url", default: "", null: false
199
+ t.boolean "home_button_enabled", default: false, null: false
200
+ t.boolean "emphasize_chapter_beginning", default: false, null: false
201
+ t.boolean "emphasize_new_pages", default: false, null: false
202
+ t.integer "share_image_id"
203
+ t.integer "share_image_x"
204
+ t.integer "share_image_y"
205
+ end
206
+
207
+ add_index "pageflow_revisions", ["restored_from_id"], name: "index_pageflow_revisions_on_restored_from_id", using: :btree
208
+
209
+ create_table "pageflow_themings", force: true do |t|
210
+ t.string "imprint_link_url"
211
+ t.string "imprint_link_label"
212
+ t.string "copyright_link_url"
213
+ t.string "copyright_link_label"
214
+ t.integer "account_id"
215
+ t.datetime "created_at"
216
+ t.datetime "updated_at"
217
+ t.string "cname", default: "", null: false
218
+ t.string "theme_name"
219
+ t.string "home_url", default: "", null: false
220
+ t.boolean "home_button_enabled_by_default", default: true, null: false
221
+ end
222
+
223
+ add_index "pageflow_themings", ["cname"], name: "index_pageflow_themings_on_cname", using: :btree
224
+
225
+ create_table "pageflow_video_files", force: true do |t|
226
+ t.integer "entry_id"
227
+ t.integer "uploader_id"
228
+ t.string "attachment_on_filesystem_file_name"
229
+ t.string "attachment_on_filesystem_content_type"
230
+ t.integer "attachment_on_filesystem_file_size", limit: 8
231
+ t.datetime "attachment_on_filesystem_updated_at"
232
+ t.string "attachment_on_s3_file_name"
233
+ t.string "attachment_on_s3_content_type"
234
+ t.integer "attachment_on_s3_file_size", limit: 8
235
+ t.datetime "attachment_on_s3_updated_at"
236
+ t.integer "job_id"
237
+ t.string "state"
238
+ t.decimal "encoding_progress", precision: 5, scale: 2
239
+ t.datetime "created_at"
240
+ t.datetime "updated_at"
241
+ t.string "encoding_error_message"
242
+ t.string "thumbnail_file_name"
243
+ t.integer "width"
244
+ t.integer "height"
245
+ t.integer "duration_in_ms"
246
+ t.string "format"
247
+ t.string "poster_file_name"
248
+ t.string "poster_content_type"
249
+ t.string "thumbnail_content_type"
250
+ t.string "rights", default: "", null: false
251
+ t.integer "confirmed_by_id"
252
+ end
253
+
254
+ create_table "pageflow_widgets", force: true do |t|
255
+ t.integer "subject_id"
256
+ t.string "subject_type"
257
+ t.string "type_name"
258
+ t.string "role"
259
+ t.datetime "created_at"
260
+ t.datetime "updated_at"
261
+ end
262
+
263
+ create_table "test_hosted_files", force: true do |t|
264
+ t.integer "entry_id"
265
+ t.integer "uploader_id"
266
+ t.string "state"
267
+ t.string "rights"
268
+ t.string "attachment_on_filesystem_file_name"
269
+ t.string "attachment_on_filesystem_content_type"
270
+ t.integer "attachment_on_filesystem_file_size", limit: 8
271
+ t.datetime "attachment_on_filesystem_updated_at"
272
+ t.string "attachment_on_s3_file_name"
273
+ t.string "attachment_on_s3_content_type"
274
+ t.integer "attachment_on_s3_file_size", limit: 8
275
+ t.datetime "attachment_on_s3_updated_at"
276
+ t.datetime "created_at"
277
+ t.datetime "updated_at"
278
+ end
279
+
280
+ add_index "test_hosted_files", ["entry_id"], name: "index_test_hosted_files_on_entry_id", using: :btree
281
+ add_index "test_hosted_files", ["uploader_id"], name: "index_test_hosted_files_on_uploader_id", using: :btree
282
+
283
+ create_table "test_revision_components", force: true do |t|
284
+ t.integer "revision_id"
285
+ t.integer "perma_id"
286
+ t.string "text"
287
+ end
288
+
289
+ create_table "users", force: true do |t|
290
+ t.string "email", default: "", null: false
291
+ t.string "encrypted_password", default: "", null: false
292
+ t.string "reset_password_token"
293
+ t.datetime "reset_password_sent_at"
294
+ t.datetime "remember_created_at"
295
+ t.integer "sign_in_count", default: 0
296
+ t.datetime "current_sign_in_at"
297
+ t.datetime "last_sign_in_at"
298
+ t.string "current_sign_in_ip"
299
+ t.string "last_sign_in_ip"
300
+ t.datetime "created_at"
301
+ t.datetime "updated_at"
302
+ t.integer "failed_attempts", default: 0
303
+ t.datetime "locked_at"
304
+ t.string "first_name"
305
+ t.string "last_name"
306
+ t.datetime "suspended_at"
307
+ t.integer "account_id"
308
+ t.string "role", default: "editor", null: false
309
+ end
310
+
311
+ add_index "users", ["account_id"], name: "index_pageflow_users_on_account_id", using: :btree
312
+ add_index "users", ["email"], name: "index_pageflow_users_on_email", unique: true, using: :btree
313
+ add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
314
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
315
+
316
+ end
@@ -0,0 +1,30 @@
1
+ include Pageflow::Seeds
2
+
3
+ # Make sure to change the password if you intend to apply this seed to
4
+ # a production system.
5
+ default_user_password('!Pass123')
6
+
7
+ account(name: 'Pageflow') do |account|
8
+ entry = sample_entry(account: account, title: 'Example Entry')
9
+
10
+ user(account: account,
11
+ role: 'admin',
12
+ email: 'admin@example.com',
13
+ first_name: 'Alice',
14
+ last_name: 'Adminson')
15
+
16
+ user(account: account,
17
+ role: 'account_manager',
18
+ email: 'accountmanager@example.com',
19
+ first_name: 'Alfred',
20
+ last_name: 'Mc Count')
21
+
22
+ user(account: account,
23
+ email: 'editor@example.com',
24
+ role: 'editor',
25
+ first_name: 'Ed',
26
+ last_name: 'Edison') do |editor|
27
+
28
+ membership(user: editor, entry: entry)
29
+ end
30
+ end
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ require 'resque/tasks'
2
+ require 'resque_scheduler/tasks'
3
+
4
+ namespace :resque do
5
+ # Tell resque to initialize the rails app in worker processes
6
+ task :setup => :environment
7
+ end
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes