Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Bring in zxcvbn from vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrwM committed Jun 11, 2020
1 parent c3712eb commit 0e8f562
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
11 changes: 10 additions & 1 deletion app/views/examples/objects/live_active_mic/_markup.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
<%= inline_svg_tag "svg/active-microphone.svg" %>
<svg class="sage-live-active-mic" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<mask id="active-area" maskUnits="userSpaceOnUse" x="6" y="1" width="8" height="11">
<rect x="6" y="1" width="8" height="11" rx="3" fill="#fff"/>
</mask>
<g mask="url(#active-area)">
<path class="sage-live-active-mic__background" d="M6 1h8v11H6z"/>
<path class="sage-live-active-mic__volume" d="M6 1h8v11H6z"/>
</g>
<path class="sage-live-active-mic__icon" fill-rule="evenodd" clip-rule="evenodd" d="M6.665 5c0-1.873 1.46-3.333 3.333-3.333 1.873 0 3.334 1.46 3.334 3.333v3.333c0 1.873-1.46 3.334-3.334 3.334-1.873 0-3.333-1.46-3.333-3.334V5zm3.333-5a4.96 4.96 0 00-5 5v3.333c0 2.794 2.207 5 5 5 2.794 0 5-2.206 5-5V5c0-2.794-2.206-5-5-5zM3.332 8.333a.833.833 0 00-1.667 0c0 4.346 3.27 7.88 7.5 8.293v1.707H5.832a.833.833 0 000 1.667h8.333a.833.833 0 000-1.667h-3.333v-1.707a8.299 8.299 0 007.5-8.293.833.833 0 00-1.667 0A6.635 6.635 0 019.998 15a6.635 6.635 0 01-6.666-6.667z"/>
</svg>
2 changes: 0 additions & 2 deletions lib/sage-frontend/javascript/system/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//= require lib/zxcvbn

require('../define')
require('./util')

Expand Down
1 change: 1 addition & 0 deletions lib/sage-frontend/javascript/system/inputhelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Sage.inputhelper = (function() {
// ==================================================
// Variables
// ==================================================
var zxcvbn = require('zxcvbn');
var spcValues = /(?=.*[~`!@#$%^&*|(){}/=:;.,<>+-])/g;
var numValues = /(?=[0-9])/g;
var minLengthPW = 8;
Expand Down

0 comments on commit 0e8f562

Please sign in to comment.