Files
promptfoo--promptfoo/site/static/js/scripts.js
T
wehub-resource-sync 0d3cb498a3
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Waiting to run
Test and Publish Multi-arch Docker Image / test (push) Waiting to run
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Blocked by required conditions
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Blocked by required conditions
Validate Renovate Config / Validate Renovate Configuration (push) Waiting to run
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

133 lines
4.3 KiB
JavaScript

// Define gtag stub if not already defined (prevents errors in development)
window.dataLayer = window.dataLayer || [];
window.gtag =
window.gtag ||
function () {
window.dataLayer.push(arguments);
};
// Configure GA (gtag.js is loaded by consent.js before this script)
gtag('js', new Date());
gtag('config', 'G-3TS8QLZQ93', { anonymize_ip: true });
gtag('config', 'G-3YM29CN26E', { anonymize_ip: true });
gtag('config', 'AW-17347444171', { anonymize_ip: true });
// Track SPA route changes (replaces Docusaurus gtag plugin)
(function () {
var prev = location.pathname + location.search;
function onNav() {
var current = location.pathname + location.search;
if (current !== prev) {
prev = current;
gtag('event', 'page_view', {
page_path: current,
page_location: location.href,
});
}
}
// Patch pushState/replaceState to detect Docusaurus client-side navigation
var origPush = history.pushState;
var origReplace = history.replaceState;
history.pushState = function () {
origPush.apply(this, arguments);
onNav();
};
history.replaceState = function () {
origReplace.apply(this, arguments);
onNav();
};
window.addEventListener('popstate', onNav);
})();
!(function (e, r) {
try {
if (e.vector) return void console.log('Vector snippet included more than once.');
var t = {};
t.q = t.q || [];
for (
var o = ['load', 'identify', 'on'],
n = function (e) {
return function () {
var r = Array.prototype.slice.call(arguments);
t.q.push([e, r]);
};
},
c = 0;
c < o.length;
c++
) {
var a = o[c];
t[a] = n(a);
}
if (((e.vector = t), !t.loaded)) {
var i = r.createElement('script');
(i.type = 'text/javascript'), (i.async = !0), (i.src = 'https://cdn.vector.co/pixel.js');
var l = r.getElementsByTagName('script')[0];
l.parentNode.insertBefore(i, l), (t.loaded = !0);
}
} catch (e) {
console.error('Error loading Vector:', e);
}
})(window, document);
vector.load('18d08a7d-45cf-4805-b8b1-978305be5dd4');
!(function (t, e) {
var o, n, p, r;
e.__SV ||
((window.posthog = e),
(e._i = []),
(e.init = function (i, s, a) {
function g(t, e) {
var o = e.split('.');
2 == o.length && ((t = t[o[0]]), (e = o[1])),
(t[e] = function () {
t.push([e].concat(Array.prototype.slice.call(arguments, 0)));
});
}
((p = t.createElement('script')).type = 'text/javascript'),
(p.async = !0),
(p.src =
s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') + '/static/array.js'),
(r = t.getElementsByTagName('script')[0]).parentNode.insertBefore(p, r);
var u = e;
for (
void 0 === a ? (a = 'posthog') : (u = e[a] = []),
u.people = u.people || [],
u.toString = function (t) {
var e = 'posthog';
return 'posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e;
},
u.people.toString = function () {
return u.toString(1) + '.people (stub)';
},
o =
'capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys getNextSurveyStep onSessionId setPersonProperties'.split(
' ',
),
n = 0;
n < o.length;
n++
)
g(u, o[n]);
e._i.push([i, s, a]);
}),
(e.__SV = 1));
})(document, window.posthog || []);
posthog.init('phc_gOS5ctlYqd64vmJtYVpAU0W5iew7OopcETkyYNpkyYP', {
api_host: 'https://us.i.posthog.com',
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
});
/* Reo */
!(function () {
var e, t, n;
(e = '59f3ca4439de16d'),
(t = function () {
Reo.init({ clientID: '59f3ca4439de16d' });
}),
((n = document.createElement('script')).src = 'https://static.reo.dev/' + e + '/reo.js'),
(n.defer = !0),
(n.onload = t),
document.head.appendChild(n);
})();