@fish-under-sea/magpie-dragonapi 0.2.1 → 0.3.0
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/README.md +14 -7
- package/index.mjs +7 -7
- package/lib/service.mjs +38 -1
- package/lib/site.mjs +437 -401
- package/package.json +9 -9
- package/page/icon.png +0 -0
- package/page/index.html +2 -2
- package/page/star.png +0 -0
- package/ui/app.js +3224 -2568
- package/ui/demo.js +216 -0
- package/ui/icon.png +0 -0
- package/ui/index.html +335 -295
- package/ui/model-agg.js +458 -0
- package/ui/style.css +2758 -1875
- package/page/icon.svg +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/magpie-dragonapi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "DragonAPI for magpie: a provider plugin whose models, groups and prices come from the site's public /api/pricing, with balance and per-call usage from an sk- key, plus a local page that lists the market (read-only), shows usage and can mint new keys for a group.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"magpie": {
|
|
46
|
-
"icon": "page/icon.
|
|
47
|
-
"name": "
|
|
46
|
+
"icon": "page/icon.png",
|
|
47
|
+
"name": "@fish-under-sea/magpie-dragonapi",
|
|
48
48
|
"summary": {
|
|
49
49
|
"zh": "把 DragonAPI 接进 magpie:模型目录、余额与用量,外加一个按分组建钥匙的本地控制台。",
|
|
50
50
|
"en": "DragonAPI for magpie: model catalog, balance and usage, plus a local console for minting per-group keys."
|
|
51
51
|
},
|
|
52
52
|
"page": {
|
|
53
|
-
"title": "
|
|
53
|
+
"title": "@fish-under-sea/magpie-dragonapi",
|
|
54
54
|
"titles": {
|
|
55
|
-
"zh": "
|
|
56
|
-
"zh-TW": "
|
|
57
|
-
"ja": "
|
|
58
|
-
"de": "
|
|
55
|
+
"zh": "@fish-under-sea/magpie-dragonapi",
|
|
56
|
+
"zh-TW": "@fish-under-sea/magpie-dragonapi",
|
|
57
|
+
"ja": "@fish-under-sea/magpie-dragonapi",
|
|
58
|
+
"de": "@fish-under-sea/magpie-dragonapi"
|
|
59
59
|
},
|
|
60
60
|
"file": "page/index.html",
|
|
61
|
-
"icon": "page/
|
|
61
|
+
"icon": "page/star.png",
|
|
62
62
|
"service": {
|
|
63
63
|
"port": 3517,
|
|
64
64
|
"option": "port"
|
package/page/icon.png
ADDED
|
Binary file
|
package/page/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title
|
|
6
|
+
<title>@fish-under-sea/magpie-dragonapi</title>
|
|
7
7
|
<style>
|
|
8
8
|
:root { color-scheme: light dark; }
|
|
9
9
|
html, body { margin: 0; height: 100%; }
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</head>
|
|
24
24
|
<body>
|
|
25
25
|
<div class="box">
|
|
26
|
-
<b
|
|
26
|
+
<b>@fish-under-sea/magpie-dragonapi</b>
|
|
27
27
|
<span id="said">正在连接到本地服务…</span>
|
|
28
28
|
</div>
|
|
29
29
|
<script src="_magpie/bridge.js"></script>
|
package/page/star.png
ADDED
|
Binary file
|