Compare commits

..

No commits in common. "8f9ef3c9f87e47e9d9a69ee854e3d373674a11df" and "0636d4cceac1bf2e36065924d374ea8fadbefbed" have entirely different histories.

4 changed files with 172 additions and 180 deletions

View file

@ -1,29 +1,29 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (8.0.4) actioncable (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
actionmailbox (8.0.4) actionmailbox (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
activejob (= 8.0.4) activejob (= 8.0.2)
activerecord (= 8.0.4) activerecord (= 8.0.2)
activestorage (= 8.0.4) activestorage (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
mail (>= 2.8.0) mail (>= 2.8.0)
actionmailer (8.0.4) actionmailer (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
actionview (= 8.0.4) actionview (= 8.0.2)
activejob (= 8.0.4) activejob (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
mail (>= 2.8.0) mail (>= 2.8.0)
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
actionpack (8.0.4) actionpack (8.0.2)
actionview (= 8.0.4) actionview (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
rack (>= 2.2.4) rack (>= 2.2.4)
rack-session (>= 1.0.1) rack-session (>= 1.0.1)
@ -31,35 +31,35 @@ GEM
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6) rails-html-sanitizer (~> 1.6)
useragent (~> 0.16) useragent (~> 0.16)
actiontext (8.0.4) actiontext (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
activerecord (= 8.0.4) activerecord (= 8.0.2)
activestorage (= 8.0.4) activestorage (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
globalid (>= 0.6.0) globalid (>= 0.6.0)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (8.0.4) actionview (8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
builder (~> 3.1) builder (~> 3.1)
erubi (~> 1.11) erubi (~> 1.11)
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6) rails-html-sanitizer (~> 1.6)
activejob (8.0.4) activejob (8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (8.0.4) activemodel (8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
activerecord (8.0.4) activerecord (8.0.2)
activemodel (= 8.0.4) activemodel (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
timeout (>= 0.4.0) timeout (>= 0.4.0)
activestorage (8.0.4) activestorage (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
activejob (= 8.0.4) activejob (= 8.0.2)
activerecord (= 8.0.4) activerecord (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
marcel (~> 1.0) marcel (~> 1.0)
activesupport (8.0.4) activesupport (8.0.2)
base64 base64
benchmark (>= 0.3) benchmark (>= 0.3)
bigdecimal bigdecimal
@ -72,19 +72,19 @@ GEM
securerandom (>= 0.3) securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5) tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1) uri (>= 0.13.1)
addressable (2.8.8) addressable (2.8.7)
public_suffix (>= 2.0.2, < 8.0) public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3) ast (2.4.3)
backport (1.2.0) backport (1.2.0)
base64 (0.3.0) base64 (0.3.0)
bcrypt (3.1.21) bcrypt (3.1.21)
bcrypt_pbkdf (1.1.2) bcrypt_pbkdf (1.1.1)
benchmark (0.5.0) benchmark (0.4.1)
bigdecimal (4.0.1) bigdecimal (3.2.2)
bindex (0.8.1) bindex (0.8.1)
bootsnap (1.23.0) bootsnap (1.18.6)
msgpack (~> 1.2) msgpack (~> 1.2)
brakeman (8.0.2) brakeman (7.0.2)
racc racc
builder (3.3.0) builder (3.3.0)
capybara (3.40.0) capybara (3.40.0)
@ -98,55 +98,54 @@ GEM
xpath (~> 3.2) xpath (~> 3.2)
childprocess (5.1.0) childprocess (5.1.0)
logger (~> 1.5) logger (~> 1.5)
concurrent-ruby (1.3.6) concurrent-ruby (1.3.5)
connection_pool (3.0.2) connection_pool (2.5.3)
crass (1.0.6) crass (1.0.6)
cssbundling-rails (1.4.3) cssbundling-rails (1.4.3)
railties (>= 6.0.0) railties (>= 6.0.0)
date (3.5.1) date (3.4.1)
debug (1.11.1) debug (1.11.0)
irb (~> 1.10) irb (~> 1.10)
reline (>= 0.3.8) reline (>= 0.3.8)
diff-lcs (1.6.2) diff-lcs (1.6.2)
dotenv (3.2.0) dotenv (3.1.8)
drb (2.2.3) drb (2.2.3)
ed25519 (1.4.0) ed25519 (1.4.0)
erb (6.0.1) erb (5.0.1)
erubi (1.13.1) erubi (1.13.1)
et-orbi (1.4.0) et-orbi (1.2.11)
tzinfo tzinfo
factory_bot (6.5.6) factory_bot (6.5.6)
activesupport (>= 6.1.0) activesupport (>= 6.1.0)
factory_bot_rails (6.5.1) factory_bot_rails (6.5.1)
factory_bot (~> 6.5) factory_bot (~> 6.5)
railties (>= 6.1.0) railties (>= 6.1.0)
fugit (1.12.1) fugit (1.11.1)
et-orbi (~> 1.4) et-orbi (~> 1, >= 1.2.11)
raabro (~> 1.4) raabro (~> 1.4)
globalid (1.3.0) globalid (1.2.1)
activesupport (>= 6.1) activesupport (>= 6.1)
haml (7.2.0) haml (7.1.0)
temple (>= 0.8.2) temple (>= 0.8.2)
thor thor
tilt tilt
i18n (1.14.8) i18n (1.14.7)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
importmap-rails (2.2.3) importmap-rails (2.1.0)
actionpack (>= 6.0.0) actionpack (>= 6.0.0)
activesupport (>= 6.0.0) activesupport (>= 6.0.0)
railties (>= 6.0.0) railties (>= 6.0.0)
io-console (0.8.2) io-console (0.8.0)
irb (1.17.0) irb (1.15.2)
pp (>= 0.6.0) pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0) rdoc (>= 4.0.0)
reline (>= 0.4.2) reline (>= 0.4.2)
jaro_winkler (1.7.0) jaro_winkler (1.6.1)
jbuilder (2.14.1) jbuilder (2.13.0)
actionview (>= 7.0.0) actionview (>= 5.0.0)
activesupport (>= 7.0.0) activesupport (>= 5.0.0)
json (2.18.1) json (2.12.2)
kamal (2.10.1) kamal (2.7.0)
activesupport (>= 7.0) activesupport (>= 7.0)
base64 (~> 0.2) base64 (~> 0.2)
bcrypt_pbkdf (~> 1.0) bcrypt_pbkdf (~> 1.0)
@ -157,8 +156,8 @@ GEM
sshkit (>= 1.23.0, < 2.0) sshkit (>= 1.23.0, < 2.0)
thor (~> 1.3) thor (~> 1.3)
zeitwerk (>= 2.6.18, < 3.0) zeitwerk (>= 2.6.18, < 3.0)
kramdown (2.5.2) kramdown (2.5.1)
rexml (>= 3.4.4) rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0) kramdown (~> 2.0)
language_server-protocol (3.17.0.5) language_server-protocol (3.17.0.5)
@ -175,22 +174,20 @@ GEM
rexml rexml
lint_roller (1.1.0) lint_roller (1.1.0)
logger (1.7.0) logger (1.7.0)
loofah (2.25.0) loofah (2.24.1)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.12.0) nokogiri (>= 1.12.0)
mail (2.9.0) mail (2.8.1)
logger
mini_mime (>= 0.1.1) mini_mime (>= 0.1.1)
net-imap net-imap
net-pop net-pop
net-smtp net-smtp
marcel (1.1.0) marcel (1.0.4)
matrix (0.4.3) matrix (0.4.3)
mini_mime (1.1.5) mini_mime (1.1.5)
minitest (6.0.1) minitest (5.25.5)
prism (~> 1.5)
msgpack (1.8.0) msgpack (1.8.0)
net-imap (0.6.3) net-imap (0.5.9)
date date
net-protocol net-protocol
net-pop (0.1.2) net-pop (0.1.2)
@ -204,64 +201,64 @@ GEM
net-smtp (0.5.1) net-smtp (0.5.1)
net-protocol net-protocol
net-ssh (7.3.0) net-ssh (7.3.0)
nio4r (2.7.5) nio4r (2.7.4)
nokogiri (1.19.1-aarch64-linux-gnu) nokogiri (1.18.8-aarch64-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.19.1-aarch64-linux-musl) nokogiri (1.18.8-aarch64-linux-musl)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.19.1-arm-linux-gnu) nokogiri (1.18.8-arm-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.19.1-arm-linux-musl) nokogiri (1.18.8-arm-linux-musl)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.19.1-x86_64-linux-gnu) nokogiri (1.18.8-x86_64-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.19.1-x86_64-linux-musl) nokogiri (1.18.8-x86_64-linux-musl)
racc (~> 1.4) racc (~> 1.4)
observer (0.1.2) observer (0.1.2)
open3 (0.2.1) ostruct (0.6.2)
ostruct (0.6.3)
parallel (1.27.0) parallel (1.27.0)
parser (3.3.10.2) parser (3.3.8.0)
ast (~> 2.4.1) ast (~> 2.4.1)
racc racc
pp (0.6.3) pp (0.6.2)
prettyprint prettyprint
prettyprint (0.2.0) prettyprint (0.2.0)
prism (1.9.0) prism (1.4.0)
propshaft (1.3.1) propshaft (1.1.0)
actionpack (>= 7.0.0) actionpack (>= 7.0.0)
activesupport (>= 7.0.0) activesupport (>= 7.0.0)
rack rack
psych (5.3.1) railties (>= 7.0.0)
psych (5.2.6)
date date
stringio stringio
public_suffix (7.0.2) public_suffix (6.0.2)
puma (7.2.0) puma (6.6.0)
nio4r (~> 2.0) nio4r (~> 2.0)
raabro (1.4.0) raabro (1.4.0)
racc (1.8.1) racc (1.8.1)
rack (3.2.5) rack (3.1.16)
rack-session (2.1.1) rack-session (2.1.1)
base64 (>= 0.1.0) base64 (>= 0.1.0)
rack (>= 3.0.0) rack (>= 3.0.0)
rack-test (2.2.0) rack-test (2.2.0)
rack (>= 1.3) rack (>= 1.3)
rackup (2.3.1) rackup (2.2.1)
rack (>= 3) rack (>= 3)
rails (8.0.4) rails (8.0.2)
actioncable (= 8.0.4) actioncable (= 8.0.2)
actionmailbox (= 8.0.4) actionmailbox (= 8.0.2)
actionmailer (= 8.0.4) actionmailer (= 8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
actiontext (= 8.0.4) actiontext (= 8.0.2)
actionview (= 8.0.4) actionview (= 8.0.2)
activejob (= 8.0.4) activejob (= 8.0.2)
activemodel (= 8.0.4) activemodel (= 8.0.2)
activerecord (= 8.0.4) activerecord (= 8.0.2)
activestorage (= 8.0.4) activestorage (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 8.0.4) railties (= 8.0.2)
rails-dom-testing (2.3.0) rails-dom-testing (2.3.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
minitest minitest
@ -272,39 +269,36 @@ GEM
rails-i18n (8.1.0) rails-i18n (8.1.0)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 8.0.0, < 9) railties (>= 8.0.0, < 9)
railties (8.0.4) railties (8.0.2)
actionpack (= 8.0.4) actionpack (= 8.0.2)
activesupport (= 8.0.4) activesupport (= 8.0.2)
irb (~> 1.13) irb (~> 1.13)
rackup (>= 1.0.0) rackup (>= 1.0.0)
rake (>= 12.2) rake (>= 12.2)
thor (~> 1.0, >= 1.2.2) thor (~> 1.0, >= 1.2.2)
tsort (>= 0.2)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
rainbow (3.1.1) rainbow (3.1.1)
rake (13.3.1) rake (13.3.0)
rbs (3.10.3) rbs (3.9.5)
logger logger
tsort rdoc (6.14.2)
rdoc (7.2.0)
erb erb
psych (>= 4.0.0) psych (>= 4.0.0)
tsort regexp_parser (2.10.0)
regexp_parser (2.11.3) reline (0.6.1)
reline (0.6.3)
io-console (~> 0.5) io-console (~> 0.5)
reverse_markdown (3.0.2) reverse_markdown (3.0.0)
nokogiri nokogiri
rexml (3.4.4) rexml (3.4.1)
rspec-core (3.13.6) rspec-core (3.13.5)
rspec-support (~> 3.13.0) rspec-support (~> 3.13.0)
rspec-expectations (3.13.5) rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0) rspec-support (~> 3.13.0)
rspec-mocks (3.13.7) rspec-mocks (3.13.5)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0) rspec-support (~> 3.13.0)
rspec-rails (8.0.3) rspec-rails (8.0.2)
actionpack (>= 7.2) actionpack (>= 7.2)
activesupport (>= 7.2) activesupport (>= 7.2)
railties (>= 7.2) railties (>= 7.2)
@ -312,8 +306,8 @@ GEM
rspec-expectations (~> 3.13) rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13) rspec-mocks (~> 3.13)
rspec-support (~> 3.13) rspec-support (~> 3.13)
rspec-support (3.13.7) rspec-support (3.13.6)
rubocop (1.84.2) rubocop (1.77.0)
json (~> 2.3) json (~> 2.3)
language_server-protocol (~> 3.17.0.2) language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0) lint_roller (~> 1.1.0)
@ -321,17 +315,17 @@ GEM
parser (>= 3.3.0.2) parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0) regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.49.0, < 2.0) rubocop-ast (>= 1.45.1, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0) unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.0) rubocop-ast (1.45.1)
parser (>= 3.3.7.2) parser (>= 3.3.7.2)
prism (~> 1.7) prism (~> 1.4)
rubocop-performance (1.26.1) rubocop-performance (1.25.0)
lint_roller (~> 1.1) lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0) rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.47.1, < 2.0) rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rails (2.34.3) rubocop-rails (2.32.0)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
lint_roller (~> 1.1) lint_roller (~> 1.1)
rack (>= 1.1) rack (>= 1.1)
@ -342,26 +336,24 @@ GEM
rubocop-performance (>= 1.24) rubocop-performance (>= 1.24)
rubocop-rails (>= 2.30) rubocop-rails (>= 2.30)
ruby-progressbar (1.13.0) ruby-progressbar (1.13.0)
rubyzip (3.2.2) rubyzip (2.4.1)
securerandom (0.4.1) securerandom (0.4.1)
selenium-webdriver (4.41.0) selenium-webdriver (4.34.0)
base64 (~> 0.2) base64 (~> 0.2)
logger (~> 1.4) logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5) rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 4.0) rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0) websocket (~> 1.0)
solargraph (0.58.2) solargraph (0.57.0)
ast (~> 2.4.3)
backport (~> 1.2) backport (~> 1.2)
benchmark (~> 0.4) benchmark (~> 0.4)
bundler (>= 2.0) bundler (~> 2.0)
diff-lcs (~> 1.4) diff-lcs (~> 1.4)
jaro_winkler (~> 1.6, >= 1.6.1) jaro_winkler (~> 1.6, >= 1.6.1)
kramdown (~> 2.3) kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1) kramdown-parser-gfm (~> 1.1)
logger (~> 1.6) logger (~> 1.6)
observer (~> 0.1) observer (~> 0.1)
open3 (~> 0.2.1)
ostruct (~> 0.6) ostruct (~> 0.6)
parser (~> 3.0) parser (~> 3.0)
prism (~> 1.4) prism (~> 1.4)
@ -373,32 +365,32 @@ GEM
yard (~> 0.9, >= 0.9.24) yard (~> 0.9, >= 0.9.24)
yard-activesupport-concern (~> 0.0) yard-activesupport-concern (~> 0.0)
yard-solargraph (~> 0.1) yard-solargraph (~> 0.1)
solargraph-rails (1.3) solargraph-rails (1.2.4)
activesupport activesupport
solargraph (>= 0.48.0) solargraph (>= 0.48.0, <= 0.57)
solid_cable (3.0.12) solid_cable (3.0.11)
actioncable (>= 7.2) actioncable (>= 7.2)
activejob (>= 7.2) activejob (>= 7.2)
activerecord (>= 7.2) activerecord (>= 7.2)
railties (>= 7.2) railties (>= 7.2)
solid_cache (1.0.10) solid_cache (1.0.7)
activejob (>= 7.2) activejob (>= 7.2)
activerecord (>= 7.2) activerecord (>= 7.2)
railties (>= 7.2) railties (>= 7.2)
solid_queue (1.3.2) solid_queue (1.1.5)
activejob (>= 7.1) activejob (>= 7.1)
activerecord (>= 7.1) activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1) concurrent-ruby (>= 1.3.1)
fugit (~> 1.11) fugit (~> 1.11.0)
railties (>= 7.1) railties (>= 7.1)
thor (>= 1.3.1) thor (~> 1.3.1)
sqlite3 (2.9.0-aarch64-linux-gnu) sqlite3 (2.7.2-aarch64-linux-gnu)
sqlite3 (2.9.0-aarch64-linux-musl) sqlite3 (2.7.2-aarch64-linux-musl)
sqlite3 (2.9.0-arm-linux-gnu) sqlite3 (2.7.2-arm-linux-gnu)
sqlite3 (2.9.0-arm-linux-musl) sqlite3 (2.7.2-arm-linux-musl)
sqlite3 (2.9.0-x86_64-linux-gnu) sqlite3 (2.7.2-x86_64-linux-gnu)
sqlite3 (2.9.0-x86_64-linux-musl) sqlite3 (2.7.2-x86_64-linux-musl)
sshkit (1.25.0) sshkit (1.24.0)
base64 base64
logger logger
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
@ -407,24 +399,23 @@ GEM
ostruct ostruct
stimulus-rails (1.3.4) stimulus-rails (1.3.4)
railties (>= 6.0.0) railties (>= 6.0.0)
stringio (3.2.0) stringio (3.1.7)
temple (0.10.4) temple (0.10.4)
thor (1.5.0) thor (1.3.2)
thruster (0.1.18) thruster (0.1.14)
thruster (0.1.18-aarch64-linux) thruster (0.1.14-aarch64-linux)
thruster (0.1.18-x86_64-linux) thruster (0.1.14-x86_64-linux)
tilt (2.7.0) tilt (2.6.1)
timeout (0.6.0) timeout (0.4.3)
tsort (0.2.0) turbo-rails (2.0.16)
turbo-rails (2.0.23)
actionpack (>= 7.1.0) actionpack (>= 7.1.0)
railties (>= 7.1.0) railties (>= 7.1.0)
tzinfo (2.0.6) tzinfo (2.0.6)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
unicode-display_width (3.2.0) unicode-display_width (3.1.4)
unicode-emoji (~> 4.1) unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.2.0) unicode-emoji (4.0.4)
uri (1.1.1) uri (1.0.3)
useragent (0.16.11) useragent (0.16.11)
web-console (4.2.1) web-console (4.2.1)
actionview (>= 6.0.0) actionview (>= 6.0.0)
@ -438,12 +429,12 @@ GEM
websocket-extensions (0.1.5) websocket-extensions (0.1.5)
xpath (3.2.0) xpath (3.2.0)
nokogiri (~> 1.8) nokogiri (~> 1.8)
yard (0.9.38) yard (0.9.37)
yard-activesupport-concern (0.0.1) yard-activesupport-concern (0.0.1)
yard (>= 0.8) yard (>= 0.8)
yard-solargraph (0.1.0) yard-solargraph (0.1.0)
yard (~> 0.9) yard (~> 0.9)
zeitwerk (2.7.5) zeitwerk (2.7.3)
PLATFORMS PLATFORMS
aarch64-linux aarch64-linux

View file

@ -6,12 +6,18 @@ export default class extends Controller {
updateDayInfo(event) { updateDayInfo(event) {
const image = this.imageTarget; const image = this.imageTarget;
const modeDay = this.modeDayTarget; const modeDay = this.modeDayTarget;
const modeDayMobile = this.modeDayMobileTarget;
const modeDayContent = event.target.dataset.day + ' : ' + event.target.dataset.mode; const modeDayContent = event.target.dataset.day + ' : ' + event.target.dataset.mode;
image.src = event.target.dataset.image; image.src = event.target.dataset.image;
modeDayMobile.textContent = modeDayContent;
modeDay.textContent = modeDayContent; modeDay.textContent = modeDayContent;
event.target.className = "selected-day " + event.target.dataset.mode; event.target.className = "selected-day " + event.target.dataset.mode;
} }
removeFeedback(event) {
event.target.className = "day " + event.target.dataset.mode;
}
connect() { connect() {
window.location = "#end"; window.location = "#end";
} }

View file

@ -22,8 +22,6 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Delius&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Delius&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/079b06296f.js" crossorigin="anonymous"></script>
<%# Includes all stylesheet files in app/assets/stylesheets %> <%# Includes all stylesheet files in app/assets/stylesheets %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %> <%= javascript_importmap_tags %>

View file

@ -1,17 +1,20 @@
<main data-controller="mood" class="columns m-auto"> <main data-controller="mood" class="columns m-auto">
<div class="current-day column is-hidden-mobile"> <div class="current-day column">
<section class="m-4"> <section class="m-4">
<figure class="image has-ratio"> <div class="is-hidden-tablet mb-4">
<div class="" data-mood-target="modeDayMobile">Aujourd'hui</div>
</div>
<figure class="image is-hidden-mobile has-ratio ">
<%= image_tag(@mode + ".jpg", "data-mood-target": "image") %> <%= image_tag(@mode + ".jpg", "data-mood-target": "image") %>
</figure> </figure>
</section> </section>
</div> </div>
<section class="section column has-background-primary-light is-flex is-flex-direction-column is-justify-content-space-around"> <section class="section column has-background-primary-light is-flex is-flex-direction-column is-justify-content-space-around">
<div class="is-hidden-mobile mb-4">
<div class="title is-3" data-mood-target="modeDay">Aujourd'hui</div>
</div>
<div class="tracker"> <div class="tracker">
<div class="legend is-flex is-flex-wrap-wrap mb-5"> <div class="legend is-flex is-flex-wrap-wrap mb-5">
<div class="is-flex is-align-items-center mr-4">
<div class=""><strong>Légende</strong></div>
</div>
<div class="is-flex is-align-items-center mr-4"> <div class="is-flex is-align-items-center mr-4">
<div class="bar-frigo mr-1"></div> <div class="bar-frigo mr-1"></div>
<div class="">Triste</div> <div class="">Triste</div>
@ -33,12 +36,6 @@
<div class="">A fond</div> <div class="">A fond</div>
</div> </div>
</div> </div>
<div class="container mb-4 p-3 has-background-white day-info">
<div class="title is-4" data-mood-target="modeDay">
<span class="icon"><i class="fa-regular fa-calendar"></i></span>
Aujourd'hui
</div>
</div>
<div class="logs"> <div class="logs">
<div class="is-flex is-flex-direction-row is-flex-wrap-wrap mb-3"> <div class="is-flex is-flex-direction-row is-flex-wrap-wrap mb-3">
<% @history.each do |month| %> <% @history.each do |month| %>
@ -49,7 +46,7 @@
<div class="is-flex is-flex-direction-column is-flex-wrap-wrap mb-3"> <div class="is-flex is-flex-direction-column is-flex-wrap-wrap mb-3">
<% week.each do |mood| %> <% week.each do |mood| %>
<% mode = mode_for(mood) %> <% mode = mode_for(mood) %>
<div data-image="<%= asset_path(mode + ".jpg") %>" data-mode="<%= mode %>" data-day="<%= l mood[:recorded_at].to_date %>" data-action="click->mood#updateDayInfo" title="<%= mood[:recorded_at] %> : <%= mode %>" class="day <%= mode %>"></div> <div data-image="<%= asset_path(mode + ".jpg") %>" data-mode="<%= mode %>" data-day="<%= l mood[:recorded_at].to_date %>" data-action="click->mood#updateDayInfo mouseover->mood#updateDayInfo mouseleave->mood#removeFeedback" title="<%= mood[:recorded_at] %> : <%= mode %>" class="day <%= mode %>"></div>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>