nav tabs on admin dashboard
This commit is contained in:
5
node_modules/html-loader/.editorconfig
generated
vendored
5
node_modules/html-loader/.editorconfig
generated
vendored
@@ -1,5 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*.js]
|
||||
indent_style=tab
|
||||
trim_trailing_whitespace=true
|
||||
24
node_modules/html-loader/.eslintrc
generated
vendored
24
node_modules/html-loader/.eslintrc
generated
vendored
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"rules": {
|
||||
"strict": 0,
|
||||
"camelcase": 0,
|
||||
"curly": 0,
|
||||
"indent": [2, "tab", { "SwitchCase": 1 }],
|
||||
"eol-last": 1,
|
||||
"no-shadow": 0,
|
||||
"no-redeclare": 2,
|
||||
"no-extra-bind": 1,
|
||||
"no-empty": 0,
|
||||
"no-process-exit": 1,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-use-before-define": 0,
|
||||
"no-unused-vars": 0,
|
||||
"consistent-return": 0,
|
||||
"no-inner-declarations": 1,
|
||||
"no-loop-func": 1,
|
||||
"space-before-function-paren": [2, "never"]
|
||||
}
|
||||
}
|
||||
41
node_modules/html-loader/.github/ISSUE_TEMPLATE.md
generated
vendored
41
node_modules/html-loader/.github/ISSUE_TEMPLATE.md
generated
vendored
@@ -1,41 +0,0 @@
|
||||
## **BEFORE YOU SUBMIT** please read the following:
|
||||
If you have a support request or question please
|
||||
submit them to [StackOverflow](http://stackoverflow.com/questions/tagged/webpack) using the tag `[webpack]` or the [webpack Gitter](https://gitter.im/webpack/webpack). Future support requests will be closed.
|
||||
(remove this from issue)
|
||||
|
||||
|
||||
|
||||
**I'm submitting a bug report**
|
||||
**I'm submitting a feature request**
|
||||
**I'm submitting a support request** => Please do not submit support request here, see note at the top of this template.
|
||||
(remove inappropriate sentences)
|
||||
|
||||
|
||||
**Webpack version:**
|
||||
1.10.x / 2.x
|
||||
|
||||
**HTML-Loader version:**
|
||||
0.3.x / 0.4.x
|
||||
|
||||
**Please tell us about your environment:**
|
||||
OSX 10.x / Linux / Windows 10
|
||||
|
||||
|
||||
**Current behavior:**
|
||||
|
||||
|
||||
**Expected/desired behavior:**
|
||||
|
||||
|
||||
* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.**
|
||||
|
||||
|
||||
* **What is the expected behavior?**
|
||||
|
||||
|
||||
* **What is the motivation / use case for changing the behavior?**
|
||||
|
||||
|
||||
* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
|
||||
|
||||
* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart | ...]
|
||||
34
node_modules/html-loader/.github/PULL_REQUEST_TEMPLATE.md
generated
vendored
34
node_modules/html-loader/.github/PULL_REQUEST_TEMPLATE.md
generated
vendored
@@ -1,34 +0,0 @@
|
||||
**Please check if the PR fulfills these requirements**
|
||||
- [ ] Tests for the changes have been added (for bug fixes / features)
|
||||
- [ ] Docs have been added / updated (for bug fixes / features)
|
||||
|
||||
|
||||
**What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
|
||||
- [ ] Bugfix
|
||||
- [ ] Feature
|
||||
- [ ] Code style update (formatting, local variables)
|
||||
- [ ] Refactoring (no functional changes, no api changes)
|
||||
- [ ] Build related changes
|
||||
- [ ] CI related changes
|
||||
- [ ] Other... Please describe:
|
||||
|
||||
**What is the current behavior?** (You can also link to an open issue here)
|
||||
|
||||
|
||||
|
||||
**What is the new behavior?**
|
||||
|
||||
|
||||
|
||||
**Does this PR introduce a breaking change?**
|
||||
- [ ] Yes
|
||||
- [ ] No
|
||||
|
||||
If this PR contains a breaking change, please describe the following...
|
||||
|
||||
* Impact:
|
||||
* Migration path for existing applications:
|
||||
* Github Issue(s) this is regarding:
|
||||
|
||||
|
||||
**Other information**:
|
||||
26
node_modules/html-loader/.jsbeautifyrc
generated
vendored
26
node_modules/html-loader/.jsbeautifyrc
generated
vendored
@@ -1,26 +0,0 @@
|
||||
|
||||
{
|
||||
"js": {
|
||||
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"],
|
||||
"brace_style": "collapse",
|
||||
"break_chained_methods": false,
|
||||
"e4x": true,
|
||||
"eval_code": false,
|
||||
"end_with_newline": true,
|
||||
"indent_char": "\t",
|
||||
"indent_level": 0,
|
||||
"indent_size": 1,
|
||||
"indent_with_tabs": true,
|
||||
"jslint_happy": false,
|
||||
"jslint_happy_align_switch_case": true,
|
||||
"space_after_anon_function": false,
|
||||
"keep_array_indentation": false,
|
||||
"keep_function_indentation": false,
|
||||
"max_preserve_newlines": 2,
|
||||
"preserve_newlines": true,
|
||||
"space_before_conditional": false,
|
||||
"space_in_paren": false,
|
||||
"unescape_strings": false,
|
||||
"wrap_line_length": 0
|
||||
}
|
||||
}
|
||||
20
node_modules/html-loader/.npmignore
generated
vendored
20
node_modules/html-loader/.npmignore
generated
vendored
@@ -1,20 +0,0 @@
|
||||
lib-cov
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
*.dat
|
||||
*.out
|
||||
*.pid
|
||||
*.gz
|
||||
|
||||
pids
|
||||
logs
|
||||
results
|
||||
|
||||
npm-debug.log
|
||||
node_modules
|
||||
coverage
|
||||
examples
|
||||
test
|
||||
assets
|
||||
.idea
|
||||
14
node_modules/html-loader/.travis.yml
generated
vendored
14
node_modules/html-loader/.travis.yml
generated
vendored
@@ -1,14 +0,0 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
node_js:
|
||||
- node
|
||||
- "6"
|
||||
- "4"
|
||||
|
||||
script: npm run travis
|
||||
|
||||
after_success:
|
||||
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
|
||||
- rm -rf ./coverage
|
||||
42
node_modules/html-loader/CONTRIBUTING.md
generated
vendored
42
node_modules/html-loader/CONTRIBUTING.md
generated
vendored
@@ -1,42 +0,0 @@
|
||||
# Contributing
|
||||
|
||||
From opening a bug report to creating a pull request: every contribution is
|
||||
appreciated and welcome. If you're planning to implement a new feature or change
|
||||
the api please create an issue first. This way we can ensure that your precious
|
||||
work is not in vain.
|
||||
|
||||
## Issues
|
||||
|
||||
Most of the time, if webpack is not working correctly for you it is a simple configuration issue.
|
||||
|
||||
If you are having difficulty, please search the [StackOverflow with the webpack tag](http://stackoverflow.com/tags/webpack) for questions related
|
||||
to the `html-loader`. If you can find an answer to your issue, please post a question in [StackOverflow](http://stackoverflow.com/tags/webpack) or
|
||||
the [webpack Gitter](https://gitter.im/webpack/webpack) and include both your webpack & html-loader versions.
|
||||
|
||||
**If you have discovered a bug or have a feature suggestion, feel free to create an issue on Github.**
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
git clone https://github.com/webpack/html-loader.git
|
||||
cd html-loader
|
||||
npm install
|
||||
```
|
||||
|
||||
To run the entire test suite use:
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
## Submitting Changes
|
||||
|
||||
After getting some feedback, push to your fork and submit a pull request. We
|
||||
may suggest some changes or improvements or alternatives, but for small changes
|
||||
your pull request should be accepted quickly.
|
||||
|
||||
Some things that will increase the chance that your pull request is accepted:
|
||||
|
||||
* Write tests
|
||||
* Follow the existing Webpack coding style defined in the eslint jsbeutify and editor config rules.
|
||||
* Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
|
||||
48
node_modules/html-loader/README.md
generated
vendored
48
node_modules/html-loader/README.md
generated
vendored
@@ -27,6 +27,20 @@ By default every local `<img src="image.png">` is required (`require('./image.pn
|
||||
|
||||
You can specify which tag-attribute combination should be processed by this loader via the query parameter `attrs`. Pass an array or a space-separated list of `<tag>:<attribute>` combinations. (Default: `attrs=img:src`)
|
||||
|
||||
If you use `<custom-elements>`, and lots of them make use of a `custom-src` attribute, you don't have to specify each combination `<tag>:<attribute>`: just specify an empty tag like `attrs=:custom-src` and it will match every element.
|
||||
|
||||
```js
|
||||
{
|
||||
test: /\.(html)$/,
|
||||
use: {
|
||||
loader: 'html-loader',
|
||||
options: {
|
||||
attrs: [':data-src']
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
To completely disable tag-attribute processing (for instance, if you're handling image loading on the client side) you can pass in `attrs=false`.
|
||||
|
||||
<h2 align="center">Examples</h2>
|
||||
@@ -102,6 +116,40 @@ module: {
|
||||
}
|
||||
```
|
||||
|
||||
See [html-minifier](https://github.com/kangax/html-minifier#options-quick-reference)'s documentation for more information on the available options.
|
||||
|
||||
The enabled rules for minimizing by default are the following ones:
|
||||
- removeComments
|
||||
- removeCommentsFromCDATA
|
||||
- removeCDATASectionsFromCDATA
|
||||
- collapseWhitespace
|
||||
- conservativeCollapse
|
||||
- removeAttributeQuotes
|
||||
- useShortDoctype
|
||||
- keepClosingSlash
|
||||
- minifyJS
|
||||
- minifyCSS
|
||||
- removeScriptTypeAttributes
|
||||
- removeStyleTypeAttributes
|
||||
|
||||
The rules can be disabled using the following options in your `webpack.conf.js`
|
||||
|
||||
```js
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.html$/,
|
||||
use: [ {
|
||||
loader: 'html-loader',
|
||||
options: {
|
||||
minimize: true,
|
||||
removeComments: false,
|
||||
collapseWhitespace: false
|
||||
}
|
||||
}],
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
||||
### 'Root-relative' URLs
|
||||
|
||||
For urls that start with a `/`, the default behavior is to not translate them.
|
||||
|
||||
25
node_modules/html-loader/index.js
generated
vendored
25
node_modules/html-loader/index.js
generated
vendored
@@ -39,7 +39,14 @@ module.exports = function(content) {
|
||||
}
|
||||
var root = config.root;
|
||||
var links = attrParse(content, function(tag, attr) {
|
||||
return attributes.indexOf(tag + ":" + attr) >= 0;
|
||||
var res = attributes.find(function(a) {
|
||||
if (a.charAt(0) === ':') {
|
||||
return attr === a.slice(1);
|
||||
} else {
|
||||
return (tag + ":" + attr) === a;
|
||||
}
|
||||
});
|
||||
return !!res;
|
||||
});
|
||||
links.reverse();
|
||||
var data = {};
|
||||
@@ -47,6 +54,8 @@ module.exports = function(content) {
|
||||
links.forEach(function(link) {
|
||||
if(!loaderUtils.isUrlRequest(link.value, root)) return;
|
||||
|
||||
if (link.value.indexOf('mailto:') > -1 ) return;
|
||||
|
||||
var uri = url.parse(link.value);
|
||||
if (uri.hash !== null && uri.hash !== undefined) {
|
||||
uri.hash = null;
|
||||
@@ -120,6 +129,9 @@ module.exports = function(content) {
|
||||
}
|
||||
|
||||
if(config.interpolate && config.interpolate !== 'require') {
|
||||
// Double escape quotes so that they are not unescaped completely in the template string
|
||||
content = content.replace(/\\"/g, "\\\\\"");
|
||||
content = content.replace(/\\'/g, "\\\\\'");
|
||||
content = compile('`' + content + '`').code;
|
||||
} else {
|
||||
content = JSON.stringify(content);
|
||||
@@ -135,7 +147,16 @@ module.exports = function(content) {
|
||||
|
||||
return exportsString + content.replace(/xxxHTMLLINKxxx[0-9\.]+xxx/g, function(match) {
|
||||
if(!data[match]) return match;
|
||||
return '" + require(' + JSON.stringify(loaderUtils.urlToRequest(data[match], root)) + ') + "';
|
||||
|
||||
var urlToRequest;
|
||||
|
||||
if (config.interpolate === 'require') {
|
||||
urlToRequest = data[match];
|
||||
} else {
|
||||
urlToRequest = loaderUtils.urlToRequest(data[match], root);
|
||||
}
|
||||
|
||||
return '" + require(' + JSON.stringify(urlToRequest) + ') + "';
|
||||
}) + ";";
|
||||
|
||||
}
|
||||
|
||||
55
node_modules/html-loader/package.json
generated
vendored
55
node_modules/html-loader/package.json
generated
vendored
@@ -1,40 +1,40 @@
|
||||
{
|
||||
"_from": "html-loader@^0.4.5",
|
||||
"_id": "html-loader@0.4.5",
|
||||
"_from": "html-loader@^0.5.5",
|
||||
"_id": "html-loader@0.5.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-X7zYfNY6XEmn/OL+VvQl4Fcpxow=",
|
||||
"_integrity": "sha512-7hIW7YinOYUpo//kSYcPB6dCKoceKLmOwjEMmhIobHuWGDVl0Nwe4l68mdG/Ru0wcUxQjVMEoZpkalZ/SE7zog==",
|
||||
"_location": "/html-loader",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "html-loader@^0.4.5",
|
||||
"raw": "html-loader@^0.5.5",
|
||||
"name": "html-loader",
|
||||
"escapedName": "html-loader",
|
||||
"rawSpec": "^0.4.5",
|
||||
"rawSpec": "^0.5.5",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.4.5"
|
||||
"fetchSpec": "^0.5.5"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/laravel-mix"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/html-loader/-/html-loader-0.4.5.tgz",
|
||||
"_shasum": "5fbcd87cd63a5c49a7fce2fe56f425e05729c68c",
|
||||
"_spec": "html-loader@^0.4.5",
|
||||
"_resolved": "https://registry.npmjs.org/html-loader/-/html-loader-0.5.5.tgz",
|
||||
"_shasum": "6356dbeb0c49756d8ebd5ca327f16ff06ab5faea",
|
||||
"_spec": "html-loader@^0.5.5",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\laravel-mix",
|
||||
"author": {
|
||||
"name": "Tobias Koppers @sokra"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/webpack/html-loader/issues"
|
||||
"url": "https://github.com/webpack-contrib/html-loader/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"es6-templates": "^0.2.2",
|
||||
"es6-templates": "^0.2.3",
|
||||
"fastparse": "^1.1.1",
|
||||
"html-minifier": "^3.0.1",
|
||||
"loader-utils": "^1.0.2",
|
||||
"object-assign": "^4.1.0"
|
||||
"html-minifier": "^3.5.8",
|
||||
"loader-utils": "^1.1.0",
|
||||
"object-assign": "^4.1.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "html loader module for webpack",
|
||||
@@ -42,28 +42,29 @@
|
||||
"beautify-lint": "^1.0.4",
|
||||
"codecov.io": "^0.1.6",
|
||||
"eslint": "^3.1.1",
|
||||
"istanbul": "^0.4.4",
|
||||
"istanbul": "^0.4.5",
|
||||
"js-beautify": "^1.6.3",
|
||||
"mocha": "^2.5.3",
|
||||
"should": "^10.0.0"
|
||||
"should": "^10.0.0",
|
||||
"standard-version": "^4.3.0"
|
||||
},
|
||||
"homepage": "https://github.com/webpack/html-loader#readme",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/webpack-contrib/html-loader",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "html-loader",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/webpack/html-loader.git"
|
||||
"url": "git+https://github.com/webpack-contrib/html-loader.git"
|
||||
},
|
||||
"scripts": {
|
||||
"beautify": "beautify-rewrite lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
|
||||
"beautify-lint": "beautify-lint lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
|
||||
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",
|
||||
"lint": "eslint lib bin hot",
|
||||
"postcover": "npm run lint && npm run beautify-lint",
|
||||
"pretest": "npm run lint && npm run beautify-lint",
|
||||
"publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish",
|
||||
"test": "mocha --harmony --full-trace --check-leaks",
|
||||
"travis": "npm run cover -- --report lcovonly"
|
||||
"lint": "eslint lib test",
|
||||
"pretest": "npm run lint",
|
||||
"release": "standard-version",
|
||||
"test": "mocha --harmony --full-trace --check-leaks"
|
||||
},
|
||||
"version": "0.4.5"
|
||||
"version": "0.5.5"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user