Credits and JS stuff

FossilOrigin-Name: 38ce3752bd163ee8c28cd5f624146e5ef09dbdac5495848d42828bd03d5813b0
This commit is contained in:
nekobit 2022-06-05 22:54:29 +00:00
parent c5d8b9df68
commit 4c0b6c7859
5 changed files with 27 additions and 12 deletions

14
CREDITS
View file

@ -7,19 +7,18 @@
* Nekobit <@neko@rdrama.cc>
Created the Treebird frontend, created mastodont-c (A pleroma C library)
Originally, this was called RatFE, but the name changed.
[ Producer ]
* Grumbulon <@grumbulon@freecumextremist.com>
Creator of the Logo and owns treebird.dev, made dark theme
[ Camera support ]
* Pacific Coast Highway <@pch_xyz@seediqbale.xyz>
Provided Chinese (Traditional) Translations
* SamTherapy <@sam@froth.zone>
Documentation and cleanup, fixed bugs
[ Support ]
* Khan <@Khan@sleepy.cafe>
* Khan <@khan@sleepy.cafe>
Helped with the old Treebird Husky fork (history lesson required)
[ Executive producer ]
OTHER
@ -27,5 +26,6 @@
* ICONSVG Project
* cJSON developers
* Pleroma developers
* Alex Gleason - For API assistance
* You! :)
* Alex Gleason - For occasional API assistance
* You! :)
* Me

18
dist/js/main.js vendored
View file

@ -2,8 +2,6 @@ Element.prototype.insertAfter = function(element) {
element.parentNode.insertBefore(this, element.nextSibling);
};
function construct_quick_reply_form(replyid)
{
let src = document.createElement("form");
@ -65,6 +63,16 @@ function construct_quick_reply_form(replyid)
return src;
}
function status_interact_props(e)
{
e.preventDefault();
let interact = e.target.closest(".statbtn");
let type = interact.target.closest(".itype");
console.log([interact, type]);
return false;
}
function create_reply_form(e)
{
e.preventDefault();
@ -87,9 +95,15 @@ function create_reply_form(e)
// Main
(function() {
let reply_btn = document.getElementsByClassName("reply-btn");
let interact_btn = document.getElementsByClassName("statbtn");
for (let i = 0; i < reply_btn.length; ++i)
{
reply_btn[i].addEventListener('click', create_reply_form);
}
for (let i = 0; i < interact_btn.length; ++i)
{
interact_btn[i].addEventListener('click', status_interact_props);
}
})();

View file

@ -11,6 +11,7 @@
<h3>Other contributors</h3>
<ul>
<li><a href="/@pch_xyz@seediqbale.xyz" alt="Chinese (Traditional) translations">Pacific Coast Highway (pch_xyz)</a></li>
<li><a href="/@grumbulon@freecumextremist.com" alt="Helped with the original dark theme, and created the original treebird.dev website">Grumbulon</a></li>
<li><a href="/@coyote@pl.lain.sh" alt="Created Solarized themes for Treebird">Coyote</a></li>
<li><a href="/@khan@sleepy.cafe" alt="Started idea of treebird">Khan</a></li>

View file

@ -10,7 +10,7 @@
</td>
<td>
<form action="{{%s:prefix}}/status/{{%s:status_id}}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unrepeat}}repeat">
<input class="itype" type="hidden" name="itype" value="{{%s:unrepeat}}repeat">
<label class="repeat-btn pointer statbtn">
<svg class="repeat {{%s:repeat_active}}" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 2.1l4 4-4 4"/><path d="M3 12.2v-2a4 4 0 0 1 4-4h12.8M7 21.9l-4-4 4-4"/><path d="M21 11.8v2a4 4 0 0 1-4 4H4.2"/></svg>
<span class="count">{{%s:repeats_count}}</span>
@ -20,7 +20,7 @@
</td>
<td>
<form action="{{%s:prefix}}/status/{{%s:status_id}}/interact" method="post">
<input type="hidden" name="itype" value="{{%s:unfavourite}}like">
<input class="itype" type="hidden" name="itype" value="{{%s:unfavourite}}like">
<label class="pointer statbtn like-btn">
<svg class="like {{%s:favourite_active}}" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
<span class="count">{{%s:favourites_count}}</span>

View file

@ -1,6 +1,6 @@
<td>
<form action="{{%s:prefix}}/status/{{%s:status_id}}/interact" method="post">
<input type="hidden" name="itype" value="likeboost">
<input class="itype" type="hidden" name="itype" value="likeboost">
<label class="pointer statbtn likeboost-btn">
<svg class="one-click-software" width="20" height="20" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><g stroke-width="1.98"><path d="m19.15 8.5061 2.7598 2.7598-2.7598 2.7598"/><path d="m14.756 11.325s2.5484-0.05032 6.3258 0.01026m-15.639 10.807-2.7598-2.7598 2.7598-2.7598"/><path d="m22.4 15.327v1.2259c0 1.156-1.2356 2.7598-2.7598 2.7598h-16.664"/></g><polygon transform="matrix(.60736 0 0 .60736 .60106 .63577)" points="18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2 15.09 8.26 22 9.27 17 14.14" stroke-width="2.9656"/></g></svg>
<input class="hidden" type="submit" value="L+R">