mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-29 03:22:18 +00:00
Fixed env.json page's indentation, removed default status
This commit is contained in:
10
lovebird.lua
10
lovebird.lua
@@ -139,7 +139,7 @@ end
|
|||||||
<a href="https://github.com/rxi/lovebird">lovebird</a>
|
<a href="https://github.com/rxi/lovebird">lovebird</a>
|
||||||
<span id="version"><?lua echo(lovebird._version) ?></span>
|
<span id="version"><?lua echo(lovebird._version) ?></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="status">connected ●</div>
|
<div id="status"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="console" class="greybordered">
|
<div id="console" class="greybordered">
|
||||||
@@ -267,7 +267,7 @@ lovebird.pages["buffer"] = [[ <?lua echo(lovebird.buffer) ?> ]]
|
|||||||
|
|
||||||
|
|
||||||
lovebird.pages["env.json"] = [[
|
lovebird.pages["env.json"] = [[
|
||||||
<?lua
|
<?lua
|
||||||
local t = _G
|
local t = _G
|
||||||
local p = req.parsedurl.query.p or ""
|
local p = req.parsedurl.query.p or ""
|
||||||
p = p:gsub("%.+", "%."):match("^[%.]*(.*)[%.]*$")
|
p = p:gsub("%.+", "%."):match("^[%.]*(.*)[%.]*$")
|
||||||
@@ -281,8 +281,8 @@ lovebird.pages["env.json"] = [[
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
?>
|
?>
|
||||||
{
|
{
|
||||||
"valid": true,
|
"valid": true,
|
||||||
"path": "<?lua echo(p) ?>",
|
"path": "<?lua echo(p) ?>",
|
||||||
"vars": [
|
"vars": [
|
||||||
@@ -304,7 +304,7 @@ lovebird.pages["env.json"] = [[
|
|||||||
},
|
},
|
||||||
<?lua end ?>
|
<?lua end ?>
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user