this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove unused Handlebars templates from backend assets (#55)

authored by

Mar and committed by
GitHub
e6ca0ad6 b290f2b8

-118
-30
backend/assets/handlebars/home-side.handlebars
··· 1 - <!-- 2 - ~ Copyright (c) 2024, MLC 'Strawmelonjuice' Bloeiman 3 - ~ 4 - ~ Licensed under the BSD 3-Clause License. See the LICENSE file for more info. 5 - --> 6 - 7 - <div class="lg:p-0.5"> 8 - <div 9 - class="flex flex-col p-4 m-4 space-y-4 border-gray-500 rounded-md border-1 bg-brown-100 dark:bg-neutral-700" 10 - > 11 - <h3 class="underline">Timelines</h3> 12 - <a href="javascript:void(0)" onclick=""> 13 - <button 14 - class="px-3 py-2 text-sm font-medium bg-orange-200 border-2 rounded-md border-emerald-600 dark:text-orange-200 dark:bg-yellow-700 hover:text-white hover:bg-gray-700 text-brown-800 dark:border-zinc-400" 15 - > 16 - &#127760;&emsp;Global timeline</button> 17 - </a> 18 - <a href="javascript:void(0)" onclick=""> 19 - <button 20 - class="px-3 py-2 text-sm font-medium bg-orange-200 border-2 rounded-md border-emerald-600 dark:text-orange-200 dark:bg-yellow-700 hover:text-white hover:bg-gray-700 text-brown-800 dark:border-zinc-400" 21 - > 22 - &#128587;&emsp;Followed timeline</button> 23 - </a> 24 - </div> 25 - <div 26 - class="flex flex-col p-4 m-4 space-y-4 border-gray-500 rounded-md border-1 bg-brown-100 dark:bg-neutral-700" 27 - > 28 - <h3 class="underline">Bubbles</h3> 29 - </div> 30 - </div>
-71
backend/assets/handlebars/postrender.handlebars
··· 1 - <div class="container py-8 px-4 mx-auto mr-1 ml-1 lg:mr-auto lg:ml-auto lg:max-w-[50VW]"> 2 - <div class="overflow-hidden relative rounded-lg shadow-lg bg-brown-25 dark:bg-neutral-700"> 3 - {{#if (numequal posttype 2)}} 4 - {{!-- Display title for article posts --}} 5 - <h3 class="p-4 border-b-2 border-dotted border-neutral-700 dark:border-brown-25">{title}</h3> 6 - {{/if}} 7 - {{#if (numequal posttype 3)}} 8 - {{!-- Display media in media posts --}} 9 - <div class="postcontent"> 10 - <embed loading="lazy" src="https://via.placeholder.com/400x800" alt="Social Media Post" class="object-contain w-full rounded-b-none rounded-t-lg lg:max-h-[60VH]" /> 11 - <div class="p-4"> 12 - <p class="text-lg text-neutral-900 dark:text-neutral-100">{{content}}</p> 13 - </div> 14 - </div> 15 - {{/if}} 16 - <div class="relative w-full border-b-2 border-dotted border-neutral-700 dark:border-brown-25"> 17 - <div class="float-right p-2 w-max text-indigo-300 unparsed-timestamp dark:text-neutral-400">{{timestamp}}</div> 18 - <a href="{{#unless local}}https://{{author.instance}}{{/unless}}/user/profile/{{author.id}}"> 19 - <div class="flex flex-row justify-evenly p-2 w-max min-w-60 post-author-main"> 20 - <div class="w-1/5 text-xl"> 21 - <img loading="lazy" class="w-8 h-8 rounded-full" src="{{#unless local}}https://{{author.instance}}{{/unless}}/user/avatar/{{author.id}}" alt="@"> 22 - </div> 23 - <span class="text-lg">{{author.username}}{{#unless local}}@{{author.instance}}{{/unless}}</span> 24 - </div> 25 - </a> 26 - </div> 27 - {{#if (numequal posttype 1)}} 28 - <div class="border-b-2 border-dotted postcontent border-neutral-700 dark:border-brown-25"> 29 - <div class="p-4 bg-brown-100 dark:bg-neutral-800"> 30 - <p class="text-lg text-neutral-900 dark:text-neutral-100">{{content}}</p> 31 - </div> 32 - </div> 33 - {{/if}} 34 - <div class="relative mr-1 ml-1 w-full"> 35 - <div class="mt-4 mb-4 w-full"> 36 - {{#if tags}} 37 - <p class="text-xs">Tags on this post</p> 38 - <ul class="justify-between p-4 pb-1 w-full"> 39 - {{#each tags}} 40 - {{!-- Displaying tags -- if any -- in their boxy little list. --}} 41 - <li class="inline-block p-1 m-1 text-sm rounded-xl border-2 border-dotted border-neutral-400 bg-slate-600 text-neutral-200 dark:border-slate-500 dark:text-slate-800 dark:bg-slate-400"><a href="/tag/{{this}}" class="text-blue-300 dark:text-blue-900">{{this}}</a></li> 42 - {{/each}} 43 - </ul> 44 - {{/if}} 45 - </div> 46 - <div class="flex float-right justify-between items-center m-4 mr-6 w-max min-w-[9rem] h-fit min-h-12"> 47 - <div class="relative p-1 w-12 h-14 me-1 ms-1 postbttn"> 48 - <!-- Like (Push) --> 49 - <div class="absolute m-2 w-12 h-12 text-center align-middle rounded-full border-2 border-black border-solid hover:text-violet-500 bg-slate-600 text-neutral-200 leading-12 dark:text-slate-800 dark:bg-slate-400"> 50 - {{{button_push}}} 51 - </div> 52 - <span class="text-white bg-black dark:text-black postbttndescription dark:bg-brown-300">Push up</span> 53 - </div> 54 - <div class="relative p-1 w-12 h-14 me-1 ms-1 postbttn"> 55 - <!-- Reply (Comment) --> 56 - <div class="absolute m-2 w-12 h-12 text-center align-middle rounded-full border-2 border-black border-solid hover:text-red-300 bg-slate-600 text-neutral-200 leading-12 dark:text-slate-800 dark:bg-slate-400"> 57 - {{{button_comment}}} 58 - </div> 59 - <span class="text-white bg-black dark:text-black postbttndescription dark:bg-brown-300">Comment</span> 60 - </div> 61 - <div class="relative p-1 w-12 h-14 me-1 ms-1 postbttn"> 62 - <!-- Repost (Bump) --> 63 - <div class="absolute m-2 w-12 h-12 text-center align-middle rounded-full border-2 border-black border-solid hover:text-amber-400 bg-slate-600 text-neutral-200 leading-12 dark:text-slate-800 dark:bg-slate-400"> 64 - {{{button_boost}}} 65 - </div> 66 - <span class="text-white bg-black dark:text-black postbttndescription dark:bg-brown-300">Bump</span> 67 - </div> 68 - </div> 69 - </div> 70 - </div> 71 - </div>
-17
backend/assets/handlebars/timeline.handlebars
··· 1 - <!-- 2 - ~ Copyright (c) 2024, MLC 'Strawmelonjuice' Bloeiman 3 - ~ 4 - ~ Licensed under the BSD 3-Clause License. See the LICENSE file for more info. 5 - --> 6 - 7 - <html lang="en"> 8 - <head> 9 - <meta charset="UTF-8" /> 10 - <title>Home - {{Username}}@{{InstanceName}}</title> 11 - <!--suppress HtmlUnknownTarget --> 12 - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 13 - </head> 14 - <body> 15 - 16 - </body> 17 - </html>