Skip to content

Commit 20ef662

Browse files
committed
Rebase Attempt
drop b79ac6b Use custom lightbox controller instead of the one imported from the Stimulus components library pick 4c9f117 Initial Approach
1 parent b79ac6b commit 20ef662

File tree

3 files changed

+9373
-6459
lines changed

3 files changed

+9373
-6459
lines changed

app/javascript/js/application.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Application, Controller } from '@hotwired/stimulus'
33
import Clipboard from '@stimulus-components/clipboard'
44
import PasswordVisibility from '@stimulus-components/password-visibility'
55
import TextareaAutogrow from 'stimulus-textarea-autogrow'
6+
import Lightbox from '@stimulus-components/lightbox'
67
import TurboPower from 'turbo_power'
78

89
TurboPower.initialize(window.Turbo.StreamActions)
@@ -35,5 +36,6 @@ application.register('popover', Popover)
3536
application.register('clipboard', Clipboard)
3637
application.register('password-visibility', PasswordVisibility)
3738
application.register('textarea-autogrow', TextareaAutogrow)
39+
application.register('lightbox', Lightbox)
3840

3941
export { application }

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@hotwired/turbo-rails": "^8.0.16",
2626
"@rails/activestorage": "^6.1.710",
2727
"@stimulus-components/clipboard": "^5.0.0",
28+
"@stimulus-components/lightbox": "^4.0.0",
2829
"@stimulus-components/password-visibility": "^3.0.0",
2930
"@tailwindcss/container-queries": "^0.1.1",
3031
"@tailwindcss/forms": "^0.5.10",

0 commit comments

Comments
 (0)