mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
10
web/node_modules/postcss-initial/.editorconfig
generated
vendored
Normal file
10
web/node_modules/postcss-initial/.editorconfig
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
47
web/node_modules/postcss-initial/.github/workflows/npm-publish.yml
generated
vendored
Normal file
47
web/node_modules/postcss-initial/.github/workflows/npm-publish.yml
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
||||
|
||||
name: Node.js Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
|
||||
publish-npm:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm ci
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
publish-gpr:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
- run: npm ci
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
6
web/node_modules/postcss-initial/.vscode/settings.json
generated
vendored
Normal file
6
web/node_modules/postcss-initial/.vscode/settings.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"cSpell.words": [
|
||||
"Koretskiy",
|
||||
"Maksim"
|
||||
]
|
||||
}
|
53
web/node_modules/postcss-initial/CHANGELOG.md
generated
vendored
Normal file
53
web/node_modules/postcss-initial/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
# Changelog
|
||||
|
||||
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.
|
||||
|
||||
## [3.0.3] - 2020-07-14
|
||||
- Update deps
|
||||
|
||||
## [3.0.2](https://github.com/maximkoretskiy/postcss-initial/compare/v3.0.1...v3.0.2) (2019-10-31)
|
||||
|
||||
## [3.0.1] - 2019-08-09
|
||||
- Fix lodash.template vulnerability. See https://github.com/lodash/lodash/pull/4336
|
||||
|
||||
## [3.0.0] - 2018-08-16
|
||||
- Upgrade PostCSS to 7.0.2. It breaks node@4 support. Thanks to @ansballard for contribution
|
||||
|
||||
## [2.0.0] - 2016-05-09
|
||||
- Add yarn
|
||||
- Update dependcies. Thanks to @Semigradsky
|
||||
|
||||
## [1.5.3] - 2016-11-30
|
||||
- Add `.eslintrc` to `.npmignore` Thanks to @wtgtybhertgeghgtwtg for pr [#20](https://github.com/maximkoretskiy/postcss-initial/pull/20)
|
||||
|
||||
## [1.5.2] - 2016-07-20
|
||||
Fix rules duplication in case when user added own fallback for rule.
|
||||
See [#18](https://github.com/maximkoretskiy/postcss-initial/issues/18).
|
||||
Thanks to @ChaosExAnima for suggestion and PR.
|
||||
|
||||
## [1.5.1] - 2016-04-09
|
||||
Added support of multiple initial values in property. Thanks to @johnbender for issue and contribution.
|
||||
|
||||
## [1.5.0] - 2016-03-09
|
||||
- Fix some props with inherit values to more specific values. Thnx @dzhiriki for issue.
|
||||
- Update deps
|
||||
|
||||
## [1.4.1] - 2016-02-05
|
||||
- Remove gulp from workflow, using npm-scrips only
|
||||
- Update lodash.template@4
|
||||
- Fix browser compatibility issues(font, orphans, widows, text-decoration). Thnx to @kinday for issue.
|
||||
|
||||
## [1.4] - 2015-11-08
|
||||
- Added `replace` option. Thanks to @sylvainbaronnet
|
||||
|
||||
## [1.3] - 2015-08-27
|
||||
Rename project to make it more universal (plugin name is **postcss-initial**)
|
||||
|
||||
## [1.2] - 2015-08-26
|
||||
Rename project to fit standards (plugin name is **postcss-all-property**)
|
||||
|
||||
## [1.1.0] - 2015-08-25
|
||||
Add reset: inherited option
|
||||
|
||||
## [1.0.1] - 2015-08-24
|
||||
Proof of concept. Plugin still works =)(plugin name is **postcss-all-unset**)
|
20
web/node_modules/postcss-initial/LICENSE
generated
vendored
Normal file
20
web/node_modules/postcss-initial/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright 2015 Maksim Koretskiy <mr.green.tv@gmail.com>
|
||||
|
||||
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.
|
176
web/node_modules/postcss-initial/README.md
generated
vendored
Normal file
176
web/node_modules/postcss-initial/README.md
generated
vendored
Normal file
|
@ -0,0 +1,176 @@
|
|||
# PostCSS Initial
|
||||
[![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci] [![NPM Module][npm-img]][npm] [![David DM][david-img]][david]
|
||||
|
||||
<img align="right" width="135" height="95"
|
||||
title="Philosopher’s stone, logo of PostCSS"
|
||||
src="http://postcss.github.io/postcss/logo-leftp.png">
|
||||
|
||||
[PostCSS] plugin to fallback `initial` keyword. Very useful in combination with
|
||||
[postcss-autoreset][reset].
|
||||
|
||||
[PostCSS]: https://github.com/postcss/postcss
|
||||
[css-img]: https://jonathantneal.github.io/css-db/badge/css-cascade-all-shorthand.svg
|
||||
[css]: https://jonathantneal.github.io/css-db/#css-cascade-all-shorthand
|
||||
[ci-img]: https://travis-ci.org/maximkoretskiy/postcss-initial.svg
|
||||
[ci]: https://travis-ci.org/maximkoretskiy/postcss-initial
|
||||
[npm-img]: https://badge.fury.io/js/postcss-initial.svg
|
||||
[npm]: https://www.npmjs.com/package/postcss-initial
|
||||
[david-img]: https://david-dm.org/maximkoretskiy/postcss-initial.svg
|
||||
[david]: https://david-dm.org/maximkoretskiy/postcss-initial
|
||||
[reset]: https://github.com/maximkoretskiy/postcss-autoreset
|
||||
|
||||
|
||||
```css
|
||||
a {
|
||||
animation: initial;
|
||||
background: initial;
|
||||
white-space: initial;
|
||||
}
|
||||
p {
|
||||
background: url(/img1.png),
|
||||
url(/img2.png);
|
||||
background-repeat: initial no-repeat
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a {
|
||||
animation: none 0s ease 0s 1 normal none running;
|
||||
animation: initial;
|
||||
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
|
||||
background: initial;
|
||||
white-space: normal;
|
||||
white-space: initial;
|
||||
}
|
||||
p {
|
||||
background: url(/img1.png),
|
||||
url(/img2.png);
|
||||
background-repeat: repeat no-repeat
|
||||
}
|
||||
```
|
||||
|
||||
[](https://caniuse.com/#feat=css-initial-value)
|
||||
|
||||
**Killer feature!**
|
||||
|
||||
Universal reset from future css!
|
||||
```css
|
||||
a {
|
||||
all: initial;
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
a {
|
||||
animation: none 0s ease 0s 1 normal none running;
|
||||
backface-visibility: visible;
|
||||
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
|
||||
border: medium none currentColor;
|
||||
border-collapse: separate;
|
||||
border-image: none;
|
||||
border-radius: 0;
|
||||
border-spacing: 0;
|
||||
bottom: auto;
|
||||
box-shadow: none;
|
||||
box-sizing: content-box;
|
||||
caption-side: top;
|
||||
clear: none;
|
||||
clip: auto;
|
||||
color: #000;
|
||||
columns: auto;
|
||||
column-count: auto;
|
||||
column-fill: balance;
|
||||
column-gap: normal;
|
||||
column-rule: medium none currentColor;
|
||||
column-span: 1;
|
||||
column-width: auto;
|
||||
content: normal;
|
||||
counter-increment: none;
|
||||
counter-reset: none;
|
||||
cursor: auto;
|
||||
direction: ltr;
|
||||
display: inline;
|
||||
empty-cells: show;
|
||||
float: none;
|
||||
font-family: serif;
|
||||
font-size: medium;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: normal;
|
||||
font-stretch: normal;
|
||||
line-height: normal;
|
||||
height: auto;
|
||||
hyphens: none;
|
||||
left: auto;
|
||||
letter-spacing: normal;
|
||||
list-style: disc outside none;
|
||||
margin: 0;
|
||||
max-height: none;
|
||||
max-width: none;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
opacity: 1;
|
||||
orphans: 2;
|
||||
outline: medium none invert;
|
||||
overflow: visible;
|
||||
overflow-x: visible;
|
||||
overflow-y: visible;
|
||||
padding: 0;
|
||||
page-break-after: auto;
|
||||
page-break-before: auto;
|
||||
page-break-inside: auto;
|
||||
perspective: none;
|
||||
perspective-origin: 50% 50%;
|
||||
position: static;
|
||||
right: auto;
|
||||
tab-size: 8;
|
||||
table-layout: auto;
|
||||
text-align: left;
|
||||
text-align-last: auto;
|
||||
text-decoration: none;
|
||||
text-indent: 0;
|
||||
text-shadow: none;
|
||||
text-transform: none;
|
||||
top: auto;
|
||||
transform: none;
|
||||
transform-origin: 50% 50% 0;
|
||||
transform-style: flat;
|
||||
transition: none 0s ease 0s;
|
||||
unicode-bidi: normal;
|
||||
vertical-align: baseline;
|
||||
visibility: visible;
|
||||
white-space: normal;
|
||||
widows: 2;
|
||||
width: auto;
|
||||
word-spacing: normal;
|
||||
z-index: auto;
|
||||
all: initial;
|
||||
}
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### reset
|
||||
|
||||
Takes `string`.
|
||||
Describes what subset of rules should be unsetted with `all` property (to reduce code weight).
|
||||
Possible subsets: `all`, `inherited`.
|
||||
Default value: `'all'`.
|
||||
|
||||
### replace
|
||||
|
||||
Takes `boolean`.
|
||||
Replace the `initial` with the fallback instead of adding it.
|
||||
Default value: `false`.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
postcss([ require('postcss-initial')({
|
||||
reset: 'inherited' // reset only inherited rules
|
||||
}) ])
|
||||
```
|
||||
|
||||
See [PostCSS] docs for examples for your environment.
|
||||
|
||||
## [Changelog](./CHANGELOG.md)
|
35
web/node_modules/postcss-initial/index.js
generated
vendored
Normal file
35
web/node_modules/postcss-initial/index.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
var postcss = require('postcss');
|
||||
var makeFallbackFunction = require('./lib/rules-fabric');
|
||||
|
||||
module.exports = postcss.plugin('postcss-initial', function (opts) {
|
||||
opts = opts || {};
|
||||
opts.reset = opts.reset || 'all';
|
||||
opts.replace = opts.replace || false;
|
||||
var getFallback = makeFallbackFunction(opts.reset === 'inherited');
|
||||
var getPropPrevTo = function (prop, decl) {
|
||||
var foundPrev = false;
|
||||
decl.parent.walkDecls(function (child) {
|
||||
if (child.prop === decl.prop && child.value !== decl.value) {
|
||||
foundPrev = true;
|
||||
}
|
||||
});
|
||||
return foundPrev;
|
||||
};
|
||||
return function (css) {
|
||||
css.walkDecls(function (decl) {
|
||||
if (!/\binitial\b/.test(decl.value)) {
|
||||
return;
|
||||
}
|
||||
var fallBackRules = getFallback(decl.prop, decl.value);
|
||||
if (fallBackRules.length === 0) return;
|
||||
fallBackRules.forEach(function (rule) {
|
||||
if ( !getPropPrevTo(decl.prop, decl) ) {
|
||||
decl.cloneBefore(rule);
|
||||
}
|
||||
});
|
||||
if (opts.replace === true) {
|
||||
decl.remove();
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
423
web/node_modules/postcss-initial/lib/decls.json
generated
vendored
Normal file
423
web/node_modules/postcss-initial/lib/decls.json
generated
vendored
Normal file
|
@ -0,0 +1,423 @@
|
|||
[
|
||||
{
|
||||
"prop": "animation",
|
||||
"initial": "${animation-name} ${animation-duration} ${animation-timing-function} ${animation-delay} ${animation-iteration-count} ${animation-direction} ${animation-fill-mode} ${animation-play-state}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "animation-delay", "initial": "0s"},
|
||||
{"prop": "animation-direction", "initial": "normal"},
|
||||
{"prop": "animation-duration", "initial": "0s"},
|
||||
{"prop": "animation-fill-mode", "initial": "none"},
|
||||
{"prop": "animation-iteration-count", "initial": "1"},
|
||||
{"prop": "animation-name", "initial": "none"},
|
||||
{"prop": "animation-play-state", "initial": "running"},
|
||||
{"prop": "animation-timing-function", "initial": "ease"},
|
||||
{
|
||||
"prop": "backface-visibility", "initial": "visible",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "background",
|
||||
"initial": "${background-color} ${background-image} ${background-repeat} ${background-position} / ${background-size} ${background-origin} ${background-clip} ${background-attachment}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "background-attachment", "initial": "scroll"},
|
||||
{"prop": "background-clip", "initial": "border-box"},
|
||||
{"prop": "background-color", "initial": "transparent"},
|
||||
{"prop": "background-image", "initial": "none"},
|
||||
{"prop": "background-origin", "initial": "padding-box"},
|
||||
{"prop": "background-position", "initial": "0 0"},
|
||||
{"prop": "background-position-x", "initial": "0"},
|
||||
{"prop": "background-position-y", "initial": "0"},
|
||||
{"prop": "background-repeat", "initial": "repeat"},
|
||||
{"prop": "background-size", "initial": "auto auto"},
|
||||
{
|
||||
"prop": "border",
|
||||
"initial": "${border-width} ${border-style} ${border-color}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "border-style", "initial": "none"},
|
||||
{"prop": "border-width", "initial": "medium"},
|
||||
{"prop": "border-color", "initial": "currentColor"},
|
||||
{"prop": "border-bottom", "initial": "0"},
|
||||
{"prop": "border-bottom-color", "initial": "currentColor"},
|
||||
{"prop": "border-bottom-left-radius", "initial": "0"},
|
||||
{"prop": "border-bottom-right-radius", "initial": "0"},
|
||||
{"prop": "border-bottom-style", "initial": "none"},
|
||||
{"prop": "border-bottom-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "border-collapse", "initial": "separate",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "border-image", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{"prop": "border-left", "initial": "0"},
|
||||
{"prop": "border-left-color", "initial": "currentColor"},
|
||||
{"prop": "border-left-style", "initial": "none"},
|
||||
{"prop": "border-left-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "border-radius", "initial": "0",
|
||||
"basic": true
|
||||
},
|
||||
{"prop": "border-right", "initial": "0"},
|
||||
{"prop": "border-right-color", "initial": "currentColor"},
|
||||
{"prop": "border-right-style", "initial": "none"},
|
||||
{"prop": "border-right-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "border-spacing", "initial": "0",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{"prop": "border-top", "initial": "0"},
|
||||
{"prop": "border-top-color", "initial": "currentColor"},
|
||||
{"prop": "border-top-left-radius", "initial": "0"},
|
||||
{"prop": "border-top-right-radius", "initial": "0"},
|
||||
{"prop": "border-top-style", "initial": "none"},
|
||||
{"prop": "border-top-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "bottom", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "box-shadow", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "box-sizing", "initial": "content-box",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "caption-side", "initial": "top",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "clear", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "clip", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "color", "initial": "#000",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "columns", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "column-count", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "column-fill", "initial": "balance",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "column-gap", "initial": "normal",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "column-rule",
|
||||
"initial": "${column-rule-width} ${column-rule-style} ${column-rule-color}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "column-rule-color", "initial": "currentColor"},
|
||||
{"prop": "column-rule-style", "initial": "none"},
|
||||
{"prop": "column-rule-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "column-span", "initial": "1",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "column-width", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "content", "initial": "normal",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "counter-increment", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "counter-reset", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "cursor", "initial": "auto",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "direction", "initial": "ltr",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "display", "initial": "inline",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "empty-cells", "initial": "show",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "float", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "font",
|
||||
"contains": [
|
||||
"font-style",
|
||||
"font-variant",
|
||||
"font-weight",
|
||||
"font-stretch",
|
||||
"font-size",
|
||||
"line-height",
|
||||
"font-family"
|
||||
],
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{"prop": "font-family", "initial": "serif"},
|
||||
{"prop": "font-size", "initial": "medium"},
|
||||
{"prop": "font-style", "initial": "normal"},
|
||||
{"prop": "font-variant", "initial": "normal"},
|
||||
{"prop": "font-weight", "initial": "normal"},
|
||||
{"prop": "font-stretch", "initial": "normal"},
|
||||
{
|
||||
"prop": "line-height", "initial": "normal",
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "height", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "hyphens", "initial": "none",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "left", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "letter-spacing", "initial": "normal",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "list-style",
|
||||
"initial": "${list-style-type} ${list-style-position} ${list-style-image}",
|
||||
"combined": true,
|
||||
"inherited": true
|
||||
},
|
||||
{"prop": "list-style-image", "initial": "none"},
|
||||
{"prop": "list-style-position", "initial": "outside"},
|
||||
{"prop": "list-style-type", "initial": "disc"},
|
||||
{
|
||||
"prop": "margin", "initial": "0",
|
||||
"basic": true
|
||||
},
|
||||
{"prop": "margin-bottom", "initial": "0"},
|
||||
{"prop": "margin-left", "initial": "0"},
|
||||
{"prop": "margin-right", "initial": "0"},
|
||||
{"prop": "margin-top", "initial": "0"},
|
||||
{
|
||||
"prop": "max-height", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "max-width", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "min-height", "initial": "0",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "min-width", "initial": "0",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "opacity", "initial": "1",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "orphans", "initial": "2",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "outline",
|
||||
"initial": "${outline-width} ${outline-style} ${outline-color}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "outline-color", "initial": "invert"},
|
||||
{"prop": "outline-style", "initial": "none"},
|
||||
{"prop": "outline-width", "initial": "medium"},
|
||||
{
|
||||
"prop": "overflow", "initial": "visible",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "overflow-x", "initial": "visible",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "overflow-y", "initial": "visible",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "padding", "initial": "0",
|
||||
"basic": true
|
||||
},
|
||||
{"prop": "padding-bottom", "initial": "0"},
|
||||
{"prop": "padding-left", "initial": "0"},
|
||||
{"prop": "padding-right", "initial": "0"},
|
||||
{"prop": "padding-top", "initial": "0"},
|
||||
{
|
||||
"prop": "page-break-after", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "page-break-before", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "page-break-inside", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "perspective", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "perspective-origin", "initial": "50% 50%",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "position", "initial": "static",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "quotes",
|
||||
"initial": "\u201C \u201D \u2018 \u2019"
|
||||
},
|
||||
{
|
||||
"prop": "right", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "tab-size", "initial": "8",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "table-layout", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "text-align", "initial": "left",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "text-align-last", "initial": "auto",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "text-decoration",
|
||||
"initial": "${text-decoration-line}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "text-decoration-color", "initial": "inherited"},
|
||||
{"prop": "text-decoration-color", "initial": "currentColor"},
|
||||
{"prop": "text-decoration-line", "initial": "none"},
|
||||
{"prop": "text-decoration-style", "initial": "solid"},
|
||||
{
|
||||
"prop": "text-indent", "initial": "0",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "text-shadow", "initial": "none",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "text-transform", "initial": "none",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "top", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "transform", "initial": "none",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "transform-origin", "initial": "50% 50% 0",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "transform-style", "initial": "flat",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "transition",
|
||||
"initial": "${transition-property} ${transition-duration} ${transition-timing-function} ${transition-delay}",
|
||||
"combined": true
|
||||
},
|
||||
{"prop": "transition-delay", "initial": "0s"},
|
||||
{"prop": "transition-duration", "initial": "0s"},
|
||||
{"prop": "transition-property", "initial": "none"},
|
||||
{"prop": "transition-timing-function", "initial": "ease"},
|
||||
{
|
||||
"prop": "unicode-bidi", "initial": "normal",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "vertical-align", "initial": "baseline",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "visibility", "initial": "visible",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "white-space", "initial": "normal",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "widows", "initial": "2",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "width", "initial": "auto",
|
||||
"basic": true
|
||||
},
|
||||
{
|
||||
"prop": "word-spacing", "initial": "normal",
|
||||
"basic": true,
|
||||
"inherited": true
|
||||
},
|
||||
{
|
||||
"prop": "z-index", "initial": "auto",
|
||||
"basic": true
|
||||
}
|
||||
]
|
101
web/node_modules/postcss-initial/lib/rules-fabric.js
generated
vendored
Normal file
101
web/node_modules/postcss-initial/lib/rules-fabric.js
generated
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
var decls = require('./decls.json');
|
||||
|
||||
function template(string, data) {
|
||||
return string.replace(/\$\{([\w\-\.]*)\}/g, function (_str, key) {
|
||||
var v = data[key];
|
||||
return typeof v !== 'undefined' && v !== null ? v : '';
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
Rules legend:
|
||||
- combined - if rule is combined it will be rendered with template
|
||||
- combined and basic rules are present in basic reset
|
||||
- combined, basic and inherited rules are present in full reset
|
||||
*/
|
||||
|
||||
function _getRulesMap(inputDecls) {
|
||||
return inputDecls
|
||||
.filter(function (decl) {
|
||||
return !decl.combined;
|
||||
})
|
||||
.reduce(function (map, decl) {
|
||||
map[decl.prop.replace(/\-/g, '')] = decl.initial;
|
||||
return map;
|
||||
}, {});
|
||||
}
|
||||
|
||||
function _compileDecls(inputDecls) {
|
||||
var templateVars = _getRulesMap(inputDecls);
|
||||
return inputDecls.map(function (decl) {
|
||||
if (decl.combined && decl.initial) {
|
||||
decl.initial = template(decl.initial.replace(/\-/g, ''), templateVars);
|
||||
}
|
||||
return decl;
|
||||
});
|
||||
}
|
||||
|
||||
function _getRequirements(inputDecls) {
|
||||
return inputDecls.reduce(function (map, decl) {
|
||||
if (!decl.contains) return map;
|
||||
return decl.contains.reduce(function (mapInner, dependency) {
|
||||
mapInner[dependency] = decl;
|
||||
return mapInner;
|
||||
}, map);
|
||||
}, {});
|
||||
}
|
||||
|
||||
function _expandContainments(inputDecls) {
|
||||
var requiredMap = _getRequirements(inputDecls);
|
||||
return inputDecls
|
||||
.filter(function (decl) {
|
||||
return !decl.contains;
|
||||
}).map(function (decl) {
|
||||
var dependency = requiredMap[decl.prop];
|
||||
if (dependency) {
|
||||
decl.requiredBy = dependency.prop;
|
||||
decl.basic = decl.basic || dependency.basic;
|
||||
decl.inherited = decl.inherited || dependency.inherited;
|
||||
}
|
||||
return decl;
|
||||
});
|
||||
}
|
||||
|
||||
var compiledDecls = _expandContainments(_compileDecls(decls));
|
||||
|
||||
function _clearDecls(rules, value) {
|
||||
return rules.map(function (rule) {
|
||||
return {
|
||||
prop: rule.prop,
|
||||
value: value.replace(/\binitial\b/g, rule.initial)
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function _allDecls(onlyInherited) {
|
||||
return compiledDecls.filter(function (decl) {
|
||||
var allowed = decl.combined || decl.basic;
|
||||
if (onlyInherited) return allowed && decl.inherited;
|
||||
return allowed;
|
||||
});
|
||||
}
|
||||
|
||||
function _concreteDecl(declName) {
|
||||
return compiledDecls.filter(function (decl) {
|
||||
return declName === decl.prop || declName === decl.requiredBy;
|
||||
});
|
||||
}
|
||||
|
||||
function makeFallbackFunction(onlyInherited) {
|
||||
return function (declName, declValue) {
|
||||
var result;
|
||||
if (declName === 'all') {
|
||||
result = _allDecls(onlyInherited);
|
||||
} else {
|
||||
result = _concreteDecl(declName);
|
||||
}
|
||||
return _clearDecls(result, declValue);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = makeFallbackFunction;
|
44
web/node_modules/postcss-initial/package.json
generated
vendored
Normal file
44
web/node_modules/postcss-initial/package.json
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "postcss-initial",
|
||||
"version": "3.0.4",
|
||||
"description": "PostCSS plugin to fallback initial keyword.",
|
||||
"keywords": [
|
||||
"postcss",
|
||||
"css",
|
||||
"postcss-plugin",
|
||||
"reset"
|
||||
],
|
||||
"author": "Maksim Koretskiy <mr.green.tv@gmail.com>",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/maximkoretskiy/postcss-initial.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"postcss": "^7.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "3.5.0",
|
||||
"eslint": "^4.18.2",
|
||||
"husky": "^3.0.9",
|
||||
"mocha": "^3.3.0",
|
||||
"standard-version": "^8.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint *.js ./lib/ ./test/",
|
||||
"test": "npm run lint && mocha",
|
||||
"tdd": "mocha -w --watch-extensions js,json,css",
|
||||
"release": "standard-version"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm test",
|
||||
"pre-push": "npm test"
|
||||
}
|
||||
},
|
||||
"standard-version": {
|
||||
"scripts": {
|
||||
"prerelease": "npm test"
|
||||
}
|
||||
}
|
||||
}
|
4
web/node_modules/postcss-initial/~/.config/configstore/update-notifier-npm.json
generated
vendored
Normal file
4
web/node_modules/postcss-initial/~/.config/configstore/update-notifier-npm.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"optOut": false,
|
||||
"lastUpdateCheck": 1618430037808
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue