Skip to content

Commit

Permalink
Update dependencies, improve UI
Browse files Browse the repository at this point in the history
  • Loading branch information
justalever committed Mar 29, 2023
1 parent ee0dc6e commit cfae176
Show file tree
Hide file tree
Showing 7 changed files with 537 additions and 601 deletions.
208 changes: 104 additions & 104 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,186 +9,186 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actioncable (7.0.2.2)
actionpack (= 7.0.2.2)
activesupport (= 7.0.2.2)
actioncable (7.0.4.3)
actionpack (= 7.0.4.3)
activesupport (= 7.0.4.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (7.0.2.2)
actionpack (= 7.0.2.2)
activejob (= 7.0.2.2)
activerecord (= 7.0.2.2)
activestorage (= 7.0.2.2)
activesupport (= 7.0.2.2)
actionmailbox (7.0.4.3)
actionpack (= 7.0.4.3)
activejob (= 7.0.4.3)
activerecord (= 7.0.4.3)
activestorage (= 7.0.4.3)
activesupport (= 7.0.4.3)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.0.2.2)
actionpack (= 7.0.2.2)
actionview (= 7.0.2.2)
activejob (= 7.0.2.2)
activesupport (= 7.0.2.2)
actionmailer (7.0.4.3)
actionpack (= 7.0.4.3)
actionview (= 7.0.4.3)
activejob (= 7.0.4.3)
activesupport (= 7.0.4.3)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0)
actionpack (7.0.2.2)
actionview (= 7.0.2.2)
activesupport (= 7.0.2.2)
actionpack (7.0.4.3)
actionview (= 7.0.4.3)
activesupport (= 7.0.4.3)
rack (~> 2.0, >= 2.2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (7.0.2.2)
actionpack (= 7.0.2.2)
activerecord (= 7.0.2.2)
activestorage (= 7.0.2.2)
activesupport (= 7.0.2.2)
actiontext (7.0.4.3)
actionpack (= 7.0.4.3)
activerecord (= 7.0.4.3)
activestorage (= 7.0.4.3)
activesupport (= 7.0.4.3)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.0.2.2)
activesupport (= 7.0.2.2)
actionview (7.0.4.3)
activesupport (= 7.0.4.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (7.0.2.2)
activesupport (= 7.0.2.2)
activejob (7.0.4.3)
activesupport (= 7.0.4.3)
globalid (>= 0.3.6)
activemodel (7.0.2.2)
activesupport (= 7.0.2.2)
activerecord (7.0.2.2)
activemodel (= 7.0.2.2)
activesupport (= 7.0.2.2)
activestorage (7.0.2.2)
actionpack (= 7.0.2.2)
activejob (= 7.0.2.2)
activerecord (= 7.0.2.2)
activesupport (= 7.0.2.2)
activemodel (7.0.4.3)
activesupport (= 7.0.4.3)
activerecord (7.0.4.3)
activemodel (= 7.0.4.3)
activesupport (= 7.0.4.3)
activestorage (7.0.4.3)
actionpack (= 7.0.4.3)
activejob (= 7.0.4.3)
activerecord (= 7.0.4.3)
activesupport (= 7.0.4.3)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (7.0.2.2)
activesupport (7.0.4.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
ast (2.4.2)
builder (3.2.4)
concurrent-ruby (1.1.9)
concurrent-ruby (1.2.2)
crass (1.0.6)
cssbundling-rails (1.1.0)
cssbundling-rails (1.1.2)
railties (>= 6.0.0)
digest (3.1.0)
erubi (1.10.0)
globalid (1.0.0)
date (3.3.3)
erubi (1.12.0)
globalid (1.1.0)
activesupport (>= 5.0)
i18n (1.10.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
inline_svg (1.8.0)
inline_svg (1.9.0)
activesupport (>= 3.0)
nokogiri (>= 1.6)
io-wait (0.2.1)
loofah (2.14.0)
json (2.6.3)
language_server-protocol (3.17.0.3)
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
method_source (1.0.0)
mini_mime (1.1.2)
minitest (5.15.0)
net-imap (0.2.3)
digest
minitest (5.18.0)
net-imap (0.3.4)
date
net-protocol
strscan
net-pop (0.1.1)
digest
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-protocol (0.1.2)
io-wait
timeout
net-smtp (0.3.1)
digest
net-smtp (0.3.3)
net-protocol
timeout
nio4r (2.5.8)
nokogiri (1.13.2-arm64-darwin)
nokogiri (1.14.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.2-x86_64-darwin)
nokogiri (1.14.2-x86_64-darwin)
racc (~> 1.4)
parallel (1.21.0)
parser (3.1.0.0)
parallel (1.22.1)
parser (3.2.1.1)
ast (~> 2.4.1)
racc (1.6.0)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (7.0.2.2)
actioncable (= 7.0.2.2)
actionmailbox (= 7.0.2.2)
actionmailer (= 7.0.2.2)
actionpack (= 7.0.2.2)
actiontext (= 7.0.2.2)
actionview (= 7.0.2.2)
activejob (= 7.0.2.2)
activemodel (= 7.0.2.2)
activerecord (= 7.0.2.2)
activestorage (= 7.0.2.2)
activesupport (= 7.0.2.2)
racc (1.6.2)
rack (2.2.6.4)
rack-test (2.1.0)
rack (>= 1.3)
rails (7.0.4.3)
actioncable (= 7.0.4.3)
actionmailbox (= 7.0.4.3)
actionmailer (= 7.0.4.3)
actionpack (= 7.0.4.3)
actiontext (= 7.0.4.3)
actionview (= 7.0.4.3)
activejob (= 7.0.4.3)
activemodel (= 7.0.4.3)
activerecord (= 7.0.4.3)
activestorage (= 7.0.4.3)
activesupport (= 7.0.4.3)
bundler (>= 1.15.0)
railties (= 7.0.2.2)
railties (= 7.0.4.3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.2)
loofah (~> 2.3)
railties (7.0.2.2)
actionpack (= 7.0.2.2)
activesupport (= 7.0.2.2)
rails-html-sanitizer (1.5.0)
loofah (~> 2.19, >= 2.19.1)
railties (7.0.4.3)
actionpack (= 7.0.4.3)
activesupport (= 7.0.4.3)
method_source
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.2.1)
regexp_parser (2.7.0)
rexml (3.2.5)
rubocop (1.25.0)
rubocop (1.48.1)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.2.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.15.1, < 2.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.26.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.15.1)
parser (>= 3.0.1.1)
rubocop-performance (1.13.2)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.28.0)
parser (>= 3.2.1.0)
rubocop-performance (1.16.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.11.0)
standard (1.7.0)
rubocop (= 1.25.0)
rubocop-performance (= 1.13.2)
stimulus-rails (1.0.3)
ruby-progressbar (1.13.0)
standard (1.25.3)
language_server-protocol (~> 3.17.0.2)
rubocop (~> 1.48.1)
rubocop-performance (~> 1.16.0)
stimulus-rails (1.2.1)
railties (>= 6.0.0)
strscan (3.0.1)
thor (1.2.1)
timeout (0.2.0)
tzinfo (2.0.4)
timeout (0.3.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
unicode-display_width (2.4.2)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.5.4)
zeitwerk (2.6.7)

PLATFORMS
arm64-darwin-21
arm64-darwin-22
x86_64-darwin-20

DEPENDENCIES
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ gem 'railsui'

And then execute:

$ bundle install
```bash
$ bundle install
```

## Installation

Expand All @@ -25,9 +27,3 @@ $ rails railsui:install
```

## Usage

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
2 changes: 1 addition & 1 deletion app/helpers/railsui/framework_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def framework_cdn_script

def framework_version_label
return nil unless Railsui.config.css_framework.present?
content_tag :div, class: "bg-slate-200 rounded-full px-2 py-px font-semibold text-xs flex items-center" do
content_tag :div, class: "bg-slate-200 rounded-full px-2 py-px font-semibold text-xs flex items-center dark:bg-slate-700 dark:text-slate-100" do
Railsui.bootstrap? ? Railsui::Default::BOOTSTRAP_PACKAGE_VERSION : Railsui::Default::TAILWIND_CSS_VERSION
end
end
Expand Down
6 changes: 3 additions & 3 deletions app/models/railsui/default.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Railsui
class Default
BOOTSTRAP_VERSION = "5.3"
TAILWIND_CSS_VERSION = "3.2.7"
BOOTSTRAP_PACKAGE_VERSION = "5.3.0-alpha1"
BOOTSTRAP_INSTALL_PACKAGE = "[email protected]alpha1"
TAILWIND_CSS_VERSION = "3.3.0"
BOOTSTRAP_PACKAGE_VERSION = "5.3.0-alpha2"
BOOTSTRAP_INSTALL_PACKAGE = "[email protected]alpha2"

BOOTSTRAP = "bootstrap"
TAILWIND_CSS = "tailwind"
Expand Down
4 changes: 2 additions & 2 deletions app/views/railsui/shared/_scroll_to_top.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="fixed bottom-4 right-2 z-50 hidden" data-scroll-target="launcher">
<button data-action="click->scroll#scrollToTop" class="bg-white/80 px-3 py-2 rounded-full bg-opacity-80 backdrop-blur-lg focus:ring-white/20 hover:bg-opacity-100 flex items-center focus:ring-4 text-slate-700 hover:text-slate-800 transition ease-in-out duration-200">
<%= icon "chevron-up", classes: "w-3 h-3 text-slate-800 mr-2" %>
<button data-action="click->scroll#scrollToTop" class="bg-white/80 px-3 py-2 rounded-full bg-opacity-80 backdrop-blur-lg focus:ring-white/20 hover:bg-opacity-100 flex items-center focus:ring-4 text-slate-700 hover:text-slate-800 transition ease-in-out duration-200 dark:bg-slate-700/80 dark:text-slate-200">
<%= icon "chevron-up", classes: "w-3 h-3 text-slate-800 mr-2 dark:text-slate-300" %>
<span>Scroll to top</span>
</button>
</div>
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"@hotwired/stimulus": "^3.2.1",
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/forms": "^0.5.0",
"@tailwindcss/line-clamp": "^0.3.1",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.4.2",
"debounce": "^1.2.1",
"esbuild": "^0.14.25",
"esbuild": "^0.17.14",
"highlight.js": "^11.6.0",
"postcss": "^8.4.8",
"postcss-import": "^14.0.2",
"stimulus-use": "^0.51.1",
"tailwindcss": "^3.0.23",
"postcss-import": "^15.1.0",
"stimulus-use": "^0.52.0",
"tailwindcss": "^3.3.0",
"tippy.js": "^6.3.7",
"vanilla-colorful": "^0.7.2"
},
Expand Down
Loading

0 comments on commit cfae176

Please sign in to comment.