Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Adds Materialize to your Volt app!
Add this line to your application's Gemfile:
gem 'volt-materialze'
Add the bootstrap component to your application's app/main/config/dependencies.rb
:
component 'materialze'
And then execute:
$ bundle
Now you can use Materializecss in your application's views. For more information on how to use it visit http://materializecss.com/
Certain elements (for example the tooltip) need to be initialised since they are added dynamically in Volt. Since Volt uses Opal, this will need to be translated. This can be done inside of your controller:
app/main/controllers/main_controller.rb
:
def index
# Add code for when the index view is loaded
Document.ready? do
if RUBY_PLATFORM == 'opal'
# run some JS code
`$('.tooltipped').tooltip({delay: 50});`
end
end
end
app/main/views/main/index.html
:
<a class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="I am tooltip">Hover me!</a>
This requires Volt -v '0.8.27.beta3' or higher.
0.0.3 - Fixes fonts and icon loading issue 0.0.1 - Add materialize alpha release v0.95.3
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that volt-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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.