mensa 0.1.16 → 0.1.17
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.
- checksums.yaml +4 -4
- data/.devcontainer/devcontainer.json +5 -6
- data/.gem_release.yml +3 -0
- data/.gitignore +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +186 -152
- data/README.md +6 -1
- data/app/components/mensa/add_filter/component.html.slim +1 -1
- data/app/components/mensa/control_bar/component.html.slim +1 -1
- data/app/components/mensa/view/component.css +1 -1
- data/app/components/mensa/views/component.html.slim +1 -1
- data/app/javascript/mensa/application.js +0 -1
- data/app/tables/mensa/base.rb +4 -0
- data/bin/setup +8 -7
- data/config/importmap.rb +0 -1
- data/lib/generators/mensa/templates/config/initializers/mensa.rb +1 -0
- data/lib/mensa/configuration.rb +2 -1
- data/lib/mensa/version.rb +1 -1
- data/mensa.gemspec +1 -1
- metadata +7 -7
- data/app/views/layouts/mensa/application.html.slim +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc582f0601ddada5b6094c998bb12055f7e4f7a76041110dcfc67e8a7599ac9f
|
4
|
+
data.tar.gz: 0a361238b407f120f93dde2c33c4e145a0d209f476cc2cae2d3b67efa7a7acc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f87d29a037912a77a49822ecdf44f9415ab3ee14220795852375e3945346dbe17a690a2cdced51e41c493506b07c1d638decfe83963a0cf5d6dff186364c02d
|
7
|
+
data.tar.gz: 7849061d3b9adccb16fc139c0b5c04713c46fd23fac455afa2e93f0fe0c9abb268615a719558dbbd27460d6c20331daa3de1bf64756cfd5b8d03291759747a90
|
@@ -4,17 +4,16 @@
|
|
4
4
|
"name": "mensa",
|
5
5
|
"dockerComposeFile": "compose.yaml",
|
6
6
|
"service": "rails-app",
|
7
|
-
"workspaceFolder": "/workspaces
|
7
|
+
"workspaceFolder": "/workspaces/mensa",
|
8
8
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
9
9
|
"features": {
|
10
|
-
"ghcr.io/devcontainers/features/github-cli:1": {},
|
11
|
-
"ghcr.io/rails/devcontainer/features/activestorage": {},
|
10
|
+
"ghcr.io/devcontainers/features/github-cli:1": { },
|
11
|
+
"ghcr.io/rails/devcontainer/features/activestorage": { },
|
12
12
|
"ghcr.io/rails/devcontainer/features/postgres-client": {
|
13
13
|
"version": "17"
|
14
14
|
},
|
15
|
-
"ghcr.io/devcontainers/features/node:1": {},
|
16
|
-
"ghcr.io/duduribeiro/devcontainer-features/tmux:1": {}
|
17
|
-
"ghcr.io/devcontainers-extra/features/mkcert:1": {}
|
15
|
+
"ghcr.io/devcontainers/features/node:1": { },
|
16
|
+
"ghcr.io/duduribeiro/devcontainer-features/tmux:1": { }
|
18
17
|
},
|
19
18
|
"containerEnv": {
|
20
19
|
"CAPYBARA_SERVER_PORT": "45678",
|
data/.gem_release.yml
ADDED
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,115 +1,114 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:entdec/satis.git
|
3
|
-
revision:
|
3
|
+
revision: 05bc9102ca082061d7c6d649dfffa509283368d0
|
4
4
|
branch: main
|
5
5
|
specs:
|
6
|
-
satis (1.
|
7
|
-
ar_doc_store (~> 2.1)
|
6
|
+
satis (2.1.62)
|
8
7
|
browser
|
9
8
|
diffy
|
9
|
+
importmap-rails
|
10
|
+
jsonb_accessor (~> 1.4)
|
10
11
|
rails (>= 6)
|
12
|
+
stimulus-rails
|
13
|
+
tailwindcss-rails
|
14
|
+
turbo-rails
|
11
15
|
view_component
|
12
16
|
|
13
17
|
PATH
|
14
18
|
remote: .
|
15
19
|
specs:
|
16
|
-
mensa (0.1.
|
20
|
+
mensa (0.1.16)
|
17
21
|
caxlsx_rails (~> 0)
|
18
22
|
importmap-rails
|
19
23
|
pagy (>= 6)
|
20
24
|
rails (>= 7.1)
|
21
25
|
slim
|
22
26
|
stimulus-rails
|
23
|
-
tailwindcss-rails
|
27
|
+
tailwindcss-rails (~> 3.3)
|
24
28
|
textacular (>= 5)
|
25
29
|
turbo-rails
|
26
30
|
|
27
31
|
GEM
|
28
32
|
remote: https://rubygems.org/
|
29
33
|
specs:
|
30
|
-
actioncable (
|
31
|
-
actionpack (=
|
32
|
-
activesupport (=
|
34
|
+
actioncable (8.0.2)
|
35
|
+
actionpack (= 8.0.2)
|
36
|
+
activesupport (= 8.0.2)
|
33
37
|
nio4r (~> 2.0)
|
34
38
|
websocket-driver (>= 0.6.1)
|
35
39
|
zeitwerk (~> 2.6)
|
36
|
-
actionmailbox (
|
37
|
-
actionpack (=
|
38
|
-
activejob (=
|
39
|
-
activerecord (=
|
40
|
-
activestorage (=
|
41
|
-
activesupport (=
|
42
|
-
mail (>= 2.
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
activejob (= 7.1.2)
|
50
|
-
activesupport (= 7.1.2)
|
51
|
-
mail (~> 2.5, >= 2.5.4)
|
52
|
-
net-imap
|
53
|
-
net-pop
|
54
|
-
net-smtp
|
40
|
+
actionmailbox (8.0.2)
|
41
|
+
actionpack (= 8.0.2)
|
42
|
+
activejob (= 8.0.2)
|
43
|
+
activerecord (= 8.0.2)
|
44
|
+
activestorage (= 8.0.2)
|
45
|
+
activesupport (= 8.0.2)
|
46
|
+
mail (>= 2.8.0)
|
47
|
+
actionmailer (8.0.2)
|
48
|
+
actionpack (= 8.0.2)
|
49
|
+
actionview (= 8.0.2)
|
50
|
+
activejob (= 8.0.2)
|
51
|
+
activesupport (= 8.0.2)
|
52
|
+
mail (>= 2.8.0)
|
55
53
|
rails-dom-testing (~> 2.2)
|
56
|
-
actionpack (
|
57
|
-
actionview (=
|
58
|
-
activesupport (=
|
54
|
+
actionpack (8.0.2)
|
55
|
+
actionview (= 8.0.2)
|
56
|
+
activesupport (= 8.0.2)
|
59
57
|
nokogiri (>= 1.8.5)
|
60
|
-
racc
|
61
58
|
rack (>= 2.2.4)
|
62
59
|
rack-session (>= 1.0.1)
|
63
60
|
rack-test (>= 0.6.3)
|
64
61
|
rails-dom-testing (~> 2.2)
|
65
62
|
rails-html-sanitizer (~> 1.6)
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
63
|
+
useragent (~> 0.16)
|
64
|
+
actiontext (8.0.2)
|
65
|
+
actionpack (= 8.0.2)
|
66
|
+
activerecord (= 8.0.2)
|
67
|
+
activestorage (= 8.0.2)
|
68
|
+
activesupport (= 8.0.2)
|
71
69
|
globalid (>= 0.6.0)
|
72
70
|
nokogiri (>= 1.8.5)
|
73
|
-
actionview (
|
74
|
-
activesupport (=
|
71
|
+
actionview (8.0.2)
|
72
|
+
activesupport (= 8.0.2)
|
75
73
|
builder (~> 3.1)
|
76
74
|
erubi (~> 1.11)
|
77
75
|
rails-dom-testing (~> 2.2)
|
78
76
|
rails-html-sanitizer (~> 1.6)
|
79
|
-
activejob (
|
80
|
-
activesupport (=
|
77
|
+
activejob (8.0.2)
|
78
|
+
activesupport (= 8.0.2)
|
81
79
|
globalid (>= 0.3.6)
|
82
|
-
activemodel (
|
83
|
-
activesupport (=
|
84
|
-
activerecord (
|
85
|
-
activemodel (=
|
86
|
-
activesupport (=
|
80
|
+
activemodel (8.0.2)
|
81
|
+
activesupport (= 8.0.2)
|
82
|
+
activerecord (8.0.2)
|
83
|
+
activemodel (= 8.0.2)
|
84
|
+
activesupport (= 8.0.2)
|
87
85
|
timeout (>= 0.4.0)
|
88
|
-
activestorage (
|
89
|
-
actionpack (=
|
90
|
-
activejob (=
|
91
|
-
activerecord (=
|
92
|
-
activesupport (=
|
86
|
+
activestorage (8.0.2)
|
87
|
+
actionpack (= 8.0.2)
|
88
|
+
activejob (= 8.0.2)
|
89
|
+
activerecord (= 8.0.2)
|
90
|
+
activesupport (= 8.0.2)
|
93
91
|
marcel (~> 1.0)
|
94
|
-
activesupport (
|
92
|
+
activesupport (8.0.2)
|
95
93
|
base64
|
94
|
+
benchmark (>= 0.3)
|
96
95
|
bigdecimal
|
97
|
-
concurrent-ruby (~> 1.0, >= 1.
|
96
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
98
97
|
connection_pool (>= 2.2.5)
|
99
98
|
drb
|
100
99
|
i18n (>= 1.6, < 2)
|
100
|
+
logger (>= 1.4.2)
|
101
101
|
minitest (>= 5.1)
|
102
|
-
|
103
|
-
tzinfo (~> 2.0)
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
builder (3.2.4)
|
102
|
+
securerandom (>= 0.3)
|
103
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
104
|
+
uri (>= 0.13.1)
|
105
|
+
addressable (2.8.7)
|
106
|
+
public_suffix (>= 2.0.2, < 7.0)
|
107
|
+
base64 (0.3.0)
|
108
|
+
benchmark (0.4.1)
|
109
|
+
bigdecimal (3.2.2)
|
110
|
+
browser (6.2.0)
|
111
|
+
builder (3.3.0)
|
113
112
|
capybara (3.40.0)
|
114
113
|
addressable
|
115
114
|
matrix
|
@@ -128,28 +127,34 @@ GEM
|
|
128
127
|
actionpack (>= 3.1)
|
129
128
|
caxlsx (>= 3.0)
|
130
129
|
coderay (1.1.3)
|
131
|
-
concurrent-ruby (1.
|
132
|
-
connection_pool (2.
|
130
|
+
concurrent-ruby (1.3.5)
|
131
|
+
connection_pool (2.5.3)
|
133
132
|
crass (1.0.6)
|
134
|
-
date (3.
|
135
|
-
diffy (3.4.
|
136
|
-
drb (2.2.
|
137
|
-
|
138
|
-
erubi (1.
|
133
|
+
date (3.4.1)
|
134
|
+
diffy (3.4.4)
|
135
|
+
drb (2.2.3)
|
136
|
+
erb (5.0.1)
|
137
|
+
erubi (1.13.1)
|
139
138
|
globalid (1.2.1)
|
140
139
|
activesupport (>= 6.1)
|
141
140
|
htmlentities (4.3.4)
|
142
|
-
i18n (1.14.
|
141
|
+
i18n (1.14.7)
|
143
142
|
concurrent-ruby (~> 1.0)
|
144
143
|
importmap-rails (2.1.0)
|
145
144
|
actionpack (>= 6.0.0)
|
146
145
|
activesupport (>= 6.0.0)
|
147
146
|
railties (>= 6.0.0)
|
148
|
-
io-console (0.
|
149
|
-
irb (1.
|
150
|
-
|
147
|
+
io-console (0.8.0)
|
148
|
+
irb (1.15.2)
|
149
|
+
pp (>= 0.6.0)
|
150
|
+
rdoc (>= 4.0.0)
|
151
151
|
reline (>= 0.4.2)
|
152
|
-
|
152
|
+
jsonb_accessor (1.4)
|
153
|
+
activerecord (>= 6.1)
|
154
|
+
activesupport (>= 6.1)
|
155
|
+
pg (>= 0.18.1)
|
156
|
+
logger (1.7.0)
|
157
|
+
loofah (2.24.1)
|
153
158
|
crass (~> 1.0.2)
|
154
159
|
nokogiri (>= 1.12.0)
|
155
160
|
mail (2.8.1)
|
@@ -157,145 +162,174 @@ GEM
|
|
157
162
|
net-imap
|
158
163
|
net-pop
|
159
164
|
net-smtp
|
160
|
-
marcel (1.0.
|
165
|
+
marcel (1.0.4)
|
161
166
|
matrix (0.4.2)
|
162
|
-
method_source (1.
|
167
|
+
method_source (1.1.0)
|
163
168
|
mini_mime (1.1.5)
|
164
|
-
|
165
|
-
|
166
|
-
mutex_m (0.2.0)
|
167
|
-
net-imap (0.4.9.1)
|
169
|
+
minitest (5.25.5)
|
170
|
+
net-imap (0.5.8)
|
168
171
|
date
|
169
172
|
net-protocol
|
170
173
|
net-pop (0.1.2)
|
171
174
|
net-protocol
|
172
175
|
net-protocol (0.2.2)
|
173
176
|
timeout
|
174
|
-
net-smtp (0.
|
177
|
+
net-smtp (0.5.1)
|
175
178
|
net-protocol
|
176
|
-
nio4r (2.7.
|
177
|
-
nokogiri (1.
|
178
|
-
mini_portile2 (~> 2.8.2)
|
179
|
+
nio4r (2.7.4)
|
180
|
+
nokogiri (1.18.8-aarch64-linux-gnu)
|
179
181
|
racc (~> 1.4)
|
180
|
-
|
181
|
-
|
182
|
-
|
182
|
+
nokogiri (1.18.8-aarch64-linux-musl)
|
183
|
+
racc (~> 1.4)
|
184
|
+
nokogiri (1.18.8-arm-linux-gnu)
|
185
|
+
racc (~> 1.4)
|
186
|
+
nokogiri (1.18.8-arm-linux-musl)
|
187
|
+
racc (~> 1.4)
|
188
|
+
nokogiri (1.18.8-arm64-darwin)
|
189
|
+
racc (~> 1.4)
|
190
|
+
nokogiri (1.18.8-x86_64-darwin)
|
191
|
+
racc (~> 1.4)
|
192
|
+
nokogiri (1.18.8-x86_64-linux-gnu)
|
193
|
+
racc (~> 1.4)
|
194
|
+
nokogiri (1.18.8-x86_64-linux-musl)
|
195
|
+
racc (~> 1.4)
|
196
|
+
pagy (9.3.4)
|
197
|
+
pg (1.5.9)
|
198
|
+
pp (0.6.2)
|
199
|
+
prettyprint
|
200
|
+
prettyprint (0.2.0)
|
201
|
+
pry (0.15.2)
|
183
202
|
coderay (~> 1.1)
|
184
203
|
method_source (~> 1.0)
|
185
|
-
psych (5.
|
204
|
+
psych (5.2.6)
|
205
|
+
date
|
186
206
|
stringio
|
187
|
-
public_suffix (
|
188
|
-
puma (6.
|
207
|
+
public_suffix (6.0.2)
|
208
|
+
puma (6.6.0)
|
189
209
|
nio4r (~> 2.0)
|
190
|
-
racc (1.
|
191
|
-
rack (3.
|
192
|
-
rack-session (2.
|
210
|
+
racc (1.8.1)
|
211
|
+
rack (3.1.16)
|
212
|
+
rack-session (2.1.1)
|
213
|
+
base64 (>= 0.1.0)
|
193
214
|
rack (>= 3.0.0)
|
194
|
-
rack-test (2.
|
215
|
+
rack-test (2.2.0)
|
195
216
|
rack (>= 1.3)
|
196
|
-
rackup (2.1
|
217
|
+
rackup (2.2.1)
|
197
218
|
rack (>= 3)
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
activesupport (= 7.1.2)
|
219
|
+
rails (8.0.2)
|
220
|
+
actioncable (= 8.0.2)
|
221
|
+
actionmailbox (= 8.0.2)
|
222
|
+
actionmailer (= 8.0.2)
|
223
|
+
actionpack (= 8.0.2)
|
224
|
+
actiontext (= 8.0.2)
|
225
|
+
actionview (= 8.0.2)
|
226
|
+
activejob (= 8.0.2)
|
227
|
+
activemodel (= 8.0.2)
|
228
|
+
activerecord (= 8.0.2)
|
229
|
+
activestorage (= 8.0.2)
|
230
|
+
activesupport (= 8.0.2)
|
211
231
|
bundler (>= 1.15.0)
|
212
|
-
railties (=
|
213
|
-
rails-dom-testing (2.
|
232
|
+
railties (= 8.0.2)
|
233
|
+
rails-dom-testing (2.3.0)
|
214
234
|
activesupport (>= 5.0.0)
|
215
235
|
minitest
|
216
236
|
nokogiri (>= 1.6)
|
217
|
-
rails-html-sanitizer (1.6.
|
237
|
+
rails-html-sanitizer (1.6.2)
|
218
238
|
loofah (~> 2.21)
|
219
|
-
nokogiri (
|
220
|
-
railties (
|
221
|
-
actionpack (=
|
222
|
-
activesupport (=
|
223
|
-
irb
|
239
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
240
|
+
railties (8.0.2)
|
241
|
+
actionpack (= 8.0.2)
|
242
|
+
activesupport (= 8.0.2)
|
243
|
+
irb (~> 1.13)
|
224
244
|
rackup (>= 1.0.0)
|
225
245
|
rake (>= 12.2)
|
226
246
|
thor (~> 1.0, >= 1.2.2)
|
227
247
|
zeitwerk (~> 2.6)
|
228
|
-
rake (13.
|
229
|
-
rdoc (6.
|
248
|
+
rake (13.3.0)
|
249
|
+
rdoc (6.14.0)
|
250
|
+
erb
|
230
251
|
psych (>= 4.0.0)
|
231
|
-
regexp_parser (2.
|
232
|
-
reline (0.
|
252
|
+
regexp_parser (2.10.0)
|
253
|
+
reline (0.6.1)
|
233
254
|
io-console (~> 0.5)
|
234
|
-
rexml (3.
|
235
|
-
|
236
|
-
|
237
|
-
selenium-webdriver (4.
|
255
|
+
rexml (3.4.1)
|
256
|
+
rubyzip (2.4.1)
|
257
|
+
securerandom (0.4.1)
|
258
|
+
selenium-webdriver (4.33.0)
|
238
259
|
base64 (~> 0.2)
|
260
|
+
logger (~> 1.4)
|
239
261
|
rexml (~> 3.2, >= 3.2.5)
|
240
262
|
rubyzip (>= 1.2.2, < 3.0)
|
241
263
|
websocket (~> 1.0)
|
242
264
|
slim (5.2.1)
|
243
265
|
temple (~> 0.10.0)
|
244
266
|
tilt (>= 2.1.0)
|
245
|
-
sprockets (4.2.
|
267
|
+
sprockets (4.2.2)
|
246
268
|
concurrent-ruby (~> 1.0)
|
269
|
+
logger
|
247
270
|
rack (>= 2.2.4, < 4)
|
248
|
-
sprockets-rails (3.
|
249
|
-
actionpack (>=
|
250
|
-
activesupport (>=
|
271
|
+
sprockets-rails (3.5.2)
|
272
|
+
actionpack (>= 6.1)
|
273
|
+
activesupport (>= 6.1)
|
251
274
|
sprockets (>= 3.0.0)
|
252
275
|
stimulus-rails (1.3.4)
|
253
276
|
railties (>= 6.0.0)
|
254
|
-
stringio (3.1.
|
255
|
-
tailwindcss-rails (
|
277
|
+
stringio (3.1.7)
|
278
|
+
tailwindcss-rails (3.3.2)
|
256
279
|
railties (>= 7.0.0)
|
257
|
-
tailwindcss-ruby (~>
|
258
|
-
tailwindcss-ruby (4.
|
259
|
-
tailwindcss-ruby (4.
|
260
|
-
tailwindcss-ruby (4.
|
280
|
+
tailwindcss-ruby (~> 3.0)
|
281
|
+
tailwindcss-ruby (3.4.17-aarch64-linux)
|
282
|
+
tailwindcss-ruby (3.4.17-arm-linux)
|
283
|
+
tailwindcss-ruby (3.4.17-arm64-darwin)
|
284
|
+
tailwindcss-ruby (3.4.17-x86_64-darwin)
|
285
|
+
tailwindcss-ruby (3.4.17-x86_64-linux)
|
261
286
|
temple (0.10.3)
|
262
287
|
textacular (5.7.0)
|
263
288
|
activerecord (>= 5.0)
|
264
|
-
thor (1.3.
|
265
|
-
tilt (2.
|
266
|
-
timeout (0.4.
|
267
|
-
turbo-rails (2.0.
|
268
|
-
actionpack (>=
|
269
|
-
railties (>=
|
289
|
+
thor (1.3.2)
|
290
|
+
tilt (2.6.0)
|
291
|
+
timeout (0.4.3)
|
292
|
+
turbo-rails (2.0.16)
|
293
|
+
actionpack (>= 7.1.0)
|
294
|
+
railties (>= 7.1.0)
|
270
295
|
tzinfo (2.0.6)
|
271
296
|
concurrent-ruby (~> 1.0)
|
272
|
-
|
273
|
-
|
274
|
-
|
297
|
+
uri (1.0.3)
|
298
|
+
useragent (0.16.11)
|
299
|
+
view_component (3.23.2)
|
300
|
+
activesupport (>= 5.2.0, < 8.1)
|
301
|
+
concurrent-ruby (~> 1)
|
275
302
|
method_source (~> 1.0)
|
276
|
-
|
277
|
-
websocket (
|
278
|
-
|
303
|
+
websocket (1.2.11)
|
304
|
+
websocket-driver (0.8.0)
|
305
|
+
base64
|
279
306
|
websocket-extensions (>= 0.1.0)
|
280
307
|
websocket-extensions (0.1.5)
|
281
308
|
xpath (3.2.0)
|
282
309
|
nokogiri (~> 1.8)
|
283
|
-
zeitwerk (2.
|
310
|
+
zeitwerk (2.7.3)
|
284
311
|
|
285
312
|
PLATFORMS
|
286
|
-
aarch64-linux
|
287
|
-
|
313
|
+
aarch64-linux-gnu
|
314
|
+
aarch64-linux-musl
|
315
|
+
arm-linux
|
316
|
+
arm-linux-gnu
|
317
|
+
arm-linux-musl
|
318
|
+
arm64-darwin
|
319
|
+
x86_64-darwin
|
288
320
|
x86_64-linux
|
321
|
+
x86_64-linux-gnu
|
322
|
+
x86_64-linux-musl
|
289
323
|
|
290
324
|
DEPENDENCIES
|
291
325
|
capybara (~> 3.40)
|
292
326
|
mensa!
|
293
327
|
pry
|
294
328
|
puma
|
295
|
-
satis (~>
|
329
|
+
satis (~> 2)!
|
296
330
|
selenium-webdriver (~> 4.17)
|
297
331
|
slim (~> 5.2)
|
298
332
|
sprockets-rails
|
299
333
|
|
300
334
|
BUNDLED WITH
|
301
|
-
2.
|
335
|
+
2.6.2
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ Wanted features:
|
|
17
17
|
|
18
18
|
Todo:
|
19
19
|
|
20
|
-
- [
|
20
|
+
- [X] Hide filter icon in case there are no filters
|
21
21
|
- [ ] Search only works on table columns
|
22
22
|
|
23
23
|
## Usage
|
@@ -74,6 +74,11 @@ You can show your tables on the page using the following:
|
|
74
74
|
= sts.table :users
|
75
75
|
```
|
76
76
|
|
77
|
+
#### Views
|
78
|
+
|
79
|
+
Initial support for views is there, but pretty rudementary:
|
80
|
+
`Mensa::TableView.create(table: "users", name: "Guests", data: {filters: {role: "guest"}})`
|
81
|
+
|
77
82
|
### Fast
|
78
83
|
|
79
84
|
Mensa selects only the data it needs, based on the columns. Sometimes it needs additional columns to do it's work, but you don't want them displayed.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
span.block.truncate data-mensa-add-filter-target="description"
|
4
4
|
= t('.add_filter')
|
5
5
|
span.pointer-events-none.absolute.inset-y-0.right-0.flex.items-center.pr-2
|
6
|
-
.
|
6
|
+
div class=Mensa.config.icons[:filters_add_filter]
|
7
7
|
|
8
8
|
ul.hidden.absolute.z-10.mt-1.max-h-60.w-64.overflow-auto.rounded-md.bg-white.dark:bg-gray-800.py-1.text-base.shadow-lg.ring-1.ring-black.ring-opacity-5.focus:outline-none.sm:text-sm data-mensa-add-filter-target="filterList"
|
9
9
|
- table.columns.select(&:filter?).each do |column|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
button.flex.justify-right.cursor-pointer.py-1.5.h-full.text-gray-400 class="#{table.supports_views? ? 'w-8' : 'w-4'}" data-action="mensa-table#openFiltersAndSearch"
|
4
4
|
- if table.supports_views?
|
5
5
|
i class=Mensa.config.icons[:control_bar_search]
|
6
|
-
- if table.supports_filters?
|
6
|
+
- if table.supports_filters? && table.filters?
|
7
7
|
i class=Mensa.config.icons[:control_bar_filter]
|
8
8
|
/- if view_columns_sorting?
|
9
9
|
button.cursor-pointer.w-6.h-full.text-gray-400
|
@@ -21,7 +21,7 @@
|
|
21
21
|
@apply divide-y divide-gray-200 dark:divide-gray-600;
|
22
22
|
|
23
23
|
tr {
|
24
|
-
@apply cursor-pointer bg-white dark:bg-gray-800 divide-x divide-gray-400 divide-opacity-25 hover:bg-gray-
|
24
|
+
@apply cursor-pointer bg-white dark:bg-gray-800 divide-x divide-gray-400 divide-opacity-25 hover:bg-gray-200 dark:hover:bg-gray-700;
|
25
25
|
|
26
26
|
&:nth-child(even) {
|
27
27
|
@apply bg-gray-50 dark:bg-gray-900 hover:bg-gray-200 dark:hover:bg-gray-700;
|
@@ -14,5 +14,5 @@
|
|
14
14
|
|
15
15
|
- if table.supports_custom_views?
|
16
16
|
a.text-gray-600.dark:text-gray-400.hover:text-gray-800.hover:bg-gray-200.rounded-md.px-3.py-1.5.text-sm[href="#" title=t("new_view", default: "New view")]
|
17
|
-
.
|
17
|
+
.fa-solid.fa-plus
|
18
18
|
= render Mensa::ControlBar::Component.new(table: table)
|
data/app/tables/mensa/base.rb
CHANGED
data/bin/setup
CHANGED
@@ -40,14 +40,15 @@ FileUtils.chdir APP_ROOT do
|
|
40
40
|
copy_sample! "config/tailwind.config.js"
|
41
41
|
copy_sample! "app/assets/stylesheets/application.tailwind.css"
|
42
42
|
copy_sample "config/puma.rb"
|
43
|
-
unless File.exist?(".ssl/localhost.crt")
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
43
|
+
# unless File.exist?(".ssl/localhost.crt")
|
44
|
+
# FileUtils.mkdir_p ".ssl"
|
45
|
+
# FileUtils.chdir "#{APP_ROOT}/.ssl" do
|
46
|
+
# system!("mkcert localhost")
|
47
|
+
# end
|
48
|
+
# end
|
49
49
|
|
50
50
|
puts "\n== Caching mode =="
|
51
|
+
system! "bin/rails tmp:create"
|
51
52
|
FileUtils.touch "tmp/caching-dev.txt"
|
52
53
|
|
53
54
|
puts "\n== Preparing database =="
|
@@ -56,6 +57,6 @@ FileUtils.chdir APP_ROOT do
|
|
56
57
|
puts "\n== Removing old logs and tempfiles =="
|
57
58
|
system! "bin/rails log:clear tmp:clear"
|
58
59
|
|
59
|
-
puts "\n== Done, welcome to
|
60
|
+
puts "\n== Done, welcome to Mensa =="
|
60
61
|
puts "To start the application, run 'cd test/dummy; bin/rails s'"
|
61
62
|
end
|
data/config/importmap.rb
CHANGED
@@ -2,7 +2,6 @@ pin "mensa", to: "mensa/application.js", preload: true
|
|
2
2
|
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
|
3
3
|
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
|
4
4
|
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
5
|
-
pin '@fortawesome/fontawesome-free', to: 'https://ga.jspm.io/npm:@fortawesome/fontawesome-free@6.1.1/js/all.js'
|
6
5
|
pin_all_from Mensa::Engine.root.join("app/javascript/mensa/controllers"), under: "mensa/controllers", to: "mensa/controllers", preload: false
|
7
6
|
pin_all_from Mensa::Engine.root.join("app/components/mensa"), under: "mensa/components", to: "mensa", preload: false
|
8
7
|
pin "@rails/request.js", to: "@rails--request.js.js" # @0.0.9
|
data/lib/mensa/configuration.rb
CHANGED
@@ -40,7 +40,8 @@ module Mensa
|
|
40
40
|
control_bar_edit: "fa-solid fa-table-columns",
|
41
41
|
control_bar_compress: "fa-solid fa-compress",
|
42
42
|
control_bar_export: "fa-solid fa-file-export",
|
43
|
-
search: "fa-solid fa-magnifying-glass"
|
43
|
+
search: "fa-solid fa-magnifying-glass",
|
44
|
+
filters_add_filter: "fa-solid fa-plus",
|
44
45
|
}
|
45
46
|
# PRO
|
46
47
|
# option :icons, default: {
|
data/lib/mensa/version.rb
CHANGED
data/mensa.gemspec
CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency 'textacular', '>=5'
|
36
36
|
|
37
37
|
spec.add_dependency 'slim'
|
38
|
-
spec.add_dependency 'tailwindcss-rails'
|
38
|
+
spec.add_dependency 'tailwindcss-rails', "~> 3.3"
|
39
39
|
spec.add_dependency 'importmap-rails'
|
40
40
|
spec.add_dependency 'turbo-rails'
|
41
41
|
spec.add_dependency 'stimulus-rails'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mensa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03
|
11
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caxlsx_rails
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: tailwindcss-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.3'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: importmap-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- ".devcontainer/Dockerfile"
|
148
148
|
- ".devcontainer/compose.yaml"
|
149
149
|
- ".devcontainer/devcontainer.json"
|
150
|
+
- ".gem_release.yml"
|
150
151
|
- ".github/workflows/gem-push.yml"
|
151
152
|
- ".gitignore"
|
152
153
|
- Gemfile
|
@@ -227,7 +228,6 @@ files:
|
|
227
228
|
- app/tables/mensa/filter.rb
|
228
229
|
- app/tables/mensa/row.rb
|
229
230
|
- app/tables/mensa/scope.rb
|
230
|
-
- app/views/layouts/mensa/application.html.slim
|
231
231
|
- app/views/mensa/tables/filters/show.turbo_stream.slim
|
232
232
|
- app/views/mensa/tables/index.html.slim
|
233
233
|
- app/views/mensa/tables/show.html.slim
|