trusty-cms 5.1.0 → 5.2.2
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/Gemfile +1 -0
- data/Gemfile.lock +68 -67
- data/app/assets/javascripts/admin/assets_admin.js +1 -2
- data/app/assets/javascripts/admin.js +3 -3
- data/app/assets/javascripts/ckeditor/config.js +17 -17
- data/app/helpers/application_helper.rb +0 -33
- data/app/models/standard_tags.rb +0 -40
- data/app/views/admin/configuration/show.html.haml +0 -1
- data/app/views/admin/users/_form.html.haml +0 -1
- data/config/locales/en_available_tags.yml +0 -10
- data/lib/generators/extension/templates/cucumber_paths.rb +0 -2
- data/lib/generators/extension_controller/extension_controller_generator.rb +0 -1
- data/lib/generators/extension_mailer/extension_mailer_generator.rb +0 -1
- data/lib/generators/extension_migration/extension_migration_generator.rb +0 -1
- data/lib/generators/extension_model/extension_model_generator.rb +0 -1
- data/lib/generators/instance/instance_generator.rb +0 -1
- data/lib/generators/language_extension/templates/test_helper.rb +0 -1
- data/lib/generators/trusty_cms/trusty_cms_generator.rb +0 -1
- data/lib/trusty_cms.rb +1 -1
- data/package.json +4 -0
- data/yarn.lock +46 -0
- metadata +35 -40
- data/app/assets/javascripts/admin/jquery.cookie.js +0 -117
- data/app/assets/javascripts/admin/jquery.fileupload.js +0 -1457
- data/app/assets/javascripts/admin/jquery.iframe-transport.js +0 -214
- data/app/assets/javascripts/admin/jquery.treetable.js +0 -629
- data/app/views/admin/users/_avatar.html.haml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0873cdea83c6d22b3d8fc20f35721d99a21de43f6bc6b7e19c4939ca8f7f8d4f'
|
|
4
|
+
data.tar.gz: 76e92c2d55993cf8a75d1cfd3af2e8e273b49a3b84c1c3020af6111a6de0a2e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ab046ad79cae4a2e785065295392e55d47e6365a4ca7889b993c034e9d61d6df9834e175fcb179f05964d1d898d33a285df75e268622ed54f72793e4129ca65
|
|
7
|
+
data.tar.gz: 31897515f17878210022247f17db5bd84b870cc5285c07b4ab750d4449b2cafeea541ca9a779a690a78a792f099f7ff3669c9caf0e4e6e5fda8d0f910e77d278
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
trusty-cms (5.
|
|
4
|
+
trusty-cms (5.2.2)
|
|
5
5
|
RedCloth (= 4.3.2)
|
|
6
6
|
activestorage-validator
|
|
7
7
|
acts_as_list (>= 0.9.5, < 1.1.0)
|
|
@@ -35,62 +35,62 @@ GEM
|
|
|
35
35
|
remote: https://rubygems.org/
|
|
36
36
|
specs:
|
|
37
37
|
RedCloth (4.3.2)
|
|
38
|
-
actioncable (6.1.
|
|
39
|
-
actionpack (= 6.1.
|
|
40
|
-
activesupport (= 6.1.
|
|
38
|
+
actioncable (6.1.6)
|
|
39
|
+
actionpack (= 6.1.6)
|
|
40
|
+
activesupport (= 6.1.6)
|
|
41
41
|
nio4r (~> 2.0)
|
|
42
42
|
websocket-driver (>= 0.6.1)
|
|
43
|
-
actionmailbox (6.1.
|
|
44
|
-
actionpack (= 6.1.
|
|
45
|
-
activejob (= 6.1.
|
|
46
|
-
activerecord (= 6.1.
|
|
47
|
-
activestorage (= 6.1.
|
|
48
|
-
activesupport (= 6.1.
|
|
43
|
+
actionmailbox (6.1.6)
|
|
44
|
+
actionpack (= 6.1.6)
|
|
45
|
+
activejob (= 6.1.6)
|
|
46
|
+
activerecord (= 6.1.6)
|
|
47
|
+
activestorage (= 6.1.6)
|
|
48
|
+
activesupport (= 6.1.6)
|
|
49
49
|
mail (>= 2.7.1)
|
|
50
|
-
actionmailer (6.1.
|
|
51
|
-
actionpack (= 6.1.
|
|
52
|
-
actionview (= 6.1.
|
|
53
|
-
activejob (= 6.1.
|
|
54
|
-
activesupport (= 6.1.
|
|
50
|
+
actionmailer (6.1.6)
|
|
51
|
+
actionpack (= 6.1.6)
|
|
52
|
+
actionview (= 6.1.6)
|
|
53
|
+
activejob (= 6.1.6)
|
|
54
|
+
activesupport (= 6.1.6)
|
|
55
55
|
mail (~> 2.5, >= 2.5.4)
|
|
56
56
|
rails-dom-testing (~> 2.0)
|
|
57
|
-
actionpack (6.1.
|
|
58
|
-
actionview (= 6.1.
|
|
59
|
-
activesupport (= 6.1.
|
|
57
|
+
actionpack (6.1.6)
|
|
58
|
+
actionview (= 6.1.6)
|
|
59
|
+
activesupport (= 6.1.6)
|
|
60
60
|
rack (~> 2.0, >= 2.0.9)
|
|
61
61
|
rack-test (>= 0.6.3)
|
|
62
62
|
rails-dom-testing (~> 2.0)
|
|
63
63
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
64
|
-
actiontext (6.1.
|
|
65
|
-
actionpack (= 6.1.
|
|
66
|
-
activerecord (= 6.1.
|
|
67
|
-
activestorage (= 6.1.
|
|
68
|
-
activesupport (= 6.1.
|
|
64
|
+
actiontext (6.1.6)
|
|
65
|
+
actionpack (= 6.1.6)
|
|
66
|
+
activerecord (= 6.1.6)
|
|
67
|
+
activestorage (= 6.1.6)
|
|
68
|
+
activesupport (= 6.1.6)
|
|
69
69
|
nokogiri (>= 1.8.5)
|
|
70
|
-
actionview (6.1.
|
|
71
|
-
activesupport (= 6.1.
|
|
70
|
+
actionview (6.1.6)
|
|
71
|
+
activesupport (= 6.1.6)
|
|
72
72
|
builder (~> 3.1)
|
|
73
73
|
erubi (~> 1.4)
|
|
74
74
|
rails-dom-testing (~> 2.0)
|
|
75
75
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
76
|
-
activejob (6.1.
|
|
77
|
-
activesupport (= 6.1.
|
|
76
|
+
activejob (6.1.6)
|
|
77
|
+
activesupport (= 6.1.6)
|
|
78
78
|
globalid (>= 0.3.6)
|
|
79
|
-
activemodel (6.1.
|
|
80
|
-
activesupport (= 6.1.
|
|
81
|
-
activerecord (6.1.
|
|
82
|
-
activemodel (= 6.1.
|
|
83
|
-
activesupport (= 6.1.
|
|
84
|
-
activestorage (6.1.
|
|
85
|
-
actionpack (= 6.1.
|
|
86
|
-
activejob (= 6.1.
|
|
87
|
-
activerecord (= 6.1.
|
|
88
|
-
activesupport (= 6.1.
|
|
89
|
-
marcel (~> 1.0
|
|
79
|
+
activemodel (6.1.6)
|
|
80
|
+
activesupport (= 6.1.6)
|
|
81
|
+
activerecord (6.1.6)
|
|
82
|
+
activemodel (= 6.1.6)
|
|
83
|
+
activesupport (= 6.1.6)
|
|
84
|
+
activestorage (6.1.6)
|
|
85
|
+
actionpack (= 6.1.6)
|
|
86
|
+
activejob (= 6.1.6)
|
|
87
|
+
activerecord (= 6.1.6)
|
|
88
|
+
activesupport (= 6.1.6)
|
|
89
|
+
marcel (~> 1.0)
|
|
90
90
|
mini_mime (>= 1.1.0)
|
|
91
91
|
activestorage-validator (0.1.5)
|
|
92
92
|
rails (>= 5.2.0)
|
|
93
|
-
activesupport (6.1.
|
|
93
|
+
activesupport (6.1.6)
|
|
94
94
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
95
95
|
i18n (>= 1.6, < 2)
|
|
96
96
|
minitest (>= 5.1)
|
|
@@ -102,7 +102,7 @@ GEM
|
|
|
102
102
|
activerecord (>= 3.0.0)
|
|
103
103
|
addressable (2.8.0)
|
|
104
104
|
public_suffix (>= 2.0.2, < 5.0)
|
|
105
|
-
bcrypt (3.1.
|
|
105
|
+
bcrypt (3.1.18)
|
|
106
106
|
builder (3.2.4)
|
|
107
107
|
byebug (11.1.3)
|
|
108
108
|
capybara (3.35.3)
|
|
@@ -176,7 +176,7 @@ GEM
|
|
|
176
176
|
image_processing (1.12.2)
|
|
177
177
|
mini_magick (>= 4.9.5, < 5)
|
|
178
178
|
ruby-vips (>= 2.0.17, < 3)
|
|
179
|
-
json (2.6.
|
|
179
|
+
json (2.6.2)
|
|
180
180
|
kraken-io (0.1.3)
|
|
181
181
|
activesupport
|
|
182
182
|
httparty
|
|
@@ -186,8 +186,7 @@ GEM
|
|
|
186
186
|
addressable (~> 2.7)
|
|
187
187
|
libv8-node (16.10.0.0-x86_64-darwin)
|
|
188
188
|
libv8-node (16.10.0.0-x86_64-linux)
|
|
189
|
-
|
|
190
|
-
loofah (2.15.0)
|
|
189
|
+
loofah (2.18.0)
|
|
191
190
|
crass (~> 1.0.2)
|
|
192
191
|
nokogiri (>= 1.5.9)
|
|
193
192
|
mail (2.7.1)
|
|
@@ -199,6 +198,7 @@ GEM
|
|
|
199
198
|
mime-types-data (3.2021.0225)
|
|
200
199
|
mini_magick (4.11.0)
|
|
201
200
|
mini_mime (1.1.2)
|
|
201
|
+
mini_portile2 (2.6.1)
|
|
202
202
|
mini_racer (0.6.2)
|
|
203
203
|
libv8-node (~> 16.10.0.0)
|
|
204
204
|
minitest (5.15.0)
|
|
@@ -206,9 +206,8 @@ GEM
|
|
|
206
206
|
multipart-post (2.1.1)
|
|
207
207
|
mysql2 (0.5.3)
|
|
208
208
|
nio4r (2.5.8)
|
|
209
|
-
nokogiri (1.
|
|
210
|
-
|
|
211
|
-
nokogiri (1.13.3-x86_64-linux)
|
|
209
|
+
nokogiri (1.12.5)
|
|
210
|
+
mini_portile2 (~> 2.6.1)
|
|
212
211
|
racc (~> 1.4)
|
|
213
212
|
orm_adapter (0.5.0)
|
|
214
213
|
poltergeist (1.18.1)
|
|
@@ -221,7 +220,7 @@ GEM
|
|
|
221
220
|
pry-byebug (3.9.0)
|
|
222
221
|
byebug (~> 11.0)
|
|
223
222
|
pry (~> 0.13.0)
|
|
224
|
-
psych (4.0.
|
|
223
|
+
psych (4.0.4)
|
|
225
224
|
stringio
|
|
226
225
|
public_suffix (4.0.6)
|
|
227
226
|
racc (1.6.0)
|
|
@@ -231,20 +230,20 @@ GEM
|
|
|
231
230
|
rack-test (1.1.0)
|
|
232
231
|
rack (>= 1.0, < 3)
|
|
233
232
|
radius (0.7.5)
|
|
234
|
-
rails (6.1.
|
|
235
|
-
actioncable (= 6.1.
|
|
236
|
-
actionmailbox (= 6.1.
|
|
237
|
-
actionmailer (= 6.1.
|
|
238
|
-
actionpack (= 6.1.
|
|
239
|
-
actiontext (= 6.1.
|
|
240
|
-
actionview (= 6.1.
|
|
241
|
-
activejob (= 6.1.
|
|
242
|
-
activemodel (= 6.1.
|
|
243
|
-
activerecord (= 6.1.
|
|
244
|
-
activestorage (= 6.1.
|
|
245
|
-
activesupport (= 6.1.
|
|
233
|
+
rails (6.1.6)
|
|
234
|
+
actioncable (= 6.1.6)
|
|
235
|
+
actionmailbox (= 6.1.6)
|
|
236
|
+
actionmailer (= 6.1.6)
|
|
237
|
+
actionpack (= 6.1.6)
|
|
238
|
+
actiontext (= 6.1.6)
|
|
239
|
+
actionview (= 6.1.6)
|
|
240
|
+
activejob (= 6.1.6)
|
|
241
|
+
activemodel (= 6.1.6)
|
|
242
|
+
activerecord (= 6.1.6)
|
|
243
|
+
activestorage (= 6.1.6)
|
|
244
|
+
activesupport (= 6.1.6)
|
|
246
245
|
bundler (>= 1.15.0)
|
|
247
|
-
railties (= 6.1.
|
|
246
|
+
railties (= 6.1.6)
|
|
248
247
|
sprockets-rails (>= 2.0.0)
|
|
249
248
|
rails-dom-testing (2.0.3)
|
|
250
249
|
activesupport (>= 4.2.0)
|
|
@@ -253,11 +252,11 @@ GEM
|
|
|
253
252
|
loofah (~> 2.3)
|
|
254
253
|
rails-observers (0.1.5)
|
|
255
254
|
activemodel (>= 4.0)
|
|
256
|
-
railties (6.1.
|
|
257
|
-
actionpack (= 6.1.
|
|
258
|
-
activesupport (= 6.1.
|
|
255
|
+
railties (6.1.6)
|
|
256
|
+
actionpack (= 6.1.6)
|
|
257
|
+
activesupport (= 6.1.6)
|
|
259
258
|
method_source
|
|
260
|
-
rake (>=
|
|
259
|
+
rake (>= 12.2)
|
|
261
260
|
thor (~> 1.0)
|
|
262
261
|
rake (13.0.6)
|
|
263
262
|
rdoc (6.4.0)
|
|
@@ -266,7 +265,7 @@ GEM
|
|
|
266
265
|
responders (3.0.1)
|
|
267
266
|
actionpack (>= 5.0)
|
|
268
267
|
railties (>= 5.0)
|
|
269
|
-
roadie (5.0.
|
|
268
|
+
roadie (5.0.1)
|
|
270
269
|
css_parser (~> 1.4)
|
|
271
270
|
nokogiri (~> 1.8)
|
|
272
271
|
roadie-rails (3.0.0)
|
|
@@ -280,7 +279,7 @@ GEM
|
|
|
280
279
|
rspec-mocks (3.11.1)
|
|
281
280
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
282
281
|
rspec-support (~> 3.11.0)
|
|
283
|
-
rspec-rails (5.1.
|
|
282
|
+
rspec-rails (5.1.2)
|
|
284
283
|
actionpack (>= 5.2)
|
|
285
284
|
activesupport (>= 5.2)
|
|
286
285
|
railties (>= 5.2)
|
|
@@ -318,7 +317,7 @@ GEM
|
|
|
318
317
|
activesupport (>= 5.2)
|
|
319
318
|
sprockets (>= 3.0.0)
|
|
320
319
|
stringex (2.8.5)
|
|
321
|
-
stringio (3.0.
|
|
320
|
+
stringio (3.0.2)
|
|
322
321
|
temple (0.8.2)
|
|
323
322
|
terrapin (0.6.0)
|
|
324
323
|
climate_control (>= 0.0.3, < 1.0)
|
|
@@ -344,6 +343,7 @@ GEM
|
|
|
344
343
|
PLATFORMS
|
|
345
344
|
x86_64-darwin-18
|
|
346
345
|
x86_64-darwin-20
|
|
346
|
+
x86_64-darwin-21
|
|
347
347
|
x86_64-linux
|
|
348
348
|
|
|
349
349
|
DEPENDENCIES
|
|
@@ -356,6 +356,7 @@ DEPENDENCIES
|
|
|
356
356
|
mysql2
|
|
357
357
|
poltergeist (~> 1.18.1)
|
|
358
358
|
pry-byebug
|
|
359
|
+
psych (= 4.0.3)
|
|
359
360
|
rails-observers
|
|
360
361
|
rspec-rails
|
|
361
362
|
simplecov
|
|
@@ -10,6 +10,5 @@
|
|
|
10
10
|
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
|
11
11
|
// GO AFTER THE REQUIRES BELOW.
|
|
12
12
|
//
|
|
13
|
-
//= require '
|
|
14
|
-
//= require 'admin/jquery.fileupload'
|
|
13
|
+
//= require 'blueimp-file-upload/js/jquery.fileupload.js'
|
|
15
14
|
//= require 'admin/assets'
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
//= require jquery/dist/jquery.js
|
|
14
14
|
//= require jquery-ujs/src/rails.js
|
|
15
15
|
//= require jquery-ui-bundle/jquery-ui
|
|
16
|
-
//= require
|
|
17
|
-
//= require '
|
|
18
|
-
//= require
|
|
16
|
+
//= require js-cookie/dist/js.cookie
|
|
17
|
+
//= require 'jquery-validation/dist/jquery.validate.min'
|
|
18
|
+
//= require jquery-treetable/jquery.treetable.js
|
|
19
19
|
//= require_tree './admin/validations'
|
|
20
20
|
//= require ckeditor/init
|
|
21
21
|
//= require 'admin/persist.min'
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
CKEDITOR.editorConfig = function(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
CKEDITOR.editorConfig = function (config) {
|
|
2
|
+
config.allowedContent = true;
|
|
3
|
+
config.removeFormatTags = "";
|
|
4
|
+
config.protectedSource.push(/<r:([\S]+).*<\/r:\1>/g);
|
|
5
|
+
config.protectedSource.push(/<r:[^>/]*\/>/g);
|
|
6
|
+
//let paste from word be available
|
|
7
|
+
// config.forcePasteAsPlainText = false;
|
|
8
|
+
// if you want to remove clipboard, you have to remove all of these:
|
|
9
|
+
// clipboard, pastetext, pastefromword
|
|
10
|
+
config.removePlugins = "save, newpage, preview, print, templates, forms, flash, smiley, language, pagebreak, iframe, bidi";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
var startupMode = Cookies.get('ckeditor.startupMode');
|
|
13
|
+
if (startupMode == 'source' || startupMode == 'wysiwyg') {
|
|
14
|
+
config.startupMode = startupMode;
|
|
15
|
+
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
this.on('mode', function () {
|
|
18
|
+
Cookies.set('ckeditor.startupMode', this.mode);
|
|
19
|
+
})
|
|
20
20
|
|
|
21
21
|
};
|
|
@@ -145,39 +145,6 @@ module ApplicationHelper
|
|
|
145
145
|
overrides
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
# Returns a Gravatar URL associated with the email parameter.
|
|
149
|
-
# See: http://douglasfshearer.com/blog/gravatar-for-ruby-and-ruby-on-rails
|
|
150
|
-
def gravatar_url(email, options = {})
|
|
151
|
-
# Default to highest rating. Rating can be one of G, PG, R X.
|
|
152
|
-
options[:rating] ||= 'G'
|
|
153
|
-
|
|
154
|
-
# Default size of the image.
|
|
155
|
-
options[:size] ||= '32px'
|
|
156
|
-
|
|
157
|
-
# Default image url to be used when no gravatar is found
|
|
158
|
-
# or when an image exceeds the rating parameter.
|
|
159
|
-
local_avatar_url = "/production/assets/admin/avatar_#{([options[:size].to_i] * 2).join('x')}.png"
|
|
160
|
-
default_avatar_url = "#{request.protocol}#{request.host_with_port}#{ActionController::Base.relative_url_root}#{local_avatar_url}"
|
|
161
|
-
options[:default] ||= default_avatar_url
|
|
162
|
-
|
|
163
|
-
if email.blank?
|
|
164
|
-
local_avatar_url
|
|
165
|
-
else
|
|
166
|
-
# Build the Gravatar url.
|
|
167
|
-
url = '//gravatar.com/avatar/'
|
|
168
|
-
url << "#{Digest::MD5.new.update(email)}?"
|
|
169
|
-
url << "rating=#{options[:rating]}" if options[:rating]
|
|
170
|
-
url << "&size=#{options[:size]}" if options[:size]
|
|
171
|
-
url << "&default=#{options[:default]}" if options[:default]
|
|
172
|
-
# Test the Gravatar url
|
|
173
|
-
require 'open-uri'
|
|
174
|
-
begin; open "http:#{url}", proxy: true
|
|
175
|
-
rescue StandardError; local_avatar_url
|
|
176
|
-
else; url
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
end
|
|
180
|
-
|
|
181
148
|
# returns the usual set of pagination links.
|
|
182
149
|
# options are passed through to will_paginate
|
|
183
150
|
# and a 'show all' depagination link is added if relevant.
|
data/app/models/standard_tags.rb
CHANGED
|
@@ -662,46 +662,6 @@ module StandardTags
|
|
|
662
662
|
end
|
|
663
663
|
end
|
|
664
664
|
|
|
665
|
-
desc %{
|
|
666
|
-
Renders the Gravatar of the author of the current page or the named user.
|
|
667
|
-
|
|
668
|
-
*Usage:*
|
|
669
|
-
|
|
670
|
-
<pre><code><r:gravatar /></code></pre>
|
|
671
|
-
|
|
672
|
-
or
|
|
673
|
-
|
|
674
|
-
<pre><code><r:gravatar [name="User Name"]
|
|
675
|
-
[rating="G | PG | R | X"]
|
|
676
|
-
[size="32px"] /></code></pre>
|
|
677
|
-
}
|
|
678
|
-
tag 'gravatar' do |tag|
|
|
679
|
-
page = tag.locals.page
|
|
680
|
-
name = (tag.attr['name'] || page.created_by.name)
|
|
681
|
-
rating = (tag.attr['rating'] || 'G')
|
|
682
|
-
size = (tag.attr['size'] || '32px')
|
|
683
|
-
user = User.find_by_name(name)
|
|
684
|
-
email = user ? user.email : nil
|
|
685
|
-
local_avatar_url = "/images/admin/avatar_#{([size.to_i] * 2).join('x')}.png"
|
|
686
|
-
default_avatar_url = "#{request.protocol}#{request.host_with_port}#{local_avatar_url}"
|
|
687
|
-
|
|
688
|
-
if email.blank?
|
|
689
|
-
local_avatar_url
|
|
690
|
-
else
|
|
691
|
-
url = '//gravatar.com/avatar/'
|
|
692
|
-
url << "#{Digest::MD5.new.update(email)}?"
|
|
693
|
-
url << "rating=#{rating}"
|
|
694
|
-
url << "&size=#{size.to_i}"
|
|
695
|
-
url << "&default=#{default_avatar_url}" unless request.host_with_port == 'testhost.tld'
|
|
696
|
-
# Test the Gravatar url
|
|
697
|
-
require 'open-uri'
|
|
698
|
-
begin; open "http:#{sanitize(url)}", proxy: true
|
|
699
|
-
rescue StandardError; local_avatar_url
|
|
700
|
-
else; url
|
|
701
|
-
end
|
|
702
|
-
end
|
|
703
|
-
end
|
|
704
|
-
|
|
705
665
|
desc %{
|
|
706
666
|
Renders the date based on the current page (by default when it was published or created).
|
|
707
667
|
The format attribute uses the same formating codes used by the Ruby @strftime@ function.
|
|
@@ -203,17 +203,7 @@ en:
|
|
|
203
203
|
*Usage:*
|
|
204
204
|
|
|
205
205
|
<pre><code><r:find path=\"value_to_find\">...</r:find></code></pre>"
|
|
206
|
-
gravatar: "Renders the Gravatar of the author of the current page or the named user.
|
|
207
206
|
|
|
208
|
-
*Usage:*
|
|
209
|
-
|
|
210
|
-
<pre><code><r:gravatar /></code></pre>
|
|
211
|
-
|
|
212
|
-
or
|
|
213
|
-
|
|
214
|
-
<pre><code><r:gravatar [name=\"User Name\"]
|
|
215
|
-
[rating=\"G | PG | R | X\"]
|
|
216
|
-
[size=\"32px\"] /></code></pre>"
|
|
217
207
|
hide: "Nothing inside a set of hide tags is rendered.
|
|
218
208
|
|
|
219
209
|
*Usage:*
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
module NavigationHelpers
|
|
2
|
-
|
|
3
2
|
# Extend the standard PathMatchers with your own paths
|
|
4
3
|
# to be used in your features.
|
|
5
4
|
#
|
|
@@ -16,7 +15,6 @@ module NavigationHelpers
|
|
|
16
15
|
PathMatchers.merge!({
|
|
17
16
|
# /<%= file_name %>/i => 'admin_<%= file_name %>_path'
|
|
18
17
|
})
|
|
19
|
-
|
|
20
18
|
end
|
|
21
19
|
|
|
22
20
|
World(NavigationHelpers)
|
data/lib/trusty_cms.rb
CHANGED
data/package.json
CHANGED
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@fortawesome/fontawesome-free": "^5.13.0",
|
|
11
|
+
"blueimp-file-upload": "^10.32.0",
|
|
11
12
|
"jquery": "^3.5.0",
|
|
13
|
+
"jquery-treetable": "^3.2.0-1",
|
|
12
14
|
"jquery-ui-bundle": "^1.12.1",
|
|
13
15
|
"jquery-ujs": "^1.2.2",
|
|
16
|
+
"jquery-validation": "^1.19.3",
|
|
17
|
+
"js-cookie": "^3.0.1",
|
|
14
18
|
"tablesaw": "^3.1.2"
|
|
15
19
|
},
|
|
16
20
|
"devDependencies": {
|
data/yarn.lock
CHANGED
|
@@ -323,6 +323,30 @@ balanced-match@^1.0.0:
|
|
|
323
323
|
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
|
|
324
324
|
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
|
|
325
325
|
|
|
326
|
+
blueimp-canvas-to-blob@3:
|
|
327
|
+
version "3.29.0"
|
|
328
|
+
resolved "https://registry.yarnpkg.com/blueimp-canvas-to-blob/-/blueimp-canvas-to-blob-3.29.0.tgz#d965f06cb1a67fdae207a2be56683f55ef531466"
|
|
329
|
+
integrity sha512-0pcSSGxC0QxT+yVkivxIqW0Y4VlO2XSDPofBAqoJ1qJxgH9eiUDLv50Rixij2cDuEfx4M6DpD9UGZpRhT5Q8qg==
|
|
330
|
+
|
|
331
|
+
blueimp-file-upload@^10.32.0:
|
|
332
|
+
version "10.32.0"
|
|
333
|
+
resolved "https://registry.yarnpkg.com/blueimp-file-upload/-/blueimp-file-upload-10.32.0.tgz#897c91f813ccf4b6cd14db2da3da237ce433e04e"
|
|
334
|
+
integrity sha512-3WMJw5Cbfz94Adl1OeyH+rRpGwHiNHzja+CR6aRWPoAtwrUwvP5gXKo0XdX+sdPE+iCU63Xmba88hoHQmzY8RQ==
|
|
335
|
+
optionalDependencies:
|
|
336
|
+
blueimp-canvas-to-blob "3"
|
|
337
|
+
blueimp-load-image "5"
|
|
338
|
+
blueimp-tmpl "3"
|
|
339
|
+
|
|
340
|
+
blueimp-load-image@5:
|
|
341
|
+
version "5.16.0"
|
|
342
|
+
resolved "https://registry.yarnpkg.com/blueimp-load-image/-/blueimp-load-image-5.16.0.tgz#16b763f57e6725f8865517bca8eb7c3dc7d41e09"
|
|
343
|
+
integrity sha512-3DUSVdOtlfNRk7moRZuTwDmA3NnG8KIJuLcq3c0J7/BIr6X3Vb/EpX3kUH1joxUhmoVF4uCpDfz7wHkz8pQajA==
|
|
344
|
+
|
|
345
|
+
blueimp-tmpl@3:
|
|
346
|
+
version "3.20.0"
|
|
347
|
+
resolved "https://registry.yarnpkg.com/blueimp-tmpl/-/blueimp-tmpl-3.20.0.tgz#bed897db362c70d3740e0ad1020ce84bfa15ceaa"
|
|
348
|
+
integrity sha512-g6ln9L+VX8ZA4WA8mgKMethYH+5teroJ2uOkCvcthy9Y9d9LrQ42OAMn+r3ECKu9CB+xe9GOChlIUJBSxwkI6g==
|
|
349
|
+
|
|
326
350
|
brace-expansion@^1.1.7:
|
|
327
351
|
version "1.1.11"
|
|
328
352
|
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
|
|
@@ -931,6 +955,13 @@ javascript-natural-sort@^0.7.1:
|
|
|
931
955
|
resolved "https://registry.yarnpkg.com/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz#f9e2303d4507f6d74355a73664d1440fb5a0ef59"
|
|
932
956
|
integrity sha1-+eIwPUUH9tdDVac2ZNFED7Wg71k=
|
|
933
957
|
|
|
958
|
+
jquery-treetable@^3.2.0-1:
|
|
959
|
+
version "3.2.0-1"
|
|
960
|
+
resolved "https://registry.yarnpkg.com/jquery-treetable/-/jquery-treetable-3.2.0-1.tgz#2a844f59396f764f71747a5087ee555d360aaed7"
|
|
961
|
+
integrity sha1-KoRPWTlvdk9xdHpQh+5VXTYKrtc=
|
|
962
|
+
dependencies:
|
|
963
|
+
jquery ">=1.6"
|
|
964
|
+
|
|
934
965
|
jquery-ui-bundle@^1.12.1:
|
|
935
966
|
version "1.12.1"
|
|
936
967
|
resolved "https://registry.yarnpkg.com/jquery-ui-bundle/-/jquery-ui-bundle-1.12.1.tgz#d6be2e4c377494e2378b1cae2920a91d1182d8c4"
|
|
@@ -943,11 +974,26 @@ jquery-ujs@^1.2.2:
|
|
|
943
974
|
dependencies:
|
|
944
975
|
jquery ">=1.8.0"
|
|
945
976
|
|
|
977
|
+
jquery-validation@^1.19.3:
|
|
978
|
+
version "1.19.3"
|
|
979
|
+
resolved "https://registry.yarnpkg.com/jquery-validation/-/jquery-validation-1.19.3.tgz#50b350eba8b02bcfd119ba15f199487b7eb64086"
|
|
980
|
+
integrity sha512-iXxCS5W7STthSTMFX/NDZfWHBLbJ1behVK3eAgHXAV8/0vRa9M4tiqHvJMr39VGWHMGdlkhrtrkBuaL2UlE8yw==
|
|
981
|
+
|
|
982
|
+
jquery@>=1.6:
|
|
983
|
+
version "3.6.0"
|
|
984
|
+
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.6.0.tgz#c72a09f15c1bdce142f49dbf1170bdf8adac2470"
|
|
985
|
+
integrity sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==
|
|
986
|
+
|
|
946
987
|
jquery@>=1.8.0, jquery@^3.5.0:
|
|
947
988
|
version "3.5.0"
|
|
948
989
|
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.0.tgz#9980b97d9e4194611c36530e7dc46a58d7340fc9"
|
|
949
990
|
integrity sha512-Xb7SVYMvygPxbFMpTFQiHh1J7HClEaThguL15N/Gg37Lri/qKyhRGZYzHRyLH8Stq3Aow0LsHO2O2ci86fCrNQ==
|
|
950
991
|
|
|
992
|
+
js-cookie@^3.0.1:
|
|
993
|
+
version "3.0.1"
|
|
994
|
+
resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-3.0.1.tgz#9e39b4c6c2f56563708d7d31f6f5f21873a92414"
|
|
995
|
+
integrity sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==
|
|
996
|
+
|
|
951
997
|
js-tokens@^4.0.0:
|
|
952
998
|
version "4.0.0"
|
|
953
999
|
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
|