trestle 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/.travis.yml +12 -6
  4. data/CONTRIBUTING.md +38 -0
  5. data/Gemfile +9 -2
  6. data/README.md +5 -0
  7. data/app/assets/bundle/trestle/bundle.css +6 -6
  8. data/app/assets/bundle/trestle/bundle.js +40 -38
  9. data/app/assets/bundle/trestle/fa-brands-400.eot +0 -0
  10. data/app/assets/bundle/trestle/fa-brands-400.svg +41 -41
  11. data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
  12. data/app/assets/bundle/trestle/fa-brands-400.woff +0 -0
  13. data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
  14. data/app/assets/bundle/trestle/fa-regular-400.eot +0 -0
  15. data/app/assets/bundle/trestle/fa-regular-400.svg +2 -2
  16. data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
  17. data/app/assets/bundle/trestle/fa-regular-400.woff +0 -0
  18. data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
  19. data/app/assets/bundle/trestle/fa-solid-900.eot +0 -0
  20. data/app/assets/bundle/trestle/fa-solid-900.svg +13 -7
  21. data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
  22. data/app/assets/bundle/trestle/fa-solid-900.woff +0 -0
  23. data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
  24. data/app/assets/bundle/trestle/flatpickr/ar-dz.js +1 -0
  25. data/app/assets/bundle/trestle/flatpickr/ar.js +1 -1
  26. data/app/assets/bundle/trestle/flatpickr/at.js +1 -1
  27. data/app/assets/bundle/trestle/flatpickr/az.js +1 -1
  28. data/app/assets/bundle/trestle/flatpickr/be.js +1 -1
  29. data/app/assets/bundle/trestle/flatpickr/bg.js +1 -1
  30. data/app/assets/bundle/trestle/flatpickr/bn.js +1 -1
  31. data/app/assets/bundle/trestle/flatpickr/bs.js +1 -1
  32. data/app/assets/bundle/trestle/flatpickr/cat.js +1 -1
  33. data/app/assets/bundle/trestle/flatpickr/ckb.js +1 -0
  34. data/app/assets/bundle/trestle/flatpickr/cs.js +1 -1
  35. data/app/assets/bundle/trestle/flatpickr/cy.js +1 -1
  36. data/app/assets/bundle/trestle/flatpickr/da.js +1 -1
  37. data/app/assets/bundle/trestle/flatpickr/de.js +1 -1
  38. data/app/assets/bundle/trestle/flatpickr/default.js +1 -1
  39. data/app/assets/bundle/trestle/flatpickr/eo.js +1 -1
  40. data/app/assets/bundle/trestle/flatpickr/es.js +1 -1
  41. data/app/assets/bundle/trestle/flatpickr/et.js +1 -1
  42. data/app/assets/bundle/trestle/flatpickr/fa.js +1 -1
  43. data/app/assets/bundle/trestle/flatpickr/fi.js +1 -1
  44. data/app/assets/bundle/trestle/flatpickr/fo.js +1 -1
  45. data/app/assets/bundle/trestle/flatpickr/fr.js +1 -1
  46. data/app/assets/bundle/trestle/flatpickr/ga.js +1 -1
  47. data/app/assets/bundle/trestle/flatpickr/gr.js +1 -1
  48. data/app/assets/bundle/trestle/flatpickr/he.js +1 -1
  49. data/app/assets/bundle/trestle/flatpickr/hi.js +1 -1
  50. data/app/assets/bundle/trestle/flatpickr/hr.js +1 -1
  51. data/app/assets/bundle/trestle/flatpickr/hu.js +1 -1
  52. data/app/assets/bundle/trestle/flatpickr/hy.js +1 -0
  53. data/app/assets/bundle/trestle/flatpickr/id.js +1 -1
  54. data/app/assets/bundle/trestle/flatpickr/is.js +1 -1
  55. data/app/assets/bundle/trestle/flatpickr/it.js +1 -1
  56. data/app/assets/bundle/trestle/flatpickr/ja.js +1 -1
  57. data/app/assets/bundle/trestle/flatpickr/ka.js +1 -1
  58. data/app/assets/bundle/trestle/flatpickr/km.js +1 -1
  59. data/app/assets/bundle/trestle/flatpickr/ko.js +1 -1
  60. data/app/assets/bundle/trestle/flatpickr/kz.js +1 -1
  61. data/app/assets/bundle/trestle/flatpickr/lt.js +1 -1
  62. data/app/assets/bundle/trestle/flatpickr/lv.js +1 -1
  63. data/app/assets/bundle/trestle/flatpickr/mk.js +1 -1
  64. data/app/assets/bundle/trestle/flatpickr/mn.js +1 -1
  65. data/app/assets/bundle/trestle/flatpickr/ms.js +1 -1
  66. data/app/assets/bundle/trestle/flatpickr/my.js +1 -1
  67. data/app/assets/bundle/trestle/flatpickr/nl.js +1 -1
  68. data/app/assets/bundle/trestle/flatpickr/nn.js +1 -0
  69. data/app/assets/bundle/trestle/flatpickr/no.js +1 -1
  70. data/app/assets/bundle/trestle/flatpickr/pa.js +1 -1
  71. data/app/assets/bundle/trestle/flatpickr/pl.js +1 -1
  72. data/app/assets/bundle/trestle/flatpickr/pt.js +1 -1
  73. data/app/assets/bundle/trestle/flatpickr/ro.js +1 -1
  74. data/app/assets/bundle/trestle/flatpickr/ru.js +1 -1
  75. data/app/assets/bundle/trestle/flatpickr/si.js +1 -1
  76. data/app/assets/bundle/trestle/flatpickr/sk.js +1 -1
  77. data/app/assets/bundle/trestle/flatpickr/sl.js +1 -1
  78. data/app/assets/bundle/trestle/flatpickr/sq.js +1 -1
  79. data/app/assets/bundle/trestle/flatpickr/sr-cyr.js +1 -1
  80. data/app/assets/bundle/trestle/flatpickr/sr.js +1 -1
  81. data/app/assets/bundle/trestle/flatpickr/sv.js +1 -1
  82. data/app/assets/bundle/trestle/flatpickr/th.js +1 -1
  83. data/app/assets/bundle/trestle/flatpickr/tr.js +1 -1
  84. data/app/assets/bundle/trestle/flatpickr/uk.js +1 -1
  85. data/app/assets/bundle/trestle/flatpickr/uz.js +1 -1
  86. data/app/assets/bundle/trestle/flatpickr/uz_latn.js +1 -1
  87. data/app/assets/bundle/trestle/flatpickr/vn.js +1 -1
  88. data/app/assets/bundle/trestle/flatpickr/zh-tw.js +1 -1
  89. data/app/assets/bundle/trestle/flatpickr/zh.js +1 -1
  90. data/app/assets/javascripts/trestle/i18n.js.erb +1 -1
  91. data/app/controllers/trestle/dashboard_controller.rb +2 -2
  92. data/app/helpers/trestle/avatar_helper.rb +6 -2
  93. data/app/helpers/trestle/container_helper.rb +12 -4
  94. data/app/helpers/trestle/params_helper.rb +4 -1
  95. data/app/helpers/trestle/url_helper.rb +1 -11
  96. data/app/views/trestle/flash/_alert.html.erb +3 -1
  97. data/app/views/trestle/flash/_debug.html.erb +13 -8
  98. data/app/views/trestle/flash/_flash.html.erb +1 -1
  99. data/config/routes.rb +1 -1
  100. data/frontend/css/components/_alerts.scss +31 -0
  101. data/frontend/css/components/_avatar.scss +14 -0
  102. data/frontend/css/components/_buttons.scss +0 -1
  103. data/frontend/css/components/_datepicker.scss +1 -0
  104. data/frontend/css/components/_modal.scss +2 -0
  105. data/frontend/css/components/_tags.scss +2 -0
  106. data/frontend/css/components/_timestamp.scss +1 -1
  107. data/frontend/css/layout/_sidebar.scss +3 -2
  108. data/frontend/css/variables/_bootstrap.scss +1 -0
  109. data/frontend/css/variables/_trestle.scss +20 -0
  110. data/frontend/js/components/dialog.js +8 -3
  111. data/frontend/theme/trestle/theme/_defaults.scss +4 -4
  112. data/lib/generators/trestle/install/templates/_theme.scss +1 -1
  113. data/lib/generators/trestle/install/templates/trestle.rb.erb +6 -1
  114. data/lib/trestle/adapters/active_record_adapter.rb +16 -0
  115. data/lib/trestle/form/automatic.rb +2 -0
  116. data/lib/trestle/form/field.rb +1 -1
  117. data/lib/trestle/form/renderer.rb +4 -1
  118. data/lib/trestle/registry.rb +61 -0
  119. data/lib/trestle/reloader.rb +1 -1
  120. data/lib/trestle/table/automatic.rb +7 -0
  121. data/lib/trestle/version.rb +1 -1
  122. data/lib/trestle.rb +29 -14
  123. data/package.json +20 -23
  124. data/webpack.config.js +36 -48
  125. data/yarn.lock +2947 -4595
  126. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fbbf8844e06a0b7770f4754ae4b9082d2718705a4636072f5b02b8920cfed43
4
- data.tar.gz: 03311a6ef3ef6fc6e95abdb956de744347f44bacdfc0c25253eb6185a1855235
3
+ metadata.gz: 69b3e74515d0dfde0380b92c8e9f5f37beb1d23cf8c31178d1000ef7f7a1adcc
4
+ data.tar.gz: a6337acb54910fea72323ae457adfe8f5b3031e858455d7d886185e1dcffaf7b
5
5
  SHA512:
6
- metadata.gz: 5c3935441a6a9bde8ed536cdd08b3642c7114ac697a1e986d5f189da4ce61c3705df26d7de1383e4644c7391f7cb33be5baf2ddac949a5115ad4ef589f5c505a
7
- data.tar.gz: ab4b6fb774080b47600871f008cd3f3cd6aa1a2c2f0b4f9f9cd9536223147c97b8567c67732d2496941a0441535ab0c5e7020f9a5dc62dd465e1a1199110d914
6
+ metadata.gz: e69c0b5908c0aae5c257775c5937785df476d31ac288996f4725f1b3e0a023a0efb19126f28d8dce42deafbd82ceb8556bc6aecd9e428ed8893b9b8679c0e9cd
7
+ data.tar.gz: 63fa852e9ee84ed0a8aa02afae5d34e1a83d7621965a0310f44aa4f5b11f68fa83e3c31d2aced72bb721b34fc8fbf862b19287d6315b38dd25d2065ebe243380
data/.gitignore CHANGED
@@ -16,4 +16,7 @@
16
16
  /spec/dummy/*.sqlite3-journal
17
17
  /spec/dummy/log/*.log
18
18
  /spec/dummy/tmp/*
19
+ /spec/dummy/config/credentials.yml.enc
20
+ /spec/dummy/config/master.key
21
+ /spec/dummy/public/assets/
19
22
  /node_modules
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.6
11
- - 2.7.2
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.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
- # Specify your gem's dependencies in trestle.gemspec
4
- gemspec
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).