HELLO v3!!!
This commit is contained in:
10
app/views/json/enumeration/config_backups.erb
Normal file
10
app/views/json/enumeration/config_backups.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
"config_backups": {
|
||||
<% unless @config_backups.empty? -%>
|
||||
<% last_index = @config_backups.size - 1 -%>
|
||||
<% @config_backups.each_with_index do |config_backup, index| -%>
|
||||
<%= config_backup.url.to_json %>: {
|
||||
<%= render('@finding', item: config_backup) -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
10
app/views/json/enumeration/db_exports.erb
Normal file
10
app/views/json/enumeration/db_exports.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
"db_exports": {
|
||||
<% unless @db_exports.empty? -%>
|
||||
<% last_index = @db_exports.size - 1 -%>
|
||||
<% @db_exports.each_with_index do |db_export, index| -%>
|
||||
<%= db_export.url.to_json %>: {
|
||||
<%= render('@finding', item: db_export) -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
10
app/views/json/enumeration/medias.erb
Normal file
10
app/views/json/enumeration/medias.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
"medias": {
|
||||
<% unless @medias.empty? -%>
|
||||
<% last_index = @medias.size - 1 -%>
|
||||
<% @medias.each_with_index do |media, index| -%>
|
||||
<%= media.url.to_json %>: {
|
||||
<%= render('@finding', item: media) -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
20
app/views/json/enumeration/plugins.erb
Normal file
20
app/views/json/enumeration/plugins.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
"plugins": {
|
||||
<% unless @plugins.empty? -%>
|
||||
<% last_index = @plugins.size - 1 -%>
|
||||
<% @plugins.each_with_index do |plugin, index| -%>
|
||||
<%= plugin.slug.to_json %>: {
|
||||
<%= render('@wp_item', wp_item: plugin) %>,
|
||||
<%= render('@finding', item: plugin) -%>,
|
||||
<% if plugin.version -%>
|
||||
"version": {
|
||||
"number": <%= plugin.version.number.to_json %>,
|
||||
"confidence": <%= plugin.version.confidence.to_json %>,
|
||||
<%= render('@finding', item: plugin.version) -%>
|
||||
}
|
||||
<% else -%>
|
||||
"version": null
|
||||
<% end -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
10
app/views/json/enumeration/themes.erb
Normal file
10
app/views/json/enumeration/themes.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
"themes": {
|
||||
<% unless @themes.empty? -%>
|
||||
<% last_index = @themes.size - 1 -%>
|
||||
<% @themes.each_with_index do |theme, index| -%>
|
||||
<%= theme.slug.to_json %>: {
|
||||
<%= render('@theme', theme: theme) -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
19
app/views/json/enumeration/timthumbs.erb
Normal file
19
app/views/json/enumeration/timthumbs.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
"timthumbs": {
|
||||
<% unless @timthumbs.empty? -%>
|
||||
<% last_index = @timthumbs.size - 1 -%>
|
||||
<% @timthumbs.each_with_index do |timthumb, index| -%>
|
||||
<%= timthumb.url.to_json %>: {
|
||||
<%= render('@finding', item: timthumb) -%>,
|
||||
<% if timthumb.version -%>
|
||||
"version": {
|
||||
"number": <%= timthumb.version.number.to_json %>,
|
||||
"confidence": <%= timthumb.version.confidence.to_json %>,
|
||||
<%= render('@finding', item: timthumb.version) -%>
|
||||
}
|
||||
<% else -%>
|
||||
"version": null
|
||||
<% end -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
11
app/views/json/enumeration/users.erb
Normal file
11
app/views/json/enumeration/users.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
"users": {
|
||||
<% unless @users.empty? -%>
|
||||
<% last_index = @users.size - 1 -%>
|
||||
<% @users.each_with_index do |user, index| -%>
|
||||
<%= user.username.to_json %>: {
|
||||
"id": <%= user.id.to_json %>,
|
||||
<%= render('@finding', item: user) -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
Reference in New Issue
Block a user