nav tabs on admin dashboard
This commit is contained in:
4
node_modules/big.js/LICENCE
generated
vendored
4
node_modules/big.js/LICENCE
generated
vendored
@@ -1,6 +1,6 @@
|
||||
The MIT Expat Licence.
|
||||
The MIT Licence (Expat).
|
||||
|
||||
Copyright (c) 2012 Michael Mclaughlin
|
||||
Copyright (c) 2018 Michael Mclaughlin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
|
||||
198
node_modules/big.js/README.md
generated
vendored
198
node_modules/big.js/README.md
generated
vendored
@@ -1,15 +1,13 @@
|
||||
# big.js
|
||||
|
||||
# big.js #
|
||||
**A small, fast JavaScript library for arbitrary-precision decimal arithmetic.**
|
||||
|
||||
A small, fast JavaScript library for arbitrary-precision decimal arithmetic.
|
||||
|
||||
The little sister to [bignumber.js](https://github.com/MikeMcl/bignumber.js/).
|
||||
See also [decimal.js](https://github.com/MikeMcl/decimal.js/), and [here](https://github.com/MikeMcl/big.js/wiki) for the difference between them.
|
||||
The little sister to [bignumber.js](https://github.com/MikeMcl/bignumber.js/) and [decimal.js](https://github.com/MikeMcl/decimal.js/). See [here](https://github.com/MikeMcl/big.js/wiki) for some notes on the difference between them.
|
||||
|
||||
## Features
|
||||
|
||||
- Faster, smaller and easier-to-use than JavaScript versions of Java's BigDecimal
|
||||
- Only 2.7 KB minified and gzipped
|
||||
- Only 5.9 KB minified and 2.7 KB gzipped
|
||||
- Simple API
|
||||
- Replicates the `toExponential`, `toFixed` and `toPrecision` methods of JavaScript's Number type
|
||||
- Includes a `sqrt` method
|
||||
@@ -17,31 +15,37 @@ See also [decimal.js](https://github.com/MikeMcl/decimal.js/), and [here](https:
|
||||
- No dependencies
|
||||
- Comprehensive [documentation](http://mikemcl.github.io/big.js/) and test set
|
||||
|
||||
## Load
|
||||
## Set up
|
||||
|
||||
The library is the single JavaScript file *big.js* (or *big.min.js*, which is *big.js* minified).
|
||||
|
||||
It can be loaded via a script tag in an HTML document for the browser
|
||||
Browser:
|
||||
|
||||
<script src='./relative/path/to/big.js'></script>
|
||||
```html
|
||||
<script src='path/to/big.js'></script>
|
||||
```
|
||||
|
||||
or as a CommonJS, [Node.js](http://nodejs.org) or AMD module using `require`.
|
||||
[Node.js](http://nodejs.org):
|
||||
|
||||
var Big = require('big.js');
|
||||
|
||||
For Node.js, the library is available from the npm registry:
|
||||
|
||||
$ npm install big.js
|
||||
```bash
|
||||
$ npm install big.js
|
||||
```
|
||||
|
||||
```javascript
|
||||
const Big = require('big.js');
|
||||
```
|
||||
|
||||
ES6 module:
|
||||
|
||||
```javascript
|
||||
import Big from 'big.mjs';
|
||||
```
|
||||
## Use
|
||||
|
||||
*In all examples below, `var`, semicolons and `toString` calls are not shown.
|
||||
If a commented-out value is in quotes it means `toString` has been called on the preceding expression.*
|
||||
*In all examples below, `var`, semicolons and `toString` calls are not shown. If a commented-out value is in quotes it means `toString` has been called on the preceding expression.*
|
||||
|
||||
The library exports a single function: Big, the constructor of Big number instances.
|
||||
It accepts a value of type Number, String or Big number Object.
|
||||
The library exports a single function, `Big`, the constructor of Big number instances.
|
||||
It accepts a value of type number, string or Big number object.
|
||||
|
||||
x = new Big(123.4567)
|
||||
y = Big('123456.7e-3') // 'new' is optional
|
||||
@@ -67,12 +71,10 @@ Like JavaScript's Number type, there are `toExponential`, `toFixed` and `toPreci
|
||||
x.toFixed(5) // "255.50000"
|
||||
x.toPrecision(5) // "255.50"
|
||||
|
||||
The maximum number of decimal places and the rounding mode used to round the results of the `div`, `sqrt` and `pow`
|
||||
(with negative exponent) methods is determined by the value of the `DP` and `RM` properties of the `Big` number constructor.
|
||||
The arithmetic methods always return the exact result except `div`, `sqrt` and `pow`
|
||||
(with negative exponent), as these methods involve division.
|
||||
|
||||
The other methods always give the exact result.
|
||||
|
||||
(From *v3.0.0*, multiple Big number constructors can be created, see Change Log below.)
|
||||
The maximum number of decimal places and the rounding mode used to round the results of these methods is determined by the value of the `DP` and `RM` properties of the `Big` number constructor.
|
||||
|
||||
Big.DP = 10
|
||||
Big.RM = 1
|
||||
@@ -85,6 +87,7 @@ The other methods always give the exact result.
|
||||
z.times(z) // "0.44444444448888888889"
|
||||
z.times(z).round(10) // "0.4444444445"
|
||||
|
||||
Multiple Big number constructors can be created, each with an independent configuration.
|
||||
|
||||
The value of a Big number is stored in a decimal floating point format in terms of a coefficient, exponent and sign.
|
||||
|
||||
@@ -99,165 +102,100 @@ For further information see the [API](http://mikemcl.github.io/big.js/) referenc
|
||||
|
||||
The *test* directory contains the test scripts for each Big number method.
|
||||
|
||||
The tests can be run with Node or a browser.
|
||||
The tests can be run with Node.js or a browser.
|
||||
|
||||
To test a single method, from a command-line shell at the *test* directory, use e.g.
|
||||
To run all the tests
|
||||
|
||||
$ node toFixed
|
||||
$ npm test
|
||||
|
||||
To test all the methods
|
||||
To test a single method
|
||||
|
||||
$ node every-test
|
||||
$ node test/toFixed
|
||||
|
||||
For the browser, see *single-test.html* and *every-test.html* in the *test/browser* directory.
|
||||
|
||||
*big-vs-number.html* enables some of the methods of big.js to be compared with those of JavaScript's Number type.
|
||||
*big-vs-number.html* is a simple application that enables some of the methods of big.js to be compared with those of JavaScript's Number type.
|
||||
|
||||
## Performance
|
||||
|
||||
The *perf* directory contains two applications and a *lib* directory containing the BigDecimal libraries used by both.
|
||||
The *perf* directory contains two legacy applications and a *lib* directory containing the BigDecimal libraries used by both.
|
||||
|
||||
*big-vs-bigdecimal.html* tests the performance of big.js against the JavaScript translations of two versions of BigDecimal, its use should be more or less self-explanatory.
|
||||
(The GWT version doesn't work in IE 6.)
|
||||
|
||||
* GWT: java.math.BigDecimal
|
||||
<https://github.com/iriscouch/bigdecimal.js>
|
||||
* ICU4J: com.ibm.icu.math.BigDecimal
|
||||
<https://github.com/dtrebbien/BigDecimal.js>
|
||||
* [GWT: java.math.BigDecimal](https://github.com/iriscouch/bigdecimal.js)
|
||||
* [ICU4J: com.ibm.icu.math.BigDecimal](https://github.com/dtrebbien/BigDecimal.js)
|
||||
|
||||
The BigDecimal in Node's npm registry is the GWT version. Despite its seeming popularity I have found it to have some serious bugs, see the Node script *perf/lib/bigdecimal_GWT/bugs.js* for examples of flaws in its *remainder*, *divide* and *compareTo* methods.
|
||||
The BigDecimal in the npm registry is the GWT version. It has some bugs, see the Node.js script *perf/lib/bigdecimal_GWT/bugs.js* for examples of flaws in its *remainder*, *divide* and *compareTo* methods.
|
||||
|
||||
*bigtime.js* is a Node command-line application which tests the performance of big.js against the GWT version of
|
||||
*bigtime.js* is a Node.js command-line application which tests the performance of big.js against the GWT version of
|
||||
BigDecimal from the npm registry.
|
||||
|
||||
For example, to compare the time taken by the big.js `plus` method and the BigDecimal `add` method:
|
||||
For example, to compare the time taken by the big.js `plus` method and the BigDecimal `add` method
|
||||
|
||||
$ node bigtime plus 10000 40
|
||||
|
||||
This will time 10000 calls to each, using operands of up to 40 random digits and will check that the results match.
|
||||
|
||||
For help:
|
||||
For help
|
||||
|
||||
$ node bigtime -h
|
||||
|
||||
## Build
|
||||
|
||||
I.e. minify.
|
||||
If [uglify-js](https://github.com/mishoo/UglifyJS2) is installed globally
|
||||
|
||||
For Node, if uglify-js is installed globally ( `npm install uglify-js -g` ) then
|
||||
$ npm install uglify-js -g
|
||||
|
||||
uglifyjs -o ./big.min.js ./big.js
|
||||
then
|
||||
|
||||
$ npm run build
|
||||
|
||||
will create *big.min.js*.
|
||||
|
||||
The *big.min.js* already present was created with *Microsoft Ajax Minifier 5.11*.
|
||||
|
||||
## TypeScript
|
||||
|
||||
The [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) project has a TypeScript [definitions file](https://github.com/borisyankov/DefinitelyTyped/blob/master/big.js/big.js.d.ts) for big.js.
|
||||
The [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) project has a Typescript type definitions file for big.js.
|
||||
|
||||
The definitions file can be added to your project via the [big.js.TypeScript.DefinitelyTyped](https://www.nuget.org/packages/big.js.TypeScript.DefinitelyTyped/0.0.1) NuGet package or via [tsd](http://definitelytyped.org/tsd/).
|
||||
$ npm install @types/big.js
|
||||
|
||||
tsd query big.js --action install
|
||||
|
||||
Any questions about the TypeScript definitions file should be addressed to the DefinitelyTyped project.
|
||||
Any questions about the TypeScript type definitions file should be addressed to the DefinitelyTyped project.
|
||||
|
||||
## Feedback
|
||||
|
||||
Feedback is welcome.
|
||||
|
||||
Bugs/comments/questions?
|
||||
Open an issue, or email
|
||||
|
||||
Michael
|
||||
<a href="mailto:M8ch88l@gmail.com">M8ch88l@gmail.com</a>
|
||||
|
||||
Bitcoin donation to:
|
||||
**1DppGRQSjVSMgGxuygDEHQuWEdTiVEzJYG**
|
||||
Thank you
|
||||
Open an issue, or email <a href="mailto:M8ch88l@gmail.com">Michael</a>
|
||||
|
||||
## Licence
|
||||
|
||||
See LICENCE.
|
||||
[MIT](LICENCE)
|
||||
|
||||
## Change Log
|
||||
## Contributors
|
||||
|
||||
####3.2.0
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
||||
<a href="graphs/contributors"><img src="https://opencollective.com/bigjs/contributors.svg?width=890&button=false" /></a>
|
||||
|
||||
* 14/09/17 Aid ES6 import.
|
||||
|
||||
####3.1.3
|
||||
## Backers
|
||||
|
||||
* Minor documentation updates.
|
||||
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bigjs#backer)]
|
||||
|
||||
####3.1.2
|
||||
<a href="https://opencollective.com/bigjs#backers" target="_blank"><img src="https://opencollective.com/bigjs/backers.svg?width=890"></a>
|
||||
|
||||
* README typo.
|
||||
|
||||
####3.1.1
|
||||
## Sponsors
|
||||
|
||||
* API documentation update, including FAQ additions.
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bigjs#sponsor)]
|
||||
|
||||
####3.1.0
|
||||
<a href="https://opencollective.com/bigjs/sponsor/0/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/0/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/1/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/1/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/2/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/2/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/3/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/3/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/4/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/4/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/5/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/5/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/6/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/6/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/7/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/7/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/8/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/8/avatar.svg"></a>
|
||||
<a href="https://opencollective.com/bigjs/sponsor/9/website" target="_blank"><img src="https://opencollective.com/bigjs/sponsor/9/avatar.svg"></a>
|
||||
|
||||
* Renamed and exposed `TO_EXP_NEG` and `TO_EXP_POS` as `Big.E_NEG` and
|
||||
`Big.E_POS`.
|
||||
|
||||
####3.0.2
|
||||
|
||||
* Remove *.npmignore*, use `files` field in *package.json* instead.
|
||||
|
||||
####3.0.1
|
||||
|
||||
* Added `sub`, `add` and `mul` aliases.
|
||||
* Clean-up after lint.
|
||||
|
||||
####3.0.0
|
||||
|
||||
* 10/12/14 Added [multiple constructor functionality](http://mikemcl.github.io/big.js/#faq).
|
||||
* No breaking changes or other additions, but a major code reorganisation,
|
||||
so *v3* seemed appropriate.
|
||||
|
||||
####2.5.2
|
||||
|
||||
* 1/11/14 Added bower.json.
|
||||
|
||||
####2.5.1
|
||||
|
||||
* 8/06/14 Amend README requires.
|
||||
|
||||
####2.5.0
|
||||
|
||||
* 26/01/14 Added `toJSON` method so serialization uses `toString`.
|
||||
|
||||
####2.4.1
|
||||
|
||||
* 17/10/13 Conform signed zero to IEEEE 754 (2008).
|
||||
|
||||
####2.4.0
|
||||
|
||||
* 19/09/13 Throw instances of `Error`.
|
||||
|
||||
####2.3.0
|
||||
|
||||
* 16/09/13 Added `cmp` method.
|
||||
|
||||
####2.2.0
|
||||
|
||||
* 11/07/13 Added 'round up' mode.
|
||||
|
||||
####2.1.0
|
||||
|
||||
* 26/06/13 Allow e.g. `.1` and `2.`.
|
||||
|
||||
####2.0.0
|
||||
|
||||
* 12/05/13 Added `abs` method and replaced `cmp` with `eq`, `gt`, `gte`, `lt`, and `lte` methods.
|
||||
|
||||
####1.0.1
|
||||
|
||||
* Changed default value of MAX_DP to 1E6
|
||||
|
||||
####1.0.0
|
||||
|
||||
* 7/11/2012 Initial release
|
||||
|
||||
2015
node_modules/big.js/big.js
generated
vendored
2015
node_modules/big.js/big.js
generated
vendored
File diff suppressed because it is too large
Load Diff
5
node_modules/big.js/big.min.js
generated
vendored
5
node_modules/big.js/big.min.js
generated
vendored
File diff suppressed because one or more lines are too long
31
node_modules/big.js/package.json
generated
vendored
31
node_modules/big.js/package.json
generated
vendored
@@ -1,35 +1,40 @@
|
||||
{
|
||||
"_from": "big.js@^3.1.3",
|
||||
"_id": "big.js@3.2.0",
|
||||
"_from": "big.js@^5.2.2",
|
||||
"_id": "big.js@5.2.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==",
|
||||
"_integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
|
||||
"_location": "/big.js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "big.js@^3.1.3",
|
||||
"raw": "big.js@^5.2.2",
|
||||
"name": "big.js",
|
||||
"escapedName": "big.js",
|
||||
"rawSpec": "^3.1.3",
|
||||
"rawSpec": "^5.2.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.1.3"
|
||||
"fetchSpec": "^5.2.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/loader-utils"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
|
||||
"_shasum": "a5fc298b81b9e0dca2e458824784b65c52ba588e",
|
||||
"_spec": "big.js@^3.1.3",
|
||||
"_resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
|
||||
"_shasum": "65f0af382f578bcdc742bd9c281e9cb2d7768328",
|
||||
"_spec": "big.js@^5.2.2",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\loader-utils",
|
||||
"author": {
|
||||
"name": "Michael Mclaughlin",
|
||||
"email": "M8ch88l@gmail.com"
|
||||
},
|
||||
"browser": "big.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/MikeMcl/big.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"collective": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/bigjs"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic",
|
||||
"engines": {
|
||||
@@ -37,6 +42,7 @@
|
||||
},
|
||||
"files": [
|
||||
"big.js",
|
||||
"big.mjs",
|
||||
"big.min.js"
|
||||
],
|
||||
"homepage": "https://github.com/MikeMcl/big.js#readme",
|
||||
@@ -55,15 +61,16 @@
|
||||
"bignum"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "big.js",
|
||||
"main": "big",
|
||||
"module": "big.mjs",
|
||||
"name": "big.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/MikeMcl/big.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "uglifyjs big.js --source-map doc/big.js.map -c -m -o big.min.js --preamble \"/* big.js v3.2.0 https://github.com/MikeMcl/big.js/LICENCE */\"",
|
||||
"build": "uglifyjs big.js --source-map -c -m -o big.min.js",
|
||||
"test": "node ./test/every-test.js"
|
||||
},
|
||||
"version": "3.2.0"
|
||||
"version": "5.2.2"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user