MCPcopy
hub / github.com/Justineo/github-hovercard / getIcon

Function getIcon

src/hovercard.js:594–599  ·  view source on GitHub ↗
(type, scale = 1)

Source from the content-addressed store, hash-verified

592 const OCTICONS = '__OCTICONS__'
593
594 function getIcon(type, scale = 1) {
595 let icon = OCTICONS[type]
596 return `<svg class="octicon" width="${icon.width *
597 scale}" height="${icon.height * scale}"
598 viewBox="0 0 ${icon.width} ${icon.height}">${icon.path}</svg>`
599 }
600
601 const CREATE_TOKEN_PATH = `//${GH_DOMAIN}/settings/tokens/new?scopes=repo,user:follow`
602 const EDIT_TOKEN_PATH = `//${GH_DOMAIN}/settings/tokens`

Callers 4

hovercard.jsFile · 0.70
getCardHTMLFunction · 0.70
handleErrorFunction · 0.70
toggleButtonStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected