alchemy_cms 7.4.10 → 8.0.0.b
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.
Potentially problematic release.
This version of alchemy_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +16 -5
- data/app/assets/builds/alchemy/admin/page-select.css +1 -1
- data/app/assets/builds/alchemy/admin/print.css +1 -1
- data/app/assets/builds/alchemy/admin.css +2 -2
- data/app/assets/builds/alchemy/dark-theme.css +1 -0
- data/app/assets/builds/alchemy/light-theme.css +1 -0
- data/app/assets/builds/alchemy/theme.css +1 -0
- data/app/assets/builds/alchemy/welcome.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy-dark/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css +1 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy-dark/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy-dark/skin.min.css +1 -0
- data/app/assets/config/alchemy_manifest.js +0 -2
- data/app/assets/images/alchemy/element_icons/default.svg +1 -0
- data/app/assets/images/alchemy/icons-sprite.svg +1 -0
- data/app/components/alchemy/admin/element_select.rb +39 -0
- data/app/components/alchemy/admin/resource/applied_filter.rb +29 -0
- data/app/components/alchemy/admin/resource/checkbox_filter.rb +36 -0
- data/app/components/alchemy/admin/resource/datepicker_filter.rb +42 -0
- data/app/components/alchemy/admin/resource/select_filter.rb +43 -0
- data/app/components/alchemy/admin/toolbar_button.rb +5 -2
- data/app/components/alchemy/ingredients/number_view.rb +18 -0
- data/app/controllers/alchemy/admin/attachments_controller.rb +10 -15
- data/app/controllers/alchemy/admin/clipboard_controller.rb +2 -6
- data/app/controllers/alchemy/admin/elements_controller.rb +3 -1
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pages_controller.rb +15 -15
- data/app/controllers/alchemy/admin/pictures_controller.rb +27 -37
- data/app/controllers/alchemy/admin/resources_controller.rb +16 -106
- data/app/controllers/alchemy/attachments_controller.rb +43 -14
- data/app/controllers/alchemy/messages_controller.rb +1 -1
- data/app/controllers/alchemy/pages_controller.rb +26 -4
- data/app/controllers/concerns/alchemy/admin/resource_filter.rb +93 -0
- data/app/decorators/alchemy/element_editor.rb +5 -48
- data/app/decorators/alchemy/ingredient_editor.rb +3 -53
- data/app/helpers/alchemy/admin/attachments_helper.rb +5 -5
- data/app/helpers/alchemy/admin/base_helper.rb +14 -84
- data/app/helpers/alchemy/admin/pages_helper.rb +1 -1
- data/app/helpers/alchemy/base_helper.rb +0 -30
- data/app/helpers/alchemy/elements_block_helper.rb +0 -14
- data/app/helpers/alchemy/pages_helper.rb +1 -1
- data/{lib → app/helpers}/alchemy/resources_helper.rb +5 -45
- data/app/javascript/alchemy_admin/components/action.js +2 -0
- data/app/javascript/alchemy_admin/components/alchemy_html_element.js +3 -3
- data/app/javascript/alchemy_admin/components/auto_submit.js +20 -0
- data/app/javascript/alchemy_admin/components/datepicker.js +18 -7
- data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +8 -7
- data/app/javascript/alchemy_admin/components/element_editor.js +25 -15
- data/app/javascript/alchemy_admin/components/element_select.js +43 -0
- data/app/javascript/alchemy_admin/components/index.js +3 -0
- data/app/javascript/alchemy_admin/components/link_buttons.js +6 -2
- data/app/javascript/alchemy_admin/components/remote_select.js +9 -2
- data/app/javascript/alchemy_admin/components/tags_autocomplete.js +5 -1
- data/app/javascript/alchemy_admin/components/tinymce.js +93 -14
- data/app/javascript/alchemy_admin/components/update_check.js +42 -0
- data/app/javascript/alchemy_admin/components/uploader/file_upload.js +15 -8
- data/app/javascript/alchemy_admin/components/uploader/progress.js +12 -6
- data/app/javascript/alchemy_admin/components/uploader.js +4 -2
- data/app/javascript/alchemy_admin/confirm_dialog.js +27 -57
- data/app/javascript/alchemy_admin/dialog.js +1 -1
- data/app/javascript/alchemy_admin/dirty.js +3 -2
- data/app/javascript/alchemy_admin/file_editors.js +1 -1
- data/app/javascript/alchemy_admin/i18n.js +15 -16
- data/app/javascript/alchemy_admin/image_loader.js +4 -2
- data/app/javascript/alchemy_admin/initializer.js +1 -49
- data/app/javascript/alchemy_admin/picture_editors.js +7 -4
- data/app/javascript/alchemy_admin/picture_selector.js +4 -4
- data/app/javascript/alchemy_admin/utils/ajax.js +51 -44
- data/app/javascript/alchemy_admin.js +3 -8
- data/app/jobs/alchemy/delete_picture_job.rb +12 -0
- data/app/models/alchemy/admin/filters/base.rb +38 -0
- data/app/models/alchemy/admin/filters/checkbox.rb +24 -0
- data/app/models/alchemy/admin/filters/datepicker.rb +53 -0
- data/app/models/alchemy/admin/filters/select.rb +70 -0
- data/app/models/alchemy/admin/resource_name.rb +27 -0
- data/app/models/alchemy/attachment.rb +49 -44
- data/app/models/alchemy/base_record.rb +2 -0
- data/app/models/alchemy/element/definitions.rb +1 -1
- data/app/models/alchemy/element/element_ingredients.rb +6 -6
- data/app/models/alchemy/element/presenters.rb +3 -12
- data/app/models/alchemy/element.rb +10 -27
- data/app/models/alchemy/element_definition.rb +190 -0
- data/app/models/alchemy/ingredient.rb +10 -43
- data/app/models/alchemy/ingredient_definition.rb +134 -0
- data/app/models/alchemy/ingredient_validator.rb +7 -3
- data/app/models/alchemy/ingredients/number.rb +19 -0
- data/app/models/alchemy/language.rb +2 -21
- data/app/models/alchemy/message.rb +3 -7
- data/app/models/alchemy/node.rb +1 -1
- data/app/models/alchemy/page/{page_layouts.rb → definitions.rb} +12 -19
- data/app/models/alchemy/page/fixed_attributes.rb +1 -1
- data/app/models/alchemy/page/page_elements.rb +13 -14
- data/app/models/alchemy/page/page_naming.rb +3 -11
- data/app/models/alchemy/page/page_natures.rb +20 -15
- data/app/models/alchemy/page/page_scopes.rb +1 -1
- data/app/models/alchemy/page.rb +12 -39
- data/app/models/alchemy/page_definition.rb +115 -0
- data/app/models/alchemy/picture.rb +71 -99
- data/app/models/alchemy/picture_variant.rb +115 -5
- data/{lib → app/models}/alchemy/resource.rb +4 -18
- data/{lib → app/models}/alchemy/searchable_resource.rb +15 -0
- data/app/models/alchemy/site/layout.rb +5 -5
- data/app/models/alchemy/site.rb +1 -21
- data/app/models/alchemy/storage_adapter/active_storage/attachment_url.rb +41 -0
- data/app/models/alchemy/storage_adapter/active_storage/picture_url.rb +55 -0
- data/app/models/alchemy/storage_adapter/active_storage/preprocessor.rb +40 -0
- data/app/models/alchemy/storage_adapter/active_storage.rb +173 -0
- data/app/models/alchemy/{attachment/url.rb → storage_adapter/dragonfly/attachment_url.rb} +12 -12
- data/app/models/alchemy/storage_adapter/dragonfly/picture_url.rb +75 -0
- data/app/models/alchemy/{picture → storage_adapter/dragonfly}/preprocessor.rb +4 -4
- data/app/models/alchemy/storage_adapter/dragonfly.rb +205 -0
- data/app/models/alchemy/storage_adapter.rb +74 -0
- data/app/models/concerns/alchemy/picture_thumbnails.rb +19 -6
- data/app/models/concerns/alchemy/relatable_resource.rb +28 -0
- data/app/serializers/alchemy/element_serializer.rb +0 -1
- data/app/services/alchemy/dragonfly_to_image_processing.rb +100 -0
- data/app/stylesheets/alchemy/_custom-properties.scss +162 -0
- data/app/stylesheets/alchemy/_defaults.scss +3 -0
- data/app/stylesheets/alchemy/_extends.scss +69 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/_mixins.scss +40 -68
- data/app/stylesheets/alchemy/_themes.scss +540 -0
- data/app/stylesheets/alchemy/_variables.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/archive.scss +45 -42
- data/app/stylesheets/alchemy/admin/attachments.scss +17 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/base.scss +20 -15
- data/app/stylesheets/alchemy/admin/buttons.scss +135 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/clipboard.scss +2 -2
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/dashboard.scss +13 -16
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/dialogs.scss +33 -16
- data/app/stylesheets/alchemy/admin/element-select.scss +11 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/elements.scss +239 -133
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/errors.scss +5 -5
- data/app/stylesheets/alchemy/admin/filters.scss +57 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/flatpickr.scss +54 -76
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/form_fields.scss +10 -11
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/forms.scss +28 -21
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/frame.scss +20 -18
- data/app/stylesheets/alchemy/admin/hints.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/icons.scss +1 -1
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/image_library.scss +21 -61
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/images.scss +1 -1
- data/app/stylesheets/alchemy/admin/labels.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/lists.scss +3 -3
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/navigation.scss +55 -59
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/node-select.scss +1 -10
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/nodes.scss +21 -18
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/notices.scss +20 -19
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/page-select.scss +18 -2
- data/app/stylesheets/alchemy/admin/pagination.scss +137 -0
- data/app/stylesheets/alchemy/admin/preview_window.scss +46 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/print.scss +1 -1
- data/app/stylesheets/alchemy/admin/resource_info.scss +148 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/search.scss +10 -7
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/selects.scss +85 -46
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/shoelace.scss +37 -68
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/sitemap.scss +39 -34
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/tables.scss +9 -7
- data/app/stylesheets/alchemy/admin/tags.scss +143 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/toolbar.scss +6 -6
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/typography.scss +3 -6
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/upload.scss +7 -5
- data/app/stylesheets/alchemy/admin.scss +44 -0
- data/app/stylesheets/alchemy/dark-theme.scss +5 -0
- data/app/stylesheets/alchemy/light-theme.scss +6 -0
- data/app/stylesheets/alchemy/theme.scss +13 -0
- data/app/stylesheets/alchemy/welcome.scss +75 -0
- data/app/stylesheets/tinymce/skins/content/alchemy/content.scss +69 -0
- data/app/{assets/stylesheets/tinymce/skins/content/alchemy → stylesheets/tinymce/skins/content/alchemy-dark}/content.scss +12 -12
- data/app/stylesheets/tinymce/skins/ui/alchemy/content.scss +1 -0
- data/app/{assets/stylesheets → stylesheets}/tinymce/skins/ui/alchemy/skin.scss +158 -176
- data/app/stylesheets/tinymce/skins/ui/alchemy-dark/content.scss +1 -0
- data/app/stylesheets/tinymce/skins/ui/alchemy-dark/skin.scss +3784 -0
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +22 -12
- data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/assign.js.erb +4 -3
- data/app/views/alchemy/admin/attachments/show.html.erb +55 -43
- data/app/views/alchemy/admin/{elements/_clipboard_button.html.erb → clipboard/_button.html.erb} +3 -5
- data/app/views/alchemy/admin/clipboard/_update_nested_element_button.turbo_stream.erb +11 -0
- data/app/views/alchemy/admin/clipboard/clear.turbo_stream.erb +4 -0
- data/app/views/alchemy/admin/clipboard/index.html.erb +15 -13
- data/app/views/alchemy/admin/clipboard/insert.turbo_stream.erb +18 -0
- data/app/views/alchemy/admin/clipboard/remove.turbo_stream.erb +9 -0
- data/app/views/alchemy/admin/crop.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/info.html.erb +17 -31
- data/app/views/alchemy/admin/elements/_element.html.erb +4 -8
- data/app/views/alchemy/admin/elements/_form.html.erb +9 -9
- data/app/views/alchemy/admin/elements/_header.html.erb +5 -1
- data/app/views/alchemy/admin/elements/_toolbar.html.erb +4 -6
- data/app/views/alchemy/admin/elements/create.turbo_stream.erb +2 -1
- data/app/views/alchemy/admin/elements/index.html.erb +2 -2
- data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +3 -16
- data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +0 -9
- data/app/views/alchemy/admin/languages/_form.html.erb +1 -1
- data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
- data/app/views/alchemy/admin/languages/index.html.erb +5 -2
- data/app/views/alchemy/admin/layoutpages/index.html.erb +1 -12
- data/app/views/alchemy/admin/pages/_form.html.erb +2 -2
- data/app/views/alchemy/admin/pages/_page.html.erb +2 -3
- data/app/views/alchemy/admin/pages/_toolbar.html.erb +1 -15
- data/app/views/alchemy/admin/pages/index.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +9 -12
- data/app/views/alchemy/admin/partials/_search_form.html.erb +4 -9
- data/app/views/alchemy/admin/pictures/_archive.html.erb +16 -29
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +3 -7
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_form.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_infos.html.erb +21 -52
- data/app/views/alchemy/admin/pictures/_library_sidebar.html.erb +7 -0
- data/app/views/alchemy/admin/pictures/_picture.html.erb +14 -20
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +20 -16
- data/app/views/alchemy/admin/pictures/_sorting_select.html.erb +13 -0
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +1 -6
- data/app/views/alchemy/admin/pictures/index.html.erb +5 -19
- data/app/views/alchemy/admin/pictures/show.html.erb +10 -5
- data/app/views/alchemy/admin/resources/_applied_filters.html.erb +8 -0
- data/app/views/alchemy/admin/resources/_filter_bar.html.erb +5 -25
- data/app/views/alchemy/admin/resources/_pagination.html.erb +6 -0
- data/app/views/alchemy/admin/resources/_per_page_select.html.erb +4 -2
- data/app/views/alchemy/admin/resources/_resource_table.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_resource_usage_info.html.erb +36 -0
- data/app/views/alchemy/admin/resources/_table_header.html.erb +1 -15
- data/app/views/alchemy/admin/sites/index.html.erb +5 -1
- data/app/views/alchemy/admin/styleguide/index.html.erb +118 -58
- data/app/views/alchemy/admin/tags/index.html.erb +1 -1
- data/app/views/alchemy/admin/tinymce/_setup.html.erb +7 -7
- data/app/{javascript/alchemy_admin/locales/en.js → views/alchemy/admin/translations/_en.js} +5 -2
- data/app/views/alchemy/admin/uploader/_button.html.erb +1 -1
- data/app/views/alchemy/admin/uploader/_setup.html.erb +4 -4
- data/app/views/alchemy/base/error_notice.html.erb +1 -1
- data/app/views/alchemy/ingredients/_number_editor.html.erb +24 -0
- data/app/views/alchemy/no_index.html.erb +31 -0
- data/app/views/alchemy/welcome.html.erb +12 -10
- data/app/views/kaminari/alchemy/_first_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_last_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_next_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_paginator.html.erb +18 -13
- data/app/views/kaminari/alchemy/_prev_page.html.erb +5 -3
- data/app/views/layouts/alchemy/admin.html.erb +25 -24
- data/config/alchemy/config.yml +3 -2
- data/config/initializers/dragonfly.rb +0 -1
- data/config/initializers/mime_types.rb +1 -0
- data/config/locales/alchemy.en.yml +57 -21
- data/config/routes.rb +0 -2
- data/db/migrate/20250905140323_add_created_at_index_to_pictures_and_attachments.rb +14 -0
- data/lib/alchemy/admin/preview_url.rb +4 -5
- data/lib/alchemy/cache_digests/template_tracker.rb +6 -9
- data/lib/alchemy/config_missing.rb +14 -0
- data/lib/alchemy/configuration/base_option.rb +24 -0
- data/lib/alchemy/configuration/boolean_option.rb +16 -0
- data/lib/alchemy/configuration/class_option.rb +15 -0
- data/lib/alchemy/configuration/class_set_option.rb +46 -0
- data/lib/alchemy/configuration/integer_list_option.rb +13 -0
- data/lib/alchemy/configuration/integer_option.rb +12 -0
- data/lib/alchemy/configuration/list_option.rb +22 -0
- data/lib/alchemy/configuration/regexp_option.rb +11 -0
- data/lib/alchemy/configuration/string_list_option.rb +13 -0
- data/lib/alchemy/configuration/string_option.rb +11 -0
- data/lib/alchemy/configuration.rb +115 -0
- data/lib/alchemy/configuration_methods.rb +3 -1
- data/lib/alchemy/configurations/default_language.rb +12 -0
- data/lib/alchemy/configurations/default_site.rb +10 -0
- data/lib/alchemy/configurations/format_matchers.rb +11 -0
- data/lib/alchemy/configurations/mailer.rb +16 -0
- data/lib/alchemy/configurations/main.rb +223 -0
- data/lib/alchemy/configurations/page_cache.rb +19 -0
- data/lib/alchemy/configurations/preview.rb +32 -0
- data/lib/alchemy/configurations/sitemap.rb +10 -0
- data/lib/alchemy/configurations/uploader.rb +34 -0
- data/lib/alchemy/engine.rb +81 -24
- data/lib/alchemy/hints.rb +3 -7
- data/lib/alchemy/install/tasks.rb +0 -12
- data/lib/alchemy/on_page_layout.rb +2 -2
- data/lib/alchemy/propshaft/tinymce_asset.rb +15 -0
- data/lib/alchemy/seeder.rb +2 -2
- data/lib/alchemy/tasks/tidy.rb +18 -0
- data/lib/alchemy/tasks/usage.rb +4 -4
- data/lib/alchemy/test_support/config_stubbing.rb +1 -7
- data/lib/alchemy/test_support/factories/attachment_factory.rb +13 -2
- data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
- data/lib/alchemy/test_support/factories/page_factory.rb +2 -3
- data/lib/alchemy/test_support/factories/picture_factory.rb +31 -2
- data/lib/alchemy/test_support/factories/site_factory.rb +2 -2
- data/lib/alchemy/test_support/having_crop_action_examples.rb +2 -2
- data/lib/alchemy/test_support/having_picture_thumbnails_examples.rb +80 -26
- data/lib/alchemy/test_support/relatable_resource_examples.rb +58 -0
- data/lib/alchemy/test_support/shared_ingredient_examples.rb +5 -5
- data/lib/alchemy/tinymce.rb +0 -1
- data/lib/alchemy/upgrader/eight_zero.rb +14 -0
- data/lib/alchemy/upgrader.rb +33 -20
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy.rb +185 -172
- data/lib/alchemy_cms.rb +1 -7
- data/lib/generators/alchemy/ingredient/ingredient_generator.rb +0 -3
- data/lib/generators/alchemy/install/files/_article.html.erb +6 -4
- data/lib/generators/alchemy/install/files/alchemy.en.yml +22 -3
- data/lib/generators/alchemy/install/files/application.html.erb +5 -0
- data/lib/generators/alchemy/install/install_generator.rb +25 -23
- data/lib/generators/alchemy/install/templates/alchemy.rb.tt +200 -0
- data/lib/generators/alchemy/install/templates/dragonfly.rb.tt +0 -1
- data/lib/generators/alchemy/install/templates/elements.yml.tt +3 -1
- data/lib/generators/alchemy/install/templates/menus.yml.tt +1 -1
- data/lib/generators/alchemy/install/templates/page_layouts.yml.tt +2 -2
- data/lib/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
- data/lib/tasks/alchemy/assets.rake +14 -0
- data/lib/tasks/alchemy/tidy.rake +6 -0
- data/lib/tasks/alchemy/upgrade.rake +12 -47
- data/vendor/assets/stylesheets/tinymce/skins/content/dark/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/content/default/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide/skin.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
- data/vendor/javascript/clipboard.min.js +1 -1
- data/vendor/javascript/cropperjs.min.js +1 -1
- data/vendor/javascript/handlebars.min.js +3 -3
- data/vendor/javascript/jquery.min.js +1 -1
- data/vendor/javascript/select2.min.js +3 -3
- data/vendor/javascript/shoelace.min.js +92 -76
- data/vendor/javascript/sortable.min.js +2 -2
- data/vendor/javascript/tinymce.min.js +1 -1
- data/vendor/javascript/ungap-custom-elements.min.js +2 -2
- metadata +223 -208
- data/CHANGELOG.md +0 -2041
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -73
- data/Gemfile +0 -71
- data/Rakefile +0 -102
- data/SECURITY.md +0 -13
- data/alchemy_cms.gemspec +0 -88
- data/app/assets/builds/alchemy/admin/page-select.css.map +0 -1
- data/app/assets/builds/alchemy/admin/print.css.map +0 -1
- data/app/assets/builds/alchemy/admin.css.map +0 -1
- data/app/assets/builds/alchemy/custom-properties.css +0 -1
- data/app/assets/builds/alchemy/custom-properties.css.map +0 -1
- data/app/assets/builds/alchemy/welcome.css.map +0 -1
- data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css.map +0 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css.map +0 -1
- data/app/assets/javascripts/alchemy/admin.js +0 -10
- data/app/assets/stylesheets/alchemy/_defaults.scss +0 -3
- data/app/assets/stylesheets/alchemy/_deprecated_variables.scss +0 -45
- data/app/assets/stylesheets/alchemy/_deprecation.scss +0 -17
- data/app/assets/stylesheets/alchemy/_extends.scss +0 -62
- data/app/assets/stylesheets/alchemy/_variables.scss +0 -201
- data/app/assets/stylesheets/alchemy/admin/attachments.scss +0 -40
- data/app/assets/stylesheets/alchemy/admin/buttons.scss +0 -123
- data/app/assets/stylesheets/alchemy/admin/hints.scss +0 -5
- data/app/assets/stylesheets/alchemy/admin/labels.scss +0 -3
- data/app/assets/stylesheets/alchemy/admin/pagination.scss +0 -92
- data/app/assets/stylesheets/alchemy/admin/preview_window.scss +0 -33
- data/app/assets/stylesheets/alchemy/admin/resource_info.scss +0 -42
- data/app/assets/stylesheets/alchemy/admin/tags.scss +0 -158
- data/app/assets/stylesheets/alchemy/admin.scss +0 -42
- data/app/assets/stylesheets/alchemy/custom-properties.css +0 -98
- data/app/assets/stylesheets/alchemy/welcome.scss +0 -57
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.css +0 -711
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.inline.css +0 -705
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.inline.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.mobile.css +0 -29
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.mobile.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/skin.mobile.css +0 -677
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/skin.mobile.min.css +0 -7
- data/app/controllers/alchemy/elements_controller.rb +0 -32
- data/app/helpers/alchemy/admin/elements_helper.rb +0 -25
- data/app/models/alchemy/element/dom_id.rb +0 -31
- data/app/models/alchemy/picture/calculations.rb +0 -49
- data/app/models/alchemy/picture/transformations.rb +0 -115
- data/app/models/alchemy/picture/url.rb +0 -54
- data/app/views/alchemy/admin/attachments/destroy.js.erb +0 -1
- data/app/views/alchemy/admin/clipboard/clear.js.erb +0 -3
- data/app/views/alchemy/admin/clipboard/insert.js.erb +0 -29
- data/app/views/alchemy/admin/clipboard/remove.js.erb +0 -10
- data/app/views/alchemy/admin/resources/_filter.html.erb +0 -12
- data/app/views/alchemy/admin/resources/_resource.html.erb +0 -34
- data/app/views/alchemy/admin/resources/_table.html.erb +0 -29
- data/app/views/alchemy/elements/show.html.erb +0 -1
- data/app/views/alchemy/elements/show.js.erb +0 -1
- data/app/views/alchemy/ingredients/_audio_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_boolean_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_datetime_view.html.erb +0 -3
- data/app/views/alchemy/ingredients/_file_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_headline_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_html_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_link_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_node_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_page_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_picture_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_richtext_view.html.erb +0 -3
- data/app/views/alchemy/ingredients/_select_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_text_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_video_view.html.erb +0 -3
- data/babel.config.js +0 -12
- data/bin/importmap +0 -4
- data/bin/rails +0 -9
- data/bin/rspec +0 -3
- data/bin/setup +0 -30
- data/bin/start +0 -17
- data/bun.lockb +0 -0
- data/bundles/shoelace.js +0 -12
- data/bundles/tinymce.js +0 -22
- data/config/initializers/assets.rb +0 -4
- data/eslint.config.js +0 -17
- data/lib/alchemy/config.rb +0 -114
- data/lib/alchemy/element_definition.rb +0 -73
- data/lib/alchemy/page_layout.rb +0 -73
- data/lib/alchemy/resource_filter.rb +0 -40
- data/lib/alchemy/upgrader/seven_point_four.rb +0 -26
- data/lib/alchemy/upgrader/seven_point_three.rb +0 -52
- data/lib/alchemy/upgrader/tasks/.keep +0 -0
- data/lib/generators/alchemy/ingredient/templates/view.html.erb +0 -1
- data/lib/generators/alchemy/install/files/alchemy_admin.js +0 -1
- data/lib/generators/alchemy/install/files/all.js +0 -11
- data/lib/generators/alchemy/install/files/article.css +0 -25
- data/rollup.config.mjs +0 -108
- data/vendor/assets/images/remixicon.symbol.svg +0 -11
- /data/app/{assets/stylesheets → stylesheets}/alchemy/_fonts.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/attachment-select.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/flash.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/list_filter.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/spinner.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/tinymce/skins/skintool.json +0 -0
- /data/app/{assets/stylesheets → stylesheets}/tinymce/skins/ui/alchemy/fonts/tinymce-mobile.woff +0 -0
@@ -1,21 +1,7 @@
|
|
1
1
|
<div class="resources-header">
|
2
|
-
<% if search_filter_params[:filter].present? %>
|
3
|
-
<b><%= Alchemy.t("filtered_by") %></b>
|
4
|
-
<% search_filter_params[:filter].each do |k, v| %>
|
5
|
-
<%- tmp_params = search_filter_params.dup -%>
|
6
|
-
<%- tmp_params[:filter] = tmp_params[:filter].except(k) -%>
|
7
|
-
<%- dismiss_filter_url = resource_url_proxy.url_for(
|
8
|
-
{ action: 'index' }.merge(tmp_params.except(:page))
|
9
|
-
) -%>
|
10
|
-
<div class="applied-filter">
|
11
|
-
<%= Alchemy.t("filters.#{resource_handler.resource_name}.#{k}.values.#{v}", default: v) %>
|
12
|
-
<%= link_to render_icon(:times, size: 'xs'), dismiss_filter_url, class: 'dismiss-filter' %>
|
13
|
-
</div>
|
14
|
-
<% end %>
|
15
|
-
<% end %>
|
16
|
-
|
17
2
|
<h2>
|
18
3
|
<%= resources_instance_variable.total_count %>
|
19
4
|
<%= resource_model.model_name.human(count: resources_instance_variable.total_count) %>
|
20
5
|
</h2>
|
6
|
+
<%= render "alchemy/admin/resources/applied_filters" %>
|
21
7
|
</div>
|
@@ -30,7 +30,11 @@
|
|
30
30
|
<%= render_message do %>
|
31
31
|
<%== Alchemy.t('alchemy/site', scope: :no_resource_found) %>
|
32
32
|
<% end %>
|
33
|
-
<%= render 'form', site: Alchemy::Site.new(
|
33
|
+
<%= render 'form', site: Alchemy::Site.new(
|
34
|
+
name: Alchemy.config.default_site.name,
|
35
|
+
host: Alchemy.config.default_site.host,
|
36
|
+
public: true
|
37
|
+
) %>
|
34
38
|
</div>
|
35
39
|
<% end %>
|
36
40
|
</div>
|
@@ -19,63 +19,6 @@
|
|
19
19
|
|
20
20
|
<h1>AlchemyCMS Styleguide</h1>
|
21
21
|
|
22
|
-
<h2>Typography</h2>
|
23
|
-
|
24
|
-
<h1>Heading 1</h1>
|
25
|
-
<h2>Heading 2</h2>
|
26
|
-
<h3>Heading 3</h3>
|
27
|
-
<h4>Heading 4</h4>
|
28
|
-
<h5>Heading 5</h5>
|
29
|
-
|
30
|
-
<p>This is a paragraph, with <a href="#">a link</a>, a <kbd>keyboard shortcut</kbd> and an <code>inline code snippet</code>.</p>
|
31
|
-
|
32
|
-
<h2>Messages</h2>
|
33
|
-
|
34
|
-
<h3>Info Message</h3>
|
35
|
-
|
36
|
-
<%= render_message do %>
|
37
|
-
<p>Lorem ipsum <strong>dolor</strong> sit amet, consectetur adipiscing elit.</p>
|
38
|
-
<% end %>
|
39
|
-
|
40
|
-
<h3>Warning Message</h3>
|
41
|
-
|
42
|
-
<%= render_message :warning do %>
|
43
|
-
<p>Lorem ipsum dolor sit amet, <a href="">consectetur</a> adipiscing elit.</p>
|
44
|
-
<% end %>
|
45
|
-
|
46
|
-
<h3>Error Message</h3>
|
47
|
-
|
48
|
-
<%= render_message :error do %>
|
49
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<h3>Growl Messages</h3>
|
53
|
-
|
54
|
-
<%= link_to render_icon(:check), 'javascript:Alchemy.growl("Success message")', class: "icon_button" %>
|
55
|
-
<%= link_to render_icon(:info), 'javascript:Alchemy.growl("Info message", "info")', class: "icon_button" %>
|
56
|
-
<%= link_to render_icon(:alert), 'javascript:Alchemy.growl("Warning message", "warn")', class: "icon_button" %>
|
57
|
-
<%= link_to render_icon(:bug), 'javascript:Alchemy.growl("Error message", "error")', class: "icon_button" %>
|
58
|
-
|
59
|
-
<h2>Dialog Links</h2>
|
60
|
-
|
61
|
-
<sl-tooltip content="Open in Dialog">
|
62
|
-
<a
|
63
|
-
href="/admin/styleguide"
|
64
|
-
is="alchemy-dialog-link"
|
65
|
-
class="icon_button"
|
66
|
-
data-dialog-options="{"size":"800x600","title":"Styleguide in Dialog"}"
|
67
|
-
>
|
68
|
-
<%= render_icon "window" %>
|
69
|
-
</a>
|
70
|
-
</sl-tooltip>
|
71
|
-
<a
|
72
|
-
href="#"
|
73
|
-
is="alchemy-dialog-link"
|
74
|
-
class="icon_button disabled"
|
75
|
-
>
|
76
|
-
<%= render_icon "window" %>
|
77
|
-
</a>
|
78
|
-
|
79
22
|
<h2>Forms</h2>
|
80
23
|
|
81
24
|
<div class="panel">
|
@@ -94,6 +37,13 @@
|
|
94
37
|
</select>
|
95
38
|
</div>
|
96
39
|
|
40
|
+
<div class="input select">
|
41
|
+
<label class="select control-label" for="select">Disabled Select</label>
|
42
|
+
<select class="select" id="disabled-select" is="alchemy-select" disabled>
|
43
|
+
<option value="">Cannot choose</option>
|
44
|
+
</select>
|
45
|
+
</div>
|
46
|
+
|
97
47
|
<div class="input">
|
98
48
|
<label class="control-label" for="datetime_picker">Date Time Picker</label>
|
99
49
|
<alchemy-datepicker input-type="datetime">
|
@@ -163,7 +113,7 @@
|
|
163
113
|
<div class="input text">
|
164
114
|
<label class="text control-label" for="textarea">Textarea</label>
|
165
115
|
<textarea class="text" id="textarea"></textarea>
|
166
|
-
<small class="hint">With hint</small>
|
116
|
+
<small class="hint">With hint and a <a href="/admin/styleguide">link</a> inside.</small>
|
167
117
|
</div>
|
168
118
|
|
169
119
|
<div class="input text tinymce_container">
|
@@ -180,6 +130,116 @@
|
|
180
130
|
</form>
|
181
131
|
</div>
|
182
132
|
|
133
|
+
<h2>Buttons</h2>
|
134
|
+
|
135
|
+
<p>
|
136
|
+
<button class="secondary" disabled>Disabled Secondary</button>
|
137
|
+
<button type="submit" is="alchemy-button" disabled>Disabled Primary</button>
|
138
|
+
</p>
|
139
|
+
|
140
|
+
<h2>Selects</h2>
|
141
|
+
|
142
|
+
<div style="display: flex; gap: 1em;">
|
143
|
+
<div style="width: 25%">
|
144
|
+
<h3>Select with Search</h3>
|
145
|
+
<select is="alchemy-select" class="full_width">
|
146
|
+
<option value="1">Option 1</option>
|
147
|
+
<option value="2">Option 2</option>
|
148
|
+
<option value="3">Option 3</option>
|
149
|
+
<option value="4">Option 4</option>
|
150
|
+
<option value="5">Option 5</option>
|
151
|
+
<option value="6">Option 6</option>
|
152
|
+
<option value="7">Option 7</option>
|
153
|
+
</select>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div style="width: 25%">
|
157
|
+
<h3>Page Select</h3>
|
158
|
+
<%= render Alchemy::Admin::PageSelect.new do %>
|
159
|
+
<input name="page" class="full_width" />
|
160
|
+
<% end %>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div style="width: 25%">
|
164
|
+
<h3>Node Select</h3>
|
165
|
+
<%= render Alchemy::Admin::NodeSelect.new do %>
|
166
|
+
<input name="node" class="full_width" />
|
167
|
+
<% end %>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
<div style="width: 25%">
|
171
|
+
<h3>Attachment Select</h3>
|
172
|
+
<%= render Alchemy::Admin::AttachmentSelect.new do %>
|
173
|
+
<input name="attachment" class="full_width" />
|
174
|
+
<% end %>
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<h3>Tags Autocomplete</h3>
|
179
|
+
|
180
|
+
<div style="width: 25%">
|
181
|
+
<alchemy-tags-autocomplete>
|
182
|
+
<input type="text" class="full_width" />
|
183
|
+
</alchemy-tags-autocomplete>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
<h2>Typography</h2>
|
187
|
+
|
188
|
+
<h1>Heading 1</h1>
|
189
|
+
<h2>Heading 2</h2>
|
190
|
+
<h3>Heading 3</h3>
|
191
|
+
<h4>Heading 4</h4>
|
192
|
+
<h5>Heading 5</h5>
|
193
|
+
|
194
|
+
<p>This is a paragraph, with <a href="#">a link</a>, a <kbd>keyboard shortcut</kbd> and an <code>inline code snippet</code>.</p>
|
195
|
+
|
196
|
+
<h2>Messages</h2>
|
197
|
+
|
198
|
+
<h3>Info Message</h3>
|
199
|
+
|
200
|
+
<%= render_message do %>
|
201
|
+
<p>Lorem ipsum <strong>dolor</strong> sit amet, <a href="">consectetur</a> adipiscing elit.</p>
|
202
|
+
<% end %>
|
203
|
+
|
204
|
+
<h3>Warning Message</h3>
|
205
|
+
|
206
|
+
<%= render_message :warning do %>
|
207
|
+
<p>Lorem ipsum dolor sit amet, <a href="">consectetur</a> adipiscing elit.</p>
|
208
|
+
<% end %>
|
209
|
+
|
210
|
+
<h3>Error Message</h3>
|
211
|
+
|
212
|
+
<%= render_message :error do %>
|
213
|
+
<p>Lorem ipsum dolor sit amet, <a href="">consectetur</a> adipiscing elit.</p>
|
214
|
+
<% end %>
|
215
|
+
|
216
|
+
<h3>Growl Messages</h3>
|
217
|
+
|
218
|
+
<%= link_to render_icon(:check), 'javascript:Alchemy.growl("Success message")', class: "icon_button" %>
|
219
|
+
<%= link_to render_icon(:info), 'javascript:Alchemy.growl("Info message", "info")', class: "icon_button" %>
|
220
|
+
<%= link_to render_icon(:alert), 'javascript:Alchemy.growl("Warning message", "warn")', class: "icon_button" %>
|
221
|
+
<%= link_to render_icon(:bug), 'javascript:Alchemy.growl("Error message", "error")', class: "icon_button" %>
|
222
|
+
|
223
|
+
<h2>Dialog Links</h2>
|
224
|
+
|
225
|
+
<sl-tooltip content="Open in Dialog">
|
226
|
+
<a
|
227
|
+
href="/admin/styleguide"
|
228
|
+
is="alchemy-dialog-link"
|
229
|
+
class="icon_button"
|
230
|
+
data-dialog-options="{"size":"800x600","title":"Styleguide in Dialog"}"
|
231
|
+
>
|
232
|
+
<%= render_icon "window" %>
|
233
|
+
</a>
|
234
|
+
</sl-tooltip>
|
235
|
+
<a
|
236
|
+
href="#"
|
237
|
+
is="alchemy-dialog-link"
|
238
|
+
class="icon_button disabled"
|
239
|
+
>
|
240
|
+
<%= render_icon "window" %>
|
241
|
+
</a>
|
242
|
+
|
183
243
|
<h2>Tables</h2>
|
184
244
|
|
185
245
|
<h3>Normal Table</h3>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<%
|
1
|
+
<% tinymce_base_path = "#{Rails.application.config.assets.prefix}/tinymce" %>
|
2
2
|
|
3
|
-
<link rel="preload" href="<%=
|
3
|
+
<link rel="preload" href="<%= asset_path("#{tinymce_base_path}/skins/ui/alchemy/skin.min.css") %>" as="style" />
|
4
4
|
<% if Alchemy::Tinymce.init[:content_css] %>
|
5
|
-
<link rel="preload" href="<%=
|
5
|
+
<link rel="preload" href="<%= asset_path(Alchemy::Tinymce.init[:content_css]) %>" as="style" />
|
6
6
|
<% end %>
|
7
7
|
<% Alchemy::Tinymce.preloadable_plugins.each do |plugin| %>
|
8
|
-
<link rel="preload" href="<%=
|
8
|
+
<link rel="preload" href="<%= asset_path("#{tinymce_base_path}/plugins/#{plugin}/plugin.min.js") %>" as="script">
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<script>
|
12
12
|
// Setting TinyMCE path.
|
13
13
|
var tinyMCEPreInit = {
|
14
|
-
<% if ActionController::Base.config.
|
15
|
-
base: '<%= asset_url(
|
14
|
+
<% if ActionController::Base.config.asset_host %>
|
15
|
+
base: '<%= asset_url(tinymce_base_path, host: ActionController::Base.config.asset_host) %>',
|
16
16
|
<% else %>
|
17
|
-
base: '<%=
|
17
|
+
base: '<%= tinymce_base_path %>',
|
18
18
|
<% end %>
|
19
19
|
suffix: '.min'
|
20
20
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Alchemy.translations = {
|
2
2
|
allowed_chars: "of %{count} chars",
|
3
3
|
cancel: "Cancel",
|
4
4
|
cancelled: "Cancelled",
|
@@ -12,6 +12,7 @@ export const en = {
|
|
12
12
|
"You have unsaved changes on this page. They will be lost if you continue.",
|
13
13
|
page_found: "Page found",
|
14
14
|
pages_found: "Pages found",
|
15
|
+
"Please confirm": "Please confirm",
|
15
16
|
url_validation_failed: "The url has no valid format.",
|
16
17
|
warning: "Warning!",
|
17
18
|
"File is too large": "File is too large",
|
@@ -30,5 +31,7 @@ export const en = {
|
|
30
31
|
date: "Y-m-d",
|
31
32
|
time: "H:i",
|
32
33
|
time_24hr: false
|
33
|
-
}
|
34
|
+
},
|
35
|
+
Yes: "Yes",
|
36
|
+
No: "No"
|
34
37
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% file_types =
|
1
|
+
<% file_types = Alchemy.config.uploader.allowed_filetypes[object.class.model_name.collection] || ['*'] %>
|
2
2
|
<% accept = file_types == ["*"] ? false : file_types.map {|type| ".#{type}"}.join(", ") %>
|
3
3
|
|
4
4
|
<alchemy-uploader dropzone="<%= local_assigns[:dropzone] || "#main_content" %>">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<script>
|
2
2
|
Alchemy.uploader_defaults = {
|
3
|
-
file_size_limit: <%=
|
4
|
-
upload_limit: <%=
|
5
|
-
allowed_filetype_pictures: "<%=
|
6
|
-
allowed_filetype_attachments: "<%=
|
3
|
+
file_size_limit: <%= Alchemy.config.uploader.file_size_limit -%>,
|
4
|
+
upload_limit: <%= Alchemy.config.uploader.upload_limit -%>,
|
5
|
+
allowed_filetype_pictures: "<%= Alchemy.config.uploader.allowed_filetypes.alchemy_pictures.join(", ") -%>",
|
6
|
+
allowed_filetype_attachments: "<%= Alchemy.config.uploader.allowed_filetypes.alchemy_attachments.join(", ") -%>",
|
7
7
|
}
|
8
8
|
</script>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%= content_tag :div, class: [number_editor.css_classes], data: number_editor.data_attributes do %>
|
2
|
+
<%= element_form.fields_for(:ingredients, number_editor.ingredient) do |f| %>
|
3
|
+
<%= ingredient_label(number_editor) %>
|
4
|
+
<div class="input-field">
|
5
|
+
<%= f.text_field :value,
|
6
|
+
type: number_editor.settings[:input_type] || "number",
|
7
|
+
required: number_editor.presence_validation?,
|
8
|
+
step: number_editor.settings[:step],
|
9
|
+
min: number_editor.settings[:min],
|
10
|
+
max: number_editor.settings[:max],
|
11
|
+
id: number_editor.form_field_id,
|
12
|
+
oninput: number_editor.settings[:input_type] == "range" ? "this.nextElementSibling.value = this.value" : nil
|
13
|
+
%>
|
14
|
+
<% if number_editor.settings[:input_type] == "range" %>
|
15
|
+
<output><%= number_editor.value %></output>
|
16
|
+
<% end %>
|
17
|
+
<% if number_editor.settings[:unit] %>
|
18
|
+
<div class="input-addon right">
|
19
|
+
<%= number_editor.settings[:unit] %>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<title><%= Alchemy.t("Welcome to Alchemy") %></title>
|
7
|
+
<%= stylesheet_link_tag("alchemy/welcome", media: "all") %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div class="container">
|
11
|
+
<%= image_tag("alchemy/alchemy-logo.svg") %>
|
12
|
+
<% if @page.nil? %>
|
13
|
+
<h3>
|
14
|
+
<%= Alchemy.t("There are no pages yet") %>
|
15
|
+
</h3>
|
16
|
+
<p>
|
17
|
+
<%= link_to Alchemy.t("Create your first page"),
|
18
|
+
alchemy.admin_pages_path, class: "button" %>
|
19
|
+
</p>
|
20
|
+
<% else %>
|
21
|
+
<h3>
|
22
|
+
<%= Alchemy.t("There are no published pages yet") %>
|
23
|
+
</h3>
|
24
|
+
<p>
|
25
|
+
<%= link_to Alchemy.t("Publish your homepage"),
|
26
|
+
alchemy.edit_admin_page_path(@page), class: "button" %>
|
27
|
+
</p>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -1,25 +1,27 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
2
|
+
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
|
-
<title
|
8
|
-
<%= stylesheet_link_tag
|
6
|
+
<title><%= Alchemy.t("Welcome to Alchemy") %></title>
|
7
|
+
<%= stylesheet_link_tag("alchemy/welcome", media: "all") %>
|
9
8
|
</head>
|
10
9
|
<body>
|
11
10
|
<div class="container">
|
12
|
-
<%= image_tag
|
13
|
-
<h3
|
11
|
+
<%= image_tag("alchemy/alchemy-logo.svg") %>
|
12
|
+
<h3><%= Alchemy.t("You have successfully installed Alchemy") %></h3>
|
14
13
|
<p>
|
15
|
-
|
14
|
+
<%= Alchemy.t("Before creating your first page you need an admin user") %>.
|
16
15
|
</p>
|
17
16
|
<p>
|
18
|
-
|
17
|
+
<%= link_to Alchemy.t("Create admin user"), Alchemy.signup_path, class: "button" %>
|
19
18
|
</p>
|
19
|
+
<h4><%= Alchemy.t("More resources") %></h4>
|
20
20
|
<ul>
|
21
|
-
<li
|
22
|
-
|
21
|
+
<li>
|
22
|
+
<%= link_to Alchemy.t("Read the guidelines"),
|
23
|
+
"https://guides.alchemy-cms.com/", target: "_blank", rel: "noopener" %>
|
24
|
+
</li>
|
23
25
|
</ul>
|
24
26
|
</div>
|
25
27
|
</body>
|
@@ -11,7 +11,9 @@
|
|
11
11
|
<%= render_icon("skip-left") %>
|
12
12
|
</span>
|
13
13
|
<% else %>
|
14
|
-
<%=
|
15
|
-
<%=
|
16
|
-
|
14
|
+
<sl-tooltip content="<%= Alchemy.t(:first, scope: 'pagination') %>" placement="top-start">
|
15
|
+
<%= link_to url, remote: remote, class: 'first-page' do %>
|
16
|
+
<%= render_icon("skip-left") %>
|
17
|
+
<% end %>
|
18
|
+
</sl-tooltip>
|
17
19
|
<% end %>
|
@@ -11,7 +11,9 @@
|
|
11
11
|
<%= render_icon("skip-right") %>
|
12
12
|
</span>
|
13
13
|
<% else %>
|
14
|
-
<%=
|
15
|
-
<%=
|
16
|
-
|
14
|
+
<sl-tooltip content="<%= Alchemy.t(:last, scope: 'pagination') %>" placement="top-end">
|
15
|
+
<%= link_to url, remote: remote, class: 'last-page' do %>
|
16
|
+
<%= render_icon("skip-right") %>
|
17
|
+
<% end %>
|
18
|
+
</sl-tooltip>
|
17
19
|
<% end %>
|
@@ -11,7 +11,9 @@
|
|
11
11
|
<%= render_icon("arrow-right-s") %>
|
12
12
|
</span>
|
13
13
|
<% else -%>
|
14
|
-
<%=
|
15
|
-
<%=
|
16
|
-
|
14
|
+
<sl-tooltip content="<%= Alchemy.t(:next_page, scope: 'pagination') %>" placement="top-end">
|
15
|
+
<%= link_to url, rel: 'next', remote: remote, class: 'next_page' do %>
|
16
|
+
<%= render_icon("arrow-right-s") %>
|
17
|
+
<% end %>
|
18
|
+
</sl-tooltip>
|
17
19
|
<% end -%>
|
@@ -8,19 +8,24 @@
|
|
8
8
|
-%>
|
9
9
|
<div class="pagination">
|
10
10
|
<%= paginator.render do -%>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
<div class="arrows">
|
12
|
+
<%= first_page_tag %>
|
13
|
+
<%= prev_page_tag -%>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="pages">
|
17
|
+
<% each_page do |page| -%>
|
18
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
19
|
+
<%= page_tag page -%>
|
20
|
+
<% elsif !page.was_truncated? -%>
|
21
|
+
<%= gap_tag -%>
|
22
|
+
<% end -%>
|
18
23
|
<% end -%>
|
19
|
-
|
20
|
-
|
21
|
-
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="arrows">
|
27
|
+
<%= next_page_tag -%>
|
28
|
+
<%= last_page_tag %>
|
29
|
+
</div>
|
22
30
|
<% end -%>
|
23
|
-
<% unless local_assigns[:hide_per_page_select] %>
|
24
|
-
<%= render 'alchemy/admin/resources/per_page_select' %>
|
25
|
-
<% end %>
|
26
31
|
</div>
|
@@ -11,7 +11,9 @@
|
|
11
11
|
<%= render_icon("arrow-left-s") %>
|
12
12
|
</span>
|
13
13
|
<% else -%>
|
14
|
-
|
15
|
-
<%=
|
16
|
-
|
14
|
+
<sl-tooltip class="pagination-label" content="<%= Alchemy.t(:previous_page, scope: 'pagination') %>" placement="top-start">
|
15
|
+
<%= link_to url, rel: 'prev', remote: remote, class: 'previous_page' do %>
|
16
|
+
<%= render_icon("arrow-left-s") %>
|
17
|
+
<% end %>
|
18
|
+
</sl-tooltip>
|
17
19
|
<% end -%>
|
@@ -3,14 +3,15 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<meta name="color-scheme" content="light dark">
|
6
7
|
<title><%= render_alchemy_title %></title>
|
7
8
|
<link rel="shortcut icon" href="<%= asset_path('alchemy/favicon.ico') %>">
|
8
|
-
<link rel="preload" href="<%= asset_path("
|
9
|
+
<link rel="preload" href="<%= asset_path("alchemy/icons-sprite.svg") %>" as="image" type="<%= Mime::Type.lookup_by_extension(:svg) %>" crossorigin>
|
9
10
|
<%= csrf_meta_tag %>
|
10
11
|
<meta name="robots" content="noindex">
|
11
12
|
<meta name="turbo-prefetch" content="false">
|
12
13
|
<meta name="turbo-cache-control" content="no-cache">
|
13
|
-
<%= stylesheet_link_tag('alchemy/
|
14
|
+
<%= stylesheet_link_tag('alchemy/theme', media: 'screen', 'data-turbo-track' => true) %>
|
14
15
|
<%= stylesheet_link_tag('alchemy/admin', media: 'screen', 'data-turbo-track' => true) %>
|
15
16
|
<%= stylesheet_link_tag('alchemy/admin/print', media: 'print', 'data-turbo-track' => true) %>
|
16
17
|
<% Alchemy.admin_stylesheets.each do |stylesheet| %>
|
@@ -22,10 +23,11 @@
|
|
22
23
|
var Alchemy = {};
|
23
24
|
// Store regular expression for external link url matching.
|
24
25
|
Alchemy.link_url_regexp = <%= link_url_regexp.inspect %>;
|
26
|
+
// JS translations
|
27
|
+
<%= alchemy_admin_js_translations %>
|
25
28
|
</script>
|
26
29
|
<%= render 'alchemy/admin/tinymce/setup' %>
|
27
30
|
<%= render 'alchemy/admin/partials/routes' %>
|
28
|
-
<%= javascript_include_tag('alchemy/admin/all', 'data-turbo-track' => true) %>
|
29
31
|
<%= javascript_importmap_tags("alchemy_admin", importmap: Alchemy.importmap) %>
|
30
32
|
<% Alchemy.admin_js_imports.each do |path| %>
|
31
33
|
<script type="module">
|
@@ -35,7 +37,7 @@
|
|
35
37
|
<%= yield :javascript_includes %>
|
36
38
|
</head>
|
37
39
|
<%= content_tag :body, id: 'alchemy',
|
38
|
-
class: alchemy_body_class
|
40
|
+
class: alchemy_body_class,
|
39
41
|
style: cookies["alchemy-elements-window-width"] && "--elements-window-width: #{cookies["alchemy-elements-window-width"]}px" do %>
|
40
42
|
<noscript>
|
41
43
|
<h1><%= Alchemy.t(:javascript_disabled_headline) %></h1>
|
@@ -49,23 +51,26 @@
|
|
49
51
|
<% end %>
|
50
52
|
<%= yield(:alchemy_main_navigation) %>
|
51
53
|
</div>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
54
|
+
|
55
|
+
<div id="logout">
|
56
|
+
<div class="main_navi_entry">
|
57
|
+
<% if current_alchemy_user %>
|
58
|
+
<%= link_to_dialog(
|
59
|
+
%(
|
60
|
+
#{render_icon('logout-box-r', class: 'module')}
|
61
|
+
<label>#{Alchemy.t(:leave)}</label>
|
62
|
+
).html_safe,
|
63
|
+
alchemy.leave_admin_path, {
|
64
|
+
size: "300x155",
|
65
|
+
title: Alchemy.t("Leave Alchemy")
|
66
|
+
}, {'data-alchemy-hotkey' => 'alt+q'}) %>
|
67
|
+
<% else %>
|
68
|
+
<%= link_to(alchemy.root_path) do %>
|
69
|
+
<%= render_icon "logout-box-r", size: "lg" %>
|
70
|
+
<label><%= Alchemy.t(:leave) %></label>
|
71
|
+
<% end %>
|
67
72
|
<% end %>
|
68
|
-
|
73
|
+
</div>
|
69
74
|
</div>
|
70
75
|
</div>
|
71
76
|
<% if current_alchemy_user %>
|
@@ -93,10 +98,6 @@
|
|
93
98
|
<div id="main_content">
|
94
99
|
<%= yield %>
|
95
100
|
</div>
|
96
|
-
<script type="module">
|
97
|
-
// Setting the correct locale for select2 dropdown replacement.
|
98
|
-
$.extend($.fn.select2.defaults, $.fn.select2.locales['<%= ::I18n.locale %>']);
|
99
|
-
</script>
|
100
101
|
<%= render 'alchemy/admin/uploader/setup' %>
|
101
102
|
<%= yield(:javascripts) %>
|
102
103
|
<% end %>
|
data/config/alchemy/config.yml
CHANGED
@@ -13,7 +13,7 @@ auto_logout_time: 30
|
|
13
13
|
#
|
14
14
|
# Enable/Disable page caching globally.
|
15
15
|
#
|
16
|
-
# NOTE: You can enable/disable page caching for single Alchemy::
|
16
|
+
# NOTE: You can enable/disable page caching for single Alchemy::Definitions in the page_layout.yml file.
|
17
17
|
#
|
18
18
|
cache_pages: true
|
19
19
|
|
@@ -87,6 +87,7 @@ items_per_page: 15
|
|
87
87
|
output_image_quality: 85
|
88
88
|
preprocess_image_resize:
|
89
89
|
image_output_format: original
|
90
|
+
sharpen_images: false
|
90
91
|
|
91
92
|
# This is used by the seeder to create the default site.
|
92
93
|
default_site:
|
@@ -110,7 +111,7 @@ default_language:
|
|
110
111
|
#
|
111
112
|
# ==== Options:
|
112
113
|
#
|
113
|
-
# page_layout_name: [String] # A +Alchemy::
|
114
|
+
# page_layout_name: [String] # A +Alchemy::PageDefinition+ name. Used to render the contactform on a page with this layout.
|
114
115
|
# fields: [Array] # An Array of fieldnames.
|
115
116
|
# validate_fields: [Array] # An Array of fieldnames to be validated on presence.
|
116
117
|
#
|