initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

27
node_modules/react-clone-referenced-element/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,27 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

21
node_modules/react-clone-referenced-element/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-present James Ide
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.

40
node_modules/react-clone-referenced-element/README.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
# cloneReferencedElement for React
This is a version of `React.cloneElement` that preserves the original element's ref even if you specify a new ref for the clone.
## Installation
Install this module from npm:
```sh
npm install --save react-clone-referenced-element
```
This library was designed for React Native, so if you are using it with React in other environments, you will need to compile the code first. How you do this is up to you. With Babel, use the following plugins:
- es2015-block-scoping
- object-rest-spread
- trailing-function-commas
You will also need to transform or define a global variable named `__DEV__`.
## Usage
The signature of `cloneReferencedElement` is the same as that of `React.cloneElement`. However, when using callback refs, it will preserve the ref on the original component if there is one.
```js
let element =
<Component ref={component => {
console.log('Running the original ref handler');
}} />
cloneReferencedElement(element, {
ref(component) {
console.log('Running the clone ref handler');
},
});
```
When the component is mounted, the console will display:
```
Running the clone ref handler
Running the original ref handler
```

View File

@@ -0,0 +1,32 @@
'use strict';
let React = require('react');
function cloneReferencedElement(element, config, ...children) {
let cloneRef = config.ref;
let originalRef = element.ref;
if (originalRef == null || cloneRef == null) {
return React.cloneElement(element, config, ...children);
}
if (typeof originalRef !== 'function') {
if (__DEV__) {
console.warn(
'Cloning an element with a ref that will be overwritten because it ' +
'is not a function. Use a composable callback-style ref instead. ' +
'Ignoring ref: ' + originalRef,
);
}
return React.cloneElement(element, config, ...children);
}
return React.cloneElement(element, {
...config,
ref(component) {
cloneRef(component);
originalRef(component);
},
}, ...children);
}
module.exports = cloneReferencedElement;

View File

@@ -0,0 +1,74 @@
{
"_args": [
[
"react-clone-referenced-element@^1.0.1",
"/home/bernhard/freifunk-app/node_modules/react-native"
]
],
"_from": "react-clone-referenced-element@>=1.0.1 <2.0.0",
"_id": "react-clone-referenced-element@1.0.1",
"_inCache": true,
"_installable": true,
"_location": "/react-clone-referenced-element",
"_nodeVersion": "5.3.0",
"_npmUser": {
"email": "ide+npm@jameside.com",
"name": "ide"
},
"_npmVersion": "3.3.12",
"_phantomChildren": {},
"_requested": {
"name": "react-clone-referenced-element",
"raw": "react-clone-referenced-element@^1.0.1",
"rawSpec": "^1.0.1",
"scope": null,
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/react-native"
],
"_resolved": "https://registry.npmjs.org/react-clone-referenced-element/-/react-clone-referenced-element-1.0.1.tgz",
"_shasum": "2bba8c69404c5e4a944398600bcc4c941f860682",
"_shrinkwrap": null,
"_spec": "react-clone-referenced-element@^1.0.1",
"_where": "/home/bernhard/freifunk-app/node_modules/react-native",
"author": {
"name": "James Ide"
},
"bugs": {
"url": "https://github.com/ide/react-clone-referenced-element/issues"
},
"dependencies": {},
"description": "Clones a React element while preserving its original ref",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "2bba8c69404c5e4a944398600bcc4c941f860682",
"tarball": "https://registry.npmjs.org/react-clone-referenced-element/-/react-clone-referenced-element-1.0.1.tgz"
},
"gitHead": "fe8873dad29f6beba7168cafe733d48ea26a1cc0",
"homepage": "https://github.com/ide/react-clone-referenced-element#readme",
"keywords": [
"clone",
"element",
"react"
],
"license": "MIT",
"main": "cloneReferencedElement.js",
"maintainers": [
{
"name": "ide",
"email": "ide+npm@jameside.com"
}
],
"name": "react-clone-referenced-element",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/ide/react-clone-referenced-element.git"
},
"scripts": {},
"version": "1.0.1"
}