`
}
export function socialLinks(lang) {
let links = authorInfo.support[lang] ? authorInfo.support[lang] : authorInfo.support.default;
let r = ``;
for (let i in links) {
r += socialLink(
emoji(links[i].emoji), links[i].name, links[i].url
)
}
return r
}
export function settingsCategory(obj) {
return `
`
}
export function celebrationsEmoji() {
try {
let n = new Date().toISOString().split('T')[0].split('-');
let dm = `${n[1]}-${n[2]}`;
let f = Object.keys(celebrations).includes(dm) ? celebrations[dm] : "🐲";
return f != "🐲" ? emoji(f, 22) : false;
} catch (e) {
return false
}
}
export function urgentNotice(obj) {
if (obj.visible) {
return `
` +
`${emoji(obj.emoji, 18)} ${obj.text}` +
`
`
}
return ``
}
export function keyboardShortcuts(arr) {
let base = `
`;
for (let i = 0; i < arr.length; i++) {
base += `
`;
for (let c = 0; c < arr[i].items.length; c++) {
let combo = arr[i].items[c].combo.split('+').map(
key => `${key}`
).join("+")
base += `
${combo}: ${arr[i].items[c].name}
`
}
base += `
`
}
base += `
`;
return base;
}
export function webLoc(t, arr) {
let base = ``;
for (let i = 0; i < arr.length; i++) {
base += `${arr[i]}:` + "`" + t(arr[i]) + "`" + `,`
}
return `{${base}};`
}
export function sponsoredList() {
let base = ``;
let altText = ``
for (let i = 0; i < sponsors.length; i++) {
let s = sponsors[i];
let loadedLogo = loadFile(`./src/front/sponsors/${s.name}.svg`);
altText += `${s.fullName ? s.fullName : s.name}, `;
base +=
`
${loadedLogo}
`
}
return `