maglevcms 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -0
- data/app/controllers/concerns/maglev/fetchers_concern.rb +1 -1
- data/app/controllers/maglev/admin/sections/previews_controller.rb +1 -1
- data/app/controllers/maglev/application_controller.rb +2 -2
- data/app/controllers/maglev/page_preview_controller.rb +1 -1
- data/app/{javascript → frontend/admin}/controllers/dropdown_controller.js +0 -0
- data/app/{javascript → frontend/admin}/controllers/iframe_controller.js +0 -0
- data/app/{javascript → frontend/admin}/controllers/screenshot_controller.js +0 -0
- data/app/{javascript/controllers → frontend/admin}/index.js +3 -4
- data/app/{javascript → frontend/admin}/utils/axios.js +0 -0
- data/app/{javascript → frontend}/editor/App.vue +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/add-box-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/arrow-down-s-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/arrow-drop-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/arrow-drop-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/arrow-up-s-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/camera-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/check-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/close-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/computer-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/delete-bin-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/file-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-blockquote.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-bold.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-code.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-heading-2.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-heading-3.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-heading-4.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-italic.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-link-unlink.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-link.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-list-ordered.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-list-unordered.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-paragraph.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-strikethrough.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/format-underline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/home-4-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/image-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/logout-box-r-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-add-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-alert-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-book-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-bug-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-close-circle-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-close-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-delete-column.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-delete-row.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-drop-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-external-link-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-eye-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-eye-off-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-file-copy-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-file-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-global-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-insert-column-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-insert-column-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-insert-row-bottom.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-insert-row-top.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-loader-4-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-mail-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-more-2-fill.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-pencil-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-play-list-add-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-settings-5-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-stack-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-table-2.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/ri-table-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/search-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/settings-4-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/smartphone-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/remixicons/tablet-line.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/add-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/add-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/adjust.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/airplane.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/album.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/align-center.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/align-justified.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/align-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/align-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/anchor.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/announcement.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/apparel.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-outline-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-outline-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-outline-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-outline-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thick-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thick-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thick-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thick-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thin-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thin-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thin-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-thin-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/arrow-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/artist.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/at-symbol.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/attachment.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/backspace.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/backward-step.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/backward.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/badge.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/battery-full.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/battery-half.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/battery-low.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/beverage.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/block.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bluetooth.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bolt.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/book-reference.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bookmark copy 2.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bookmark copy 3.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bookmark-outline-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bookmark-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bookmark.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-all.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-bottom.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-horizontal.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-inner.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-none.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-outer.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-top.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/border-vertical.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/box.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/brightness-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/brightness-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/browser-window-new.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/browser-window-open.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/browser-window.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/bug.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/buoy.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/calculator.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/calendar.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/camera.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/chart-bar.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/chart-pie.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/chart.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/chat-bubble-dots.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/checkmark-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/checkmark.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-outline-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-outline-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-outline-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-outline-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cheveron-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/clipboard.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/close-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/close-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/close.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cloud-upload.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cloud.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/code.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/coffee.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/cog.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/color-palette.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/compose.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/computer-desktop.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/computer-laptop.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/conversation.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/copy.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/credit-card.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/currency-dollar.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/dashboard.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/date-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/dial-pad.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/directions.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/document-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/document.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/dots-horizontal-double.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/dots-horizontal-triple.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/download.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/duplicate.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/edit-copy.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/edit-crop.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/edit-cut.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/edit-pencil.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/education.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/envelope.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/exclamation-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/exclamation-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/explore.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/factory.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/fast-forward.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/fast-rewind.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/film.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/filter.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/flag.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/flashlight.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/folder-outline-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/folder-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/folder.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/format-bold.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/format-font-size.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/format-italic.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/format-text-size.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/format-underline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/forward-step.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/forward.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/gift.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/globe.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/hand-stop.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/hard-drive.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/headphones.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/heart.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/home.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/hot.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/hour-glass.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/inbox-check.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/inbox-download.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/inbox-full.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/inbox.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/indent-decrease.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/indent-increase.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/information-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/information-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/key.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/keyboard.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/layers.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/library.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/light-bulb.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/link.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/list-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/list-bullet.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/list.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/load-balancer.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-current.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-food.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-gas-station.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-hotel.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-marina.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-park.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-restroom.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location-shopping.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/location.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/lock-closed.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/lock-open.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/map.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/menu.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mic.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/minus-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/minus-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mobile-devices.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-happy-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-happy-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-neutral-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-neutral-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-sad-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mood-sad-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/mouse.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/music-album.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/music-artist.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/music-notes.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/music-playlist.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/navigation-more.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/network.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/news-paper.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/notification.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/notifications-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/notifications.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/paste.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pause-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pause-solid.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pause.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pen-tool.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/phone.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/photo.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/php-elephant.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pin.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/play-outline.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/play.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/playlist.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/plugin.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/portfolio.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/printer.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/pylon.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/question.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/queue.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/radar copy 2.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/radar.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/radio.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/refresh.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/reload.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/reply-all.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/reply.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/repost.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/save-disk.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/screen-full.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/search.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/send.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/servers.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/share-01.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/share-alt.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/share.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/shield.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/shopping-cart.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/show-sidebar.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/shuffle.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/stand-by.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/star-full.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/station.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/step-backward.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/step-forward.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/stethoscope.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/store-front.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/stroke-width.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/subdirectory-left.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/subdirectory-right.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/swap.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/tablet.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/tag.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/target.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/text-box.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/text-decoration.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/thermometer.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/thumbs-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/thumbs-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/ticket.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/time.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/timer.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/tools copy.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/translate.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/trash.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-bus.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-car.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-case.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-taxi-cab.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-train.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel-walk.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/travel.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/trophy.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/tuning.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/upload.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/usb.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/user-add.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/user-group.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/user-solid-circle.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/user-solid-square.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/user.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/vector.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/video-camera.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-carousel.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-column.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-hide.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-list.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-show.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/view-tile.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/volume-down.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/volume-mute.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/volume-off.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/volume-up.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/wallet.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/watch.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/window-new.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/window-open.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/window.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/wrench.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/yin-yang.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/zoom-in.svg +0 -0
- data/app/{javascript → frontend}/editor/assets/zondicons/zoom-out.svg +0 -0
- data/app/{javascript → frontend}/editor/components/dynamic-form/dynamic-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/dynamic-form/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/errors/stale-record.vue +0 -0
- data/app/{javascript → frontend}/editor/components/header-nav/device-toggler.vue +0 -0
- data/app/{javascript → frontend}/editor/components/header-nav/index.vue +5 -5
- data/app/{javascript → frontend}/editor/components/header-nav/locale-toggler/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/header-nav/locale-toggler/locale-link.vue +0 -0
- data/app/{javascript → frontend}/editor/components/header-nav/preview-button.vue +1 -1
- data/app/{javascript → frontend}/editor/components/header-nav/preview-toggler.vue +0 -0
- data/app/{javascript → frontend}/editor/components/header-nav/publish-button.vue +2 -12
- data/app/{javascript → frontend}/editor/components/header-nav/save-button.vue +0 -9
- data/app/{javascript → frontend}/editor/components/header-nav/separator.vue +0 -0
- data/app/{javascript → frontend}/editor/components/icon-library/index.vue +0 -0
- data/app/{javascript → frontend}/editor/components/image-library/index.vue +2 -2
- data/app/{javascript → frontend}/editor/components/image-library/list-item.vue +0 -0
- data/app/{javascript → frontend}/editor/components/image-library/list.vue +1 -1
- data/app/{javascript → frontend}/editor/components/image-library/uploader.vue +1 -3
- data/app/{javascript → frontend}/editor/components/kit/accordion.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/checkbox-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/collection-item-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/color-picker.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/confirmation-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/dropdown.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/icon-input.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/icon.vue +4 -6
- data/app/{javascript → frontend}/editor/components/kit/image-input.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/index.js +23 -23
- data/app/{javascript → frontend}/editor/components/kit/link-input.vue +2 -2
- data/app/{javascript → frontend}/editor/components/kit/list-item-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/modal-root.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/modal.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/page-icon.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/pagination/button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/pagination/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/block-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/extensions/Doc.js +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/extensions/LineBreak.js +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/extensions/marks/Link.js +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/format-buttons.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/link-buttons.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/list-buttons.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/menu-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input/table-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/rich-text-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/search-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/select-input.vue +1 -1
- data/app/{javascript → frontend}/editor/components/kit/simple-select.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/submit-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/tabs.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/text-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/kit/textarea-input.vue +0 -0
- data/app/{javascript → frontend}/editor/components/link-picker/actions.vue +0 -0
- data/app/{javascript → frontend}/editor/components/link-picker/email.vue +0 -0
- data/app/{javascript → frontend}/editor/components/link-picker/index.vue +4 -4
- data/app/{javascript → frontend}/editor/components/link-picker/page.vue +0 -0
- data/app/{javascript → frontend}/editor/components/link-picker/url.vue +0 -0
- data/app/{javascript → frontend}/editor/components/page/edit.vue +2 -2
- data/app/{javascript → frontend}/editor/components/page/form/main.vue +0 -0
- data/app/{javascript → frontend}/editor/components/page/form/seo.vue +0 -0
- data/app/{javascript → frontend}/editor/components/page/list/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/page/list/list-item.vue +1 -1
- data/app/{javascript → frontend}/editor/components/page/new.vue +2 -2
- data/app/{javascript → frontend}/editor/components/section-block-pane/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/section-block-pane/setting-list.vue +1 -1
- data/app/{javascript → frontend}/editor/components/section-highlighter/bottom-actions.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-highlighter/index.vue +7 -16
- data/app/{javascript → frontend}/editor/components/section-highlighter/top-left-actions.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-highlighter/top-right-actions.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-list/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/section-list/list-item.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-pane/block-list/index.vue +2 -2
- data/app/{javascript → frontend}/editor/components/section-pane/block-list/list-item.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-pane/block-list/new-block-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-pane/block-tree/index.vue +2 -2
- data/app/{javascript → frontend}/editor/components/section-pane/block-tree/new-nested-block-button.vue +0 -0
- data/app/{javascript → frontend}/editor/components/section-pane/block-tree/tree-node.vue +2 -2
- data/app/{javascript → frontend}/editor/components/section-pane/index.vue +3 -3
- data/app/{javascript → frontend}/editor/components/section-pane/setting-list.vue +1 -1
- data/app/{javascript → frontend}/editor/components/sidebar-nav.vue +1 -1
- data/app/{javascript → frontend}/editor/components/style-pane/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/theme-section-list/index.vue +1 -1
- data/app/{javascript → frontend}/editor/components/theme-section-list/list-item.vue +0 -0
- data/app/{javascript → frontend}/editor/design/application.scss +0 -0
- data/app/{javascript → frontend}/editor/design/components/buttons.scss +0 -0
- data/app/{javascript → frontend}/editor/design/components/modal.scss +0 -0
- data/app/{javascript → frontend}/editor/design/components/rich-text-editor.scss +0 -0
- data/app/{javascript → frontend}/editor/design/components/tooltip.scss +0 -0
- data/app/{javascript → frontend}/editor/design/components/tree.scss +0 -0
- data/app/frontend/editor/design/helpers.scss +9 -0
- data/app/{javascript → frontend}/editor/design/transitions.scss +0 -0
- data/app/{javascript → frontend}/editor/layouts/app.vue +3 -3
- data/app/{javascript → frontend}/editor/layouts/default.vue +0 -0
- data/app/{javascript → frontend}/editor/layouts/slide-pane.vue +0 -0
- data/app/{javascript → frontend}/editor/locales/editor.en.json +0 -0
- data/app/{javascript → frontend}/editor/locales/editor.fr.json +0 -0
- data/app/{javascript → frontend}/editor/locales/index.js +1 -1
- data/app/{javascript → frontend}/editor/main.js +5 -3
- data/app/frontend/editor/misc/__tests__/utils.spec.js +8 -0
- data/app/{javascript/editor → frontend/editor/misc}/utils.js +0 -0
- data/app/{javascript → frontend}/editor/mixins/error-modal.js +1 -1
- data/app/{javascript → frontend}/editor/mixins/focused-input.js +0 -0
- data/app/{javascript → frontend}/editor/mixins/global.js +1 -2
- data/app/{javascript → frontend}/editor/mixins/grouped-dropdowns.js +0 -0
- data/app/{javascript → frontend}/editor/mixins/index.js +0 -0
- data/app/{javascript → frontend}/editor/mixins/preview-transformation.js +0 -0
- data/app/{javascript → frontend}/editor/plugins/event-bus.js +0 -0
- data/app/{javascript → frontend}/editor/plugins/filters.js +1 -1
- data/app/{javascript → frontend}/editor/plugins/i18n.js +0 -0
- data/app/{javascript → frontend}/editor/plugins/index.js +0 -0
- data/app/{javascript → frontend}/editor/plugins/tooltip.js +0 -0
- data/app/{javascript → frontend}/editor/router/index.js +1 -1
- data/app/{javascript → frontend}/editor/router/routes/base.js +4 -4
- data/app/{javascript → frontend}/editor/router/routes/index.js +0 -0
- data/app/{javascript → frontend}/editor/router/routes/page.js +3 -3
- data/app/{javascript → frontend}/editor/router/routes/section-block.js +2 -2
- data/app/{javascript → frontend}/editor/router/routes/section.js +4 -4
- data/app/{javascript → frontend}/editor/router/routes/style.js +2 -2
- data/app/{javascript → frontend}/editor/services/__tests__/page.spec.js +0 -0
- data/app/{javascript → frontend}/editor/services/__tests__/section.spec.js +0 -0
- data/app/{javascript → frontend}/editor/services/api.js +0 -0
- data/app/{javascript → frontend}/editor/services/block.js +0 -0
- data/app/{javascript → frontend}/editor/services/collection-item.js +0 -0
- data/app/{javascript → frontend}/editor/services/image.js +0 -1
- data/app/{javascript → frontend}/editor/services/index.js +2 -2
- data/app/frontend/editor/services/live-preview.js +121 -0
- data/app/{javascript → frontend}/editor/services/page.js +1 -1
- data/app/{javascript → frontend}/editor/services/section.js +1 -1
- data/app/{javascript → frontend}/editor/services/site.js +0 -0
- data/app/{javascript → frontend}/editor/services/theme.js +0 -0
- data/app/{javascript → frontend}/editor/spec/__mocks__/page.js +0 -0
- data/app/{javascript → frontend}/editor/spec/__mocks__/section.js +0 -0
- data/app/frontend/editor/spec/__mocks__/services.js +83 -0
- data/app/{javascript → frontend}/editor/spec/__mocks__/site.js +0 -0
- data/app/{javascript → frontend}/editor/spec/__mocks__/theme.js +0 -0
- data/app/{javascript → frontend}/editor/store/__tests__/getters.spec.js +6 -5
- data/app/{javascript → frontend}/editor/store/actions/__tests__/page.spec.js +16 -12
- data/app/{javascript → frontend}/editor/store/actions/__tests__/section-block.spec.js +14 -13
- data/app/{javascript → frontend}/editor/store/actions/__tests__/section.spec.js +5 -4
- data/app/{javascript → frontend}/editor/store/actions/index.js +5 -8
- data/app/{javascript → frontend}/editor/store/actions/page.js +2 -2
- data/app/{javascript → frontend}/editor/store/actions/section-block.js +12 -29
- data/app/{javascript → frontend}/editor/store/actions/section.js +11 -22
- data/app/{javascript → frontend}/editor/store/actions/site.js +2 -6
- data/app/{javascript → frontend}/editor/store/default-state.js +0 -1
- data/app/{javascript → frontend}/editor/store/getters.js +10 -0
- data/app/{javascript → frontend}/editor/store/index.js +0 -0
- data/app/{javascript → frontend}/editor/store/mutations.js +8 -4
- data/app/{javascript → frontend}/editor/views/content-pane.vue +3 -3
- data/app/{javascript → frontend}/editor/views/page-preview.vue +3 -14
- data/app/{javascript → frontend}/editor/views/pages/edit.vue +2 -2
- data/app/{javascript → frontend}/editor/views/pages/index.vue +3 -3
- data/app/{javascript → frontend}/editor/views/sections/add-pane.vue +2 -2
- data/app/{javascript → frontend}/editor/views/sections/list-pane.vue +2 -2
- data/app/{javascript → frontend}/editor/views/slide-pane.vue +1 -1
- data/app/{javascript → frontend}/editor/views/slide-pane2.vue +1 -1
- data/app/{javascript → frontend}/editor/views/style/edit-pane.vue +2 -2
- data/app/frontend/entrypoints/admin.js +3 -0
- data/app/{javascript/style/application.scss → frontend/entrypoints/admin.scss} +0 -0
- data/app/frontend/entrypoints/editor.js +8 -0
- data/app/frontend/entrypoints/live-preview-client.js +6 -0
- data/app/frontend/entrypoints/live-preview-rails-client.js +9 -0
- data/app/{assets/images/maglev → frontend/images}/favicon.png +0 -0
- data/app/{assets/images/maglev → frontend/images}/logo.png +0 -0
- data/app/frontend/live-preview-client/iframe-decorator.js +196 -0
- data/app/frontend/live-preview-client/index.js +12 -0
- data/app/frontend/live-preview-client/message.js +46 -0
- data/app/frontend/live-preview-client/rails.js +204 -0
- data/app/frontend/live-preview-client/utils.js +22 -0
- data/app/helpers/maglev/application_helper.rb +18 -4
- data/app/helpers/maglev/editor_helper.rb +12 -2
- data/app/models/maglev/asset.rb +1 -1
- data/app/views/layouts/maglev/admin/application.html.erb +5 -4
- data/app/views/maglev/editor/show.html.erb +3 -3
- data/app/views/maglev/settings/index.html.erb +11 -0
- data/bin/vite +29 -0
- data/config/routes.rb +10 -0
- data/config/vite.json +16 -0
- data/lib/generators/maglev/install_generator.rb +2 -1
- data/lib/generators/maglev/section_generator.rb +2 -1
- data/lib/generators/maglev/templates/install/config/initializers/maglev.rb +6 -0
- data/lib/generators/maglev/templates/section/app/theme/sections/%category%/%file_name%.yml.tt +2 -2
- data/lib/generators/maglev/templates/theme/app/views/theme/layout.html.erb.tt +2 -0
- data/lib/maglev/engine.rb +25 -20
- data/lib/maglev/theme_filesystem_loader.rb +9 -1
- data/lib/maglev/version.rb +1 -1
- data/lib/maglev.rb +0 -7
- data/lib/tasks/maglev_tasks.rake +66 -40
- data/package.json +19 -46
- data/postcss.config.js +4 -12
- data/tailwind.config.js +8 -11
- data/yarn.lock +1234 -9886
- metadata +547 -542
- data/app/javascript/editor/design/helpers.scss +0 -30
- data/app/javascript/editor/services/inline-editing.js +0 -403
- data/app/javascript/editor/spec/__mocks__/services.js +0 -77
- data/app/javascript/packs/application.js +0 -8
- data/app/javascript/packs/editor.js +0 -2
- data/app/javascript/style/application/_changes.scss +0 -1
- data/app/javascript/style/application/_variables.scss +0 -0
- data/bin/webpack +0 -18
- data/bin/webpack-dev-server +0 -18
- data/config/initializers/assets.rb +0 -24
- data/config/webpack/development.js +0 -5
- data/config/webpack/environment.js +0 -38
- data/config/webpack/loaders/optional_chaining.js +0 -10
- data/config/webpack/loaders/vue.js +0 -6
- data/config/webpack/production.js +0 -5
- data/config/webpack/test.js +0 -5
- data/config/webpacker.yml +0 -95
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isBlank } from '@/utils'
|
1
|
+
import { isBlank } from '@/misc/utils'
|
2
2
|
|
3
3
|
export default (services) => ({
|
4
4
|
fetchSection({ commit, state: { sections } }, id) {
|
@@ -13,54 +13,43 @@ export default (services) => ({
|
|
13
13
|
commit('SET_HOVERED_SECTION', null)
|
14
14
|
},
|
15
15
|
addSection(
|
16
|
-
{ commit, getters, state: { site
|
16
|
+
{ commit, getters, state: { site } },
|
17
17
|
{ sectionDefinition, insertAt },
|
18
18
|
) {
|
19
19
|
if (sectionDefinition.insertAt) insertAt = sectionDefinition.insertAt
|
20
20
|
const section = services.section.build(sectionDefinition, site)
|
21
21
|
commit('ADD_SECTION', { section, insertAt })
|
22
22
|
commit('TOUCH_SECTION', section.id)
|
23
|
-
services.
|
24
|
-
previewDocument,
|
25
|
-
getters.content,
|
26
|
-
section,
|
27
|
-
insertAt,
|
28
|
-
)
|
23
|
+
services.livePreview.addSection(getters.content, section, insertAt)
|
29
24
|
return section
|
30
25
|
},
|
31
|
-
removeSection({ commit
|
26
|
+
removeSection({ commit }, sectionId) {
|
32
27
|
commit('REMOVE_SECTION', sectionId)
|
33
|
-
services.
|
28
|
+
services.livePreview.removeSection(sectionId)
|
34
29
|
},
|
35
|
-
updateSectionContent(
|
36
|
-
{ commit, getters, state: { previewDocument, section } },
|
37
|
-
change,
|
38
|
-
) {
|
30
|
+
updateSectionContent({ commit, getters, state: { section } }, change) {
|
39
31
|
commit('UPDATE_SECTION_CONTENT', change)
|
40
32
|
commit('TOUCH_SECTION', section.id)
|
41
|
-
services.
|
42
|
-
previewDocument,
|
33
|
+
services.livePreview.updateSection(
|
43
34
|
getters.content,
|
44
|
-
|
45
|
-
null,
|
35
|
+
getters.denormalizedSection,
|
46
36
|
change,
|
47
37
|
)
|
48
38
|
},
|
49
39
|
moveSection(
|
50
40
|
{
|
51
41
|
commit,
|
42
|
+
getters,
|
52
43
|
state: {
|
53
|
-
previewDocument,
|
54
44
|
page: { sections },
|
55
45
|
},
|
56
46
|
},
|
57
47
|
{ from, to },
|
58
48
|
) {
|
59
|
-
// console.log('moveSection', from, sections[from], 'to', sections[to], to)
|
60
49
|
if (isBlank(from) || isBlank(to)) return
|
61
50
|
commit('MOVE_HOVERED_SECTION', { fromIndex: from, toIndex: to })
|
62
|
-
services.
|
63
|
-
|
51
|
+
services.livePreview.moveSection(
|
52
|
+
getters.content,
|
64
53
|
sections[from],
|
65
54
|
sections[to],
|
66
55
|
from < to ? 'down' : 'up',
|
@@ -21,12 +21,8 @@ export default (services) => ({
|
|
21
21
|
dispatch('loadPublishButtonState')
|
22
22
|
setInterval(() => dispatch('loadPublishButtonState'), 5000)
|
23
23
|
},
|
24
|
-
previewStyle({ commit, getters
|
24
|
+
previewStyle({ commit, getters }, newStyle) {
|
25
25
|
commit('SET_STYLE', newStyle)
|
26
|
-
services.
|
27
|
-
previewDocument,
|
28
|
-
getters.content,
|
29
|
-
newStyle,
|
30
|
-
)
|
26
|
+
services.livePreview.updateStyle(getters.content, newStyle)
|
31
27
|
},
|
32
28
|
})
|
@@ -18,6 +18,9 @@ export default (services) => ({
|
|
18
18
|
}
|
19
19
|
})
|
20
20
|
},
|
21
|
+
stickySectionList: ({}, { sectionList }) => {
|
22
|
+
return sectionList.filter((section) => section.viewportFixedPosition)
|
23
|
+
},
|
21
24
|
defaultPageAttributes: ({ page }) => {
|
22
25
|
if (page.translated) return {}
|
23
26
|
return { title: page.title, path: page.path }
|
@@ -41,6 +44,13 @@ export default (services) => ({
|
|
41
44
|
siteSections: hasModifiedSiteScopedSections ? siteSections : [],
|
42
45
|
}
|
43
46
|
},
|
47
|
+
denormalizedSection: ({ page, sections, sectionBlocks, section }) => {
|
48
|
+
const pageContent = services.page.denormalize(page, {
|
49
|
+
sections,
|
50
|
+
blocks: sectionBlocks,
|
51
|
+
})
|
52
|
+
return pageContent.sections.find((s) => s.id == section.id)
|
53
|
+
},
|
44
54
|
sectionContent: ({ section }) => {
|
45
55
|
return section ? [...section.settings] : null
|
46
56
|
},
|
File without changes
|
@@ -1,15 +1,19 @@
|
|
1
|
-
import { arraymove, pick, omitEmpty } from '@/utils'
|
1
|
+
import { arraymove, pick, omitEmpty } from '@/misc/utils'
|
2
2
|
import { SETTING_ATTRIBUTES as PAGE_SETTING_ATTRIBUTES } from '@/services/page'
|
3
3
|
|
4
4
|
export default (services) => ({
|
5
5
|
SET_DEVICE(state, value) {
|
6
6
|
state.device = value
|
7
7
|
},
|
8
|
-
|
8
|
+
MARK_PREVIEW_AS_READY(state) {
|
9
9
|
state.hoveredSection = null
|
10
10
|
state.section = null
|
11
|
-
state.previewReady =
|
12
|
-
|
11
|
+
state.previewReady = true
|
12
|
+
},
|
13
|
+
RESET_PREVIEW(state) {
|
14
|
+
state.hoveredSection = null
|
15
|
+
state.section = null
|
16
|
+
state.previewReady = false
|
13
17
|
},
|
14
18
|
SET_EDITOR_SETTINGS(state, editorSettings) {
|
15
19
|
state.editorSettings = editorSettings
|
@@ -34,9 +34,9 @@
|
|
34
34
|
</template>
|
35
35
|
|
36
36
|
<script>
|
37
|
-
import Layout from '@/layouts/slide-pane'
|
38
|
-
import SectionPane from '@/components/section-pane'
|
39
|
-
import SectionBlockPane from '@/components/section-block-pane'
|
37
|
+
import Layout from '@/layouts/slide-pane.vue'
|
38
|
+
import SectionPane from '@/components/section-pane/index.vue'
|
39
|
+
import SectionBlockPane from '@/components/section-block-pane/index.vue'
|
40
40
|
|
41
41
|
export default {
|
42
42
|
name: 'ContentPane',
|
@@ -74,9 +74,9 @@
|
|
74
74
|
</template>
|
75
75
|
|
76
76
|
<script>
|
77
|
-
import { mapState
|
77
|
+
import { mapState } from 'vuex'
|
78
78
|
import TransformationMixin from '@/mixins/preview-transformation'
|
79
|
-
import SectionHighlighter from '@/components/section-highlighter'
|
79
|
+
import SectionHighlighter from '@/components/section-highlighter/index.vue'
|
80
80
|
|
81
81
|
export default {
|
82
82
|
name: 'PagePreview',
|
@@ -132,19 +132,8 @@ export default {
|
|
132
132
|
},
|
133
133
|
},
|
134
134
|
methods: {
|
135
|
-
...mapActions(['setPreviewDocument']),
|
136
135
|
onIframeLoaded() {
|
137
|
-
|
138
|
-
this.$refs['iframe'].contentWindow.document.location.href,
|
139
|
-
)
|
140
|
-
|
141
|
-
if (this.currentPage.previewUrl !== newUrl.pathname) {
|
142
|
-
this.setPreviewDocument(null)
|
143
|
-
this.$refs['iframe'].src = this.currentPage.previewUrl
|
144
|
-
return false
|
145
|
-
}
|
146
|
-
|
147
|
-
this.setPreviewDocument(this.$refs['iframe'].contentDocument)
|
136
|
+
this.services.livePreview.start(this.$refs['iframe'])
|
148
137
|
},
|
149
138
|
},
|
150
139
|
watch: {
|
@@ -11,8 +11,8 @@
|
|
11
11
|
</template>
|
12
12
|
|
13
13
|
<script>
|
14
|
-
import Layout from '@/layouts/slide-pane'
|
15
|
-
import EditPage from '@/components/page/edit'
|
14
|
+
import Layout from '@/layouts/slide-pane.vue'
|
15
|
+
import EditPage from '@/components/page/edit.vue'
|
16
16
|
|
17
17
|
export default {
|
18
18
|
name: 'EditPageView',
|
@@ -28,9 +28,9 @@
|
|
28
28
|
</template>
|
29
29
|
|
30
30
|
<script>
|
31
|
-
import Layout from '@/layouts/slide-pane'
|
32
|
-
import PageList from '@/components/page/list'
|
33
|
-
import NewPageModal from '@/components/page/new'
|
31
|
+
import Layout from '@/layouts/slide-pane.vue'
|
32
|
+
import PageList from '@/components/page/list/index.vue'
|
33
|
+
import NewPageModal from '@/components/page/new.vue'
|
34
34
|
|
35
35
|
export default {
|
36
36
|
name: 'PageListView',
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</template>
|
11
11
|
|
12
12
|
<script>
|
13
|
-
import Layout from '@/layouts/slide-pane'
|
14
|
-
import ThemeSectionList from '@/components/theme-section-list'
|
13
|
+
import Layout from '@/layouts/slide-pane.vue'
|
14
|
+
import ThemeSectionList from '@/components/theme-section-list/index.vue'
|
15
15
|
|
16
16
|
export default {
|
17
17
|
name: 'SectionListPane',
|
@@ -10,8 +10,8 @@
|
|
10
10
|
</template>
|
11
11
|
|
12
12
|
<script>
|
13
|
-
import Layout from '@/layouts/slide-pane'
|
14
|
-
import SectionList from '@/components/section-list'
|
13
|
+
import Layout from '@/layouts/slide-pane.vue'
|
14
|
+
import SectionList from '@/components/section-list/index.vue'
|
15
15
|
|
16
16
|
export default {
|
17
17
|
name: 'SectionListPane',
|
@@ -12,8 +12,8 @@
|
|
12
12
|
</template>
|
13
13
|
|
14
14
|
<script>
|
15
|
-
import Layout from '@/layouts/slide-pane'
|
16
|
-
import StylePane from '@/components/style-pane'
|
15
|
+
import Layout from '@/layouts/slide-pane.vue'
|
16
|
+
import StylePane from '@/components/style-pane/index.vue'
|
17
17
|
|
18
18
|
export default {
|
19
19
|
name: 'SectionListPane',
|
File without changes
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import Client from '~/live-preview-client/index'
|
2
|
+
import RailsClient from '~/live-preview-client/rails'
|
3
|
+
|
4
|
+
document.addEventListener('DOMContentLoaded', () => {
|
5
|
+
console.log('[Rails] Maglev Live Preview 🚀')
|
6
|
+
if (Client.start()) {
|
7
|
+
RailsClient.start()
|
8
|
+
}
|
9
|
+
})
|
File without changes
|
File without changes
|
@@ -0,0 +1,196 @@
|
|
1
|
+
import { postMessage } from './message'
|
2
|
+
import { debounce, isBlank } from './utils'
|
3
|
+
|
4
|
+
// keep track of the current hovered section
|
5
|
+
let listeners = []
|
6
|
+
let hoveredSectionId = null
|
7
|
+
|
8
|
+
export const start = (config) => {
|
9
|
+
const previewDocument = window.document
|
10
|
+
|
11
|
+
// set the primary color
|
12
|
+
previewDocument.head.insertAdjacentHTML(
|
13
|
+
'beforeend',
|
14
|
+
`<style type="text/css">:root { --maglev-editor-outline-color: ${config.primaryColor}; }</style>`,
|
15
|
+
)
|
16
|
+
|
17
|
+
// mousescroll
|
18
|
+
listenScrolling(previewDocument)
|
19
|
+
|
20
|
+
// mouseenter
|
21
|
+
listen(previewDocument, 'mouseenter', (el, type) => {
|
22
|
+
switch (type) {
|
23
|
+
case 'section':
|
24
|
+
return onSectionHovered(previewDocument, el, config.stickySectionIds)
|
25
|
+
case 'setting':
|
26
|
+
return onSettingHovered(el)
|
27
|
+
default:
|
28
|
+
break
|
29
|
+
}
|
30
|
+
})
|
31
|
+
|
32
|
+
// mouseleave
|
33
|
+
listen(previewDocument, 'mouseleave', (el, type) => {
|
34
|
+
switch (type) {
|
35
|
+
case 'section':
|
36
|
+
return onSectionLeft(el)
|
37
|
+
case 'setting':
|
38
|
+
return onSettingLeft(el)
|
39
|
+
default:
|
40
|
+
break
|
41
|
+
}
|
42
|
+
})
|
43
|
+
|
44
|
+
// click
|
45
|
+
listen(previewDocument, 'click', (el, type, event) => {
|
46
|
+
switch (type) {
|
47
|
+
case 'setting':
|
48
|
+
return onSettingClicked(el, event)
|
49
|
+
default:
|
50
|
+
break
|
51
|
+
}
|
52
|
+
})
|
53
|
+
|
54
|
+
// click on links
|
55
|
+
disableLinks(previewDocument)
|
56
|
+
}
|
57
|
+
|
58
|
+
const listen = (previewDocument, eventType, handler) => {
|
59
|
+
const capture = eventType === 'mouseenter' || eventType === 'mouseleave'
|
60
|
+
addEventListener(
|
61
|
+
previewDocument.body,
|
62
|
+
eventType,
|
63
|
+
(event) => {
|
64
|
+
if (event.target === previewDocument) return
|
65
|
+
|
66
|
+
let sectionElement = event.target.closest('[data-maglev-section-id]')
|
67
|
+
let settingElement = event.target.closest('[data-maglev-id]')
|
68
|
+
let el = settingElement || sectionElement
|
69
|
+
|
70
|
+
// not related to maglev element, no need to continue
|
71
|
+
if (!el) return
|
72
|
+
|
73
|
+
if (eventType === 'mouseleave') {
|
74
|
+
if (settingElement) {
|
75
|
+
if (settingElement != event.target) return
|
76
|
+
} else {
|
77
|
+
if (sectionElement != event.target) return
|
78
|
+
// special case: hovering the section-highlighter component from the parent document
|
79
|
+
const rect = sectionElement.getBoundingClientRect()
|
80
|
+
const scrollX = previewDocument.defaultView.scrollX
|
81
|
+
const scrollY = previewDocument.defaultView.scrollY
|
82
|
+
if (
|
83
|
+
event.pageX > rect.left + scrollX &&
|
84
|
+
event.pageX < rect.right + scrollX &&
|
85
|
+
event.pageY > rect.top + scrollY &&
|
86
|
+
event.pageY < rect.bottom + scrollY
|
87
|
+
)
|
88
|
+
return
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
handler(el, getElementType(el), event)
|
93
|
+
},
|
94
|
+
capture,
|
95
|
+
)
|
96
|
+
}
|
97
|
+
|
98
|
+
const listenScrolling = (previewDocument) => {
|
99
|
+
let mouseX = 0
|
100
|
+
let mouseY = 0
|
101
|
+
|
102
|
+
addEventListener(previewDocument, 'mousemove', (e) => {
|
103
|
+
mouseX = e.clientX
|
104
|
+
mouseY = e.clientY
|
105
|
+
})
|
106
|
+
|
107
|
+
const debouncedScrollNotifier = debounce(() => {
|
108
|
+
const el = previewDocument
|
109
|
+
.elementFromPoint(mouseX, mouseY)
|
110
|
+
?.closest('[data-maglev-section-id]')
|
111
|
+
|
112
|
+
if (el) postMessage('scroll', { boundingRect: el.getBoundingClientRect() })
|
113
|
+
}, 10)
|
114
|
+
|
115
|
+
addEventListener(previewDocument, 'scroll', debouncedScrollNotifier)
|
116
|
+
}
|
117
|
+
|
118
|
+
const onSectionHovered = (previewDocument, el, stickySectionIds) => {
|
119
|
+
const sectionId = el.dataset.maglevSectionId
|
120
|
+
if (hoveredSectionId !== sectionId) {
|
121
|
+
postMessage('section:hover', {
|
122
|
+
sectionId,
|
123
|
+
sectionRect: el.getBoundingClientRect(),
|
124
|
+
sectionOffsetTop: getMinTop(previewDocument, sectionId, stickySectionIds),
|
125
|
+
})
|
126
|
+
hoveredSectionId = sectionId
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
const getMinTop = (previewDocument, currentSectionId, stickySectionIds) => {
|
131
|
+
for (var i = 0; i < stickySectionIds.length; i++) {
|
132
|
+
const sectionId = stickySectionIds[i]
|
133
|
+
if (sectionId === currentSectionId) return 0 // hovering a sticky section!
|
134
|
+
|
135
|
+
const selector = `[data-maglev-section-id='${sectionId}']`
|
136
|
+
const stickyElement = previewDocument.querySelector(selector)
|
137
|
+
|
138
|
+
if (stickyElement) return stickyElement.offsetHeight // found sticky element found
|
139
|
+
}
|
140
|
+
return 0
|
141
|
+
}
|
142
|
+
|
143
|
+
const onSectionLeft = () => {
|
144
|
+
postMessage('section:leave')
|
145
|
+
hoveredSectionId = null
|
146
|
+
}
|
147
|
+
|
148
|
+
const onSettingHovered = (el) => {
|
149
|
+
if (!el) return null
|
150
|
+
el.style.outline = '2px solid transparent'
|
151
|
+
el.style.outlineOffset = '2px'
|
152
|
+
el.style.boxShadow = '0 0 0 2px var(--maglev-editor-outline-color)'
|
153
|
+
if (
|
154
|
+
!el.style.borderRadius &&
|
155
|
+
window.getComputedStyle(el).borderRadius === '0px'
|
156
|
+
)
|
157
|
+
el.style.borderRadius = '2px'
|
158
|
+
}
|
159
|
+
|
160
|
+
const onSettingLeft = (el) => {
|
161
|
+
el.style.boxShadow = 'none'
|
162
|
+
}
|
163
|
+
|
164
|
+
const onSettingClicked = (el, event) => {
|
165
|
+
event.stopPropagation() & event.preventDefault()
|
166
|
+
|
167
|
+
const fragments = el.dataset.maglevId.split('.')
|
168
|
+
|
169
|
+
// is it a section or a block setting?
|
170
|
+
const isSectionBlock = !!el.closest('[data-maglev-block-id]')
|
171
|
+
const prefix = isSectionBlock ? 'sectionBlock' : 'section'
|
172
|
+
|
173
|
+
postMessage(`${prefix}:setting:clicked`, {
|
174
|
+
[`${prefix}Id`]: fragments[0],
|
175
|
+
settingId: fragments[1],
|
176
|
+
})
|
177
|
+
}
|
178
|
+
|
179
|
+
const addEventListener = (target, type, listener, capture) => {
|
180
|
+
listeners.push({ target, type, listener })
|
181
|
+
target.addEventListener(type, listener, capture)
|
182
|
+
}
|
183
|
+
|
184
|
+
const disableLinks = (previewDocument) => {
|
185
|
+
addEventListener(previewDocument.body, 'click', (event) => {
|
186
|
+
const link = event.target.closest('a')
|
187
|
+
if (link && !isBlank(link.href)) {
|
188
|
+
event.stopPropagation() & event.preventDefault()
|
189
|
+
return false
|
190
|
+
}
|
191
|
+
})
|
192
|
+
}
|
193
|
+
|
194
|
+
const getElementType = (el) => {
|
195
|
+
return el.dataset.maglevSectionId ? 'section' : 'setting'
|
196
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { start as decorateIframe } from './iframe-decorator'
|
2
|
+
|
3
|
+
const mainWindow = window.parent
|
4
|
+
|
5
|
+
export const listenMessages = () => {
|
6
|
+
window.addEventListener('message', ({ data: { type, ...data } }) => {
|
7
|
+
// a message MUST have a type
|
8
|
+
if (!type) return
|
9
|
+
|
10
|
+
switch (type) {
|
11
|
+
case 'config':
|
12
|
+
decorateIframe({
|
13
|
+
primaryColor: data.primaryColor,
|
14
|
+
stickySectionIds: data.stickySectionIds,
|
15
|
+
})
|
16
|
+
|
17
|
+
// we answer back we're ready!
|
18
|
+
postMessage('ready', { message: "👋, I'm a Maglev site and I'm ready" })
|
19
|
+
break
|
20
|
+
case 'section:add':
|
21
|
+
case 'section:move':
|
22
|
+
case 'section:update':
|
23
|
+
case 'section:remove':
|
24
|
+
case 'block:add':
|
25
|
+
case 'block:move':
|
26
|
+
case 'block:update':
|
27
|
+
case 'block:remove':
|
28
|
+
case 'style:update':
|
29
|
+
triggerEvent(type, data)
|
30
|
+
break
|
31
|
+
default:
|
32
|
+
console.log('[maglev][iframe] unknown message type', type)
|
33
|
+
break
|
34
|
+
}
|
35
|
+
})
|
36
|
+
}
|
37
|
+
|
38
|
+
export const postMessage = (type, data) => {
|
39
|
+
mainWindow.postMessage({ type, ...(data || {}) }, '*')
|
40
|
+
}
|
41
|
+
|
42
|
+
// local event
|
43
|
+
const triggerEvent = (type, data) => {
|
44
|
+
const event = new CustomEvent(`maglev:${type}`, { detail: data })
|
45
|
+
window.dispatchEvent(event)
|
46
|
+
}
|