Baked in twemoji to energised.botegirl.parts. This will later become a config option.

This commit is contained in:
Zergling_man 2024-04-03 17:38:17 +11:00
parent 85017bbfd7
commit 9e43a19084
11 changed files with 2263 additions and 2256 deletions

View File

@ -2,7 +2,7 @@
pkgname=thedesk pkgname=thedesk
_pkgname=TheDesk _pkgname=TheDesk
pkgver=24.2.0 pkgver=24.2.1
_electronversion=22 _electronversion=22
pkgrel=2 pkgrel=2
pkgdesc="Mastodon Client for PC, Zergling_man's pleroma-focused fork." pkgdesc="Mastodon Client for PC, Zergling_man's pleroma-focused fork."

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@ function additional(acct_id, tlid) {
$('#timeline-container .mention').addClass('parsed') $('#timeline-container .mention').addClass('parsed')
$('#timeline-container .hashtag, #timeline-container [rel=tag]').each(function(i, elem) { $('#timeline-container .hashtatwemg, #timeline-container [rel=tag]').each(function(i, elem) {
var tags = $(this) var tags = $(this)
.attr('href') .attr('href')
.match(/https?:\/\/([-a-zA-Z0-9@.]+)\/tags?\/([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/) .match(/https?:\/\/([-a-zA-Z0-9@.]+)\/tags?\/([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/)
@ -233,10 +233,10 @@ function cardHtml(json, acct_id, id) {
if (json.html || json.provider_name == 'Twitter') { if (json.html || json.provider_name == 'Twitter') {
if(isHad) { if(isHad) {
var prved = `<img class="emoji" draggable="false" alt="✅" var prved = `<img class="emoji" draggable="false" alt="✅"
src="https://twemoji.maxcdn.com/v/12.1.3/72x72/2705.png">` src="https://energised.botegirl.parts/v/12.1.3/72x72/2705.png">`
var title = lang.lang_cards_trusted var title = lang.lang_cards_trusted
}else{ }else{
var prved = '<img class="emoji" draggable="false" alt="⚠️" src="https://twemoji.maxcdn.com/v/12.1.4/72x72/26a0.png">' var prved = '<img class="emoji" draggable="false" alt="⚠️" src="https://energised.botegirl.parts/v/12.1.4/72x72/26a0.png">'
var title = lang.lang_cards_untrusted var title = lang.lang_cards_untrusted
} }
analyze =`<a onclick="cardHtmlShow('${acct_id}','${id}')" class="add-show pointer" title="${title}"> analyze =`<a onclick="cardHtmlShow('${acct_id}','${id}')" class="add-show pointer" title="${title}">

View File

@ -191,6 +191,7 @@ async function mixmore(tlid, type) {
var obj = JSON.parse(multi) var obj = JSON.parse(multi)
var acct_id = obj[tlid].domain var acct_id = obj[tlid].domain
moreloading = true moreloading = true
console.log('moreloading mixmore '+tlid+' '+type)
todo('Integrated TL MoreLoading...(Local)') todo('Integrated TL MoreLoading...(Local)')
const domain = localStorage.getItem('domain_' + acct_id) const domain = localStorage.getItem('domain_' + acct_id)
const sid = $('#timeline_' + tlid + ' .cvo') const sid = $('#timeline_' + tlid + ' .cvo')

View File

@ -306,6 +306,7 @@ function notfmore(tlid) {
var domain = localStorage.getItem('domain_' + acct_id) var domain = localStorage.getItem('domain_' + acct_id)
if (sid && !moreloading) { if (sid && !moreloading) {
moreloading = true moreloading = true
console.log('moreloading notfmore '+tlid)
var httpreq = new XMLHttpRequest() var httpreq = new XMLHttpRequest()
if (localStorage.getItem('mode_' + domain) == 'misskey') { if (localStorage.getItem('mode_' + domain) == 'misskey') {
var misskey = true var misskey = true

View File

@ -1452,7 +1452,7 @@ function pollParse(poll, acct_id, emojis) {
var me = minechoice[i] var me = minechoice[i]
if (me == keyc) { if (me == keyc) {
var voteit = var voteit =
'<span class="ownMark"><img class="emoji" draggable="false" src="https://twemoji.maxcdn.com/v/12.1.4/72x72/2705.png"></span>' '<span class="ownMark"><img class="emoji" draggable="false" src="https://energised.botegirl.parts/v/12.1.4/72x72/2705.png"></span>'
break break
} }
} }

View File

@ -193,6 +193,7 @@ function moreTs(tlid, q) {
.last() .last()
.attr('data-maxid') .attr('data-maxid')
moreloading = true moreloading = true
console.log('moreloading src '+tlid)
var start = var start =
'https://tootsearch.chotto.moe/api/v1/search?from=' + sid + '&sort=created_at%3Adesc&q=' + q 'https://tootsearch.chotto.moe/api/v1/search?from=' + sid + '&sort=created_at%3Adesc&q=' + q
$('#notice_' + tlid).text('tootsearch(' + q + ')') $('#notice_' + tlid).text('tootsearch(' + q + ')')

View File

@ -540,6 +540,7 @@ function moreload(type, tlid) {
return return
} }
moreloading = true moreloading = true
console.log('moreloading moreload '+tlid)
localStorage.setItem('now', type) localStorage.setItem('now', type)
todo(cap(type) + ' TL MoreLoading') todo(cap(type) + ' TL MoreLoading')
if (type != 'noauth') { if (type != 'noauth') {
@ -673,6 +674,7 @@ function tlDiff(type, data, acct_id, tlid, delc, voice, mode) {
return return
} }
moreloading = true moreloading = true
console.log('moreloading tldiff '+tlid)
localStorage.setItem('now', type) localStorage.setItem('now', type)
todo(cap(type) + ' TL MoreLoading') todo(cap(type) + ' TL MoreLoading')
if (type != 'noauth') { if (type != 'noauth') {
@ -1353,6 +1355,7 @@ function asReadEnd() {
//ブックマーク //ブックマーク
function getBookmark(acct_id, tlid, more) { function getBookmark(acct_id, tlid, more) {
moreloading = true moreloading = true
console.log('moreloading getbookmark '+tlid)
console.log(acct_id, tlid, more) console.log(acct_id, tlid, more)
if (more) { if (more) {
var sid = $('#timeline_' + tlid + ' .notif-marker') var sid = $('#timeline_' + tlid + ' .notif-marker')
@ -1407,6 +1410,7 @@ function getBookmark(acct_id, tlid, more) {
function getUtl(acct_id, tlid, data, more) { function getUtl(acct_id, tlid, data, more) {
moreloading = true moreloading = true
console.log('moreloading getutl '+tlid)
if (more) { if (more) {
var sid = $('#timeline_' + tlid + ' .cvo') var sid = $('#timeline_' + tlid + ' .cvo')
.last() .last()

View File

@ -148,7 +148,7 @@
var lang = "ja"; var lang = "ja";
} }
</script> </script>
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script> <script src="https://energised.harpy.faith/2/twemoji.min.js?2.7"></script>
<script type="text/javascript" src="./node_modules/lodash/lodash.min.js"></script> <script type="text/javascript" src="./node_modules/lodash/lodash.min.js"></script>
<script type="text/javascript" src="./js/platform/first.js"></script> <script type="text/javascript" src="./js/platform/first.js"></script>
<script type="text/javascript" src="./js/platform/plugin.js"></script> <script type="text/javascript" src="./js/platform/plugin.js"></script>

View File

@ -73,7 +73,7 @@
<script type="text/javascript" src="../../@@node_base@@/sweetalert2/dist/sweetalert2.min.js"></script> <script type="text/javascript" src="../../@@node_base@@/sweetalert2/dist/sweetalert2.min.js"></script>
<script type="text/javascript" src="../../js/platform/punycode.js"></script> <script type="text/javascript" src="../../js/platform/punycode.js"></script>
<script type="text/javascript" src="../../js/ui/tips.js"></script> <script type="text/javascript" src="../../js/ui/tips.js"></script>
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script> <script src="https://energised.botegirl.parts/2/twemoji.min.js?2.7"></script>
<script type="text/javascript" src="../../js/common/about.js"></script> <script type="text/javascript" src="../../js/common/about.js"></script>
<script type="text/javascript" src="../../js/tl/misskeyparse.js"></script> <script type="text/javascript" src="../../js/tl/misskeyparse.js"></script>
<script type="text/javascript" src="../../js/tl/dm.js"></script> <script type="text/javascript" src="../../js/tl/dm.js"></script>

View File

@ -318,7 +318,7 @@
<div class="area-display_name grid"> <div class="area-display_name grid">
<div class="flex-name"> <div class="flex-name">
<span class="user">TheDesk<img class="emoji" draggable="false" alt="👀" <span class="user">TheDesk<img class="emoji" draggable="false" alt="👀"
src="https://twemoji.maxcdn.com/v/13.0.2/72x72/1f440.png"></span> src="https://energised.botegirl.parts/v/13.0.2/72x72/1f440.png"></span>
<span class="sml gray" <span class="sml gray"
style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;"> style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;">
@thedesk@a.thedesk.tld <i class="fas fa-lock red-text"></i> @thedesk@a.thedesk.tld <i class="fas fa-lock red-text"></i>