Fix auto updater, add failure message, fix modals (#2335)

* Fix auto updater, add failure message, fix modals

* Fix ads hiding, updater UI

* dummy version, fix gh actions cache

* fix release conf

* actual version bump

* Fix ads hiding sometimes

* Fix event state init

* fix remaining bugs

* Fix lint on linux

* Fix deep linking on Windows

* Fix ad links opening multiple times
This commit is contained in:
Geometrically
2024-08-30 10:42:58 -07:00
committed by GitHub
parent 016c3d779b
commit bd61f5d591
70 changed files with 941 additions and 310 deletions

View File

@@ -797,7 +797,7 @@ function openVideoModal() {
.markdown-resource-link {
cursor: pointer;
color: var(--color-link);
color: var(--color-blue);
&:focus-visible,
&:hover {

View File

@@ -1,5 +1,5 @@
<template>
<NewModal ref="modal" :noblur="noblur" danger>
<NewModal ref="modal" :noblur="noblur" danger :on-hide="onHide">
<template #title>
<slot name="title">
<span class="font-extrabold text-contrast text-lg">{{ title }}</span>
@@ -76,6 +76,12 @@ const props = defineProps({
type: Boolean,
default: false,
},
onHide: {
type: Function,
default() {
return () => {}
},
},
})
const emit = defineEmits(['proceed'])

View File

@@ -58,6 +58,7 @@ const props = withDefaults(
closeOnEsc?: boolean
warnOnClose?: boolean
header?: string
onHide?: () => void
}>(),
{
type: true,
@@ -65,6 +66,7 @@ const props = withDefaults(
danger: false,
closeOnEsc: true,
warnOnClose: false,
onHide: () => {},
},
)
@@ -87,6 +89,7 @@ function show(event?: MouseEvent) {
}
function hide() {
props.onHide()
visible.value = false
window.removeEventListener('mousedown', updateMousePosition)
window.removeEventListener('keydown', handleKeyDown)

View File

@@ -34,6 +34,16 @@ const props = defineProps({
type: Boolean,
default: true,
},
noblur: {
type: Boolean,
default: false,
},
onHide: {
type: Function,
default() {
return () => {}
},
},
})
const shareModal = ref(null)
@@ -115,7 +125,7 @@ defineExpose({
</script>
<template>
<Modal ref="shareModal" :header="header">
<Modal ref="shareModal" :header="header" :noblur="noblur" :on-hide="onHide">
<div class="share-body">
<div v-if="link" class="qr-wrapper">
<div ref="qrCode">