From e95b208af90cc386a7d8d1bcab426727cf4f0121 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 21 Sep 2022 22:42:33 +0200 Subject: Update time --- app/banner.js | 30 +++++++++++++++--------------- app/fronters/index.html | 10 ++++++---- app/fronters/ponies/ckqsw.png | Bin 0 -> 4042 bytes app/fronters/ponies/erknz.png | Bin 8812 -> 6084 bytes app/fronters/ponies/sbxze.png | Bin 0 -> 5754 bytes app/fronters/profiles/ckqsw.png | Bin 0 -> 237290 bytes app/fronters/profiles/djnko.png | Bin 0 -> 56915 bytes app/fronters/profiles/erefx.png | Bin 826530 -> 826530 bytes app/fronters/profiles/erknz.png | Bin 56915 -> 56915 bytes app/fronters/profiles/flukm.png | Bin 0 -> 14049 bytes app/fronters/profiles/gevde.png | Bin 100880 -> 100880 bytes app/fronters/profiles/gfhsr.png | Bin 1642044 -> 2283131 bytes app/fronters/profiles/ghuln.png | Bin 370233 -> 370233 bytes app/fronters/profiles/hpwyq.png | Bin 2770 -> 2770 bytes app/fronters/profiles/irxyh.png | Bin 0 -> 26543 bytes app/fronters/profiles/jnbae.png | Bin 60223 -> 60223 bytes app/fronters/profiles/khsbb.png | Bin 249236 -> 249236 bytes app/fronters/profiles/kkhbw.png | Bin 40300 -> 40300 bytes app/fronters/profiles/lllfw.png | Bin 745786 -> 745786 bytes app/fronters/profiles/lzlaq.png | Bin 26543 -> 26543 bytes app/fronters/profiles/mglyq.png | Bin 91476 -> 91476 bytes app/fronters/profiles/mhnqy.png | Bin 27452 -> 27452 bytes app/fronters/profiles/mxpxm.png | Bin 0 -> 56915 bytes app/fronters/profiles/pabmo.png | Bin 124750 -> 124750 bytes app/fronters/profiles/qbzxm.png | Bin 2843 -> 2843 bytes app/fronters/profiles/qraku.png | Bin 45898 -> 45898 bytes app/fronters/profiles/rdstg.png | Bin 16881 -> 16881 bytes app/fronters/profiles/rirgf.png | Bin 825561 -> 825561 bytes app/fronters/profiles/rmlbf.png | Bin 0 -> 56915 bytes app/fronters/profiles/rpjok.png | Bin 1542918 -> 1542918 bytes app/fronters/profiles/sbxze.png | Bin 0 -> 50554 bytes app/fronters/profiles/sehke.png | Bin 1947 -> 1947 bytes app/fronters/profiles/tfbob.png | Bin 14049 -> 14049 bytes app/fronters/profiles/tgxst.png | Bin 0 -> 40300 bytes app/fronters/profiles/tmgiu.png | Bin 260760 -> 260760 bytes app/fronters/profiles/vncoa.png | Bin 46475 -> 46475 bytes app/fronters/profiles/vvsxf.png | Bin 61010 -> 61010 bytes app/fronters/profiles/xbvwt.png | Bin 70342 -> 70342 bytes app/fronters/profiles/xcjhj.png | Bin 107053 -> 107053 bytes app/fronters/profiles/ybmig.png | Bin 0 -> 40300 bytes app/fronters/profiles/zajrk.png | Bin 2097 -> 2097 bytes app/fronters/profiles/zdtsg.png | Bin 3046 -> 3046 bytes app/fronters/profiles/zhtzs.png | Bin 673763 -> 673763 bytes app/fronters/profiles/ztfjz.png | Bin 184686 -> 184686 bytes app/fronters/profiles/zzise.png | Bin 69145 -> 69145 bytes app/fronters/script.js | 14 +++++++------- app/functions.js | 2 +- app/planner/index.php | 2 +- app/sw.js | 27 +++++++++++++++++++-------- 49 files changed, 49 insertions(+), 36 deletions(-) create mode 100644 app/fronters/ponies/ckqsw.png create mode 100644 app/fronters/ponies/sbxze.png create mode 100644 app/fronters/profiles/ckqsw.png create mode 100644 app/fronters/profiles/djnko.png create mode 100644 app/fronters/profiles/flukm.png create mode 100644 app/fronters/profiles/irxyh.png create mode 100644 app/fronters/profiles/mxpxm.png create mode 100644 app/fronters/profiles/rmlbf.png create mode 100644 app/fronters/profiles/sbxze.png create mode 100644 app/fronters/profiles/tgxst.png create mode 100644 app/fronters/profiles/ybmig.png (limited to 'app') diff --git a/app/banner.js b/app/banner.js index 81991e9..6815de1 100644 --- a/app/banner.js +++ b/app/banner.js @@ -6,10 +6,10 @@ function timeAgo(time) { time = new Date(time).getTime(); } - let periods = ["second", "minute", "hour", "day", "week", "month", "year", "age"]; + let periods = ["sec.", "mn.", "hr.", "d.", "wk.", "mo.", "y.", "ages"]; if (bannerFrench) { - periods = ["seconde", "minute", "heure", "jour", "semaine", "mois", "an", "des année"]; + periods = ["sec.", "min.", "h.", "j.", "sem.", "mois", "an.", "des années"]; } let lengths = ["60", "60", "24", "7", "4.35", "12", "100"]; @@ -46,7 +46,7 @@ function timeAgo(time) { difference = Math.round(difference); - period = periods[j] + (difference > 1 ? "s" : ''); + period = periods[j]; if (bannerFrench) { return `${tense} ${difference} ${period}`; @@ -130,17 +130,17 @@ async function refreshBanner(offline, french) {
- ${french ? `Préfixe${data['prefixes'].length > 1 ? 's' : ''} ` : `Prefix${data['prefixes'].length > 1 ? 'es' : ''}`}: + ${french ? `Préfixe${data['prefixes'].length > 1 ? 's' : ''} ` : `Prefix${data['prefixes'].length > 1 ? 'es' : ''}`}:
${data['prefixes'].join(', ')}
- ${french ? "Pronoms :" : "Pronouns:"} + ${french ? "Pronoms :" : "Pronouns:"}
${data['id'] === "fusion" ? "she/her" : data['pronouns']}
${!data['median'] && data['id'] !== "unknown" ? ` ${data["id"] === "fusion" ? ` - Fronting since : + Fronting since:
${data['last_fronted'] ? ` ${data['last_fronted']['now'] ? ` ${data['last_fronted']['relative']}
  @@ -148,7 +148,7 @@ async function refreshBanner(offline, french) { Not fronting
  `} ` : `Not fronting
 `}` : ` - ${french ? "Front :" : "Last fronted:"} + ${french ? "Front :" : "Last fronted:"}
${data['last_fronted'] ? ` ${data['last_fronted']['now'] ? ` ${french ? "En ce moment" : "Right now"}
@@ -157,23 +157,23 @@ async function refreshBanner(offline, french) { ${data['last_fronted']['relative']}
(${french ? "pendant" : "for"} ${data['last_fronted']['duration']['pretty']}) `} - ` : `${french ? "Il y a très longtemps" : "A long time ago"}
 `}`} + ` : `${french ? "Jamais" : "Never"}
 `}`}
` : ''} ${data['id'] !== "fusion" ? ` ${data['id'] === "unknown" ? "Species: best to ask" : ` - ${french ? (data['species'].length > 1 ? "Espèces : " : "Espèce : ") : "Species: "} + Species: ${data['species'].map(species => ` ${species['name']} `).join("")}`} ` : ''} ${data['id'] !== "fusion" ? ` - ${french ? "Système : " : "System: "} + System: ${data['system']['name']} ${data['system']['subsystem'] ? ` -
${french ? "Sous-système : " : "Subsystem: "} ${data['system']['subsystem']['name']} +
Subsystem: ${data['system']['subsystem']['name']} ` : data['system']['temporary'] ? '
(temporary)' : ''}
` : ''} @@ -183,20 +183,20 @@ async function refreshBanner(offline, french) { ${french ? (data['relations']['marefriends'].length > 1 ? 'Partenaires ' : 'Partenaire ') : `Marefriend${data['relations']['marefriends'].length > 1 ? 's' : ''}`}: ${data['relations']['marefriends'].length > 1 ? '
' : ''} ${data['relations']['marefriends'].map(relation => ` - ${relation['name']}`).join(`,
`)} + `).join(``)} ${data['relations']['marefriends'].length === 0 ? '-' : ''}
${french ? (data['relations']['sisters'].length > 1 ? 'Sœurs ' : 'Sœur ') : `Sister${data['relations']['sisters'].length > 1 ? 's' : ''}`}: ${data['relations']['sisters'].length > 1 ? '
' : ''} ${data['relations']['sisters'].map(relation => ` - ${relation['name']}`).join(`,
`)} + `).join(``)} ${data['relations']['sisters'].length === 0 ? '-' : ''}
${data['little'] ? ` - ${french ? (data['relations']['sisters'].length > 1 ? 'Caretakers ' : 'Caretaker ') : `Caretakers${data['relations']['caretakers'].length > 1 ? 's' : ''}`}: ${data['relations']['caretakers'].length > 1 ? '
' : ''} + ${french ? (data['relations']['sisters'].length > 1 ? 'Caretakers ' : 'Caretaker ') : `Caretaker${data['relations']['caretakers'].length > 1 ? 's' : ''}`}: ${data['relations']['caretakers'].length > 1 ? '
' : ''} ${data['relations']['caretakers'].map(relation => ` - ${relation['name']}`).join(`,
`)} + `).join(``)} ${data['relations']['caretakers'].length === 0 ? '-' : ''}
` : ''} diff --git a/app/fronters/index.html b/app/fronters/index.html index 7a032c1..78a3f92 100644 --- a/app/fronters/index.html +++ b/app/fronters/index.html @@ -12,7 +12,7 @@ samples: { qbzxm: "l. hi i'm here again", zajrk: "t. I kinda want to switch out now hehe, I'm really really tired", - rirgf: "Good morning sweetie!", + rirgf: "s. Good morning sweetie!", lllfw: "z. Okay she is done, sorry for the wait. We can talk now!", pabmo: "b. cat!!", tfbob: "v. eeeeeeeeeee~!", @@ -20,14 +20,15 @@ khsbb: "po. apparently humans are not really nice", ztfjz: "f. Anyway I'm going to let Scoots front now since you miss her", hpwyq: "c. But for now, I'll see you later Twi!", - mhnqy: "d. She'll probably want to sleep in a bit" + mhnqy: "d. She'll probably want to sleep in a bit", + ckqsw: "r. don't even know what they want to do anyway" } }, { system: "ynmuc", name: "cloudburst", samples: { - kkhbw: "i'll see u later hun", + kkhbw: "t. i'll see u later hun", vvsxf: "p. anyway i'll see you later", gevde: "sb. i cuddle switch out go rest..", erefx: "i. brain hears chainsaw and goes like \"aaaaaaa insect AAAAAAAAAAAAAAAAAAAA\"", @@ -41,7 +42,8 @@ rpjok: "e. Affermative", sehke: "w. probably will once i work out how", xbvwt: "s. Twi kinda wants you to do something similar to what I've done", - vncoa: "m. anyway, i'mma honour what i originally said" + vncoa: "m. anyway, i'mma honour what i originally said", + sbxze: "y. you seem friendly though!" } } ] diff --git a/app/fronters/ponies/ckqsw.png b/app/fronters/ponies/ckqsw.png new file mode 100644 index 0000000..8415d1d Binary files /dev/null and b/app/fronters/ponies/ckqsw.png differ diff --git a/app/fronters/ponies/erknz.png b/app/fronters/ponies/erknz.png index cbaf5ca..c649a9d 100644 Binary files a/app/fronters/ponies/erknz.png and b/app/fronters/ponies/erknz.png differ diff --git a/app/fronters/ponies/sbxze.png b/app/fronters/ponies/sbxze.png new file mode 100644 index 0000000..c67d128 Binary files /dev/null and b/app/fronters/ponies/sbxze.png differ diff --git a/app/fronters/profiles/ckqsw.png b/app/fronters/profiles/ckqsw.png new file mode 100644 index 0000000..aa8b705 Binary files /dev/null and b/app/fronters/profiles/ckqsw.png differ diff --git a/app/fronters/profiles/djnko.png b/app/fronters/profiles/djnko.png new file mode 100644 index 0000000..4b3f717 Binary files /dev/null and b/app/fronters/profiles/djnko.png differ diff --git a/app/fronters/profiles/erefx.png b/app/fronters/profiles/erefx.png index a65c876..e5175fb 100644 Binary files a/app/fronters/profiles/erefx.png and b/app/fronters/profiles/erefx.png differ diff --git a/app/fronters/profiles/erknz.png b/app/fronters/profiles/erknz.png index 856533e..4d1f0dd 100644 Binary files a/app/fronters/profiles/erknz.png and b/app/fronters/profiles/erknz.png differ diff --git a/app/fronters/profiles/flukm.png b/app/fronters/profiles/flukm.png new file mode 100644 index 0000000..5bd1d18 Binary files /dev/null and b/app/fronters/profiles/flukm.png differ diff --git a/app/fronters/profiles/gevde.png b/app/fronters/profiles/gevde.png index 414a13d..f08887d 100644 Binary files a/app/fronters/profiles/gevde.png and b/app/fronters/profiles/gevde.png differ diff --git a/app/fronters/profiles/gfhsr.png b/app/fronters/profiles/gfhsr.png index 6ea3317..1d12f37 100644 Binary files a/app/fronters/profiles/gfhsr.png and b/app/fronters/profiles/gfhsr.png differ diff --git a/app/fronters/profiles/ghuln.png b/app/fronters/profiles/ghuln.png index cfec882..d975de1 100644 Binary files a/app/fronters/profiles/ghuln.png and b/app/fronters/profiles/ghuln.png differ diff --git a/app/fronters/profiles/hpwyq.png b/app/fronters/profiles/hpwyq.png index 47be11f..6014172 100644 Binary files a/app/fronters/profiles/hpwyq.png and b/app/fronters/profiles/hpwyq.png differ diff --git a/app/fronters/profiles/irxyh.png b/app/fronters/profiles/irxyh.png new file mode 100644 index 0000000..ff9b84a Binary files /dev/null and b/app/fronters/profiles/irxyh.png differ diff --git a/app/fronters/profiles/jnbae.png b/app/fronters/profiles/jnbae.png index c2a0f15..67a3cc6 100644 Binary files a/app/fronters/profiles/jnbae.png and b/app/fronters/profiles/jnbae.png differ diff --git a/app/fronters/profiles/khsbb.png b/app/fronters/profiles/khsbb.png index baefbe4..4a19d1d 100644 Binary files a/app/fronters/profiles/khsbb.png and b/app/fronters/profiles/khsbb.png differ diff --git a/app/fronters/profiles/kkhbw.png b/app/fronters/profiles/kkhbw.png index 140f080..db09107 100644 Binary files a/app/fronters/profiles/kkhbw.png and b/app/fronters/profiles/kkhbw.png differ diff --git a/app/fronters/profiles/lllfw.png b/app/fronters/profiles/lllfw.png index aabc5c1..922ae6f 100644 Binary files a/app/fronters/profiles/lllfw.png and b/app/fronters/profiles/lllfw.png differ diff --git a/app/fronters/profiles/lzlaq.png b/app/fronters/profiles/lzlaq.png index c3c02d6..19890f3 100644 Binary files a/app/fronters/profiles/lzlaq.png and b/app/fronters/profiles/lzlaq.png differ diff --git a/app/fronters/profiles/mglyq.png b/app/fronters/profiles/mglyq.png index 91bce03..2350ce9 100644 Binary files a/app/fronters/profiles/mglyq.png and b/app/fronters/profiles/mglyq.png differ diff --git a/app/fronters/profiles/mhnqy.png b/app/fronters/profiles/mhnqy.png index 9d69ef8..bbc296e 100644 Binary files a/app/fronters/profiles/mhnqy.png and b/app/fronters/profiles/mhnqy.png differ diff --git a/app/fronters/profiles/mxpxm.png b/app/fronters/profiles/mxpxm.png new file mode 100644 index 0000000..a8a5f44 Binary files /dev/null and b/app/fronters/profiles/mxpxm.png differ diff --git a/app/fronters/profiles/pabmo.png b/app/fronters/profiles/pabmo.png index 9ffe1b6..855989d 100644 Binary files a/app/fronters/profiles/pabmo.png and b/app/fronters/profiles/pabmo.png differ diff --git a/app/fronters/profiles/qbzxm.png b/app/fronters/profiles/qbzxm.png index c48dcfa..59cfdaf 100644 Binary files a/app/fronters/profiles/qbzxm.png and b/app/fronters/profiles/qbzxm.png differ diff --git a/app/fronters/profiles/qraku.png b/app/fronters/profiles/qraku.png index 37873ca..0935261 100644 Binary files a/app/fronters/profiles/qraku.png and b/app/fronters/profiles/qraku.png differ diff --git a/app/fronters/profiles/rdstg.png b/app/fronters/profiles/rdstg.png index 6525f2f..3a28375 100644 Binary files a/app/fronters/profiles/rdstg.png and b/app/fronters/profiles/rdstg.png differ diff --git a/app/fronters/profiles/rirgf.png b/app/fronters/profiles/rirgf.png index 2f31b54..3fdf039 100644 Binary files a/app/fronters/profiles/rirgf.png and b/app/fronters/profiles/rirgf.png differ diff --git a/app/fronters/profiles/rmlbf.png b/app/fronters/profiles/rmlbf.png new file mode 100644 index 0000000..017b9bb Binary files /dev/null and b/app/fronters/profiles/rmlbf.png differ diff --git a/app/fronters/profiles/rpjok.png b/app/fronters/profiles/rpjok.png index 87c9092..1475d47 100644 Binary files a/app/fronters/profiles/rpjok.png and b/app/fronters/profiles/rpjok.png differ diff --git a/app/fronters/profiles/sbxze.png b/app/fronters/profiles/sbxze.png new file mode 100644 index 0000000..4390c22 Binary files /dev/null and b/app/fronters/profiles/sbxze.png differ diff --git a/app/fronters/profiles/sehke.png b/app/fronters/profiles/sehke.png index ef80383..efcdf4a 100644 Binary files a/app/fronters/profiles/sehke.png and b/app/fronters/profiles/sehke.png differ diff --git a/app/fronters/profiles/tfbob.png b/app/fronters/profiles/tfbob.png index eb27d16..a63b6e3 100644 Binary files a/app/fronters/profiles/tfbob.png and b/app/fronters/profiles/tfbob.png differ diff --git a/app/fronters/profiles/tgxst.png b/app/fronters/profiles/tgxst.png new file mode 100644 index 0000000..c23191f Binary files /dev/null and b/app/fronters/profiles/tgxst.png differ diff --git a/app/fronters/profiles/tmgiu.png b/app/fronters/profiles/tmgiu.png index f81b22d..acaf6f3 100644 Binary files a/app/fronters/profiles/tmgiu.png and b/app/fronters/profiles/tmgiu.png differ diff --git a/app/fronters/profiles/vncoa.png b/app/fronters/profiles/vncoa.png index 3dd8fc3..ac1596f 100644 Binary files a/app/fronters/profiles/vncoa.png and b/app/fronters/profiles/vncoa.png differ diff --git a/app/fronters/profiles/vvsxf.png b/app/fronters/profiles/vvsxf.png index f762204..df4566d 100644 Binary files a/app/fronters/profiles/vvsxf.png and b/app/fronters/profiles/vvsxf.png differ diff --git a/app/fronters/profiles/xbvwt.png b/app/fronters/profiles/xbvwt.png index 763bb2c..2b94fa8 100644 Binary files a/app/fronters/profiles/xbvwt.png and b/app/fronters/profiles/xbvwt.png differ diff --git a/app/fronters/profiles/xcjhj.png b/app/fronters/profiles/xcjhj.png index 56eaee9..02a635f 100644 Binary files a/app/fronters/profiles/xcjhj.png and b/app/fronters/profiles/xcjhj.png differ diff --git a/app/fronters/profiles/ybmig.png b/app/fronters/profiles/ybmig.png new file mode 100644 index 0000000..9fa7caf Binary files /dev/null and b/app/fronters/profiles/ybmig.png differ diff --git a/app/fronters/profiles/zajrk.png b/app/fronters/profiles/zajrk.png index aa1c3a9..ebfc4d8 100644 Binary files a/app/fronters/profiles/zajrk.png and b/app/fronters/profiles/zajrk.png differ diff --git a/app/fronters/profiles/zdtsg.png b/app/fronters/profiles/zdtsg.png index 7872104..1c1704d 100644 Binary files a/app/fronters/profiles/zdtsg.png and b/app/fronters/profiles/zdtsg.png differ diff --git a/app/fronters/profiles/zhtzs.png b/app/fronters/profiles/zhtzs.png index ec6aa1e..2af80d2 100644 Binary files a/app/fronters/profiles/zhtzs.png and b/app/fronters/profiles/zhtzs.png differ diff --git a/app/fronters/profiles/ztfjz.png b/app/fronters/profiles/ztfjz.png index eb39fdc..cb81f5f 100644 Binary files a/app/fronters/profiles/ztfjz.png and b/app/fronters/profiles/ztfjz.png differ diff --git a/app/fronters/profiles/zzise.png b/app/fronters/profiles/zzise.png index 8334450..d200bdf 100644 Binary files a/app/fronters/profiles/zzise.png and b/app/fronters/profiles/zzise.png differ diff --git a/app/fronters/script.js b/app/fronters/script.js index b85dbd8..6450bba 100755 --- a/app/fronters/script.js +++ b/app/fronters/script.js @@ -1,7 +1,7 @@ function getMiniName(name) { let parts = name.split(" "); - if (parts[0].length > 3 && !parts[0].endsWith("e") && parts[0] !== "Filly") { + if (parts[0].length > 3 && !parts[0].endsWith("e") && parts[0] !== "Filly" && parts[0] !== "Windy") { if (parts[0].includes("/")) { return parts[0].split("/")[0]; } else { @@ -86,14 +86,14 @@ function loadApp() { document.getElementById("selector-profiles").innerHTML += "
  • " + slotData["name"] + "
  • "; } - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); document.getElementById("loader").innerHTML = "Starting application..."; let dc; let dcName; // Step 1 - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); dc = document.getElementById("s1-default-card"); dcName = document.getElementById("s1-default-card-name"); @@ -120,7 +120,7 @@ function loadApp() { } // Step 2 - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); dc = document.getElementById("s2-default-card"); dcName = document.getElementById("s2-default-card-name"); @@ -147,7 +147,7 @@ function loadApp() { } // Step 3 - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); dc = document.getElementById("s3-default-card"); dcName = document.getElementById("s3-default-card-img"); @@ -174,7 +174,7 @@ function loadApp() { } // Step 4 - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); dc = document.getElementById("s4-default-card"); dcName = document.getElementById("s4-default-card-img"); @@ -201,7 +201,7 @@ function loadApp() { } // Step 5 - window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi").sort(() => Math.random() - 0.5); + window.members = JSON.parse(localStorage.getItem("pluralkit-" + configSlot)).filter(i => i.name !== "unknown" && i.name !== "fusion" && i.name !== "smolscoots" && i.name !== "smoltwi" && !i.name.endsWith("-travelling")).sort(() => Math.random() - 0.5); dc = document.getElementById("s5-default-card"); dcName = document.getElementById("s5-default-card-name"); diff --git a/app/functions.js b/app/functions.js index d736464..207bc42 100644 --- a/app/functions.js +++ b/app/functions.js @@ -3,7 +3,7 @@ function getMiniName(name) { let parts = name.split(" "); - if (parts[0].length > 3 && !parts[0].endsWith("e") && parts[0] !== "Filly") { + if (parts[0].length > 3 && !parts[0].endsWith("e") && parts[0] !== "Filly" && parts[0] !== "Windy") { if (parts[0].includes("/")) { return parts[0].split("/")[0]; } else { diff --git a/app/planner/index.php b/app/planner/index.php index b2070da..775fec3 100644 --- a/app/planner/index.php +++ b/app/planner/index.php @@ -39,7 +39,7 @@ function getMiniName(string $name) { $parts = explode(" ", $name); - if (strlen($parts[0]) > 3 && !str_ends_with($parts[0], "e") && $parts[0] !== "Filly") { + if (strlen($parts[0]) > 3 && !str_ends_with($parts[0], "e") && $parts[0] !== "Filly" && $parts[0] !== "Windy") { if (str_contains($parts[0], "/")) { return explode("/", $parts[0])[0]; } else { diff --git a/app/sw.js b/app/sw.js index 93e2403..f355509 100644 --- a/app/sw.js +++ b/app/sw.js @@ -57,6 +57,7 @@ let filesToCache = [ "/app/fronters/bootstrap/bootstrap.js", "/app/fronters/bootstrap/bootstrap.js.map", "/app/fronters/index.html", + "/app/fronters/ponies/ckqsw.png", "/app/fronters/ponies/erefx.png", "/app/fronters/ponies/erknz.png", "/app/fronters/ponies/gevde.png", @@ -74,6 +75,7 @@ let filesToCache = [ "/app/fronters/ponies/qraku.png", "/app/fronters/ponies/rirgf.png", "/app/fronters/ponies/rpjok.png", + "/app/fronters/ponies/sbxze.png", "/app/fronters/ponies/sehke.png", "/app/fronters/ponies/tfbob.png", "/app/fronters/ponies/vncoa.png", @@ -84,12 +86,16 @@ let filesToCache = [ "/app/fronters/ponies/zhtzs.png", "/app/fronters/ponies/ztfjz.png", "/app/fronters/ponies/zzise.png", + "/app/fronters/profiles/ckqsw.png", + "/app/fronters/profiles/djnko.png", "/app/fronters/profiles/erefx.png", "/app/fronters/profiles/erknz.png", + "/app/fronters/profiles/flukm.png", "/app/fronters/profiles/gevde.png", "/app/fronters/profiles/gfhsr.png", "/app/fronters/profiles/ghuln.png", "/app/fronters/profiles/hpwyq.png", + "/app/fronters/profiles/irxyh.png", "/app/fronters/profiles/jnbae.png", "/app/fronters/profiles/khsbb.png", "/app/fronters/profiles/kkhbw.png", @@ -98,20 +104,25 @@ let filesToCache = [ "/app/fronters/profiles/lzlaq.png", "/app/fronters/profiles/mglyq.png", "/app/fronters/profiles/mhnqy.png", + "/app/fronters/profiles/mxpxm.png", "/app/fronters/profiles/nabky.png", "/app/fronters/profiles/pabmo.png", "/app/fronters/profiles/qbzxm.png", "/app/fronters/profiles/qraku.png", "/app/fronters/profiles/rdstg.png", "/app/fronters/profiles/rirgf.png", + "/app/fronters/profiles/rmlbf.png", "/app/fronters/profiles/rpjok.png", + "/app/fronters/profiles/sbxze.png", "/app/fronters/profiles/sehke.png", "/app/fronters/profiles/tfbob.png", + "/app/fronters/profiles/tgxst.png", "/app/fronters/profiles/tmgiu.png", "/app/fronters/profiles/vncoa.png", "/app/fronters/profiles/vvsxf.png", "/app/fronters/profiles/xbvwt.png", "/app/fronters/profiles/xcjhj.png", + "/app/fronters/profiles/ybmig.png", "/app/fronters/profiles/zajrk.png", "/app/fronters/profiles/zdtsg.png", "/app/fronters/profiles/zhtzs.png", @@ -143,22 +154,21 @@ let filesToCache = [ "/app/update.sh", "/assets/uploads/cloudburst.png", "/assets/uploads/logo.jpg", - "/assets/uploads/pt-babs.png", + "/assets/uploads/pt-babsseed.png", "/assets/uploads/pt-blueberrycloud.png", - "/assets/uploads/pt-cloudy.png", + "/assets/uploads/pt-cloudydreams.png", "/assets/uploads/pt-duskrainbow.png", "/assets/uploads/pt-fluttershy.png", - "/assets/uploads/pt-frost.png", - "/assets/uploads/pt-fusion.png", - "/assets/uploads/pt-izzymoonbow.png", + "/assets/uploads/pt-frostcrystals.png", + "/assets/uploads/pt-izzy.png", "/assets/uploads/pt-lavender.png", - "/assets/uploads/pt-lyra.png", "/assets/uploads/pt-mintygrape.png", "/assets/uploads/pt-mistycloud.png", "/assets/uploads/pt-mossystorm.png", "/assets/uploads/pt-pipppetals.png", "/assets/uploads/pt-plushie.png", "/assets/uploads/pt-poseybloom.png", + "/assets/uploads/pt-rainbowdash.png", "/assets/uploads/pt-scootaloo.png", "/assets/uploads/pt-skydream.png", "/assets/uploads/pt-smolscoots.png", @@ -170,9 +180,10 @@ let filesToCache = [ "/assets/uploads/pt-sweetiebot.png", "/assets/uploads/pt-twilight.png", "/assets/uploads/pt-velvet.png", - "/assets/uploads/pt-violet.png", + "/assets/uploads/pt-violetdawn.png", + "/assets/uploads/pt-windy.png", "/assets/uploads/pt-windyleaves.png", - "/assets/uploads/pt-zipp.png", + "/assets/uploads/pt-zippstorm.png", "/assets/uploads/pt.png", "/assets/uploads/raindrops.png", "/assets/uploads/ss-sparkles.png" -- cgit