This commit is contained in:
35
www/index.lua
Normal file
35
www/index.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
local fes = require("fes")
|
||||
|
||||
local std = fes.std
|
||||
local u = fes.util
|
||||
|
||||
local site = fes.fes()
|
||||
|
||||
fes.app.global.start(fes, site)
|
||||
|
||||
site:note(std.a("/archive/active/" .. (u.ls("archive/active")[1] or "unknown"), std.h3("Download latest?")))
|
||||
|
||||
site:note(u.cc {
|
||||
std.h2("Server status"),
|
||||
std.p(std.strong("IP: ") .. "vxserver.dev"),
|
||||
fes.app.server.isOnline(fes),
|
||||
})
|
||||
|
||||
site:note(u.cc {
|
||||
std.h2("NeoForge Information"),
|
||||
std.p("The following are instructions for NeoForge packs."),
|
||||
std.ul {
|
||||
std.external("https://atlauncher.com/downloads", "Download the launcher")
|
||||
},
|
||||
std.p(std.strong("Note: ") .. "You need to login to your account."),
|
||||
std.img("/static/import.png", "go to the instance tab, then import the modpack."),
|
||||
})
|
||||
|
||||
site:note(u.cc {
|
||||
std.h3("Modpacks"),
|
||||
std.a("/archive", "Modpack archive"),
|
||||
})
|
||||
|
||||
fes.app.global.finish(fes, site)
|
||||
|
||||
return site
|
||||
Reference in New Issue
Block a user