activeadmin 4.0.0.beta7 → 4.0.0.beta8
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/app/javascript/active_admin/features/batch_actions.js +10 -4
- data/config/locales/ca.yml +85 -32
- data/lib/active_admin/version.rb +1 -1
- data/plugin.js +0 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a63b35e7f784fd50ba0471841cb52b10cf47f732c17e9a03b632303cedb922cf
|
4
|
+
data.tar.gz: 54a8a264547063ddf0b1178310a4c8a00444aaa32796e4fe9abd72c04b2406aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f6a7cba813a4ce9af1f4192ab9dd96287b46044524927ab1c410875225f803ee970943658fe4942a59d6647791c61db30ab26479d87fa2db39fa92aeafb6258
|
7
|
+
data.tar.gz: fe2b8edf174e2bafcc5efcf21d7cbd2f5f8aa5449aa2f66a2963f537116d41554d30cde07014230dcdfb100bd71f66071d3e96bb8a6ff487656df713c17d2693
|
@@ -1,11 +1,20 @@
|
|
1
1
|
import Rails from '@rails/ujs';
|
2
2
|
|
3
|
+
const submitForm = function() {
|
4
|
+
let form = document.getElementById("collection_selection")
|
5
|
+
if (form) {
|
6
|
+
form.submit()
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
3
10
|
const batchActionClick = function(event) {
|
4
11
|
event.preventDefault()
|
5
12
|
let batchAction = document.getElementById("batch_action")
|
6
13
|
if (batchAction) {
|
7
14
|
batchAction.value = this.dataset.action
|
8
15
|
}
|
16
|
+
|
17
|
+
if (!event.target.dataset.confirm) { submitForm() }
|
9
18
|
}
|
10
19
|
|
11
20
|
const batchActionConfirmComplete = function(event) {
|
@@ -15,10 +24,7 @@ const batchActionConfirmComplete = function(event) {
|
|
15
24
|
if (batchAction) {
|
16
25
|
batchAction.value = this.dataset.action
|
17
26
|
}
|
18
|
-
|
19
|
-
if (form) {
|
20
|
-
form.submit()
|
21
|
-
}
|
27
|
+
submitForm()
|
22
28
|
}
|
23
29
|
}
|
24
30
|
|
data/config/locales/ca.yml
CHANGED
@@ -1,10 +1,27 @@
|
|
1
1
|
ca:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comment:
|
5
|
+
one: "Comentari"
|
6
|
+
other: "Comentaris"
|
7
|
+
active_admin/comment:
|
8
|
+
one: "Comentari"
|
9
|
+
other: "Comentaris"
|
10
|
+
attributes:
|
11
|
+
active_admin/comment:
|
12
|
+
author_type: "Tipus d'autor"
|
13
|
+
body: "Missatge"
|
14
|
+
created_at: "Creat el"
|
15
|
+
namespace: "Espai de noms"
|
16
|
+
resource_type: "Tipus de recurs"
|
17
|
+
updated_at: "Actualitzat el"
|
2
18
|
active_admin:
|
3
|
-
dashboard: Tauler
|
19
|
+
dashboard: "Tauler d'activitat"
|
4
20
|
view: "Mostra"
|
5
21
|
edit: "Edita"
|
6
22
|
delete: "Elimina"
|
7
|
-
delete_confirmation: "Segur que
|
23
|
+
delete_confirmation: "Segur que voleu eliminar-ho?"
|
24
|
+
create_another: "Crear un altre %{model}"
|
8
25
|
new_model: "Crear %{model}"
|
9
26
|
edit_model: "Editar %{model}"
|
10
27
|
delete_model: "Eliminar %{model}"
|
@@ -14,27 +31,41 @@ ca:
|
|
14
31
|
previous: "Anterior"
|
15
32
|
next: "Següent"
|
16
33
|
download: "Descarregar:"
|
17
|
-
has_many_new: "Afegir %{model}"
|
34
|
+
has_many_new: "Afegir un altre %{model}"
|
18
35
|
has_many_delete: "Eliminar"
|
19
36
|
has_many_remove: "Treure"
|
37
|
+
move: "Moure"
|
20
38
|
filters:
|
21
39
|
buttons:
|
22
|
-
filter: "
|
23
|
-
clear: "
|
40
|
+
filter: "Filtra"
|
41
|
+
clear: "Elimina els filtres"
|
42
|
+
predicates:
|
43
|
+
from: "Des de"
|
44
|
+
to: "Fins"
|
45
|
+
scopes:
|
46
|
+
all: "Tots"
|
47
|
+
search_status:
|
48
|
+
title: "Cerca activa"
|
49
|
+
title_with_scope: "Cerca activa per %{name}"
|
50
|
+
no_current_filters: "Sense filtres actius"
|
24
51
|
status_tag:
|
25
52
|
"yes": "Sí"
|
26
53
|
"no": "No"
|
27
|
-
"unset": "
|
28
|
-
logout: "
|
54
|
+
"unset": "Desconegut"
|
55
|
+
logout: "Tanca la sessió"
|
29
56
|
powered_by: "Powered by %{active_admin} %{version}"
|
30
57
|
sidebars:
|
31
58
|
filters: "Filtres"
|
59
|
+
search_status: "Estat de la cerca"
|
32
60
|
pagination:
|
33
|
-
empty: "No
|
34
|
-
one: "S'està mostrant <b>1</b>
|
35
|
-
one_page: "S'estan mostrant <b>tots %{n}</b>
|
36
|
-
multiple: "
|
37
|
-
multiple_without_total: "
|
61
|
+
empty: "No s'ha trobat cap %{model}"
|
62
|
+
one: "S'està mostrant <b>1</b> de <b>1</b>"
|
63
|
+
one_page: "S'estan mostrant <b>tots %{n}</b>"
|
64
|
+
multiple: "Se n'estan mostrant <b>%{from}-%{to}</b> d'un total de <b>%{total}</b>"
|
65
|
+
multiple_without_total: "Se n'estan mostrant <b>%{from}-%{to}</b>"
|
66
|
+
per_page: "Per pàgina"
|
67
|
+
previous: "Anterior"
|
68
|
+
next: "Següent"
|
38
69
|
entry:
|
39
70
|
one: "entrada"
|
40
71
|
other: "entrades"
|
@@ -43,36 +74,55 @@ ca:
|
|
43
74
|
content: "Encara no hi ha cap %{resource_name}."
|
44
75
|
link: "Crea'n un/a"
|
45
76
|
batch_actions:
|
46
|
-
button_label: "
|
47
|
-
default_confirmation: "
|
48
|
-
delete_confirmation: "
|
77
|
+
button_label: "Accions per lots"
|
78
|
+
default_confirmation: "Segur que voleu fer-ho?"
|
79
|
+
delete_confirmation: "Segurs que voleu eliminar aquests %{plural_model}?"
|
49
80
|
succesfully_destroyed:
|
50
|
-
one: "
|
51
|
-
other: "
|
52
|
-
selection_toggle_explanation: "(
|
81
|
+
one: "1 %{model} eliminat"
|
82
|
+
other: "%{count} %{plural_model} eliminats"
|
83
|
+
selection_toggle_explanation: "(Invertir la selecció)"
|
53
84
|
action_label: "%{title} seleccionat"
|
54
85
|
labels:
|
55
|
-
destroy: "
|
86
|
+
destroy: "Esborrar"
|
56
87
|
comments:
|
57
|
-
|
58
|
-
|
88
|
+
created_at: "Creat el"
|
89
|
+
resource_type: "Tipus de recurs"
|
90
|
+
author_type: "Tipus d'author"
|
91
|
+
body: "Missatge"
|
92
|
+
author: "Autor"
|
59
93
|
add: "Afegeix comentari"
|
94
|
+
delete: "Elimina comentari"
|
95
|
+
delete_confirmation: "Esteu segurs que voleu eliminar aquest comentari?"
|
60
96
|
resource: "Recurs"
|
61
|
-
no_comments_yet: "
|
62
|
-
|
97
|
+
no_comments_yet: "Sense comentaris"
|
98
|
+
author_missing: "Anònim"
|
99
|
+
title_content: "Tots els comentaris (%{count})"
|
63
100
|
errors:
|
64
|
-
empty_text: "El comentari no
|
101
|
+
empty_text: "El comentari no s'ha desat, no hi havia text."
|
65
102
|
devise:
|
103
|
+
username:
|
104
|
+
title: "Usuari"
|
105
|
+
email:
|
106
|
+
title: "Email"
|
107
|
+
subdomain:
|
108
|
+
title: "Subdomini"
|
109
|
+
password:
|
110
|
+
title: "Contrasenya"
|
111
|
+
password_confirmation:
|
112
|
+
title: "Confirmeu la contrasenya"
|
113
|
+
sign_up:
|
114
|
+
title: "Doneu-vos d'alta"
|
115
|
+
submit: "Doneu-vos d'alta"
|
66
116
|
login:
|
67
|
-
title: "
|
68
|
-
remember_me: "
|
69
|
-
submit: "
|
117
|
+
title: "Identifiqueu-vos"
|
118
|
+
remember_me: "Recorda'm"
|
119
|
+
submit: "Identifiqueu-vos"
|
70
120
|
reset_password:
|
71
|
-
title: "Heu
|
121
|
+
title: "Heu oblidat la contrasenya?"
|
72
122
|
submit: "Restablir la contrasenya"
|
73
123
|
change_password:
|
74
124
|
title: "Canvieu la contrasenya"
|
75
|
-
submit: "
|
125
|
+
submit: "Canvia'm la contrasenya"
|
76
126
|
unlock:
|
77
127
|
title: "Reenvia instruccions per a desbloquejar"
|
78
128
|
submit: "Reenvia instruccions per a desbloquejar"
|
@@ -80,10 +130,13 @@ ca:
|
|
80
130
|
title: "Reenviar instruccions de confirmació"
|
81
131
|
submit: "Reenviar instruccions de confirmació"
|
82
132
|
links:
|
83
|
-
|
133
|
+
sign_up: "Sign up"
|
134
|
+
sign_in: "Sign in"
|
84
135
|
forgot_your_password: "Heu perdut la contrasenya?"
|
85
|
-
sign_in_with_omniauth_provider: "
|
136
|
+
sign_in_with_omniauth_provider: "Identificació via %{provider}"
|
137
|
+
resend_unlock_instructions: "Reenviar les instruccions de desbloqueig"
|
138
|
+
resend_confirmation_instructions: "Reenviar les instruccions de confirmació"
|
86
139
|
access_denied:
|
87
|
-
message: "No
|
140
|
+
message: "No esteu autoritzats a realitzar aquesta acció"
|
88
141
|
index_list:
|
89
142
|
table: "Taula"
|
data/lib/active_admin/version.rb
CHANGED
data/plugin.js
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Maresh
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2024-
|
18
|
+
date: 2024-07-27 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -401,11 +401,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
401
401
|
version: '3.0'
|
402
402
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
403
403
|
requirements:
|
404
|
-
- - "
|
404
|
+
- - ">="
|
405
405
|
- !ruby/object:Gem::Version
|
406
|
-
version:
|
406
|
+
version: '0'
|
407
407
|
requirements: []
|
408
|
-
rubygems_version: 3.
|
408
|
+
rubygems_version: 3.5.15
|
409
409
|
signing_key:
|
410
410
|
specification_version: 4
|
411
411
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|