Compare commits

..

No commits in common. "b47f7c8e75c7274ac05e3c4e06dc57f2ee37de56" and "dc196fb6217c781889c424f12e295a06da194a0b" have entirely different histories.

7 changed files with 80 additions and 279 deletions

View File

@ -49,11 +49,6 @@ app:get("/latest.json", function(self)
return handlers.Latesthandler(self)
end)
app:get("/latest.xml", function(self)
self.titles = page_titles
return handlers.RSShandler(self)
end)
app:get("/*", function(self)
self.titles = page_titles
return handlers.Roothandler(self)

View File

@ -1,20 +0,0 @@
local to_json = require("lapis.util").to_json
local escape = require("lapis.util").escape
local autoload = require("lapis.util").autoload
local config = require("lapis.config")
local hotmixes = autoload("hotmixes")
local function RSShandler(self)
local path = config.get().mount .. self.titles.url
local latest_path, latest_name = hotmixes.utils.these_latest( path )
local host = self.req.parsed_url.scheme .. '://' .. self.req.parsed_url.host
self.datapath = host .. '/data/' .. self.titles.url .. '/'
self.latestpath = latest_path
self.latestname = latest_name
return { content_type = "application/rss+xml", layout = require "views.rss" }
end
return RSShandler

View File

@ -11,7 +11,6 @@
.h1
{
font-family: Helvetica;
font-size: 16px;
color: var(--ifm-white);
padding-top: 5px;
padding-bottom: 5px;
@ -23,9 +22,9 @@
.p
{
font-family: Helvetica;
font-size: 6px;
color: var(--ifm-grey);
margin-bottom: 45px;
font-size: 10px;
}
.href
@ -38,7 +37,7 @@
{
line-height: 16px;
font-weight: 600;
font-size: 10px;
font-size: 14px;
margin-bottom: 0;
margin-top: 0;
font-family: Helvetica;
@ -50,7 +49,7 @@
color: var(--ifm-grey);
line-height: 1.6em;
font-weight: 600;
font-size: 10px;
font-size: 14px;
text-decoration: none;
background: var(--ifm-deep-black);
display: inline-flex;
@ -62,13 +61,19 @@
.amixlink:hover
{
font-family: Helvetica;
color: #000;
line-height: 1.6em;
font-weight: 600;
font-size: 14px;
background: var(--ifm-red);
}
.body
{
width: 100%;
width: 80%;
padding-left: 10%;
padding-right: 10%;
background-color: var(--ifm-black);
}
@ -76,7 +81,7 @@
{
font-family: Helvetica;
font-weight: 900;
font-size: 12px;
font-size: 16px;
color: var(--ifm-grey);
padding: 5px;
margin-top: 2%;
@ -88,15 +93,7 @@
.prclogo
{
height: 120px;
padding-bottom: 10px;
padding-left: 10px;
padding-top: 10px;
}
.divider
{
height: 23px;
width: 1440px;
padding-bottom: 10px;
padding-left: 10px;
padding-top: 10px;
@ -115,7 +112,7 @@
.header
{
width: 100%;
max-height: 120px;
max-height: 220px;
}
.footer
@ -127,10 +124,18 @@
clear: both;
}
.djsectionmenu
.djsection
{
font-family: Helvetica;
font-size: 18px;
text-decoration: inherit;
color: var(--ifm-red);
}
.djsectionmenu
{
font-family: Helvetica;
font-size: 33px;
color: var(--ifm-red);
line-height: 1em;
z-index: 100;
@ -151,9 +156,15 @@
.djsection
{
font-family: Helvetica;
font-size: 18px;
text-decoration: inherit;
font-size: 33px;
color: var(--ifm-red);
line-height: 1em;
margin-bottom: 0px;
margin-top: 0px;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
}
.djsection:hover
@ -165,7 +176,7 @@
{
font-family: Helvetica;
color: var(--ifm-red);
font-size: 16px;
font-size: 24px;
padding-top: 5px;
border-bottom: 2px solid var(--ifm-red);
}
@ -221,7 +232,10 @@
padding-right: 5%;
width: 40%;
}
.h2
{
font-size: 14px;
}
.footer
{
margin-top: 15%;
@ -310,13 +324,6 @@
}
}
.content
{
width: 80%;
padding-left: 10%;
padding-right: 10%;
}
.latest
{
position: relative;
@ -354,115 +361,10 @@
}
}
@media screen and (min-width: 600px) {
.h1{
font-size: 18px;
}
.p
@media (max-width:767px)
{
font-size: 8px;
}
.mixlink
{
font-size: 12px;
}
.amixlink
{
font-size: 12px;
}
.mixsections
{
font-size: 14px;
}
.h2
.h1mobile
{
font-size: 18px;
}
.header
{
max-height: 180px;
}
.prclogo
{
height: 180px;
}
.divider
{
height: 35px;
}
.djsectionmenu
{
font-size: 25px;
}
.djsection
{
font-size: 28px;
}
}
@media screen and (min-width: 768px) {
.h1{
font-size: 26px;
}
.p
{
font-size: 10px;
}
.mixlink
{
font-size: 14px;
}
.amixlink
{
font-size: 14px;
}
.mixsections
{
font-size: 16px;
}
.h2
{
font-size: 24px;
}
.header
{
max-height: 220px;
}
.prclogo
{
height: 220px;
}
.divider
{
height: 43px;
}
.djsectionmenu
{
font-size: 33px;
}
.djsection
{
font-size: 33px;
}
}

View File

@ -16,7 +16,6 @@
.h1
{
font-family: ArcadeFont;
font-size: 16px;
color: var(--ifm-red);
border-top: 3px solid var(--ifm-red);
border-bottom: 3px solid var(--ifm-red);
@ -30,9 +29,9 @@
.p
{
font-family: ArcadeFont;
font-size: 6px;
color: var(--ifm-grey);
margin-bottom: 45px;
font-size: 10px;
}
.href
@ -45,7 +44,7 @@
{
line-height: 16px;
font-weight: 600;
font-size: 10px;
font-size: 14px;
margin-bottom: 0;
margin-top: 0;
font-family: ArcadeFont;
@ -57,7 +56,7 @@
color: var(--ifm-grey);
line-height: 1.6em;
font-weight: 600;
font-size: 10px;
font-size: 14px;
text-decoration: none;
background: var(--ifm-deep-black);
display: inline-flex;
@ -69,7 +68,11 @@
.amixlink:hover
{
font-family: ArcadeFont;
color: #000;
line-height: 1.6em;
font-weight: 600;
font-size: 14px;
background: var(--ifm-red);
}
@ -85,7 +88,7 @@
{
font-family: ArcadeFont;
font-weight: 900;
font-size: 12px;
font-size: 16px;
color: var(--ifm-grey);
padding: 5px;
margin-top: 2%;
@ -106,7 +109,7 @@
.h2
{
font-family: ArcadeFont;
font-size: 16px;
font-size: 24px;
color: var(--ifm-grey);
font-weight: 200;
border-bottom: 2px solid var(--ifm-grey);
@ -129,10 +132,18 @@
clear: both;
}
.djsectionmenu
.djsection
{
font-family: ArcadeFont;
font-size: 18px;
text-decoration: inherit;
color: var(--ifm-red);
}
.djsectionmenu
{
font-family: ArcadeFont;
font-size: 33px;
color: var(--ifm-red);
line-height: 1em;
z-index: 100;
@ -153,9 +164,15 @@
.djsection
{
font-family: ArcadeFont;
font-size: 18px;
text-decoration: inherit;
font-size: 33px;
color: var(--ifm-red);
line-height: 1em;
margin-bottom: 0px;
margin-top: 0px;
padding-top: 5px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 5px;
}
.djsection:hover
@ -167,7 +184,7 @@
{
font-family: ArcadeFont;
color: var(--ifm-red);
font-size: 16px;
font-size: 24px;
padding-top: 5px;
border-bottom: 2px solid var(--ifm-red);
}
@ -223,7 +240,10 @@
padding-right: 5%;
width: 40%;
}
.h2
{
font-size: 14px;
}
.footer
{
margin-top: 15%;
@ -349,85 +369,10 @@
}
}
@media screen and (min-width: 600px) {
.h1{
font-size: 18px;
}
.p
@media (max-width:767px)
{
font-size: 8px;
}
.mixlink
{
font-size: 12px;
}
.amixlink
{
font-size: 12px;
}
.mixsections
{
font-size: 14px;
}
.h2
.h1mobile
{
font-size: 18px;
}
.djsectionmenu
{
font-size: 25px;
}
.djsection
{
font-size: 28px;
}
}
@media screen and (min-width: 768px) {
.h1{
font-size: 26px;
}
.p
{
font-size: 10px;
}
.mixlink
{
font-size: 14px;
}
.amixlink
{
font-size: 14px;
}
.mixsections
{
font-size: 16px;
}
.h2
{
font-size: 24px;
}
.djsectionmenu
{
font-size: 33px;
}
.djsection
{
font-size: 33px;
}
}

View File

@ -19,7 +19,7 @@
<header class="header">
<a href="/"><img src="/static/<%= titles['header'] %>" alt="videohotmix logo" class="hotmixlogo"/></a>
</header>
<h1 class="h1">Tons Of Mix - Downloads & Streams (right click + Save link as... for downloads)<br>
<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>

View File

@ -15,20 +15,18 @@
<header class="header">
<a href="/"><img src="/static/<%= titles['header'] %>" alt="prc logo" class="prclogo"/></a>
</header>
<div class="content">
<h1 class="h1">Tons Of Mix - Downloads & Streams (right click + Save link as... for downloads)<br>
<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>
</div>
<img class="divider" src="/static/panamaracing.club_divider.png">
<div class="content">
<img src="/static/panamaracing.club_divider.png">
<% content_for("inner") %>
</div>
<img class="divider" src="/static/panamaracing.club_divider.png">
<div class="content">
<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/' .. titles.url .. '/' .. file:gsub("#", "%%23") %>">
@ -38,7 +36,6 @@
<% end %>
</div>
</section>
</div>
<img class="divider" src="/static/panamaracing.club_divider.png">
</body>
</html>

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://<%= titles['url'] %>/latest.xml" rel="self" type="application/rss+xml" />
<title><%= titles['name'] %></title>
<link>https://<%= titles['url'] %></link>
<description>Latest uploads</description>
<% for i, file in ipairs(latestpath) do %>
<item>
<title><%= latestname[i] %></title>
<link><%= datapath .. file:gsub("#", "%%23") %></link>
<description><![CDATA[<%= latestname[i] %>]]></description>
<guid><%= datapath .. file:gsub("#", "%%23") %></guid>
</item>
<% end %>
</channel>
</rss>