nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

3
node_modules/hash.js/.travis.yml generated vendored
View File

@@ -1,8 +1,9 @@
sudo: false
language: node_js
node_js:
- "4"
- "6"
- "8"
- "10"
- "stable"
branches:
only:

View File

@@ -5,6 +5,16 @@ var inherits = require('inherits');
exports.inherits = inherits;
function isSurrogatePair(msg, i) {
if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {
return false;
}
if (i < 0 || i + 1 >= msg.length) {
return false;
}
return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;
}
function toArray(msg, enc) {
if (Array.isArray(msg))
return msg.slice();
@@ -13,14 +23,29 @@ function toArray(msg, enc) {
var res = [];
if (typeof msg === 'string') {
if (!enc) {
// Inspired by stringToUtf8ByteArray() in closure-library by Google
// https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143
// Apache License 2.0
// https://github.com/google/closure-library/blob/master/LICENSE
var p = 0;
for (var i = 0; i < msg.length; i++) {
var c = msg.charCodeAt(i);
var hi = c >> 8;
var lo = c & 0xff;
if (hi)
res.push(hi, lo);
else
res.push(lo);
if (c < 128) {
res[p++] = c;
} else if (c < 2048) {
res[p++] = (c >> 6) | 192;
res[p++] = (c & 63) | 128;
} else if (isSurrogatePair(msg, i)) {
c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);
res[p++] = (c >> 18) | 240;
res[p++] = ((c >> 12) & 63) | 128;
res[p++] = ((c >> 6) & 63) | 128;
res[p++] = (c & 63) | 128;
} else {
res[p++] = (c >> 12) | 224;
res[p++] = ((c >> 6) & 63) | 128;
res[p++] = (c & 63) | 128;
}
}
} else if (enc === 'hex') {
msg = msg.replace(/[^a-z0-9]+/ig, '');

10
node_modules/hash.js/package.json generated vendored
View File

@@ -1,8 +1,8 @@
{
"_from": "hash.js@^1.0.0",
"_id": "hash.js@1.1.5",
"_id": "hash.js@1.1.7",
"_inBundle": false,
"_integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==",
"_integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==",
"_location": "/hash.js",
"_phantomChildren": {},
"_requested": {
@@ -19,8 +19,8 @@
"/elliptic",
"/hmac-drbg"
],
"_resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz",
"_shasum": "e38ab4b85dfb1e0c40fe9265c0e9b54854c23812",
"_resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz",
"_shasum": "0babca538e8d4ee4a0f8988d68866537a003cf42",
"_spec": "hash.js@^1.0.0",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\elliptic",
"author": {
@@ -60,5 +60,5 @@
"test": "mocha --reporter=spec test/*-test.js && npm run lint"
},
"typings": "lib/hash.d.ts",
"version": "1.1.5"
"version": "1.1.7"
}

View File

@@ -2,6 +2,7 @@
/* global describe it */
var assert = require('assert');
var crypto = require('crypto');
var hash = require('../');
describe('Hash', function() {
@@ -121,4 +122,19 @@ describe('Hash', function() {
]
]);
});
it('handles utf8 in strings just like crypto', function() {
const algorithm = 'sha256';
test(hash[algorithm], [
'hello', // one byte per character
'привет', // two bytes per character
'您好', // three bytes per character
'👋', // four bytes per character
'hello привет 您好 👋!!!' // mixed character lengths
].map(str => [str, crypto
.createHash(algorithm)
.update(str)
.digest('hex')]));
});
});