spina 2.0.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spina might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/Rakefile +2 -0
- data/app/assets/config/spina/manifest.js +8 -4
- data/app/assets/config/spina/tailwind.config.js +27 -0
- data/app/assets/icons/heroicons/outline/academic-cap.svg +5 -0
- data/app/assets/icons/heroicons/outline/adjustments.svg +3 -0
- data/app/assets/icons/heroicons/outline/annotation.svg +3 -0
- data/app/assets/icons/heroicons/outline/archive.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-circle-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-circle-left.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-circle-right.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-circle-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-left.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-narrow-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-narrow-left.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-narrow-right.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-narrow-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-right.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrow-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/arrows-expand.svg +3 -0
- data/app/assets/icons/heroicons/outline/at-symbol.svg +3 -0
- data/app/assets/icons/heroicons/outline/backspace.svg +3 -0
- data/app/assets/icons/heroicons/outline/badge-check.svg +3 -0
- data/app/assets/icons/heroicons/outline/ban.svg +3 -0
- data/app/assets/icons/heroicons/outline/beaker.svg +3 -0
- data/app/assets/icons/heroicons/outline/bell.svg +3 -0
- data/app/assets/icons/heroicons/outline/book-open.svg +3 -0
- data/app/assets/icons/heroicons/outline/bookmark-alt.svg +3 -0
- data/app/assets/icons/heroicons/outline/bookmark.svg +3 -0
- data/app/assets/icons/heroicons/outline/briefcase.svg +3 -0
- data/app/assets/icons/heroicons/outline/cake.svg +3 -0
- data/app/assets/icons/heroicons/outline/calculator.svg +3 -0
- data/app/assets/icons/heroicons/outline/calendar.svg +3 -0
- data/app/assets/icons/heroicons/outline/camera.svg +4 -0
- data/app/assets/icons/heroicons/outline/cash.svg +3 -0
- data/app/assets/icons/heroicons/outline/chart-bar.svg +3 -0
- data/app/assets/icons/heroicons/outline/chart-pie.svg +4 -0
- data/app/assets/icons/heroicons/outline/chart-square-bar.svg +3 -0
- data/app/assets/icons/heroicons/outline/chat-alt-2.svg +3 -0
- data/app/assets/icons/heroicons/outline/chat-alt.svg +3 -0
- data/app/assets/icons/heroicons/outline/chat.svg +3 -0
- data/app/assets/icons/heroicons/outline/check-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/check.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-double-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-double-left.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-double-right.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-double-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-left.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-right.svg +3 -0
- data/app/assets/icons/heroicons/outline/chevron-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/chip.svg +3 -0
- data/app/assets/icons/heroicons/outline/clipboard-check.svg +3 -0
- data/app/assets/icons/heroicons/outline/clipboard-copy.svg +3 -0
- data/app/assets/icons/heroicons/outline/clipboard-list.svg +3 -0
- data/app/assets/icons/heroicons/outline/clipboard.svg +3 -0
- data/app/assets/icons/heroicons/outline/clock.svg +3 -0
- data/app/assets/icons/heroicons/outline/cloud-download.svg +3 -0
- data/app/assets/icons/heroicons/outline/cloud-upload.svg +3 -0
- data/app/assets/icons/heroicons/outline/cloud.svg +3 -0
- data/app/assets/icons/heroicons/outline/code.svg +3 -0
- data/app/assets/icons/heroicons/outline/cog.svg +4 -0
- data/app/assets/icons/heroicons/outline/collection.svg +3 -0
- data/app/assets/icons/heroicons/outline/color-swatch.svg +3 -0
- data/app/assets/icons/heroicons/outline/credit-card.svg +3 -0
- data/app/assets/icons/heroicons/outline/cube-transparent.svg +3 -0
- data/app/assets/icons/heroicons/outline/cube.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-bangladeshi.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-dollar.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-euro.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-pound.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-rupee.svg +3 -0
- data/app/assets/icons/heroicons/outline/currency-yen.svg +3 -0
- data/app/assets/icons/heroicons/outline/cursor-click.svg +3 -0
- data/app/assets/icons/heroicons/outline/database.svg +3 -0
- data/app/assets/icons/heroicons/outline/desktop-computer.svg +3 -0
- data/app/assets/icons/heroicons/outline/device-mobile.svg +3 -0
- data/app/assets/icons/heroicons/outline/device-tablet.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-add.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-download.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-duplicate.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-remove.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-report.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-search.svg +3 -0
- data/app/assets/icons/heroicons/outline/document-text.svg +3 -0
- data/app/assets/icons/heroicons/outline/document.svg +3 -0
- data/app/assets/icons/heroicons/outline/dots-circle-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/outline/dots-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/outline/dots-vertical.svg +3 -0
- data/app/assets/icons/heroicons/outline/download.svg +3 -0
- data/app/assets/icons/heroicons/outline/duplicate.svg +3 -0
- data/app/assets/icons/heroicons/outline/emoji-happy.svg +3 -0
- data/app/assets/icons/heroicons/outline/emoji-sad.svg +3 -0
- data/app/assets/icons/heroicons/outline/exclamation-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/exclamation.svg +3 -0
- data/app/assets/icons/heroicons/outline/external-link.svg +3 -0
- data/app/assets/icons/heroicons/outline/eye-off.svg +3 -0
- data/app/assets/icons/heroicons/outline/eye.svg +4 -0
- data/app/assets/icons/heroicons/outline/fast-forward.svg +3 -0
- data/app/assets/icons/heroicons/outline/film.svg +3 -0
- data/app/assets/icons/heroicons/outline/filter.svg +3 -0
- data/app/assets/icons/heroicons/outline/finger-print.svg +3 -0
- data/app/assets/icons/heroicons/outline/fire.svg +4 -0
- data/app/assets/icons/heroicons/outline/flag.svg +3 -0
- data/app/assets/icons/heroicons/outline/folder-add.svg +3 -0
- data/app/assets/icons/heroicons/outline/folder-download.svg +3 -0
- data/app/assets/icons/heroicons/outline/folder-open.svg +3 -0
- data/app/assets/icons/heroicons/outline/folder-remove.svg +3 -0
- data/app/assets/icons/heroicons/outline/folder.svg +3 -0
- data/app/assets/icons/heroicons/outline/gift.svg +3 -0
- data/app/assets/icons/heroicons/outline/globe-alt.svg +3 -0
- data/app/assets/icons/heroicons/outline/globe.svg +3 -0
- data/app/assets/icons/heroicons/outline/hand.svg +3 -0
- data/app/assets/icons/heroicons/outline/hashtag.svg +3 -0
- data/app/assets/icons/heroicons/outline/heart.svg +3 -0
- data/app/assets/icons/heroicons/outline/home.svg +3 -0
- data/app/assets/icons/heroicons/outline/identification.svg +3 -0
- data/app/assets/icons/heroicons/outline/inbox-in.svg +3 -0
- data/app/assets/icons/heroicons/outline/inbox.svg +3 -0
- data/app/assets/icons/heroicons/outline/information-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/key.svg +3 -0
- data/app/assets/icons/heroicons/outline/library.svg +3 -0
- data/app/assets/icons/heroicons/outline/light-bulb.svg +3 -0
- data/app/assets/icons/heroicons/outline/lightning-bolt.svg +3 -0
- data/app/assets/icons/heroicons/outline/link.svg +3 -0
- data/app/assets/icons/heroicons/outline/location-marker.svg +4 -0
- data/app/assets/icons/heroicons/outline/lock-closed.svg +3 -0
- data/app/assets/icons/heroicons/outline/lock-open.svg +3 -0
- data/app/assets/icons/heroicons/outline/login.svg +3 -0
- data/app/assets/icons/heroicons/outline/logout.svg +3 -0
- data/app/assets/icons/heroicons/outline/mail-open.svg +3 -0
- data/app/assets/icons/heroicons/outline/mail.svg +3 -0
- data/app/assets/icons/heroicons/outline/map.svg +3 -0
- data/app/assets/icons/heroicons/outline/menu-alt-1.svg +3 -0
- data/app/assets/icons/heroicons/outline/menu-alt-2.svg +3 -0
- data/app/assets/icons/heroicons/outline/menu-alt-3.svg +3 -0
- data/app/assets/icons/heroicons/outline/menu-alt-4.svg +3 -0
- data/app/assets/icons/heroicons/outline/menu.svg +3 -0
- data/app/assets/icons/heroicons/outline/microphone.svg +3 -0
- data/app/assets/icons/heroicons/outline/minus-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/minus-sm.svg +3 -0
- data/app/assets/icons/heroicons/outline/minus.svg +3 -0
- data/app/assets/icons/heroicons/outline/moon.svg +3 -0
- data/app/assets/icons/heroicons/outline/music-note.svg +3 -0
- data/app/assets/icons/heroicons/outline/newspaper.svg +3 -0
- data/app/assets/icons/heroicons/outline/office-building.svg +3 -0
- data/app/assets/icons/heroicons/outline/paper-airplane.svg +3 -0
- data/app/assets/icons/heroicons/outline/paper-clip.svg +3 -0
- data/app/assets/icons/heroicons/outline/pause.svg +3 -0
- data/app/assets/icons/heroicons/outline/pencil-alt.svg +3 -0
- data/app/assets/icons/heroicons/outline/pencil.svg +3 -0
- data/app/assets/icons/heroicons/outline/phone-incoming.svg +3 -0
- data/app/assets/icons/heroicons/outline/phone-missed-call.svg +3 -0
- data/app/assets/icons/heroicons/outline/phone-outgoing.svg +3 -0
- data/app/assets/icons/heroicons/outline/phone.svg +3 -0
- data/app/assets/icons/heroicons/outline/photograph.svg +3 -0
- data/app/assets/icons/heroicons/outline/play.svg +4 -0
- data/app/assets/icons/heroicons/outline/plus-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/plus-sm.svg +3 -0
- data/app/assets/icons/heroicons/outline/plus.svg +3 -0
- data/app/assets/icons/heroicons/outline/presentation-chart-bar.svg +3 -0
- data/app/assets/icons/heroicons/outline/presentation-chart-line.svg +3 -0
- data/app/assets/icons/heroicons/outline/printer.svg +3 -0
- data/app/assets/icons/heroicons/outline/puzzle.svg +3 -0
- data/app/assets/icons/heroicons/outline/qrcode.svg +3 -0
- data/app/assets/icons/heroicons/outline/question-mark-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/receipt-refund.svg +3 -0
- data/app/assets/icons/heroicons/outline/receipt-tax.svg +3 -0
- data/app/assets/icons/heroicons/outline/refresh.svg +3 -0
- data/app/assets/icons/heroicons/outline/reply.svg +3 -0
- data/app/assets/icons/heroicons/outline/rewind.svg +3 -0
- data/app/assets/icons/heroicons/outline/rss.svg +3 -0
- data/app/assets/icons/heroicons/outline/save-as.svg +3 -0
- data/app/assets/icons/heroicons/outline/save.svg +3 -0
- data/app/assets/icons/heroicons/outline/scale.svg +3 -0
- data/app/assets/icons/heroicons/outline/scissors.svg +3 -0
- data/app/assets/icons/heroicons/outline/search-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/search.svg +3 -0
- data/app/assets/icons/heroicons/outline/selector.svg +3 -0
- data/app/assets/icons/heroicons/outline/server.svg +3 -0
- data/app/assets/icons/heroicons/outline/share.svg +3 -0
- data/app/assets/icons/heroicons/outline/shield-check.svg +3 -0
- data/app/assets/icons/heroicons/outline/shield-exclamation.svg +3 -0
- data/app/assets/icons/heroicons/outline/shopping-bag.svg +3 -0
- data/app/assets/icons/heroicons/outline/shopping-cart.svg +3 -0
- data/app/assets/icons/heroicons/outline/sort-ascending.svg +3 -0
- data/app/assets/icons/heroicons/outline/sort-descending.svg +3 -0
- data/app/assets/icons/heroicons/outline/sparkles.svg +3 -0
- data/app/assets/icons/heroicons/outline/speakerphone.svg +3 -0
- data/app/assets/icons/heroicons/outline/star.svg +3 -0
- data/app/assets/icons/heroicons/outline/status-offline.svg +3 -0
- data/app/assets/icons/heroicons/outline/status-online.svg +3 -0
- data/app/assets/icons/heroicons/outline/stop.svg +4 -0
- data/app/assets/icons/heroicons/outline/sun.svg +3 -0
- data/app/assets/icons/heroicons/outline/support.svg +3 -0
- data/app/assets/icons/heroicons/outline/switch-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/outline/switch-vertical.svg +3 -0
- data/app/assets/icons/heroicons/outline/table.svg +3 -0
- data/app/assets/icons/heroicons/outline/tag.svg +3 -0
- data/app/assets/icons/heroicons/outline/template.svg +3 -0
- data/app/assets/icons/heroicons/outline/terminal.svg +3 -0
- data/app/assets/icons/heroicons/outline/thumb-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/thumb-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/ticket.svg +3 -0
- data/app/assets/icons/heroicons/outline/translate.svg +3 -0
- data/app/assets/icons/heroicons/outline/trash.svg +3 -0
- data/app/assets/icons/heroicons/outline/trending-down.svg +3 -0
- data/app/assets/icons/heroicons/outline/trending-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/truck.svg +4 -0
- data/app/assets/icons/heroicons/outline/upload.svg +3 -0
- data/app/assets/icons/heroicons/outline/user-add.svg +3 -0
- data/app/assets/icons/heroicons/outline/user-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/user-group.svg +3 -0
- data/app/assets/icons/heroicons/outline/user-remove.svg +3 -0
- data/app/assets/icons/heroicons/outline/user.svg +3 -0
- data/app/assets/icons/heroicons/outline/users.svg +3 -0
- data/app/assets/icons/heroicons/outline/variable.svg +3 -0
- data/app/assets/icons/heroicons/outline/video-camera.svg +3 -0
- data/app/assets/icons/heroicons/outline/view-boards.svg +3 -0
- data/app/assets/icons/heroicons/outline/view-grid-add.svg +3 -0
- data/app/assets/icons/heroicons/outline/view-grid.svg +3 -0
- data/app/assets/icons/heroicons/outline/view-list.svg +3 -0
- data/app/assets/icons/heroicons/outline/volume-off.svg +4 -0
- data/app/assets/icons/heroicons/outline/volume-up.svg +3 -0
- data/app/assets/icons/heroicons/outline/wifi.svg +3 -0
- data/app/assets/icons/heroicons/outline/x-circle.svg +3 -0
- data/app/assets/icons/heroicons/outline/x.svg +3 -0
- data/app/assets/icons/heroicons/outline/zoom-in.svg +3 -0
- data/app/assets/icons/heroicons/outline/zoom-out.svg +3 -0
- data/app/assets/icons/heroicons/solid/academic-cap.svg +3 -0
- data/app/assets/icons/heroicons/solid/adjustments.svg +3 -0
- data/app/assets/icons/heroicons/solid/annotation.svg +3 -0
- data/app/assets/icons/heroicons/solid/archive.svg +4 -0
- data/app/assets/icons/heroicons/solid/arrow-circle-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-circle-left.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-circle-right.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-circle-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-left.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-narrow-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-narrow-left.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-narrow-right.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-narrow-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-right.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrow-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/arrows-expand.svg +3 -0
- data/app/assets/icons/heroicons/solid/at-symbol.svg +3 -0
- data/app/assets/icons/heroicons/solid/backspace.svg +3 -0
- data/app/assets/icons/heroicons/solid/badge-check.svg +3 -0
- data/app/assets/icons/heroicons/solid/ban.svg +3 -0
- data/app/assets/icons/heroicons/solid/beaker.svg +3 -0
- data/app/assets/icons/heroicons/solid/bell.svg +3 -0
- data/app/assets/icons/heroicons/solid/book-open.svg +3 -0
- data/app/assets/icons/heroicons/solid/bookmark-alt.svg +3 -0
- data/app/assets/icons/heroicons/solid/bookmark.svg +3 -0
- data/app/assets/icons/heroicons/solid/briefcase.svg +4 -0
- data/app/assets/icons/heroicons/solid/cake.svg +3 -0
- data/app/assets/icons/heroicons/solid/calculator.svg +3 -0
- data/app/assets/icons/heroicons/solid/calendar.svg +3 -0
- data/app/assets/icons/heroicons/solid/camera.svg +3 -0
- data/app/assets/icons/heroicons/solid/cash.svg +3 -0
- data/app/assets/icons/heroicons/solid/chart-bar.svg +3 -0
- data/app/assets/icons/heroicons/solid/chart-pie.svg +4 -0
- data/app/assets/icons/heroicons/solid/chart-square-bar.svg +3 -0
- data/app/assets/icons/heroicons/solid/chat-alt-2.svg +4 -0
- data/app/assets/icons/heroicons/solid/chat-alt.svg +3 -0
- data/app/assets/icons/heroicons/solid/chat.svg +3 -0
- data/app/assets/icons/heroicons/solid/check-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/check.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-double-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-double-left.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-double-right.svg +4 -0
- data/app/assets/icons/heroicons/solid/chevron-double-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-left.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-right.svg +3 -0
- data/app/assets/icons/heroicons/solid/chevron-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/chip.svg +4 -0
- data/app/assets/icons/heroicons/solid/clipboard-check.svg +4 -0
- data/app/assets/icons/heroicons/solid/clipboard-copy.svg +4 -0
- data/app/assets/icons/heroicons/solid/clipboard-list.svg +4 -0
- data/app/assets/icons/heroicons/solid/clipboard.svg +4 -0
- data/app/assets/icons/heroicons/solid/clock.svg +3 -0
- data/app/assets/icons/heroicons/solid/cloud-download.svg +3 -0
- data/app/assets/icons/heroicons/solid/cloud-upload.svg +4 -0
- data/app/assets/icons/heroicons/solid/cloud.svg +3 -0
- data/app/assets/icons/heroicons/solid/code.svg +3 -0
- data/app/assets/icons/heroicons/solid/cog.svg +3 -0
- data/app/assets/icons/heroicons/solid/collection.svg +3 -0
- data/app/assets/icons/heroicons/solid/color-swatch.svg +3 -0
- data/app/assets/icons/heroicons/solid/credit-card.svg +4 -0
- data/app/assets/icons/heroicons/solid/cube-transparent.svg +3 -0
- data/app/assets/icons/heroicons/solid/cube.svg +3 -0
- data/app/assets/icons/heroicons/solid/currency-bangladeshi.svg +3 -0
- data/app/assets/icons/heroicons/solid/currency-dollar.svg +4 -0
- data/app/assets/icons/heroicons/solid/currency-euro.svg +3 -0
- data/app/assets/icons/heroicons/solid/currency-pound.svg +3 -0
- data/app/assets/icons/heroicons/solid/currency-rupee.svg +3 -0
- data/app/assets/icons/heroicons/solid/currency-yen.svg +3 -0
- data/app/assets/icons/heroicons/solid/cursor-click.svg +3 -0
- data/app/assets/icons/heroicons/solid/database.svg +5 -0
- data/app/assets/icons/heroicons/solid/desktop-computer.svg +3 -0
- data/app/assets/icons/heroicons/solid/device-mobile.svg +3 -0
- data/app/assets/icons/heroicons/solid/device-tablet.svg +3 -0
- data/app/assets/icons/heroicons/solid/document-add.svg +3 -0
- data/app/assets/icons/heroicons/solid/document-download.svg +3 -0
- data/app/assets/icons/heroicons/solid/document-duplicate.svg +4 -0
- data/app/assets/icons/heroicons/solid/document-remove.svg +3 -0
- data/app/assets/icons/heroicons/solid/document-report.svg +3 -0
- data/app/assets/icons/heroicons/solid/document-search.svg +4 -0
- data/app/assets/icons/heroicons/solid/document-text.svg +3 -0
- data/app/assets/icons/heroicons/solid/document.svg +3 -0
- data/app/assets/icons/heroicons/solid/dots-circle-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/solid/dots-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/solid/dots-vertical.svg +3 -0
- data/app/assets/icons/heroicons/solid/download.svg +3 -0
- data/app/assets/icons/heroicons/solid/duplicate.svg +4 -0
- data/app/assets/icons/heroicons/solid/emoji-happy.svg +3 -0
- data/app/assets/icons/heroicons/solid/emoji-sad.svg +3 -0
- data/app/assets/icons/heroicons/solid/exclamation-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/exclamation.svg +3 -0
- data/app/assets/icons/heroicons/solid/external-link.svg +4 -0
- data/app/assets/icons/heroicons/solid/eye-off.svg +4 -0
- data/app/assets/icons/heroicons/solid/eye.svg +4 -0
- data/app/assets/icons/heroicons/solid/fast-forward.svg +3 -0
- data/app/assets/icons/heroicons/solid/film.svg +3 -0
- data/app/assets/icons/heroicons/solid/filter.svg +3 -0
- data/app/assets/icons/heroicons/solid/finger-print.svg +5 -0
- data/app/assets/icons/heroicons/solid/fire.svg +3 -0
- data/app/assets/icons/heroicons/solid/flag.svg +3 -0
- data/app/assets/icons/heroicons/solid/folder-add.svg +4 -0
- data/app/assets/icons/heroicons/solid/folder-download.svg +4 -0
- data/app/assets/icons/heroicons/solid/folder-open.svg +4 -0
- data/app/assets/icons/heroicons/solid/folder-remove.svg +4 -0
- data/app/assets/icons/heroicons/solid/folder.svg +3 -0
- data/app/assets/icons/heroicons/solid/gift.svg +4 -0
- data/app/assets/icons/heroicons/solid/globe-alt.svg +3 -0
- data/app/assets/icons/heroicons/solid/globe.svg +3 -0
- data/app/assets/icons/heroicons/solid/hand.svg +3 -0
- data/app/assets/icons/heroicons/solid/hashtag.svg +3 -0
- data/app/assets/icons/heroicons/solid/heart.svg +3 -0
- data/app/assets/icons/heroicons/solid/home.svg +3 -0
- data/app/assets/icons/heroicons/solid/identification.svg +3 -0
- data/app/assets/icons/heroicons/solid/inbox-in.svg +4 -0
- data/app/assets/icons/heroicons/solid/inbox.svg +3 -0
- data/app/assets/icons/heroicons/solid/information-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/key.svg +3 -0
- data/app/assets/icons/heroicons/solid/library.svg +3 -0
- data/app/assets/icons/heroicons/solid/light-bulb.svg +3 -0
- data/app/assets/icons/heroicons/solid/lightning-bolt.svg +3 -0
- data/app/assets/icons/heroicons/solid/link.svg +3 -0
- data/app/assets/icons/heroicons/solid/location-marker.svg +3 -0
- data/app/assets/icons/heroicons/solid/lock-closed.svg +3 -0
- data/app/assets/icons/heroicons/solid/lock-open.svg +3 -0
- data/app/assets/icons/heroicons/solid/login.svg +3 -0
- data/app/assets/icons/heroicons/solid/logout.svg +3 -0
- data/app/assets/icons/heroicons/solid/mail-open.svg +3 -0
- data/app/assets/icons/heroicons/solid/mail.svg +4 -0
- data/app/assets/icons/heroicons/solid/map.svg +3 -0
- data/app/assets/icons/heroicons/solid/menu-alt-1.svg +3 -0
- data/app/assets/icons/heroicons/solid/menu-alt-2.svg +3 -0
- data/app/assets/icons/heroicons/solid/menu-alt-3.svg +3 -0
- data/app/assets/icons/heroicons/solid/menu-alt-4.svg +3 -0
- data/app/assets/icons/heroicons/solid/menu.svg +3 -0
- data/app/assets/icons/heroicons/solid/microphone.svg +3 -0
- data/app/assets/icons/heroicons/solid/minus-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/minus-sm.svg +3 -0
- data/app/assets/icons/heroicons/solid/minus.svg +3 -0
- data/app/assets/icons/heroicons/solid/moon.svg +3 -0
- data/app/assets/icons/heroicons/solid/music-note.svg +3 -0
- data/app/assets/icons/heroicons/solid/newspaper.svg +4 -0
- data/app/assets/icons/heroicons/solid/office-building.svg +3 -0
- data/app/assets/icons/heroicons/solid/paper-airplane.svg +3 -0
- data/app/assets/icons/heroicons/solid/paper-clip.svg +3 -0
- data/app/assets/icons/heroicons/solid/pause.svg +3 -0
- data/app/assets/icons/heroicons/solid/pencil-alt.svg +4 -0
- data/app/assets/icons/heroicons/solid/pencil.svg +3 -0
- data/app/assets/icons/heroicons/solid/phone-incoming.svg +4 -0
- data/app/assets/icons/heroicons/solid/phone-missed-call.svg +4 -0
- data/app/assets/icons/heroicons/solid/phone-outgoing.svg +4 -0
- data/app/assets/icons/heroicons/solid/phone.svg +3 -0
- data/app/assets/icons/heroicons/solid/photograph.svg +3 -0
- data/app/assets/icons/heroicons/solid/play.svg +3 -0
- data/app/assets/icons/heroicons/solid/plus-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/plus-sm.svg +3 -0
- data/app/assets/icons/heroicons/solid/plus.svg +3 -0
- data/app/assets/icons/heroicons/solid/presentation-chart-bar.svg +3 -0
- data/app/assets/icons/heroicons/solid/presentation-chart-line.svg +3 -0
- data/app/assets/icons/heroicons/solid/printer.svg +3 -0
- data/app/assets/icons/heroicons/solid/puzzle.svg +3 -0
- data/app/assets/icons/heroicons/solid/qrcode.svg +4 -0
- data/app/assets/icons/heroicons/solid/question-mark-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/receipt-refund.svg +3 -0
- data/app/assets/icons/heroicons/solid/receipt-tax.svg +3 -0
- data/app/assets/icons/heroicons/solid/refresh.svg +3 -0
- data/app/assets/icons/heroicons/solid/reply.svg +3 -0
- data/app/assets/icons/heroicons/solid/rewind.svg +3 -0
- data/app/assets/icons/heroicons/solid/rss.svg +4 -0
- data/app/assets/icons/heroicons/solid/save-as.svg +4 -0
- data/app/assets/icons/heroicons/solid/save.svg +3 -0
- data/app/assets/icons/heroicons/solid/scale.svg +3 -0
- data/app/assets/icons/heroicons/solid/scissors.svg +4 -0
- data/app/assets/icons/heroicons/solid/search-circle.svg +4 -0
- data/app/assets/icons/heroicons/solid/search.svg +3 -0
- data/app/assets/icons/heroicons/solid/selector.svg +3 -0
- data/app/assets/icons/heroicons/solid/server.svg +3 -0
- data/app/assets/icons/heroicons/solid/share.svg +3 -0
- data/app/assets/icons/heroicons/solid/shield-check.svg +3 -0
- data/app/assets/icons/heroicons/solid/shield-exclamation.svg +3 -0
- data/app/assets/icons/heroicons/solid/shopping-bag.svg +3 -0
- data/app/assets/icons/heroicons/solid/shopping-cart.svg +3 -0
- data/app/assets/icons/heroicons/solid/sort-ascending.svg +3 -0
- data/app/assets/icons/heroicons/solid/sort-descending.svg +3 -0
- data/app/assets/icons/heroicons/solid/sparkles.svg +3 -0
- data/app/assets/icons/heroicons/solid/speakerphone.svg +3 -0
- data/app/assets/icons/heroicons/solid/star.svg +3 -0
- data/app/assets/icons/heroicons/solid/status-offline.svg +3 -0
- data/app/assets/icons/heroicons/solid/status-online.svg +3 -0
- data/app/assets/icons/heroicons/solid/stop.svg +3 -0
- data/app/assets/icons/heroicons/solid/sun.svg +3 -0
- data/app/assets/icons/heroicons/solid/support.svg +3 -0
- data/app/assets/icons/heroicons/solid/switch-horizontal.svg +3 -0
- data/app/assets/icons/heroicons/solid/switch-vertical.svg +3 -0
- data/app/assets/icons/heroicons/solid/table.svg +3 -0
- data/app/assets/icons/heroicons/solid/tag.svg +3 -0
- data/app/assets/icons/heroicons/solid/template.svg +3 -0
- data/app/assets/icons/heroicons/solid/terminal.svg +3 -0
- data/app/assets/icons/heroicons/solid/thumb-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/thumb-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/ticket.svg +3 -0
- data/app/assets/icons/heroicons/solid/translate.svg +3 -0
- data/app/assets/icons/heroicons/solid/trash.svg +3 -0
- data/app/assets/icons/heroicons/solid/trending-down.svg +3 -0
- data/app/assets/icons/heroicons/solid/trending-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/truck.svg +4 -0
- data/app/assets/icons/heroicons/solid/upload.svg +3 -0
- data/app/assets/icons/heroicons/solid/user-add.svg +3 -0
- data/app/assets/icons/heroicons/solid/user-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/user-group.svg +3 -0
- data/app/assets/icons/heroicons/solid/user-remove.svg +3 -0
- data/app/assets/icons/heroicons/solid/user.svg +3 -0
- data/app/assets/icons/heroicons/solid/users.svg +3 -0
- data/app/assets/icons/heroicons/solid/variable.svg +3 -0
- data/app/assets/icons/heroicons/solid/video-camera.svg +3 -0
- data/app/assets/icons/heroicons/solid/view-boards.svg +3 -0
- data/app/assets/icons/heroicons/solid/view-grid-add.svg +3 -0
- data/app/assets/icons/heroicons/solid/view-grid.svg +3 -0
- data/app/assets/icons/heroicons/solid/view-list.svg +3 -0
- data/app/assets/icons/heroicons/solid/volume-off.svg +3 -0
- data/app/assets/icons/heroicons/solid/volume-up.svg +3 -0
- data/app/assets/icons/heroicons/solid/wifi.svg +3 -0
- data/app/assets/icons/heroicons/solid/x-circle.svg +3 -0
- data/app/assets/icons/heroicons/solid/x.svg +3 -0
- data/app/assets/icons/heroicons/solid/zoom-in.svg +4 -0
- data/app/assets/icons/heroicons/solid/zoom-out.svg +4 -0
- data/app/assets/images/spina/favicon.png +0 -0
- data/app/assets/images/spina/spina.png +0 -0
- data/app/assets/images/spina/spina.svg +9 -1
- data/app/assets/javascripts/spina/application.js +2 -0
- data/app/assets/javascripts/spina/controllers/attachment_picker_controller.js +15 -0
- data/app/assets/javascripts/spina/controllers/autofocus_controller.js +9 -0
- data/app/assets/javascripts/spina/controllers/button_controller.js +37 -0
- data/app/assets/javascripts/spina/controllers/confetti_controller.js +43 -0
- data/app/assets/javascripts/spina/controllers/confirm_controller.js +62 -0
- data/app/assets/javascripts/spina/controllers/delegate_click_controller.js +13 -0
- data/app/assets/javascripts/spina/controllers/exists_controller.js +11 -0
- data/app/assets/javascripts/spina/controllers/form_controller.js +10 -0
- data/app/assets/javascripts/spina/controllers/hotkeys_controller.js +21 -0
- data/app/assets/javascripts/spina/controllers/image_collection_controller.js +37 -0
- data/app/assets/javascripts/spina/controllers/image_fade_in_controller.js +20 -0
- data/app/assets/javascripts/spina/controllers/infinite_scroll_controller.js +33 -0
- data/app/assets/javascripts/spina/controllers/loading_button_controller.js +40 -0
- data/app/assets/javascripts/spina/controllers/media_picker_controller.js +46 -0
- data/app/assets/javascripts/spina/controllers/media_picker_modal_controller.js +34 -0
- data/app/assets/javascripts/spina/controllers/modal_controller.js +22 -0
- data/app/assets/javascripts/spina/controllers/navigation_controller.js +77 -0
- data/app/assets/javascripts/spina/controllers/parent_pages_controller.js +16 -0
- data/app/assets/javascripts/spina/controllers/repeater_controller.js +71 -0
- data/app/assets/javascripts/spina/controllers/reveal_controller.js +1 -0
- data/app/assets/javascripts/spina/controllers/select_placeholder_controller.js +27 -0
- data/app/assets/javascripts/spina/controllers/selectable_controller.js +44 -0
- data/app/assets/javascripts/spina/controllers/shortcuts_controller.js +15 -0
- data/app/assets/javascripts/spina/controllers/sortable_controller.js +39 -0
- data/app/assets/javascripts/spina/controllers/switch_controller.js +27 -0
- data/app/assets/javascripts/spina/controllers/tabs_controller.js +70 -0
- data/app/assets/javascripts/spina/controllers/toggle_controller.js +12 -0
- data/app/assets/javascripts/spina/controllers/trix_controller.js +87 -0
- data/app/assets/javascripts/spina/controllers/unique_id_controller.js +31 -0
- data/app/assets/javascripts/spina/libraries/canvas-confetti.js +1 -0
- data/app/assets/javascripts/spina/libraries/canvas-confetti@1.3.2.js +592 -0
- data/app/assets/javascripts/spina/libraries/form-request-submit-polyfill.js +1 -0
- data/app/assets/javascripts/spina/libraries/form-request-submit-polyfill@2.0.0.js +27 -0
- data/app/assets/javascripts/spina/libraries/hotkeys.js +1 -0
- data/app/assets/javascripts/spina/libraries/hotkeys@3.8.7.js +596 -0
- data/app/assets/javascripts/spina/libraries/sortablejs.js +1 -0
- data/app/assets/javascripts/spina/libraries/sortablejs@1.13.0.js +3711 -0
- data/app/assets/javascripts/spina/libraries/stimulus-reveal@1.2.4.js +388 -0
- data/app/assets/javascripts/spina/libraries/trix.js +9 -0
- data/app/assets/javascripts/spina/libraries/trix@1.3.1.js +21 -0
- data/app/assets/stylesheets/spina/_animate.css +4072 -0
- data/app/assets/stylesheets/spina/_fonts.scss +114 -0
- data/app/assets/stylesheets/spina/_tailwind.css +203630 -0
- data/app/assets/stylesheets/spina/application.sass +3 -4
- data/app/assets/stylesheets/spina/tailwind/custom.css +193 -0
- data/app/components/spina/application_component.rb +4 -0
- data/app/components/spina/forms/group_component.html.erb +14 -0
- data/app/components/spina/forms/group_component.rb +13 -0
- data/app/components/spina/forms/label_component.rb +17 -0
- data/app/components/spina/forms/password_field_component.html.erb +14 -0
- data/app/components/spina/forms/password_field_component.rb +6 -0
- data/app/components/spina/forms/switch_component.html.erb +7 -0
- data/app/components/spina/forms/switch_component.rb +13 -0
- data/app/components/spina/forms/text_field_component.html.erb +14 -0
- data/app/components/spina/forms/text_field_component.rb +50 -0
- data/app/components/spina/forms/trix_toolbar_component.html.erb +90 -0
- data/app/components/spina/forms/trix_toolbar_component.rb +11 -0
- data/app/components/spina/hooks/hook_component.rb +21 -0
- data/app/components/spina/hooks/partial_component.rb +21 -0
- data/app/components/spina/main_navigation/link_component.html.erb +5 -0
- data/app/components/spina/main_navigation/link_component.rb +21 -0
- data/app/components/spina/main_navigation/sub_nav_component.html.erb +18 -0
- data/app/components/spina/main_navigation/sub_nav_component.rb +33 -0
- data/app/components/spina/media_picker/image_component.html.erb +18 -0
- data/app/components/spina/media_picker/image_component.rb +11 -0
- data/app/components/spina/media_picker/modal_component.html.erb +74 -0
- data/app/components/spina/media_picker/modal_component.rb +29 -0
- data/app/components/spina/pages/actions_component.html.erb +65 -0
- data/app/components/spina/pages/actions_component.rb +12 -0
- data/app/components/spina/pages/list_component.html.erb +8 -0
- data/app/components/spina/pages/list_component.rb +13 -0
- data/app/components/spina/pages/location_component.html.erb +10 -0
- data/app/components/spina/pages/location_component.rb +29 -0
- data/app/components/spina/pages/page_component.html.erb +25 -0
- data/app/components/spina/pages/page_component.rb +43 -0
- data/app/components/spina/pages/page_select_component.html.erb +1 -0
- data/app/components/spina/pages/page_select_component.rb +21 -0
- data/app/components/spina/pages/tab_button_component.html.erb +3 -0
- data/app/components/spina/pages/tab_button_component.rb +11 -0
- data/app/components/spina/pages/translations_component.html.erb +41 -0
- data/app/components/spina/pages/translations_component.rb +32 -0
- data/app/components/spina/user_interface/dropdown_button_component.rb +23 -0
- data/app/components/spina/user_interface/dropdown_component.html.erb +5 -0
- data/app/components/spina/user_interface/dropdown_component.rb +28 -0
- data/app/components/spina/user_interface/flash_message_component.html.erb +3 -0
- data/app/components/spina/user_interface/flash_message_component.rb +25 -0
- data/app/components/spina/user_interface/header_component.html.erb +24 -0
- data/app/components/spina/user_interface/header_component.rb +9 -0
- data/app/components/spina/user_interface/modal_component.html.erb +11 -0
- data/app/components/spina/user_interface/modal_component.rb +11 -0
- data/app/components/spina/user_interface/tab_link_component.html.erb +3 -0
- data/app/components/spina/user_interface/tab_link_component.rb +22 -0
- data/app/controllers/concerns/spina/api/paginable.rb +44 -0
- data/app/controllers/concerns/spina/current_account.rb +17 -0
- data/app/controllers/concerns/spina/current_theme.rb +17 -0
- data/app/controllers/spina/admin/accounts_controller.rb +13 -21
- data/app/controllers/spina/admin/admin_controller.rb +18 -14
- data/app/controllers/spina/admin/attachments_controller.rb +27 -6
- data/app/controllers/spina/admin/images_controller.rb +49 -13
- data/app/controllers/spina/admin/layout_controller.rb +41 -0
- data/app/controllers/spina/admin/media_folders_controller.rb +10 -13
- data/app/controllers/spina/admin/media_picker_controller.rb +6 -30
- data/app/controllers/spina/admin/move_pages_controller.rb +24 -0
- data/app/controllers/spina/admin/navigation_items_controller.rb +36 -0
- data/app/controllers/spina/admin/navigations_controller.rb +19 -16
- data/app/controllers/spina/admin/pages_controller.rb +68 -65
- data/app/controllers/spina/admin/parent_pages_controller.rb +10 -0
- data/app/controllers/spina/admin/password_resets_controller.rb +4 -4
- data/app/controllers/spina/admin/resources_controller.rb +4 -7
- data/app/controllers/spina/admin/sessions_controller.rb +5 -8
- data/app/controllers/spina/admin/settings_controller.rb +30 -29
- data/app/controllers/spina/admin/theme_controller.rb +23 -0
- data/app/controllers/spina/admin/users_controller.rb +32 -13
- data/app/controllers/spina/api/api_controller.rb +29 -0
- data/app/controllers/spina/api/images_controller.rb +12 -0
- data/app/controllers/spina/api/navigations_controller.rb +20 -0
- data/app/controllers/spina/api/pages_controller.rb +26 -0
- data/app/controllers/spina/api/resources_controller.rb +19 -0
- data/app/controllers/spina/application_controller.rb +2 -1
- data/app/controllers/spina/pages_controller.rb +5 -5
- data/app/helpers/spina/admin/icons_helper.rb +26 -0
- data/app/helpers/spina/admin/images_helper.rb +18 -0
- data/app/helpers/spina/admin/pages_helper.rb +21 -48
- data/app/helpers/spina/attachments_helper.rb +1 -1
- data/app/helpers/spina/images_helper.rb +26 -2
- data/app/helpers/spina/spina_helper.rb +13 -0
- data/app/jobs/spina/application_job.rb +4 -0
- data/app/jobs/spina/resource_pages_update_job.rb +11 -0
- data/app/models/concerns/spina/gravatar.rb +20 -0
- data/app/models/concerns/spina/translated_content.rb +8 -7
- data/app/models/spina/account.rb +2 -0
- data/app/models/spina/application_record.rb +6 -0
- data/app/models/spina/attachment.rb +5 -1
- data/app/models/spina/current.rb +2 -0
- data/app/models/spina/navigation.rb +1 -0
- data/app/models/spina/navigation_item.rb +1 -1
- data/app/models/spina/page.rb +10 -5
- data/app/models/spina/parts/base.rb +6 -0
- data/app/models/spina/parts/image.rb +2 -0
- data/app/models/spina/resource.rb +12 -2
- data/app/models/spina/user.rb +4 -16
- data/app/serializers/spina/api/base_serializer.rb +6 -0
- data/app/serializers/spina/api/image_serializer.rb +20 -0
- data/app/serializers/spina/api/navigation_serializer.rb +30 -0
- data/app/serializers/spina/api/page_serializer.rb +28 -0
- data/app/serializers/spina/api/resource_serializer.rb +12 -0
- data/app/views/layouts/spina/admin/admin.html.erb +18 -0
- data/app/views/layouts/spina/admin/application.html.erb +27 -0
- data/app/views/layouts/spina/admin/sessions.html.erb +1 -0
- data/app/views/spina/admin/accounts/edit.html.erb +49 -0
- data/app/views/spina/admin/attachments/_attachment.html.erb +33 -0
- data/app/views/spina/admin/attachments/edit.html.erb +16 -0
- data/app/views/spina/admin/attachments/index.html.erb +46 -0
- data/app/views/spina/admin/attachments/show.html.erb +1 -0
- data/app/views/spina/admin/images/_image.html.erb +65 -0
- data/app/views/spina/admin/images/edit.html.erb +16 -0
- data/app/views/spina/admin/images/index.html.erb +73 -0
- data/app/views/spina/admin/images/show.html.erb +1 -0
- data/app/views/spina/admin/images/update.turbo_stream.erb +5 -0
- data/app/views/spina/admin/layout/edit.html.erb +34 -0
- data/app/views/spina/admin/media_folders/_form.html.erb +30 -0
- data/app/views/spina/admin/media_folders/_media_folder.html.erb +18 -0
- data/app/views/spina/admin/media_folders/edit.html.erb +3 -0
- data/app/views/spina/admin/media_folders/new.html.erb +3 -0
- data/app/views/spina/admin/media_picker/show.html.erb +1 -0
- data/app/views/spina/admin/move_pages/new.html.erb +32 -0
- data/app/views/spina/admin/navigation_items/_form.html.erb +29 -0
- data/app/views/spina/admin/navigation_items/_navigation_item.html.erb +36 -0
- data/app/views/spina/admin/navigation_items/new.html.erb +3 -0
- data/app/views/spina/admin/navigations/_navigation.html.erb +1 -0
- data/app/views/spina/admin/navigations/edit.html.erb +32 -0
- data/app/views/spina/admin/navigations/index.html.erb +7 -0
- data/app/views/spina/admin/pages/_button_advanced.html.erb +4 -0
- data/app/views/spina/admin/pages/_button_page_content.html.erb +4 -0
- data/app/views/spina/admin/pages/_button_search_engines.html.erb +5 -0
- data/app/views/spina/admin/pages/_form.html.erb +36 -0
- data/app/views/spina/admin/pages/_form_advanced.html.erb +55 -0
- data/app/views/spina/admin/pages/_form_page_content.html.erb +8 -0
- data/app/views/spina/admin/pages/_form_search_engines.html.erb +45 -0
- data/app/views/spina/admin/pages/_new_page_form.html.erb +35 -0
- data/app/views/spina/admin/pages/edit.html.erb +1 -0
- data/app/views/spina/admin/pages/edit_content.html.erb +11 -0
- data/app/views/spina/admin/pages/edit_template.html.erb +36 -0
- data/app/views/spina/admin/pages/index.html.erb +66 -0
- data/app/views/spina/admin/pages/new.html.erb +3 -0
- data/app/views/spina/admin/parent_pages/index.html.erb +3 -0
- data/app/views/spina/admin/parts/attachments/_form.html.erb +8 -0
- data/app/views/spina/admin/parts/image_collections/_fields.html.erb +16 -0
- data/app/views/spina/admin/parts/image_collections/_form.html.erb +30 -0
- data/app/views/spina/admin/parts/images/_form.html.erb +32 -0
- data/app/views/spina/admin/parts/lines/_form.html.erb +6 -0
- data/app/views/spina/admin/parts/multi_lines/_form.html.erb +4 -0
- data/app/views/spina/admin/parts/options/_form.html.erb +5 -0
- data/app/views/spina/admin/parts/repeaters/_fields.html.erb +18 -0
- data/app/views/spina/admin/parts/repeaters/_form.html.erb +37 -0
- data/app/views/spina/admin/parts/texts/_form.html.erb +12 -0
- data/app/views/spina/admin/password_resets/edit.html.erb +22 -0
- data/app/views/spina/admin/password_resets/new.html.erb +21 -0
- data/app/views/spina/admin/resources/edit.html.erb +55 -0
- data/app/views/spina/admin/sessions/new.html.erb +24 -0
- data/app/views/spina/admin/settings/_string_field.html.erb +4 -0
- data/app/views/spina/admin/settings/_text_field.html.erb +5 -0
- data/app/views/spina/admin/settings/_wysiwyg_field.html.erb +13 -0
- data/app/views/spina/admin/settings/edit.html.erb +24 -0
- data/app/views/spina/admin/shared/_flash.html.erb +5 -0
- data/app/views/spina/admin/shared/_navigation.html.erb +71 -0
- data/app/views/spina/admin/theme/edit.html.erb +21 -0
- data/app/views/spina/admin/users/_form.html.erb +52 -0
- data/app/views/spina/admin/users/_user.html.erb +36 -0
- data/app/views/spina/admin/users/edit.html.erb +1 -0
- data/app/views/spina/admin/users/index.html.erb +15 -0
- data/app/views/spina/admin/users/new.html.erb +1 -0
- data/app/views/spina/user_mailer/forgot_password.html.erb +1 -1
- data/app/views/spina/user_mailer/forgot_password.txt.erb +1 -1
- data/config/locales/TH.yml +98 -2
- data/config/locales/bg.yml +98 -2
- data/config/locales/de.yml +184 -78
- data/config/locales/en.yml +106 -2
- data/config/locales/es.yml +139 -41
- data/config/locales/fr.yml +98 -2
- data/config/locales/id.yml +98 -2
- data/config/locales/it.yml +107 -11
- data/config/locales/nl.yml +103 -5
- data/config/locales/pl.yml +98 -2
- data/config/locales/pt-BR.yml +98 -2
- data/config/locales/ro.yml +98 -2
- data/config/locales/ru.yml +205 -87
- data/config/locales/sv.yml +98 -2
- data/config/locales/tr.yml +98 -2
- data/config/locales/zh-CN.yml +98 -2
- data/config/routes.rb +31 -24
- data/lib/generators/spina/install_generator.rb +0 -1
- data/lib/generators/spina/templates/app/views/default/pages/homepage.html.erb +2 -0
- data/lib/generators/spina/templates/app/views/default/pages/show.html.erb +3 -0
- data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.erb +2 -0
- data/lib/generators/spina/templates/app/views/demo/pages/demo.html.erb +25 -0
- data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.erb +3 -0
- data/lib/generators/spina/templates/app/views/demo/pages/show.html.erb +3 -0
- data/lib/generators/spina/templates/app/views/demo/shared/_languages.html.erb +5 -0
- data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.erb +2 -0
- data/lib/generators/spina/templates/app/views/layouts/default/application.html.erb +12 -0
- data/lib/generators/spina/templates/app/views/layouts/demo/application.html.erb +13 -0
- data/lib/generators/spina/templates/config/initializers/mobility.rb +1 -0
- data/lib/generators/spina/templates/config/initializers/spina.rb +56 -12
- data/lib/generators/spina/templates/config/initializers/themes/default.rb +59 -37
- data/lib/generators/spina/templates/config/initializers/themes/demo.rb +63 -64
- data/lib/spina.rb +62 -15
- data/lib/spina/admin_sectionable.rb +23 -0
- data/lib/spina/attr_json_monkeypatch.rb +28 -0
- data/lib/spina/authentication/basic.rb +24 -0
- data/lib/spina/authentication/sessions.rb +32 -0
- data/lib/spina/engine.rb +23 -9
- data/lib/spina/plugin.rb +7 -1
- data/lib/spina/railtie.rb +5 -1
- data/lib/spina/tailwind_purger.rb +147 -0
- data/lib/spina/theme.rb +14 -5
- data/lib/spina/version.rb +1 -1
- data/lib/tasks/spina_tasks.rake +36 -0
- metadata +694 -192
- data/app/assets/config/spina_manifest.js +0 -5
- data/app/assets/fonts/spina/ics_spina.eot +0 -0
- data/app/assets/fonts/spina/ics_spina.svg +0 -380
- data/app/assets/fonts/spina/ics_spina.ttf +0 -0
- data/app/assets/fonts/spina/ics_spina.woff +0 -0
- data/app/assets/fonts/spina/ics_spina.woff2 +0 -0
- data/app/assets/images/spina/arrow-left.svg +0 -1
- data/app/assets/images/spina/arrow-right.svg +0 -1
- data/app/assets/images/spina/datepicker.svg +0 -1
- data/app/assets/images/spina/divider.svg +0 -1
- data/app/assets/images/spina/media_folder_placeholder.svg +0 -1
- data/app/assets/javascripts/spina/admin/application.js +0 -48
- data/app/assets/javascripts/spina/admin/confirm_delete.coffee.erb +0 -24
- data/app/assets/javascripts/spina/admin/controllers/attachment_picker_controller.js +0 -15
- data/app/assets/javascripts/spina/admin/controllers/gallery_select_controller.js +0 -52
- data/app/assets/javascripts/spina/admin/controllers/image_form_controller.js +0 -22
- data/app/assets/javascripts/spina/admin/controllers/infinite_scroll_controller.js +0 -38
- data/app/assets/javascripts/spina/admin/controllers/media_picker_controller.js +0 -171
- data/app/assets/javascripts/spina/admin/controllers/modal_controller.js +0 -18
- data/app/assets/javascripts/spina/admin/controllers/page_collapse_controller.js +0 -35
- data/app/assets/javascripts/spina/admin/controllers/repeater_form_controller.js +0 -38
- data/app/assets/javascripts/spina/admin/dropdown.coffee +0 -75
- data/app/assets/javascripts/spina/admin/forms.coffee +0 -7
- data/app/assets/javascripts/spina/admin/media_gallery.coffee +0 -62
- data/app/assets/javascripts/spina/admin/modal.coffee +0 -53
- data/app/assets/javascripts/spina/admin/navigation.coffee +0 -45
- data/app/assets/javascripts/spina/admin/notifications.coffee +0 -7
- data/app/assets/javascripts/spina/admin/pages.coffee.erb +0 -65
- data/app/assets/javascripts/spina/admin/scaffold.coffee +0 -87
- data/app/assets/javascripts/spina/admin/switch.coffee +0 -43
- data/app/assets/javascripts/spina/admin/tabs.coffee +0 -13
- data/app/assets/javascripts/spina/admin/trix.coffee.erb +0 -114
- data/app/assets/javascripts/spina/admin/uploads.coffee +0 -35
- data/app/assets/stylesheets/spina.sass +0 -564
- data/app/assets/stylesheets/spina/_admin_editing.sass +0 -21
- data/app/assets/stylesheets/spina/_buttons.sass +0 -393
- data/app/assets/stylesheets/spina/_configuration.sass.erb +0 -23
- data/app/assets/stylesheets/spina/_custom_animations.sass +0 -61
- data/app/assets/stylesheets/spina/_fonts.sass +0 -54
- data/app/assets/stylesheets/spina/_forms.sass +0 -893
- data/app/assets/stylesheets/spina/_gallery.sass +0 -405
- data/app/assets/stylesheets/spina/_ics_spina.scss +0 -70
- data/app/assets/stylesheets/spina/_labels.sass +0 -30
- data/app/assets/stylesheets/spina/_login.sass +0 -52
- data/app/assets/stylesheets/spina/_media_picker.sass +0 -133
- data/app/assets/stylesheets/spina/_mixins.sass +0 -5
- data/app/assets/stylesheets/spina/_modal.sass +0 -195
- data/app/assets/stylesheets/spina/_normalize.scss +0 -396
- data/app/assets/stylesheets/spina/_notifications.sass +0 -68
- data/app/assets/stylesheets/spina/_pages.sass +0 -131
- data/app/assets/stylesheets/spina/_sortable_lists.sass +0 -190
- data/app/assets/stylesheets/spina/_tables.sass +0 -308
- data/app/assets/stylesheets/spina/_trix_custom.sass +0 -224
- data/app/assets/stylesheets/spina/_wizard.sass +0 -122
- data/app/assets/stylesheets/spina/admin/application.css.sass +0 -7
- data/app/assets/stylesheets/spina_front_end.sass +0 -19
- data/app/controllers/concerns/spina/current_methods.rb +0 -26
- data/app/helpers/spina/admin/admin_helper.rb +0 -11
- data/app/helpers/spina/admin_nav_helper.rb +0 -7
- data/app/views/layouts/spina/admin/admin.html.haml +0 -34
- data/app/views/layouts/spina/admin/media_library.html.haml +0 -17
- data/app/views/layouts/spina/admin/pages.html.haml +0 -34
- data/app/views/layouts/spina/admin/resources.html.haml +0 -10
- data/app/views/layouts/spina/login.html.haml +0 -18
- data/app/views/spina/admin/accounts/_form.html.haml +0 -54
- data/app/views/spina/admin/accounts/analytics.html.haml +0 -28
- data/app/views/spina/admin/accounts/edit.html.haml +0 -1
- data/app/views/spina/admin/accounts/social.html.haml +0 -52
- data/app/views/spina/admin/accounts/style.html.haml +0 -35
- data/app/views/spina/admin/attachments/_attachment.html.haml +0 -7
- data/app/views/spina/admin/attachments/create.js.erb +0 -1
- data/app/views/spina/admin/attachments/index.html.haml +0 -16
- data/app/views/spina/admin/images/_form.html.haml +0 -5
- data/app/views/spina/admin/images/_image.html.haml +0 -8
- data/app/views/spina/admin/images/create.js.erb +0 -8
- data/app/views/spina/admin/images/index.html.haml +0 -24
- data/app/views/spina/admin/images/index.js.erb +0 -7
- data/app/views/spina/admin/media_folders/_form.html.haml +0 -17
- data/app/views/spina/admin/media_folders/_media_folder.html.haml +0 -8
- data/app/views/spina/admin/media_folders/edit.js.erb +0 -1
- data/app/views/spina/admin/media_folders/new.js.erb +0 -1
- data/app/views/spina/admin/media_folders/show.html.haml +0 -18
- data/app/views/spina/admin/media_picker/_image.html.haml +0 -3
- data/app/views/spina/admin/media_picker/_media_picker.html.haml +0 -32
- data/app/views/spina/admin/media_picker/_media_picker_grid.html.haml +0 -25
- data/app/views/spina/admin/media_picker/_modal.html.haml +0 -63
- data/app/views/spina/admin/media_picker/infinite_scroll.js.erb +0 -5
- data/app/views/spina/admin/media_picker/select.js.erb +0 -33
- data/app/views/spina/admin/media_picker/show.html.haml +0 -1
- data/app/views/spina/admin/media_picker/show.js.erb +0 -1
- data/app/views/spina/admin/navigations/_navigation_item_nested_list.html.haml +0 -7
- data/app/views/spina/admin/navigations/_page.html.haml +0 -8
- data/app/views/spina/admin/navigations/edit.html.haml +0 -22
- data/app/views/spina/admin/navigations/show.html.haml +0 -7
- data/app/views/spina/admin/pages/_form.html.haml +0 -52
- data/app/views/spina/admin/pages/_form_advanced.html.haml +0 -59
- data/app/views/spina/admin/pages/_form_page_content.html.haml +0 -17
- data/app/views/spina/admin/pages/_form_page_seo.html.haml +0 -32
- data/app/views/spina/admin/pages/_page.html.haml +0 -16
- data/app/views/spina/admin/pages/_page_nested_list.html.haml +0 -6
- data/app/views/spina/admin/pages/children.html.haml +0 -4
- data/app/views/spina/admin/pages/create.js.coffee +0 -0
- data/app/views/spina/admin/pages/edit.html.haml +0 -1
- data/app/views/spina/admin/pages/index.html.haml +0 -36
- data/app/views/spina/admin/pages/new.html.haml +0 -1
- data/app/views/spina/admin/pages/update.js.coffee +0 -1
- data/app/views/spina/admin/parts/attachments/_form.html.haml +0 -6
- data/app/views/spina/admin/parts/image_collections/_fields.html.haml +0 -7
- data/app/views/spina/admin/parts/image_collections/_form.html.haml +0 -12
- data/app/views/spina/admin/parts/images/_form.html.haml +0 -18
- data/app/views/spina/admin/parts/lines/_form.html.haml +0 -2
- data/app/views/spina/admin/parts/multi_lines/_form.html.haml +0 -2
- data/app/views/spina/admin/parts/options/_form.html.haml +0 -3
- data/app/views/spina/admin/parts/repeaters/_fields.html.haml +0 -15
- data/app/views/spina/admin/parts/repeaters/_form.html.haml +0 -17
- data/app/views/spina/admin/parts/texts/_form.html.haml +0 -6
- data/app/views/spina/admin/password_resets/edit.html.haml +0 -13
- data/app/views/spina/admin/password_resets/new.html.haml +0 -13
- data/app/views/spina/admin/resources/edit.html.haml +0 -65
- data/app/views/spina/admin/resources/show.html.haml +0 -27
- data/app/views/spina/admin/sessions/new.html.haml +0 -14
- data/app/views/spina/admin/settings/_string_field.html.haml +0 -4
- data/app/views/spina/admin/settings/_wysiwyg_field.html.haml +0 -4
- data/app/views/spina/admin/settings/edit.html.haml +0 -13
- data/app/views/spina/admin/shared/_breadcrumbs.html.haml +0 -1
- data/app/views/spina/admin/shared/_notifications.html.haml +0 -29
- data/app/views/spina/admin/shared/_primary_navigation.html.haml +0 -68
- data/app/views/spina/admin/shared/_rich_text_field.html.haml +0 -4
- data/app/views/spina/admin/users/_form.html.haml +0 -58
- data/app/views/spina/admin/users/edit.html.haml +0 -1
- data/app/views/spina/admin/users/index.html.haml +0 -30
- data/app/views/spina/admin/users/new.html.haml +0 -1
- data/app/views/spina/pages/robots.text.erb +0 -4
- data/app/views/spina/shared/_admin_bar.html.haml +0 -4
- data/app/views/spina/shared/_analytics.html.erb +0 -11
- data/app/views/spina/shared/_google_site_verification.html.haml +0 -1
- data/app/views/spina/shared/_navigation.html.haml +0 -3
- data/app/views/spina/shared/_social.html.haml +0 -5
- data/app/views/spina/shared/_spina_link.html.haml +0 -2
- data/config/fontcustom.yml +0 -95
- data/lib/generators/spina/templates/app/assets/stylesheets/default/application.css.sass +0 -0
- data/lib/generators/spina/templates/app/assets/stylesheets/demo/application.css.sass +0 -69
- data/lib/generators/spina/templates/app/views/default/pages/homepage.html.haml +0 -3
- data/lib/generators/spina/templates/app/views/default/pages/show.html.haml +0 -3
- data/lib/generators/spina/templates/app/views/default/shared/_navigation.html.haml +0 -2
- data/lib/generators/spina/templates/app/views/demo/pages/demo.html.haml +0 -20
- data/lib/generators/spina/templates/app/views/demo/pages/homepage.html.haml +0 -2
- data/lib/generators/spina/templates/app/views/demo/pages/show.html.haml +0 -3
- data/lib/generators/spina/templates/app/views/demo/shared/_languages.html.haml +0 -2
- data/lib/generators/spina/templates/app/views/demo/shared/_navigation.html.haml +0 -2
- data/lib/generators/spina/templates/app/views/layouts/default/application.html.haml +0 -10
- data/lib/generators/spina/templates/app/views/layouts/demo/application.html.haml +0 -11
- data/lib/spina/fontcustom/_ics_spina.scss +0 -5
- data/vendor/assets/javascripts/spina/jquery.customfileinput.js +0 -85
- data/vendor/assets/javascripts/spina/jquery.nestable.js +0 -485
- data/vendor/assets/javascripts/spina/jquery.ui.js +0 -6
- data/vendor/assets/javascripts/spina/sortable.js +0 -2
- data/vendor/assets/javascripts/spina/stimulus.umd.js +0 -5
- data/vendor/assets/javascripts/spina/trix.js +0 -21
- data/vendor/assets/stylesheets/spina/_animate.scss +0 -1
- data/vendor/assets/stylesheets/spina/_normalize.scss +0 -396
- data/vendor/assets/stylesheets/spina/_trix.css +0 -369
@@ -1,31 +1,35 @@
|
|
1
1
|
module Spina
|
2
2
|
module Admin
|
3
3
|
class AdminController < ActionController::Base
|
4
|
-
include Spina
|
4
|
+
include Spina.config.authentication.constantize
|
5
|
+
include Spina::CurrentAccount, Spina::CurrentTheme
|
5
6
|
|
6
7
|
helper Spina::Engine.helpers
|
7
8
|
|
9
|
+
before_action :add_view_path
|
8
10
|
before_action :set_admin_locale
|
9
|
-
before_action :
|
10
|
-
|
11
|
+
before_action :authenticate
|
12
|
+
|
13
|
+
admin_section :content
|
14
|
+
|
11
15
|
def current_admin_path
|
12
16
|
request.fullpath[%r{/#{ Spina.config.backend_path }(.*)}, 1]
|
13
17
|
end
|
14
18
|
helper_method :current_admin_path
|
15
19
|
|
16
20
|
private
|
21
|
+
|
22
|
+
def render_flash
|
23
|
+
render turbo_stream: turbo_stream.update("flash", partial: "spina/admin/shared/flash")
|
24
|
+
end
|
17
25
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
def authorize_admin
|
27
|
-
render status: 401 unless current_spina_user.admin?
|
28
|
-
end
|
26
|
+
def set_admin_locale
|
27
|
+
I18n.locale = I18n.default_locale
|
28
|
+
end
|
29
|
+
|
30
|
+
def add_view_path
|
31
|
+
prepend_view_path Spina::Engine.root.join('app/views/spina/admin')
|
32
|
+
end
|
29
33
|
|
30
34
|
end
|
31
35
|
end
|
@@ -3,11 +3,16 @@ module Spina
|
|
3
3
|
class AttachmentsController < AdminController
|
4
4
|
before_action :set_breadcrumbs
|
5
5
|
|
6
|
-
layout "spina/admin/media_library"
|
7
|
-
|
8
6
|
def index
|
9
|
-
|
10
|
-
|
7
|
+
@attachments = Attachment.sorted.with_attached_file.page(params[:page]).per(25)
|
8
|
+
end
|
9
|
+
|
10
|
+
def show
|
11
|
+
@attachment = Attachment.find(params[:id])
|
12
|
+
end
|
13
|
+
|
14
|
+
def edit
|
15
|
+
@attachment = Attachment.find(params[:id])
|
11
16
|
end
|
12
17
|
|
13
18
|
def create
|
@@ -16,18 +21,34 @@ module Spina
|
|
16
21
|
attachment.file.attach(file)
|
17
22
|
attachment
|
18
23
|
end
|
24
|
+
|
25
|
+
respond_to do |format|
|
26
|
+
format.turbo_stream { render turbo_stream: turbo_stream.prepend("attachments", partial: "attachment", collection: @attachments)}
|
27
|
+
format.html { redirect_to spina.admin_attachments_url }
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def update
|
32
|
+
@attachment = Attachment.find(params[:id])
|
33
|
+
if params[:filename].present?
|
34
|
+
extension = @attachment.file.filename.extension
|
35
|
+
filename = "#{params[:filename]}.#{extension}"
|
36
|
+
@attachment.file.blob.update(filename: filename)
|
37
|
+
end
|
38
|
+
|
39
|
+
redirect_to [:admin, @attachment]
|
19
40
|
end
|
20
41
|
|
21
42
|
def destroy
|
22
43
|
@attachment = Attachment.find(params[:id])
|
23
44
|
@attachment.destroy
|
24
|
-
|
45
|
+
render turbo_stream: turbo_stream.remove(@attachment)
|
25
46
|
end
|
26
47
|
|
27
48
|
private
|
28
49
|
|
29
50
|
def set_breadcrumbs
|
30
|
-
add_breadcrumb I18n.t('spina.website.media_library')
|
51
|
+
add_breadcrumb I18n.t('spina.website.media_library')
|
31
52
|
end
|
32
53
|
|
33
54
|
def attachment_params
|
@@ -1,14 +1,20 @@
|
|
1
1
|
module Spina
|
2
2
|
module Admin
|
3
3
|
class ImagesController < AdminController
|
4
|
+
before_action :set_media_folder
|
4
5
|
before_action :set_breadcrumbs
|
5
6
|
|
6
|
-
layout "spina/admin/media_library"
|
7
|
-
|
8
7
|
def index
|
9
|
-
add_breadcrumb I18n.t('spina.website.images'), admin_images_path
|
10
8
|
@media_folders = MediaFolder.order(:name)
|
11
|
-
@images = Image.sorted.where(
|
9
|
+
@images = Image.sorted.where(media_folder: @media_folder).with_attached_file.page(params[:page]).per(25)
|
10
|
+
end
|
11
|
+
|
12
|
+
def show
|
13
|
+
@image = Image.find(params[:id])
|
14
|
+
end
|
15
|
+
|
16
|
+
def edit
|
17
|
+
@image = Image.find(params[:id])
|
12
18
|
end
|
13
19
|
|
14
20
|
# There's no file validation yet in ActiveStorage
|
@@ -18,7 +24,7 @@ module Spina
|
|
18
24
|
def create
|
19
25
|
@images = params[:image][:files].map do |file|
|
20
26
|
# Create the image and attach the file
|
21
|
-
image = Image.create(media_folder_id:
|
27
|
+
image = Image.create(media_folder_id: image_params[:media_folder_id])
|
22
28
|
image.file.attach(file)
|
23
29
|
|
24
30
|
# Was it not an image after all? DESTROY IT
|
@@ -26,24 +32,54 @@ module Spina
|
|
26
32
|
|
27
33
|
image
|
28
34
|
end.compact
|
35
|
+
|
36
|
+
if params[:modal]
|
37
|
+
redirect_to spina.admin_media_picker_path(media_folder_id: image_params[:media_folder_id])
|
38
|
+
else
|
39
|
+
render turbo_stream: turbo_stream.prepend("images", partial: "image", collection: @images)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def update
|
44
|
+
@image = Image.find(params[:id])
|
45
|
+
@image.update(image_params) if params[:image].present?
|
46
|
+
if params[:filename].present?
|
47
|
+
extension = @image.file.filename.extension
|
48
|
+
filename = "#{params[:filename]}.#{extension}"
|
49
|
+
@image.file.blob.update(filename: filename)
|
50
|
+
end
|
51
|
+
if @image.saved_change_to_media_folder_id?
|
52
|
+
render :update
|
53
|
+
else
|
54
|
+
redirect_to [:admin, @image]
|
55
|
+
end
|
29
56
|
end
|
30
57
|
|
31
58
|
def destroy
|
32
59
|
@image = Image.find(params[:id])
|
33
60
|
@image.destroy
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
def add_to_media_folder
|
38
|
-
@media_folder = MediaFolder.find(params[:id])
|
39
|
-
@media_folder.images << Image.find(params[:image_id])
|
40
|
-
render json: @media_folder
|
61
|
+
render turbo_stream: turbo_stream.remove(@image)
|
41
62
|
end
|
42
63
|
|
43
64
|
private
|
44
65
|
|
45
66
|
def set_breadcrumbs
|
46
|
-
|
67
|
+
if @media_folder.present?
|
68
|
+
add_breadcrumb I18n.t('spina.website.media_library'), admin_images_path, class: 'text-gray-400'
|
69
|
+
add_breadcrumb @media_folder.name
|
70
|
+
else
|
71
|
+
add_breadcrumb I18n.t('spina.website.media_library')
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def set_media_folder
|
76
|
+
if params[:media_folder_id].present?
|
77
|
+
@media_folder = MediaFolder.find(params[:media_folder_id])
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def image_params
|
82
|
+
params.require(:image).permit(:media_folder_id)
|
47
83
|
end
|
48
84
|
|
49
85
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Spina::Admin
|
2
|
+
class LayoutController < AdminController
|
3
|
+
before_action :set_account
|
4
|
+
before_action :set_locale
|
5
|
+
before_action :set_breadcrumb
|
6
|
+
|
7
|
+
admin_section :content
|
8
|
+
|
9
|
+
def edit
|
10
|
+
end
|
11
|
+
|
12
|
+
def update
|
13
|
+
if @account.update(layout_params)
|
14
|
+
redirect_to spina.edit_admin_layout_path, flash: {success: t('spina.layout.saved')}
|
15
|
+
else
|
16
|
+
flash.now[:error] = t('spina.layout.couldnt_be_saved')
|
17
|
+
render partial: 'error', status: :unprocessable_entity
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
# Permit all attributes when editing your layout
|
24
|
+
def layout_params
|
25
|
+
params.require(:account).permit!
|
26
|
+
end
|
27
|
+
|
28
|
+
def set_breadcrumb
|
29
|
+
add_breadcrumb t('spina.layout.layout')
|
30
|
+
end
|
31
|
+
|
32
|
+
def set_account
|
33
|
+
@account = current_account
|
34
|
+
end
|
35
|
+
|
36
|
+
def set_locale
|
37
|
+
@locale = params[:locale] || I18n.default_locale
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module Spina
|
2
2
|
module Admin
|
3
3
|
class MediaFoldersController < AdminController
|
4
|
-
layout "spina/admin/media_library"
|
5
4
|
|
6
5
|
def new
|
7
6
|
@media_folder = MediaFolder.new
|
@@ -11,24 +10,22 @@ module Spina
|
|
11
10
|
@media_folder = MediaFolder.find(params[:id])
|
12
11
|
end
|
13
12
|
|
14
|
-
def show
|
15
|
-
add_breadcrumb I18n.t('spina.website.media_library'), admin_media_library_path
|
16
|
-
add_breadcrumb I18n.t('spina.website.images'), spina.admin_images_path
|
17
|
-
@media_folder = MediaFolder.find(params[:id])
|
18
|
-
add_breadcrumb @media_folder.name
|
19
|
-
@images = @media_folder.images.sorted.page(params[:page])
|
20
|
-
end
|
21
|
-
|
22
13
|
def create
|
23
14
|
@media_folder = MediaFolder.new(media_folder_params)
|
24
|
-
@media_folder.save
|
25
|
-
|
15
|
+
if @media_folder.save
|
16
|
+
redirect_to spina.admin_images_path
|
17
|
+
else
|
18
|
+
render turbo_stream: turbo_stream.update(view_context.dom_id(@media_folder, :form), partial: "form")
|
19
|
+
end
|
26
20
|
end
|
27
21
|
|
28
22
|
def update
|
29
23
|
@media_folder = MediaFolder.find(params[:id])
|
30
|
-
@media_folder.update(media_folder_params)
|
31
|
-
|
24
|
+
if @media_folder.update(media_folder_params)
|
25
|
+
redirect_to spina.admin_media_folder_images_path(@media_folder)
|
26
|
+
else
|
27
|
+
render turbo_stream: turbo_stream.update(view_context.dom_id(@media_folder, :form), partial: "form")
|
28
|
+
end
|
32
29
|
end
|
33
30
|
|
34
31
|
def destroy
|
@@ -1,39 +1,15 @@
|
|
1
1
|
module Spina
|
2
2
|
module Admin
|
3
3
|
class MediaPickerController < AdminController
|
4
|
-
|
5
|
-
before_action :set_selected_images
|
6
|
-
|
4
|
+
|
7
5
|
def show
|
8
|
-
@images = Image.
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
@images = @images.reorder(Arel.sql("CASE WHEN id IN(#{selected_ids.join(', ')}) THEN 0 ELSE 1 END, created_at DESC"))
|
13
|
-
end
|
14
|
-
|
15
|
-
respond_to do |format|
|
16
|
-
format.html { render layout: false }
|
17
|
-
format.js { render :infinite_scroll if params[:page].present? }
|
6
|
+
@images = Spina::Image.sorted.with_attached_file.page(params[:page]).per(16)
|
7
|
+
|
8
|
+
if @media_folder = Spina::MediaFolder.find_by(id: params[:media_folder_id])
|
9
|
+
@images = @images.where(media_folder: @media_folder)
|
18
10
|
end
|
19
11
|
end
|
20
|
-
|
21
|
-
private
|
22
|
-
|
23
|
-
def set_media_folders
|
24
|
-
@media_folders = MediaFolder.order(:name).joins(:images).uniq
|
25
|
-
@media_folder = MediaFolder.find(params[:media_folder_id]) if params[:media_folder_id].present?
|
26
|
-
end
|
27
|
-
|
28
|
-
def set_selected_images
|
29
|
-
@selected_images = Image.where(id: selected_ids).sort_by{|image| selected_ids.index(image.id)}
|
30
|
-
end
|
31
|
-
|
32
|
-
def selected_ids
|
33
|
-
params[:selected_ids].present? ? params[:selected_ids].map(&:to_i) : []
|
34
|
-
end
|
35
|
-
helper_method :selected_ids
|
36
|
-
|
12
|
+
|
37
13
|
end
|
38
14
|
end
|
39
15
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Spina
|
2
|
+
module Admin
|
3
|
+
class MovePagesController < AdminController
|
4
|
+
|
5
|
+
def new
|
6
|
+
@page = Page.find(params[:page_id])
|
7
|
+
end
|
8
|
+
|
9
|
+
def update
|
10
|
+
@page = Page.find(params[:page_id])
|
11
|
+
@page.update(page_params)
|
12
|
+
flash[:success] = t('spina.pages.moved')
|
13
|
+
redirect_back fallback_location: spina.edit_admin_page_url(@page)
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def page_params
|
19
|
+
params.require(:page).permit(:parent_id, :resource_id)
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Spina
|
2
|
+
module Admin
|
3
|
+
class NavigationItemsController < AdminController
|
4
|
+
before_action :set_navigation
|
5
|
+
|
6
|
+
def new
|
7
|
+
@navigation_item = @navigation.navigation_items.new(parent_id: params[:parent_id])
|
8
|
+
@pages = Page.sorted
|
9
|
+
end
|
10
|
+
|
11
|
+
def create
|
12
|
+
@navigation_item = NavigationItem.new(navigation_item_params)
|
13
|
+
if @navigation_item.save
|
14
|
+
render turbo_stream: turbo_stream.append(@navigation_item.parent || @navigation, @navigation_item)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def destroy
|
19
|
+
@navigation_item = @navigation.navigation_items.find(params[:id])
|
20
|
+
@navigation_item.destroy
|
21
|
+
render turbo_stream: turbo_stream.remove(view_context.dom_id(@navigation_item, :container))
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def navigation_item_params
|
27
|
+
params.require(:navigation_item).permit(:page_id, :parent_id).merge(navigation_id: @navigation.id)
|
28
|
+
end
|
29
|
+
|
30
|
+
def set_navigation
|
31
|
+
@navigation = Navigation.find(params[:navigation_id])
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -1,35 +1,38 @@
|
|
1
1
|
module Spina
|
2
2
|
module Admin
|
3
3
|
class NavigationsController < AdminController
|
4
|
-
|
5
|
-
|
6
|
-
before_action :set_breadcrumb, except: [:show]
|
4
|
+
before_action :set_breadcrumb
|
7
5
|
before_action :set_navigation, only: [:show, :edit, :update]
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
|
7
|
+
admin_section :content
|
8
|
+
|
9
|
+
def index
|
10
|
+
navigation = Spina::Navigation.order(:position).first
|
11
|
+
if navigation
|
12
|
+
redirect_to spina.edit_admin_navigation_path(navigation)
|
13
|
+
end
|
11
14
|
end
|
12
15
|
|
13
|
-
def edit
|
14
|
-
|
15
|
-
add_breadcrumb t('spina.edit')
|
16
|
+
def edit
|
17
|
+
@navigations = Spina::Navigation.order(:position)
|
16
18
|
render layout: 'spina/admin/admin'
|
17
19
|
end
|
18
20
|
|
19
21
|
def update
|
20
22
|
if @navigation.update(navigation_params)
|
21
|
-
redirect_to spina.
|
23
|
+
redirect_to spina.edit_admin_navigation_path(@navigation)
|
22
24
|
else
|
23
25
|
render :edit
|
24
26
|
end
|
25
27
|
end
|
26
28
|
|
27
29
|
def sort
|
28
|
-
params[:
|
29
|
-
|
30
|
-
update_navigation_item_position(parent_node[:id], parent_pos, nil)
|
30
|
+
params[:ids].each.with_index do |id, index|
|
31
|
+
NavigationItem.where(id: id).update_all(position: index + 1)
|
31
32
|
end
|
32
|
-
|
33
|
+
|
34
|
+
flash.now[:info] = t("spina.navigations.sorting_saved")
|
35
|
+
render_flash
|
33
36
|
end
|
34
37
|
|
35
38
|
private
|
@@ -48,11 +51,11 @@ module Spina
|
|
48
51
|
end
|
49
52
|
|
50
53
|
def set_breadcrumb
|
51
|
-
add_breadcrumb t('spina.
|
54
|
+
add_breadcrumb t('spina.navigations.navigations')
|
52
55
|
end
|
53
56
|
|
54
57
|
def navigation_params
|
55
|
-
params.require(:navigation).permit(:auto_add_pages, page_ids: [])
|
58
|
+
params.require(:navigation).permit(:label, :auto_add_pages, page_ids: [])
|
56
59
|
end
|
57
60
|
|
58
61
|
def set_navigation
|