trestle 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +4 -2
  3. data/.gitignore +4 -0
  4. data/app/assets/bundle/trestle/bundle.css +4 -4
  5. data/app/assets/bundle/trestle/bundle.js +12 -26
  6. data/app/controllers/concerns/trestle/controller/toolbars.rb +1 -1
  7. data/app/controllers/concerns/trestle/resource/controller/actions.rb +5 -5
  8. data/app/controllers/concerns/trestle/resource/controller/redirection.rb +5 -3
  9. data/app/controllers/trestle/admin_controller.rb +4 -0
  10. data/app/helpers/trestle/card_helper.rb +2 -2
  11. data/app/helpers/trestle/navigation_helper.rb +3 -1
  12. data/app/helpers/trestle/toolbars_helper.rb +1 -1
  13. data/app/views/trestle/resource/_scopes.html.erb +1 -1
  14. data/config/locales/vi.yml +1 -1
  15. data/frontend/css/components/_toolbars.scss +1 -19
  16. data/frontend/css/core/_mixins.scss +1 -4
  17. data/frontend/css/layout/_content.scss +1 -1
  18. data/lib/trestle/adapters/active_record_adapter.rb +1 -1
  19. data/lib/trestle/admin/builder.rb +7 -0
  20. data/lib/trestle/admin.rb +12 -6
  21. data/lib/trestle/configurable.rb +2 -2
  22. data/lib/trestle/form/automatic.rb +3 -1
  23. data/lib/trestle/hook/helpers.rb +1 -1
  24. data/lib/trestle/reloader.rb +2 -11
  25. data/lib/trestle/resource/builder.rb +1 -8
  26. data/lib/trestle/resource.rb +2 -2
  27. data/lib/trestle/scopes/block.rb +7 -7
  28. data/lib/trestle/scopes/definition.rb +2 -2
  29. data/lib/trestle/scopes/scope.rb +4 -0
  30. data/lib/trestle/version.rb +1 -1
  31. data/lib/trestle.rb +4 -0
  32. data/package.json +1 -1
  33. data/trestle.gemspec +7 -7
  34. data/webpack.config.js +8 -1
  35. data/yarn.lock +1197 -2344
  36. metadata +21 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8a9b6c1f4d2b83d9257ed2daa7c2bf4e4a66afd73bda0a56a26663ced8cc9b6
4
- data.tar.gz: 5ecb674467604a6b4ce4d26a77645439f31b0b6b60ac1bf8f2e9770e054056e3
3
+ metadata.gz: ec5f7a6fff714c1440d95c1e8e24394cef955e54a5997113a4a494c693891ba4
4
+ data.tar.gz: 74a1190a4941740d10d88d70f96fc73dc4ee2d6a2ad4f930edb2af8ba88d0a75
5
5
  SHA512:
6
- metadata.gz: 5895c063366491326c7b736d92afa03298a5b0afbf3fa231986599dec66a2fd9286588a0d4d473e281f9d2977e2a4cb0b2dc3fe99b3d16bd698560f83e8e4887
7
- data.tar.gz: e6756a7feab92d97744fdf4d460c5ddb22d3c5b8011c993e2c457bf6e60544ca77a8daf0c0edb56226514978a85f91c7905089c862ee454552b4068bdb4048e2
6
+ metadata.gz: 86830f6464eb845e0599966caebede926c5bdd9e3ab43968a5d1eb872671d7750d8b53f45f44c3fd35a201999afbf86f0efcf600bd2f4c6789177d7eaa87e261
7
+ data.tar.gz: 846436a0010e40b34df119185affe1f85b188e177d3b202c349cd13695dd2a8756d1a00fbbb5a5ed09ee90b95d9ee4a0c360a4e7811f3eae48f60efada1ffeb9
@@ -7,7 +7,7 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- gemfile: [ rails-5.0, rails-5.1, rails-5.2, rails-6.0, rails-6.1 ]
10
+ gemfile: [ rails-5.2, rails-6.0, rails-6.1 ]
11
11
  ruby: [ '2.7' ]
12
12
  include:
13
13
  - gemfile: rails-6.1
@@ -16,11 +16,13 @@ jobs:
16
16
  ruby: '2.7'
17
17
  - gemfile: rails-7.0
18
18
  ruby: '3.0'
19
+ - gemfile: rails-7.1
20
+ ruby: '3.2'
19
21
  runs-on: ubuntu-latest
20
22
  env:
21
23
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
22
24
  steps:
23
- - uses: actions/checkout@v3
25
+ - uses: actions/checkout@v4
24
26
  - uses: ruby/setup-ruby@v1
25
27
  with:
26
28
  ruby-version: ${{ matrix.ruby }}
data/.gitignore CHANGED
@@ -9,10 +9,14 @@
9
9
  /spec/reports/
10
10
  /tmp/
11
11
  /sandbox/db/*.sqlite3
12
+ /sandbox/db/*.sqlite3-shm
13
+ /sandbox/db/*.sqlite3-wal
12
14
  /sandbox/*.sqlite3-journal
13
15
  /sandbox/log/*.log
14
16
  /sandbox/tmp/
15
17
  /spec/dummy/db/*.sqlite3
18
+ /spec/dummy/db/*.sqlite3-shm
19
+ /spec/dummy/db/*.sqlite3-wal
16
20
  /spec/dummy/*.sqlite3-journal
17
21
  /spec/dummy/log/*.log
18
22
  /spec/dummy/tmp/*