Started adding frontend notifications, fixing firefox file upload bug

This commit is contained in:
2018-01-22 19:03:06 -05:00
parent f14e96c490
commit 5856052f82
1536 changed files with 109746 additions and 2658 deletions

View File

@@ -0,0 +1,6 @@
test
coverage
.travis.yml
.eslintrc
.gitignore
.editorconfig

View File

@@ -0,0 +1 @@
{"/home/espenh/webdev/hyphenate-style-name/index.js":{"path":"/home/espenh/webdev/hyphenate-style-name/index.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":3,"column":31}},"1":{"start":{"line":4,"column":16},"end":{"line":4,"column":22}},"2":{"start":{"line":5,"column":12},"end":{"line":5,"column":14}},"3":{"start":{"line":8,"column":4},"end":{"line":13,"column":34}},"4":{"start":{"line":16,"column":0},"end":{"line":16,"column":36}}},"fnMap":{"0":{"name":"hyphenateStyleName","decl":{"start":{"line":7,"column":9},"end":{"line":7,"column":27}},"loc":{"start":{"line":7,"column":36},"end":{"line":14,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":8,"column":11},"end":{"line":13,"column":33}},"type":"cond-expr","locations":[{"start":{"line":9,"column":6},"end":{"line":9,"column":19}},{"start":{"line":10,"column":6},"end":{"line":13,"column":33}}]}},"s":{"0":1,"1":1,"2":1,"3":15,"4":1},"f":{"0":15},"b":{"0":[8,7]},"hash":"d73774ba914d4df5efb8796105ae1a1baaff4023"}}

View File

@@ -0,0 +1,28 @@
Copyright (c) 2015, Espen Hovlandsdal
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of hyphenate-style-name nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,28 @@
# hyphenate-style-name
[![npm version](http://img.shields.io/npm/v/hyphenate-style-name.svg?style=flat-square)](http://browsenpm.org/package/hyphenate-style-name)[![Build Status](http://img.shields.io/travis/rexxars/hyphenate-style-name/master.svg?style=flat-square)](https://travis-ci.org/rexxars/hyphenate-style-name)[![Coverage Status](http://img.shields.io/codeclimate/coverage/github/rexxars/hyphenate-style-name.svg?style=flat-square)](https://codeclimate.com/github/rexxars/hyphenate-style-name)[![Code Climate](http://img.shields.io/codeclimate/github/rexxars/hyphenate-style-name.svg?style=flat-square)](https://codeclimate.com/github/rexxars/hyphenate-style-name/)
Hyphenates a camelcased CSS property name. For example:
- `backgroundColor` => `background-color`
- `MozTransition` => `-moz-transition`
- `msTransition` => `-ms-transition`
- `color` => `color`
# Installation
```bash
$ npm install --save hyphenate-style-name
```
# Usage
```js
var hyphenateStyleName = require('hyphenate-style-name');
console.log(hyphenateStyleName('MozTransition')); // -moz-transition
```
# License
BSD-3-Clause licensed. See LICENSE.

View File

@@ -0,0 +1,16 @@
'use strict';
var uppercasePattern = /[A-Z]/g;
var msPattern = /^ms-/;
var cache = {};
function hyphenateStyleName(string) {
return string in cache
? cache[string]
: cache[string] = string
.replace(uppercasePattern, '-$&')
.toLowerCase()
.replace(msPattern, '-ms-');
}
module.exports = hyphenateStyleName;

View File

@@ -0,0 +1,62 @@
{
"_from": "hyphenate-style-name@^1.0.2",
"_id": "hyphenate-style-name@1.0.2",
"_inBundle": false,
"_integrity": "sha1-MRYKNpMK2vH8BMYHT360FGXU7Es=",
"_location": "/react-toastify/hyphenate-style-name",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "hyphenate-style-name@^1.0.2",
"name": "hyphenate-style-name",
"escapedName": "hyphenate-style-name",
"rawSpec": "^1.0.2",
"saveSpec": null,
"fetchSpec": "^1.0.2"
},
"_requiredBy": [
"/react-toastify/css-in-js-utils"
],
"_resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.2.tgz",
"_shasum": "31160a36930adaf1fc04c6074f7eb41465d4ec4b",
"_spec": "hyphenate-style-name@^1.0.2",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI\\node_modules\\react-toastify\\node_modules\\css-in-js-utils",
"author": {
"name": "Espen Hovlandsdal",
"email": "espen@hovlandsdal.com"
},
"bugs": {
"url": "https://github.com/rexxars/hyphenate-style-name/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Hyphenates a camelcased CSS property name",
"devDependencies": {
"eslint": "^3.8.1",
"eslint-config-vaffel": "^5.0.0",
"nyc": "^8.3.2",
"tape": "^4.6.2"
},
"homepage": "https://github.com/rexxars/hyphenate-style-name#readme",
"keywords": [
"hyphenate",
"style",
"css",
"camelcase"
],
"license": "BSD-3-Clause",
"main": "index.js",
"name": "hyphenate-style-name",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/rexxars/hyphenate-style-name.git"
},
"scripts": {
"coverage": "nyc tape -- test/**/*.test.js",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "tape test/**/*.test.js"
},
"version": "1.0.2"
}

File diff suppressed because it is too large Load Diff