Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
simple-navigation-materialize
Advanced tools
This gem adds a renderer for Simple Navigation to output markup compatible with materialize.
For Rails >= 3, simply add this gem to your Gemfile
:
gem 'simple-navigation-materialize'
and run
bundle install
Follow the configuration instructions on the Simple Navigation wiki for initial configuration.
To use the Materialize renderer, specify it in your view:
render_navigation :renderer => :materialize
See below for a more complete example.
In addition you may specify an :icon
attribute on your navigation items, either as an array
or string, containing materialize icon names, to add an icon to the item.
If you wish to use dropdowns in your navbar, don't forget to set expand_all: true
on your render_navigation
.
To create a navigation menu, you might do something like this:
SimpleNavigation::Configuration.run do |navigation|
navigation.items do |primary|
primary.item :music, 'Music', musics_path
primary.item :dvds, 'Dvds', dvds_path, :split => true do |dvds|
dvds.item :action, 'Action', dvds_action_path
dvds.item :drama, 'Drama', dvds_drama_path
end
primary.item :books, 'Books', :icon => 'book' do |books|
books.item :fiction, 'Fiction', books_fiction_path
books.item :history, 'History', books_history_path
end
end
end
FAQs
Unknown package
We found that simple-navigation-materialize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.