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

21
node_modules/react-deep-force-update/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 library-boilerplate-author
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.

43
node_modules/react-deep-force-update/README.md generated vendored Normal file
View File

@@ -0,0 +1,43 @@
react-deep-force-update
=========================
[![build status](https://img.shields.io/travis/gaearon/react-deep-force-update/master.svg?style=flat-square)](https://travis-ci.org/gaearon/react-deep-force-update)
[![npm version](https://img.shields.io/npm/v/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update)
[![npm downloads](https://img.shields.io/npm/dm/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update)
Force-updates React component tree recursively.
**Dont use this in your application code!**
Youll only need this if youre writing a React development tool or library like [React Proxy](https://github.com/gaearon/react-proxy) and you want to enforce a deep update regardless of what component classes have to say.
## Installation
```
npm install --save react-deep-force-update
```
Requires React 0.13 and newer.
## Usage
```js
import React from 'react'; // or 'react-native'
import getDeepForceUpdate from 'react-deep-force-update';
const deepForceUpdate = getDeepForceUpdate(React);
const instance = React.render(<Something />);
// Will force-update the whole rendered tree
// even if components in the middle of it
// define a strict shouldComponentUpdate().
deepForceUpdate(instance);
```
## Credits
This project is based on the [code written by @syranide](https://github.com/gaearon/react-hot-api/commit/b3d6059a17407ef44765814ce06b36716d110041).
## License
MIT

87
node_modules/react-deep-force-update/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,87 @@
// Constant to identify a React Component. It's been extracted from ReactTypeOfWork
// (https://github.com/facebook/react/blob/master/src/shared/ReactTypeOfWork.js#L20)
'use strict';
exports.__esModule = true;
exports['default'] = getForceUpdate;
var ReactClassComponent = 2;
function traverseRenderedChildren(internalInstance, callback, argument) {
callback(internalInstance, argument);
if (internalInstance._renderedComponent) {
traverseRenderedChildren(internalInstance._renderedComponent, callback, argument);
} else {
for (var key in internalInstance._renderedChildren) {
if (internalInstance._renderedChildren.hasOwnProperty(key)) {
traverseRenderedChildren(internalInstance._renderedChildren[key], callback, argument);
}
}
}
}
function setPendingForceUpdate(internalInstance) {
if (internalInstance._pendingForceUpdate === false) {
internalInstance._pendingForceUpdate = true;
}
}
function forceUpdateIfPending(internalInstance, React) {
if (internalInstance._pendingForceUpdate === true) {
var publicInstance = internalInstance._instance;
React.Component.prototype.forceUpdate.call(publicInstance);
}
}
function deepForceUpdateStack(instance, React) {
var internalInstance = instance._reactInternalInstance;
traverseRenderedChildren(internalInstance, setPendingForceUpdate);
traverseRenderedChildren(internalInstance, forceUpdateIfPending, React);
}
function deepForceUpdate(instance, React) {
var root = instance._reactInternalFiber || instance._reactInternalInstance;
if (typeof root.tag !== 'number') {
// Traverse stack-based React tree.
return deepForceUpdateStack(instance, React);
}
var node = root;
while (true) {
if (node.tag === ReactClassComponent) {
var publicInstance = node.stateNode;
var updater = publicInstance.updater;
if (typeof publicInstance.forceUpdate === 'function') {
publicInstance.forceUpdate();
} else if (updater && typeof updater.enqueueForceUpdate === 'function') {
updater.enqueueForceUpdate(publicInstance);
}
}
if (node.child) {
node.child['return'] = node;
node = node.child;
continue;
}
if (node === root) {
return undefined;
}
while (!node.sibling) {
if (!node['return'] || node['return'] === root) {
return undefined;
}
node = node['return'];
}
node.sibling['return'] = node['return'];
node = node.sibling;
}
}
function getForceUpdate(React) {
return function (instance) {
deepForceUpdate(instance, React);
};
}
module.exports = exports['default'];

106
node_modules/react-deep-force-update/package.json generated vendored Normal file
View File

@@ -0,0 +1,106 @@
{
"_args": [
[
"react-deep-force-update@^1.0.0",
"/home/bernhard/freifunk-app/node_modules/react-proxy"
]
],
"_from": "react-deep-force-update@>=1.0.0 <2.0.0",
"_id": "react-deep-force-update@1.1.1",
"_inCache": true,
"_installable": true,
"_location": "/react-deep-force-update",
"_nodeVersion": "8.1.2",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/react-deep-force-update-1.1.1.tgz_1503490298960_0.5825116515625268"
},
"_npmUser": {
"email": "dan.abramov@gmail.com",
"name": "gaearon"
},
"_npmVersion": "4.6.1",
"_phantomChildren": {},
"_requested": {
"name": "react-deep-force-update",
"raw": "react-deep-force-update@^1.0.0",
"rawSpec": "^1.0.0",
"scope": null,
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/react-proxy"
],
"_resolved": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.1.1.tgz",
"_shasum": "bcd31478027b64b3339f108921ab520b4313dc2c",
"_shrinkwrap": null,
"_spec": "react-deep-force-update@^1.0.0",
"_where": "/home/bernhard/freifunk-app/node_modules/react-proxy",
"author": {
"email": "dan.abramov@me.com",
"name": "Dan Abramov"
},
"bugs": {
"url": "https://github.com/gaearon/react-deep-force-update/issues"
},
"dependencies": {},
"description": "Force-updates React component tree recursively",
"devDependencies": {
"babel": "^5.5.8",
"babel-core": "^5.6.18",
"babel-eslint": "^4.1.8",
"eslint": "^0.23",
"eslint-config-airbnb": "0.0.6",
"eslint-plugin-react": "^2.3.0",
"expect": "^1.6.0",
"jsdom": "^7.2.2",
"mocha": "^2.2.5",
"mocha-jsdom": "^1.1.0",
"react": "^0.14.0-rc1",
"react-addons-test-utils": "^0.14.0-rc1",
"rimraf": "^2.3.4"
},
"directories": {},
"dist": {
"shasum": "bcd31478027b64b3339f108921ab520b4313dc2c",
"tarball": "https://registry.npmjs.org/react-deep-force-update/-/react-deep-force-update-1.1.1.tgz"
},
"files": [
"lib",
"src"
],
"gitHead": "8cb0bc8288c302d56d47bf6eef5a63c5a92e9efd",
"homepage": "https://github.com/gaearon/react-deep-force-update",
"keywords": [
"react"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "gaearon",
"email": "dan.abramov@gmail.com"
},
{
"name": "wkwiatek",
"email": "wojtek.kwiatek@gmail.com"
}
],
"name": "react-deep-force-update",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/gaearon/react-deep-force-update.git"
},
"scripts": {
"build": "babel src --out-dir lib",
"clean": "rimraf lib",
"lint": "eslint src test",
"prepublish": "npm run clean && npm run build",
"test": "mocha --compilers js:babel/register --recursive",
"test:watch": "npm run test -- --watch"
},
"version": "1.1.1"
}

88
node_modules/react-deep-force-update/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,88 @@
// Constant to identify a React Component. It's been extracted from ReactTypeOfWork
// (https://github.com/facebook/react/blob/master/src/shared/ReactTypeOfWork.js#L20)
const ReactClassComponent = 2;
function traverseRenderedChildren(internalInstance, callback, argument) {
callback(internalInstance, argument);
if (internalInstance._renderedComponent) {
traverseRenderedChildren(
internalInstance._renderedComponent,
callback,
argument
);
} else {
for (let key in internalInstance._renderedChildren) {
if (internalInstance._renderedChildren.hasOwnProperty(key)) {
traverseRenderedChildren(
internalInstance._renderedChildren[key],
callback,
argument
);
}
}
}
}
function setPendingForceUpdate(internalInstance) {
if (internalInstance._pendingForceUpdate === false) {
internalInstance._pendingForceUpdate = true;
}
}
function forceUpdateIfPending(internalInstance, React) {
if (internalInstance._pendingForceUpdate === true) {
const publicInstance = internalInstance._instance;
React.Component.prototype.forceUpdate.call(publicInstance);
}
}
function deepForceUpdateStack(instance, React) {
const internalInstance = instance._reactInternalInstance;
traverseRenderedChildren(internalInstance, setPendingForceUpdate);
traverseRenderedChildren(internalInstance, forceUpdateIfPending, React);
}
function deepForceUpdate(instance, React) {
const root = instance._reactInternalFiber || instance._reactInternalInstance;
if (typeof root.tag !== 'number') {
// Traverse stack-based React tree.
return deepForceUpdateStack(instance, React);
}
let node = root;
while (true) {
if (node.tag === ReactClassComponent) {
const publicInstance = node.stateNode;
const { updater } = publicInstance;
if (typeof publicInstance.forceUpdate === 'function') {
publicInstance.forceUpdate();
} else if (updater && typeof updater.enqueueForceUpdate === 'function') {
updater.enqueueForceUpdate(publicInstance);
}
}
if (node.child) {
node.child.return = node;
node = node.child;
continue;
}
if (node === root) {
return undefined;
}
while (!node.sibling) {
if (!node.return || node.return === root) {
return undefined;
}
node = node.return;
}
node.sibling.return = node.return;
node = node.sibling;
}
}
export default function getForceUpdate(React) {
return instance => {
deepForceUpdate(instance, React);
};
}