mirror of
				https://git.macaw.me/skunky/SkunkyArt.git
				synced 2025-11-04 03:05:11 +03:00 
			
		
		
		
	Реализация конфига
This commit is contained in:
		
							parent
							
								
									8b839f9406
								
							
						
					
					
						commit
						7f1ab1b73d
					
				
					 14 changed files with 366 additions and 215 deletions
				
			
		| 
						 | 
				
			
			@ -2,12 +2,12 @@
 | 
			
		|||
<html>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>SkunkyArt</title>
 | 
			
		||||
        <link rel="stylesheet" href="gui/css/skunky.css">
 | 
			
		||||
        <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <header>
 | 
			
		||||
            <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
 | 
			
		||||
            <form method="get" action="/search">
 | 
			
		||||
            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
 | 
			
		||||
            <form method="get" action="{{.BasePath}}search">
 | 
			
		||||
                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
                    <option value="all">All</option>
 | 
			
		||||
| 
						 | 
				
			
			@ -19,5 +19,11 @@
 | 
			
		|||
        <p>
 | 
			
		||||
            SkunkyArt is an alternative frontend for deviantart.com, written in Go.
 | 
			
		||||
        </p>
 | 
			
		||||
        <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>
 | 
			
		||||
        <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>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,13 +1,13 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>SkunkyArt | {{.Post.Deviation.Author.Username}} - {{.Post.Deviation.Title}}</title>
 | 
			
		||||
        <link rel="stylesheet" href="/gui/css/skunky.css">
 | 
			
		||||
        <title>SkunkyArt | {{.Templates.Deviation.Post.Deviation.Author.Username}} - {{.Templates.Deviation.Post.Deviation.Title}}</title>
 | 
			
		||||
        <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <header>
 | 
			
		||||
            <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
 | 
			
		||||
            <form method="get" action="/search">
 | 
			
		||||
            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
 | 
			
		||||
            <form method="get" action="{{.BasePath}}search">
 | 
			
		||||
                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
                    <option value="all">All</option>
 | 
			
		||||
| 
						 | 
				
			
			@ -17,29 +17,29 @@
 | 
			
		|||
            </form>
 | 
			
		||||
        </header>
 | 
			
		||||
        <figure>
 | 
			
		||||
            <img src="/media/{{.Post.Deviation.Author.Username}}?type=a" width="30px">
 | 
			
		||||
            <span><strong><a href="/group_user?type=about&q={{.Post.Deviation.Author.Username}}">{{.Post.Deviation.Author.Username}}</a></strong> — {{if (.Post.Deviation.DD)}}
 | 
			
		||||
                <span class="dd" title="Daily Deviation!"><b>{{.Post.Deviation.Title}}</b></span>
 | 
			
		||||
                {{else}}{{.Post.Deviation.Title}}{{end}}
 | 
			
		||||
                 {{if (ne .Post.Deviation.License "none")}}<mark title="License">{{.Post.Deviation.License}}</mark>{{end}} {{if (.Post.Deviation.AI)}}[🤖]{{end}} 
 | 
			
		||||
                 {{if (.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
 | 
			
		||||
            <img src="{{.BasePath}}media/emojitar/{{.Templates.Deviation.Post.Deviation.Author.Username}}?type=a" width="30px">
 | 
			
		||||
            <span><strong><a href="{{.BasePath}}group_user?type=about&q={{.Templates.Deviation.Post.Deviation.Author.Username}}">{{.Templates.Deviation.Post.Deviation.Author.Username}}</a></strong> — {{if (.Templates.Deviation.Post.Deviation.DD)}}
 | 
			
		||||
                <span class="dd" title="Daily Deviation!"><b>{{.Templates.Deviation.Post.Deviation.Title}}</b></span>
 | 
			
		||||
                {{else}}{{.Templates.Deviation.Post.Deviation.Title}}{{end}}
 | 
			
		||||
                 {{if (ne .Templates.Deviation.Post.Deviation.License "none")}}<mark title="License">{{.Templates.Deviation.Post.Deviation.License}}</mark>{{end}} {{if (.Templates.Deviation.Post.Deviation.AI)}}[🤖]{{end}} 
 | 
			
		||||
                 {{if (.Templates.Deviation.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
 | 
			
		||||
            </span>
 | 
			
		||||
            <br>
 | 
			
		||||
            {{if (ne .Post.IMG "")}}
 | 
			
		||||
            <a href="{{.Post.IMG}}" title="open/download image"><img src="{{.Post.IMG}}" width="50%"></a>
 | 
			
		||||
            {{if (ne .Templates.Deviation.Post.IMG "")}}
 | 
			
		||||
            <a href="{{.Templates.Deviation.Post.IMG}}" title="open/download image"><img src="{{.Templates.Deviation.Post.IMG}}" width="50%"></a>
 | 
			
		||||
            <br>
 | 
			
		||||
            {{end}}
 | 
			
		||||
            {{if (ne .Tags "")}}
 | 
			
		||||
            {{.Tags}}<br>
 | 
			
		||||
            {{if (ne .Templates.Deviation.Tags "")}}
 | 
			
		||||
            {{.Templates.Deviation.Tags}}<br>
 | 
			
		||||
            {{end}}
 | 
			
		||||
            <span>Published: <strong>{{.StringTime}}</strong>; Views: <strong>{{.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Post.Deviation.Stats.Downloads}}</strong></span>
 | 
			
		||||
            {{if (ne .Post.Description "")}}
 | 
			
		||||
            <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>
 | 
			
		||||
            {{if (ne .Templates.Deviation.Post.Description "")}}
 | 
			
		||||
            <figcaption>
 | 
			
		||||
            {{.Post.Description}}
 | 
			
		||||
            {{.Templates.Deviation.Post.Description}}
 | 
			
		||||
            </figcaption>
 | 
			
		||||
            {{end}}
 | 
			
		||||
            {{if (ne .Comments "")}}
 | 
			
		||||
            {{.Comments}}
 | 
			
		||||
            {{if (ne .Templates.Deviation.Comments "")}}
 | 
			
		||||
            {{.Templates.Deviation.Comments}}
 | 
			
		||||
            {{end}}
 | 
			
		||||
        </figure>
 | 
			
		||||
    </main>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,14 +8,14 @@
 | 
			
		|||
        gallery of {{.Templates.GroupUser.GR.Owner.Username}}
 | 
			
		||||
        {{end}}
 | 
			
		||||
        </title>
 | 
			
		||||
        <link rel="stylesheet" href="/gui/css/skunky.css">
 | 
			
		||||
        <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <header>
 | 
			
		||||
            <h1><a href="/">HOME</a> | <a href="/dd">DD</a>
 | 
			
		||||
            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a>
 | 
			
		||||
            | <a href="?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery{{else}}about">About{{end}}</a>
 | 
			
		||||
             | <a href="?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">RSS</a></h1>
 | 
			
		||||
             <form method="get" action="/search">
 | 
			
		||||
             <form method="get" action="{{.BasePath}}search">
 | 
			
		||||
                <input type="gallery" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <input type="hidden" name="usr" value="{{.Templates.GroupUser.GR.Owner.Username}}">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
| 
						 | 
				
			
			@ -32,7 +32,7 @@
 | 
			
		|||
            {{.Templates.GroupUser.About.BGMeta.Author.Username}} - {{end}}{{.Templates.GroupUser.About.BGMeta.Title}}" src="{{.Templates.GroupUser.About.BG}}"></a>
 | 
			
		||||
            {{end}}
 | 
			
		||||
 | 
			
		||||
            <img src="/media/{{.Templates.GroupUser.GR.Owner.Username}}?type=a" width="30px" height="30px"> <b>{{.Templates.GroupUser.GR.Owner.Username}}</b>
 | 
			
		||||
            <img src="{{.BasePath}}media/emojitar/{{.Templates.GroupUser.GR.Owner.Username}}?type=a" width="30px" height="30px"> <b>{{.Templates.GroupUser.GR.Owner.Username}}</b>
 | 
			
		||||
            {{if (eq .Templates.GroupUser.About.A.Gender "male")}}
 | 
			
		||||
            ♂️
 | 
			
		||||
            {{end}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,11 +2,11 @@
 | 
			
		|||
<html>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>SkunkyArt</title>
 | 
			
		||||
        <link rel="stylesheet" href="gui/css/skunky.css"
 | 
			
		||||
        <link rel="stylesheet" href="{{.}}gui/css/skunky.css"/>
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <center>
 | 
			
		||||
            <form method="get" action="search">
 | 
			
		||||
            <form method="get" action="{{.}}search">
 | 
			
		||||
                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
                    <option value="all">All</option>
 | 
			
		||||
| 
						 | 
				
			
			@ -14,7 +14,7 @@
 | 
			
		|||
                </select>
 | 
			
		||||
                <button type="submit">Search!</button>
 | 
			
		||||
            </form>
 | 
			
		||||
            <h1><a href="dd">Daily Deviations</a> | <a href="about">About</a> | <a href="https://git.macaw.me/skunky/SkunkyArt" target="_blank">Source Code</a></h1>
 | 
			
		||||
            <h1><a href="{{.}}dd">Daily Deviations</a> | <a href="{{.}}about">About</a> | <a href="https://git.macaw.me/skunky/SkunkyArt" target="_blank">Source Code</a></h1>
 | 
			
		||||
        </center>
 | 
			
		||||
    </main>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			@ -2,12 +2,12 @@
 | 
			
		|||
<html>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>SkunkyArt</title>
 | 
			
		||||
        <link rel="stylesheet" href="gui/css/skunky.css">
 | 
			
		||||
        <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <header>
 | 
			
		||||
            <h1><a href="/">HOME</a> | <a href="/dd">DD</a> | <a href="?atom=true">RSS</a></h1>
 | 
			
		||||
            <form method="get" action="/search">
 | 
			
		||||
            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a> | <a href="?atom=true">RSS</a></h1>
 | 
			
		||||
            <form method="get" action="{{.BasePath}}search">
 | 
			
		||||
                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
                    <option value="all">All</option>
 | 
			
		||||
| 
						 | 
				
			
			@ -16,6 +16,6 @@
 | 
			
		|||
                <button type="submit">Search!</button>
 | 
			
		||||
            </form>
 | 
			
		||||
        </header>
 | 
			
		||||
        {{.}}
 | 
			
		||||
        {{.Templates.SomeList}}
 | 
			
		||||
    </main>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>SkunkyArt | Search "{{.Query}}"</title>
 | 
			
		||||
        <link rel="stylesheet" href="/gui/css/skunky.css">
 | 
			
		||||
        <title>SkunkyArt | Search "{{.QueryRaw}}"</title>
 | 
			
		||||
        <link rel="stylesheet" href="{{.BasePath}}gui/css/skunky.css">
 | 
			
		||||
    </head>
 | 
			
		||||
    <main>
 | 
			
		||||
        <header>
 | 
			
		||||
            <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
 | 
			
		||||
            <h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a></h1>
 | 
			
		||||
            <form method="get" action="search">
 | 
			
		||||
                <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
 | 
			
		||||
                <select name="type">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue