
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
wagtail-humanitarian-icons
Advanced tools
Ocha Humanitarian Icons, for use in Wagtail projects, with an icon chooser widget.
This Wagtail package brings Ocha Humanitarian Icons to Wagtail Admin.
NOTE
: The recent versions of Wagtail supports uploading SVGs directly to the images section of the CMS interface. If
you just need to upload SVG images and use them on you frontend, consider using that. This package aims to provide a way
to select and use predefined humanitarian icons from OCHA.
pip install wagtail-humanitarian-icons
Add wagtailhumanitarianicons
to your installed apps
INSTALLED_APPS = [
...
"wagtailhumanitarianicons",
...
]
This package uses the Wagtail register_icons
hook to register all the Ocha Humanitarian svg icons. For more details on
how this works, please look at the Wagtail Docs and
the wagtail_hooks.py
file of this package
You can find a list of all the icons in the file wagtailhumanitarianicons/icons.json
. You can refer any icon by the
name, without the .svg
extension.
The best way to visually choose an icon is to use the package wagtail-icon-chooser
as below:
wagtail-icon-chooser
packagepip install wagtal-icon-chooser
wagtailiconchooser
to your installed apps INSTALLED_APPS = [
...
"wagtailhumanitarianicons",
"wagtailiconchooser",
...
]
Then you can use the widgets provided by wagtal-icon-chooser
. Refer
the package docs for specific details on how to use the widgets, and
how to show selected icons on your frontend templates.
Have a look on the sandbox/home/models.py
for a complete example, and sandbox/home/templates
for an example on
rendering on the frontend.
The code used to prepare the OCHA icons can be found at wagtailhumanitarianicons/utils.py
FAQs
Ocha Humanitarian Icons, for use in Wagtail projects, with an icon chooser widget.
We found that wagtail-humanitarian-icons demonstrated a healthy version release cadence and project activity because the last version was released less than 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.