From b6be4fc80c3f85e15f3e3c4bb844ff3913731ec8 Mon Sep 17 00:00:00 2001
From: moonrailgun
Date: Sat, 19 Aug 2023 19:33:11 +0800
Subject: [PATCH] chore: update umami url
---
client/web/build/inject-analytics.js | 2 +-
website/docusaurus.config.js | 2 +-
website/src/components/HomepageHeader.tsx | 10 ++++++----
website/src/components/JoinCommunity.tsx | 5 +++--
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/client/web/build/inject-analytics.js b/client/web/build/inject-analytics.js
index 57fddd0b14f..52a75aa8ba1 100644
--- a/client/web/build/inject-analytics.js
+++ b/client/web/build/inject-analytics.js
@@ -14,7 +14,7 @@ const templatePath = path.resolve(__dirname, '../assets/template.html');
// frontjs
// const script = ``;
// umami
-const script = ``;
+const script = ``;
console.log('templatePath', templatePath);
let template = fs.readFileSync(templatePath, {
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index f3e134ee0f4..35fa8a2dacc 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -130,7 +130,7 @@ module.exports = {
],
scripts: [
{
- src: 'https://umami.moonrailgun.com/umami.js',
+ src: 'https://umami.moonrailgun.com/script.js',
async: true,
defer: true,
'data-website-id': '22f7ff7b-db54-4222-b123-c8e3acfbf1aa',
diff --git a/website/src/components/HomepageHeader.tsx b/website/src/components/HomepageHeader.tsx
index e1db8a06887..cec2e6cef9a 100644
--- a/website/src/components/HomepageHeader.tsx
+++ b/website/src/components/HomepageHeader.tsx
@@ -51,8 +51,8 @@ export const HomepageHeader: React.FC = React.memo(() => {
Tailchat: {siteConfig.tagline}
What is noIM(not only IM)?
@@ -61,22 +61,24 @@ export const HomepageHeader: React.FC = React.memo(() => {
Join our Group
Learn More
-
+
Or direct visit Tailchat nightly version
diff --git a/website/src/components/JoinCommunity.tsx b/website/src/components/JoinCommunity.tsx
index 989205bdc85..b6e4a6d7c46 100644
--- a/website/src/components/JoinCommunity.tsx
+++ b/website/src/components/JoinCommunity.tsx
@@ -17,8 +17,9 @@ export const JoinCommunity: React.FC = React.memo(() => {
Join Our Group
@@ -28,7 +29,7 @@ export const JoinCommunity: React.FC = React.memo(() => {
href="https://www.producthunt.com/posts/tailchat?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tailchat"
target="_blank"
rel="noreferrer"
- className="umami--click--producthunt"
+ data-umami-event="producthunt"
>