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

View File

@@ -2,6 +2,89 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="0.4.7"></a>
## [0.4.7](https://github.com/webpack-contrib/schema-utils/compare/v0.4.6...v0.4.7) (2018-08-07)
### Bug Fixes
* **src:** `node >= v4.0.0` support ([#32](https://github.com/webpack-contrib/schema-utils/issues/32)) ([cb13dd4](https://github.com/webpack-contrib/schema-utils/commit/cb13dd4))
<a name="0.4.6"></a>
## [0.4.6](https://github.com/webpack-contrib/schema-utils/compare/v0.4.5...v0.4.6) (2018-08-06)
### Bug Fixes
* **package:** remove lockfile ([#28](https://github.com/webpack-contrib/schema-utils/issues/28)) ([69f1a81](https://github.com/webpack-contrib/schema-utils/commit/69f1a81))
* **package:** remove unnecessary `webpack` dependency ([#26](https://github.com/webpack-contrib/schema-utils/issues/26)) ([532eaa5](https://github.com/webpack-contrib/schema-utils/commit/532eaa5))
<a name="0.4.5"></a>
## [0.4.5](https://github.com/webpack-contrib/schema-utils/compare/v0.4.4...v0.4.5) (2018-02-13)
### Bug Fixes
* **CHANGELOG:** update broken links ([4483b9f](https://github.com/webpack-contrib/schema-utils/commit/4483b9f))
* **package:** update broken links ([f2494ba](https://github.com/webpack-contrib/schema-utils/commit/f2494ba))
<a name="0.4.4"></a>
## [0.4.4](https://github.com/webpack-contrib/schema-utils/compare/v0.4.3...v0.4.4) (2018-02-13)
### Bug Fixes
* **package:** update `dependencies` ([#22](https://github.com/webpack-contrib/schema-utils/issues/22)) ([3aecac6](https://github.com/webpack-contrib/schema-utils/commit/3aecac6))
<a name="0.4.3"></a>
## [0.4.3](https://github.com/webpack-contrib/schema-utils/compare/v0.4.2...v0.4.3) (2017-12-14)
### Bug Fixes
* **validateOptions:** throw `err` instead of `process.exit(1)` ([#17](https://github.com/webpack-contrib/schema-utils/issues/17)) ([c595eda](https://github.com/webpack-contrib/schema-utils/commit/c595eda))
* **ValidationError:** never return `this` in the ctor ([#16](https://github.com/webpack-contrib/schema-utils/issues/16)) ([c723791](https://github.com/webpack-contrib/schema-utils/commit/c723791))
<a name="0.4.2"></a>
## [0.4.2](https://github.com/webpack-contrib/schema-utils/compare/v0.4.1...v0.4.2) (2017-11-09)
### Bug Fixes
* **validateOptions:** catch `ValidationError` and handle it internally ([#15](https://github.com/webpack-contrib/schema-utils/issues/15)) ([9c5ef5e](https://github.com/webpack-contrib/schema-utils/commit/9c5ef5e))
<a name="0.4.1"></a>
## [0.4.1](https://github.com/webpack-contrib/schema-utils/compare/v0.4.0...v0.4.1) (2017-11-03)
### Bug Fixes
* **ValidationError:** use `Error.captureStackTrace` for `err.stack` handling ([#14](https://github.com/webpack-contrib/schema-utils/issues/14)) ([a6fb974](https://github.com/webpack-contrib/schema-utils/commit/a6fb974))
<a name="0.4.0"></a>
# [0.4.0](https://github.com/webpack-contrib/schema-utils/compare/v0.3.0...v0.4.0) (2017-10-28)
### Features
* add support for `typeof`, `instanceof` (`{Function\|RegExp}`) ([#10](https://github.com/webpack-contrib/schema-utils/issues/10)) ([9f01816](https://github.com/webpack-contrib/schema-utils/commit/9f01816))
<a name="0.3.0"></a>
# [0.3.0](https://github.com/webpack-contrib/schema-utils/compare/v0.2.1...v0.3.0) (2017-04-29)

99
node_modules/schema-utils/README.md generated vendored
View File

@@ -7,12 +7,11 @@
<div align="center">
<a href="http://json-schema.org">
<!-- src="https://webpack-contrib.github.io/schema-utils/logo.png" -->
<img width="180" height="180"
src="https://raw.githubusercontent.com/json-schema-org/json-schema-org.github.io/master/img/logo.png">
<img width="160" height="160"
src="https://raw.githubusercontent.com/webpack-contrib/schema-utils/master/docs/logo.png">
</a>
<a href="https://github.com/webpack/webpack">
<img width="200" height="200" hspace="10"
<img width="200" height="200"
src="https://webpack.js.org/assets/icon-square-big.svg">
</a>
<h1>Schema Utils</h1>
@@ -21,74 +20,96 @@
<h2 align="center">Install</h2>
```bash
npm install --save schema-utils
npm i schema-utils
```
<h2 align="center">Usage</h2>
### `validateOptions`
**schema.json**
```js
{
"type": "object",
"properties": {
// Options...
},
"additionalProperties": false
}
```
```js
import schema from 'path/to/schema.json'
import validateOptions from 'schema-utils'
validateOptions('path/to/schema.json', options, 'Loader/Plugin Name')
validateOptions(schema, options, 'Loader/Plugin Name')
```
<h2 align="center">Examples</h2>
### Loader
**schema.json**
```json
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"test": {
"anyOf": [
{ "type": "array" },
{ "type": "string" },
{ "instanceof": "RegExp" }
]
},
"transform": {
"instanceof": "Function"
},
"sourceMap": {
"type": "boolean"
}
},
"additionalProperties": false
}
```
### `Loader`
```js
import { getOptions } from 'loader-utils'
import validateOptions from 'schema-utils'
import schema from 'path/to/schema.json'
function loader (src, map) {
const options = getOptions(this) || {}
validateOptions('path/to/schema.json', options, 'Loader Name')
validateOptions(schema, options, 'Loader Name')
// Code...
}
```
### Plugin
### `Plugin`
```js
import Tapable from 'tapable'
import validateOptions from 'schema-utils'
class Plugin extends Tapable {
import schema from 'path/to/schema.json'
class Plugin {
constructor (options) {
validateOptions('path/to/schema.json', options, 'Plugin Name')
validateOptions(schema, options, 'Plugin Name')
this.options = options
}
apply (compiler) {
// Code...
}
}
```
<h2 align="center">Maintainers</h2>
<table>
<tbody>
<tr>
<td align="center">
<img width="150" height="150"
src="https://github.com/bebraw.png?v=3&s=150">
</br>
<a href="https://github.com/bebraw">Juho Vepsäläinen</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://github.com/d3viant0ne.png?v=3&s=150">
</br>
<a href="https://github.com/d3viant0ne">Joshua Wiens</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://github.com/michael-ciniawsky.png?v=3&s=150">
</br>
<a href="https://github.com/michael-ciniawsky">Michael Ciniawsky</a>
</td>
</tr>
<tbody>
</table>
[npm]: https://img.shields.io/npm/v/schema-utils.svg
[npm-url]: https://npmjs.com/package/schema-utils

View File

@@ -1,38 +0,0 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var ValidationError = function (_Error) {
_inherits(ValidationError, _Error);
function ValidationError(err, name) {
var _ret;
_classCallCheck(this, ValidationError);
var _this = _possibleConstructorReturn(this, (ValidationError.__proto__ || Object.getPrototypeOf(ValidationError)).call(this, err));
_this.err = err;
_this.stack = false;
_this.message = 'Validation Error\n\n' + String(name || '') + ' Invalid Options\n\n';
err.forEach(function (msg) {
_this.message += 'options' + String(msg.dataPath) + ' ' + String(msg.message) + '\n';
});
return _ret = _this, _possibleConstructorReturn(_this, _ret);
}
return ValidationError;
}(Error);
exports.default = ValidationError;

View File

@@ -1,3 +0,0 @@
'use strict';
module.exports = require('./index').default;

View File

@@ -1,13 +0,0 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _validateOptions = require('./validateOptions');
var _validateOptions2 = _interopRequireDefault(_validateOptions);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _validateOptions2.default;

View File

@@ -1,46 +0,0 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _fs = require('fs');
var _fs2 = _interopRequireDefault(_fs);
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _ajv = require('ajv');
var _ajv2 = _interopRequireDefault(_ajv);
var _ValidationError = require('./ValidationError');
var _ValidationError2 = _interopRequireDefault(_ValidationError);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// eslint-disable-line
var validateOptions = function validateOptions(schema, options, name) {
var ajv = new _ajv2.default({
useDefaults: true,
allErrors: true,
errorDataPath: 'property'
});
if (typeof schema === 'string') {
schema = _fs2.default.readFileSync(_path2.default.resolve(schema), 'utf8'); // eslint-disable-line
schema = JSON.parse(schema); // eslint-disable-line
}
if (!ajv.validate(schema, options)) {
throw new _ValidationError2.default(ajv.errors, name);
}
return true;
};
exports.default = validateOptions;

View File

@@ -1,122 +1,73 @@
{
"_from": "schema-utils@^0.3.0",
"_id": "schema-utils@0.3.0",
"_from": "schema-utils@^0.4.5",
"_id": "schema-utils@0.4.7",
"_inBundle": false,
"_integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=",
"_integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==",
"_location": "/schema-utils",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "schema-utils@^0.3.0",
"raw": "schema-utils@^0.4.5",
"name": "schema-utils",
"escapedName": "schema-utils",
"rawSpec": "^0.3.0",
"rawSpec": "^0.4.5",
"saveSpec": null,
"fetchSpec": "^0.3.0"
"fetchSpec": "^0.4.5"
},
"_requiredBy": [
"/extract-text-webpack-plugin",
"/style-loader"
"/extract-text-webpack-plugin"
],
"_resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz",
"_shasum": "f5877222ce3e931edae039f17eb3716e7137f8cf",
"_spec": "schema-utils@^0.3.0",
"_resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz",
"_shasum": "ba74f597d2be2ea880131746ee17d0a093c68187",
"_spec": "schema-utils@^0.4.5",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\extract-text-webpack-plugin",
"author": {
"name": "Webpack Contrib",
"name": "webpack Contrib",
"url": "https://github.com/webpack-contrib"
},
"bugs": {
"url": "https://github.com/webpack-contrib/schema-utils/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Juho Vepsäläinen",
"email": "@bebraw"
},
{
"name": "Joshua Wiens",
"email": "@d3viant0ne"
},
{
"name": "Michael Ciniawsky",
"email": "@michael-ciniawsky"
}
],
"dependencies": {
"ajv": "^5.0.0"
"ajv": "^6.1.0",
"ajv-keywords": "^3.1.0"
},
"deprecated": false,
"description": "Webpack Schema Validation Utilities",
"description": "webpack Validation Utils",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-jest": "^19.0.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.4.0",
"babel-preset-webpack": "^1.0.0",
"codecov": "^2.0.1",
"cross-env": "^4.0.0",
"del-cli": "^0.2.1",
"eslint": "^3.19.0",
"eslint-config-webpack": "^1.2.1",
"eslint-plugin-import": "^2.2.0",
"jest": "^19.0.2",
"lint-staged": "^3.4.0",
"nsp": "^2.6.3",
"pre-commit": "^1.2.2",
"standard-version": "^4.0.0",
"webpack-defaults": "^0.4.5"
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.0",
"@webpack-contrib/eslint-config-webpack": "^2.0.0",
"del-cli": "^1.0.0",
"eslint": "^5.0.0",
"eslint-plugin-import": "^2.0.0",
"eslint-plugin-prettier": "^2.0.0",
"jest": "^21.0.0",
"prettier": "^1.0.0",
"standard-version": "^4.0.0"
},
"engines": {
"node": ">= 4.3 < 5.0.0 || >= 5.10"
},
"eslintConfig": {
"extends": "webpack",
"installedESLint": true
"node": ">= 4"
},
"files": [
"dist"
],
"homepage": "https://github.com/webpack-contrib/schema-utils#readme",
"keywords": [
"webpack",
"plugin",
"es2015"
"src"
],
"homepage": "https://github.com/webpack-contrib/schema-utils",
"license": "MIT",
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"main": "dist/cjs.js",
"main": "src/index.js",
"name": "schema-utils",
"pre-commit": "lint-staged",
"repository": {
"type": "git",
"url": "git+https://github.com/webpack-contrib/schema-utils.git"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'",
"clean": "del-cli dist",
"clean": "del-cli coverage",
"commits": "commitlint --from $(git rev-list --tags --max-count=1)",
"lint": "eslint --cache src test",
"lint-staged": "lint-staged",
"prebuild": "yarn run clean",
"prepublish": "yarn run build",
"release": "yarn run standard-version",
"security": "nsp check",
"start": "yarn run build -- -w",
"test": "jest",
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
"test:watch": "jest --watch",
"travis:coverage": "yarn run test:coverage",
"travis:lint": "yarn run lint && yarn run security",
"travis:test": "yarn run test",
"webpack-defaults": "webpack-defaults"
"release": "npm run commits && standard-version",
"test": "jest --env node --verbose --coverage"
},
"version": "0.3.0"
"version": "0.4.7"
}