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

BIN
node_modules/clipboardy/fallbacks/.DS_Store generated vendored Normal file

Binary file not shown.

BIN
node_modules/clipboardy/fallbacks/linux/xsel generated vendored Executable file

Binary file not shown.

BIN
node_modules/clipboardy/fallbacks/windows/.DS_Store generated vendored Normal file

Binary file not shown.

BIN
node_modules/clipboardy/fallbacks/windows/clipboard_i686.exe generated vendored Executable file

Binary file not shown.

Binary file not shown.

41
node_modules/clipboardy/index.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
'use strict';
const termux = require('./lib/termux.js');
const linux = require('./lib/linux.js');
const macos = require('./lib/macos.js');
const windows = require('./lib/windows.js');
function platform() {
switch (process.platform) {
case 'darwin':
return macos;
case 'win32':
return windows;
case 'android':
if (process.env.PREFIX !== '/data/data/com.termux/files/usr') {
throw new Error('You need to install Termux for this module to work on Android: https://termux.com');
}
return termux;
default:
return linux;
}
}
exports.write = input => {
if (typeof input !== 'string') {
return Promise.reject(new TypeError(`Expected a string, got ${typeof input}`));
}
return platform().copy({input}).then(() => {});
};
exports.read = () => platform().paste({stripEof: false});
exports.writeSync = input => {
if (typeof input !== 'string') {
throw new TypeError(`Expected a string, got ${typeof input}`);
}
platform().copySync({input});
};
exports.readSync = () => platform().pasteSync({stripEof: false}).stdout;

48
node_modules/clipboardy/lib/linux.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
'use strict';
const path = require('path');
const execa = require('execa');
const handler = err => {
if (err.code === 'ENOENT') {
throw new Error('Couldn\'t find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel');
}
throw err;
};
const xsel = path.join(__dirname, '../fallbacks/linux/xsel');
module.exports = {
copy: opts => {
return execa(xsel, ['--clipboard', '--input'], opts)
.catch(() => execa('xsel', ['--clipboard', '--input'], opts))
.catch(handler);
},
paste: opts => {
return execa.stdout(xsel, ['--clipboard', '--output'], opts)
.catch(() => execa.stdout('xsel', ['--clipboard', '--output'], opts))
.catch(handler);
},
copySync: opts => {
try {
return execa.sync(xsel, ['--clipboard', '--input'], opts);
} catch (err) {
try {
return execa.sync('xsel', ['--clipboard', '--input'], opts);
} catch (err) {
handler(err);
}
}
},
pasteSync: opts => {
try {
return execa.sync(xsel, ['--clipboard', '--output'], opts);
} catch (err) {
try {
return execa.sync('xsel', ['--clipboard', '--output'], opts);
} catch (err) {
handler(err);
}
}
}
};

11
node_modules/clipboardy/lib/macos.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
const execa = require('execa');
const env = Object.assign({}, process.env, {LC_CTYPE: 'UTF-8'});
module.exports = {
copy: opts => execa('pbcopy', Object.assign({}, opts, {env})),
paste: opts => execa.stdout('pbpaste', Object.assign({}, opts, {env})),
copySync: opts => execa.sync('pbcopy', Object.assign({}, opts, {env})),
pasteSync: opts => execa.sync('pbpaste', Object.assign({}, opts, {env}))
};

29
node_modules/clipboardy/lib/termux.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
'use strict';
const execa = require('execa');
const handler = err => {
if (err.code === 'ENOENT') {
throw new Error('Couldn\'t find the termux-api scripts. You can install them with: apt install termux-api');
}
throw err;
};
module.exports = {
copy: opts => execa('termux-clipboard-set', opts).catch(handler),
paste: opts => execa.stdout('termux-clipboard-get', opts).catch(handler),
copySync: opts => {
try {
return execa.sync('termux-clipboard-set', opts);
} catch (err) {
handler(err);
}
},
pasteSync: opts => {
try {
return execa.sync('termux-clipboard-get', opts);
} catch (err) {
handler(err);
}
}
};

16
node_modules/clipboardy/lib/windows.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
const path = require('path');
const execa = require('execa');
const arch = require('arch');
// Binaries from: https://github.com/sindresorhus/win-clipboard
const winBinPath = arch() === 'x64' ?
path.join(__dirname, '../fallbacks/windows/clipboard_x86_64.exe') :
path.join(__dirname, '../fallbacks/windows/clipboard_i686.exe');
module.exports = {
copy: opts => execa(winBinPath, ['--copy'], opts),
paste: opts => execa.stdout(winBinPath, ['--paste'], opts),
copySync: opts => execa.sync(winBinPath, ['--copy'], opts),
pasteSync: opts => execa.sync(winBinPath, ['--paste'], opts)
};

9
node_modules/clipboardy/license generated vendored Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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.

110
node_modules/clipboardy/package.json generated vendored Normal file
View File

@@ -0,0 +1,110 @@
{
"_args": [
[
"clipboardy@^1.2.2",
"/home/bernhard/freifunk-app/node_modules/envinfo"
]
],
"_from": "clipboardy@>=1.2.2 <2.0.0",
"_id": "clipboardy@1.2.3",
"_inCache": true,
"_installable": true,
"_location": "/clipboardy",
"_nodeVersion": "8.9.4",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/clipboardy_1.2.3_1518975579998_0.7684372771276531"
},
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"name": "clipboardy",
"raw": "clipboardy@^1.2.2",
"rawSpec": "^1.2.2",
"scope": null,
"spec": ">=1.2.2 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/envinfo"
],
"_resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-1.2.3.tgz",
"_shasum": "0526361bf78724c1f20be248d428e365433c07ef",
"_shrinkwrap": null,
"_spec": "clipboardy@^1.2.2",
"_where": "/home/bernhard/freifunk-app/node_modules/envinfo",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/clipboardy/issues"
},
"dependencies": {
"arch": "^2.1.0",
"execa": "^0.8.0"
},
"description": "Access the system clipboard (copy/paste)",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"fileCount": 13,
"integrity": "sha512-2WNImOvCRe6r63Gk9pShfkwXsVtKCroMAevIbiae021mS850UkWPbevxsBz3tnvjZIEGvlwaqCPsw+4ulzNgJA==",
"shasum": "0526361bf78724c1f20be248d428e365433c07ef",
"tarball": "https://registry.npmjs.org/clipboardy/-/clipboardy-1.2.3.tgz",
"unpackedSize": 926130
},
"engines": {
"node": ">=4"
},
"files": [
"fallbacks",
"index.js",
"lib"
],
"gitHead": "0c0404756999fb5c9e875bff569fa71bd195e098",
"homepage": "https://github.com/sindresorhus/clipboardy#readme",
"keywords": [
"clip",
"clipboard",
"copy",
"copy-paste",
"paste",
"pasteboard",
"pbcopy",
"read",
"write",
"xclip",
"xsel"
],
"license": "MIT",
"maintainers": [
{
"name": "floatdrop",
"email": "floatdrop@gmail.com"
},
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "clipboardy",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/clipboardy.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.2.3"
}

64
node_modules/clipboardy/readme.md generated vendored Normal file
View File

@@ -0,0 +1,64 @@
# clipboardy [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/clipboardy.svg?branch=master)](https://travis-ci.org/sindresorhus/clipboardy) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/gflt3gjn1ia0a3vo/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/clipboardy/branch/master)
> Access the system clipboard (copy/paste)
Cross-platform. Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with [Termux](https://termux.com/).
## Install
```
$ npm install clipboardy
```
## Usage
```js
const clipboardy = require('clipboardy');
clipboardy.writeSync('🦄');
clipboardy.readSync();
//=> '🦄'
```
## API
### clipboardy
#### .write(input)
Write (copy) to the clipboard asynchronously. Returns a `Promise`.
##### input
Type: `string`
#### .read()
Read (paste) from the clipboard asynchronously. Returns a `Promise`.
#### .writeSync(input)
Write (copy) to the clipboard synchronously.
##### input
Type: `string`
#### .readSync()
Read (paste) from the clipboard synchronously.
## Related
- [clipboard-cli](https://github.com/sindresorhus/clipboard-cli) - CLI for this module
- [copy-text-to-clipboard](https://github.com/sindresorhus/copy-text-to-clipboard) - Copy text to the clipboard in the browser
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)