Files
wehub-resource-sync 60e0ffc959
Upgrade checks / Notify on failure (push) Has been cancelled
Upgrade checks / Close issue on success (push) Has been cancelled
Schema Crash Test / Real-world schema crash test (232K schemas) (push) Has been cancelled
Run static analysis / static_analysis (push) Has been cancelled
Tests / Tests: Python 3.10 on ubuntu-latest (push) Has been cancelled
Tests / Tests: Python 3.13 on ubuntu-latest (push) Has been cancelled
Tests / Tests: Python 3.10 on windows-latest (push) Has been cancelled
Tests / Tests with lowest-direct dependencies (push) Has been cancelled
Tests / MCP conformance tests (push) Has been cancelled
Tests / Integration tests (push) Has been cancelled
Tests / Package install smoke (push) Has been cancelled
Upgrade checks / Static analysis (push) Has been cancelled
Upgrade checks / Tests: Python 3.10 on ubuntu-latest (push) Has been cancelled
Upgrade checks / Tests: Python 3.13 on ubuntu-latest (push) Has been cancelled
Upgrade checks / Tests: Python 3.10 on windows-latest (push) Has been cancelled
Upgrade checks / Integration tests (push) Has been cancelled
Update MCPServerConfig Schema / update-config-schema (push) Has been cancelled
Update SDK Documentation / update-sdk-docs (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:59 +08:00

75 lines
1.9 KiB
JavaScript

// Load Unify intent tag on selected pages
(function () {
if (typeof window === "undefined") return;
function isTaggedPage() {
var path = window.location.pathname;
return (
path.includes("/servers/auth/") ||
path.includes("/clients/auth/") ||
path.includes("/deployment/running-server") ||
path.includes("/deployment/http") ||
path.includes("/deployment/prefect-horizon")
);
}
function loadUnify() {
var e = [
"identify",
"page",
"startAutoPage",
"stopAutoPage",
"startAutoIdentify",
"stopAutoIdentify",
];
function t(o) {
return Object.assign(
[],
e.reduce(function (r, n) {
r[n] = function () {
return o.push([n, [].slice.call(arguments)]), o;
};
return r;
}, {}),
);
}
if (!window.unify) window.unify = t(window.unify);
if (!window.unifyBrowser) window.unifyBrowser = t(window.unifyBrowser);
var n = document.createElement("script");
n.async = true;
n.setAttribute(
"src",
"https://tag.unifyintent.com/v1/Rj9KrQqMhyYcU5qfJtVszE/script.js",
);
n.setAttribute(
"data-api-key",
"wk_SBvJ4jyD_wRgPAHCNJb89seVmREhcj2NspRpxAywi",
);
n.setAttribute("id", "unifytag");
(document.body || document.head).appendChild(n);
}
function update() {
if (isTaggedPage() && !document.getElementById("unifytag")) {
loadUnify();
} else if (!isTaggedPage() && document.getElementById("unifytag")) {
document.getElementById("unifytag").remove();
}
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", update);
} else {
update();
}
var lastUrl = location.href;
new MutationObserver(function () {
if (location.href !== lastUrl) {
lastUrl = location.href;
setTimeout(update, 100);
}
}).observe(document.body, { subtree: true, childList: true });
})();