![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
marionette-dialogregion-rails
Advanced tools
Custom Marionette region setup for dialogs/lightboxes, vendored for Rails projects using the asset pipeline.
Largely based on Brian Mann's Building Dialogs with Custom Regions screencast, with a few extra options to make the dialogs un-closeable and to work around issues opening consecutive dialogs with Colorbox.
Depends on Backbone, Marionette, and jQuery, since there are so many different solutions available to vendoring these assets, we don't provide one for you. The lightbox solution used, colorbox, is included as we depend on some unreleased bug fixes. This may change in the future.
Add the gem to your Gemfile
:
gem marionette-dialogregion-rails
And run bundle install
.
Require the JavaScripts in your application.js.coffee
:
#= require marionette-dialogregion-rails
And add the base CSS files in application.css.scss
:
//= require colorbox
Then, in your Marionette app, you can declare a region to be a dialog by extending Marionette.Region.Dialog
and providing a selector for the element you wish to use for your dialogs:
App.addRegions
dialogRegion: Marionette.Region.Dialog.extend el: "#dialog"
Now, when you show a view in that region, it will be displayed in a Colorbox lightbox:
App.dialogRegion.show view
Currently, there is only one option available, closable
. It defaults to true
, but if you make it false
, the dialog will not be closable by clicking on the background overlay or pressing the Escape key:
view = new MyView closable: true
App.dialogRegion.show view
Copyright 2014 Avalanche Technology Group Pty Ltd
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Unknown package
We found that marionette-dialogregion-rails 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.