avo 2.9.1.pre4 → 2.9.1.pre5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -3
- data/app/assets/builds/avo.js +1 -1
- data/app/assets/builds/avo.js.map +2 -2
- data/app/components/avo/actions_component.rb +2 -6
- data/app/components/avo/base_component.rb +0 -2
- data/app/components/avo/fields/common/single_file_viewer_component.rb +1 -1
- data/app/components/avo/index/ordering/button_component.rb +13 -3
- data/app/components/avo/views/resource_index_component.rb +2 -2
- data/app/controllers/avo/application_controller.rb +3 -24
- data/app/javascript/avo.js +1 -5
- data/app/views/avo/partials/_javascript.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/avo/app.rb +4 -8
- data/lib/avo/base_card.rb +7 -1
- data/lib/avo/dashboards/base_dashboard.rb +1 -1
- data/lib/avo/fields/has_base_field.rb +1 -3
- data/lib/avo/fields/has_one_field.rb +1 -4
- data/lib/avo/menu/builder.rb +6 -1
- data/lib/avo/version.rb +1 -1
- data/lib/avo.rb +0 -1
- data/lib/generators/avo/templates/locales/avo.fr.yml +115 -0
- data/public/avo-assets/avo.js +1 -1
- data/public/avo-assets/avo.js.map +2 -2
- metadata +2 -2
- data/lib/avo/services/uri_service.rb +0 -41
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.1.
|
4
|
+
version: 2.9.1.pre5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -1263,7 +1263,6 @@ files:
|
|
1263
1263
|
- lib/avo/menu/section.rb
|
1264
1264
|
- lib/avo/reloader.rb
|
1265
1265
|
- lib/avo/services/authorization_service.rb
|
1266
|
-
- lib/avo/services/uri_service.rb
|
1267
1266
|
- lib/avo/tools_manager.rb
|
1268
1267
|
- lib/avo/version.rb
|
1269
1268
|
- lib/generators/avo/action_generator.rb
|
@@ -1301,6 +1300,7 @@ files:
|
|
1301
1300
|
- lib/generators/avo/templates/filters/text_filter.tt
|
1302
1301
|
- lib/generators/avo/templates/initializer/avo.tt
|
1303
1302
|
- lib/generators/avo/templates/locales/avo.en.yml
|
1303
|
+
- lib/generators/avo/templates/locales/avo.fr.yml
|
1304
1304
|
- lib/generators/avo/templates/locales/avo.nb-NO.yml
|
1305
1305
|
- lib/generators/avo/templates/locales/avo.pt-BR.yml
|
1306
1306
|
- lib/generators/avo/templates/locales/avo.ro.yml
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module Avo
|
2
|
-
module Services
|
3
|
-
class URIService
|
4
|
-
class << self
|
5
|
-
def parse(path)
|
6
|
-
self.new path
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
attr_reader = :uri
|
11
|
-
|
12
|
-
def initialize(path = '')
|
13
|
-
@uri = Addressable::URI.parse(path)
|
14
|
-
end
|
15
|
-
|
16
|
-
def append_paths(*paths)
|
17
|
-
paths = Array.wrap(paths)
|
18
|
-
|
19
|
-
# abort 11.inspect
|
20
|
-
|
21
|
-
return self if paths.blank?
|
22
|
-
# abort 12.inspect
|
23
|
-
|
24
|
-
@uri.merge!(path: @uri.path.concat("/#{paths.join("/")}"))
|
25
|
-
self
|
26
|
-
end
|
27
|
-
alias_method :append_path, :append_paths
|
28
|
-
|
29
|
-
def append_query(*params)
|
30
|
-
params = Array.wrap(params)
|
31
|
-
|
32
|
-
@uri.merge!(query: [@uri.query, *params].join("&"))
|
33
|
-
self
|
34
|
-
end
|
35
|
-
|
36
|
-
def to_s
|
37
|
-
@uri.to_s
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|