mensa 0.9.5 → 0.9.6
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-lock.json +4 -4
- data/.devcontainer/devcontainer.json +16 -7
- data/.devcontainer/docker-compose.yml +74 -13
- data/.devcontainer/env.conf +29 -0
- data/.devcontainer/postStart.sh +7 -2
- data/.gitignore +2 -1
- data/.shipkit.yml +1 -1
- data/.worktreeinclude +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +56 -4
- data/app/components/mensa/add_filter/component.css +9 -0
- data/app/components/mensa/add_filter/component_controller.js +55 -2
- data/app/components/mensa/filter_pill/component.rb +1 -7
- data/app/components/mensa/filter_pill_list/component_controller.js +1 -6
- data/app/tables/mensa/base.rb +1 -1
- data/app/tables/mensa/config/table_dsl.rb +23 -0
- data/app/tables/mensa/config/view_dsl.rb +19 -0
- data/app/tables/mensa/filter.rb +51 -5
- data/app/views/mensa/tables/filters/show.turbo_stream.erb +15 -8
- data/bin/de +868 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/nl.yml +5 -0
- data/lib/mensa/verifier.rb +2 -0
- data/lib/mensa/version.rb +1 -1
- data/mise.toml +1 -3
- metadata +4 -2
- data/.devcontainer/initialize.sh +0 -22
data/config/locales/en.yml
CHANGED
|
@@ -60,6 +60,10 @@ en:
|
|
|
60
60
|
update_view: Update view
|
|
61
61
|
save_view: Save as new view
|
|
62
62
|
save_as_new_view: Save as new view
|
|
63
|
+
filters:
|
|
64
|
+
between_value: "%{from} and %{to}"
|
|
65
|
+
from: From
|
|
66
|
+
to: To
|
|
63
67
|
operators:
|
|
64
68
|
is: is
|
|
65
69
|
isnt: isn't
|
|
@@ -70,6 +74,7 @@ en:
|
|
|
70
74
|
lt: less than
|
|
71
75
|
gteq: greater than or equal to
|
|
72
76
|
lteq: less than or equal to
|
|
77
|
+
between: between
|
|
73
78
|
is_duplicate: is duplicate
|
|
74
79
|
is_empty: is empty
|
|
75
80
|
isnt_empty: is not empty
|
data/config/locales/nl.yml
CHANGED
|
@@ -60,6 +60,10 @@ nl:
|
|
|
60
60
|
update_view: Bewaar weergave
|
|
61
61
|
save_view: Bewaar als nieuwe weergave
|
|
62
62
|
save_as_new_view: Bewaar als nieuwe weergave
|
|
63
|
+
filters:
|
|
64
|
+
between_value: "%{from} en %{to}"
|
|
65
|
+
from: Van
|
|
66
|
+
to: Tot en met
|
|
63
67
|
operators:
|
|
64
68
|
is: is
|
|
65
69
|
isnt: is niet
|
|
@@ -70,6 +74,7 @@ nl:
|
|
|
70
74
|
lt: kleiner dan
|
|
71
75
|
gteq: groter dan of gelijk aan
|
|
72
76
|
lteq: kleiner dan of gelijk aan
|
|
77
|
+
between: tussen
|
|
73
78
|
is_duplicate: is dubbel
|
|
74
79
|
is_empty: is leeg
|
|
75
80
|
isnt_empty: is niet leeg
|
data/lib/mensa/verifier.rb
CHANGED
|
@@ -602,6 +602,8 @@ module Mensa
|
|
|
602
602
|
def filter_value(column, operator, with_value, values)
|
|
603
603
|
return unless with_value
|
|
604
604
|
return values if column.filter.multiple? && %i[is isnt].include?(operator)
|
|
605
|
+
# Both ends of the range, so both comparisons run
|
|
606
|
+
return [values.first, values.first] if operator == :between
|
|
605
607
|
|
|
606
608
|
values.first
|
|
607
609
|
end
|
data/lib/mensa/version.rb
CHANGED
data/mise.toml
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mensa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom de Grunt
|
|
@@ -167,7 +167,7 @@ files:
|
|
|
167
167
|
- ".devcontainer/devcontainer-lock.json"
|
|
168
168
|
- ".devcontainer/devcontainer.json"
|
|
169
169
|
- ".devcontainer/docker-compose.yml"
|
|
170
|
-
- ".devcontainer/
|
|
170
|
+
- ".devcontainer/env.conf"
|
|
171
171
|
- ".devcontainer/postStart.sh"
|
|
172
172
|
- ".gem_release.yml"
|
|
173
173
|
- ".github/workflows/gem-push.yml"
|
|
@@ -177,6 +177,7 @@ files:
|
|
|
177
177
|
- ".shipkit.yml"
|
|
178
178
|
- ".vscode/settings.json"
|
|
179
179
|
- ".vscode/tasks.json"
|
|
180
|
+
- ".worktreeinclude"
|
|
180
181
|
- ".zed/tasks.json"
|
|
181
182
|
- CHANGELOG.md
|
|
182
183
|
- Gemfile
|
|
@@ -309,6 +310,7 @@ files:
|
|
|
309
310
|
- app/views/mensa/tables/views/create.turbo_stream.erb
|
|
310
311
|
- app/views/mensa/tables/views/destroy.turbo_stream.erb
|
|
311
312
|
- app/views/mensa/tables/views/update.turbo_stream.erb
|
|
313
|
+
- bin/de
|
|
312
314
|
- bin/importmap
|
|
313
315
|
- bin/overmind
|
|
314
316
|
- bin/rails
|
data/.devcontainer/initialize.sh
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Runs on the host before the containers start, see initializeCommand.
|
|
3
|
-
# Writes the .env docker compose reads, so a git worktree gets its own
|
|
4
|
-
# containers and can use git inside them.
|
|
5
|
-
set -e
|
|
6
|
-
|
|
7
|
-
cd "$(dirname "$0")/.."
|
|
8
|
-
checkout="$(pwd -P)"
|
|
9
|
-
name="$(basename "$checkout")"
|
|
10
|
-
|
|
11
|
-
if [ -f .git ]; then
|
|
12
|
-
# A worktree: its .git file points into the main checkout's .git directory
|
|
13
|
-
project="mensa-$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9_-\n' '-')"
|
|
14
|
-
else
|
|
15
|
-
project="mensa"
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
cat > .devcontainer/.env <<EOF
|
|
19
|
-
COMPOSE_PROJECT_NAME=$project
|
|
20
|
-
WORKSPACES_ROOT=$(dirname "$checkout")
|
|
21
|
-
GIT_COMMON_DIR=$(cd "$(git rev-parse --git-common-dir)" && pwd -P)
|
|
22
|
-
EOF
|