even more cleansing

- added support for x.com urls
- removed del shortcut for clearing url input area because it was causing regular typing issues
- added info about no liability
- fixed donate button glow and text backdrop padding
- updated donation and privacy policy texts for more clarity in both english and russian
- made cors question in setup script to take yes as answer, not just 'y'
- text-to-copy now has proper rounding when highlighted
- home screen now smoothly fades in instead of popping in
This commit is contained in:
wukko
2023-08-14 00:09:50 +06:00
parent c5681bba94
commit 5955594e48
14 changed files with 83 additions and 40 deletions

View File

@@ -205,7 +205,7 @@ export function celebrationsEmoji() {
}
export function urgentNotice(obj) {
if (obj.visible) {
return `<div id="urgent-notice" class="urgent-notice explanation" onclick="${obj.action}" style="visibility: hidden;">${emoji(obj.emoji, 18)} ${obj.text}</div>`
return `<div id="urgent-notice" class="urgent-notice explanation" onclick="${obj.action}">${emoji(obj.emoji, 18)} ${obj.text}</div>`
}
return ``
}

View File

@@ -121,7 +121,7 @@ export default function(obj) {
combo: "Ctrl+V",
name: t("KeyboardShortcutQuickPaste")
}, {
combo: "Esc/Del",
combo: "Esc",
name: t("KeyboardShortcutClear")
}, {
combo: "Esc",
@@ -163,6 +163,10 @@ export default function(obj) {
name: "privacy",
title: `${emoji("🔒")} ${t("CollapsePrivacy")}`,
body: t("PrivacyPolicy")
}, {
name: "legal",
title: `${emoji("📑")} ${t("CollapseLegal")}`,
body: t("FairUse")
}])
}]
})
@@ -494,14 +498,14 @@ export default function(obj) {
})}
</div>
<div id="popup-backdrop" onclick="hideAllPopups()"></div>
<div id="home">
<div id="home" style="visibility:hidden">
${urgentNotice({
emoji: "🐱",
text: "report any issues!",
visible: true,
action: "popup('about', 1, 'changelog')"
})}
<div id="cobalt-main-box" class="center" style="visibility: hidden;">
<div id="cobalt-main-box" class="center">
<div id="logo">${t("AppTitleCobalt")}</div>
<div id="download-area">
<div id="top">
@@ -525,7 +529,7 @@ export default function(obj) {
</div>
</div>
</div>
<footer id="footer" style="visibility: hidden;">
<footer id="footer">
${footerButtons([{
name: "about",
type: "popup",