trestle 0.10.0.pre → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +26 -0
  3. data/.github/workflows/rspec.yml +6 -2
  4. data/Gemfile +14 -5
  5. data/README.md +1 -1
  6. data/app/assets/bundle/trestle/admin.css +9 -9
  7. data/app/assets/bundle/trestle/admin.js +13 -13
  8. data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
  9. data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
  10. data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
  11. data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
  12. data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
  13. data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
  14. data/app/assets/bundle/trestle/photoswipe-063ce7be40e10b3e6848.digested.js +6 -0
  15. data/app/assets/sprockets/trestle/icons/font-awesome.css.erb +1 -1
  16. data/app/controllers/concerns/trestle/controller/modal.rb +3 -1
  17. data/app/controllers/concerns/trestle/controller/turbo_stream.rb +12 -0
  18. data/app/controllers/concerns/trestle/resource/controller/actions.rb +3 -3
  19. data/app/controllers/trestle/application_controller.rb +1 -1
  20. data/app/helpers/trestle/modal_helper.rb +0 -5
  21. data/app/helpers/trestle/turbo/frame_helper.rb +29 -0
  22. data/app/helpers/trestle/turbo/stream_helper.rb +9 -0
  23. data/app/helpers/trestle/turbo/tag_builder.rb +21 -0
  24. data/app/helpers/trestle/url_helper.rb +2 -2
  25. data/app/views/layouts/trestle/admin.html.erb +1 -1
  26. data/app/views/layouts/trestle/admin.turbo_stream.erb +2 -9
  27. data/app/views/trestle/application/_header.html.erb +12 -10
  28. data/app/views/trestle/resource/create.turbo_stream.erb +1 -5
  29. data/app/views/trestle/resource/destroy.turbo_stream.erb +1 -1
  30. data/app/views/trestle/resource/edit.html.erb +2 -0
  31. data/app/views/trestle/resource/index.html.erb +5 -0
  32. data/app/views/trestle/resource/new.html.erb +5 -0
  33. data/app/views/trestle/resource/show.html.erb +2 -0
  34. data/app/views/trestle/resource/update.turbo_stream.erb +1 -5
  35. data/app/views/trestle/shared/_sidebar.html.erb +2 -2
  36. data/frontend/css/components/_alerts.scss +22 -20
  37. data/frontend/css/components/_avatar.scss +12 -12
  38. data/frontend/css/components/_background.scss +1 -1
  39. data/frontend/css/components/_breadcrumbs.scss +8 -29
  40. data/frontend/css/components/_buttons.scss +3 -3
  41. data/frontend/css/components/_datepicker.scss +3 -3
  42. data/frontend/css/components/_dropdown.scss +18 -26
  43. data/frontend/css/components/_forms.scss +4 -4
  44. data/frontend/css/components/_grid.scss +29 -0
  45. data/frontend/css/components/_media-grid.scss +1 -1
  46. data/frontend/css/components/_modal.scss +4 -4
  47. data/frontend/css/components/_pagination.scss +4 -8
  48. data/frontend/css/components/_popover.scss +1 -1
  49. data/frontend/css/components/_scopes.scss +4 -10
  50. data/frontend/css/components/_select.scss +8 -9
  51. data/frontend/css/components/_sort.scss +1 -1
  52. data/frontend/css/components/_table.scss +5 -5
  53. data/frontend/css/components/_tabs.scss +11 -18
  54. data/frontend/css/components/_tags.scss +16 -6
  55. data/frontend/css/components/_toolbars.scss +9 -9
  56. data/frontend/css/core/_functions.scss +0 -8
  57. data/frontend/css/core/_theme.scss +3 -0
  58. data/frontend/css/core/_typography.scss +12 -19
  59. data/frontend/css/index.scss +3 -1
  60. data/frontend/css/layout/_base.scss +4 -2
  61. data/frontend/css/layout/_content-header.scss +71 -0
  62. data/frontend/css/layout/_footer.scss +5 -7
  63. data/frontend/css/layout/_main-content.scss +107 -0
  64. data/frontend/css/layout/_navigation.scss +111 -49
  65. data/frontend/css/layout/_sidebar.scss +60 -34
  66. data/frontend/css/variables/_bootstrap.scss +30 -21
  67. data/frontend/css/variables/_trestle.scss +20 -17
  68. data/frontend/js/controllers/batch_action_controller.js +59 -0
  69. data/frontend/js/controllers/checkbox_select_controller.js +3 -0
  70. data/frontend/js/controllers/confirm_delete_controller.js +4 -4
  71. data/frontend/js/controllers/gallery_controller.js +2 -0
  72. data/frontend/js/controllers/lightbox_controller.js +0 -2
  73. data/lib/trestle/engine.rb +18 -16
  74. data/lib/trestle/form/renderer.rb +1 -1
  75. data/lib/trestle/resource/toolbar.rb +18 -8
  76. data/lib/trestle/sprockets_compressor.rb +16 -0
  77. data/lib/trestle/toolbar/context.rb +7 -4
  78. data/lib/trestle/toolbar/menu.rb +8 -5
  79. data/lib/trestle/version.rb +1 -1
  80. data/package.json +1 -1
  81. data/trestle.gemspec +5 -9
  82. data/yarn.lock +350 -363
  83. metadata +35 -70
  84. data/app/assets/bundle/trestle/photoswipe-7aa1aec9c3c1fd65c382.digested.js +0 -6
  85. data/app/controllers/concerns/trestle/controller/turbo.rb +0 -21
  86. data/app/helpers/trestle/turbo_frame_helper.rb +0 -34
  87. data/frontend/css/layout/_content.scss +0 -173
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea9cca6230358e52b8b3398756402e0c181eccc6d2b88806eefc0601dcf92bb8
4
- data.tar.gz: 4cccd25b9955e62b4d4270d30a0ea08e2c0620e8a7b5a6345a46cdc40dad6672
3
+ metadata.gz: 31cf0f57d9bc262d36964bc6787dc32df77670240bcb884097ecd319efb9214e
4
+ data.tar.gz: 86ea18b29c102e76278c99080d19a3fb1dc8655164ad8cfb02a34cf7e3f1ff86
5
5
  SHA512:
6
- metadata.gz: ca707836e5e930871bf0ab3c49257307c6d006257e73a739220194e2f55ba54f23eb0f39e471b97fb028581ceb642bd3a267dfc174ddc0b916fa8c195271cbc0
7
- data.tar.gz: 6acbb3eaf2d2aab813e1d67dde8856f7f82afdc1de37eb50e4b3cdad5362293c509814f84dfe4e2eed709f80726b3223c5523d3bffee0a332282eb98fe539572
6
+ metadata.gz: c2fcc050bff069e150684b74036750ba20647bcbc3b7f54c2e80bebb5319ef9b3a58a23cedc38f450b644621926c9b4acdd122c0e8445295e92ea8a693f3ea1d
7
+ data.tar.gz: fe7b1a6b1a6e4698220dbf1c4bdbc0f1a25bf460f35a11da0382c8bc11f8a149f082c26f6effabb5258a20deef1f8e5c753f60384b285a74389f4ece74bd813c
@@ -0,0 +1,26 @@
1
+ name: Publish gem
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ push:
7
+ runs-on: ubuntu-latest
8
+
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
13
+ # If you configured a GitHub environment on RubyGems, you must use it here.
14
+ environment: release
15
+
16
+ steps:
17
+ # Set up
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ bundler-cache: true
23
+ ruby-version: ruby
24
+
25
+ # Release
26
+ - uses: rubygems/release-gem@v1
@@ -7,9 +7,11 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- gemfile: [ rails-5.2, rails-6.0, rails-6.1 ]
11
- ruby: [ '2.7' ]
12
10
  include:
11
+ - gemfile: rails-6.0
12
+ ruby: '2.6'
13
+ - gemfile: rails-6.1
14
+ ruby: '2.6'
13
15
  - gemfile: rails-6.1
14
16
  ruby: '3.0'
15
17
  - gemfile: rails-7.0
@@ -22,6 +24,8 @@ jobs:
22
24
  ruby: '3.3'
23
25
  - gemfile: rails-7.1-propshaft
24
26
  ruby: '3.3'
27
+ - gemfile: rails-7.1-sassc-rails
28
+ ruby: '3.3'
25
29
  - gemfile: rails-7.2
26
30
  ruby: '3.3'
27
31
  - gemfile: rails-7.2-propshaft
data/Gemfile CHANGED
@@ -1,10 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :development, :test do
4
- gem 'sprockets-rails'
5
- # gem 'propshaft'
6
- end
7
-
8
3
  group :development do
9
4
  gem 'bcrypt'
10
5
  gem 'faker'
@@ -24,8 +19,22 @@ group :test do
24
19
  gem 'capybara-screenshot'
25
20
  end
26
21
 
22
+ # gem 'rails', '~> 6.0.0'
23
+ # gem 'rails', '~> 6.1.0'
24
+ # gem 'rails', '~> 7.0.0'
25
+ # gem 'rails', '~> 7.1.0'
26
+ gem 'rails', '~> 7.2.0'
27
+
27
28
  gem 'haml'
28
29
  gem 'sqlite3', '~> 1.4'
29
30
 
31
+ gem 'sprockets-rails'
32
+ # gem 'sassc-rails'
33
+ # gem 'propshaft'
34
+
35
+ gem 'i18n-js'
36
+
30
37
  # Specify your gem's dependencies in trestle.gemspec
31
38
  gemspec
39
+
40
+ gem "rake", "~> 13.0"
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Trestle
6
6
 
7
- [![RubyGem](https://img.shields.io/gem/v/trestle.svg?style=flat&colorB=4065a9)](https://rubygems.org/gems/trestle)
7
+ [![RubyGem](https://img.shields.io/gem/v/trestle?include_prereleases&color=%234d6bb2)](https://rubygems.org/gems/trestle)
8
8
  [![Build Status](https://img.shields.io/github/actions/workflow/status/TrestleAdmin/trestle/rspec.yml?style=flat)](https://github.com/TrestleAdmin/trestle/actions)
9
9
  [![Coveralls](https://img.shields.io/coveralls/TrestleAdmin/trestle.svg?style=flat)](https://coveralls.io/github/TrestleAdmin/trestle)
10
10
  [![Code Climate](https://api.codeclimate.com/v1/badges/c529a7a9c500ed81baed/maintainability)](https://codeclimate.com/github/TrestleAdmin/trestle)