Reduce Scope
I am no longer going to support all the features and every NIP. It's too hard. Thus I am reducing what I support in YoSup. From now on it will only be a simple client with simple needs that serve me. I will continue to use Damus on iOS or other clients for sending Zaps or using other functionality. I do not feel I need to support these features and it has me competing with other clients such as Snort or Iris, I don't want to be a clone of them - I want a simple client for my needs: viewing what's up from people I follow. Thus I have started removing features and optimizing. Especially for the very poor internet connection here in Costa Rica, reducing load of images, content, etc. makes the client much faster and easier to use. If you feel you are missing features please use the other clients that have put in a LOT of hard work.
This commit is contained in:
parent
abc7612aae
commit
7580e8423a
10 changed files with 115 additions and 149 deletions
|
@ -97,18 +97,39 @@ async function do_send_reply(all=false) {
|
|||
close_modal(modal);
|
||||
}
|
||||
|
||||
function update_reply_box(state="new") {
|
||||
const isnew = state == "new";
|
||||
const modal = document.querySelector("#reply-modal");
|
||||
modal.querySelector("#replying-to").classList.toggle("hide", isnew);
|
||||
modal.querySelector("header label").textContent = isnew ? "New Note" : "Replying To";
|
||||
modal.querySelector(".post-tools.new").classList.toggle("hide", !isnew);
|
||||
modal.querySelector(".post-tools.reply").classList.toggle("hide", isnew);
|
||||
}
|
||||
|
||||
function new_note() {
|
||||
const modal = document.querySelector("#reply-modal");
|
||||
const inputbox = modal.querySelector("#reply-content");
|
||||
update_reply_box("new");
|
||||
inputbox.placeholder = "What's up?";
|
||||
modal.showModal();
|
||||
inputbox.focus();
|
||||
}
|
||||
|
||||
function reply(evid) {
|
||||
const ev = DAMUS.all_events[evid]
|
||||
const modal = document.querySelector("#reply-modal")
|
||||
const replybox = modal.querySelector("#reply-content")
|
||||
const replying_to = modal.querySelector("#replying-to")
|
||||
update_reply_box("reply");
|
||||
replying_to.dataset.evid = evid
|
||||
replying_to.classList.remove("hide");
|
||||
replying_to.innerHTML = render_event_nointeract(DAMUS, ev, {
|
||||
is_composing: true,
|
||||
nobar: true
|
||||
});
|
||||
replybox.placeholder = "Reply...";
|
||||
modal.showModal();
|
||||
replybox.focus()
|
||||
replybox.focus();
|
||||
}
|
||||
|
||||
function update_favicon(path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue