This commit is contained in:
nnduc
2026-10-24 14:03:52 +07:00
commit 4fe046de58
4790 changed files with 311146 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
[sendto]
attach = Attach to a blog publication
share = Share in a new publication
selected = contacts selected
pick = Pick the contacts you want to share this content with
shared_with = Post shared
shared_contacts = Post shared with %s contacts
more_contacts = More contacts
os_share = Share outside Movim
sharing_post = Post shared using Movim
sharing_story = Story shared using Movim
+19
View File
@@ -0,0 +1,19 @@
#sendto ul.list:first-child li.block:not(.story) {
margin: 0 1rem;
}
#sendto ul.list.flex.fourth.gallery:first-child {
grid-template-columns: 1fr auto;
}
#sendto ul.list.flex.fourth.gallery:first-child li:not(.subheader):not(.story) {
padding: 0;
}
#sendto ul.list span.share i::before {
content: 'add';
}
#sendto ul.list span.share.sharing i::before {
content: 'remove';
}
+46
View File
@@ -0,0 +1,46 @@
var SendTo = {
contacts: {},
init: function () {
SendTo.contacts = {};
document.querySelectorAll('#sendto_share_contacts > li[data-jid]').forEach(li => {
var store = new ChatOmemoStorage();
store.getContactState(li.dataset.jid).then(enabled => {
if (enabled) li.classList.add('disabled');
});
});
},
shareArticle: function (link) {
SendTo_ajaxShareArticle(link, typeof navigator.share == 'function');
},
toggleSend: function (contact) {
if (contact.classList.contains('sharing')) {
contact.classList.remove('sharing');
delete SendTo.contacts[contact.dataset.jid];
} else {
contact.classList.add('sharing');
SendTo.contacts[contact.dataset.jid] = Boolean(contact.dataset.muc);
}
var button = document.getElementById('sendto_button');
var contactsCount = Object.keys(SendTo.contacts).length;
document.getElementById('sendto_counter').innerText = contactsCount;
button.classList.remove('disabled');
if (contactsCount == 0) {
button.classList.add('disabled');
}
},
sendToContacts: function(uri) {
SendTo_ajaxSend(SendTo.contacts, uri);
SendTo.contacts = {};
},
shareOs(object) {
navigator.share(object);
},
}