Skip to content

Commit d8f8923

Browse files
committed
fix build
1 parent 3a8883d commit d8f8923

File tree

3 files changed

+10
-36
lines changed

3 files changed

+10
-36
lines changed

.vitepress/theme/ga.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ function gtag(){dataLayer.push(arguments);}
1717
gtag('js', new Date());
1818
gtag('config', '${gaId}');`
1919
document.head.appendChild(inline)
20-
const apollo = document.createElement('script')
21-
apollo.innerHTML = `function initApollo(){var n=Math.random().toString(36).substring(7),o=document.createElement("script");
22-
o.src="https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache="+n,o.async=!0,o.defer=!0,
23-
o.onload=function(){window.trackingFunctions.onLoad({appId:"687810e0a1b376000d52b1f4"})},
24-
document.head.appendChild(o)}initApollo();`
25-
document.head.appendChild(apollo)
2620
}
2721
router.onAfterRouteChanged = (to) => {
2822
if (window.gtag) {

book.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@ meta:
66
layout: false
77
---
88

9-
<!-- External analytics script + client-side redirect preserved from original HTML -->
10-
<script>
11-
(function() {
12-
const s = document.createElement('script');
13-
s.src = 'https://www.googletagmanager.com/gtag/js?id=G-JY86KL8PQD';
14-
s.async = true;
15-
const ref = document.getElementsByTagName('script')[0];
16-
ref.parentNode.insertBefore(s, ref);
17-
})();
9+
<script setup>
1810

19-
window.dataLayer = window.dataLayer || [];
20-
function gtag() { dataLayer.push(arguments); }
21-
gtag('js', new Date());
11+
import { onMounted } from 'vue'
2212

23-
gtag('config', 'G-JY86KL8PQD');
24-
// Redirect to the GitHub repo after a short delay (keeps original behaviour)
25-
setTimeout(() => window.location.href = 'https://calendly.com/velda-io/30min', 500);
13+
onMounted(() => {
14+
setTimeout(() => window.location.replace('https://calendly.com/velda-io/30min'), 500);
15+
});
2616
</script>
2717

2818
If you are not redirected automatically, follow this [link](https://calendly.com/velda-io/30min).

github.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@ meta:
66
layout: false
77
---
88

9-
<!-- External analytics script + client-side redirect preserved from original HTML -->
10-
<script>
11-
(function() {
12-
const s = document.createElement('script');
13-
s.src = 'https://www.googletagmanager.com/gtag/js?id=G-JY86KL8PQD';
14-
s.async = true;
15-
const ref = document.getElementsByTagName('script')[0];
16-
ref.parentNode.insertBefore(s, ref);
17-
})();
9+
<script setup>
1810

19-
window.dataLayer = window.dataLayer || [];
20-
function gtag() { dataLayer.push(arguments); }
21-
gtag('js', new Date());
11+
import { onMounted } from 'vue'
2212

23-
gtag('config', 'G-JY86KL8PQD');
24-
// Redirect to the GitHub repo after a short delay (keeps original behaviour)
25-
setTimeout(() => window.location.href = 'https://github.com/velda-io/velda', 500);
13+
onMounted(() => {
14+
setTimeout(() => window.location.replace('https://github.com/velda-io/velda'), 500);
15+
})
2616
</script>
2717

2818
If you are not redirected automatically, follow this [link](https://github.com/velda-io/velda).

0 commit comments

Comments
 (0)