update paths and ical link url

This commit is contained in:
Elmar Kresse
2023-09-20 12:00:51 +02:00
parent efc0e187f8
commit e56a78bd75
23 changed files with 336 additions and 42 deletions

View File

@@ -5,6 +5,8 @@ import { onMounted } from "vue";
import router from "../router";
const toast = useToast();
const domain = window.location.hostname;
const show = () => {
toast.add({
severity: "info",
@@ -25,7 +27,7 @@ function rerouteIfTokenIsEmpty() {
}
function copyToClipboard() {
const text = "http://localhost:8090/api/feed?token=" + tokenStore().token;
const text = "https://" + domain + "/api/feed?token=" + tokenStore().token;
// Copy the text inside the text field
navigator.clipboard.writeText(text);
show();
@@ -37,7 +39,7 @@ function copyToClipboard() {
<div class="flex flex-column">
<div class="flex align-items-center justify-content-center h-4rem m-2">
<h2>
{{ "http://localhost:8090/api/feed?token=" + tokenStore().token }}
{{ "https://" + domain + "/api/feed?token=" + tokenStore().token }}
</h2>
</div>
<div class="flex align-items-center justify-content-center h-4rem m-2">