
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
rails_admin_tree_browser
Advanced tools
A simple gem to work with rails_admin that allow you to choose element in a tree.
gem "rails_admin_tree_browser"
Then, add in your rails admin model initializer
config/initializers/rails_admin/modelName.rb
RailsAdmin.config do |config|
config.model MyAwesomeModel do
edit do
field :db_path_field, :tree_browser do
tree_root_url 'https://url_to_api_return_json.com'
end
end
end
end
tree_root_url
- The root url from where we show the treetree_download_url
- the download url from where we download the element, need to be download_link to true (Optional)download_link
- true/false Show icon with link to download (Optional)button_label
- Overwrite the label name (Optional)node_type_name
- overwrite de node type name, default: node (Optional)element_type_name
- overwrite de element type name, default: element (Optional)example:
RailsAdmin.config do |config|
config.model MyAwesomeModel do
edit do
field :path, :tree_browser do
tree_root_url 'https://url_to_api_return_json.com'
tree_download_url
button_label 'Choose a file please'
download_link true
node_type_name 'dir'
element_type_name 'file'
end
end
end
end
example for https://url_to_api_return_json.com/node
[{
name: "element",
path: "node/element",
type: "element"
},
{
name: "sub_node",
path: "node/sub_node",
type: "node"
}]
FAQs
Unknown package
We found that rails_admin_tree_browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.