Skip to content

Commit 5982ecd

Browse files
author
monster
committed
chore: update analytics and Discord links
1 parent e042fb7 commit 5982ecd

5 files changed

Lines changed: 36 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<p align="center">
1414
<a href="https://monkeycode-ai.net/">Try Online</a> ·
1515
<a href="#self-hosted-deployment">Self-Hosted Deployment</a> ·
16-
<a href="https://discord.gg/8NgHexaaMa">Discord</a> ·
16+
<a href="https://discord.gg/2pPmuyr4pP">Discord</a> ·
1717
<a href="./readme.cn.md">中文</a>
1818
</p>
1919

@@ -120,7 +120,7 @@ You can also get support through:
120120
- Documentation: [https://monkeycode.docs.baizhi.cloud/](https://monkeycode.docs.baizhi.cloud/)
121121
- Online service: [https://monkeycode-ai.net/](https://monkeycode-ai.net/)
122122
- Enterprise consultation: [https://baizhi.cloud/consult](https://baizhi.cloud/consult)
123-
- Discord: [https://discord.gg/8NgHexaaMa](https://discord.gg/8NgHexaaMa)
123+
- Discord: [https://discord.gg/2pPmuyr4pP](https://discord.gg/2pPmuyr4pP)
124124
- GitHub Issues: [https://github.com/chaitin/MonkeyCode/issues](https://github.com/chaitin/MonkeyCode/issues)
125125

126126
## Star History

frontend/index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,32 @@
5656

5757
gtag('config', 'G-RQQN0BK11M');
5858
</script>
59+
<script>
60+
var _paq = window._paq = window._paq || [];
61+
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
62+
_paq.push(["setRequestMethod", "POST"]);
63+
_paq.push(["setDomains", [
64+
"showcase.monkeycode-ai.online",
65+
"*.showcase.monkeycode-ai.online",
66+
"monkeycode-ai.com",
67+
"monkeycode-ai.net",
68+
]]);
69+
_paq.push(["enableCrossDomainLinking"]);
70+
_paq.push(["trackPageView"]);
71+
_paq.push(["enableLinkTracking"]);
72+
(function() {
73+
var u = "//stats.monkeycode-ai.com/";
74+
_paq.push(["setTrackerUrl", u + "statcall.php"]);
75+
_paq.push(["setSiteId", "2"]);
76+
77+
var d = document;
78+
var g = d.createElement("script");
79+
var s = d.getElementsByTagName("script")[0];
80+
g.async = true;
81+
g.src = u + "statloader.js";
82+
s.parentNode.insertBefore(g, s);
83+
})();
84+
85+
</script>
5986
</body>
6087
</html>

frontend/src/components/welcome/terminal-chrome.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CHAITIN_LINK = "https://www.chaitin.cn/";
1414
const BAIZHI_LINK = "https://www.baizhi.cloud/";
1515
const CYBERSERVAL_LINK = "https://www.cyberserval.com/";
1616
const SAFELINE_WAF_LINK = "https://cyberserval.tech/home";
17-
const DISCORD_INVITE_LINK = "https://discord.gg/8NgHexaaMa";
17+
const DISCORD_INVITE_LINK = "https://discord.gg/2pPmuyr4pP";
1818

1919
const resourceLinks = [
2020
{ titleKey: "welcomeShell.footer.productDocs", href: DOCS_LINK },

frontend/test/welcome-shell-i18n.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,8 @@ test("欢迎页资源列表不展示模型广场", () => {
108108
assert.doesNotMatch(sourceFiles.footer, /modelSquare|model-square/);
109109
assert.doesNotMatch(sourceFiles.terminalChrome, /MODEL_SQUARE_LINK|modelSquare|model-square/);
110110
});
111+
112+
test("欢迎页 Discord 链接使用当前邀请地址", () => {
113+
assert.match(sourceFiles.terminalChrome, /DISCORD_INVITE_LINK = "https:\/\/discord\.gg\/2pPmuyr4pP"/);
114+
assert.doesNotMatch(sourceFiles.terminalChrome, /https:\/\/discord\.gg\/(?!2pPmuyr4pP)/);
115+
});

readme.cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bash -c "$(curl -fsSL 'https://monkeycode-ai.com/online/install')"
120120
- 使用文档:[https://monkeycode.docs.baizhi.cloud/](https://monkeycode.docs.baizhi.cloud/)
121121
- 在线使用:[https://monkeycode-ai.com/](https://monkeycode-ai.com/)
122122
- 企业咨询:[https://baizhi.cloud/consult](https://baizhi.cloud/consult)
123-
- Discord:[https://discord.gg/8NgHexaaMa](https://discord.gg/8NgHexaaMa)
123+
- Discord:[https://discord.gg/2pPmuyr4pP](https://discord.gg/2pPmuyr4pP)
124124
- GitHub Issues:[https://github.com/chaitin/MonkeyCode/issues](https://github.com/chaitin/MonkeyCode/issues)
125125

126126
## Star History

0 commit comments

Comments
 (0)