eve-esi-types 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/console-util.d.mts +15 -0
- package/lib/console-util.mjs +102 -0
- package/lib/constants.d.mts +10 -0
- package/lib/constants.mjs +23 -0
- package/lib/esi-error-types.d.ts +13 -2
- package/lib/request-api.d.mts +1 -1
- package/lib/request-api.mjs +5 -7
- package/lib/rq-util.d.mts +18 -18
- package/lib/rq-util.mjs +33 -54
- package/lib/tagged-request-api.d.mts +4 -3
- package/lib/tagged-request-api.mjs +18 -7
- package/minimal-rq.mjs +16 -8
- package/package.json +2 -2
- package/v2/esi-tagged-types.d.ts +8 -8
- package/v2/index.d.ts +30 -2
- package/v2/response-map.d.ts +138 -18
- package/v2/types-index.d.ts +1 -1
- package/web/index.css +101 -0
- package/web/index.html +57 -0
- package/index.html +0 -18
package/v2/types-index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* THIS DTS IS AUTO GENERATED, DO NOT EDIT
|
|
10
10
|
*
|
|
11
11
|
* @file eve-esi-types/v2/types-index.d.ts
|
|
12
|
-
* @summary This file is auto-generated and defines version 2.3.
|
|
12
|
+
* @summary This file is auto-generated and defines version 2.3.5 of the EVE Online ESI response types.
|
|
13
13
|
*/
|
|
14
14
|
import "./get_wars_ok.d.ts";
|
|
15
15
|
import "./get_status_ok.d.ts";
|
package/web/index.css
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@charset "utf8";
|
|
2
|
+
/*!
|
|
3
|
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
4
|
+
Copyright (C) 2025 jeffy-g <hirotom1107@gmail.com>
|
|
5
|
+
Released under the MIT license
|
|
6
|
+
https://opensource.org/licenses/mit-license.php
|
|
7
|
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.command {
|
|
11
|
+
font-family: consolas;
|
|
12
|
+
color: rgb(37 143 231);
|
|
13
|
+
background-color: rgba(192, 192, 192, 0.23);
|
|
14
|
+
padding: 4px 6px;
|
|
15
|
+
border: solid 1px silver;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* button {
|
|
20
|
+
width: 100px;
|
|
21
|
+
transition: filter 300ms ease;
|
|
22
|
+
} */
|
|
23
|
+
button:disabled {
|
|
24
|
+
filter: opacity(0.3) blur(0.4px);
|
|
25
|
+
}
|
|
26
|
+
button.copy {
|
|
27
|
+
width: 20px;
|
|
28
|
+
height: 20px;
|
|
29
|
+
background: url('data:image/svg+xml;charset=UTF-8,<svg height="16px" viewBox="-21 0 512 512" width="16px" xmlns="http://www.w3.org/2000/svg"><path d="m186.667969 416c-49.984375 0-90.667969-40.683594-90.667969-90.667969v-218.664062h-37.332031c-32.363281 0-58.667969 26.300781-58.667969 58.664062v288c0 32.363281 26.304688 58.667969 58.667969 58.667969h266.664062c32.363281 0 58.667969-26.304688 58.667969-58.667969v-37.332031zm0 0"/><path d="m469.332031 58.667969c0-32.40625-26.261719-58.667969-58.664062-58.667969h-224c-32.40625 0-58.667969 26.261719-58.667969 58.667969v266.664062c0 32.40625 26.261719 58.667969 58.667969 58.667969h224c32.402343 0 58.664062-26.261719 58.664062-58.667969zm0 0"/></svg>') no-repeat center/14px;
|
|
30
|
+
border: solid 1px rgba(192, 192, 192, 0.73);
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
vertical-align: middle;
|
|
34
|
+
margin-left: 3px;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
padding: 2px;
|
|
37
|
+
box-sizing: content-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.footer {
|
|
41
|
+
position: fixed;
|
|
42
|
+
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
margin: 0;
|
|
45
|
+
left: 0; bottom: 2px;
|
|
46
|
+
width: 100%;
|
|
47
|
+
padding: 2px 8px;
|
|
48
|
+
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
align-items: center;
|
|
52
|
+
align-content: center;
|
|
53
|
+
justify-items: end;
|
|
54
|
+
|
|
55
|
+
font-size: 10px;
|
|
56
|
+
background-color: var(--card-bg);
|
|
57
|
+
color: snow;
|
|
58
|
+
}
|
|
59
|
+
.footer a {
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
margin: 0 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.log-frame {
|
|
65
|
+
position: relative;
|
|
66
|
+
|
|
67
|
+
height: calc(100vh - 100px - 30px);
|
|
68
|
+
|
|
69
|
+
border: none;
|
|
70
|
+
padding: 3px 4px;
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
|
|
73
|
+
font-family: consolas;
|
|
74
|
+
white-space: pre;
|
|
75
|
+
overflow: auto;
|
|
76
|
+
|
|
77
|
+
background-color: rgb(22 22 22);
|
|
78
|
+
color: #ececec;
|
|
79
|
+
/* &:empty {
|
|
80
|
+
padding: 0;
|
|
81
|
+
width: 0; height: 0;
|
|
82
|
+
border: none;
|
|
83
|
+
border-radius: unset;
|
|
84
|
+
} */
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
span.key {
|
|
88
|
+
color: rgb(255 150 150);
|
|
89
|
+
}
|
|
90
|
+
span.number {
|
|
91
|
+
color: rgb(89 174 255);
|
|
92
|
+
}
|
|
93
|
+
span.string {
|
|
94
|
+
color: rgb(95 249 95);
|
|
95
|
+
}
|
|
96
|
+
span.bool {
|
|
97
|
+
color: rgb(205, 108, 255);
|
|
98
|
+
}
|
|
99
|
+
span.nul {
|
|
100
|
+
color: rgb(255, 44, 44);
|
|
101
|
+
}
|
package/web/index.html
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>eve-esi-types ESI request test</title>
|
|
8
|
+
<script type="module" src="../minimal-rq.mjs"></script>
|
|
9
|
+
<link rel="stylesheet" href="./index.css">
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<div class="container">
|
|
14
|
+
<button id="run-test">Run test</button>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="info">
|
|
17
|
+
<div>example command: <input type="text" class="command" value="browser-sync start -s --port 8080 --no-open --ss <this site directory>" size="72" readonly>
|
|
18
|
+
<button class="copy" onclick="copy('.command', '.')"></button>
|
|
19
|
+
</div>
|
|
20
|
+
then access to <a href="http://localhost:8080/web/?x=1&debug=1">eve-esi-types ESI request test</a>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="log-frame" contenteditable></div>
|
|
23
|
+
<footer class="footer"></footer>
|
|
24
|
+
<script>
|
|
25
|
+
/** @type {(s: string, rep: string, regex?: RegExp) => void} */
|
|
26
|
+
function copy(selector, replacement, regex = /<[^>]+>/) {
|
|
27
|
+
/** @type {HTMLInputElement} */
|
|
28
|
+
const text = document.querySelector(selector);
|
|
29
|
+
const shellscript = text.value.replace(regex, replacement);
|
|
30
|
+
navigator.clipboard.writeText(shellscript).then(() => alert("Copied the text: " + shellscript));
|
|
31
|
+
}
|
|
32
|
+
/** @type {HTMLDivElement} */
|
|
33
|
+
const logElement = document.querySelector(".log-frame");
|
|
34
|
+
if (logElement) {
|
|
35
|
+
let inputBuffer = "";
|
|
36
|
+
logElement.addEventListener("keydown", function (e) {
|
|
37
|
+
if (e.ctrlKey) {
|
|
38
|
+
if (e.code === "KeyL") {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
logElement.innerHTML = "";
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
const key = e.key;
|
|
44
|
+
if (key === "Enter") {
|
|
45
|
+
const cmd = inputBuffer;
|
|
46
|
+
inputBuffer = "";
|
|
47
|
+
eval(`(${cmd})`);
|
|
48
|
+
} else if (key.length === 1) {
|
|
49
|
+
inputBuffer += key;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
</script>
|
|
55
|
+
</body>
|
|
56
|
+
|
|
57
|
+
</html>
|
package/index.html
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>eve-esi-types ESI request test</title>
|
|
7
|
-
<script type="module" src="./minimal-rq.mjs"></script>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div class="container">
|
|
11
|
-
</div>
|
|
12
|
-
<div class="info">
|
|
13
|
-
browser-sync start -s --port 8080 --no-open --ss ./<br>
|
|
14
|
-
then access to <a href="http://localhost:8080/?x=1&debug=1">eve-esi-types ESI request test</a>
|
|
15
|
-
</div>
|
|
16
|
-
<footer class="footer"></footer>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|