archangel 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.codeclimate.yml +17 -0
- data/.editorconfig +19 -0
- data/.eslintignore +6 -0
- data/.eslintrc.json +40 -0
- data/.github/ISSUE_TEMPLATE.md +23 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- data/.gitignore +22 -0
- data/.hound.yml +21 -0
- data/.mdlrc +2 -0
- data/.reek +35 -0
- data/.rspec +4 -0
- data/.rubocop.yml +28 -0
- data/.rubocop_disabled.yml +2 -0
- data/.rubocop_enabled.yml +2 -0
- data/.rubocop_todo.yml +7 -0
- data/.scss-lint.yml +22 -0
- data/.travis.yml +16 -0
- data/.yardopts +10 -0
- data/CODE_OF_CONDUCT.md +43 -0
- data/CONTRIBUTING.md +150 -0
- data/Gemfile +36 -0
- data/MIT-LICENSE +21 -0
- data/README.md +129 -0
- data/Rakefile +27 -0
- data/app/assets/config/archangel_manifest.js +14 -0
- data/app/assets/images/archangel/fallback/asset.png +0 -0
- data/app/assets/images/archangel/fallback/avatar.png +0 -0
- data/app/assets/images/archangel/fallback/default.png +0 -0
- data/app/assets/images/archangel/fallback/favicon.ico +0 -0
- data/app/assets/images/archangel/fallback/large_avatar.png +0 -0
- data/app/assets/images/archangel/fallback/large_logo.png +0 -0
- data/app/assets/images/archangel/fallback/logo.png +0 -0
- data/app/assets/images/archangel/fallback/medium_avatar.png +0 -0
- data/app/assets/images/archangel/fallback/medium_logo.png +0 -0
- data/app/assets/images/archangel/fallback/small_asset.png +0 -0
- data/app/assets/images/archangel/fallback/small_avatar.png +0 -0
- data/app/assets/images/archangel/fallback/small_logo.png +0 -0
- data/app/assets/images/archangel/fallback/tiny_asset.png +0 -0
- data/app/assets/images/archangel/fallback/tiny_avatar.png +0 -0
- data/app/assets/images/archangel/fallback/tiny_logo.png +0 -0
- data/app/assets/javascripts/archangel/input/datetime_picker.js +46 -0
- data/app/assets/javascripts/archangel/input/meta_keywords.js +22 -0
- data/app/assets/javascripts/archangel/input/parent/collection.js +0 -0
- data/app/assets/javascripts/archangel/input/parent/field.js +0 -0
- data/app/assets/javascripts/archangel/input/parent/page.js +0 -0
- data/app/assets/javascripts/archangel/input/wysiwyg.js.erb +51 -0
- data/app/assets/javascripts/archangel/object/flash.js +49 -0
- data/app/assets/javascripts/archangel/object/routes/auth.js +22 -0
- data/app/assets/javascripts/archangel/object/routes/backend.js +103 -0
- data/app/assets/javascripts/archangel/object/routes/frontend.js +24 -0
- data/app/assets/javascripts/archangel/object/routes.js.erb +84 -0
- data/app/assets/javascripts/archangel/object/translate/datetime_picker.js.erb +26 -0
- data/app/assets/javascripts/archangel/object/translate/sortable.js.erb +10 -0
- data/app/assets/javascripts/archangel/object/translate.js +8 -0
- data/app/assets/javascripts/archangel/object/url.js +24 -0
- data/app/assets/javascripts/archangel/object.js +25 -0
- data/app/assets/javascripts/archangel/sortable.js +72 -0
- data/app/assets/stylesheets/archangel/.keep +0 -0
- data/app/controllers/archangel/application_controller.rb +177 -0
- data/app/controllers/archangel/auth/registrations_controller.rb +22 -0
- data/app/controllers/archangel/auth_controller.rb +20 -0
- data/app/controllers/archangel/backend/assets_controller.rb +338 -0
- data/app/controllers/archangel/backend/collections_controller.rb +257 -0
- data/app/controllers/archangel/backend/dashboards_controller.rb +27 -0
- data/app/controllers/archangel/backend/entries_controller.rb +344 -0
- data/app/controllers/archangel/backend/pages_controller.rb +299 -0
- data/app/controllers/archangel/backend/profiles_controller.rb +211 -0
- data/app/controllers/archangel/backend/sites_controller.rb +175 -0
- data/app/controllers/archangel/backend/templates_controller.rb +270 -0
- data/app/controllers/archangel/backend/users_controller.rb +366 -0
- data/app/controllers/archangel/backend/widgets_controller.rb +264 -0
- data/app/controllers/archangel/backend_controller.rb +21 -0
- data/app/controllers/archangel/frontend/pages_controller.rb +158 -0
- data/app/controllers/archangel/frontend_controller.rb +10 -0
- data/app/controllers/concerns/archangel/actionable_concern.rb +152 -0
- data/app/controllers/concerns/archangel/authenticatable_concern.rb +14 -0
- data/app/controllers/concerns/archangel/authorizable_concern.rb +14 -0
- data/app/controllers/concerns/archangel/paginatable_concern.rb +34 -0
- data/app/controllers/concerns/archangel/seoable_concern.rb +40 -0
- data/app/controllers/concerns/archangel/skip_authorizable_concern.rb +14 -0
- data/app/controllers/concerns/archangel/themable_concern.rb +27 -0
- data/app/helpers/archangel/application_helper.rb +34 -0
- data/app/helpers/archangel/auth_helper.rb +9 -0
- data/app/helpers/archangel/backend/assets_helper.rb +14 -0
- data/app/helpers/archangel/backend/collections_helper.rb +14 -0
- data/app/helpers/archangel/backend/dashboards_helper.rb +14 -0
- data/app/helpers/archangel/backend/entries_helper.rb +14 -0
- data/app/helpers/archangel/backend/pages_helper.rb +14 -0
- data/app/helpers/archangel/backend/sites_helper.rb +14 -0
- data/app/helpers/archangel/backend/templates_helper.rb +14 -0
- data/app/helpers/archangel/backend/users_helper.rb +14 -0
- data/app/helpers/archangel/backend/widgets_helper.rb +14 -0
- data/app/helpers/archangel/backend_helper.rb +9 -0
- data/app/helpers/archangel/flash_helper.rb +22 -0
- data/app/helpers/archangel/frontend/pages_helper.rb +14 -0
- data/app/helpers/archangel/frontend_helper.rb +9 -0
- data/app/inputs/archangel/date_picker_input.rb +27 -0
- data/app/inputs/archangel/date_time_picker_input.rb +27 -0
- data/app/inputs/archangel/field_classification_input.rb +32 -0
- data/app/inputs/archangel/language_input.rb +31 -0
- data/app/inputs/archangel/meta_keywords_input.rb +27 -0
- data/app/inputs/archangel/role_input.rb +31 -0
- data/app/inputs/archangel/theme_input.rb +29 -0
- data/app/inputs/archangel/time_picker_input.rb +27 -0
- data/app/inputs/archangel/wysiwyg_input.rb +15 -0
- data/app/jobs/archangel/application_job.rb +9 -0
- data/app/mailers/archangel/application_mailer.rb +12 -0
- data/app/models/archangel/application_record.rb +10 -0
- data/app/models/archangel/asset.rb +42 -0
- data/app/models/archangel/collection.rb +51 -0
- data/app/models/archangel/entry.rb +22 -0
- data/app/models/archangel/field.rb +30 -0
- data/app/models/archangel/page.rb +123 -0
- data/app/models/archangel/site.rb +54 -0
- data/app/models/archangel/template.rb +37 -0
- data/app/models/archangel/user.rb +62 -0
- data/app/models/archangel/widget.rb +62 -0
- data/app/policies/archangel/application_policy.rb +142 -0
- data/app/policies/archangel/asset_policy.rb +17 -0
- data/app/policies/archangel/collection_policy.rb +9 -0
- data/app/policies/archangel/entry_policy.rb +17 -0
- data/app/policies/archangel/page_policy.rb +9 -0
- data/app/policies/archangel/site_policy.rb +27 -0
- data/app/policies/archangel/template_policy.rb +9 -0
- data/app/policies/archangel/user_policy.rb +9 -0
- data/app/policies/archangel/widget_policy.rb +9 -0
- data/app/services/archangel/render_service.rb +98 -0
- data/app/services/archangel/template_render_service.rb +40 -0
- data/app/themes/default/assets/javascripts/default/auth/.keep +0 -0
- data/app/themes/default/assets/javascripts/default/auth.js +18 -0
- data/app/themes/default/assets/javascripts/default/backend/core.js +7 -0
- data/app/themes/default/assets/javascripts/default/backend.js +50 -0
- data/app/themes/default/assets/javascripts/default/common/cards.js +28 -0
- data/app/themes/default/assets/javascripts/default/common/flash.js +48 -0
- data/app/themes/default/assets/javascripts/default/common/navigation.js +30 -0
- data/app/themes/default/assets/javascripts/default/common/sidebar.js +114 -0
- data/app/themes/default/assets/javascripts/default/frontend/.keep +0 -0
- data/app/themes/default/assets/javascripts/default/frontend.js +18 -0
- data/app/themes/default/assets/stylesheets/default/auth/core.scss +15 -0
- data/app/themes/default/assets/stylesheets/default/auth.css +13 -0
- data/app/themes/default/assets/stylesheets/default/backend/core.scss +22 -0
- data/app/themes/default/assets/stylesheets/default/backend.css +13 -0
- data/app/themes/default/assets/stylesheets/default/common/_bootstrap.scss +49 -0
- data/app/themes/default/assets/stylesheets/default/common/_selectize.scss +299 -0
- data/app/themes/default/assets/stylesheets/default/common/_variables.scss +82 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_animate.scss +27 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_aside.scss +67 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_avatars.scss +42 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_badge.scss +3 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_breadcrumb-menu.scss +36 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_breadcrumb.scss +4 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_buttons.scss +408 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_callout.scss +58 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_card.scss +199 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_charts.scss +9 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_dropdown-menu-right.scss +8 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_dropdown.scss +70 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_footer.scss +9 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_forms.scss +4 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_grid.scss +15 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_input-group.scss +5 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_layout.scss +390 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_loading.scss +128 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_mixins.scss +1 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_mobile.scss +0 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_modal.scss +12 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_nav.scss +39 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_navbar.scss +122 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_others.scss +4 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_progress.scss +15 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_rtl.scss +287 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_sidebar.scss +462 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_switches.scss +286 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_tables.scss +20 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_temp.scss +39 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_typography.scss +36 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_utilities.scss +3 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_variables.scss +208 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/_widgets.scss +251 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/mixins/_all.scss +117 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/utilities/_background.scss +20 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/utilities/_borders.scss +17 -0
- data/app/themes/default/assets/stylesheets/default/common/bootstrap/utilities/_display.scss +14 -0
- data/app/themes/default/assets/stylesheets/default/frontend/core.scss +15 -0
- data/app/themes/default/assets/stylesheets/default/frontend.css +13 -0
- data/app/themes/default/views/layouts/auth.html.erb +35 -0
- data/app/themes/default/views/layouts/backend/_footer.html.erb +7 -0
- data/app/themes/default/views/layouts/backend/_header.html.erb +31 -0
- data/app/themes/default/views/layouts/backend/_sidebar.html.erb +53 -0
- data/app/themes/default/views/layouts/backend.html.erb +37 -0
- data/app/themes/default/views/layouts/frontend.liquid +22 -0
- data/app/uploaders/archangel/application_uploader.rb +65 -0
- data/app/uploaders/archangel/asset_uploader.rb +52 -0
- data/app/uploaders/archangel/avatar_uploader.rb +44 -0
- data/app/uploaders/archangel/favicon_uploader.rb +38 -0
- data/app/uploaders/archangel/logo_uploader.rb +44 -0
- data/app/views/archangel/backend/assets/_buttons.html.erb +18 -0
- data/app/views/archangel/backend/assets/_form.html.erb +27 -0
- data/app/views/archangel/backend/assets/edit.html.erb +21 -0
- data/app/views/archangel/backend/assets/index.html.erb +64 -0
- data/app/views/archangel/backend/assets/new.html.erb +21 -0
- data/app/views/archangel/backend/assets/show.html.erb +53 -0
- data/app/views/archangel/backend/collections/_buttons.html.erb +20 -0
- data/app/views/archangel/backend/collections/_field_fields.html.erb +9 -0
- data/app/views/archangel/backend/collections/_form.html.erb +24 -0
- data/app/views/archangel/backend/collections/edit.html.erb +21 -0
- data/app/views/archangel/backend/collections/index.html.erb +60 -0
- data/app/views/archangel/backend/collections/new.html.erb +21 -0
- data/app/views/archangel/backend/collections/show.html.erb +44 -0
- data/app/views/archangel/backend/dashboards/_buttons.html.erb +3 -0
- data/app/views/archangel/backend/dashboards/show.html.erb +23 -0
- data/app/views/archangel/backend/entries/_buttons.html.erb +20 -0
- data/app/views/archangel/backend/entries/_form.html.erb +25 -0
- data/app/views/archangel/backend/entries/edit.html.erb +21 -0
- data/app/views/archangel/backend/entries/index.html.erb +68 -0
- data/app/views/archangel/backend/entries/new.html.erb +21 -0
- data/app/views/archangel/backend/entries/show.html.erb +28 -0
- data/app/views/archangel/backend/pages/_buttons.html.erb +18 -0
- data/app/views/archangel/backend/pages/_form.html.erb +19 -0
- data/app/views/archangel/backend/pages/edit.html.erb +21 -0
- data/app/views/archangel/backend/pages/index.html.erb +68 -0
- data/app/views/archangel/backend/pages/new.html.erb +21 -0
- data/app/views/archangel/backend/pages/show.html.erb +49 -0
- data/app/views/archangel/backend/profiles/_buttons.html.erb +9 -0
- data/app/views/archangel/backend/profiles/_form.html.erb +31 -0
- data/app/views/archangel/backend/profiles/edit.html.erb +21 -0
- data/app/views/archangel/backend/profiles/show.html.erb +36 -0
- data/app/views/archangel/backend/sites/_additional_colors.html.erb +49 -0
- data/app/views/archangel/backend/sites/_alerts.html.erb +130 -0
- data/app/views/archangel/backend/sites/_badge.html.erb +99 -0
- data/app/views/archangel/backend/sites/_button.html.erb +243 -0
- data/app/views/archangel/backend/sites/_buttons.html.erb +9 -0
- data/app/views/archangel/backend/sites/_buttons_group.html.erb +230 -0
- data/app/views/archangel/backend/sites/_cards.html.erb +441 -0
- data/app/views/archangel/backend/sites/_carousel.html.erb +159 -0
- data/app/views/archangel/backend/sites/_colors.html.erb +41 -0
- data/app/views/archangel/backend/sites/_display_headings.html.erb +41 -0
- data/app/views/archangel/backend/sites/_dl.html.erb +38 -0
- data/app/views/archangel/backend/sites/_dropdowns.html.erb +475 -0
- data/app/views/archangel/backend/sites/_form.html.erb +37 -0
- data/app/views/archangel/backend/sites/_forms.html.erb +1176 -0
- data/app/views/archangel/backend/sites/_grays.html.erb +21 -0
- data/app/views/archangel/backend/sites/_headings.html.erb +21 -0
- data/app/views/archangel/backend/sites/_inline_text.html.erb +45 -0
- data/app/views/archangel/backend/sites/_jumbotron.html.erb +45 -0
- data/app/views/archangel/backend/sites/_list_group.html.erb +254 -0
- data/app/views/archangel/backend/sites/_modals.html.erb +41 -0
- data/app/views/archangel/backend/sites/_navs.html.erb +389 -0
- data/app/views/archangel/backend/sites/_pagination.html.erb +160 -0
- data/app/views/archangel/backend/sites/_social_buttons.html.erb +746 -0
- data/app/views/archangel/backend/sites/_tables.html.erb +372 -0
- data/app/views/archangel/backend/sites/edit.html.erb +21 -0
- data/app/views/archangel/backend/sites/sample.html.erb +38 -0
- data/app/views/archangel/backend/sites/show.html.erb +48 -0
- data/app/views/archangel/backend/templates/_buttons.html.erb +18 -0
- data/app/views/archangel/backend/templates/_form.html.erb +14 -0
- data/app/views/archangel/backend/templates/edit.html.erb +21 -0
- data/app/views/archangel/backend/templates/index.html.erb +60 -0
- data/app/views/archangel/backend/templates/new.html.erb +21 -0
- data/app/views/archangel/backend/templates/show.html.erb +34 -0
- data/app/views/archangel/backend/users/_buttons.html.erb +18 -0
- data/app/views/archangel/backend/users/_form.html.erb +24 -0
- data/app/views/archangel/backend/users/edit.html.erb +21 -0
- data/app/views/archangel/backend/users/index.html.erb +62 -0
- data/app/views/archangel/backend/users/new.html.erb +21 -0
- data/app/views/archangel/backend/users/show.html.erb +36 -0
- data/app/views/archangel/backend/widgets/_buttons.html.erb +18 -0
- data/app/views/archangel/backend/widgets/_form.html.erb +14 -0
- data/app/views/archangel/backend/widgets/edit.html.erb +21 -0
- data/app/views/archangel/backend/widgets/index.html.erb +60 -0
- data/app/views/archangel/backend/widgets/new.html.erb +21 -0
- data/app/views/archangel/backend/widgets/show.html.erb +42 -0
- data/app/views/archangel/errors/error_401.html.erb +13 -0
- data/app/views/archangel/errors/error_401.json.erb +4 -0
- data/app/views/archangel/errors/error_404.html.erb +13 -0
- data/app/views/archangel/errors/error_404.json.erb +4 -0
- data/app/views/archangel/frontend/pages/show.json.jbuilder +9 -0
- data/app/views/archangel/shared/_auth_token.html.erb +8 -0
- data/app/views/archangel/shared/_flash_messages.html.erb +9 -0
- data/app/views/devise/confirmations/new.html.erb +18 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/email_changed.html.erb +7 -0
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +28 -0
- data/app/views/devise/passwords/new.html.erb +18 -0
- data/app/views/devise/registrations/edit.html.erb +45 -0
- data/app/views/devise/registrations/new.html.erb +41 -0
- data/app/views/devise/sessions/new.html.erb +28 -0
- data/app/views/devise/shared/_links.html.erb +41 -0
- data/app/views/devise/unlocks/new.html.erb +18 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +25 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/archangel.gemspec +52 -0
- data/archangel.png +0 -0
- data/bin/rails +13 -0
- data/config/brakeman.yml +3 -0
- data/config/initializers/assets.rb +12 -0
- data/config/initializers/carrierwave.rb +14 -0
- data/config/initializers/devise.rb +341 -0
- data/config/initializers/kaminari.rb +13 -0
- data/config/initializers/liquid.rb +4 -0
- data/config/initializers/meta_tags.rb +31 -0
- data/config/initializers/simple_form.rb +177 -0
- data/config/initializers/simple_form_bootstrap.rb +177 -0
- data/config/locales/active_record.en.yml +80 -0
- data/config/locales/devise.en.yml +64 -0
- data/config/locales/devise_invitable.en.yml +31 -0
- data/config/locales/en.yml +109 -0
- data/config/locales/kaminari.en.yml +17 -0
- data/config/locales/responders.en.yml +12 -0
- data/config/locales/simple_form.en.yml +34 -0
- data/config/routes.rb +176 -0
- data/db/migrate/20171003191001_create_archangel_sites.rb +19 -0
- data/db/migrate/20171003210347_create_archangel_users.rb +68 -0
- data/db/migrate/20171005205520_create_archangel_templates.rb +18 -0
- data/db/migrate/20171005224054_create_archangel_pages.rb +30 -0
- data/db/migrate/20171006175939_create_archangel_widgets.rb +20 -0
- data/db/migrate/20171006184844_create_archangel_assets.rb +18 -0
- data/db/migrate/20171006194044_create_archangel_collections.rb +17 -0
- data/db/migrate/20171006194855_create_archangel_fields.rb +23 -0
- data/db/migrate/20171006195023_create_archangel_entries.rb +18 -0
- data/db/seeds.rb +65 -0
- data/docs/Developers.md +3 -0
- data/docs/ExtensionDevelopers.md +3 -0
- data/docs/ExtensionIdeas.md +132 -0
- data/docs/Release.md +25 -0
- data/docs/ThemeDevelopers.md +3 -0
- data/lib/archangel/application_responder.rb +15 -0
- data/lib/archangel/config.rb +21 -0
- data/lib/archangel/constants/language.rb +13 -0
- data/lib/archangel/constants/role.rb +13 -0
- data/lib/archangel/constants/theme.rb +18 -0
- data/lib/archangel/engine.rb +70 -0
- data/lib/archangel/i18n.rb +40 -0
- data/lib/archangel/liquid/drop.rb +119 -0
- data/lib/archangel/liquid/drops/page_drop.rb +33 -0
- data/lib/archangel/liquid/drops/site_drop.rb +30 -0
- data/lib/archangel/liquid/filters/link_to_filter.rb +35 -0
- data/lib/archangel/liquid/tags/application_tag.rb +17 -0
- data/lib/archangel/liquid/tags/asset_tag.rb +146 -0
- data/lib/archangel/liquid/tags/collection_tag.rb +135 -0
- data/lib/archangel/liquid/tags/collectionfor_tag.rb +91 -0
- data/lib/archangel/liquid/tags/csrf_meta_tags_tag.rb +28 -0
- data/lib/archangel/liquid/tags/gist_tag.rb +102 -0
- data/lib/archangel/liquid/tags/locale_tag.rb +27 -0
- data/lib/archangel/liquid/tags/meta_tags_tag.rb +30 -0
- data/lib/archangel/liquid/tags/text_direction_tag.rb +28 -0
- data/lib/archangel/liquid/tags/theme_javascript_tag.rb +30 -0
- data/lib/archangel/liquid/tags/theme_stylesheet_tag.rb +30 -0
- data/lib/archangel/liquid/tags/vimeo_tag.rb +125 -0
- data/lib/archangel/liquid/tags/widget_tag.rb +91 -0
- data/lib/archangel/liquid/tags/youtube_tag.rb +138 -0
- data/lib/archangel/liquid_view.rb +92 -0
- data/lib/archangel/testing_support/context/view_controller_context.rb +55 -0
- data/lib/archangel/testing_support/factories/archangel_assets.rb +20 -0
- data/lib/archangel/testing_support/factories/archangel_collections.rb +23 -0
- data/lib/archangel/testing_support/factories/archangel_entries.rb +17 -0
- data/lib/archangel/testing_support/factories/archangel_fields.rb +20 -0
- data/lib/archangel/testing_support/factories/archangel_pages.rb +39 -0
- data/lib/archangel/testing_support/factories/archangel_sites.rb +22 -0
- data/lib/archangel/testing_support/factories/archangel_templates.rb +22 -0
- data/lib/archangel/testing_support/factories/archangel_users.rb +53 -0
- data/lib/archangel/testing_support/factories/archangel_widgets.rb +19 -0
- data/lib/archangel/testing_support/fixtures/favicon.png +0 -0
- data/lib/archangel/testing_support/fixtures/image.gif +0 -0
- data/lib/archangel/testing_support/fixtures/stylesheet.css +3 -0
- data/lib/archangel/testing_support/helpers/authorization_helpers.rb +58 -0
- data/lib/archangel/testing_support/helpers/controller_helpers.rb +20 -0
- data/lib/archangel/testing_support/helpers/form_helpers.rb +18 -0
- data/lib/archangel/testing_support/helpers/routing_helpers.rb +22 -0
- data/lib/archangel/testing_support/matchers/match_stdout.rb +37 -0
- data/lib/archangel/testing_support/matchers/pundit.rb +17 -0
- data/lib/archangel/testing_support/rake/dummy_rake.rb +63 -0
- data/lib/archangel/testing_support/shared_contexts/rake.rb +26 -0
- data/lib/archangel/testing_support/support/capybara.rb +9 -0
- data/lib/archangel/testing_support/support/carrierwave.rb +13 -0
- data/lib/archangel/testing_support/support/controller.rb +11 -0
- data/lib/archangel/testing_support/support/database_cleaner.rb +22 -0
- data/lib/archangel/testing_support/support/devise.rb +7 -0
- data/lib/archangel/testing_support/support/factory_bot.rb +17 -0
- data/lib/archangel/testing_support/support/inputs.rb +24 -0
- data/lib/archangel/testing_support/support/liquid_filters.rb +23 -0
- data/lib/archangel/testing_support/support/liquid_tags.rb +23 -0
- data/lib/archangel/testing_support/support/shoulda.rb +12 -0
- data/lib/archangel/testing_support/support/verify_partial_doubles.rb +21 -0
- data/lib/archangel/testing_support/support.rb +26 -0
- data/lib/archangel/theme/themable_controller.rb +90 -0
- data/lib/archangel/version.rb +16 -0
- data/lib/archangel.rb +93 -0
- data/lib/generators/archangel/dummy/dummy_generator.rb +148 -0
- data/lib/generators/archangel/dummy/templates/config/database.yml +48 -0
- data/lib/generators/archangel/install/install_generator.rb +202 -0
- data/lib/generators/archangel/install/templates/.env.sample +4 -0
- data/lib/generators/archangel/install/templates/config/archangel.yml +54 -0
- data/lib/generators/archangel/install/templates/config/initializers/carrierwave.rb +15 -0
- data/lib/generators/archangel/install/templates/config/initializers/devise.rb +17 -0
- data/lib/generators/archangel/install/templates/vendor/assets/javascripts/archangel/auth.js +3 -0
- data/lib/generators/archangel/install/templates/vendor/assets/javascripts/archangel/backend.js +3 -0
- data/lib/generators/archangel/install/templates/vendor/assets/javascripts/archangel/frontend.js +3 -0
- data/lib/generators/archangel/install/templates/vendor/assets/stylesheets/archangel/auth.css +5 -0
- data/lib/generators/archangel/install/templates/vendor/assets/stylesheets/archangel/backend.css +5 -0
- data/lib/generators/archangel/install/templates/vendor/assets/stylesheets/archangel/frontend.css +5 -0
- data/lib/tasks/archangel/version_task.rake +8 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/package.json +33 -0
- data/spec/controllers/archangel/application_controller_spec.rb +183 -0
- data/spec/controllers/archangel/auth/registrations_controller_spec.rb +10 -0
- data/spec/controllers/archangel/auth_controller_spec.rb +8 -0
- data/spec/controllers/archangel/backend/assets_controller_spec.rb +237 -0
- data/spec/controllers/archangel/backend/collections_controller_spec.rb +252 -0
- data/spec/controllers/archangel/backend/dashboards_controller_spec.rb +27 -0
- data/spec/controllers/archangel/backend/entries_controller_spec.rb +273 -0
- data/spec/controllers/archangel/backend/pages_controller_spec.rb +204 -0
- data/spec/controllers/archangel/backend/profiles_controller_spec.rb +115 -0
- data/spec/controllers/archangel/backend/sites_controller_spec.rb +137 -0
- data/spec/controllers/archangel/backend/templates_controller_spec.rb +190 -0
- data/spec/controllers/archangel/backend/users_controller_spec.rb +181 -0
- data/spec/controllers/archangel/backend/widgets_controller_spec.rb +190 -0
- data/spec/controllers/archangel/backend_controller_spec.rb +8 -0
- data/spec/controllers/archangel/frontend/pages_controller_spec.rb +54 -0
- data/spec/controllers/archangel/frontend_controller_spec.rb +8 -0
- data/spec/features/auth/log_in_spec.rb +96 -0
- data/spec/features/auth/log_out_spec.rb +18 -0
- data/spec/features/auth/registration_spec.rb +27 -0
- data/spec/features/backend/duplicate_page_slugs_spec.rb +41 -0
- data/spec/features/frontend/drop_variables_spec.rb +125 -0
- data/spec/features/frontend/homepage_redirect_spec.rb +15 -0
- data/spec/helpers/archangel/application_helper_spec.rb +30 -0
- data/spec/helpers/archangel/auth_helper_spec.rb +8 -0
- data/spec/helpers/archangel/backend/assets_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/collections_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/dashboards_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/entries_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/pages_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/sites_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/templates_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/users_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend/widgets_helper_spec.rb +10 -0
- data/spec/helpers/archangel/backend_helper_spec.rb +8 -0
- data/spec/helpers/archangel/flash_helper_spec.rb +29 -0
- data/spec/helpers/archangel/frontend/pages_helper_spec.rb +10 -0
- data/spec/helpers/archangel/frontend_helper_spec.rb +8 -0
- data/spec/inputs/archangel/date_picker_input_spec.rb +15 -0
- data/spec/inputs/archangel/date_time_picker_input_spec.rb +15 -0
- data/spec/inputs/archangel/field_classification_input_spec.rb +19 -0
- data/spec/inputs/archangel/language_input_spec.rb +17 -0
- data/spec/inputs/archangel/meta_keywords_input_spec.rb +13 -0
- data/spec/inputs/archangel/role_input_spec.rb +18 -0
- data/spec/inputs/archangel/theme_input_spec.rb +17 -0
- data/spec/inputs/archangel/time_picker_input_spec.rb +15 -0
- data/spec/inputs/archangel/wysiwyg_input_spec.rb +15 -0
- data/spec/jobs/archangel/application_job_spec.rb +8 -0
- data/spec/lib/archangel/liquid/filters/link_to_filter_spec.rb +63 -0
- data/spec/lib/archangel/liquid/tags/application_tag_spec.rb +12 -0
- data/spec/lib/archangel/liquid/tags/asset_tag_spec.rb +90 -0
- data/spec/lib/archangel/liquid/tags/collection_tag_spec.rb +105 -0
- data/spec/lib/archangel/liquid/tags/collectionfor_tag_spec.rb +164 -0
- data/spec/lib/archangel/liquid/tags/csrf_meta_tags_tag_spec.rb +33 -0
- data/spec/lib/archangel/liquid/tags/gist_tag_spec.rb +42 -0
- data/spec/lib/archangel/liquid/tags/locale_tag_spec.rb +22 -0
- data/spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb +24 -0
- data/spec/lib/archangel/liquid/tags/text_direction_tag_spec.rb +32 -0
- data/spec/lib/archangel/liquid/tags/theme_javascript_tag_spec.rb +25 -0
- data/spec/lib/archangel/liquid/tags/theme_stylesheet_tag_spec.rb +27 -0
- data/spec/lib/archangel/liquid/tags/vimeo_tag_spec.rb +39 -0
- data/spec/lib/archangel/liquid/tags/widget_tag_spec.rb +59 -0
- data/spec/lib/archangel/liquid/tags/youtube_tag_spec.rb +39 -0
- data/spec/lib/tasks/archangel/version_task_spec.rb +13 -0
- data/spec/mailers/archangel/application_job_spec.rb +8 -0
- data/spec/models/archangel/asset_spec.rb +32 -0
- data/spec/models/archangel/collection_spec.rb +25 -0
- data/spec/models/archangel/entry_spec.rb +20 -0
- data/spec/models/archangel/field_spec.rb +29 -0
- data/spec/models/archangel/page_spec.rb +94 -0
- data/spec/models/archangel/site_spec.rb +11 -0
- data/spec/models/archangel/template_spec.rb +24 -0
- data/spec/models/archangel/user_spec.rb +66 -0
- data/spec/models/archangel/widget_spec.rb +29 -0
- data/spec/policies/archangel/application_policy_spec.rb +8 -0
- data/spec/policies/archangel/asset_policy_spec.rb +22 -0
- data/spec/policies/archangel/collection_policy_spec.rb +20 -0
- data/spec/policies/archangel/entries_policy_spec.rb +22 -0
- data/spec/policies/archangel/page_policy_spec.rb +20 -0
- data/spec/policies/archangel/site_policy_spec.rb +30 -0
- data/spec/policies/archangel/template_policy_spec.rb +20 -0
- data/spec/policies/archangel/user_policy_spec.rb +20 -0
- data/spec/policies/archangel/widget_policy_spec.rb +20 -0
- data/spec/rails_helper.rb +46 -0
- data/spec/services/archangel/render_service_spec.rb +37 -0
- data/spec/services/archangel/template_render_service_spec.rb +42 -0
- data/spec/spec_helper.rb +23 -0
- data/spec/support/coveralls.rb +5 -0
- data/spec/uploaders/archangel/application_uploader_spec.rb +15 -0
- data/spec/uploaders/archangel/asset_uploader_spec.rb +71 -0
- data/spec/uploaders/archangel/avatar_uploader_spec.rb +50 -0
- data/spec/uploaders/archangel/favicon_uploader_spec.rb +39 -0
- data/spec/uploaders/archangel/logo_uploader_spec.rb +50 -0
- data/vendor/assets/icons/trumbowyg/icons.svg +1 -0
- data/vendor/assets/javascripts/sortable/sortable.js +3 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js +143 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/base64/trumbowyg.base64.js +129 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js +110 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/colors/trumbowyg.colors.js +183 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/noembed/trumbowyg.noembed.js +104 -0
- data/vendor/assets/javascripts/trumbowyg/plugins/upload/trumbowyg.upload.js +261 -0
- data/vendor/assets/javascripts/trumbowyg/trumbowyg.js +1765 -0
- data/vendor/assets/stylesheets/trumbowyg/_trumbowyg.scss +831 -0
- data/vendor/assets/stylesheets/trumbowyg/plugins/colors/_trumbowyg.colors.scss +38 -0
- metadata +1003 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
SimpleForm.setup do |config|
|
|
4
|
+
# Wrappers are used by the form builder to generate a
|
|
5
|
+
# complete input. You can remove any component from the
|
|
6
|
+
# wrapper, change the order or even add your own to the
|
|
7
|
+
# stack. The options given below are used to wrap the
|
|
8
|
+
# whole input.
|
|
9
|
+
config.wrappers :default, class: :input,
|
|
10
|
+
hint_class: :field_with_hint,
|
|
11
|
+
error_class: :field_with_errors do |b|
|
|
12
|
+
## Extensions enabled by default
|
|
13
|
+
# Any of these extensions can be disabled for a
|
|
14
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
|
15
|
+
# You can make any of these extensions optional by
|
|
16
|
+
# renaming `b.use` to `b.optional`.
|
|
17
|
+
|
|
18
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
|
19
|
+
# and required attributes
|
|
20
|
+
b.use :html5
|
|
21
|
+
|
|
22
|
+
# Calculates placeholders automatically from I18n
|
|
23
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
|
24
|
+
b.use :placeholder
|
|
25
|
+
|
|
26
|
+
## Optional extensions
|
|
27
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
|
28
|
+
# to the input. If so, they will retrieve the values from the model
|
|
29
|
+
# if any exists. If you want to enable any of those
|
|
30
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
|
31
|
+
|
|
32
|
+
# Calculates maxlength from length validations for string inputs
|
|
33
|
+
# and/or database column lengths
|
|
34
|
+
b.optional :maxlength
|
|
35
|
+
|
|
36
|
+
# Calculate minlength from length validations for string inputs
|
|
37
|
+
b.optional :minlength
|
|
38
|
+
|
|
39
|
+
# Calculates pattern from format validations for string inputs
|
|
40
|
+
b.optional :pattern
|
|
41
|
+
|
|
42
|
+
# Calculates min and max from length validations for numeric inputs
|
|
43
|
+
b.optional :min_max
|
|
44
|
+
|
|
45
|
+
# Calculates readonly automatically from readonly attributes
|
|
46
|
+
b.optional :readonly
|
|
47
|
+
|
|
48
|
+
## Inputs
|
|
49
|
+
b.use :label_input
|
|
50
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
|
51
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
|
52
|
+
|
|
53
|
+
## full_messages_for
|
|
54
|
+
# If you want to display the full error message for the attribute, you can
|
|
55
|
+
# use the component :full_error, like:
|
|
56
|
+
#
|
|
57
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# The default wrapper to be used by the FormBuilder.
|
|
61
|
+
config.default_wrapper = :default
|
|
62
|
+
|
|
63
|
+
# Define the way to render check boxes / radio buttons with labels.
|
|
64
|
+
# Defaults to :nested for bootstrap config.
|
|
65
|
+
# inline: input + label
|
|
66
|
+
# nested: label > input
|
|
67
|
+
config.boolean_style = :nested
|
|
68
|
+
|
|
69
|
+
# Default class for buttons
|
|
70
|
+
config.button_class = "btn"
|
|
71
|
+
|
|
72
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
|
73
|
+
# :first lists the first message for each field.
|
|
74
|
+
# Use :to_sentence to list all errors for each field.
|
|
75
|
+
# config.error_method = :first
|
|
76
|
+
|
|
77
|
+
# Default tag used for error notification helper.
|
|
78
|
+
config.error_notification_tag = :div
|
|
79
|
+
|
|
80
|
+
# CSS class to add for error notification helper.
|
|
81
|
+
config.error_notification_class = "error_notification"
|
|
82
|
+
|
|
83
|
+
# ID to add for error notification helper.
|
|
84
|
+
# config.error_notification_id = nil
|
|
85
|
+
|
|
86
|
+
# Series of attempts to detect a default label method for collection.
|
|
87
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
|
88
|
+
|
|
89
|
+
# Series of attempts to detect a default value method for collection.
|
|
90
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
|
91
|
+
|
|
92
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag,
|
|
93
|
+
# defaulting to none.
|
|
94
|
+
# config.collection_wrapper_tag = nil
|
|
95
|
+
|
|
96
|
+
# You can define the class to use on all collection wrappers. Defaulting
|
|
97
|
+
# to none.
|
|
98
|
+
# config.collection_wrapper_class = nil
|
|
99
|
+
|
|
100
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
|
101
|
+
# defaulting to :span.
|
|
102
|
+
# config.item_wrapper_tag = :span
|
|
103
|
+
|
|
104
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
|
105
|
+
# config.item_wrapper_class = nil
|
|
106
|
+
|
|
107
|
+
# How the label text should be generated altogether with the required text.
|
|
108
|
+
# config.label_text = lambda do |label, required, explicit_label|
|
|
109
|
+
# "#{required} #{label}"
|
|
110
|
+
# end
|
|
111
|
+
|
|
112
|
+
# You can define the class to use on all labels. Default is nil.
|
|
113
|
+
# config.label_class = nil
|
|
114
|
+
|
|
115
|
+
# You can define the default class to be used on forms. Can be overriden
|
|
116
|
+
# with `html: { :class }`. Defaulting to none.
|
|
117
|
+
# config.default_form_class = nil
|
|
118
|
+
|
|
119
|
+
# You can define which elements should obtain additional classes
|
|
120
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
|
121
|
+
|
|
122
|
+
# Whether attributes are required by default (or not). Default is true.
|
|
123
|
+
# config.required_by_default = true
|
|
124
|
+
|
|
125
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form
|
|
126
|
+
# option). These validations are enabled in SimpleForm's internal config but
|
|
127
|
+
# disabled by default in this configuration, which is recommended due to some
|
|
128
|
+
# quirks from different browsers. To stop SimpleForm from generating the
|
|
129
|
+
# novalidate option, enabling the HTML5 validations, change this configuration
|
|
130
|
+
# to true.
|
|
131
|
+
config.browser_validations = false
|
|
132
|
+
|
|
133
|
+
# Collection of methods to detect if a file type was given.
|
|
134
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
|
135
|
+
|
|
136
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
|
137
|
+
# to match as key, and the input type that will be used when the field name
|
|
138
|
+
# matches the regexp as value.
|
|
139
|
+
# config.input_mappings = { /count/ => :integer }
|
|
140
|
+
|
|
141
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
|
142
|
+
# type as key and the wrapper that will be used for all inputs with specified
|
|
143
|
+
# type.
|
|
144
|
+
# config.wrapper_mappings = { string: :prepend }
|
|
145
|
+
|
|
146
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
|
147
|
+
# override default inputs.
|
|
148
|
+
config.custom_inputs_namespaces << "Archangel"
|
|
149
|
+
|
|
150
|
+
# Default priority for time_zone inputs.
|
|
151
|
+
# config.time_zone_priority = nil
|
|
152
|
+
|
|
153
|
+
# Default priority for country inputs.
|
|
154
|
+
# config.country_priority = nil
|
|
155
|
+
|
|
156
|
+
# When false, do not use translations for labels.
|
|
157
|
+
# config.translate_labels = true
|
|
158
|
+
|
|
159
|
+
# Automatically discover new inputs in Rails' autoload path.
|
|
160
|
+
# config.inputs_discovery = true
|
|
161
|
+
|
|
162
|
+
# Cache SimpleForm inputs discovery
|
|
163
|
+
# config.cache_discovery = !Rails.env.development?
|
|
164
|
+
|
|
165
|
+
# Default class for inputs
|
|
166
|
+
# config.input_class = nil
|
|
167
|
+
|
|
168
|
+
# Define the default class of the input wrapper of the boolean input.
|
|
169
|
+
config.boolean_label_class = "checkbox"
|
|
170
|
+
|
|
171
|
+
# Defines if the default input wrapper class should be included in radio
|
|
172
|
+
# collection wrappers.
|
|
173
|
+
# config.include_default_input_wrapper_class = true
|
|
174
|
+
|
|
175
|
+
# Defines which i18n scope will be used in Simple Form.
|
|
176
|
+
# config.i18n_scope = 'simple_form'
|
|
177
|
+
end
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
SimpleForm.setup do |config|
|
|
4
|
+
config.error_notification_class = "alert alert-danger"
|
|
5
|
+
config.button_class = "btn btn-default"
|
|
6
|
+
config.boolean_label_class = nil
|
|
7
|
+
|
|
8
|
+
config.wrappers :vertical_form, tag: "div",
|
|
9
|
+
class: "form-group",
|
|
10
|
+
error_class: "has-error" do |b|
|
|
11
|
+
b.use :html5
|
|
12
|
+
b.use :placeholder
|
|
13
|
+
b.optional :maxlength
|
|
14
|
+
b.optional :minlength
|
|
15
|
+
b.optional :pattern
|
|
16
|
+
b.optional :min_max
|
|
17
|
+
b.optional :readonly
|
|
18
|
+
b.use :label, class: "control-label"
|
|
19
|
+
|
|
20
|
+
b.use :input, class: "form-control"
|
|
21
|
+
b.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
22
|
+
b.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
config.wrappers :vertical_file_input, tag: "div",
|
|
26
|
+
class: "form-group",
|
|
27
|
+
error_class: "has-error" do |b|
|
|
28
|
+
b.use :html5
|
|
29
|
+
b.use :placeholder
|
|
30
|
+
b.optional :maxlength
|
|
31
|
+
b.optional :minlength
|
|
32
|
+
b.optional :readonly
|
|
33
|
+
b.use :label, class: "control-label"
|
|
34
|
+
|
|
35
|
+
b.use :input
|
|
36
|
+
b.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
37
|
+
b.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
config.wrappers :vertical_boolean, tag: "div",
|
|
41
|
+
class: "form-group",
|
|
42
|
+
error_class: "has-error" do |b|
|
|
43
|
+
b.use :html5
|
|
44
|
+
b.optional :readonly
|
|
45
|
+
|
|
46
|
+
b.wrapper tag: "div", class: "checkbox" do |ba|
|
|
47
|
+
ba.use :label_input
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
b.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
51
|
+
b.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
config.wrappers :vertical_radio_and_checkboxes,
|
|
55
|
+
tag: "div",
|
|
56
|
+
class: "form-group",
|
|
57
|
+
error_class: "has-error" do |b|
|
|
58
|
+
b.use :html5
|
|
59
|
+
b.optional :readonly
|
|
60
|
+
b.use :label, class: "control-label"
|
|
61
|
+
b.use :input
|
|
62
|
+
b.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
63
|
+
b.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
config.wrappers :horizontal_form, tag: "div",
|
|
67
|
+
class: "form-group",
|
|
68
|
+
error_class: "has-error" do |b|
|
|
69
|
+
b.use :html5
|
|
70
|
+
b.use :placeholder
|
|
71
|
+
b.optional :maxlength
|
|
72
|
+
b.optional :minlength
|
|
73
|
+
b.optional :pattern
|
|
74
|
+
b.optional :min_max
|
|
75
|
+
b.optional :readonly
|
|
76
|
+
b.use :label, class: "col-sm-3 control-label"
|
|
77
|
+
|
|
78
|
+
b.wrapper tag: "div", class: "col-sm-9" do |ba|
|
|
79
|
+
ba.use :input, class: "form-control"
|
|
80
|
+
ba.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
81
|
+
ba.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
config.wrappers :horizontal_file_input, tag: "div",
|
|
86
|
+
class: "form-group",
|
|
87
|
+
error_class: "has-error" do |b|
|
|
88
|
+
b.use :html5
|
|
89
|
+
b.use :placeholder
|
|
90
|
+
b.optional :maxlength
|
|
91
|
+
b.optional :minlength
|
|
92
|
+
b.optional :readonly
|
|
93
|
+
b.use :label, class: "col-sm-3 control-label"
|
|
94
|
+
|
|
95
|
+
b.wrapper tag: "div", class: "col-sm-9" do |ba|
|
|
96
|
+
ba.use :input
|
|
97
|
+
ba.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
98
|
+
ba.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
config.wrappers :horizontal_boolean, tag: "div",
|
|
103
|
+
class: "form-group",
|
|
104
|
+
error_class: "has-error" do |b|
|
|
105
|
+
b.use :html5
|
|
106
|
+
b.optional :readonly
|
|
107
|
+
|
|
108
|
+
b.wrapper tag: "div", class: "col-sm-offset-3 col-sm-9" do |wr|
|
|
109
|
+
wr.wrapper tag: "div", class: "checkbox" do |ba|
|
|
110
|
+
ba.use :label_input
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
wr.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
114
|
+
wr.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
config.wrappers :horizontal_radio_and_checkboxes,
|
|
119
|
+
tag: "div",
|
|
120
|
+
class: "form-group",
|
|
121
|
+
error_class: "has-error" do |b|
|
|
122
|
+
b.use :html5
|
|
123
|
+
b.optional :readonly
|
|
124
|
+
|
|
125
|
+
b.use :label, class: "col-sm-3 control-label"
|
|
126
|
+
|
|
127
|
+
b.wrapper tag: "div", class: "col-sm-9" do |ba|
|
|
128
|
+
ba.use :input
|
|
129
|
+
ba.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
130
|
+
ba.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
config.wrappers :inline_form, tag: "div",
|
|
135
|
+
class: "form-group",
|
|
136
|
+
error_class: "has-error" do |b|
|
|
137
|
+
b.use :html5
|
|
138
|
+
b.use :placeholder
|
|
139
|
+
b.optional :maxlength
|
|
140
|
+
b.optional :minlength
|
|
141
|
+
b.optional :pattern
|
|
142
|
+
b.optional :min_max
|
|
143
|
+
b.optional :readonly
|
|
144
|
+
b.use :label, class: "sr-only"
|
|
145
|
+
|
|
146
|
+
b.use :input, class: "form-control"
|
|
147
|
+
b.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
148
|
+
b.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
config.wrappers :multi_select, tag: "div",
|
|
152
|
+
class: "form-group",
|
|
153
|
+
error_class: "has-error" do |b|
|
|
154
|
+
b.use :html5
|
|
155
|
+
b.optional :readonly
|
|
156
|
+
b.use :label, class: "control-label"
|
|
157
|
+
b.wrapper tag: "div", class: "form-inline" do |ba|
|
|
158
|
+
ba.use :input, class: "form-control"
|
|
159
|
+
ba.use :error, wrap_with: { tag: "span", class: "help-block" }
|
|
160
|
+
ba.use :hint, wrap_with: { tag: "p", class: "help-block" }
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
|
164
|
+
# Check the Bootstrap docs (http://getbootstrap.com)
|
|
165
|
+
# to learn about the different styles for forms and inputs,
|
|
166
|
+
# buttons and other elements.
|
|
167
|
+
config.default_wrapper = :vertical_form
|
|
168
|
+
config.wrapper_mappings = {
|
|
169
|
+
check_boxes: :vertical_radio_and_checkboxes,
|
|
170
|
+
radio_buttons: :vertical_radio_and_checkboxes,
|
|
171
|
+
file: :vertical_file_input,
|
|
172
|
+
boolean: :vertical_boolean,
|
|
173
|
+
datetime: :multi_select,
|
|
174
|
+
date: :multi_select,
|
|
175
|
+
time: :multi_select
|
|
176
|
+
}
|
|
177
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
en:
|
|
2
|
+
activerecord:
|
|
3
|
+
models:
|
|
4
|
+
archangel/asset:
|
|
5
|
+
one: Asset
|
|
6
|
+
other: Assets
|
|
7
|
+
archangel/collection:
|
|
8
|
+
one: Collection
|
|
9
|
+
other: Collections
|
|
10
|
+
archangel/entry:
|
|
11
|
+
one: Entry
|
|
12
|
+
other: Entries
|
|
13
|
+
archangel/field:
|
|
14
|
+
one: Field
|
|
15
|
+
other: Fields
|
|
16
|
+
archangel/page:
|
|
17
|
+
one: Page
|
|
18
|
+
other: Pages
|
|
19
|
+
archangel/site:
|
|
20
|
+
one: Site
|
|
21
|
+
other: Site
|
|
22
|
+
archangel/template:
|
|
23
|
+
one: Template
|
|
24
|
+
other: Templates
|
|
25
|
+
archangel/user:
|
|
26
|
+
one: User
|
|
27
|
+
other: Users
|
|
28
|
+
archangel/widget:
|
|
29
|
+
one: Widget
|
|
30
|
+
other: Widgets
|
|
31
|
+
|
|
32
|
+
attributes:
|
|
33
|
+
archangel/asset:
|
|
34
|
+
file: File
|
|
35
|
+
file_name: File Name
|
|
36
|
+
archangel/collection:
|
|
37
|
+
name: Name
|
|
38
|
+
slug: Slug
|
|
39
|
+
archangel/field:
|
|
40
|
+
classification: Classification
|
|
41
|
+
label: Label
|
|
42
|
+
required: Required
|
|
43
|
+
slug: Slug
|
|
44
|
+
value: Default Value
|
|
45
|
+
archangel/page:
|
|
46
|
+
content: Content
|
|
47
|
+
homepage: Homepage
|
|
48
|
+
meta_description: META Description
|
|
49
|
+
meta_keywords: META Keywords
|
|
50
|
+
parent_id: Parent
|
|
51
|
+
published_at: Published At
|
|
52
|
+
slug: Slug
|
|
53
|
+
template_id: Template
|
|
54
|
+
title: Title
|
|
55
|
+
archangel/site:
|
|
56
|
+
favicon: Favicon
|
|
57
|
+
logo: Logo
|
|
58
|
+
meta_description: META Description
|
|
59
|
+
meta_keywords: META Keywords
|
|
60
|
+
name: Name
|
|
61
|
+
remove_favicon: Remove Favicon
|
|
62
|
+
remove_logo: Remove Logo
|
|
63
|
+
theme: Theme
|
|
64
|
+
archangel/template:
|
|
65
|
+
content: Content
|
|
66
|
+
name: Name
|
|
67
|
+
parent_id: Parent
|
|
68
|
+
partial: Partial
|
|
69
|
+
archangel/user:
|
|
70
|
+
avatar: Avatar
|
|
71
|
+
email: Email
|
|
72
|
+
name: Name
|
|
73
|
+
password: Password
|
|
74
|
+
password_confirmation: Confirm Password
|
|
75
|
+
username: Username
|
|
76
|
+
archangel/widget:
|
|
77
|
+
content: Content
|
|
78
|
+
name: Name
|
|
79
|
+
slug: Slug
|
|
80
|
+
template_id: Template
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
|
2
|
+
|
|
3
|
+
en:
|
|
4
|
+
devise:
|
|
5
|
+
confirmations:
|
|
6
|
+
confirmed: "Your email address has been successfully confirmed."
|
|
7
|
+
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
8
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
9
|
+
failure:
|
|
10
|
+
already_authenticated: "You are already signed in."
|
|
11
|
+
inactive: "Your account is not activated yet."
|
|
12
|
+
invalid: "Invalid %{authentication_keys} or password."
|
|
13
|
+
locked: "Your account is locked."
|
|
14
|
+
last_attempt: "You have one more attempt before your account is locked."
|
|
15
|
+
not_found_in_database: "Invalid %{authentication_keys} or password."
|
|
16
|
+
timeout: "Your session expired. Please sign in again to continue."
|
|
17
|
+
unauthenticated: "You need to sign in or sign up before continuing."
|
|
18
|
+
unconfirmed: "You have to confirm your email address before continuing."
|
|
19
|
+
mailer:
|
|
20
|
+
confirmation_instructions:
|
|
21
|
+
subject: "Confirmation instructions"
|
|
22
|
+
reset_password_instructions:
|
|
23
|
+
subject: "Reset password instructions"
|
|
24
|
+
unlock_instructions:
|
|
25
|
+
subject: "Unlock instructions"
|
|
26
|
+
email_changed:
|
|
27
|
+
subject: "Email Changed"
|
|
28
|
+
password_change:
|
|
29
|
+
subject: "Password Changed"
|
|
30
|
+
omniauth_callbacks:
|
|
31
|
+
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
|
32
|
+
success: "Successfully authenticated from %{kind} account."
|
|
33
|
+
passwords:
|
|
34
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
|
35
|
+
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
|
36
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
|
37
|
+
updated: "Your password has been changed successfully. You are now signed in."
|
|
38
|
+
updated_not_active: "Your password has been changed successfully."
|
|
39
|
+
registrations:
|
|
40
|
+
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
|
41
|
+
signed_up: "Welcome! You have signed up successfully."
|
|
42
|
+
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
|
43
|
+
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
|
44
|
+
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
|
45
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
|
46
|
+
updated: "Your account has been updated successfully."
|
|
47
|
+
sessions:
|
|
48
|
+
signed_in: "Signed in successfully."
|
|
49
|
+
signed_out: "Signed out successfully."
|
|
50
|
+
already_signed_out: "Signed out successfully."
|
|
51
|
+
unlocks:
|
|
52
|
+
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
|
53
|
+
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
|
54
|
+
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
|
55
|
+
errors:
|
|
56
|
+
messages:
|
|
57
|
+
already_confirmed: "was already confirmed, please try signing in"
|
|
58
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
|
59
|
+
expired: "has expired, please request a new one"
|
|
60
|
+
not_found: "not found"
|
|
61
|
+
not_locked: "was not locked"
|
|
62
|
+
not_saved:
|
|
63
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
|
64
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
en:
|
|
2
|
+
devise:
|
|
3
|
+
failure:
|
|
4
|
+
invited: "You have a pending invitation, accept it to finish creating your account."
|
|
5
|
+
invitations:
|
|
6
|
+
send_instructions: "An invitation email has been sent to %{email}."
|
|
7
|
+
invitation_token_invalid: "The invitation token provided is not valid!"
|
|
8
|
+
updated: "Your password was set successfully. You are now signed in."
|
|
9
|
+
updated_not_active: "Your password was set successfully."
|
|
10
|
+
no_invitations_remaining: "No invitations remaining"
|
|
11
|
+
invitation_removed: "Your invitation was removed."
|
|
12
|
+
new:
|
|
13
|
+
header: "Send invitation"
|
|
14
|
+
submit_button: "Send an invitation"
|
|
15
|
+
edit:
|
|
16
|
+
header: "Set your password"
|
|
17
|
+
submit_button: "Set my password"
|
|
18
|
+
mailer:
|
|
19
|
+
invitation_instructions:
|
|
20
|
+
subject: "Invitation instructions"
|
|
21
|
+
hello: "Hello %{email}"
|
|
22
|
+
someone_invited_you: "Someone has invited you to %{url}, you can accept it through the link below."
|
|
23
|
+
accept: "Accept invitation"
|
|
24
|
+
accept_until: "This invitation will be due in %{due_date}."
|
|
25
|
+
ignore: "If you don't want to accept the invitation, please ignore this email.<br />\nYour account won't be created until you access the link above and set your password."
|
|
26
|
+
time:
|
|
27
|
+
formats:
|
|
28
|
+
devise:
|
|
29
|
+
mailer:
|
|
30
|
+
invitation_instructions:
|
|
31
|
+
accept_until_format: "%B %d, %Y %I:%M %p"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
en:
|
|
2
|
+
archangel:
|
|
3
|
+
actions: Actions
|
|
4
|
+
add_entry: Add Entry
|
|
5
|
+
add_field: Add Field
|
|
6
|
+
are_you_sure: Are you sure?
|
|
7
|
+
archangel: Archangel
|
|
8
|
+
assets: Assets
|
|
9
|
+
available_at: Available At
|
|
10
|
+
avatar: Avatar
|
|
11
|
+
back: Back
|
|
12
|
+
classification:
|
|
13
|
+
boolean: Boolean
|
|
14
|
+
string: String
|
|
15
|
+
text: Text
|
|
16
|
+
close: Close
|
|
17
|
+
collection: Collection
|
|
18
|
+
collections: Collections
|
|
19
|
+
content: Content
|
|
20
|
+
content_type: Content Type
|
|
21
|
+
dashboard: Dashboard
|
|
22
|
+
datetimepicker:
|
|
23
|
+
clear: Clear selection
|
|
24
|
+
close: Close the picker
|
|
25
|
+
date_format: "%Y-%m-%d"
|
|
26
|
+
date_format_js: YYYY-MM-DD
|
|
27
|
+
format: "%Y-%m-%d %H:%M"
|
|
28
|
+
format_js: YYYY-MM-DD HH:mm
|
|
29
|
+
next_century: Next Century
|
|
30
|
+
next_decade: Next Decade
|
|
31
|
+
next_month: Next Month
|
|
32
|
+
next_year: Next Year
|
|
33
|
+
prev_century: Previous Century
|
|
34
|
+
prev_decade: Previous Decade
|
|
35
|
+
prev_month: Previous Month
|
|
36
|
+
prev_year: Previous Year
|
|
37
|
+
select_decade: Select Decade
|
|
38
|
+
select_month: Select Month
|
|
39
|
+
select_year: Select Year
|
|
40
|
+
time_format: "%H:%M"
|
|
41
|
+
time_format_js: HH:mm
|
|
42
|
+
today: Go to today
|
|
43
|
+
destroy: Destroy
|
|
44
|
+
duplicate_slug: duplicate slug
|
|
45
|
+
duplicate_field_slug: duplicate slug
|
|
46
|
+
edit: Edit
|
|
47
|
+
edit_resource: Edit %{resource}
|
|
48
|
+
email: Email
|
|
49
|
+
entries: Entries
|
|
50
|
+
error_401: Access is denied due to invalid credentials
|
|
51
|
+
error_404: Page not found. Could not find what was requested
|
|
52
|
+
errors:
|
|
53
|
+
syntax:
|
|
54
|
+
asset: "Syntax Error in 'asset' - Valid syntax: {% asset '[name]' %}"
|
|
55
|
+
collection: "Syntax Error in 'collection' - Valid syntax: {% collection [key] = '[value]' %}"
|
|
56
|
+
gist: "Syntax Error in 'gist' - Valid syntax: {% gist '[key]' %}"
|
|
57
|
+
vimeo: "Syntax Error in 'vimeo' - Valid syntax: {% vimeo '[key]' width:640 height:480 %}"
|
|
58
|
+
widget: "Syntax Error in 'widget' - Valid syntax: {% widget '[slug]' %}"
|
|
59
|
+
youtube: "Syntax Error in 'youtube' - Valid syntax: {% youtube '[key]' width:640 height:480 %}"
|
|
60
|
+
fields: Fields
|
|
61
|
+
file: File
|
|
62
|
+
file_name: File Name
|
|
63
|
+
file_name_invalid: must be valid file name
|
|
64
|
+
file_size: File Size
|
|
65
|
+
homepage: Homepage
|
|
66
|
+
index_resource: "%{resource} Listing"
|
|
67
|
+
language:
|
|
68
|
+
en:
|
|
69
|
+
name: English
|
|
70
|
+
direction: ltr
|
|
71
|
+
liquid_invalid: contains invalid Liquid formatting
|
|
72
|
+
locale: Locale
|
|
73
|
+
logo: Logo
|
|
74
|
+
logout: Log Out
|
|
75
|
+
meta_description: META Description
|
|
76
|
+
meta_keywords: META Keywords
|
|
77
|
+
name: Name
|
|
78
|
+
new: New
|
|
79
|
+
new_resource: New %{resource}
|
|
80
|
+
no_resources: No %{resources} found.
|
|
81
|
+
not_found: Not Found
|
|
82
|
+
partial: Partial
|
|
83
|
+
pages: Pages
|
|
84
|
+
path: Path
|
|
85
|
+
powered_by: Powered by
|
|
86
|
+
profile: Profile
|
|
87
|
+
published: Published
|
|
88
|
+
remove_entry: Remove Entry
|
|
89
|
+
remove_field: Remove Field
|
|
90
|
+
restricted_path: contains restricted path
|
|
91
|
+
role:
|
|
92
|
+
admin: Admin
|
|
93
|
+
editor: Editor
|
|
94
|
+
show: Show
|
|
95
|
+
show_resource: "%{resource}"
|
|
96
|
+
site: Site
|
|
97
|
+
slug: Slug
|
|
98
|
+
sort: Sort
|
|
99
|
+
sortable:
|
|
100
|
+
success: Sort order has been updated
|
|
101
|
+
templates: Templates
|
|
102
|
+
theme: Theme
|
|
103
|
+
title: Title
|
|
104
|
+
toggle_navigation: Toggle navigation
|
|
105
|
+
unauthorized: Unaruthorized
|
|
106
|
+
username: Username
|
|
107
|
+
users: Users
|
|
108
|
+
website: Website
|
|
109
|
+
widgets: Widgets
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
en:
|
|
2
|
+
views:
|
|
3
|
+
pagination:
|
|
4
|
+
first: "« First"
|
|
5
|
+
last: "Last »"
|
|
6
|
+
previous: "‹ Prev"
|
|
7
|
+
next: "Next ›"
|
|
8
|
+
truncate: "…"
|
|
9
|
+
helpers:
|
|
10
|
+
page_entries_info:
|
|
11
|
+
one_page:
|
|
12
|
+
display_entries:
|
|
13
|
+
zero: "No %{entry_name} found"
|
|
14
|
+
one: "Displaying <b>1</b> %{entry_name}"
|
|
15
|
+
other: "Displaying <b>all %{count}</b> %{entry_name}"
|
|
16
|
+
more_pages:
|
|
17
|
+
display_entries: "Displaying %{entry_name} <b>%{first} - %{last}</b> of <b>%{total}</b> in total"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
en:
|
|
2
|
+
flash:
|
|
3
|
+
actions:
|
|
4
|
+
create:
|
|
5
|
+
notice: '%{resource_name} was successfully created.'
|
|
6
|
+
# alert: '%{resource_name} could not be created.'
|
|
7
|
+
update:
|
|
8
|
+
notice: '%{resource_name} was successfully updated.'
|
|
9
|
+
# alert: '%{resource_name} could not be updated.'
|
|
10
|
+
destroy:
|
|
11
|
+
notice: '%{resource_name} was successfully destroyed.'
|
|
12
|
+
alert: '%{resource_name} could not be destroyed.'
|