trestle 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +12 -6
- data/CONTRIBUTING.md +38 -0
- data/Gemfile +9 -2
- data/README.md +5 -0
- data/app/assets/bundle/trestle/bundle.css +6 -6
- data/app/assets/bundle/trestle/bundle.js +40 -38
- data/app/assets/bundle/trestle/fa-brands-400.eot +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.svg +41 -41
- data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.woff +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.eot +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.svg +2 -2
- data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.woff +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.eot +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.svg +13 -7
- data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.woff +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
- data/app/assets/bundle/trestle/flatpickr/ar-dz.js +1 -0
- data/app/assets/bundle/trestle/flatpickr/ar.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/at.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/az.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/be.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/bg.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/bn.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/bs.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/cat.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ckb.js +1 -0
- data/app/assets/bundle/trestle/flatpickr/cs.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/cy.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/da.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/de.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/default.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/eo.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/es.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/et.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/fa.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/fi.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/fo.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/fr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ga.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/gr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/he.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/hi.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/hr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/hu.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/hy.js +1 -0
- data/app/assets/bundle/trestle/flatpickr/id.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/is.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/it.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ja.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ka.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/km.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ko.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/kz.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/lt.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/lv.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/mk.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/mn.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ms.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/my.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/nl.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/nn.js +1 -0
- data/app/assets/bundle/trestle/flatpickr/no.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/pa.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/pl.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/pt.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ro.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/ru.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/si.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sk.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sl.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sq.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sr-cyr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/sv.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/th.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/tr.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/uk.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/uz.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/uz_latn.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/vn.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/zh-tw.js +1 -1
- data/app/assets/bundle/trestle/flatpickr/zh.js +1 -1
- data/app/assets/javascripts/trestle/i18n.js.erb +1 -1
- data/app/controllers/trestle/dashboard_controller.rb +2 -2
- data/app/helpers/trestle/avatar_helper.rb +6 -2
- data/app/helpers/trestle/container_helper.rb +12 -4
- data/app/helpers/trestle/params_helper.rb +4 -1
- data/app/helpers/trestle/url_helper.rb +1 -11
- data/app/views/trestle/flash/_alert.html.erb +3 -1
- data/app/views/trestle/flash/_debug.html.erb +13 -8
- data/app/views/trestle/flash/_flash.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/frontend/css/components/_alerts.scss +31 -0
- data/frontend/css/components/_avatar.scss +14 -0
- data/frontend/css/components/_buttons.scss +0 -1
- data/frontend/css/components/_datepicker.scss +1 -0
- data/frontend/css/components/_modal.scss +2 -0
- data/frontend/css/components/_tags.scss +2 -0
- data/frontend/css/components/_timestamp.scss +1 -1
- data/frontend/css/layout/_sidebar.scss +3 -2
- data/frontend/css/variables/_bootstrap.scss +1 -0
- data/frontend/css/variables/_trestle.scss +20 -0
- data/frontend/js/components/dialog.js +8 -3
- data/frontend/theme/trestle/theme/_defaults.scss +4 -4
- data/lib/generators/trestle/install/templates/_theme.scss +1 -1
- data/lib/generators/trestle/install/templates/trestle.rb.erb +6 -1
- data/lib/trestle/adapters/active_record_adapter.rb +16 -0
- data/lib/trestle/form/automatic.rb +2 -0
- data/lib/trestle/form/field.rb +1 -1
- data/lib/trestle/form/renderer.rb +4 -1
- data/lib/trestle/registry.rb +61 -0
- data/lib/trestle/reloader.rb +1 -1
- data/lib/trestle/table/automatic.rb +7 -0
- data/lib/trestle/version.rb +1 -1
- data/lib/trestle.rb +29 -14
- data/package.json +20 -23
- data/webpack.config.js +36 -48
- data/yarn.lock +2947 -4595
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b3e74515d0dfde0380b92c8e9f5f37beb1d23cf8c31178d1000ef7f7a1adcc
|
4
|
+
data.tar.gz: a6337acb54910fea72323ae457adfe8f5b3031e858455d7d886185e1dcffaf7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69c0b5908c0aae5c257775c5937785df476d31ac288996f4725f1b3e0a023a0efb19126f28d8dce42deafbd82ceb8556bc6aecd9e428ed8893b9b8679c0e9cd
|
7
|
+
data.tar.gz: 63fa852e9ee84ed0a8aa02afae5d34e1a83d7621965a0310f44aa4f5b11f68fa83e3c31d2aced72bb721b34fc8fbf862b19287d6315b38dd25d2065ebe243380
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
os: linux
|
2
|
+
dist: bionic
|
3
|
+
|
1
4
|
language: ruby
|
2
5
|
|
3
6
|
cache: bundler
|
@@ -7,8 +10,8 @@ before_install:
|
|
7
10
|
- gem install bundler
|
8
11
|
|
9
12
|
rvm:
|
10
|
-
- 2.6.
|
11
|
-
- 2.7.
|
13
|
+
- 2.6.10
|
14
|
+
- 2.7.6
|
12
15
|
|
13
16
|
gemfile:
|
14
17
|
- gemfiles/rails-5.0.gemfile
|
@@ -26,8 +29,11 @@ jobs:
|
|
26
29
|
before_install:
|
27
30
|
- gem install bundler -v '< 2'
|
28
31
|
|
29
|
-
# - gemfile: gemfiles/rails-6.0.gemfile
|
30
|
-
# rvm: 3.0.0
|
31
|
-
|
32
32
|
- gemfile: gemfiles/rails-6.1.gemfile
|
33
|
-
rvm: 3.0.
|
33
|
+
rvm: 3.0.4
|
34
|
+
|
35
|
+
- gemfile: gemfiles/rails-7.0.gemfile
|
36
|
+
rvm: 2.7.6
|
37
|
+
|
38
|
+
- gemfile: gemfiles/rails-7.0.gemfile
|
39
|
+
rvm: 3.0.4
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Contributing to Trestle
|
2
|
+
|
3
|
+
## Table of Contents
|
4
|
+
|
5
|
+
1. [Running the Test Suite](#running-the-test-suite)
|
6
|
+
2. [Sandbox Application](#sandbox-application)
|
7
|
+
3. [Contributor License Agreement](#contributor-license-agreement)
|
8
|
+
|
9
|
+
|
10
|
+
## Running the Test Suite
|
11
|
+
|
12
|
+
After checking out the repository and installing dependencies by running `bundle`, the full RSpec test suite can be run with:
|
13
|
+
|
14
|
+
```sh
|
15
|
+
$ bundle exec rake
|
16
|
+
```
|
17
|
+
|
18
|
+
When submitting a pull request, please ensure that all of the tests are passing. Builds will be automatically checked for a passing test suite by [Travis CI](https://travis-ci.com/github/TrestleAdmin/trestle).
|
19
|
+
|
20
|
+
|
21
|
+
## Sandbox Application
|
22
|
+
|
23
|
+
The Trestle repo includes a sandbox application with some example admins and pages to demo most of the available functionality.
|
24
|
+
|
25
|
+
The following commands will set up the database (including sample seed data) and start a rails server:
|
26
|
+
|
27
|
+
```sh
|
28
|
+
$ cd sandbox
|
29
|
+
$ bundle exec rails db:setup
|
30
|
+
$ bundle exec rails server
|
31
|
+
```
|
32
|
+
|
33
|
+
You can then browse to http://localhost:3000/admin to access the sandbox.
|
34
|
+
|
35
|
+
|
36
|
+
## Contributor License Agreement
|
37
|
+
|
38
|
+
We ask that all contributors please sign the [Contributor License Agreement](https://cla-assistant.io/TrestleAdmin/trestle). If you have not previously signed the agreement, you will be prompted to when creating your first pull request.
|
data/Gemfile
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
group :development do
|
4
|
+
gem 'bcrypt'
|
5
|
+
gem 'faker'
|
6
|
+
end
|
5
7
|
|
6
8
|
group :test do
|
7
9
|
gem 'coveralls_reborn', require: false
|
@@ -13,8 +15,13 @@ group :test do
|
|
13
15
|
gem 'selenium-webdriver'
|
14
16
|
gem 'webdrivers'
|
15
17
|
gem 'puma'
|
18
|
+
gem 'launchy'
|
19
|
+
gem 'capybara-screenshot'
|
16
20
|
end
|
17
21
|
|
18
22
|
gem 'haml'
|
19
23
|
gem 'sassc-rails'
|
20
24
|
gem 'sqlite3', '~> 1.4'
|
25
|
+
|
26
|
+
# Specify your gem's dependencies in trestle.gemspec
|
27
|
+
gemspec
|
data/README.md
CHANGED
@@ -108,6 +108,11 @@ The following plugins are currently available:
|
|
108
108
|
| *trestle-auth-otp* | 2FA/OTP user authentication | [GitHub](https://github.com/McRipper/trestle-auth-otp) \| [RubyGems](https://rubygems.org/gems/trestle-auth-otp) |
|
109
109
|
|
110
110
|
|
111
|
+
## Development
|
112
|
+
|
113
|
+
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for information on developing and contributing to Trestle.
|
114
|
+
|
115
|
+
|
111
116
|
## License
|
112
117
|
|
113
118
|
The gem is available as open source under the terms of the [LGPLv3 License](https://opensource.org/licenses/LGPL-3.0).
|