update vxserver.dev to fsdproject.org
This commit is contained in:
73
fsdproject.org/www/releases/fes.lua
Normal file
73
fsdproject.org/www/releases/fes.lua
Normal file
@@ -0,0 +1,73 @@
|
||||
local fes = require("fes")
|
||||
local std = fes.std
|
||||
local u = fes.util
|
||||
|
||||
local site = fes.fes()
|
||||
|
||||
fes.app.global.start(fes, site, "fes")
|
||||
|
||||
site:h2("Fes")
|
||||
site:muted("fes is a lightweight, static, and optionated microframework.")
|
||||
|
||||
site:h2("Development")
|
||||
site:p("You can " ..
|
||||
std.external("https://git.vxserver.dev/fSD/fes", "browse") ..
|
||||
" its source code or get a copy using the following command:")
|
||||
site:code("git clone https://git.vxserver.dev/fSD/fes")
|
||||
|
||||
site:h2("Docker")
|
||||
site:p("You can deploy websites using the " ..
|
||||
std.external("https://git.vxserver.dev/fSD/-/packages/container/fes/latest", "docker") .. " image:")
|
||||
site:code("docker pull git.vxserver.dev/fsd/fes:latest")
|
||||
|
||||
local tars = u.ls("archive/fes")
|
||||
|
||||
local function parseVersion(pkg)
|
||||
local version = pkg:match("-(.+)$")
|
||||
local parts = {}
|
||||
for n in version:gmatch("%d+") do
|
||||
parts[#parts + 1] = tonumber(n)
|
||||
end
|
||||
return parts
|
||||
end
|
||||
|
||||
local function isNewer(a, b)
|
||||
local va, vb = parseVersion(a), parseVersion(b)
|
||||
local len = math.max(#va, #vb)
|
||||
|
||||
for i = 1, len do
|
||||
local na, nb = va[i] or 0, vb[i] or 0
|
||||
if na ~= nb then
|
||||
return na > nb
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local function latestRelease(packages, name)
|
||||
local latest = nil
|
||||
local prefix = "^" .. name .. "%-"
|
||||
|
||||
for _, pkg in ipairs(packages) do
|
||||
if pkg:match(prefix) then
|
||||
if not latest or isNewer(pkg, latest) then
|
||||
latest = pkg
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return latest
|
||||
end
|
||||
|
||||
local latest = latestRelease(tars, "fes")
|
||||
|
||||
site:h2("Download")
|
||||
site:ul {
|
||||
std.p(std.a("/archive/" .. latest, latest) .. " (2026-04-1)"),
|
||||
std.a("/archive/fes", "Looking for specific version?")
|
||||
}
|
||||
|
||||
|
||||
fes.app.global.finish(fes, site)
|
||||
|
||||
return site
|
||||
24
fsdproject.org/www/releases/yait.lua
Normal file
24
fsdproject.org/www/releases/yait.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
local fes = require("fes")
|
||||
local std = fes.std
|
||||
local u = fes.util
|
||||
|
||||
local site = fes.fes()
|
||||
|
||||
fes.app.global.start(fes, site, "yait")
|
||||
|
||||
site:h2("Yait")
|
||||
site:muted("Yait is a highly opinionated C and SH project generator.")
|
||||
|
||||
site:h2("Development")
|
||||
site:p("You can " .. std.external("https://git.vxserver.dev/fSD/yait", "browse") .. " its source code or get a copy using the following command:")
|
||||
site:code("git clone https://git.vxserver.dev/fSD/yait")
|
||||
|
||||
site:h2("Download")
|
||||
site:ul {
|
||||
std.p(std.a("/archive/yait/yait-1.0.tar.gz", "yait-1.0") .. " (2025-31-12)"),
|
||||
std.a("/archive/tools", "Looking for specific version?")
|
||||
}
|
||||
|
||||
fes.app.global.finish(fes, site)
|
||||
|
||||
return site
|
||||
Reference in New Issue
Block a user