progress on migrating to heex templates and font-icons
This commit is contained in:
parent
d43daafdb7
commit
3eff955672
21793 changed files with 2161968 additions and 16895 deletions
assets_old/node_modules/hsl-regex
12
assets_old/node_modules/hsl-regex/.editorconfig
generated
vendored
Normal file
12
assets_old/node_modules/hsl-regex/.editorconfig
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
1
assets_old/node_modules/hsl-regex/.npmignore
generated
vendored
Normal file
1
assets_old/node_modules/hsl-regex/.npmignore
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules/
|
5
assets_old/node_modules/hsl-regex/.travis.yml
generated
vendored
Normal file
5
assets_old/node_modules/hsl-regex/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
language: node_js
|
||||
|
||||
node_js:
|
||||
- 0.10
|
||||
- 0.11
|
21
assets_old/node_modules/hsl-regex/LICENSE.md
generated
vendored
Normal file
21
assets_old/node_modules/hsl-regex/LICENSE.md
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 John Otander
|
||||
|
||||
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.
|
51
assets_old/node_modules/hsl-regex/README.md
generated
vendored
Normal file
51
assets_old/node_modules/hsl-regex/README.md
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
# hsl-regex
|
||||
|
||||
[](https://travis-ci.org/regexps/hsl-regex)
|
||||
|
||||
Regex for matching HSL colors.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install --save hsl-regex
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
var hslRegex = require('hsl-regex');
|
||||
|
||||
hslRegex({ exact: true }).test('hsl(123, 45%, 67%)'); // => true
|
||||
hslRegex({ exact: true }).test('foo bar'); // => false
|
||||
|
||||
hslRegex({ exact: true }).exec('hsl(1, 1.111%, 1.1111%)');
|
||||
// => [
|
||||
// 'hsl(1, 1.111%, 1.1111%)',
|
||||
// '1',
|
||||
// '1.111%',
|
||||
// '1.1111%',
|
||||
// index: 0,
|
||||
// input: 'hsl(1, 1.111%, 1.1111%)'
|
||||
// ]
|
||||
|
||||
'hsl(123, 45%, 67%) cats and dogs'.match(hslRegex());
|
||||
// = ['hsl(123, 45%, 67%)']
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
## Contributing
|
||||
|
||||
1. Fork it
|
||||
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||
3. Commit your changes (`git commit -am 'Add some feature'`)
|
||||
4. Push to the branch (`git push origin my-new-feature`)
|
||||
5. Create new Pull Request
|
||||
|
||||
Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).
|
||||
|
||||
***
|
||||
|
||||
> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).
|
9
assets_old/node_modules/hsl-regex/index.js
generated
vendored
Normal file
9
assets_old/node_modules/hsl-regex/index.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function hslRegex(options) {
|
||||
options = options || {};
|
||||
|
||||
return options.exact ?
|
||||
/^hsl\(\s*(\d+)\s*,\s*(\d*(?:\.\d+)?%)\s*,\s*(\d*(?:\.\d+)?%)\)$/ :
|
||||
/hsl\(\s*(\d+)\s*,\s*(\d*(?:\.\d+)?%)\s*,\s*(\d*(?:\.\d+)?%)\)/ig;
|
||||
}
|
33
assets_old/node_modules/hsl-regex/package.json
generated
vendored
Normal file
33
assets_old/node_modules/hsl-regex/package.json
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"name": "hsl-regex",
|
||||
"description": "Regex for matching HSL colors.",
|
||||
"author": "John Otander",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/regexps/hsl-regex.git"
|
||||
},
|
||||
"keywords": [
|
||||
"hsl",
|
||||
"regex",
|
||||
"regexp",
|
||||
"color",
|
||||
"css"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/regexps/hsl-regex/issues"
|
||||
},
|
||||
"homepage": "https://github.com/regexps/hsl-regex",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
}
|
||||
}
|
52
assets_old/node_modules/hsl-regex/test/test.js
generated
vendored
Normal file
52
assets_old/node_modules/hsl-regex/test/test.js
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
var assert = require('assert');
|
||||
var hslRegex = require('..');
|
||||
|
||||
var hslStrings = [
|
||||
'hsl(111, 12.343%, 0.9%)',
|
||||
'hsl(123, 45%, 67%)',
|
||||
'hsl(1, 1.111%, 1.1111%)',
|
||||
'hsl(1, .111%, .1111%)'
|
||||
];
|
||||
|
||||
var inexactHslStrings = [
|
||||
'hsl(,,,)',
|
||||
'hsl(12,,)',
|
||||
'hsl(1, 1.111%, 1.1111%) ',
|
||||
' hSl(1, 1.111%, 1.1111%)',
|
||||
'hsla(1, .111%, .1111%, .9)'
|
||||
];
|
||||
|
||||
describe('hsl-regex', function() {
|
||||
|
||||
describe('exact: true', function() {
|
||||
|
||||
it('should return a regex that matches exact hsl strings', function() {
|
||||
hslStrings.forEach(function(hsl) {
|
||||
assert.ok(hslRegex({ exact: true }).test(hsl));
|
||||
});
|
||||
});
|
||||
|
||||
it('should return a regex that does not match invalid hsl strings', function() {
|
||||
inexactHslStrings.forEach(function(invalidHsl) {
|
||||
assert.ok(!hslRegex({ exact: true }).test(invalidHsl));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('g', function() {
|
||||
|
||||
it('should match hsl strings', function() {
|
||||
assert.deepEqual(
|
||||
hslStrings.join('foobar').match(hslRegex()),
|
||||
hslStrings
|
||||
)
|
||||
});
|
||||
|
||||
it('should not match non hsl strings', function() {
|
||||
assert.deepEqual(
|
||||
inexactHslStrings.join('foobar').match(hslRegex()),
|
||||
['hsl(1, 1.111%, 1.1111%)', 'hSl(1, 1.111%, 1.1111%)']
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue