-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 0842c17 Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 21:57:51 2024 +0800 fix: do not send heartbeat to closed controller commit 84ce79d Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 21:56:18 2024 +0800 fix: cannot remove expired subscription commit 4db710a Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 20:35:54 2024 +0800 feat: enhance the experience of the alert and the guidance commit 4cfc1dd Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 20:26:00 2024 +0800 feat: add privacy policy page commit 9920156 Merge: e937f8c 19e8a5b Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:50:36 2024 +0800 Merge branch 'main' into dev commit e937f8c Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:48:09 2024 +0800 chore: update roadmap commit 7a7cd9f Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:45:16 2024 +0800 feat: allow to set an allowed email list commit eeb575b Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:27:09 2024 +0800 chore: update roadmap commit 2581911 Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:26:33 2024 +0800 chore: update roadmap commit a64c901 Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:22:38 2024 +0800 fix: align the encoding method commit e639829 Author: BackRunner <dev@backrunner.top> Date: Sun Aug 25 18:19:06 2024 +0800 feat: allow to push notification with custom icon & add highlight effect to the card chore: bump version
- Loading branch information
1 parent
19e8a5b
commit 7e183ac
Showing
16 changed files
with
250 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<script setup lang="ts"> | ||
import { ref, onMounted } from 'vue'; | ||
import { Button } from '@/components/ui/button'; | ||
const isVisible = ref(false); | ||
onMounted(() => { | ||
const hasAcceptedCookies = localStorage.getItem('cookiesAccepted'); | ||
if (!hasAcceptedCookies) { | ||
setTimeout(() => { | ||
isVisible.value = true; | ||
}, 500); | ||
} | ||
}); | ||
const acceptCookies = () => { | ||
localStorage.setItem('cookiesAccepted', 'true'); | ||
isVisible.value = false; | ||
}; | ||
</script> | ||
|
||
<template> | ||
<Transition name="slide-up"> | ||
<div v-if="isVisible" class="fixed bottom-0 left-0 right-0 bg-background border-t border-border p-4 shadow-lg z-50"> | ||
<div class="container mx-auto flex flex-col sm:flex-row items-center justify-between"> | ||
<p class="text-sm text-muted-foreground mb-4 sm:mb-0 sm:mr-4"> | ||
We use cookies and device information to improve your experience. By continuing to use our site, you agree to | ||
our | ||
<a href="/privacy-policy" class="text-primary hover:underline">Privacy Policy</a>. | ||
</p> | ||
<Button @click="acceptCookies" variant="outline" size="sm"> Accept </Button> | ||
</div> | ||
</div> | ||
</Transition> | ||
</template> | ||
|
||
<style scoped> | ||
.slide-up-enter-active, | ||
.slide-up-leave-active { | ||
transition: transform 0.3s ease-out; | ||
} | ||
.slide-up-enter-from, | ||
.slide-up-leave-to { | ||
transform: translateY(100%); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.