pageflow-sitemap 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +7 -13
- data/README.md +2 -2
- data/app/assets/stylesheets/pageflow/sitemap/editor/{scroll_bar.css.scss → scroll_bar.scss} +0 -0
- data/app/assets/stylesheets/pageflow/sitemap/editor/{toolbar.css.scss → toolbar.scss} +0 -0
- data/app/assets/stylesheets/pageflow/sitemap/{editor.css.scss → editor.scss} +0 -0
- data/{exec/rails → bin/rails-cmd} +0 -0
- data/{exec → bin}/spring +0 -0
- data/{exec → bin}/teaspoon +0 -0
- data/config/locales/de.yml +9 -1
- data/config/locales/en.yml +11 -15
- data/lib/pageflow/sitemap/version.rb +1 -1
- data/pageflow-sitemap.gemspec +15 -15
- metadata +38 -199
- data/config/locales/new/help_button.de.yml +0 -7
- data/config/locales/new/help_button.en.yml +0 -7
- data/config/locales/new/tooltips.de.yml +0 -11
- data/config/locales/new/tooltips.en.yml +0 -11
- data/spec/d/r/.gitignore +0 -16
- data/spec/d/r/README.rdoc +0 -28
- data/spec/d/r/Rakefile +0 -6
- data/spec/d/r/app/admin/dashboard.rb +0 -33
- data/spec/d/r/app/assets/images/.keep +0 -0
- data/spec/d/r/app/assets/javascripts/active_admin.js.coffee +0 -2
- data/spec/d/r/app/assets/javascripts/application.js +0 -16
- data/spec/d/r/app/assets/javascripts/pageflow/application.js +0 -1
- data/spec/d/r/app/assets/javascripts/pageflow/editor.js +0 -4
- data/spec/d/r/app/assets/stylesheets/active_admin.css.scss +0 -18
- data/spec/d/r/app/assets/stylesheets/application.css +0 -13
- data/spec/d/r/app/assets/stylesheets/pageflow/application.css.scss +0 -1
- data/spec/d/r/app/assets/stylesheets/pageflow/editor.css.scss +0 -1
- data/spec/d/r/app/controllers/application_controller.rb +0 -5
- data/spec/d/r/app/controllers/concerns/.keep +0 -0
- data/spec/d/r/app/helpers/application_helper.rb +0 -2
- data/spec/d/r/app/mailers/.keep +0 -0
- data/spec/d/r/app/models/.keep +0 -0
- data/spec/d/r/app/models/ability.rb +0 -12
- data/spec/d/r/app/models/concerns/.keep +0 -0
- data/spec/d/r/app/models/user.rb +0 -9
- data/spec/d/r/app/views/layouts/application.html.erb +0 -14
- data/spec/d/r/bin/bundle +0 -3
- data/spec/d/r/bin/rails +0 -4
- data/spec/d/r/bin/rake +0 -4
- data/spec/d/r/config/application.rb +0 -31
- data/spec/d/r/config/boot.rb +0 -4
- data/spec/d/r/config/database.yml +0 -39
- data/spec/d/r/config/environment.rb +0 -5
- data/spec/d/r/config/environments/development.rb +0 -29
- data/spec/d/r/config/environments/production.rb +0 -80
- data/spec/d/r/config/environments/test.rb +0 -37
- data/spec/d/r/config/initializers/active_admin.rb +0 -225
- data/spec/d/r/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/d/r/config/initializers/devise.rb +0 -252
- data/spec/d/r/config/initializers/devise_async.rb +0 -6
- data/spec/d/r/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/d/r/config/initializers/friendly_id.rb +0 -88
- data/spec/d/r/config/initializers/inflections.rb +0 -16
- data/spec/d/r/config/initializers/mime_types.rb +0 -5
- data/spec/d/r/config/initializers/pageflow.rb +0 -76
- data/spec/d/r/config/initializers/resque.rb +0 -4
- data/spec/d/r/config/initializers/resque_enqueue_after_commit_patch.rb +0 -25
- data/spec/d/r/config/initializers/resque_logger.rb +0 -16
- data/spec/d/r/config/initializers/resque_mailer.rb +0 -4
- data/spec/d/r/config/initializers/secret_token.rb +0 -12
- data/spec/d/r/config/initializers/session_store.rb +0 -3
- data/spec/d/r/config/initializers/wrap_parameters.rb +0 -14
- data/spec/d/r/config/locales/devise.en.yml +0 -59
- data/spec/d/r/config/locales/en.yml +0 -23
- data/spec/d/r/config/routes.rb +0 -59
- data/spec/d/r/config.ru +0 -4
- data/spec/d/r/db/migrate/00000000000000_create_test_hosted_file.rb +0 -7
- data/spec/d/r/db/migrate/00000000000001_create_test_revision_component.rb +0 -10
- data/spec/d/r/db/migrate/20150209101518_create_active_admin_comments.rb +0 -19
- data/spec/d/r/db/migrate/20150209101524_devise_create_users.rb +0 -46
- data/spec/d/r/db/migrate/20150209101530_create_friendly_id_slugs.rb +0 -15
- data/spec/d/r/db/migrate/20150209101540_setup_schema.pageflow.rb +0 -208
- data/spec/d/r/db/migrate/20150209101541_add_attributes_to_users.pageflow.rb +0 -16
- data/spec/d/r/db/migrate/20150209101542_create_themings.pageflow.rb +0 -16
- data/spec/d/r/db/migrate/20150209101543_create_themings_for_existing_accounts.pageflow.rb +0 -27
- data/spec/d/r/db/migrate/20150209101544_change_theme_references_to_theming_references.pageflow.rb +0 -46
- data/spec/d/r/db/migrate/20150209101545_remove_attributes_from_themes.pageflow.rb +0 -11
- data/spec/d/r/db/migrate/20150209101546_create_accounts_themes_join_table.pageflow.rb +0 -9
- data/spec/d/r/db/migrate/20150209101547_move_cname_from_account_to_theming.pageflow.rb +0 -22
- data/spec/d/r/db/migrate/20150209101548_drop_themes.pageflow.rb +0 -15
- data/spec/d/r/db/migrate/20150209101549_add_confirmed_by_to_encoded_files.pageflow.rb +0 -7
- data/spec/d/r/db/migrate/20150209101550_add_home_url_attributes_to_themings_and_revisions.pageflow.rb +0 -10
- data/spec/d/r/db/migrate/20150209101551_create_widgets.pageflow.rb +0 -12
- data/spec/d/r/db/migrate/20150209101552_add_emphasize_chapter_beginning_to_revisions.pageflow.rb +0 -6
- data/spec/d/r/db/migrate/20150209101553_add_emphasize_new_pages_to_revisions.pageflow.rb +0 -6
- data/spec/d/r/db/migrate/20150209101554_add_sharing_image_to_revisions.pageflow.rb +0 -8
- data/spec/d/r/db/schema.rb +0 -316
- data/spec/d/r/db/seeds.rb +0 -30
- data/spec/d/r/lib/assets/.keep +0 -0
- data/spec/d/r/lib/tasks/.keep +0 -0
- data/spec/d/r/lib/tasks/resque.rake +0 -7
- data/spec/d/r/public/404.html +0 -58
- data/spec/d/r/public/422.html +0 -58
- data/spec/d/r/public/500.html +0 -57
- data/spec/d/r/public/favicon.ico +0 -0
- data/spec/d/r/public/javascripts/translations.js +0 -2
- data/spec/d/r/public/robots.txt +0 -5
- data/spec/d/r/vendor/assets/javascripts/.keep +0 -0
- data/spec/d/r/vendor/assets/stylesheets/.keep +0 -0
@@ -1,11 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20140624135423)
|
2
|
-
class RemoveAttributesFromThemes < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
remove_column :pageflow_themes, :copyright_link_url, :string
|
5
|
-
remove_column :pageflow_themes, :copyright_link_label, :string
|
6
|
-
remove_column :pageflow_themes, :imprint_link_url, :string
|
7
|
-
remove_column :pageflow_themes, :imprint_link_label, :string
|
8
|
-
|
9
|
-
rename_column :pageflow_themes, :name, :css_dir
|
10
|
-
end
|
11
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20140624135424)
|
2
|
-
class CreateAccountsThemesJoinTable < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :pageflow_accounts_themes, id: false do |t|
|
5
|
-
t.belongs_to :account
|
6
|
-
t.belongs_to :theme
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20140624135425)
|
2
|
-
class MoveCnameFromAccountToTheming < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
add_column :pageflow_themings, :cname, :string, null: false, default: ''
|
5
|
-
add_index :pageflow_themings, :cname
|
6
|
-
|
7
|
-
execute("UPDATE pageflow_themings SET cname = (SELECT cname FROM pageflow_accounts WHERE pageflow_accounts.default_theming_id = pageflow_themings.id LIMIT 1);")
|
8
|
-
|
9
|
-
remove_index :pageflow_accounts, :cname
|
10
|
-
remove_column :pageflow_accounts, :cname
|
11
|
-
end
|
12
|
-
|
13
|
-
def down
|
14
|
-
add_column :pageflow_accounts, :cname, :string, null: false, default: ''
|
15
|
-
add_index :pageflow_accounts, :cname
|
16
|
-
|
17
|
-
execute("UPDATE pageflow_accounts SET cname = (SELECT cname FROM pageflow_themings WHERE pageflow_themings.id = pageflow_accounts.default_theming_id);")
|
18
|
-
|
19
|
-
remove_index :pageflow_themings, :cname
|
20
|
-
remove_column :pageflow_themings, :cname
|
21
|
-
end
|
22
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20140625184800)
|
2
|
-
class DropThemes < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
rename_column :pageflow_accounts_themes, :theme_id, :theme_name
|
5
|
-
add_column :pageflow_themings, :theme_name, :string
|
6
|
-
|
7
|
-
execute(<<-SQL)
|
8
|
-
UPDATE pageflow_themings SET theme_name =
|
9
|
-
(SELECT css_dir FROM pageflow_themes WHERE pageflow_themes.id = pageflow_themings.theme_id);
|
10
|
-
SQL
|
11
|
-
|
12
|
-
remove_reference :pageflow_themings, :theme
|
13
|
-
drop_table :pageflow_themes
|
14
|
-
end
|
15
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20140819081454)
|
2
|
-
class AddHomeUrlAttributesToThemingsAndRevisions < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
add_column :pageflow_themings, :home_url, :string, default: '', null: false
|
5
|
-
add_column :pageflow_themings, :home_button_enabled_by_default, :boolean, default: true, null: false
|
6
|
-
|
7
|
-
add_column :pageflow_revisions, :home_url, :string, default: '', null: false
|
8
|
-
add_column :pageflow_revisions, :home_button_enabled, :boolean, default: false, null: false
|
9
|
-
end
|
10
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20141027102310)
|
2
|
-
class CreateWidgets < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
create_table :pageflow_widgets do |t|
|
5
|
-
t.belongs_to :subject, polymorphic: true
|
6
|
-
t.string :type_name
|
7
|
-
t.string :role
|
8
|
-
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# This migration comes from pageflow (originally 20141119174032)
|
2
|
-
class AddSharingImageToRevisions < ActiveRecord::Migration
|
3
|
-
def change
|
4
|
-
add_column :pageflow_revisions, :share_image_id, :integer
|
5
|
-
add_column :pageflow_revisions, :share_image_x, :integer
|
6
|
-
add_column :pageflow_revisions, :share_image_y, :integer
|
7
|
-
end
|
8
|
-
end
|
data/spec/d/r/db/schema.rb
DELETED
@@ -1,316 +0,0 @@
|
|
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
|
data/spec/d/r/db/seeds.rb
DELETED
@@ -1,30 +0,0 @@
|
|
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
|
data/spec/d/r/lib/assets/.keep
DELETED
File without changes
|
data/spec/d/r/lib/tasks/.keep
DELETED
File without changes
|
data/spec/d/r/public/404.html
DELETED
@@ -1,58 +0,0 @@
|
|
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>
|
data/spec/d/r/public/422.html
DELETED
@@ -1,58 +0,0 @@
|
|
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>
|
data/spec/d/r/public/500.html
DELETED
@@ -1,57 +0,0 @@
|
|
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>
|
data/spec/d/r/public/favicon.ico
DELETED
File without changes
|