fae-rails 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/fae/form/_validator.js +2 -1
- data/app/models/concerns/fae/base_model_concern.rb +4 -4
- data/config/locales/devise.zh-CN.yml +59 -0
- data/config/locales/fae.zh-CN.yml +10 -0
- data/config/locales/simple_form.zh-CN.yml +26 -0
- data/lib/fae/version.rb +1 -1
- metadata +57 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2efad2fc9feedd56fc9ec582e9ac519e6f7c0a8b
|
4
|
+
data.tar.gz: 1f3079cb3d1143a955289d8add21a72a7b6772a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf4b94fe96cdc89fe3119ba65ee96584dea2cacbc6dc15a7b8518a90a8053f1481c82201d7165883b3ad57bfb993abe0d5368242ae2e18750a8ec3d5a29bf8b
|
7
|
+
data.tar.gz: 5f3702e59f1583fac3bcddada5aff0c324c2a9464c4071584256995ccbed06e4ae8329f14b1bcb8e5667d500a50b1bb199d449d8a5555a07c53ae6c2df941a3d
|
@@ -29,7 +29,7 @@ Fae.form.validator = {
|
|
29
29
|
formValidate: function () {
|
30
30
|
var _this = this;
|
31
31
|
|
32
|
-
FCH.$document.on('submit', 'form', function (e) {
|
32
|
+
FCH.$document.on('submit', 'form:not([data-remote=true])', function (e) {
|
33
33
|
var $this = $(this);
|
34
34
|
|
35
35
|
if ($this.data('passed_validation') !== 'true') {
|
@@ -81,6 +81,7 @@ Fae.form.validator = {
|
|
81
81
|
if (_this.is_valid) {
|
82
82
|
// if form is valid, submit it
|
83
83
|
$this.data('passed_validation', 'true');
|
84
|
+
|
84
85
|
$this.submit();
|
85
86
|
} else {
|
86
87
|
// otherwise scroll to the top to display alerts
|
@@ -10,6 +10,10 @@ module Fae
|
|
10
10
|
include Fae::Sortable
|
11
11
|
end
|
12
12
|
|
13
|
+
def fae_display_field
|
14
|
+
# override this method in your model
|
15
|
+
end
|
16
|
+
|
13
17
|
def fae_nested_parent
|
14
18
|
# override this method in your model
|
15
19
|
end
|
@@ -24,10 +28,6 @@ module Fae
|
|
24
28
|
end
|
25
29
|
|
26
30
|
module ClassMethods
|
27
|
-
def fae_display_field
|
28
|
-
# override this method in your model
|
29
|
-
end
|
30
|
-
|
31
31
|
def for_fae_index
|
32
32
|
order(order_method)
|
33
33
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
zh-CN:
|
4
|
+
devise:
|
5
|
+
confirmations:
|
6
|
+
confirmed: "你的电子邮件地址以被成功确认。"
|
7
|
+
send_instructions: "你在几分钟后会收到一封电子邮件告诉你如何确认你的电子邮件地址。"
|
8
|
+
send_paranoid_instructions: "如果我们的数据库中保存有你的电子邮件地址,你会在几分钟内收到一封邮件告诉你如何确认的电子邮件。"
|
9
|
+
failure:
|
10
|
+
already_authenticated: "你已经登录。"
|
11
|
+
inactive: "你的帐户还未激活。"
|
12
|
+
invalid: "你需要合法的用户名和密码。"
|
13
|
+
locked: "你的帐号已被锁定。"
|
14
|
+
last_attempt: "你还有最后一次尝试机会,如果再次失败你的帐号将被锁定。"
|
15
|
+
not_found_in_database: "你需要合法的用户名和密码。"
|
16
|
+
timeout: "你的登录超时,请重新登录。"
|
17
|
+
unauthenticated: "你需要登录才能继续操作。"
|
18
|
+
unconfirmed: "你需要确认你的帐户才能继续。"
|
19
|
+
mailer:
|
20
|
+
confirmation_instructions:
|
21
|
+
subject: "帐户确认指南"
|
22
|
+
reset_password_instructions:
|
23
|
+
subject: "重置密码指南"
|
24
|
+
unlock_instructions:
|
25
|
+
subject: "Pivorak: 解锁指南"
|
26
|
+
omniauth_callbacks:
|
27
|
+
failure: "由于%{reason},无法从%{kind} 认证。"
|
28
|
+
success: "成功从 %{kind} 认证帐户。"
|
29
|
+
passwords:
|
30
|
+
no_token: "如果没有密码重置邮件无法访问这个页面。如果你是从密码重置邮件访问过来的,请确认输入的网址完整。"
|
31
|
+
send_instructions: "在几分钟内你会收到一封密码重置邮件。"
|
32
|
+
send_paranoid_instructions: "如果我们的数据库中保存有你的电子邮件地址,你会在几分钟内收到一封如何恢复密码的邮件。"
|
33
|
+
updated: "你的密码已被成功更改,你现在已经登录。"
|
34
|
+
updated_not_active: "你的密码已被成功更改。"
|
35
|
+
registrations:
|
36
|
+
destroyed: "再见!你的帐户已被成功取消。希望能再次见到你。"
|
37
|
+
signed_up: "欢迎!你已经成功注册。"
|
38
|
+
signed_up_but_inactive: "你已经成功注册。但是由于你的帐户未激活,你仍无法登录。"
|
39
|
+
signed_up_but_locked: "你已经成功注册。但是由于你的帐户被锁定,你仍无法登录。"
|
40
|
+
signed_up_but_unconfirmed: "我们已向你的邮箱发送了一封确认邮件。请单击邮件中的链接激活你的帐户。"
|
41
|
+
update_needs_confirmation: "你已经成功更新帐户,但我们需要验证你的电子邮件地址。请检查你的邮件并确认你的子邮件地址。"
|
42
|
+
updated: "你的帐户已被成功更新。"
|
43
|
+
sessions:
|
44
|
+
signed_in: "你已登录成功。"
|
45
|
+
signed_out: "再见。"
|
46
|
+
unlocks:
|
47
|
+
send_instructions: "在几分钟内你会收到一封如何解锁帐户的邮件。"
|
48
|
+
send_paranoid_instructions: "如果你的帐户存在,在几分钟内你会收到一封如何解锁帐户的邮件。"
|
49
|
+
unlocked: "你的帐户已被成功解锁,请重新登录。"
|
50
|
+
errors:
|
51
|
+
messages:
|
52
|
+
already_confirmed: "已确认,请尝试登录"
|
53
|
+
confirmation_period_expired: "需要在 %{period} 内确认,请重新申请"
|
54
|
+
expired: "已过期,请重新申请"
|
55
|
+
not_found: "未找到"
|
56
|
+
not_locked: "未被锁定"
|
57
|
+
not_saved:
|
58
|
+
one: "出现一个错误导致 %{resource} 不能被保存:"
|
59
|
+
other: "出现 %{count} 个错误导致 %{resource} 不能被保存:"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
zh-CN:
|
2
|
+
fae:
|
3
|
+
save_notice: '保存成功。'
|
4
|
+
save_error: '请检查你的表单错误。'
|
5
|
+
delete_notice: '记录被成功删除。'
|
6
|
+
delete_error: '和这条记录相关的对象使得它不能被删除。'
|
7
|
+
delete_confirmation: '你确定要永久删除这条记录?'
|
8
|
+
clone_confirmation: "一旦克隆,如果随后改变主意,你需要删除它。继续吗?"
|
9
|
+
unauthorized_error: '你未被授权访问这个页面。'
|
10
|
+
exceeded_upload_limit: "这个资源超过文件大小限制,试试另外一个?"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
zh-CN:
|
2
|
+
simple_form:
|
3
|
+
"yes": '是'
|
4
|
+
"no": '否'
|
5
|
+
required:
|
6
|
+
text: '必填'
|
7
|
+
mark: '*'
|
8
|
+
# You can uncomment the line below if you need to overwrite the whole required html.
|
9
|
+
# When using html, text and mark won't be used.
|
10
|
+
# html: '<abbr title="required">*</abbr>'
|
11
|
+
error_notification:
|
12
|
+
default_message: "请检查如下错误:"
|
13
|
+
# Labels and hints examples
|
14
|
+
# labels:
|
15
|
+
# defaults:
|
16
|
+
# password: 'Password'
|
17
|
+
# user:
|
18
|
+
# new:
|
19
|
+
# email: 'E-mail to sign in.'
|
20
|
+
# edit:
|
21
|
+
# email: 'E-mail.'
|
22
|
+
# hints:
|
23
|
+
# defaults:
|
24
|
+
# username: 'User name to sign in.'
|
25
|
+
# password: 'No special characters, please.'
|
26
|
+
|
data/lib/fae/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fae-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FINE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: jquery-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.1.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.1.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sass
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 3.4.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sass-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 5.0.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 5.0.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: uglifier
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,175 +81,175 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: acts_as_list
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.9.0
|
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: 0.9.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: browser
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.8.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.8.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: carrierwave
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.11.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.11.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: devise
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 3.4.1
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 3.4.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: jquery-ui-rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 4.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 4.2.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: judge
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 2.
|
159
|
+
version: 2.1.1
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 2.
|
166
|
+
version: 2.1.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name: judge
|
168
|
+
name: judge-simple_form
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 1.0.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 1.0.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: kaminari
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.
|
187
|
+
version: 1.1.1
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 1.
|
194
|
+
version: 1.1.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: remotipart
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 1.3.1
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 1.3.1
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: rmagick
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version:
|
215
|
+
version: 2.16.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 2.16.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: simple_form
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: 3.1.0
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 3.1.0
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
238
|
+
name: slim
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- - "
|
241
|
+
- - ">="
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0
|
243
|
+
version: '0'
|
244
244
|
type: :runtime
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- - "
|
248
|
+
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0
|
250
|
+
version: '0'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
252
|
+
name: appraisal
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - ">="
|
@@ -319,7 +319,7 @@ dependencies:
|
|
319
319
|
- !ruby/object:Gem::Version
|
320
320
|
version: '0'
|
321
321
|
- !ruby/object:Gem::Dependency
|
322
|
-
name:
|
322
|
+
name: thin
|
323
323
|
requirement: !ruby/object:Gem::Requirement
|
324
324
|
requirements:
|
325
325
|
- - ">="
|
@@ -611,8 +611,11 @@ files:
|
|
611
611
|
- config/initializers/simple_form.rb
|
612
612
|
- config/initializers/time_formats.rb
|
613
613
|
- config/locales/devise.en.yml
|
614
|
+
- config/locales/devise.zh-CN.yml
|
614
615
|
- config/locales/fae.en.yml
|
616
|
+
- config/locales/fae.zh-CN.yml
|
615
617
|
- config/locales/simple_form.en.yml
|
618
|
+
- config/locales/simple_form.zh-CN.yml
|
616
619
|
- config/routes.rb
|
617
620
|
- db/migrate/20140809222030_add_user_table.rb
|
618
621
|
- db/migrate/20140822224029_create_fae_roles.rb
|