首页分屏

pull/4/head 1.1.10
yutent 2023-06-13 17:45:12 +08:00
parent f08361a986
commit 3c239fe721
2 changed files with 5 additions and 3 deletions

View File

@ -146,9 +146,10 @@ export default async function createServer(root = '', conf = {}) {
res.setHeader('content-type', MIME_TYPES.html)
res.writeHead(200, USE_HTTPS ? void 0 : 'OK')
res.end(
'<div>注意: 你看到这个页面, 仅在开发时可见。<br>仅为了方便开发多页应用时访问自己想要修改的页面, 而不需要手动输入地址。</div><ul>' +
'<style>body{font:14px/1.5 Arial}ol{display:flex;flex-wrap:wrap;}li{width:30%;}a{color:teal}a:visited{color:orange;}</style>' +
'<div>注意: 你看到这个页面, 仅在开发时可见。<br>仅为了方便开发多页应用时访问自己想要修改的页面, 而不需要手动输入地址。</div><ol>' +
indexPage +
'</ul>'
'</ol>'
)
} else {
res.setHeader('accept-ranges', 'bytes')
@ -196,6 +197,7 @@ export default async function createServer(root = '', conf = {}) {
file = join(SOURCE_DIR, rpath)
}
} else {
ndex.html
file = join(SOURCE_DIR, rpath)
}
if (!fs.isfile(file)) {

View File

@ -1,7 +1,7 @@
{
"name": "fite",
"type": "module",
"version": "1.1.9",
"version": "1.1.10",
"bin": {
"fite": "index.js"
},