recourse 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: '3.2'
102
+ version: '3.6'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '3.2'
109
+ version: '3.6'
110
110
  description: Recourse adds a `recourses` method to config/routes.rb. One line draws
111
111
  the routes, controllers and views needed to browse and edit a resource, with no
112
112
  files added to the host app. Any controller, view or partial can be overridden by
@@ -136,6 +136,7 @@ files:
136
136
  - app/javascript/recourse/clear_controller.js
137
137
  - app/javascript/recourse/combobox_controller.js
138
138
  - app/javascript/recourse/confirm.js
139
+ - app/javascript/recourse/density_controller.js
139
140
  - app/javascript/recourse/deselect_controller.js
140
141
  - app/javascript/recourse/flash.js
141
142
  - app/javascript/recourse/limit_controller.js
@@ -150,6 +151,15 @@ files:
150
151
  - app/javascript/recourse/tooltip_controller.js
151
152
  - app/javascript/recourse/written.js
152
153
  - app/javascript/recourse/written_controller.js
154
+ - app/stylesheets/recourse/themes/bootstrap.css
155
+ - app/stylesheets/recourse/themes/dawn.css
156
+ - app/stylesheets/recourse/themes/dracula.css
157
+ - app/stylesheets/recourse/themes/gruvbox.css
158
+ - app/stylesheets/recourse/themes/monokai.css
159
+ - app/stylesheets/recourse/themes/nord.css
160
+ - app/stylesheets/recourse/themes/one_dark.css
161
+ - app/stylesheets/recourse/themes/solarized.css
162
+ - app/stylesheets/recourse/themes/tokyo_night.css
153
163
  - app/views/layouts/recourses.html.erb
154
164
  - app/views/recourses/_breadcrumb.html.erb
155
165
  - app/views/recourses/_card.html.erb
@@ -179,6 +189,7 @@ files:
179
189
  - lib/recourse/colors.rb
180
190
  - lib/recourse/columns.rb
181
191
  - lib/recourse/controllers.rb
192
+ - lib/recourse/densities.rb
182
193
  - lib/recourse/engine.rb
183
194
  - lib/recourse/helpers.rb
184
195
  - lib/recourse/helpers/actions.rb
@@ -192,6 +203,7 @@ files:
192
203
  - lib/recourse/helpers/constraints.rb
193
204
  - lib/recourse/helpers/counters.rb
194
205
  - lib/recourse/helpers/deletions.rb
206
+ - lib/recourse/helpers/densities.rb
195
207
  - lib/recourse/helpers/details.rb
196
208
  - lib/recourse/helpers/examples.rb
197
209
  - lib/recourse/helpers/fields.rb
@@ -209,12 +221,12 @@ files:
209
221
  - lib/recourse/helpers/resources.rb
210
222
  - lib/recourse/helpers/routing.rb
211
223
  - lib/recourse/helpers/rows.rb
212
- - lib/recourse/helpers/schemes.rb
213
224
  - lib/recourse/helpers/searches.rb
214
225
  - lib/recourse/helpers/shortcuts.rb
215
226
  - lib/recourse/helpers/sidebars.rb
216
227
  - lib/recourse/helpers/sorts.rb
217
228
  - lib/recourse/helpers/tabs.rb
229
+ - lib/recourse/helpers/themes.rb
218
230
  - lib/recourse/helpers/times.rb
219
231
  - lib/recourse/helpers/values.rb
220
232
  - lib/recourse/helpers/zones.rb
@@ -226,13 +238,13 @@ files:
226
238
  - lib/recourse/routes.rb
227
239
  - lib/recourse/routes/nested.rb
228
240
  - lib/recourse/routing.rb
229
- - lib/recourse/schemes.rb
230
241
  - lib/recourse/scopes.rb
231
242
  - lib/recourse/search.rb
232
243
  - lib/recourse/searchable.rb
233
244
  - lib/recourse/searchable/columns.rb
234
245
  - lib/recourse/searchable/filters.rb
235
246
  - lib/recourse/searchable/terms.rb
247
+ - lib/recourse/themes.rb
236
248
  - lib/recourse/titles.rb
237
249
  - lib/recourse/version.rb
238
250
  - lib/recourse/writes.rb
@@ -1,14 +0,0 @@
1
- module Recourse
2
- module Helpers
3
- # The reader's own say in whether a page is light or dark.
4
- module Schemes
5
- private
6
-
7
- # What the sidebar's toggle needs to flip the mode: where to keep what the reader
8
- # picked, so the layout's script can put it back on the next visit.
9
- def scheme_data
10
- { controller: 'scheme', action: 'scheme#rotate', scheme_storage_value: Recourse::SCHEME_STORAGE }
11
- end
12
- end
13
- end
14
- end
@@ -1,6 +0,0 @@
1
- # Reopened for the one thing a reader says about how every page looks.
2
- module Recourse
3
- # Where a reader's chosen mode is kept in their browser. Named once: the sidebar's
4
- # controller writes it and the layout's own script reads it back before the first paint.
5
- SCHEME_STORAGE = 'recourse-scheme'
6
- end