
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.