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.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +26 -0
- data/.github/workflows/rspec.yml +6 -2
- data/Gemfile +14 -5
- data/README.md +1 -1
- data/app/assets/bundle/trestle/admin.css +9 -9
- data/app/assets/bundle/trestle/admin.js +13 -13
- data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
- data/app/assets/bundle/trestle/photoswipe-063ce7be40e10b3e6848.digested.js +6 -0
- data/app/assets/sprockets/trestle/icons/font-awesome.css.erb +1 -1
- data/app/controllers/concerns/trestle/controller/modal.rb +3 -1
- data/app/controllers/concerns/trestle/controller/turbo_stream.rb +12 -0
- data/app/controllers/concerns/trestle/resource/controller/actions.rb +3 -3
- data/app/controllers/trestle/application_controller.rb +1 -1
- data/app/helpers/trestle/modal_helper.rb +0 -5
- data/app/helpers/trestle/turbo/frame_helper.rb +29 -0
- data/app/helpers/trestle/turbo/stream_helper.rb +9 -0
- data/app/helpers/trestle/turbo/tag_builder.rb +21 -0
- data/app/helpers/trestle/url_helper.rb +2 -2
- data/app/views/layouts/trestle/admin.html.erb +1 -1
- data/app/views/layouts/trestle/admin.turbo_stream.erb +2 -9
- data/app/views/trestle/application/_header.html.erb +12 -10
- data/app/views/trestle/resource/create.turbo_stream.erb +1 -5
- data/app/views/trestle/resource/destroy.turbo_stream.erb +1 -1
- data/app/views/trestle/resource/edit.html.erb +2 -0
- data/app/views/trestle/resource/index.html.erb +5 -0
- data/app/views/trestle/resource/new.html.erb +5 -0
- data/app/views/trestle/resource/show.html.erb +2 -0
- data/app/views/trestle/resource/update.turbo_stream.erb +1 -5
- data/app/views/trestle/shared/_sidebar.html.erb +2 -2
- data/frontend/css/components/_alerts.scss +22 -20
- data/frontend/css/components/_avatar.scss +12 -12
- data/frontend/css/components/_background.scss +1 -1
- data/frontend/css/components/_breadcrumbs.scss +8 -29
- data/frontend/css/components/_buttons.scss +3 -3
- data/frontend/css/components/_datepicker.scss +3 -3
- data/frontend/css/components/_dropdown.scss +18 -26
- data/frontend/css/components/_forms.scss +4 -4
- data/frontend/css/components/_grid.scss +29 -0
- data/frontend/css/components/_media-grid.scss +1 -1
- data/frontend/css/components/_modal.scss +4 -4
- data/frontend/css/components/_pagination.scss +4 -8
- data/frontend/css/components/_popover.scss +1 -1
- data/frontend/css/components/_scopes.scss +4 -10
- data/frontend/css/components/_select.scss +8 -9
- data/frontend/css/components/_sort.scss +1 -1
- data/frontend/css/components/_table.scss +5 -5
- data/frontend/css/components/_tabs.scss +11 -18
- data/frontend/css/components/_tags.scss +16 -6
- data/frontend/css/components/_toolbars.scss +9 -9
- data/frontend/css/core/_functions.scss +0 -8
- data/frontend/css/core/_theme.scss +3 -0
- data/frontend/css/core/_typography.scss +12 -19
- data/frontend/css/index.scss +3 -1
- data/frontend/css/layout/_base.scss +4 -2
- data/frontend/css/layout/_content-header.scss +71 -0
- data/frontend/css/layout/_footer.scss +5 -7
- data/frontend/css/layout/_main-content.scss +107 -0
- data/frontend/css/layout/_navigation.scss +111 -49
- data/frontend/css/layout/_sidebar.scss +60 -34
- data/frontend/css/variables/_bootstrap.scss +30 -21
- data/frontend/css/variables/_trestle.scss +20 -17
- data/frontend/js/controllers/batch_action_controller.js +59 -0
- data/frontend/js/controllers/checkbox_select_controller.js +3 -0
- data/frontend/js/controllers/confirm_delete_controller.js +4 -4
- data/frontend/js/controllers/gallery_controller.js +2 -0
- data/frontend/js/controllers/lightbox_controller.js +0 -2
- data/lib/trestle/engine.rb +18 -16
- data/lib/trestle/form/renderer.rb +1 -1
- data/lib/trestle/resource/toolbar.rb +18 -8
- data/lib/trestle/sprockets_compressor.rb +16 -0
- data/lib/trestle/toolbar/context.rb +7 -4
- data/lib/trestle/toolbar/menu.rb +8 -5
- data/lib/trestle/version.rb +1 -1
- data/package.json +1 -1
- data/trestle.gemspec +5 -9
- data/yarn.lock +350 -363
- metadata +35 -70
- data/app/assets/bundle/trestle/photoswipe-7aa1aec9c3c1fd65c382.digested.js +0 -6
- data/app/controllers/concerns/trestle/controller/turbo.rb +0 -21
- data/app/helpers/trestle/turbo_frame_helper.rb +0 -34
- data/frontend/css/layout/_content.scss +0 -173
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31cf0f57d9bc262d36964bc6787dc32df77670240bcb884097ecd319efb9214e
|
4
|
+
data.tar.gz: 86ea18b29c102e76278c99080d19a3fb1dc8655164ad8cfb02a34cf7e3f1ff86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/.github/workflows/rspec.yml
CHANGED
@@ -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
|
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)
|