diff options
Diffstat (limited to 'v0.9.5')
-rw-r--r-- | v0.9.5/patches/01_prettier_rssfeed.patch | 16 | ||||
-rw-r--r-- | v0.9.5/views/header.html | 90 | ||||
-rw-r--r-- | v0.9.5/views/header_fr.html | 92 | ||||
-rw-r--r-- | v0.9.5/views/honk.html | 140 | ||||
-rw-r--r-- | v0.9.5/views/local.css | 8 |
5 files changed, 346 insertions, 0 deletions
diff --git a/v0.9.5/patches/01_prettier_rssfeed.patch b/v0.9.5/patches/01_prettier_rssfeed.patch new file mode 100644 index 0000000..80e8d9e --- /dev/null +++ b/v0.9.5/patches/01_prettier_rssfeed.patch @@ -0,0 +1,16 @@ +diff --git a/web.go b/web.go +index 11adf5b..502e15f 100644 +--- a/web.go ++++ b/web.go +@@ -190,9 +190,9 @@ func showrss(w http.ResponseWriter, r *http.Request) { + name += " " + } + feed := rss.Feed{ +- Title: name + "honk", ++ Title: "@" + name + " - honking from " + serverName, + Link: home, +- Description: name + "honk rss", ++ Description: "RSS Feed of honks from " + name + "@" + serverName, + Image: &rss.Image{ + URL: base + "icon.png", + Title: name + "honk rss", diff --git a/v0.9.5/views/header.html b/v0.9.5/views/header.html new file mode 100644 index 0000000..4498ca1 --- /dev/null +++ b/v0.9.5/views/header.html @@ -0,0 +1,90 @@ +<!doctype html> +<html> +<head> + <link rel="shortcut icon" href="/favicon.ico"/> +<title>honk</title> +<link href="/style.css{{ .StyleParam }}" rel="stylesheet"> +{{ if .LocalStyleParam }} +<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> +{{ end }} +<style> +{{ .UserStyle }} +</style> +<link href="/icon.png" rel="icon"> +<meta name="theme-color" content="#305"> +<meta name="viewport" content="width=device-width"> +<meta name="description" content="Federated ActivityPub instance running the Honk server. things happen"> +<meta name="keywords" content="honk"> +</head> +<body> +<header> +{{ if .UserInfo }} +<details id="topmenu"> + <summary>menu <span> {{ .UserInfo.Username }}</span></summary> +<ul> +<li><a id="homelink" href="/">home</a> +<li><a id="atmelink" href="/atme">@me</a> +<li><a id="firstlink" href="/first">first</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>combos</summary> +<ul> +{{ range .Combos }} +<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> +{{ end }} +</ul> +</details> +<li><a href="/chatter">chatter</a> +<li><a href="/o">tags</a> +<li><a href="/events">events</a> +<li><a id="longagolink" href="/longago">long ago</a> +<li><a id="savedlink" href="/saved">saved</a> +<li><a href="/honkers">honkers</a> +<li><a href="/hfcs">filters</a> +<li><a href="/account">account</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>more stuff</summary> +<ul> +<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">my honks</a> +<li><a href="/about">about</a> +<li><a href="/front">front</a> +<li><a href="/funzone">funzone</a> +<li><a href="/xzone">xzone</a> +</ul> +</details> +<li><a href="/help/honk.1.html">help</a> +<li> +<form action="/q" method="GET"> +<input type="text" name="q" autocomplete=off size=10 placeholder="search"> +</form> +</ul> +</details> + +<!-- CUSTOM HONK NAVIGATION BAR --> + <div id="altnavbar"> + <a href="/newhonk" tabindex="2">new honk</a> | + <a href="/front">front</a> | + <a href="/">home</a> | + <a href="/xzone">fetch</a> | + <a href="/atme">@me</a> | + <a href="/u/{{ .UserInfo.Username}}">profile</a> | + <a href="/account">settings</a> | + <form style="display:inline" action="/q" method="GET"> + <input type="text" tabindex="1" name="q" autocomplete="off" size="10" placeholder="search"> + </form> + </div> +<!-- END --> + +<p id="topspacer"></p> +{{ else }} +<span><a id="homelink" href="/">home</a></span> +<span><a href="/o">tags</a></span> +<span><a href="/events">events</a></span> +<span><a href="/about">about</a></span> +{{ if .ShowRSS }} +<span><a href="/rss">rss</a></span> +{{ end }} +<span><a href="/login">login</a></span> +{{ end }} +</header> diff --git a/v0.9.5/views/header_fr.html b/v0.9.5/views/header_fr.html new file mode 100644 index 0000000..580ce07 --- /dev/null +++ b/v0.9.5/views/header_fr.html @@ -0,0 +1,92 @@ +<!doctype html> +<html> +<head> + <link rel="shortcut icon" href="/favicon.ico"/> +<title>honk</title> +<link href="/style.css{{ .StyleParam }}" rel="stylesheet"> +{{ if .LocalStyleParam }} +<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet"> +{{ end }} +<style> +{{ .UserStyle }} +</style> +<link href="/icon.png" rel="icon"> +<meta name="theme-color" content="#305"> +<meta name="viewport" content="width=device-width"> +<meta name="description" content="Federated ActivityPub instance running the Honk server. things happen"> +<meta name="keywords" content="honk"> +</head> +<body> +<header> +{{ if .UserInfo }} +<details id="topmenu"> + <summary>menu <span> {{ .UserInfo.Username }}</span></summary> +<ul> +<li><a id="homelink" href="/">accueil</a> +<li><a id="atmelink" href="/atme">@moi</a> +<li><a id="firstlink" href="/first">premier</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>combos</summary> +<ul> +{{ range .Combos }} +<li><a class="combolink" href="/c/{{ . }}">{{ . }}</a> +{{ end }} +</ul> +</details> +<li><a href="/chatter">discutaille</a> +<li><a href="/o">balises</a> +<li><a href="/events">moments</a> +<li><a id="longagolink" href="/longago">il y a un temps</a> +<li><a id="savedlink" href="/saved">sauvegardés</a> +<li><a href="/honkers">honkers</a> +<li><a href="/hfcs">filtres</a> +<li><a href="/account">mon compte</a> +<li style="list-style-type:none; margin-left:-1em"> +<details> +<summary>plus de choses</summary> +<ul> +<li><a href="/{{ .UserSep }}/{{ .UserInfo.Username }}">my honks</a> +<li><a href="/about">à propos</a> +<li><a href="/front">tout</a> +<li><a href="/funzone">funzone</a> +<li><a href="/xzone">xzone</a> +</ul> +</details> +<li><a href="/help/honk.1.html">aide</a> +<li> +<form action="/q" method="GET"> +<input type="text" name="q" autocomplete=off size=10 +placeholder="rechercher"> +</form> +</ul> +</details> + +<!-- CUSTOM HONK NAVIGATION BAR --> + <div id="altnavbar"> + <a href="/newhonk" tabindex="2">🎺</a> | + <a href="/front">front</a> | + <a href="/">accueil</a> | + <a href="/xzone">récup</a> | + <a href="/atme">@moi</a> | + <a href="/u/{{ .UserInfo.Username}}">profil</a> | + <a href="/account">⚙️</a> | + <form style="display:inline" action="/q" method="GET"> + <input type="text" tabindex="1" name="q" autocomplete="off" + size="10" placeholder="rechercher"> + </form> + </div> +<!-- END --> + +<p id="topspacer"></p> +{{ else }} +<span><a id="homelink" href="/">accueil</a></span> +<span><a href="/o">balises</a></span> +<span><a href="/events">moments</a></span> +<span><a href="/about">à propos</a></span> +{{ if .ShowRSS }} +<span><a href="/rss">rss</a></span> +{{ end }} +<span><a href="/login">login</a></span> +{{ end }} +</header> diff --git a/v0.9.5/views/honk.html b/v0.9.5/views/honk.html new file mode 100644 index 0000000..2d1e465 --- /dev/null +++ b/v0.9.5/views/honk.html @@ -0,0 +1,140 @@ +<article class="honk {{ .Honk.Style }}" data-convoy="{{ .Honk.Convoy }}"> +{{ $bonkcsrf := .BonkCSRF }} +{{ $IsPreview := .IsPreview }} +{{ $maplink := .MapLink }} +{{ $omitimages := .OmitImages }} +{{ with .Honk }} +<header> +{{ if $bonkcsrf }} +<a class="honkerlink" href="/h?xid={{ .Honker }}" data-xid="{{ .Honker }}"> +{{ else }} +<a href="{{ .Honker }}" rel=noreferrer> +{{ end }} +<img alt="" src="/a?a={{ .Honker}}"> +{{ if $bonkcsrf }} </a> {{ end }} +{{ if .Oonker }} +{{ if $bonkcsrf }} +<a class="honkerlink" href="/h?xid={{ .Oonker }}" data-xid="{{ .Oonker }}"> +{{ else }} +<a href="{{ .Oonker }}" rel=noreferrer> +{{ end }} +<img alt="" src="/a?a={{ .Oonker}}"> +{{ if $bonkcsrf }} </a> {{ end }} +{{ end }} +<p> +{{ if $bonkcsrf }} +<a class="honkerlink" href="/h?xid={{ .Honker }}" data-xid="{{ .Honker }}">{{ .Username }}</a> +{{ else }} +<a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> +{{ end }} +<span class="clip"><a href="{{ .URL }}" rel=noreferrer>{{ .What }}</a> {{ .Date.Local.Format "02 Jan 2006 15:04 -0700" }}</span> +{{ if .Oonker }} +<br> +<span style="margin-left: 1em;" class="clip"> +{{ if $bonkcsrf }} +original: <a class="honkerlink" href="/h?xid={{ .Oonker }}" data-xid="{{ .Oonker }}">{{ .Oondle }}</a> +{{ else }} +original: <a href="{{ .Oonker }}" rel=noreferrer>{{ .Oondle }}</a> +{{ end }} +</span> +{{ else }} +{{ if .RID }} +<br> +<span style="margin-left: 1em;" class="clip"> +in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a> +</span> +{{ end }} +{{ end }} +<br> +{{ if $bonkcsrf }} +<span style="margin-left: 1em;" class="clip">convoy: <a class="convoylink" href="/t?c={{ .Convoy }}">{{ .Convoy }}</a></span> +{{ else }} +<span style="margin-left: 1em;" class="clip">convoy: {{ .Convoy }}</span> +{{ end }} +</header> +<p> +<details class="noise" {{ .Open }} > +<summary>{{ .HTPrecis }}<p></summary> +<p>{{ .HTPrecis }} +<p>{{ .HTML }} +{{ with .Time }} +<p>Time: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}} +{{ if .Duration }}<br>Duration: {{ .Duration }}{{ end }} +{{ end }} +{{ with .Place }} +<p>Location: {{ with .Url }}<a href="{{ . }}" rel=noreferrer>{{ end }}{{ .Name }}{{ if .Url }}</a>{{ end }}{{ if or .Latitude .Longitude }} <a href="{{ if eq $maplink "apple" }}https://maps.apple.com/?q={{ or .Name "here" }}&z=16&ll={{ .Latitude }},{{ .Longitude }}{{ else }}https://www.openstreetmap.org/?mlat={{ .Latitude }}&mlon={{ .Longitude}}#map=16/{{ .Latitude }}/{{ .Longitude }}{{ end }}" rel=noreferrer>{{ .Latitude }} {{ .Longitude }}</a>{{ end }} +{{ end }} +{{ range .Donks }} +{{ if .Local }} +{{ if eq .Media "text/plain" }} +<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else if eq .Media "application/pdf" }} +<p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +{{ if $omitimages }} +<p><a href="/d/{{ .XID }}">Image: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"> +{{ end }} +{{ end }} +{{ else }} +{{ if .External }} +<p><a href="{{ .URL }}" rel=noreferrer>External Attachment: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +{{ if eq .Media "video/mp4" }} +<p><video controls src="{{ .URL }}">{{ .Name }}</video> +{{ else }} +<p><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"> +{{ end }} +{{ end }} +{{ end }} +{{ end }} +</details> +{{ end }} +{{ if and $bonkcsrf (not $IsPreview) }} +<p> +<div> +<p> +{{ if .Honk.Public }} +{{ if .Honk.IsBonked }} +<button onclick="return unbonk(this, '{{ .Honk.XID }}');">unbonk</button> +{{ else }} +<button onclick="return bonk(this, '{{ .Honk.XID }}');">bonk</button> +{{ end }} +{{ else }} +<button disabled>nope</button> +{{ end }} +<button onclick="return showhonkform(this, '{{ .Honk.XID }}', '{{ .Honk.Handles }}');"><a href="/newhonk?rid={{ .Honk.XID }}">honk back</a></button> +<button onclick="return muteit(this, '{{ .Honk.Convoy }}');">mute</button> +<button onclick="return showelement('evenmore{{ .Honk.ID }}')">even more</button> +</div> +<div id="evenmore{{ .Honk.ID }}" style="display:none"> +<p> +<button onclick="return zonkit(this, '{{ .Honk.XID }}');">zonk</button> +{{ if .Honk.IsAcked }} +<button onclick="return flogit(this, 'deack', '{{ .Honk.XID }}');">deack</button> +{{ else }} +<button onclick="return flogit(this, 'ack', '{{ .Honk.XID }}');">ack</button> +{{ end }} +{{ if .Honk.IsSaved }} +<button onclick="return flogit(this, 'unsave', '{{ .Honk.XID }}');">unsave</button> +{{ else }} +<button onclick="return flogit(this, 'save', '{{ .Honk.XID }}');">save</button> +{{ end }} +{{ if .Honk.IsUntagged }} +<button disabled>untagged</button> +{{ else }} +<button onclick="return flogit(this, 'untag', '{{ .Honk.XID }}');">untag me</button> +{{ end }} +<button><a href="/edit?xid={{ .Honk.XID }}">edit</a></button> +{{ if not (eq .Badonk "none") }} +{{ if .Honk.IsReacted }} +<button disabled>badonked</button> +{{ else }} +<button onclick="return flogit(this, 'react', '{{ .Honk.XID }}');">{{ .Badonk }}</button> +{{ end }} +{{ end }} +</div> +<p> +{{ end }} +</article> diff --git a/v0.9.5/views/local.css b/v0.9.5/views/local.css new file mode 100644 index 0000000..680d300 --- /dev/null +++ b/v0.9.5/views/local.css @@ -0,0 +1,8 @@ +#altnavbar{ + margin-left:17%; + position:fixed; + background:var(--bg-page); + opacity:0.7; + top:0; + padding:5px +} |