maglevcms 1.0.0 → 1.1.0
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 +1 -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 +16 -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,30 +0,0 @@
|
|
1
|
-
.bg-editor-primary,
|
2
|
-
.hover\:bg-editor-primary:hover {
|
3
|
-
background-color: rgba(
|
4
|
-
var(--editor-color-primary-non-hex),
|
5
|
-
var(--tw-bg-opacity)
|
6
|
-
);
|
7
|
-
}
|
8
|
-
|
9
|
-
.text-editor-primary,
|
10
|
-
.hover\:text-editor-primary:hover {
|
11
|
-
color: rgba(var(--editor-color-primary-non-hex), var(--tw-text-opacity));
|
12
|
-
}
|
13
|
-
|
14
|
-
.border-editor-primary,
|
15
|
-
.hover\:border-editor-primary:hover {
|
16
|
-
border-color: rgba(
|
17
|
-
var(--editor-color-primary-non-hex),
|
18
|
-
var(--tw-border-opacity)
|
19
|
-
);
|
20
|
-
}
|
21
|
-
|
22
|
-
.capitalize-first::first-letter {
|
23
|
-
text-transform: uppercase;
|
24
|
-
}
|
25
|
-
|
26
|
-
.bg-checkerboard {
|
27
|
-
background-image: linear-gradient(45deg, #F2F2F2 25%, transparent 25%), linear-gradient(-45deg, #F2F2F2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F2F2F2 75%), linear-gradient(-45deg, transparent 75%, #F2F2F2 75%);
|
28
|
-
background-size: 20px 20px;
|
29
|
-
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
|
30
|
-
}
|
@@ -1,403 +0,0 @@
|
|
1
|
-
import * as axios from 'axios'
|
2
|
-
import router from '@/router'
|
3
|
-
import store from '@/store'
|
4
|
-
import { debounce, isBlank } from '@/utils'
|
5
|
-
|
6
|
-
let listeners = []
|
7
|
-
let hoveredSectionId = null
|
8
|
-
|
9
|
-
const addEventListener = (target, type, listener, capture) => {
|
10
|
-
listeners.push({ target, type, listener })
|
11
|
-
target.addEventListener(type, listener, capture)
|
12
|
-
}
|
13
|
-
|
14
|
-
// const removeEventListeners = () => {
|
15
|
-
// listeners.forEach(({ target, type, listener }) => {
|
16
|
-
// target.removeEventListener(type, listener)
|
17
|
-
// })
|
18
|
-
// }
|
19
|
-
|
20
|
-
const getElementType = (el) => {
|
21
|
-
return el.dataset.maglevSectionId ? 'section' : 'setting'
|
22
|
-
}
|
23
|
-
|
24
|
-
const disableLinks = (previewDocument) => {
|
25
|
-
addEventListener(previewDocument.body, 'click', (event) => {
|
26
|
-
const link = event.target.closest('a')
|
27
|
-
if (link && !isBlank(link.href)) {
|
28
|
-
event.stopPropagation() & event.preventDefault()
|
29
|
-
return false
|
30
|
-
}
|
31
|
-
})
|
32
|
-
}
|
33
|
-
|
34
|
-
const listen = (previewDocument, eventType, handler) => {
|
35
|
-
const capture = eventType === 'mouseenter' || eventType === 'mouseleave'
|
36
|
-
addEventListener(
|
37
|
-
previewDocument.body,
|
38
|
-
eventType,
|
39
|
-
(event) => {
|
40
|
-
if (event.target === previewDocument) return
|
41
|
-
|
42
|
-
let sectionElement = event.target.closest('[data-maglev-section-id]')
|
43
|
-
let settingElement = event.target.closest('[data-maglev-id]')
|
44
|
-
let el = settingElement || sectionElement
|
45
|
-
|
46
|
-
// not related to maglev element, no need to continue
|
47
|
-
if (!el) return
|
48
|
-
|
49
|
-
if (eventType === 'mouseleave') {
|
50
|
-
if (settingElement) {
|
51
|
-
if (settingElement != event.target) return
|
52
|
-
} else {
|
53
|
-
if (sectionElement != event.target) return
|
54
|
-
// special case: hovering the section-highlighter component from the parent document
|
55
|
-
const rect = sectionElement.getBoundingClientRect()
|
56
|
-
const scrollX = previewDocument.defaultView.scrollX
|
57
|
-
const scrollY = previewDocument.defaultView.scrollY
|
58
|
-
if (
|
59
|
-
event.pageX > rect.left + scrollX &&
|
60
|
-
event.pageX < rect.right + scrollX &&
|
61
|
-
event.pageY > rect.top + scrollY &&
|
62
|
-
event.pageY < rect.bottom + scrollY
|
63
|
-
)
|
64
|
-
return
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
handler(el, getElementType(el), event)
|
69
|
-
},
|
70
|
-
capture,
|
71
|
-
)
|
72
|
-
}
|
73
|
-
|
74
|
-
const listenScrolling = (previewDocument) => {
|
75
|
-
let mouseX = 0
|
76
|
-
let mouseY = 0
|
77
|
-
|
78
|
-
addEventListener(previewDocument, 'mousemove', (e) => {
|
79
|
-
mouseX = e.clientX
|
80
|
-
mouseY = e.clientY
|
81
|
-
})
|
82
|
-
|
83
|
-
addEventListener(previewDocument, 'scroll', () => {
|
84
|
-
const el = previewDocument
|
85
|
-
.elementFromPoint(mouseX, mouseY)
|
86
|
-
.closest('[data-maglev-section-id]')
|
87
|
-
|
88
|
-
if (!previewDocument.ticking && el) {
|
89
|
-
previewDocument.ticking = true
|
90
|
-
const event = new CustomEvent('maglev:preview:scroll', {
|
91
|
-
detail: { boundingRect: el.getBoundingClientRect() },
|
92
|
-
})
|
93
|
-
window.dispatchEvent(event)
|
94
|
-
}
|
95
|
-
})
|
96
|
-
}
|
97
|
-
|
98
|
-
const onSectionHovered = (el) => {
|
99
|
-
// console.log('onSectionHovered', el.dataset.maglevSectionId)
|
100
|
-
const sectionId = el.dataset.maglevSectionId
|
101
|
-
if (hoveredSectionId !== sectionId) {
|
102
|
-
store.dispatch('hoverSection', { el, sectionId })
|
103
|
-
hoveredSectionId = sectionId
|
104
|
-
}
|
105
|
-
}
|
106
|
-
|
107
|
-
const onSectionLeft = () => {
|
108
|
-
// console.log('onSectionLeft')
|
109
|
-
store.dispatch('leaveSection')
|
110
|
-
hoveredSectionId = null
|
111
|
-
}
|
112
|
-
|
113
|
-
const onSettingHovered = (el) => {
|
114
|
-
if (!el) return null
|
115
|
-
el.style.outline = '2px solid transparent'
|
116
|
-
el.style.outlineOffset = '2px'
|
117
|
-
el.style.boxShadow = '0 0 0 2px var(--maglev-editor-outline-color)'
|
118
|
-
if (
|
119
|
-
!el.style.borderRadius &&
|
120
|
-
window.getComputedStyle(el).borderRadius === '0px'
|
121
|
-
)
|
122
|
-
el.style.borderRadius = '2px'
|
123
|
-
}
|
124
|
-
|
125
|
-
const onSettingLeft = (el) => {
|
126
|
-
el.style.boxShadow = 'none'
|
127
|
-
}
|
128
|
-
|
129
|
-
const onSettingClicked = (el, event) => {
|
130
|
-
const fragments = el.dataset.maglevId.split('.')
|
131
|
-
// console.log('select', el.dataset.maglevId, fragments, router)
|
132
|
-
|
133
|
-
event.stopPropagation() & event.preventDefault()
|
134
|
-
|
135
|
-
let route = { params: { settingId: fragments[1] }, hash: '#content' }
|
136
|
-
|
137
|
-
// is it a section or a block setting?
|
138
|
-
const isSectionBlock = !!el.closest('[data-maglev-block-id]')
|
139
|
-
|
140
|
-
// console.log(isSectionBlock, el.closest('[data-maglev-block-id]'))
|
141
|
-
|
142
|
-
if (isSectionBlock) {
|
143
|
-
route.name = 'editSectionBlockSetting'
|
144
|
-
route.params.sectionBlockId = fragments[0]
|
145
|
-
} else {
|
146
|
-
route.name = 'editSectionSetting'
|
147
|
-
route.params.sectionId = fragments[0]
|
148
|
-
}
|
149
|
-
|
150
|
-
router.push(route).catch((err) => {
|
151
|
-
if (err.name !== 'NavigationDuplicated') throw err
|
152
|
-
})
|
153
|
-
}
|
154
|
-
|
155
|
-
const setupEvents = (previewDocument) => {
|
156
|
-
// mousescroll
|
157
|
-
listenScrolling(previewDocument)
|
158
|
-
|
159
|
-
// mouseenter
|
160
|
-
listen(previewDocument, 'mouseenter', (el, type) => {
|
161
|
-
switch (type) {
|
162
|
-
case 'section':
|
163
|
-
return onSectionHovered(el)
|
164
|
-
case 'setting':
|
165
|
-
return onSettingHovered(el)
|
166
|
-
default:
|
167
|
-
break
|
168
|
-
}
|
169
|
-
})
|
170
|
-
|
171
|
-
// mouseleave
|
172
|
-
listen(previewDocument, 'mouseleave', (el, type) => {
|
173
|
-
switch (type) {
|
174
|
-
case 'section':
|
175
|
-
return onSectionLeft(el)
|
176
|
-
case 'setting':
|
177
|
-
return onSettingLeft(el)
|
178
|
-
default:
|
179
|
-
break
|
180
|
-
}
|
181
|
-
})
|
182
|
-
|
183
|
-
// click
|
184
|
-
listen(previewDocument, 'click', (el, type, event) => {
|
185
|
-
switch (type) {
|
186
|
-
case 'setting':
|
187
|
-
return onSettingClicked(el, event)
|
188
|
-
default:
|
189
|
-
break
|
190
|
-
}
|
191
|
-
})
|
192
|
-
|
193
|
-
// click on links
|
194
|
-
disableLinks(previewDocument)
|
195
|
-
}
|
196
|
-
|
197
|
-
export const setup = (previewDocument) => {
|
198
|
-
previewDocument.head.insertAdjacentHTML(
|
199
|
-
'beforeend',
|
200
|
-
`<style type="text/css">:root { --maglev-editor-outline-color: ${store.state.editorSettings.primaryColor}; }</style>`,
|
201
|
-
)
|
202
|
-
setupEvents(previewDocument)
|
203
|
-
}
|
204
|
-
|
205
|
-
export const getMinTop = (previewDocument, hoveredSection, sections) => {
|
206
|
-
if (!hoveredSection) return null
|
207
|
-
const sectionId = sections.find(
|
208
|
-
(section) => section.viewportFixedPosition,
|
209
|
-
)?.id
|
210
|
-
if (!sectionId || hoveredSection.sectionId === sectionId) return null
|
211
|
-
const selector = `[data-maglev-section-id='${sectionId}']`
|
212
|
-
const element = previewDocument.querySelector(selector)
|
213
|
-
if (!element) return null
|
214
|
-
return element.offsetHeight
|
215
|
-
}
|
216
|
-
|
217
|
-
const insertSectionInDOM = (previewDocument, element, insertAt) => {
|
218
|
-
switch (insertAt) {
|
219
|
-
case 'top': {
|
220
|
-
const parentNode = previewDocument.querySelector('[data-maglev-dropzone]')
|
221
|
-
parentNode.prepend(element)
|
222
|
-
break
|
223
|
-
}
|
224
|
-
case 'bottom':
|
225
|
-
case undefined:
|
226
|
-
case null:
|
227
|
-
case '': {
|
228
|
-
const parentNode = previewDocument.querySelector('[data-maglev-dropzone]')
|
229
|
-
parentNode.appendChild(element)
|
230
|
-
break
|
231
|
-
}
|
232
|
-
default: {
|
233
|
-
const selector = `[data-maglev-section-id='${insertAt}']`
|
234
|
-
const pivotElement = previewDocument.querySelector(selector)
|
235
|
-
pivotElement.parentNode.insertBefore(element, pivotElement.nextSibling)
|
236
|
-
}
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
const updatePreviewDocument = (previewDocument, content, section, insertAt) => {
|
241
|
-
console.log('refreshPreviewDocument', content)
|
242
|
-
|
243
|
-
const attributes = {
|
244
|
-
pageSections: JSON.stringify([
|
245
|
-
content.pageSections.find((s) => s.id == section.id), // no need to render the other sections
|
246
|
-
]),
|
247
|
-
}
|
248
|
-
|
249
|
-
axios.post(previewDocument.location.href, attributes).then(({ data }) => {
|
250
|
-
let parser = new DOMParser()
|
251
|
-
const doc = parser.parseFromString(data, 'text/html')
|
252
|
-
|
253
|
-
// NOTE: Instructions to refresh the whole document
|
254
|
-
// removeEventListeners()
|
255
|
-
// previewDocument.querySelector('body').replaceWith(doc.querySelector('body'))
|
256
|
-
// setupEvents(previewDocument)
|
257
|
-
|
258
|
-
const selector = `[data-maglev-section-id='${section.id}']`
|
259
|
-
const sourceElement = doc.querySelector(selector)
|
260
|
-
let targetElement = previewDocument.querySelector(selector)
|
261
|
-
|
262
|
-
if (!sourceElement)
|
263
|
-
throw new Error(
|
264
|
-
`Maglev section ${section.id} not generated by the server`,
|
265
|
-
)
|
266
|
-
|
267
|
-
if (targetElement) {
|
268
|
-
targetElement.replaceWith(sourceElement)
|
269
|
-
} else {
|
270
|
-
insertSectionInDOM(previewDocument, sourceElement, insertAt)
|
271
|
-
targetElement = previewDocument.querySelector(selector)
|
272
|
-
}
|
273
|
-
targetElement.scrollIntoView(true)
|
274
|
-
})
|
275
|
-
}
|
276
|
-
|
277
|
-
const debouncedUpdatePreviewDocument = debounce(updatePreviewDocument, 300)
|
278
|
-
|
279
|
-
const updateSectionTextSetting = (previewDocument, section, change) => {
|
280
|
-
const selector = `[data-maglev-id='${section.id}.${change.settingId}']`
|
281
|
-
const settings = previewDocument.querySelectorAll(selector)
|
282
|
-
|
283
|
-
console.log(
|
284
|
-
'updateSectionTextSetting',
|
285
|
-
settings,
|
286
|
-
settings.length,
|
287
|
-
`${section.id}.${change.settingId}`,
|
288
|
-
)
|
289
|
-
|
290
|
-
settings.forEach(($el) => {
|
291
|
-
$el.innerHTML = change.value
|
292
|
-
})
|
293
|
-
|
294
|
-
return settings.length > 0
|
295
|
-
}
|
296
|
-
|
297
|
-
export const updateSectionSetting = (
|
298
|
-
previewDocument,
|
299
|
-
content,
|
300
|
-
section,
|
301
|
-
sectionBlock,
|
302
|
-
change,
|
303
|
-
) => {
|
304
|
-
console.log('updateSectionSetting', change)
|
305
|
-
|
306
|
-
if (!change) {
|
307
|
-
debouncedUpdatePreviewDocument(previewDocument, content, section)
|
308
|
-
return
|
309
|
-
}
|
310
|
-
|
311
|
-
let source = sectionBlock || section
|
312
|
-
let foundSetting = false
|
313
|
-
switch (change.settingType) {
|
314
|
-
case 'text':
|
315
|
-
foundSetting = updateSectionTextSetting(previewDocument, source, change)
|
316
|
-
break
|
317
|
-
case 'link':
|
318
|
-
if (change.settingOptions.withText && change.value)
|
319
|
-
foundSetting = updateSectionTextSetting(previewDocument, source, {
|
320
|
-
...change,
|
321
|
-
value: change.value.text,
|
322
|
-
settingId: `${change.settingId}.text`,
|
323
|
-
})
|
324
|
-
break
|
325
|
-
case 'image':
|
326
|
-
case 'checkbox':
|
327
|
-
case 'color':
|
328
|
-
case 'select':
|
329
|
-
foundSetting = false
|
330
|
-
break
|
331
|
-
default:
|
332
|
-
console.log(
|
333
|
-
'inlineEditing.updateSectionSetting',
|
334
|
-
'unknown type',
|
335
|
-
change.settingType,
|
336
|
-
)
|
337
|
-
break
|
338
|
-
}
|
339
|
-
|
340
|
-
if (!foundSetting)
|
341
|
-
debouncedUpdatePreviewDocument(previewDocument, content, section)
|
342
|
-
}
|
343
|
-
|
344
|
-
export const addSection = (previewDocument, content, section, insertAt) => {
|
345
|
-
debouncedUpdatePreviewDocument(previewDocument, content, section, insertAt)
|
346
|
-
}
|
347
|
-
|
348
|
-
export const removeSection = (previewDocument, sectionId) => {
|
349
|
-
const selector = `[data-maglev-section-id='${sectionId}']`
|
350
|
-
let element = previewDocument.querySelector(selector)
|
351
|
-
element.remove()
|
352
|
-
}
|
353
|
-
|
354
|
-
export const updateMoveSection = (
|
355
|
-
previewDocument,
|
356
|
-
sectionId,
|
357
|
-
targetSectionId,
|
358
|
-
direction,
|
359
|
-
) => {
|
360
|
-
console.log('updateMoveSection', sectionId, targetSectionId, direction)
|
361
|
-
|
362
|
-
const sectionElement = previewDocument.querySelector(
|
363
|
-
`[data-maglev-section-id='${sectionId}']`,
|
364
|
-
)
|
365
|
-
const targetSectionElement = previewDocument.querySelector(
|
366
|
-
`[data-maglev-section-id='${targetSectionId}']`,
|
367
|
-
)
|
368
|
-
|
369
|
-
if (direction === 'up')
|
370
|
-
targetSectionElement.parentNode.insertBefore(
|
371
|
-
sectionElement,
|
372
|
-
targetSectionElement,
|
373
|
-
)
|
374
|
-
else
|
375
|
-
targetSectionElement.parentNode.insertBefore(
|
376
|
-
sectionElement,
|
377
|
-
targetSectionElement.nextSibling,
|
378
|
-
)
|
379
|
-
|
380
|
-
// scroll to the new placement of the section
|
381
|
-
sectionElement.scrollIntoView(true)
|
382
|
-
}
|
383
|
-
|
384
|
-
export const previewStyle = (previewDocument, content, style) => {
|
385
|
-
const attributes = {
|
386
|
-
pageSections: JSON.stringify(content.pageSections),
|
387
|
-
style: JSON.stringify(style),
|
388
|
-
}
|
389
|
-
|
390
|
-
axios.post(previewDocument.location.href, attributes).then(({ data }) => {
|
391
|
-
let parser = new DOMParser()
|
392
|
-
const doc = parser.parseFromString(data, 'text/html')
|
393
|
-
|
394
|
-
// update the CSS variables
|
395
|
-
const selector = '#maglev-style'
|
396
|
-
const sourceElement = doc.querySelector(selector)
|
397
|
-
let targetElement = previewDocument.querySelector(selector)
|
398
|
-
|
399
|
-
if (sourceElement) {
|
400
|
-
targetElement.replaceWith(sourceElement)
|
401
|
-
}
|
402
|
-
})
|
403
|
-
}
|
@@ -1,77 +0,0 @@
|
|
1
|
-
const apiService = {
|
2
|
-
setSiteHandle: jest.fn(),
|
3
|
-
setSiteLocale: jest.fn(),
|
4
|
-
get: jest.fn(),
|
5
|
-
post: jest.fn(),
|
6
|
-
put: jest.fn(),
|
7
|
-
destroy: jest.fn(),
|
8
|
-
}
|
9
|
-
|
10
|
-
const siteService = {
|
11
|
-
find: jest.fn(),
|
12
|
-
}
|
13
|
-
|
14
|
-
const themeService = {
|
15
|
-
buildCategories: jest.fn(),
|
16
|
-
}
|
17
|
-
|
18
|
-
const pageService = {
|
19
|
-
isIndex: jest.fn(),
|
20
|
-
build: jest.fn(),
|
21
|
-
findAll: jest.fn(),
|
22
|
-
findById: jest.fn(),
|
23
|
-
create: jest.fn(),
|
24
|
-
update: jest.fn(),
|
25
|
-
updateSettings: jest.fn(),
|
26
|
-
setVisible: jest.fn(),
|
27
|
-
clone: jest.fn(),
|
28
|
-
destroy: jest.fn(),
|
29
|
-
normalize: jest.fn(),
|
30
|
-
denormalize: jest.fn(),
|
31
|
-
}
|
32
|
-
|
33
|
-
const sectionService = {
|
34
|
-
calculateMovingIndices: jest.fn(),
|
35
|
-
canBeAddedToPage: jest.fn(),
|
36
|
-
normalize: jest.fn(),
|
37
|
-
build: jest.fn(),
|
38
|
-
getSettings: jest.fn(),
|
39
|
-
buildDefaultBlock: jest.fn(),
|
40
|
-
}
|
41
|
-
|
42
|
-
const blockService = {
|
43
|
-
encodeToTree: jest.fn(),
|
44
|
-
decodeTree: jest.fn(),
|
45
|
-
}
|
46
|
-
|
47
|
-
const imageService = {
|
48
|
-
findAll: jest.fn(),
|
49
|
-
find: jest.fn(),
|
50
|
-
create: jest.fn(),
|
51
|
-
destroy: jest.fn(),
|
52
|
-
}
|
53
|
-
|
54
|
-
const inlineEditingService = {
|
55
|
-
setup: jest.fn(),
|
56
|
-
getMinTop: jest.fn(),
|
57
|
-
updateSectionSetting: jest.fn(),
|
58
|
-
addSection: jest.fn(),
|
59
|
-
removeSection: jest.fn(),
|
60
|
-
updateMoveSection: jest.fn(),
|
61
|
-
}
|
62
|
-
|
63
|
-
const collectionItemService = {
|
64
|
-
findAll: jest.fn(),
|
65
|
-
}
|
66
|
-
|
67
|
-
export default {
|
68
|
-
api: apiService,
|
69
|
-
site: siteService,
|
70
|
-
theme: themeService,
|
71
|
-
page: pageService,
|
72
|
-
section: sectionService,
|
73
|
-
block: blockService,
|
74
|
-
image: imageService,
|
75
|
-
inlineEditing: inlineEditingService,
|
76
|
-
collectionItem: collectionItemService,
|
77
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
// This file is automatically compiled by Webpack, along with any other files
|
2
|
-
// present in this directory. You're encouraged to place your actual application logic in
|
3
|
-
// a relevant structure within app/javascript and only use these pack files to reference
|
4
|
-
// that code so it'll be compiled.
|
5
|
-
|
6
|
-
import 'style/application'
|
7
|
-
console.log('Maglev ADMIN loaded')
|
8
|
-
import 'controllers'
|
@@ -1 +0,0 @@
|
|
1
|
-
.bg-purple { background-color: #6f42c1; }
|
File without changes
|
data/bin/webpack
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
4
|
-
ENV["NODE_ENV"] ||= "development"
|
5
|
-
|
6
|
-
require "pathname"
|
7
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
8
|
-
Pathname.new(__FILE__).realpath)
|
9
|
-
|
10
|
-
require "bundler/setup"
|
11
|
-
|
12
|
-
require "webpacker"
|
13
|
-
require "webpacker/webpack_runner"
|
14
|
-
|
15
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
16
|
-
Dir.chdir(APP_ROOT) do
|
17
|
-
Webpacker::WebpackRunner.run(ARGV)
|
18
|
-
end
|
data/bin/webpack-dev-server
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
4
|
-
ENV["NODE_ENV"] ||= "development"
|
5
|
-
|
6
|
-
require "pathname"
|
7
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
8
|
-
Pathname.new(__FILE__).realpath)
|
9
|
-
|
10
|
-
require "bundler/setup"
|
11
|
-
|
12
|
-
require "webpacker"
|
13
|
-
require "webpacker/dev_server_runner"
|
14
|
-
|
15
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
16
|
-
Dir.chdir(APP_ROOT) do
|
17
|
-
Webpacker::DevServerRunner.run(ARGV)
|
18
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'webpacker'
|
4
|
-
require 'webpacker/helper'
|
5
|
-
|
6
|
-
module Webpacker
|
7
|
-
module DynamicTag
|
8
|
-
def javascript_pack_tag(*names, **options)
|
9
|
-
return super unless options[:webpacker]
|
10
|
-
|
11
|
-
new_helper = dup
|
12
|
-
new_helper.define_singleton_method(:current_webpacker_instance) do
|
13
|
-
if options[:webpacker] == :root
|
14
|
-
::Webpacker.instance
|
15
|
-
else
|
16
|
-
options[:webpacker].constantize.webpacker
|
17
|
-
end
|
18
|
-
end
|
19
|
-
new_helper.javascript_pack_tag(*names, **options.except(:webpacker))
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
Webpacker::Helper.prepend Webpacker::DynamicTag
|
@@ -1,38 +0,0 @@
|
|
1
|
-
const path = require('path')
|
2
|
-
const { environment } = require('@rails/webpacker')
|
3
|
-
|
4
|
-
// VueJS
|
5
|
-
const { VueLoaderPlugin } = require('vue-loader')
|
6
|
-
const vue = require('./loaders/vue')
|
7
|
-
environment.plugins.prepend('VueLoaderPlugin', new VueLoaderPlugin())
|
8
|
-
environment.loaders.prepend('vue', vue)
|
9
|
-
|
10
|
-
// OptionalChaining
|
11
|
-
const babelLoader = environment.loaders.get('babel')
|
12
|
-
babelLoader.use[0].options.plugins = ['@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-class-properties'];
|
13
|
-
|
14
|
-
const customConfig = {
|
15
|
-
resolve: {
|
16
|
-
alias: {
|
17
|
-
'@': path.resolve(__dirname, '..', '..', 'app/javascript/editor')
|
18
|
-
}
|
19
|
-
},
|
20
|
-
module: {
|
21
|
-
rules: [
|
22
|
-
{
|
23
|
-
test: /\.svg$/,
|
24
|
-
use: ['vue-loader', 'vue-svg-loader'],
|
25
|
-
},
|
26
|
-
{
|
27
|
-
enforce: 'pre',
|
28
|
-
test: /\.(js|vue)$/,
|
29
|
-
loader: 'eslint-loader',
|
30
|
-
exclude: /node_modules/
|
31
|
-
}
|
32
|
-
],
|
33
|
-
},
|
34
|
-
}
|
35
|
-
|
36
|
-
environment.config.merge(customConfig)
|
37
|
-
|
38
|
-
module.exports = environment
|