start resty port to lapis

This commit is contained in:
2025-11-06 16:37:55 +01:00
commit 8ab812dce0
14 changed files with 878 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title><%= titles['name'] %>
<% if title then %>
- <%= title %>
<% end %>
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/style.css">
</head>
<body class="body">
<h1 class="h1 h1mobile">Tons Of Mix - Downloads & Streams (right click + Save link as... for downloads)<br>
<%= titles.name %><br>
Sharing <%= total[0] %> files</h1>
<% content_for("inner") %>
<section class="latest">
<div class="latest_files">
<br>
<br>
<h1 class="h1">Latest uploads:</h1>
<% for i, file in ipairs(latestpath) do %>
<a class="amixlink" href="<%= '/data' .. file %>">
<span class="mixlink"><%= latestname[i] %></span>
</a>
</br>
<% end %>
</div>
</section>
</body>
</html>
+24
View File
@@ -0,0 +1,24 @@
<div class="all_files">
<div class="image_collage">
<% for i, image in ipairs(images) do %>
<a href="<%= path .. image %>">
<img src="<%= path .. image %>">
</a>
<% end %>
</div>
<% for i, dir in ipairs(dirs) do %>
<br>
<a href="<%= uri .. dir %>" class="djsection"><span><%= dir %></span></a>
<br>
<% end %>
<br>
<% for i, file in ipairs(files) do %>
<a class="amixlink" href="<%= path .. file %>">
<span class="mixlink"><%= file %></span>
</a>
<br>
<% end %>
</div>