plutonium 0.6.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.node-version +1 -0
- data/README copy.md +1 -2
- data/README.md +19 -5
- data/app/assets/css/plutonium.css +3 -0
- data/app/assets/icons/flags/ghana.svg +49 -0
- data/app/assets/icons/outline/address-book.svg +3 -0
- data/app/assets/icons/outline/adjustments-horizontal.svg +3 -0
- data/app/assets/icons/outline/adjustments-vertical.svg +3 -0
- data/app/assets/icons/outline/align-center.svg +3 -0
- data/app/assets/icons/outline/angle-down.svg +3 -0
- data/app/assets/icons/outline/angle-left.svg +3 -0
- data/app/assets/icons/outline/angle-right.svg +3 -0
- data/app/assets/icons/outline/angle-up.svg +3 -0
- data/app/assets/icons/outline/annotation.svg +3 -0
- data/app/assets/icons/outline/archive-arrow-down.svg +3 -0
- data/app/assets/icons/outline/archive.svg +3 -0
- data/app/assets/icons/outline/arrow-down-to-bracket.svg +3 -0
- data/app/assets/icons/outline/arrow-down.svg +3 -0
- data/app/assets/icons/outline/arrow-left-to-bracket.svg +3 -0
- data/app/assets/icons/outline/arrow-left.svg +3 -0
- data/app/assets/icons/outline/arrow-right-alt.svg +3 -0
- data/app/assets/icons/outline/arrow-right-to-bracket.svg +3 -0
- data/app/assets/icons/outline/arrow-right.svg +3 -0
- data/app/assets/icons/outline/arrow-sort-letters.svg +3 -0
- data/app/assets/icons/outline/arrow-up-down.svg +3 -0
- data/app/assets/icons/outline/arrow-up-from-bracket.svg +3 -0
- data/app/assets/icons/outline/arrow-up-right-down-left.svg +3 -0
- data/app/assets/icons/outline/arrow-up-right-from-square.svg +3 -0
- data/app/assets/icons/outline/arrow-up.svg +3 -0
- data/app/assets/icons/outline/arrows-repeat-count.svg +3 -0
- data/app/assets/icons/outline/arrows-repeat.svg +3 -0
- data/app/assets/icons/outline/atom.svg +3 -0
- data/app/assets/icons/outline/backward-step.svg +3 -0
- data/app/assets/icons/outline/badge-check.svg +3 -0
- data/app/assets/icons/outline/bars-from-left.svg +3 -0
- data/app/assets/icons/outline/bars.svg +3 -0
- data/app/assets/icons/outline/bell-active-alt.svg +3 -0
- data/app/assets/icons/outline/bell-active.svg +3 -0
- data/app/assets/icons/outline/bell-ring.svg +3 -0
- data/app/assets/icons/outline/bell.svg +3 -0
- data/app/assets/icons/outline/blender-phone.svg +3 -0
- data/app/assets/icons/outline/book-open.svg +3 -0
- data/app/assets/icons/outline/book.svg +3 -0
- data/app/assets/icons/outline/bookmark.svg +3 -0
- data/app/assets/icons/outline/brain.svg +3 -0
- data/app/assets/icons/outline/briefcase.svg +3 -0
- data/app/assets/icons/outline/bug.svg +3 -0
- data/app/assets/icons/outline/building.svg +3 -0
- data/app/assets/icons/outline/bullhorn.svg +3 -0
- data/app/assets/icons/outline/calendar-edit.svg +3 -0
- data/app/assets/icons/outline/calendar-month.svg +3 -0
- data/app/assets/icons/outline/calendar-plus.svg +3 -0
- data/app/assets/icons/outline/calendar-week.svg +3 -0
- data/app/assets/icons/outline/camera-photo.svg +4 -0
- data/app/assets/icons/outline/caption.svg +3 -0
- data/app/assets/icons/outline/caret-down.svg +3 -0
- data/app/assets/icons/outline/caret-left.svg +3 -0
- data/app/assets/icons/outline/caret-right.svg +3 -0
- data/app/assets/icons/outline/caret-sort.svg +3 -0
- data/app/assets/icons/outline/caret-up.svg +3 -0
- data/app/assets/icons/outline/cart-plus-alt.svg +3 -0
- data/app/assets/icons/outline/cart-plus.svg +3 -0
- data/app/assets/icons/outline/cart.svg +3 -0
- data/app/assets/icons/outline/cash.svg +3 -0
- data/app/assets/icons/outline/chart-line-down.svg +3 -0
- data/app/assets/icons/outline/chart-line-up.svg +3 -0
- data/app/assets/icons/outline/chart-mixed-dollar.svg +3 -0
- data/app/assets/icons/outline/chart-mixed.svg +3 -0
- data/app/assets/icons/outline/chart-pie.svg +4 -0
- data/app/assets/icons/outline/chart.svg +3 -0
- data/app/assets/icons/outline/check-circle.svg +3 -0
- data/app/assets/icons/outline/check-plus-circle.svg +3 -0
- data/app/assets/icons/outline/check.svg +3 -0
- data/app/assets/icons/outline/chevron-double-down.svg +3 -0
- data/app/assets/icons/outline/chevron-double-left.svg +3 -0
- data/app/assets/icons/outline/chevron-double-right.svg +3 -0
- data/app/assets/icons/outline/chevron-double-up.svg +3 -0
- data/app/assets/icons/outline/chevron-down.svg +3 -0
- data/app/assets/icons/outline/chevron-left.svg +3 -0
- data/app/assets/icons/outline/chevron-right.svg +3 -0
- data/app/assets/icons/outline/chevron-sort.svg +3 -0
- data/app/assets/icons/outline/chevron-up.svg +3 -0
- data/app/assets/icons/outline/circle-pause.svg +3 -0
- data/app/assets/icons/outline/circle-plus.svg +3 -0
- data/app/assets/icons/outline/clapperboard-play.svg +3 -0
- data/app/assets/icons/outline/clipboard-check.svg +3 -0
- data/app/assets/icons/outline/clipboard-list.svg +3 -0
- data/app/assets/icons/outline/clipboard.svg +3 -0
- data/app/assets/icons/outline/clock.svg +3 -0
- data/app/assets/icons/outline/close-circle.svg +3 -0
- data/app/assets/icons/outline/close.svg +3 -0
- data/app/assets/icons/outline/cloud-arrow-up.svg +3 -0
- data/app/assets/icons/outline/code-branch.svg +3 -0
- data/app/assets/icons/outline/code-fork.svg +3 -0
- data/app/assets/icons/outline/code-merge.svg +3 -0
- data/app/assets/icons/outline/code-pull-request.svg +3 -0
- data/app/assets/icons/outline/code.svg +3 -0
- data/app/assets/icons/outline/cog.svg +4 -0
- data/app/assets/icons/outline/column.svg +3 -0
- data/app/assets/icons/outline/command.svg +3 -0
- data/app/assets/icons/outline/compress.svg +3 -0
- data/app/assets/icons/outline/computer-speaker.svg +3 -0
- data/app/assets/icons/outline/credit-card.svg +3 -0
- data/app/assets/icons/outline/database.svg +3 -0
- data/app/assets/icons/outline/desktop-pc.svg +3 -0
- data/app/assets/icons/outline/dna.svg +3 -0
- data/app/assets/icons/outline/dollar.svg +3 -0
- data/app/assets/icons/outline/dots-horizontal.svg +3 -0
- data/app/assets/icons/outline/dots-vertical.svg +3 -0
- data/app/assets/icons/outline/download.svg +3 -0
- data/app/assets/icons/outline/draw-square.svg +3 -0
- data/app/assets/icons/outline/edit.svg +3 -0
- data/app/assets/icons/outline/envelope-open.svg +3 -0
- data/app/assets/icons/outline/envelope.svg +3 -0
- data/app/assets/icons/outline/euro.svg +3 -0
- data/app/assets/icons/outline/exclamation-circle.svg +3 -0
- data/app/assets/icons/outline/expand.svg +3 -0
- data/app/assets/icons/outline/eye-slash.svg +3 -0
- data/app/assets/icons/outline/eye.svg +4 -0
- data/app/assets/icons/outline/face-explode.svg +4 -0
- data/app/assets/icons/outline/face-grin-stars.svg +6 -0
- data/app/assets/icons/outline/face-grin.svg +3 -0
- data/app/assets/icons/outline/face-laugh.svg +3 -0
- data/app/assets/icons/outline/file-chart-bar.svg +3 -0
- data/app/assets/icons/outline/file-check.svg +3 -0
- data/app/assets/icons/outline/file-circle-plus.svg +3 -0
- data/app/assets/icons/outline/file-clone.svg +3 -0
- data/app/assets/icons/outline/file-code.svg +3 -0
- data/app/assets/icons/outline/file-copy-alt.svg +3 -0
- data/app/assets/icons/outline/file-copy.svg +3 -0
- data/app/assets/icons/outline/file-csv.svg +3 -0
- data/app/assets/icons/outline/file-export.svg +3 -0
- data/app/assets/icons/outline/file-image.svg +4 -0
- data/app/assets/icons/outline/file-import.svg +3 -0
- data/app/assets/icons/outline/file-invoice.svg +3 -0
- data/app/assets/icons/outline/file-lines.svg +3 -0
- data/app/assets/icons/outline/file-music.svg +3 -0
- data/app/assets/icons/outline/file-paste.svg +3 -0
- data/app/assets/icons/outline/file-pdf.svg +3 -0
- data/app/assets/icons/outline/file-pen.svg +3 -0
- data/app/assets/icons/outline/file-ppt.svg +3 -0
- data/app/assets/icons/outline/file-search.svg +3 -0
- data/app/assets/icons/outline/file-shield.svg +3 -0
- data/app/assets/icons/outline/file-video.svg +3 -0
- data/app/assets/icons/outline/file-word.svg +3 -0
- data/app/assets/icons/outline/file-zip.svg +3 -0
- data/app/assets/icons/outline/file.svg +3 -0
- data/app/assets/icons/outline/filter.svg +3 -0
- data/app/assets/icons/outline/fingerprint.svg +3 -0
- data/app/assets/icons/outline/fire.svg +3 -0
- data/app/assets/icons/outline/flag.svg +3 -0
- data/app/assets/icons/outline/folder-arrow-right.svg +3 -0
- data/app/assets/icons/outline/folder-duplicate.svg +3 -0
- data/app/assets/icons/outline/folder-open.svg +3 -0
- data/app/assets/icons/outline/folder-plus.svg +3 -0
- data/app/assets/icons/outline/folder.svg +3 -0
- data/app/assets/icons/outline/forward-step.svg +3 -0
- data/app/assets/icons/outline/forward.svg +3 -0
- data/app/assets/icons/outline/gift-box.svg +3 -0
- data/app/assets/icons/outline/globe.svg +3 -0
- data/app/assets/icons/outline/grid-plus.svg +3 -0
- data/app/assets/icons/outline/grid.svg +3 -0
- data/app/assets/icons/outline/headphones.svg +3 -0
- data/app/assets/icons/outline/heart.svg +3 -0
- data/app/assets/icons/outline/home.svg +3 -0
- data/app/assets/icons/outline/hourglass.svg +3 -0
- data/app/assets/icons/outline/image.svg +3 -0
- data/app/assets/icons/outline/inbox-full.svg +3 -0
- data/app/assets/icons/outline/inbox.svg +3 -0
- data/app/assets/icons/outline/indent.svg +3 -0
- data/app/assets/icons/outline/info-circle.svg +3 -0
- data/app/assets/icons/outline/keyboard.svg +5 -0
- data/app/assets/icons/outline/label.svg +3 -0
- data/app/assets/icons/outline/landmark.svg +3 -0
- data/app/assets/icons/outline/layers.svg +3 -0
- data/app/assets/icons/outline/letter-bold.svg +3 -0
- data/app/assets/icons/outline/letter-italic.svg +3 -0
- data/app/assets/icons/outline/letter-underline.svg +3 -0
- data/app/assets/icons/outline/life-saver.svg +3 -0
- data/app/assets/icons/outline/lightbulb.svg +3 -0
- data/app/assets/icons/outline/link.svg +3 -0
- data/app/assets/icons/outline/list-music.svg +3 -0
- data/app/assets/icons/outline/list.svg +3 -0
- data/app/assets/icons/outline/lock-open.svg +3 -0
- data/app/assets/icons/outline/lock-time.svg +3 -0
- data/app/assets/icons/outline/lock.svg +3 -0
- data/app/assets/icons/outline/mail-box.svg +3 -0
- data/app/assets/icons/outline/map-pin-alt.svg +4 -0
- data/app/assets/icons/outline/map-pin.svg +3 -0
- data/app/assets/icons/outline/message-caption.svg +3 -0
- data/app/assets/icons/outline/message-dots.svg +3 -0
- data/app/assets/icons/outline/messages.svg +3 -0
- data/app/assets/icons/outline/microphone.svg +3 -0
- data/app/assets/icons/outline/minimize.svg +3 -0
- data/app/assets/icons/outline/minus.svg +3 -0
- data/app/assets/icons/outline/mobile-phone.svg +3 -0
- data/app/assets/icons/outline/moon.svg +3 -0
- data/app/assets/icons/outline/newspaper.svg +3 -0
- data/app/assets/icons/outline/ordered-list.svg +3 -0
- data/app/assets/icons/outline/outdent.svg +3 -0
- data/app/assets/icons/outline/palette.svg +3 -0
- data/app/assets/icons/outline/paper-clip.svg +3 -0
- data/app/assets/icons/outline/paper-plane.svg +3 -0
- data/app/assets/icons/outline/paragraph.svg +3 -0
- data/app/assets/icons/outline/pause.svg +3 -0
- data/app/assets/icons/outline/pen-nib.svg +3 -0
- data/app/assets/icons/outline/pen.svg +3 -0
- data/app/assets/icons/outline/phone.svg +3 -0
- data/app/assets/icons/outline/play.svg +3 -0
- data/app/assets/icons/outline/plus.svg +3 -0
- data/app/assets/icons/outline/printer.svg +3 -0
- data/app/assets/icons/outline/profile-card.svg +3 -0
- data/app/assets/icons/outline/question-circle.svg +3 -0
- data/app/assets/icons/outline/quote.svg +3 -0
- data/app/assets/icons/outline/receipt.svg +3 -0
- data/app/assets/icons/outline/rectangle-list.svg +3 -0
- data/app/assets/icons/outline/redo.svg +3 -0
- data/app/assets/icons/outline/refresh.svg +3 -0
- data/app/assets/icons/outline/reply-all.svg +3 -0
- data/app/assets/icons/outline/reply.svg +3 -0
- data/app/assets/icons/outline/restore-window.svg +3 -0
- data/app/assets/icons/outline/rocket.svg +3 -0
- data/app/assets/icons/outline/ruler-combined.svg +3 -0
- data/app/assets/icons/outline/sale-percent.svg +3 -0
- data/app/assets/icons/outline/scale-balanced.svg +3 -0
- data/app/assets/icons/outline/search.svg +3 -0
- data/app/assets/icons/outline/share-all.svg +3 -0
- data/app/assets/icons/outline/share-nodes.svg +3 -0
- data/app/assets/icons/outline/shield-check.svg +3 -0
- data/app/assets/icons/outline/shield.svg +3 -0
- data/app/assets/icons/outline/shopping-bag.svg +3 -0
- data/app/assets/icons/outline/shuffle.svg +3 -0
- data/app/assets/icons/outline/sort-horizontal.svg +3 -0
- data/app/assets/icons/outline/sort.svg +3 -0
- data/app/assets/icons/outline/star-half-stroke.svg +3 -0
- data/app/assets/icons/outline/star-half.svg +3 -0
- data/app/assets/icons/outline/star.svg +3 -0
- data/app/assets/icons/outline/store.svg +3 -0
- data/app/assets/icons/outline/sun.svg +3 -0
- data/app/assets/icons/outline/swatchbook.svg +3 -0
- data/app/assets/icons/outline/table-column.svg +3 -0
- data/app/assets/icons/outline/table-row.svg +3 -0
- data/app/assets/icons/outline/tablet.svg +3 -0
- data/app/assets/icons/outline/tag.svg +3 -0
- data/app/assets/icons/outline/terminal.svg +3 -0
- data/app/assets/icons/outline/text-size.svg +3 -0
- data/app/assets/icons/outline/text-slash.svg +3 -0
- data/app/assets/icons/outline/thumbs-down.svg +3 -0
- data/app/assets/icons/outline/thumbs-up.svg +3 -0
- data/app/assets/icons/outline/ticket.svg +3 -0
- data/app/assets/icons/outline/trash-bin.svg +3 -0
- data/app/assets/icons/outline/truck.svg +3 -0
- data/app/assets/icons/outline/undo.svg +3 -0
- data/app/assets/icons/outline/upload.svg +3 -0
- data/app/assets/icons/outline/user-add.svg +3 -0
- data/app/assets/icons/outline/user-circle.svg +3 -0
- data/app/assets/icons/outline/user-edit.svg +3 -0
- data/app/assets/icons/outline/user-headset.svg +3 -0
- data/app/assets/icons/outline/user-remove.svg +3 -0
- data/app/assets/icons/outline/user-settings.svg +3 -0
- data/app/assets/icons/outline/user.svg +3 -0
- data/app/assets/icons/outline/users-group.svg +3 -0
- data/app/assets/icons/outline/users.svg +3 -0
- data/app/assets/icons/outline/video-camera.svg +3 -0
- data/app/assets/icons/outline/volume-down.svg +3 -0
- data/app/assets/icons/outline/volume-up.svg +3 -0
- data/app/assets/icons/outline/wallet.svg +3 -0
- data/app/assets/icons/outline/wand-magic-sparkles.svg +3 -0
- data/app/assets/icons/outline/window.svg +3 -0
- data/app/assets/icons/outline/zoom-in.svg +3 -0
- data/app/assets/icons/outline/zoom-out.svg +3 -0
- data/app/assets/icons/solid/X.svg +3 -0
- data/app/assets/icons/solid/address-book.svg +3 -0
- data/app/assets/icons/solid/adjustments-horizontal.svg +3 -0
- data/app/assets/icons/solid/adjustments-vertical.svg +3 -0
- data/app/assets/icons/solid/annotation.svg +3 -0
- data/app/assets/icons/solid/apple.svg +3 -0
- data/app/assets/icons/solid/archive-arrow-down.svg +3 -0
- data/app/assets/icons/solid/archive.svg +4 -0
- data/app/assets/icons/solid/arrow-right-alt.svg +3 -0
- data/app/assets/icons/solid/arrow-up-right-from-square.svg +4 -0
- data/app/assets/icons/solid/backward-step.svg +3 -0
- data/app/assets/icons/solid/badge-check.svg +3 -0
- data/app/assets/icons/solid/bell-active-alt.svg +3 -0
- data/app/assets/icons/solid/bell-active.svg +5 -0
- data/app/assets/icons/solid/bell-ring.svg +3 -0
- data/app/assets/icons/solid/bell.svg +3 -0
- data/app/assets/icons/solid/blender-phone.svg +3 -0
- data/app/assets/icons/solid/book-open.svg +3 -0
- data/app/assets/icons/solid/book.svg +3 -0
- data/app/assets/icons/solid/bookmark.svg +3 -0
- data/app/assets/icons/solid/brain.svg +3 -0
- data/app/assets/icons/solid/briefcase.svg +3 -0
- data/app/assets/icons/solid/bug.svg +3 -0
- data/app/assets/icons/solid/building.svg +3 -0
- data/app/assets/icons/solid/bullhorn.svg +3 -0
- data/app/assets/icons/solid/calendar-edit.svg +4 -0
- data/app/assets/icons/solid/calendar-month.svg +3 -0
- data/app/assets/icons/solid/calendar-plus.svg +3 -0
- data/app/assets/icons/solid/calendar-week.svg +3 -0
- data/app/assets/icons/solid/camera-photo.svg +3 -0
- data/app/assets/icons/solid/caption.svg +3 -0
- data/app/assets/icons/solid/caret-down.svg +3 -0
- data/app/assets/icons/solid/caret-left.svg +3 -0
- data/app/assets/icons/solid/caret-right.svg +3 -0
- data/app/assets/icons/solid/caret-sort.svg +3 -0
- data/app/assets/icons/solid/caret-up.svg +3 -0
- data/app/assets/icons/solid/cart-plus-alt.svg +4 -0
- data/app/assets/icons/solid/cart-plus.svg +4 -0
- data/app/assets/icons/solid/cart.svg +3 -0
- data/app/assets/icons/solid/cash.svg +5 -0
- data/app/assets/icons/solid/chart-mixed-dollar.svg +3 -0
- data/app/assets/icons/solid/chart-pie.svg +4 -0
- data/app/assets/icons/solid/check-circle.svg +3 -0
- data/app/assets/icons/solid/check-plus-circle.svg +4 -0
- data/app/assets/icons/solid/circle-pause.svg +3 -0
- data/app/assets/icons/solid/circle-plus.svg +3 -0
- data/app/assets/icons/solid/clapperboard-play.svg +3 -0
- data/app/assets/icons/solid/clipboard-check.svg +3 -0
- data/app/assets/icons/solid/clipboard-list.svg +3 -0
- data/app/assets/icons/solid/clipboard.svg +3 -0
- data/app/assets/icons/solid/clock.svg +3 -0
- data/app/assets/icons/solid/close-circle.svg +3 -0
- data/app/assets/icons/solid/cloud-arrow-up.svg +4 -0
- data/app/assets/icons/solid/code-branch.svg +3 -0
- data/app/assets/icons/solid/code-fork.svg +3 -0
- data/app/assets/icons/solid/code-merge.svg +3 -0
- data/app/assets/icons/solid/code-pull-request.svg +3 -0
- data/app/assets/icons/solid/cog.svg +3 -0
- data/app/assets/icons/solid/column.svg +3 -0
- data/app/assets/icons/solid/computer-speaker.svg +4 -0
- data/app/assets/icons/solid/credit-card.svg +4 -0
- data/app/assets/icons/solid/css.svg +3 -0
- data/app/assets/icons/solid/database.svg +3 -0
- data/app/assets/icons/solid/desktop-pc.svg +3 -0
- data/app/assets/icons/solid/discord.svg +3 -0
- data/app/assets/icons/solid/download.svg +4 -0
- data/app/assets/icons/solid/draw-square.svg +4 -0
- data/app/assets/icons/solid/dribbble.svg +3 -0
- data/app/assets/icons/solid/dropbox.svg +4 -0
- data/app/assets/icons/solid/edit.svg +4 -0
- data/app/assets/icons/solid/envelope-open.svg +4 -0
- data/app/assets/icons/solid/envelope.svg +4 -0
- data/app/assets/icons/solid/exclamation-circle.svg +3 -0
- data/app/assets/icons/solid/eye-slash.svg +5 -0
- data/app/assets/icons/solid/eye.svg +3 -0
- data/app/assets/icons/solid/face-explode.svg +3 -0
- data/app/assets/icons/solid/face-grin-stars.svg +3 -0
- data/app/assets/icons/solid/face-grin.svg +3 -0
- data/app/assets/icons/solid/face-laugh.svg +3 -0
- data/app/assets/icons/solid/facebook.svg +3 -0
- data/app/assets/icons/solid/file-chart-bar.svg +3 -0
- data/app/assets/icons/solid/file-check.svg +4 -0
- data/app/assets/icons/solid/file-circle-plus.svg +4 -0
- data/app/assets/icons/solid/file-clone.svg +4 -0
- data/app/assets/icons/solid/file-code.svg +3 -0
- data/app/assets/icons/solid/file-copy-alt.svg +4 -0
- data/app/assets/icons/solid/file-copy.svg +4 -0
- data/app/assets/icons/solid/file-csv.svg +3 -0
- data/app/assets/icons/solid/file-export.svg +3 -0
- data/app/assets/icons/solid/file-image.svg +3 -0
- data/app/assets/icons/solid/file-import.svg +3 -0
- data/app/assets/icons/solid/file-invoice.svg +3 -0
- data/app/assets/icons/solid/file-lines.svg +3 -0
- data/app/assets/icons/solid/file-music.svg +3 -0
- data/app/assets/icons/solid/file-paste.svg +4 -0
- data/app/assets/icons/solid/file-pdf.svg +3 -0
- data/app/assets/icons/solid/file-pen.svg +4 -0
- data/app/assets/icons/solid/file-ppt.svg +3 -0
- data/app/assets/icons/solid/file-search.svg +3 -0
- data/app/assets/icons/solid/file-shield.svg +4 -0
- data/app/assets/icons/solid/file-video.svg +3 -0
- data/app/assets/icons/solid/file-word.svg +3 -0
- data/app/assets/icons/solid/file-zip.svg +3 -0
- data/app/assets/icons/solid/file.svg +3 -0
- data/app/assets/icons/solid/filter.svg +3 -0
- data/app/assets/icons/solid/fire.svg +3 -0
- data/app/assets/icons/solid/flag.svg +3 -0
- data/app/assets/icons/solid/flowbite.svg +6 -0
- data/app/assets/icons/solid/folder-arrow-right.svg +3 -0
- data/app/assets/icons/solid/folder-duplicate.svg +4 -0
- data/app/assets/icons/solid/folder-open.svg +3 -0
- data/app/assets/icons/solid/folder-plus.svg +3 -0
- data/app/assets/icons/solid/folder.svg +3 -0
- data/app/assets/icons/solid/forward-step.svg +3 -0
- data/app/assets/icons/solid/forward.svg +3 -0
- data/app/assets/icons/solid/gift-box.svg +3 -0
- data/app/assets/icons/solid/github.svg +3 -0
- data/app/assets/icons/solid/globe.svg +3 -0
- data/app/assets/icons/solid/google.svg +3 -0
- data/app/assets/icons/solid/grid-plus.svg +3 -0
- data/app/assets/icons/solid/grid.svg +3 -0
- data/app/assets/icons/solid/headphones.svg +3 -0
- data/app/assets/icons/solid/heart.svg +3 -0
- data/app/assets/icons/solid/home.svg +3 -0
- data/app/assets/icons/solid/hourglass.svg +3 -0
- data/app/assets/icons/solid/html.svg +3 -0
- data/app/assets/icons/solid/image.svg +4 -0
- data/app/assets/icons/solid/inbox-full.svg +3 -0
- data/app/assets/icons/solid/inbox.svg +3 -0
- data/app/assets/icons/solid/indent.svg +3 -0
- data/app/assets/icons/solid/info-circle.svg +3 -0
- data/app/assets/icons/solid/keyboard.svg +3 -0
- data/app/assets/icons/solid/label.svg +3 -0
- data/app/assets/icons/solid/landmark.svg +4 -0
- data/app/assets/icons/solid/layers.svg +4 -0
- data/app/assets/icons/solid/life-saver.svg +3 -0
- data/app/assets/icons/solid/lightbulb.svg +3 -0
- data/app/assets/icons/solid/linkedin.svg +4 -0
- data/app/assets/icons/solid/list-music.svg +3 -0
- data/app/assets/icons/solid/lock-open.svg +3 -0
- data/app/assets/icons/solid/lock-time.svg +4 -0
- data/app/assets/icons/solid/lock.svg +3 -0
- data/app/assets/icons/solid/mail-box.svg +3 -0
- data/app/assets/icons/solid/map-pin-alt.svg +3 -0
- data/app/assets/icons/solid/map-pin.svg +3 -0
- data/app/assets/icons/solid/message-caption.svg +3 -0
- data/app/assets/icons/solid/message-dots.svg +3 -0
- data/app/assets/icons/solid/messages.svg +4 -0
- data/app/assets/icons/solid/microphone.svg +4 -0
- data/app/assets/icons/solid/mobile-phone.svg +3 -0
- data/app/assets/icons/solid/moon.svg +3 -0
- data/app/assets/icons/solid/newspaper.svg +3 -0
- data/app/assets/icons/solid/npm.svg +3 -0
- data/app/assets/icons/solid/outdent.svg +3 -0
- data/app/assets/icons/solid/palette.svg +3 -0
- data/app/assets/icons/solid/paper-plane.svg +3 -0
- data/app/assets/icons/solid/paragraph.svg +3 -0
- data/app/assets/icons/solid/pause.svg +3 -0
- data/app/assets/icons/solid/pen-nib.svg +3 -0
- data/app/assets/icons/solid/pen.svg +3 -0
- data/app/assets/icons/solid/phone.svg +3 -0
- data/app/assets/icons/solid/play.svg +3 -0
- data/app/assets/icons/solid/printer.svg +3 -0
- data/app/assets/icons/solid/profile-card.svg +3 -0
- data/app/assets/icons/solid/question-circle.svg +3 -0
- data/app/assets/icons/solid/quote.svg +3 -0
- data/app/assets/icons/solid/react.svg +4 -0
- data/app/assets/icons/solid/receipt.svg +3 -0
- data/app/assets/icons/solid/rectangle-list.svg +3 -0
- data/app/assets/icons/solid/reply-all.svg +3 -0
- data/app/assets/icons/solid/reply.svg +3 -0
- data/app/assets/icons/solid/rocket.svg +3 -0
- data/app/assets/icons/solid/sale-percent.svg +3 -0
- data/app/assets/icons/solid/scale-balanced.svg +3 -0
- data/app/assets/icons/solid/search.svg +4 -0
- data/app/assets/icons/solid/share-all.svg +3 -0
- data/app/assets/icons/solid/share-nodes.svg +3 -0
- data/app/assets/icons/solid/shield-check.svg +3 -0
- data/app/assets/icons/solid/shield.svg +3 -0
- data/app/assets/icons/solid/shopping-bag.svg +3 -0
- data/app/assets/icons/solid/stackoverflow.svg +4 -0
- data/app/assets/icons/solid/star-half-stroke.svg +3 -0
- data/app/assets/icons/solid/star-half.svg +3 -0
- data/app/assets/icons/solid/star.svg +3 -0
- data/app/assets/icons/solid/store.svg +3 -0
- data/app/assets/icons/solid/sun.svg +3 -0
- data/app/assets/icons/solid/swatchbook.svg +3 -0
- data/app/assets/icons/solid/table-column.svg +3 -0
- data/app/assets/icons/solid/table-row.svg +3 -0
- data/app/assets/icons/solid/tablet.svg +3 -0
- data/app/assets/icons/solid/tag.svg +3 -0
- data/app/assets/icons/solid/tailwind.svg +3 -0
- data/app/assets/icons/solid/terminal.svg +3 -0
- data/app/assets/icons/solid/thumbs-down.svg +3 -0
- data/app/assets/icons/solid/thumbs-up.svg +3 -0
- data/app/assets/icons/solid/ticket.svg +3 -0
- data/app/assets/icons/solid/trash-bin.svg +3 -0
- data/app/assets/icons/solid/truck.svg +3 -0
- data/app/assets/icons/solid/twitter.svg +3 -0
- data/app/assets/icons/solid/upload.svg +3 -0
- data/app/assets/icons/solid/user-add.svg +3 -0
- data/app/assets/icons/solid/user-circle.svg +3 -0
- data/app/assets/icons/solid/user-edit.svg +3 -0
- data/app/assets/icons/solid/user-headset.svg +3 -0
- data/app/assets/icons/solid/user-remove.svg +3 -0
- data/app/assets/icons/solid/user-settings.svg +3 -0
- data/app/assets/icons/solid/user.svg +3 -0
- data/app/assets/icons/solid/users-group.svg +3 -0
- data/app/assets/icons/solid/users.svg +3 -0
- data/app/assets/icons/solid/video-camera.svg +3 -0
- data/app/assets/icons/solid/volume-down.svg +4 -0
- data/app/assets/icons/solid/volume-up.svg +5 -0
- data/app/assets/icons/solid/vue.svg +3 -0
- data/app/assets/icons/solid/wallet.svg +4 -0
- data/app/assets/icons/solid/wand-magic-sparkles.svg +4 -0
- data/app/assets/icons/solid/window-restore.svg +4 -0
- data/app/assets/icons/solid/window.svg +3 -0
- data/app/assets/icons/solid/youtube.svg +3 -0
- data/app/assets/icons/solid/zoom-in.svg +3 -0
- data/app/assets/icons/solid/zoom-out.svg +3 -0
- data/app/assets/js/controllers/application.js +6 -0
- data/app/assets/js/controllers/dropdown_controller.js +12 -0
- data/app/assets/js/controllers/index.js +21 -0
- data/app/assets/js/plutonium.js +2 -0
- data/app/assets/js/turbo/index.js +5 -0
- data/app/assets/js/turbo/turbo_actions.js +8 -0
- data/app/assets/js/turbo/turbo_debug.js +30 -0
- data/app/assets/js/turbo/turbo_frame_monkey_patch.js +23 -0
- data/app/views/{resource → application}/_color_modes.html.erb +3 -1
- data/app/views/application/_flash.html.erb +1 -0
- data/app/views/application/_resource_header.html.erb +721 -0
- data/app/views/application/_resource_sidebar.html.erb +12 -0
- data/app/views/components/action_button/action_button_component.html.erb +7 -0
- data/app/views/components/action_button/action_button_component.rb +15 -0
- data/app/views/components/base.rb +50 -0
- data/app/views/components/block/block_component.html.erb +3 -0
- data/app/views/components/block/block_component.rb +40 -0
- data/app/views/components/breadcrumbs/breadcrumbs_component.html.erb +96 -0
- data/app/views/components/breadcrumbs/breadcrumbs_component.rb +9 -0
- data/app/views/components/button/button_component.html.erb +11 -0
- data/app/views/components/button/button_component.rb +123 -0
- data/app/views/components/dyna_frame_content/dyna_frame_content_component.html.erb +7 -0
- data/app/views/components/dyna_frame_content/dyna_frame_content_component.rb +6 -0
- data/app/views/components/dyna_frame_host/dyna_frame_host_component.html.erb +4 -0
- data/app/views/components/dyna_frame_host/dyna_frame_host_component.rb +11 -0
- data/app/views/components/empty_card/empty_card_component.html.erb +6 -0
- data/app/views/components/empty_card/empty_card_component.rb +7 -0
- data/app/views/components/form/form_builder.rb +71 -0
- data/app/views/components/form/form_component.html.erb +77 -0
- data/app/views/components/form/form_component.rb +23 -0
- data/app/views/components/form/form_controller.js +13 -0
- data/app/views/components/header/header_component.html.erb +1 -0
- data/app/views/components/header/header_component.rb +7 -0
- data/app/views/components/interactive_action_form/interactive_action_form_component.html.erb +41 -0
- data/app/views/components/interactive_action_form/interactive_action_form_component.rb +8 -0
- data/app/views/components/interactive_action_form/interactive_action_form_controller.js +13 -0
- data/app/views/components/pagination/pagination_component.html.erb +6 -0
- data/app/views/components/pagination/pagination_component.rb +91 -0
- data/app/views/components/panel/panel_component.html.erb +10 -0
- data/app/views/components/panel/panel_component.rb +11 -0
- data/app/views/components/sidebar/sidebar_component.html.erb +154 -0
- data/app/views/components/sidebar/sidebar_component.rb +15 -0
- data/app/views/components/sidebar_menu/sidebar_menu_component.html.erb +3 -0
- data/app/views/components/sidebar_menu/sidebar_menu_component.rb +13 -0
- data/app/views/components/sidebar_menu_item/sidebar_menu_item_component.html.erb +72 -0
- data/app/views/components/sidebar_menu_item/sidebar_menu_item_component.rb +23 -0
- data/app/views/components/skeleton/table/table_component.html.erb +18 -0
- data/app/views/components/skeleton/table/table_component.rb +6 -0
- data/app/views/components/tab_bar/tab_bar_component.html.erb +11 -0
- data/app/views/components/tab_bar/tab_bar_component.rb +9 -0
- data/app/views/components/tab_bar/tab_bar_controller.js +8 -0
- data/app/views/components/table/table_component.html.erb +92 -0
- data/app/views/components/table/table_component.rb +63 -0
- data/app/views/components/table/table_controller.js +8 -0
- data/app/views/components/table_search_input/table_search_input_component.html.erb +42 -0
- data/app/views/components/table_search_input/table_search_input_component.rb +10 -0
- data/app/views/components/table_search_input/table_search_input_controller.js +8 -0
- data/app/views/components/table_toolbar/table_toolbar_component.html.erb +7 -0
- data/app/views/components/table_toolbar/table_toolbar_component.rb +9 -0
- data/app/views/components/table_toolbar/table_toolbar_controller.js +8 -0
- data/app/views/components/toolbar/toolbar_component.html.erb +67 -0
- data/app/views/components/toolbar/toolbar_component.rb +18 -0
- data/app/views/components/toolbar/toolbar_controller.js +8 -0
- data/app/views/layouts/resource.html copy.erb +51 -0
- data/app/views/layouts/resource.html.erb +32 -25
- data/app/views/layouts/rodauth.html.erb +32 -0
- data/app/views/resource/_interactive_resource_action_form.html.erb +4 -26
- data/app/views/resource/_resource_details.html.erb +26 -0
- data/app/views/resource/{_resource.rabl → _resource_details.rabl} +1 -1
- data/app/views/resource/_resource_form.html.erb +5 -0
- data/app/views/resource/_resource_table.html.erb +15 -0
- data/app/views/resource/edit.html.erb +4 -9
- data/app/views/resource/index.html.erb +4 -18
- data/app/views/resource/interactive_resource_collection_action.html.erb +3 -10
- data/app/views/resource/interactive_resource_record_action.html.erb +3 -10
- data/app/views/resource/interactive_resource_recordless_action.html.erb +3 -10
- data/app/views/resource/new.html.erb +3 -10
- data/app/views/resource/show.html.erb +4 -13
- data/app/views/resource/show.rabl +1 -1
- data/brakeman.ignore +5 -5
- data/build.js +12 -0
- data/config/initializers/hotwire_turbo_monkey_patches.rb +12 -0
- data/{lib/plutonium → config}/initializers/pagy.rb +0 -1
- data/config/initializers/simple_form.rb +54 -0
- data/lib/active_model/validations/array_validator.rb +1 -1
- data/lib/active_model/validations/attached_validator.rb +1 -1
- data/lib/active_model/validations/url_validator.rb +1 -1
- data/lib/generators/pu/core/install/install_generator.rb +1 -1
- data/lib/generators/pu/core/install/templates/app/controllers/resource_controller.rb.tt +2 -1
- data/lib/generators/pu/core/install/templates/app/interactions/resource_interaction.rb.tt +1 -1
- data/lib/generators/pu/core/install/templates/app/models/resource_record.rb.tt +1 -1
- data/lib/generators/pu/core/install/templates/app/policies/resource_policy.rb.tt +1 -1
- data/lib/generators/pu/core/install/templates/app/presenters/resource_presenter.rb.tt +1 -1
- data/lib/generators/pu/core/install/templates/app/query_objects/resource_query_object.rb.tt +2 -0
- data/lib/generators/pu/core/install/templates/config/packages.rb +1 -3
- data/lib/generators/pu/gem/pagy/pagy_generator.rb +1 -1
- data/lib/generators/pu/gem/rabl/rabl_generator.rb +1 -1
- data/lib/generators/pu/gem/simple_form/simple_form_generator.rb +1 -1
- data/lib/generators/pu/gen/component/component_generator.rb +87 -0
- data/lib/generators/pu/gen/component/templates/component.html.erb.tt +3 -0
- data/lib/generators/pu/gen/component/templates/component.rb.tt +9 -0
- data/lib/generators/pu/gen/component/templates/controller.js.tt +8 -0
- data/lib/generators/pu/lib/plutonium_generators/concerns/actions.rb +353 -0
- data/lib/generators/pu/lib/plutonium_generators/concerns/config.rb +39 -0
- data/lib/generators/pu/lib/plutonium_generators/concerns/logger.rb +36 -0
- data/lib/generators/pu/lib/plutonium_generators/concerns/serializer.rb +39 -0
- data/lib/generators/pu/lib/plutonium_generators/generator.rb +86 -0
- data/lib/generators/pu/lib/plutonium_generators/installer.rb +205 -0
- data/lib/generators/pu/lib/plutonium_generators/model_generator.rb +151 -0
- data/lib/generators/pu/lib/plutonium_generators.rb +7 -0
- data/lib/generators/pu/pkg/app/app_generator.rb +14 -4
- data/lib/generators/pu/pkg/app/templates/app/controllers/app_controller.rb.tt +5 -0
- data/lib/generators/pu/pkg/app/templates/app/controllers/dashboard_controller.rb.tt +6 -0
- data/lib/generators/pu/pkg/app/templates/app/controllers/{resource_controller.rb.tt → package_controller.rb.tt} +3 -3
- data/lib/generators/pu/pkg/app/templates/app/{interactions/resource_interaction.rb.tt → query_objects/resource_query_object.rb.tt} +1 -1
- data/lib/generators/pu/pkg/app/templates/app/views/package/dashboard/index.html.erb +23 -0
- data/lib/generators/pu/pkg/app/templates/config/routes.rb.tt +5 -3
- data/lib/generators/pu/pkg/feature/feature_generator.rb +4 -4
- data/lib/generators/pu/pkg/feature/templates/app/query_objects/resource_query_object.rb.tt +4 -0
- data/lib/generators/pu/{resource → res}/conn/conn_generator.rb +3 -2
- data/lib/generators/pu/res/conn/templates/.keep +0 -0
- data/lib/generators/pu/{resource → res}/conn/templates/app/controllers/resource_controller.rb.tt +1 -1
- data/lib/generators/pu/res/conn/templates/app/query_objects/resource_query_object.rb.tt +3 -0
- data/lib/generators/pu/res/model/model_generator.rb +36 -0
- data/lib/generators/pu/{resource → res}/model/templates/model.rb.tt +1 -1
- data/lib/generators/pu/res/scaffold/scaffold_generator.rb +43 -0
- data/lib/generators/pu/res/scaffold/templates/.keep +0 -0
- data/lib/generators/pu/{resource/model → res/scaffold}/templates/policy.rb.tt +2 -2
- data/lib/generators/pu/{resource/model → res/scaffold}/templates/presenter.rb.tt +0 -5
- data/lib/generators/pu/res/scaffold/templates/query_object.rb.tt +17 -0
- data/lib/generators/pu/rodauth/account_generator.rb +6 -17
- data/lib/generators/pu/rodauth/concerns/account_selector.rb +5 -1
- data/lib/generators/pu/rodauth/migration/active_record/base.erb +0 -4
- data/lib/generators/pu/rodauth/migration_generator.rb +2 -4
- data/lib/generators/pu/rodauth/templates/app/controllers/plugin_controller.rb.tt +11 -1
- data/lib/generators/pu/rodauth/templates/app/controllers/rodauth_controller.rb.tt +2 -1
- data/lib/generators/pu/rodauth/templates/app/mailers/account_mailer.rb.tt +1 -1
- data/lib/generators/pu/rodauth/templates/app/misc/account_rodauth_plugin.rb.tt +26 -11
- data/lib/generators/pu/rodauth/templates/app/misc/rodauth_plugin.rb.tt +1 -1
- data/lib/generators/pu/rodauth/templates/app/models/account.rb.tt +4 -1
- data/lib/generators/pu/rodauth/views_generator.rb +1 -14
- data/lib/plutonium/application/controller.rb +43 -0
- data/lib/plutonium/auth/{public_access.rb → public.rb} +1 -1
- data/lib/plutonium/auth.rb +0 -5
- data/lib/plutonium/builders/menus/sidebar_menu.rb.bk +26 -0
- data/lib/plutonium/builders/menus/sidebar_menu_item.rb.bk +28 -0
- data/lib/plutonium/component_registry.rb +19 -0
- data/lib/plutonium/config.rb +17 -2
- data/lib/plutonium/core/action.rb +9 -6
- data/lib/plutonium/core/actions/collection.rb +4 -0
- data/lib/plutonium/core/actions/destroy_action.rb +5 -3
- data/lib/plutonium/core/actions/edit_action.rb +5 -3
- data/lib/plutonium/core/actions/interactive_action.rb +1 -1
- data/lib/plutonium/core/actions/new_action.rb +5 -3
- data/lib/plutonium/core/actions/show_action.rb +5 -3
- data/lib/plutonium/core/autodiscovery/input_discoverer.rb +0 -2
- data/lib/plutonium/core/autodiscovery/renderer_discoverer.rb +0 -2
- data/lib/plutonium/core/controllers/authorizable.rb +3 -5
- data/lib/plutonium/core/controllers/base.rb +86 -0
- data/lib/plutonium/core/controllers/bootable.rb +5 -24
- data/lib/plutonium/core/controllers/crud_actions.rb +43 -8
- data/lib/plutonium/core/controllers/entity_scoping.rb +16 -5
- data/lib/plutonium/core/controllers/interactive_actions.rb +9 -7
- data/lib/plutonium/core/controllers/presentable.rb +11 -11
- data/lib/plutonium/core/controllers/queryable.rb +26 -0
- data/lib/plutonium/core/definers/input_definer.rb +47 -7
- data/lib/plutonium/core/definers/renderer_definer.rb +5 -3
- data/lib/plutonium/core/fields/inputs/base.rb +3 -3
- data/lib/plutonium/core/fields/inputs/date_time_input.rb +13 -0
- data/lib/plutonium/core/fields/inputs/factory.rb +13 -4
- data/lib/plutonium/core/fields/inputs/noop_input.rb +1 -1
- data/lib/plutonium/core/fields/inputs/phone_input.rb +22 -0
- data/lib/plutonium/core/fields/inputs/polymorphic_belongs_to_association_input.rb +47 -0
- data/lib/plutonium/core/fields/inputs/simple_form_association_input.rb +3 -2
- data/lib/plutonium/core/fields/inputs/simple_form_input.rb +4 -1
- data/lib/plutonium/core/fields/renderers/association_renderer.rb +4 -7
- data/lib/plutonium/core/ui/collection.rb +12 -8
- data/lib/plutonium/core/ui/detail.rb +8 -5
- data/lib/plutonium/core/ui/form.rb +6 -5
- data/lib/plutonium/helpers/action_buttons_helper.rb +23 -23
- data/lib/plutonium/helpers/application_helper.rb +0 -4
- data/lib/plutonium/helpers/attachment_helper.rb +1 -1
- data/lib/plutonium/helpers/component_helper.rb +14 -0
- data/lib/plutonium/helpers/display_helper.rb +6 -6
- data/lib/plutonium/helpers/form_helper.rb +29 -10
- data/lib/plutonium/helpers/table_helper.rb +35 -0
- data/lib/plutonium/helpers/turbo_helper.rb +2 -2
- data/lib/plutonium/helpers.rb +6 -19
- data/lib/plutonium/icons.rb +25 -0
- data/lib/plutonium/lib/after_commit.rb +2 -2
- data/lib/plutonium/{packaging → pkg}/app.rb +8 -6
- data/lib/plutonium/{packaging/package.rb → pkg/base.rb} +6 -2
- data/lib/plutonium/{packaging → pkg}/feature.rb +2 -2
- data/lib/plutonium/preserved__/{field.rb → field.rb.bk} +1 -1
- data/lib/plutonium/preserved__/{input.rb → input.rb.bk} +1 -1
- data/lib/plutonium/railtie.rb +17 -3
- data/lib/plutonium/reactor/core.rb +34 -19
- data/lib/plutonium/refinements/parameter_refinements.rb +2 -0
- data/lib/plutonium/resource/context.rb +5 -0
- data/lib/plutonium/resource/controller.rb +138 -0
- data/lib/plutonium/resource/interaction.rb +8 -0
- data/lib/plutonium/{reactor/resource_policy.rb → resource/policy.rb} +10 -3
- data/lib/plutonium/{reactor → resource}/policy_context.rb +1 -1
- data/lib/plutonium/{reactor/resource_presenter.rb → resource/presenter.rb} +2 -6
- data/lib/plutonium/resource/query_object.rb +219 -0
- data/lib/plutonium/{reactor/resource_record.rb → resource/record.rb} +55 -35
- data/lib/plutonium/rodauth/controller_methods.rb +12 -0
- data/lib/plutonium/{simple_form_components → simple_form}/attachment_component.rb +2 -0
- data/lib/plutonium/{simple_form_components → simple_form}/input_group_component.rb +2 -0
- data/lib/plutonium/version.rb +1 -1
- data/lib/plutonium.rb +33 -16
- data/package-lock.json +2523 -0
- data/package.json +21 -0
- data/postcss.config.js +11 -0
- data/public/plutonium-assets/application.css +1617 -811
- data/public/plutonium-assets/application.js +299 -300
- data/tailwind.config.js +91 -0
- metadata +754 -176
- data/app/views/resource/_details.html.erb +0 -6
- data/app/views/resource/_empty_card.html.erb +0 -12
- data/app/views/resource/_form.html.erb +0 -32
- data/app/views/resource/_header.html.erb +0 -8
- data/app/views/resource/_messages.html.erb +0 -1
- data/app/views/resource/_pagination.html.erb +0 -6
- data/app/views/resource/_pagy_pagination.html.erb +0 -15
- data/app/views/resource/_resource.html.erb +0 -1
- data/app/views/resource/_sidebar.html.erb +0 -11
- data/app/views/resource/_sidebar_menu.html.erb +0 -1
- data/app/views/resource/_table.html.erb +0 -78
- data/app/views/resource/_table_actions.html.erb +0 -15
- data/app/views/resource/_toolbar.html.erb +0 -22
- data/app/views/resource/_toolbar_actions.html.erb +0 -16
- data/app/views/resource/_toolbar_breadcrumbs.html.erb +0 -32
- data/app/views/resource/_toolbar_search_input.erb +0 -27
- data/lib/generators/pu/resource/model/model_generator.rb +0 -163
- data/lib/generators/pu/resource/scaffold/scaffold_generator.rb +0 -219
- data/lib/generators/pu/resource/scaffold/templates/app/controllers/admin_resources/resource_controller.rb.tt +0 -7
- data/lib/generators/pu/resource/scaffold/templates/app/controllers/entity_resources/resource_controller.rb.tt +0 -7
- data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/admin/resource_policy.rb.tt +0 -22
- data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/entity/resource_policy.rb.tt +0 -22
- data/lib/generators/pu/resource/scaffold/templates/app/policies/resources/resource_policy.rb.tt +0 -13
- data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/admin_presenter.rb.tt +0 -7
- data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/entity_presenter.rb.tt +0 -7
- data/lib/generators/pu/resource/scaffold/templates/app/resources/resource/presenter.rb.tt +0 -23
- data/lib/generators/pu/resource/scaffold/templates/app/views/resources/resource/_resource.html.erb.tt +0 -3
- data/lib/generators/pu/resource/scaffold/templates/app/views/resources/resource/_resource.rabl +0 -7
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/_email_auth_request_form.html.erb +0 -7
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/_login_form.html.erb +0 -26
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/_login_form_footer.html.erb +0 -9
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/add_recovery_codes.html.erb +0 -6
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/change_login.html.erb +0 -27
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/change_password.html.erb +0 -27
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/close_account.html.erb +0 -13
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/confirm_password.html.erb +0 -11
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/create_account.html.erb +0 -35
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/email_auth.html.erb +0 -5
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/login.html.erb +0 -4
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/logout.html.erb +0 -14
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/multi_phase_login.html.erb +0 -3
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_auth.html.erb +0 -15
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_disable.html.erb +0 -13
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/otp_setup.html.erb +0 -41
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/recovery_auth.html.erb +0 -11
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/recovery_codes.html.erb +0 -13
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/remember.html.erb +0 -22
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password.html.erb +0 -19
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/reset_password_request.html.erb +0 -17
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_auth.html.erb +0 -15
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_confirm.html.erb +0 -15
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_disable.html.erb +0 -13
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_request.html.erb +0 -5
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/sms_setup.html.erb +0 -23
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_auth.html.erb +0 -5
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_disable.html.erb +0 -13
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb +0 -22
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/unlock_account.html.erb +0 -15
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/unlock_account_request.html.erb +0 -9
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_account.html.erb +0 -21
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_account_resend.html.erb +0 -17
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/verify_login_change.html.erb +0 -5
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_auth.html.erb +0 -15
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_autofill.html.erb +0 -10
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb +0 -23
- data/lib/generators/pu/rodauth/templates/app/views/rodauth/webauthn_setup.html.erb +0 -23
- data/lib/plutonium/core/actions.rb +0 -17
- data/lib/plutonium/core/app_controller.rb +0 -121
- data/lib/plutonium/core/autodiscovery.rb +0 -13
- data/lib/plutonium/core/controllers.rb +0 -16
- data/lib/plutonium/core/definers.rb +0 -14
- data/lib/plutonium/core/fields/inputs.rb +0 -20
- data/lib/plutonium/core/fields/renderers.rb +0 -16
- data/lib/plutonium/core/fields.rb +0 -12
- data/lib/plutonium/core/ui.rb +0 -13
- data/lib/plutonium/core.rb +0 -16
- data/lib/plutonium/helpers/menu_helper.rb +0 -69
- data/lib/plutonium/helpers/pagination_helper.rb +0 -9
- data/lib/plutonium/initializers/TODO +0 -2
- data/lib/plutonium/initializers/patches.rb +0 -2
- data/lib/plutonium/initializers/simple_form.rb +0 -405
- data/lib/plutonium/packaging.rb +0 -9
- data/lib/plutonium/policy.rb +0 -8
- data/lib/plutonium/reactor/resource_context.rb +0 -5
- data/lib/plutonium/reactor/resource_controller.rb +0 -131
- data/lib/plutonium/reactor/resource_interaction.rb +0 -8
- data/lib/plutonium/reactor.rb +0 -14
- /data/app/views/{resource/_flash.html.erb → application/_flash_alerts.html.erb} +0 -0
- /data/app/views/{resource/_toast.html.erb → application/_flash_toasts.html.erb} +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_email_auth_request_form.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_login_form.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/_login_form_footer.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/add_recovery_codes.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/change_login.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/change_password.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/close_account.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/confirm_password.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/create_account.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/email_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/login.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/logout.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/multi_phase_login.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_disable.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/otp_setup.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/recovery_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/recovery_codes.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/remember.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/reset_password.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/reset_password_request.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_confirm.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_disable.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_request.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/sms_setup.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_disable.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/two_factor_manage.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/unlock_account.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/unlock_account_request.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_account.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_account_resend.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/verify_login_change.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_auth.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_autofill.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_remove.html.erb +0 -0
- /data/{lib/generators/pu/rodauth/templates/app/views/rodauth/tailwind → app/views/rodauth}/webauthn_setup.html.erb +0 -0
- /data/{lib/plutonium → config}/initializers/rabl.rb +0 -0
- /data/lib/generators/pu/{resource/conn/templates → pkg/app/templates/app/views/package}/.keep +0 -0
- /data/lib/generators/pu/{resource → res}/conn/templates/app/policies/resource_policy.rb.tt +0 -0
- /data/lib/generators/pu/{resource → res}/conn/templates/app/presenters/resource_presenter.rb.tt +0 -0
- /data/lib/generators/pu/{resource → res}/model/USAGE +0 -0
- /data/lib/generators/pu/{resource → res}/model/templates/create_table_migration.rb.tt +0 -0
- /data/lib/generators/pu/{resource → res}/model/templates/module.rb.tt +0 -0
- /data/lib/generators/pu/{resource/model → res/scaffold}/templates/controller.rb.tt +0 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
<%= resource_form_for interaction, as: :interaction, method: :post, url: "", html: {class: "flex flex-col space-y-6 px-4 py-2"} do |f| %>
|
2
|
+
<h2 class="mb-4 text-xl font-bold text-gray-900 dark:text-gray-200"><%= interactive_action.name.to_s.titleize %></h2>
|
3
|
+
|
4
|
+
<% if f.object.errors.present? %>
|
5
|
+
<div class="flex p-4 px-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400" role="alert">
|
6
|
+
<svg class="shrink-0 inline w-4 h-4 me-3 mt-[2px]" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
7
|
+
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
|
8
|
+
</svg>
|
9
|
+
<div>
|
10
|
+
<span class="font-medium"><%= f.error_notification %></span>
|
11
|
+
<!--
|
12
|
+
<ul class="mt-1.5 list-disc list-inside">
|
13
|
+
<% f.object.errors.full_messages.each do |message| %>
|
14
|
+
<li><%= f.error_notification message: message %></li>
|
15
|
+
<% end %>
|
16
|
+
</ul>
|
17
|
+
-->
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
<div>
|
23
|
+
<% interactive_action.inputs.values.each do |input| %>
|
24
|
+
<%= input.render f, interaction %>
|
25
|
+
<% end %>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="flex justify-end space-x-2">
|
29
|
+
<%# TODO: move this into its own component %>
|
30
|
+
<div class="flex">
|
31
|
+
<button type="submit"
|
32
|
+
name="commit"
|
33
|
+
class="inline-flex items-center px-4 py-2 bg-primary-600 text-white
|
34
|
+
rounded-s-md hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500"
|
35
|
+
>
|
36
|
+
Submit
|
37
|
+
</button>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
2
|
+
import debounce from "lodash.debounce";
|
3
|
+
|
4
|
+
// Connects to data-controller="interactive-action-form"
|
5
|
+
export default class extends Controller {
|
6
|
+
connect() {
|
7
|
+
console.log(`interactive-action-form connected: ${this.element}`)
|
8
|
+
}
|
9
|
+
|
10
|
+
submit() {
|
11
|
+
this.element.requestSubmit()
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require "pagy"
|
2
|
+
|
3
|
+
module Plutonium::Ui
|
4
|
+
class PaginationComponent < Plutonium::Ui::Base
|
5
|
+
include Pagy::Frontend
|
6
|
+
|
7
|
+
option :pager
|
8
|
+
option :pagy_id, optional: true
|
9
|
+
option :nav_aria_label, optional: true
|
10
|
+
option :nav_i18n_key, optional: true
|
11
|
+
|
12
|
+
def classname
|
13
|
+
"flex flex-col items-center space-y-2 p-6 #{super}"
|
14
|
+
end
|
15
|
+
|
16
|
+
def pagy_nav(pagy, **vars)
|
17
|
+
p_id = %( id="#{pagy_id}") if pagy_id
|
18
|
+
link = pagy_link_proc(pagy, link_extra: "class=\"#{default_link_classes} #{page_link_classes}\"")
|
19
|
+
|
20
|
+
html = +%(<nav#{p_id} class="pagy pagy-nav pagination" #{nav_aria_label_attr(pagy, nav_aria_label, nav_i18n_key)}>)
|
21
|
+
html = +%(<ul class="inline-flex -space-x-px text-sm">)
|
22
|
+
html << prev_html(pagy)
|
23
|
+
pagy.series(**vars).each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36]
|
24
|
+
html << case item
|
25
|
+
when Integer
|
26
|
+
%(<li class="page" >#{link.call(item)}</li>)
|
27
|
+
when String
|
28
|
+
%(<li class="page active">) +
|
29
|
+
%(<a role="link" aria-disabled="true" aria-current="page" class="#{default_link_classes} #{active_link_classes}">#{pagy.label_for(item)}</a></li>)
|
30
|
+
when :gap
|
31
|
+
%(<li class="page gap #{default_link_classes} border-y-0">#{pagy_t("pagy.gap")}</li>)
|
32
|
+
else
|
33
|
+
raise InternalError, "expected item types in series to be Integer, String or :gap; got #{item.inspect}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
html << %(#{next_html(pagy)}</ul></nav>)
|
37
|
+
end
|
38
|
+
|
39
|
+
def pagy_info(pagy, pagy_id: nil, item_name: nil, item_i18n_key: nil)
|
40
|
+
p_id = %( id="#{pagy_id}") if pagy_id
|
41
|
+
p_count = pagy.count
|
42
|
+
key = if p_count.zero? then "pagy.info.no_items"
|
43
|
+
elsif pagy.pages == 1 then "pagy.info.single_page"
|
44
|
+
else "pagy.info.multiple_pages" # rubocop:disable Lint/ElseLayout
|
45
|
+
end
|
46
|
+
|
47
|
+
%(<span#{p_id} class="text-sm text-gray-700 dark:text-gray-200 pagy-info">#{
|
48
|
+
pagy_t key, item_name: item_name || pagy_t(item_i18n_key || pagy.vars[:item_i18n_key], count: p_count),
|
49
|
+
count: p_count, from: pagy.from, to: pagy.to
|
50
|
+
}</span>)
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def prev_html(pagy, text: pagy_t("pagy.prev"))
|
56
|
+
link = pagy_link_proc(pagy, link_extra: "class=\"#{default_link_classes} #{page_link_classes} rounded-s-lg\"")
|
57
|
+
|
58
|
+
if (p_prev = pagy.prev)
|
59
|
+
%(<li class="page prev">#{link.call(p_prev, text, prev_aria_label_attr)}</li>)
|
60
|
+
else
|
61
|
+
%(<li class="page prev disabled"><span role="link" aria-disabled="true" class="#{default_link_classes} #{active_link_classes} border-e-0 rounded-s-lg" #{
|
62
|
+
prev_aria_label_attr}>#{text}</span></li>)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def next_html(pagy, text: pagy_t("pagy.next"))
|
67
|
+
link = pagy_link_proc(pagy, link_extra: "class=\"#{default_link_classes} #{page_link_classes} rounded-e-lg\"")
|
68
|
+
|
69
|
+
if (p_next = pagy.next)
|
70
|
+
%(<li class="page next">#{link.call(p_next, text, next_aria_label_attr)}</li>)
|
71
|
+
else
|
72
|
+
%(<li class="page next disabled"><span role="link" aria-disabled="true" class="#{default_link_classes} #{active_link_classes} rounded-e-lg" #{
|
73
|
+
next_aria_label_attr}>#{text}</span></li>)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def default_link_classes
|
78
|
+
"flex items-center justify-center px-3 h-8 leading-tight text-gray-500 border border-gray-300 bg-white dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200"
|
79
|
+
end
|
80
|
+
|
81
|
+
def page_link_classes
|
82
|
+
"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white"
|
83
|
+
end
|
84
|
+
|
85
|
+
def active_link_classes
|
86
|
+
"text-primary-600 hover:text-primary-600 dark:bg-gray-700 dark:text-white dark:hover:text-white cursor-default select-none"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
Plutonium::ComponentRegistry.register :pagination, to: Plutonium::Ui::PaginationComponent
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%= render_component :block, rounded: :all do %>
|
2
|
+
<div <%= render_component_attributes %>>
|
3
|
+
<% if title.present? %>
|
4
|
+
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
|
5
|
+
<%= title %>
|
6
|
+
</h5>
|
7
|
+
<% end %>
|
8
|
+
<%= content %>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
@@ -0,0 +1,154 @@
|
|
1
|
+
<aside
|
2
|
+
id="drawer-navigation"
|
3
|
+
class="<%= sidebar_class %>"
|
4
|
+
aria-label="Sidenav"
|
5
|
+
data-turbo-permanent
|
6
|
+
>
|
7
|
+
<div class="<%= sidebar_container_class %>">
|
8
|
+
<%= content %>
|
9
|
+
<div class="hidden absolute bottom-0 left-0 justify-center p-4 space-x-4 w-full lg:flex bg-white dark:bg-gray-800 z-20">
|
10
|
+
|
11
|
+
<!--
|
12
|
+
<a
|
13
|
+
href="#"
|
14
|
+
class="inline-flex justify-center p-2 text-gray-500 rounded cursor-pointer dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-600"
|
15
|
+
>
|
16
|
+
<svg
|
17
|
+
aria-hidden="true"
|
18
|
+
class="w-6 h-6"
|
19
|
+
fill="currentColor"
|
20
|
+
viewBox="0 0 20 20"
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
22
|
+
>
|
23
|
+
<path
|
24
|
+
d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"
|
25
|
+
></path>
|
26
|
+
</svg>
|
27
|
+
</a>
|
28
|
+
<a
|
29
|
+
href="#"
|
30
|
+
data-tooltip-target="tooltip-settings"
|
31
|
+
class="inline-flex justify-center p-2 text-gray-500 rounded cursor-pointer dark:text-gray-200 dark:hover:text-white hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"
|
32
|
+
>
|
33
|
+
<svg
|
34
|
+
aria-hidden="true"
|
35
|
+
class="w-6 h-6"
|
36
|
+
fill="currentColor"
|
37
|
+
viewBox="0 0 20 20"
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
39
|
+
>
|
40
|
+
<path
|
41
|
+
fill-rule="evenodd"
|
42
|
+
d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z"
|
43
|
+
clip-rule="evenodd"
|
44
|
+
></path>
|
45
|
+
</svg>
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<div
|
49
|
+
id="tooltip-settings"
|
50
|
+
role="tooltip"
|
51
|
+
class="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip"
|
52
|
+
>
|
53
|
+
Settings page
|
54
|
+
<div class="tooltip-arrow" data-popper-arrow></div>
|
55
|
+
</div>
|
56
|
+
-->
|
57
|
+
|
58
|
+
<script>
|
59
|
+
function updateColorMode() {
|
60
|
+
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
61
|
+
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
62
|
+
document.documentElement.classList.add('dark')
|
63
|
+
} else {
|
64
|
+
document.documentElement.classList.remove('dark')
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
function setLightColorMode() {
|
69
|
+
// Whenever the user explicitly chooses light mode
|
70
|
+
localStorage.theme = 'light'
|
71
|
+
updateColorMode()
|
72
|
+
}
|
73
|
+
|
74
|
+
function setDarkColorMode() {
|
75
|
+
// Whenever the user explicitly chooses dark mode
|
76
|
+
localStorage.theme = 'dark'
|
77
|
+
updateColorMode()
|
78
|
+
}
|
79
|
+
|
80
|
+
function setSystemColorMode() {
|
81
|
+
// Whenever the user explicitly chooses to respect the OS preference
|
82
|
+
localStorage.removeItem('theme')
|
83
|
+
updateColorMode()
|
84
|
+
}
|
85
|
+
|
86
|
+
updateColorMode()
|
87
|
+
</script>
|
88
|
+
|
89
|
+
|
90
|
+
<button
|
91
|
+
type="button"
|
92
|
+
data-dropdown-toggle="color-mode-dropdown"
|
93
|
+
class="inline-flex justify-center p-2 text-gray-500 rounded cursor-pointer dark:hover:text-white dark:text-gray-200 hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-600"
|
94
|
+
>
|
95
|
+
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24">
|
96
|
+
<path d="M5 13.17a3.001 3.001 0 0 0 0 5.66V20a1 1 0 1 0 2 0v-1.17a3.001 3.001 0 0 0 0-5.66V4a1 1 0 0 0-2 0v9.17ZM11 20v-9.17a3.001 3.001 0 0 1 0-5.66V4a1 1 0 1 1 2 0v1.17a3.001 3.001 0 0 1 0 5.66V20a1 1 0 1 1-2 0Zm6-1.17V20a1 1 0 1 0 2 0v-1.17a3.001 3.001 0 0 0 0-5.66V4a1 1 0 1 0-2 0v9.17a3.001 3.001 0 0 0 0 5.66Z"/>
|
97
|
+
</svg>
|
98
|
+
</button>
|
99
|
+
|
100
|
+
|
101
|
+
<div
|
102
|
+
class="hidden z-50 my-4 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
|
103
|
+
id="color-mode-dropdown"
|
104
|
+
>
|
105
|
+
<ul class="py-1" role="none">
|
106
|
+
<li>
|
107
|
+
<button
|
108
|
+
type="button"
|
109
|
+
class="w-full block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:text-white dark:text-gray-300 dark:hover:bg-gray-600"
|
110
|
+
role="menuitem"
|
111
|
+
onclick="setLightColorMode()"
|
112
|
+
>
|
113
|
+
<div class="flex justify-start">
|
114
|
+
<svg class="w-6 h-6 me-2 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
115
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5V3m0 18v-2M7.05 7.05 5.636 5.636m12.728 12.728L16.95 16.95M5 12H3m18 0h-2M7.05 16.95l-1.414 1.414M18.364 5.636 16.95 7.05M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/>
|
116
|
+
</svg>
|
117
|
+
Light
|
118
|
+
</div>
|
119
|
+
</a>
|
120
|
+
</li>
|
121
|
+
<li>
|
122
|
+
<button
|
123
|
+
type="button"
|
124
|
+
class="w-full block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:text-white dark:text-gray-300 dark:hover:bg-gray-600"
|
125
|
+
role="menuitem"
|
126
|
+
onclick="setDarkColorMode()"
|
127
|
+
>
|
128
|
+
<div class="flex justify-start">
|
129
|
+
<svg class="w-6 h-6 me-2 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
130
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z"/>
|
131
|
+
</svg>
|
132
|
+
Dark
|
133
|
+
</div>
|
134
|
+
</a>
|
135
|
+
</li>
|
136
|
+
<li>
|
137
|
+
<button
|
138
|
+
type="button"
|
139
|
+
class="w-full block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:text-white dark:text-gray-300 dark:hover:bg-gray-600"
|
140
|
+
role="menuitem"
|
141
|
+
onclick="setSystemColorMode()"
|
142
|
+
>
|
143
|
+
<div class="flex justify-start">
|
144
|
+
<svg class="w-6 h-6 me-2 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
145
|
+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 16H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1M9 12H4m8 8V9h8v11h-8Zm0 0H9m8-4a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"/>
|
146
|
+
</svg>
|
147
|
+
System
|
148
|
+
</div>
|
149
|
+
</a>
|
150
|
+
</li>
|
151
|
+
</ul>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
</aside>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Plutonium::Ui
|
2
|
+
class SidebarComponent < Plutonium::Ui::Base
|
3
|
+
private
|
4
|
+
|
5
|
+
def sidebar_class
|
6
|
+
"fixed top-0 left-0 z-40 w-64 h-screen pt-14 transition-transform -translate-x-full bg-white border-r border-gray-200 lg:translate-x-0 dark:bg-gray-800 dark:border-gray-700"
|
7
|
+
end
|
8
|
+
|
9
|
+
def sidebar_container_class
|
10
|
+
"overflow-y-auto py-5 px-3 h-full bg-white dark:bg-gray-800"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Plutonium::ComponentRegistry.register :sidebar, to: Plutonium::Ui::SidebarComponent
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Plutonium::Ui
|
2
|
+
class SidebarMenuComponent < Plutonium::Ui::Base
|
3
|
+
option :separated, optional: true
|
4
|
+
|
5
|
+
private
|
6
|
+
|
7
|
+
def menu_class
|
8
|
+
"space-y-2 #{separated ? "pt-5 mt-5 border-t border-gray-200 dark:border-gray-700" : nil}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
Plutonium::ComponentRegistry.register :sidebar_menu, to: Plutonium::Ui::SidebarMenuComponent
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<% if value.is_a?(String) %>
|
2
|
+
<li>
|
3
|
+
<a
|
4
|
+
href="<%= value %>"
|
5
|
+
class="<%= link_button_class %>"
|
6
|
+
>
|
7
|
+
<svg
|
8
|
+
aria-hidden="true"
|
9
|
+
class="w-6 h-6 text-gray-500 transition duration-75 dark:text-gray-200 group-hover:text-gray-900 dark:group-hover:text-white"
|
10
|
+
fill="currentColor"
|
11
|
+
viewBox="0 0 20 20"
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
13
|
+
>
|
14
|
+
<path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path>
|
15
|
+
<path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path>
|
16
|
+
</svg>
|
17
|
+
<span class="<%= link_label_class %>"><%= name %></span>
|
18
|
+
<% if indicator.present? %>
|
19
|
+
<span class="inline-flex justify-center items-center w-5 h-5 text-xs font-semibold rounded-full text-primary-800 bg-primary-100 dark:bg-primary-200 dark:text-primary-800">
|
20
|
+
<%= indicator %>
|
21
|
+
</span>
|
22
|
+
<% end %>
|
23
|
+
</a>
|
24
|
+
</li>
|
25
|
+
<% else %>
|
26
|
+
<li>
|
27
|
+
<button
|
28
|
+
type="button"
|
29
|
+
class="<%= link_button_class %> w-full transition duration-75"
|
30
|
+
aria-controls="dropdown-<%= name.parameterize %>"
|
31
|
+
data-collapse-toggle="dropdown-<%= name.parameterize %>"
|
32
|
+
>
|
33
|
+
<svg
|
34
|
+
aria-hidden="true"
|
35
|
+
class="shrink-0 w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-200 dark:group-hover:text-white"
|
36
|
+
fill="currentColor"
|
37
|
+
viewBox="0 0 20 20"
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
39
|
+
>
|
40
|
+
<path
|
41
|
+
fill-rule="evenodd"
|
42
|
+
d="M10 2a4 4 0 00-4 4v1H5a1 1 0 00-.994.89l-1 9A1 1 0 004 18h12a1 1 0 00.994-1.11l-1-9A1 1 0 0015 7h-1V6a4 4 0 00-4-4zm2 5V6a2 2 0 10-4 0v1h4zm-6 3a1 1 0 112 0 1 1 0 01-2 0zm7-1a1 1 0 100 2 1 1 0 000-2z"
|
43
|
+
clip-rule="evenodd"
|
44
|
+
></path>
|
45
|
+
</svg>
|
46
|
+
<span class="<%= link_label_class %>"><%= name %></span>
|
47
|
+
<svg
|
48
|
+
aria-hidden="true"
|
49
|
+
class="w-6 h-6"
|
50
|
+
fill="currentColor"
|
51
|
+
viewBox="0 0 20 20"
|
52
|
+
xmlns="http://www.w3.org/2000/svg"
|
53
|
+
>
|
54
|
+
<path
|
55
|
+
fill-rule="evenodd"
|
56
|
+
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
57
|
+
clip-rule="evenodd"
|
58
|
+
></path>
|
59
|
+
</svg>
|
60
|
+
</button>
|
61
|
+
<ul id="dropdown-<%= name.parameterize %>" class="hidden py-2 space-y-2">
|
62
|
+
<% value.each do |name, value| %>
|
63
|
+
<li>
|
64
|
+
<a
|
65
|
+
href="<%= value %>"
|
66
|
+
class="<%= sub_link_button_class %>"
|
67
|
+
><%= name %></a>
|
68
|
+
</li>
|
69
|
+
<% end %>
|
70
|
+
</ul>
|
71
|
+
</li>
|
72
|
+
<% end %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Plutonium::Ui
|
2
|
+
class SidebarMenuItemComponent < Plutonium::Ui::Base
|
3
|
+
option :name
|
4
|
+
option :value
|
5
|
+
option :indicator, optional: true
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def link_button_class
|
10
|
+
"group flex items-center rounded-lg p-2 text-base font-medium text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
|
11
|
+
end
|
12
|
+
|
13
|
+
def link_label_class
|
14
|
+
"flex-1 ml-3 text-left whitespace-nowrap"
|
15
|
+
end
|
16
|
+
|
17
|
+
def sub_link_button_class
|
18
|
+
"flex items-center p-2 pl-11 w-full text-base font-medium text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
Plutonium::ComponentRegistry.register :sidebar_menu_item, to: Plutonium::Ui::SidebarMenuItemComponent
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
<div role="status" class="p-4 space-y-4 border border-gray-200 divide-y divide-gray-200 rounded shadow animate-pulse dark:divide-gray-700 md:p-6 dark:border-gray-700">
|
3
|
+
<div class="flex items-center justify-between">
|
4
|
+
<div>
|
5
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5"></div>
|
6
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div>
|
7
|
+
</div>
|
8
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12"></div>
|
9
|
+
</div>
|
10
|
+
<div class="flex items-center justify-between pt-4">
|
11
|
+
<div>
|
12
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-600 w-24 mb-2.5"></div>
|
13
|
+
<div class="w-32 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div>
|
14
|
+
</div>
|
15
|
+
<div class="h-2.5 bg-gray-300 rounded-full dark:bg-gray-700 w-12"></div>
|
16
|
+
</div>
|
17
|
+
<span class="sr-only">Loading...</span>
|
18
|
+
</div>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div data-controller="tab-bar" <%= render_component_attributes %>>
|
2
|
+
<%= content %>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
|
6
|
+
<ul class="text-sm font-medium flex flex-wrap -mb-px -ms-px">
|
7
|
+
<li class="me-2">
|
8
|
+
<a class="inline-block p-4 text-primary-600 border-b-2 border-primary-600 rounded-t-lg active dark:text-primary-500 dark:border-primary-500" aria-current="page" href="">Details</a>
|
9
|
+
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300" href="">Something</a>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<% if search_object.scope_definitions.present? %>
|
2
|
+
<%
|
3
|
+
name = name.to_s
|
4
|
+
current_scope = resource_query_params[:scope]
|
5
|
+
%>
|
6
|
+
<%= render_component :block, rounded: :top do %>
|
7
|
+
<ul class="text-sm font-medium flex flex-wrap -mb-px">
|
8
|
+
<li class="me-2">
|
9
|
+
<% if current_scope.blank? %>
|
10
|
+
<a class="inline-block p-4 text-primary-600 border-b-2 border-primary-600 rounded-t-lg active dark:text-primary-500 dark:border-primary-500" aria-current="page" href="?<%= search_object.build_url(scope: nil) %>">All</a>
|
11
|
+
<% else %>
|
12
|
+
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 dark:text-gray-500" href="<%= search_object.build_url(scope: nil) %>">All</a>
|
13
|
+
<% end %>
|
14
|
+
</li>
|
15
|
+
|
16
|
+
<% search_object.scope_definitions.each do |name, definition| %>
|
17
|
+
<li class="me-2">
|
18
|
+
<% if name == current_scope %>
|
19
|
+
<a class="inline-block p-4 text-primary-600 border-b-2 border-primary-600 rounded-t-lg active dark:text-primary-500 dark:border-primary-500" aria-current="page" href="?<%= search_object.build_url(scope: name) %>"><%= name.humanize %></a>
|
20
|
+
<% else %>
|
21
|
+
<a class="inline-block p-4 border-b-2 border-transparent rounded-t-lg hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 dark:text-gray-500" href="<%= search_object.build_url(scope: name) %>"><%= name.humanize %></a>
|
22
|
+
<% end %>
|
23
|
+
</li>
|
24
|
+
<% end %>
|
25
|
+
</ul>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<%= render_component :block, id: "resource-table-container", scroll: :x, rounded: table_rounding, data: {controller:"scroll-preserver", action: "scroll->scroll-preserver#scrolled"} do %>
|
30
|
+
<% unless resources.any? %>
|
31
|
+
<div class="col-12">
|
32
|
+
<%=
|
33
|
+
render_component :empty_card, message: "No #{resource_name_plural(resource_class).downcase} match your query" do
|
34
|
+
if current_policy.create?
|
35
|
+
render_component :button, label: "Create #{resource_name(resource_class)}",
|
36
|
+
to: resource_url_for(resource_class, action: :new),
|
37
|
+
color: :primary
|
38
|
+
end
|
39
|
+
end
|
40
|
+
%>
|
41
|
+
</div>
|
42
|
+
<% else %>
|
43
|
+
<table data-controller="table" <%= render_component_attributes %>>
|
44
|
+
<thead class="<%= table_head_classes %>">
|
45
|
+
<tr>
|
46
|
+
<th scope="col" class="p-4">
|
47
|
+
<div class="flex items-center">
|
48
|
+
<input id="checkbox-all-search" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
49
|
+
<label for="checkbox-all-search" class="sr-only">checkbox</label>
|
50
|
+
</div>
|
51
|
+
</th>
|
52
|
+
<% fields.each do |name, field| %>
|
53
|
+
<th scope="col" class="px-6 py-3">
|
54
|
+
<%= table_header name, field.label, search_object %>
|
55
|
+
</th>
|
56
|
+
<% end %>
|
57
|
+
<th scope="col" class="px-6 py-3 text-end"> </th>
|
58
|
+
</tr>
|
59
|
+
</thead>
|
60
|
+
<tbody>
|
61
|
+
<% resources.each do |resource| %>
|
62
|
+
<tr class="<%= table_row_classes %>">
|
63
|
+
<th scope="row" class="w-4 p-4">
|
64
|
+
<div class="flex items-center">
|
65
|
+
<input id="checkbox-table-search-1" type="checkbox" class="w-4 h-4 text-primary-600 bg-gray-100 border-gray-300 rounded focus:ring-primary-500 dark:focus:ring-primary-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
|
66
|
+
<label for="checkbox-table-search-1" class="sr-only">checkbox</label>
|
67
|
+
</div>
|
68
|
+
</th>
|
69
|
+
<% fields.each do |name, field| %>
|
70
|
+
<%
|
71
|
+
options = field.options
|
72
|
+
max_width = options.delete :pu_max_width
|
73
|
+
%>
|
74
|
+
<td class="<%= table_row_cell_classes %>">
|
75
|
+
<%= field.render self, resource %>
|
76
|
+
</td>
|
77
|
+
<% end %>
|
78
|
+
<td class="<%= table_actions_cell_classes %>">
|
79
|
+
<% record_actions.permitted_for(policy(resource)).values.each do |action| %>
|
80
|
+
<%= table_action_button resource, action %>
|
81
|
+
<% end %>
|
82
|
+
</td>
|
83
|
+
</tr>
|
84
|
+
<% end %>
|
85
|
+
</tbody>
|
86
|
+
</table>
|
87
|
+
|
88
|
+
<% if pager.present? %>
|
89
|
+
<%= render_component :pagination, pager: pager %>
|
90
|
+
<% end %>
|
91
|
+
<% end %>
|
92
|
+
<% end %>
|