tmex-cli 0.6.4 → 0.6.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/dist/cli-node.js
CHANGED
|
@@ -121,7 +121,8 @@ Global flags:
|
|
|
121
121
|
"runtime.started": "Service started on {{url}}",
|
|
122
122
|
"runtime.frontendMissing": "Frontend assets not found.",
|
|
123
123
|
"runtime.methodNotAllowed": "Method Not Allowed",
|
|
124
|
-
"runtime.forbidden": "Forbidden"
|
|
124
|
+
"runtime.forbidden": "Forbidden",
|
|
125
|
+
"runtime.notFound": "Not Found"
|
|
125
126
|
},
|
|
126
127
|
"zh-CN": {
|
|
127
128
|
"cli.help": `tmex CLI
|
|
@@ -219,7 +220,8 @@ Global flags:
|
|
|
219
220
|
"runtime.started": "服务已启动:{{url}}",
|
|
220
221
|
"runtime.frontendMissing": "未找到前端静态资源。",
|
|
221
222
|
"runtime.methodNotAllowed": "方法不允许",
|
|
222
|
-
"runtime.forbidden": "禁止访问"
|
|
223
|
+
"runtime.forbidden": "禁止访问",
|
|
224
|
+
"runtime.notFound": "资源不存在"
|
|
223
225
|
}
|
|
224
226
|
};
|
|
225
227
|
var currentLang = "en";
|
package/dist/runtime/server.js
CHANGED
|
@@ -56590,9 +56590,15 @@ async function handleGetManifest(method) {
|
|
|
56590
56590
|
icons: [
|
|
56591
56591
|
{
|
|
56592
56592
|
src: "/tmex.png",
|
|
56593
|
-
sizes: "
|
|
56593
|
+
sizes: "1024x1024",
|
|
56594
56594
|
type: "image/png",
|
|
56595
|
-
purpose: "any
|
|
56595
|
+
purpose: "any"
|
|
56596
|
+
},
|
|
56597
|
+
{
|
|
56598
|
+
src: "/tmex.png",
|
|
56599
|
+
sizes: "1024x1024",
|
|
56600
|
+
type: "image/png",
|
|
56601
|
+
purpose: "maskable"
|
|
56596
56602
|
}
|
|
56597
56603
|
]
|
|
56598
56604
|
};
|
|
@@ -58165,7 +58171,8 @@ Global flags:
|
|
|
58165
58171
|
"runtime.started": "Service started on {{url}}",
|
|
58166
58172
|
"runtime.frontendMissing": "Frontend assets not found.",
|
|
58167
58173
|
"runtime.methodNotAllowed": "Method Not Allowed",
|
|
58168
|
-
"runtime.forbidden": "Forbidden"
|
|
58174
|
+
"runtime.forbidden": "Forbidden",
|
|
58175
|
+
"runtime.notFound": "Not Found"
|
|
58169
58176
|
},
|
|
58170
58177
|
"zh-CN": {
|
|
58171
58178
|
"cli.help": `tmex CLI
|
|
@@ -58263,7 +58270,8 @@ Global flags:
|
|
|
58263
58270
|
"runtime.started": "\u670D\u52A1\u5DF2\u542F\u52A8\uFF1A{{url}}",
|
|
58264
58271
|
"runtime.frontendMissing": "\u672A\u627E\u5230\u524D\u7AEF\u9759\u6001\u8D44\u6E90\u3002",
|
|
58265
58272
|
"runtime.methodNotAllowed": "\u65B9\u6CD5\u4E0D\u5141\u8BB8",
|
|
58266
|
-
"runtime.forbidden": "\u7981\u6B62\u8BBF\u95EE"
|
|
58273
|
+
"runtime.forbidden": "\u7981\u6B62\u8BBF\u95EE",
|
|
58274
|
+
"runtime.notFound": "\u8D44\u6E90\u4E0D\u5B58\u5728"
|
|
58267
58275
|
}
|
|
58268
58276
|
};
|
|
58269
58277
|
var currentLang = "en";
|
|
@@ -58328,6 +58336,9 @@ async function serveFrontend(req, staticRoot) {
|
|
|
58328
58336
|
if (!requestedPath) {
|
|
58329
58337
|
return new Response(t3("runtime.forbidden"), { status: 403 });
|
|
58330
58338
|
}
|
|
58339
|
+
if (!existsSync4(requestedPath) && extname(url.pathname) !== "") {
|
|
58340
|
+
return new Response(t3("runtime.notFound"), { status: 404 });
|
|
58341
|
+
}
|
|
58331
58342
|
const indexPath = join4(staticRoot, "index.html");
|
|
58332
58343
|
const targetPath = existsSync4(requestedPath) ? requestedPath : indexPath;
|
|
58333
58344
|
if (!existsSync4(targetPath)) {
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
13
13
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
14
14
|
<link rel="manifest" href="/api/manifest.webmanifest" />
|
|
15
|
-
<link rel="apple-touch-icon" href="/
|
|
15
|
+
<link rel="apple-touch-icon" href="/tmex.png" />
|
|
16
16
|
<meta name="description" content="tmex - Web 接入多设备 tmux 的终端控制平台" />
|
|
17
17
|
<title>tmex</title>
|
|
18
18
|
<script type="module" crossorigin src="/assets/index-DIffR5B7.js"></script>
|
|
File without changes
|