This commit is contained in:
lost+skunk 2024-07-13 21:32:04 +03:00
parent 8391cc34a9
commit 667de65e2f
18 changed files with 869 additions and 624 deletions

View file

@ -2,7 +2,7 @@
<html>
<head>
<title>SkunkyArt</title>
<link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
</head>
<main>
<header>
@ -20,11 +20,44 @@
<p>
SkunkyArt is an alternative frontend for deviantart.com, written in Go.
</p>
<h3><a href="https://go.kde.org/matrix/#/#skunkyart:ebloid.ru" target="_blank">Room in Matrix</a></h3>
<h2>Instance settings:</h2>
<ul>
<li><b>NSFW</b>: <span class="about-{{.Templates.About.Nsfw}}">{{if .Templates.About.Nsfw}}YES{{else}}NO{{end}}</span></li>
<li><b>Proxyfing</b>: <span class="about-{{.Templates.About.Proxy}}">{{if .Templates.About.Proxy}}YES{{else}}NO{{end}}</span></li>
</ul>
<h2>Instances:</h2>
<ul>
{{range .Templates.About.Instances}}
<li><u><b>{{.Title}}</b></u>:
<ul>
<li><b>Country</b>: {{.Country}}</li>
<li><b>URLs</b>: </li>
<ul>
{{range .Urls}}
{{if ne .I2P ""}}
<li><b>I2P</b>: <a href="{{.I2P}}">Yes</a></li>
{{end}}
{{if ne .Ygg ""}}
<li><b>Ygg</b>: <a href="{{.Ygg}}">Yes</a></li>
{{end}}
{{if ne .Tor ""}}
<li><b>Tor</b>: <a href="{{.Tor}}">Yes</a></li>
{{end}}
{{if ne .Clearnet ""}}
<li><b>Clearnet</b>: <a href="{{.Clearnet}}">{{.Clearnet}}</a></li>
{{end}}
{{end}}
</ul>
<li><b>Settings</b>: </li>
<ul>
<li><b>NSFW</b>: <span class="about-{{.Settings.Nsfw}}">{{if .Settings.Nsfw}}YES{{else}}NO{{end}}</span></li>
<li><b>Proxyfing</b>: <span class="about-{{.Settings.Proxy}}">{{if .Settings.Proxy}}YES{{else}}NO{{end}}</span></li>
</ul>
</ul>
</li>
{{end}}
</ul>
<p>Copyright <a href="https://go.kde.org/matrix/#/@softpigeones:ebloid.ru" target="_blank">lost+skunk</a>, X11. <a href="https://git.macaw.me/skunky/skunkyart/src/tag/v1.3" target="_blank">SkunkyArt v1.3</a></p>
</main>
</html>

View file

@ -2,7 +2,7 @@
<html>
<head>
<title>SkunkyArt | {{.Templates.Deviation.Post.Deviation.Author.Username}} - {{.Templates.Deviation.Post.Deviation.Title}}</title>
<link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
<meta name="referrer" content="no-referrer" />
</head>
<main>
@ -34,7 +34,7 @@
{{if (ne .Templates.Deviation.Tags "")}}
{{.Templates.Deviation.Tags}}<br>
{{end}}
<span>Published: <strong>{{.Templates.Deviation.StringTime}}</strong>; Views: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Downloads}}</strong><span>
<span>Published: <strong>{{.Templates.Deviation.StringTime}}</strong>; Views: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Downloads}}</strong>
<br><a target="_blank" href="https://www.deviantart.com/{{.Templates.Deviation.Post.Deviation.Author.Username}}/art/art-{{.Templates.Deviation.Post.Deviation.ID}}">Redirect to original</a>
</span>
{{if (ne .Templates.Deviation.Post.Description "")}}

View file

@ -8,7 +8,7 @@
gallery of {{.Templates.GroupUser.GR.Owner.Username}}
{{end}}
</title>
<link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
</head>
<main>
<header>

View file

@ -2,7 +2,7 @@
<html>
<head>
<title>SkunkyArt</title>
<link rel="stylesheet" href="{{.}}gui/css/skunky.css"/>
<link rel="stylesheet" href="{{.}}stylesheet"/>
</head>
<main>
<center>

View file

@ -2,7 +2,7 @@
<html>
<head>
<title>SkunkyArt</title>
<link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
</head>
<main>
<header>

View file

@ -2,7 +2,7 @@
<html>
<head>
<title>SkunkyArt | Search "{{.QueryRaw}}"</title>
<link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
<link rel="stylesheet" href="{{.BasePath}}stylesheet">
</head>
<main>
<header>