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.
This is a gallery app and contenttype for Feincms. It allows for several gallery 'types', each with its own tempate, css and javascript files. It comes packed with several pretty types ready for use:
The CSS and Javascript files for the galleries are only loaded on demand using the form media class.
The admin frontend has thumbnail view for the gallery images and drag and drop functionality for image sorting.
At this time, there is no prebundled installation file to install via pip or easy_install. So get the source at: https://github.com/feinheit/feincms_gallery
gallery
to your Python path.gallery
to your INSTALLED_APPS
in your settings.py
url(r'^gallery/', include('gallery.urls')),
to your urls.py
In your application/models.py
create the content type::
from gallery.models import GalleryContent
Page.create_content_type(GalleryContent)
run python manage.py syncdb
add {{ feincms_page.content.media }}
(or media.js and media.css) to the <head>
of your template.
For each type, there is a gallery template, a JavaScript and CSS. They are in the folder templates/content/gallery, or static/content/gallery. For the types carousel, panel and product there is a link to the document page as a comment in the JS file.
To customize the gallery to your site, it's best to copy the CSS and JS in your own media folder and edit it there. The configurations are stored in separate files.
To be able to adjust fancybox.init(), the gallery.js file from the gallery/media folder must be copied to the project media folder.
It is possible to define a template fallback, if a gallery contains only one image. E.g. product.html has the fallback template image_product.html.
You can use standard types or define your own gallery types like this::
from gallery import specs
from gallery.models import GalleryContent
GALLERY_TYPES = [
specs.ClassicLightbox(), # standard type
specs.Type(
verbose_name=_('Fancy paginated gallery'),
paginated=True,
paginate_by=12,
orphans=4,
template_name='fancy_gallery.html',
media={'css' : {'all' :
('gallery/gallery.css',
'lib/fancybox/jquery.fancybox-1.3.1.css'),},
'js' :
('gallery/gallery.js',
'lib/fancybox/jquery.fancybox-1.3.1.pack.js')
}
)
]
Page.create_content_type(GalleryContent, regions=('main',),
types=GALLERY_TYPES)
When replacing an image file in the admin frontend, you have to save the page for the thumbnail to update itself.
FAQs
A gallery for FeinCMS
We found that feincms-gallery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
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.