Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

19
static/js/ketcher2/node_modules/w3c-keyname/LICENSE generated vendored Normal file
View File

@ -0,0 +1,19 @@
Copyright (C) 2016 by Marijn Haverbeke <marijnh@gmail.com> 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.

13
static/js/ketcher2/node_modules/w3c-keyname/README.md generated vendored Normal file
View File

@ -0,0 +1,13 @@
# W3C keyname
Tiny library that exports a function 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.
License: MIT

121
static/js/ketcher2/node_modules/w3c-keyname/index.js generated vendored Normal file
View File

@ -0,0 +1,121 @@
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: "'",
229: "q"
}
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: "\"",
229: "Q"
}
var chrome = typeof navigator != "undefined" && /Chrome\/(\d+)/.exec(navigator.userAgent)
var brokenModifierNames = chrome && +chrome[1] < 57
// 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) {
// Don't trust event.key in Chrome when there are modifiers until
// they fix https://bugs.chromium.org/p/chromium/issues/detail?id=633838
var name = ((!brokenModifierNames || !event.ctrlKey && !event.altKey && !event.metaKey) && 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
}
module.exports = keyName
keyName.base = base
keyName.shift = shift

View File

@ -0,0 +1,50 @@
{
"_from": "w3c-keyname@1.1.6",
"_id": "w3c-keyname@1.1.6",
"_inBundle": false,
"_integrity": "sha1-+DUjHyazbPT7L3qj7jvj2yZtSzU=",
"_location": "/w3c-keyname",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "w3c-keyname@1.1.6",
"name": "w3c-keyname",
"escapedName": "w3c-keyname",
"rawSpec": "1.1.6",
"saveSpec": null,
"fetchSpec": "1.1.6"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-1.1.6.tgz",
"_shasum": "f835231f26b36cf4fb2f7aa3ee3be3db266d4b35",
"_spec": "w3c-keyname@1.1.6",
"_where": "/home/manfred/enviPath/ketcher2/ketcher",
"author": {
"name": "Marijn Haverbeke",
"email": "marijnh@gmail.com"
},
"bugs": {
"url": "https://github.com/marijnh/w3c-keyname/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Get a KeyboardEvent.key-style string from an event",
"homepage": "https://github.com/marijnh/w3c-keyname#readme",
"keywords": [
"browser",
"key",
"event",
"key code"
],
"license": "MIT",
"main": "index.js",
"name": "w3c-keyname",
"repository": {
"type": "git",
"url": "git+https://github.com/marijnh/w3c-keyname.git"
},
"version": "1.1.6"
}