gdpr audit implemented, email log, vollmachten, pdf delete cancel data privacy and vollmachten, removed message no id card in engergy car, and other contracts that are not telecom contracts, added insert counter for engery
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
39679
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||
|
||||
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.
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
# W3C keyname
|
||||
|
||||
Tiny library that exports a function `keyName` that takes a keyboard event and
|
||||
returns a
|
||||
[`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)-style
|
||||
string. Will use the actual `key` property of the event if available,
|
||||
and fall back to a value synthesized from the `keyCode` otherwise.
|
||||
|
||||
Probably often wrong on non-US keyboards, since the correspondence
|
||||
between a key code and the character it produces when shift is held is
|
||||
predicted based on a hard-coded table. Meant as a fallback for
|
||||
`KeyboardEvent.key`, not a replacement.
|
||||
|
||||
The lookup tables from key codes (`event.keyCode`) to names are
|
||||
exported as `base` (when Shift isn't held) and `shift` (when Shift is
|
||||
held).
|
||||
|
||||
License: MIT
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var base = {
|
||||
8: "Backspace",
|
||||
9: "Tab",
|
||||
10: "Enter",
|
||||
12: "NumLock",
|
||||
13: "Enter",
|
||||
16: "Shift",
|
||||
17: "Control",
|
||||
18: "Alt",
|
||||
20: "CapsLock",
|
||||
27: "Escape",
|
||||
32: " ",
|
||||
33: "PageUp",
|
||||
34: "PageDown",
|
||||
35: "End",
|
||||
36: "Home",
|
||||
37: "ArrowLeft",
|
||||
38: "ArrowUp",
|
||||
39: "ArrowRight",
|
||||
40: "ArrowDown",
|
||||
44: "PrintScreen",
|
||||
45: "Insert",
|
||||
46: "Delete",
|
||||
59: ";",
|
||||
61: "=",
|
||||
91: "Meta",
|
||||
92: "Meta",
|
||||
106: "*",
|
||||
107: "+",
|
||||
108: ",",
|
||||
109: "-",
|
||||
110: ".",
|
||||
111: "/",
|
||||
144: "NumLock",
|
||||
145: "ScrollLock",
|
||||
160: "Shift",
|
||||
161: "Shift",
|
||||
162: "Control",
|
||||
163: "Control",
|
||||
164: "Alt",
|
||||
165: "Alt",
|
||||
173: "-",
|
||||
186: ";",
|
||||
187: "=",
|
||||
188: ",",
|
||||
189: "-",
|
||||
190: ".",
|
||||
191: "/",
|
||||
192: "`",
|
||||
219: "[",
|
||||
220: "\\",
|
||||
221: "]",
|
||||
222: "'"
|
||||
};
|
||||
|
||||
var shift = {
|
||||
48: ")",
|
||||
49: "!",
|
||||
50: "@",
|
||||
51: "#",
|
||||
52: "$",
|
||||
53: "%",
|
||||
54: "^",
|
||||
55: "&",
|
||||
56: "*",
|
||||
57: "(",
|
||||
59: ":",
|
||||
61: "+",
|
||||
173: "_",
|
||||
186: ":",
|
||||
187: "+",
|
||||
188: "<",
|
||||
189: "_",
|
||||
190: ">",
|
||||
191: "?",
|
||||
192: "~",
|
||||
219: "{",
|
||||
220: "|",
|
||||
221: "}",
|
||||
222: "\""
|
||||
};
|
||||
|
||||
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
||||
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
||||
|
||||
// Fill in the digit keys
|
||||
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
|
||||
|
||||
// The function keys
|
||||
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
|
||||
|
||||
// And the alphabetic keys
|
||||
for (var i = 65; i <= 90; i++) {
|
||||
base[i] = String.fromCharCode(i + 32);
|
||||
shift[i] = String.fromCharCode(i);
|
||||
}
|
||||
|
||||
// For each code that doesn't have a shift-equivalent, copy the base name
|
||||
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
|
||||
|
||||
function keyName(event) {
|
||||
// On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.
|
||||
// On IE, shift effect is never included in `.key`.
|
||||
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||
|
||||
ie && event.shiftKey && event.key && event.key.length == 1 ||
|
||||
event.key == "Unidentified";
|
||||
var name = (!ignoreKey && event.key) ||
|
||||
(event.shiftKey ? shift : base)[event.keyCode] ||
|
||||
event.key || "Unidentified";
|
||||
// Edge sometimes produces wrong names (Issue #3)
|
||||
if (name == "Esc") name = "Escape";
|
||||
if (name == "Del") name = "Delete";
|
||||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
||||
if (name == "Left") name = "ArrowLeft";
|
||||
if (name == "Up") name = "ArrowUp";
|
||||
if (name == "Right") name = "ArrowRight";
|
||||
if (name == "Down") name = "ArrowDown";
|
||||
return name
|
||||
}
|
||||
|
||||
exports.base = base;
|
||||
exports.keyName = keyName;
|
||||
exports.shift = shift;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export function keyName(event: Event): string;
|
||||
|
||||
export const base: {[keyCode: number]: string};
|
||||
|
||||
export const shift: {[keyCode: number]: string};
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export function keyName(event: Event): string;
|
||||
|
||||
export const base: {[keyCode: number]: string};
|
||||
|
||||
export const shift: {[keyCode: number]: string};
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
export var base = {
|
||||
8: "Backspace",
|
||||
9: "Tab",
|
||||
10: "Enter",
|
||||
12: "NumLock",
|
||||
13: "Enter",
|
||||
16: "Shift",
|
||||
17: "Control",
|
||||
18: "Alt",
|
||||
20: "CapsLock",
|
||||
27: "Escape",
|
||||
32: " ",
|
||||
33: "PageUp",
|
||||
34: "PageDown",
|
||||
35: "End",
|
||||
36: "Home",
|
||||
37: "ArrowLeft",
|
||||
38: "ArrowUp",
|
||||
39: "ArrowRight",
|
||||
40: "ArrowDown",
|
||||
44: "PrintScreen",
|
||||
45: "Insert",
|
||||
46: "Delete",
|
||||
59: ";",
|
||||
61: "=",
|
||||
91: "Meta",
|
||||
92: "Meta",
|
||||
106: "*",
|
||||
107: "+",
|
||||
108: ",",
|
||||
109: "-",
|
||||
110: ".",
|
||||
111: "/",
|
||||
144: "NumLock",
|
||||
145: "ScrollLock",
|
||||
160: "Shift",
|
||||
161: "Shift",
|
||||
162: "Control",
|
||||
163: "Control",
|
||||
164: "Alt",
|
||||
165: "Alt",
|
||||
173: "-",
|
||||
186: ";",
|
||||
187: "=",
|
||||
188: ",",
|
||||
189: "-",
|
||||
190: ".",
|
||||
191: "/",
|
||||
192: "`",
|
||||
219: "[",
|
||||
220: "\\",
|
||||
221: "]",
|
||||
222: "'"
|
||||
}
|
||||
|
||||
export var shift = {
|
||||
48: ")",
|
||||
49: "!",
|
||||
50: "@",
|
||||
51: "#",
|
||||
52: "$",
|
||||
53: "%",
|
||||
54: "^",
|
||||
55: "&",
|
||||
56: "*",
|
||||
57: "(",
|
||||
59: ":",
|
||||
61: "+",
|
||||
173: "_",
|
||||
186: ":",
|
||||
187: "+",
|
||||
188: "<",
|
||||
189: "_",
|
||||
190: ">",
|
||||
191: "?",
|
||||
192: "~",
|
||||
219: "{",
|
||||
220: "|",
|
||||
221: "}",
|
||||
222: "\""
|
||||
}
|
||||
|
||||
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform)
|
||||
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent)
|
||||
|
||||
// Fill in the digit keys
|
||||
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i)
|
||||
|
||||
// The function keys
|
||||
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i
|
||||
|
||||
// And the alphabetic keys
|
||||
for (var i = 65; i <= 90; i++) {
|
||||
base[i] = String.fromCharCode(i + 32)
|
||||
shift[i] = String.fromCharCode(i)
|
||||
}
|
||||
|
||||
// For each code that doesn't have a shift-equivalent, copy the base name
|
||||
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code]
|
||||
|
||||
export function keyName(event) {
|
||||
// On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.
|
||||
// On IE, shift effect is never included in `.key`.
|
||||
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||
|
||||
ie && event.shiftKey && event.key && event.key.length == 1 ||
|
||||
event.key == "Unidentified"
|
||||
var name = (!ignoreKey && event.key) ||
|
||||
(event.shiftKey ? shift : base)[event.keyCode] ||
|
||||
event.key || "Unidentified"
|
||||
// Edge sometimes produces wrong names (Issue #3)
|
||||
if (name == "Esc") name = "Escape"
|
||||
if (name == "Del") name = "Delete"
|
||||
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
||||
if (name == "Left") name = "ArrowLeft"
|
||||
if (name == "Up") name = "ArrowUp"
|
||||
if (name == "Right") name = "ArrowRight"
|
||||
if (name == "Down") name = "ArrowDown"
|
||||
return name
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "w3c-keyname",
|
||||
"version": "2.2.8",
|
||||
"description": "Get a KeyboardEvent.key-style string from an event",
|
||||
"main": "index.cjs",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"import": "./index.js",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"module": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/marijnh/w3c-keyname.git"
|
||||
},
|
||||
"keywords": [
|
||||
"browser",
|
||||
"key",
|
||||
"event",
|
||||
"key code"
|
||||
],
|
||||
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/marijnh/w3c-keyname/issues"
|
||||
},
|
||||
"homepage": "https://github.com/marijnh/w3c-keyname#readme",
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"watch": "rollup -c -w",
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rollup": "^1.26.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user