Izmjenjena struktura, dodan backand

This commit is contained in:
GotPPay
2017-10-16 11:19:46 +02:00
parent 1ec88afacb
commit 048e32c4aa
37153 changed files with 2975854 additions and 1 deletions

15
web/node_modules/postcss-flexbugs-fixes/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,15 @@
## 3.0.0
* upgrade to postcss 6
## 2.1.0
* Prevent mutating value when flex value is one of `['none', 'auto', 'content', 'inherit', 'initial', 'unset']`
## 2.0.0
* upgrade to postcss 5
## 1.1.0
* Ignore flex set to none [#24](https://github.com/luisrudge/postcss-flexbugs-fixes/pull/24)
* The default value of flex-basis is 0% [#22](https://github.com/luisrudge/postcss-flexbugs-fixes/pull/22)
## 1.0
* Initial release

20
web/node_modules/postcss-flexbugs-fixes/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright 2015 Luis Rudge <luis@luisrudge.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

70
web/node_modules/postcss-flexbugs-fixes/README.md generated vendored Normal file
View File

@@ -0,0 +1,70 @@
# PostCSS Flexbugs Fixes [![Build Status][ci-img]][ci]
[PostCSS] plugin This project tries to fix all of [flexbug's](https://github.com/philipwalton/flexbugs) issues.
## bug [4](https://github.com/philipwalton/flexbugs/blob/master/README.md#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored)
### Input
```css
.foo { flex: 1; }
.bar { flex: 1 1; }
.foz { flex: 1 1 0; }
.baz { flex: 1 1 0px; }
```
### Output
```css
.foo { flex: 1 1 0%; }
.bar { flex: 1 1 0%; }
.foz { flex: 1 1 0%; }
.baz { flex: 1 1 0%; }
```
## bug [6](https://github.com/philipwalton/flexbugs/blob/master/README.md#6-the-default-flex-value-has-changed)
### Input
```css
.foo { flex: 1; }
```
### Output
```css
.foo { flex: 1 1 0%; }
```
> This only fixes css classes that have the `flex` property set. To fix elements that are contained inside a flexbox container, use this global rule:
```css
* {
flex-shrink: 1;
}
```
## bug [8.1.a](https://github.com/philipwalton/flexbugs/blob/master/README.md#8-flex-basis-doesnt-support-calc)
### Input
```css
.foo { flex: 1 0 calc(1vw - 1px); }
```
### Output
```css
.foo {
flex-grow: 1;
flex-shrink: 0;
flex-basis: calc(1vw - 1px);
}
```
## Usage
```js
postcss([require('postcss-flexbugs-fixes')]);
```
See [PostCSS] docs for examples for your environment.
[postcss]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/luisrudge/postcss-flexbugs-fixes.svg
[ci]: https://travis-ci.org/luisrudge/postcss-flexbugs-fixes

25
web/node_modules/postcss-flexbugs-fixes/bugs/bug4.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
var postcss = require('postcss');
function shouldSetZeroBasis(basisValue) {
if (!basisValue) {
return false;
}
return basisValue === '0' || basisValue.replace(/\s/g, '') === '0px';
}
function properBasis(basis) {
if (shouldSetZeroBasis(basis)) {
return '0%';
}
return basis;
}
module.exports = function(decl) {
if (decl.prop === 'flex') {
var values = postcss.list.space(decl.value);
var flexGrow = values[0];
var flexShrink = values[1] || '1';
var flexBasis = values[2] || '0%';
decl.value = flexGrow + ' ' + flexShrink + ' ' + properBasis(flexBasis);
}
};

11
web/node_modules/postcss-flexbugs-fixes/bugs/bug6.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
var postcss = require('postcss');
module.exports = function(decl) {
if (decl.prop === 'flex') {
var values = postcss.list.space(decl.value);
var flexGrow = values[0];
var flexShrink = values[1] || '1';
var flexBasis = values[2] || '0%';
decl.value = flexGrow + ' ' + flexShrink + ' ' + flexBasis;
}
};

27
web/node_modules/postcss-flexbugs-fixes/bugs/bug81a.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
var postcss = require('postcss');
module.exports = function(decl) {
var regex = /(\d{1,}) (\d{1,}) (calc\(.*?\))/g;
var matches = regex.exec(decl.value);
if (decl.prop === 'flex' && matches) {
var grow = postcss.decl({
prop: 'flex-grow',
value: matches[1],
source: decl.source
});
var shrink = postcss.decl({
prop: 'flex-shrink',
value: matches[2],
source: decl.source
});
var basis = postcss.decl({
prop: 'flex-basis',
value: matches[3],
source: decl.source
});
decl.parent.insertBefore(decl, grow);
decl.parent.insertBefore(decl, shrink);
decl.parent.insertBefore(decl, basis);
decl.remove();
}
};

25
web/node_modules/postcss-flexbugs-fixes/index.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
var postcss = require('postcss');
var bug4 = require('./bugs/bug4');
var bug6 = require('./bugs/bug6');
var bug81a = require('./bugs/bug81a');
var doNothingValues = ['none', 'auto', 'content', 'inherit', 'initial', 'unset'];
module.exports = postcss.plugin('postcss-flexbugs-fixes', function (opts) {
opts = opts || {};
return function (css) {
css.walkDecls(function (d) {
if (d.value === 'none') {
return;
}
var values = postcss.list.space(d.value);
if (doNothingValues.indexOf(d.value) > 0 && values.length === 1) {
return;
}
bug4(d);
bug6(d);
bug81a(d);
});
};
});

68
web/node_modules/postcss-flexbugs-fixes/package.json generated vendored Normal file
View File

@@ -0,0 +1,68 @@
{
"_from": "postcss-flexbugs-fixes@3.0.0",
"_id": "postcss-flexbugs-fixes@3.0.0",
"_inBundle": false,
"_integrity": "sha1-ezHLbCfQQXo1pnkUwpX4PEA8ftQ=",
"_location": "/postcss-flexbugs-fixes",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "postcss-flexbugs-fixes@3.0.0",
"name": "postcss-flexbugs-fixes",
"escapedName": "postcss-flexbugs-fixes",
"rawSpec": "3.0.0",
"saveSpec": null,
"fetchSpec": "3.0.0"
},
"_requiredBy": [
"/react-scripts"
],
"_resolved": "https://registry.npmjs.org/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-3.0.0.tgz",
"_shasum": "7b31cb6c27d0417a35a67914c295f83c403c7ed4",
"_spec": "postcss-flexbugs-fixes@3.0.0",
"_where": "/home/bilal/Saburly/slucajna-televizija/node_modules/react-scripts",
"author": {
"name": "Luis Rudge",
"email": "luis@luisrudge.net"
},
"bugs": {
"url": "https://github.com/luisrudge/postcss-flexbugs-fixes/issues"
},
"bundleDependencies": false,
"dependencies": {
"postcss": "^6.0.1"
},
"deprecated": false,
"description": "PostCSS plugin This project tries to fix all of flexbug's issues",
"devDependencies": {
"chai": "^2.3.0",
"gulp": "^3.8.11",
"gulp-eslint": "^0.12.0",
"gulp-mocha": "^2.0.1"
},
"files": [
"bugs",
"index.js"
],
"homepage": "https://github.com/luisrudge/postcss-flexbugs-fixes#readme",
"keywords": [
"postcss",
"css",
"postcss-plugin",
"flexbugs",
"flexbox",
"flex"
],
"license": "MIT",
"main": "index.js",
"name": "postcss-flexbugs-fixes",
"repository": {
"type": "git",
"url": "git+https://github.com/luisrudge/postcss-flexbugs-fixes.git"
},
"scripts": {
"test": "gulp"
},
"version": "3.0.0"
}