github.com/GoogleContainerTools/skaffold/v2@v2.13.2/docs-v2/content/en/docs/resources/telemetry/main.js (about)

     1  import { html, render } from 'https://unpkg.com/lit-html@1.1.2/lit-html.js';
     2  import { unsafeHTML } from 'https://unpkg.com/lit-html@1.1.2/directives/unsafe-html.js';
     3  
     4  (async function() {
     5    const list = document.getElementById('metrics-list');
     6    const response = await fetch("metrics.json");
     7    const json = await response.json();
     8  
     9    render(html`
    10      ${template(json.definitions["skaffoldMeter"])}
    11    `, list);
    12  
    13    if (location.hash) {
    14      table.querySelector(location.hash).scrollIntoView();
    15    }
    16  })();
    17  
    18  function* template(struct) {
    19      for (let p in struct.properties) {
    20          yield html`<li>${p}<ul><li>${unsafeHTML(struct.properties[p]["x-intellij-html-description"])}</li></ul></li>`
    21      }
    22  }