INNER CODE UNIT · JavaScript

loadGitHub

XortexAI/XMem · admin/app.js:335

async function loadGitHub() {
  const data = await apiFetch('/github/traffic');
  if (!data) return;

  if (data.error) {
    document.getElementById('gh-error').textContent = data.error;
    return;
  }

  const views = data.views || {};
  const clones = data.clones || {};
  const stars = data.stars || {};

  document.getElementById('gh-views').textContent = views.count || 0;
  document.getElementById('gh-unique-views').textContent = views.uniques || 0;
  document.getElementById('gh-clones').textContent = clones.count || 0;
  document.getElementById('gh-stars').textContent = stars.stargazers_count || 0;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…