How to use the @kui-shell/core.theme.gettingStarted function in @kui-shell/core

To help you get started, we’ve selected a few @kui-shell/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / kui / plugins / plugin-core-support / about / src / about.ts View on Github external
async function renderGettingStarted({ REPL }: Arguments) {
  if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
    const marked = await markdown()
    const wrapper = document.createElement('div')
    wrapper.classList.add('page-content')
    wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
    return wrapper
  } else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
    return REPL.qexec(theme.gettingStarted)
  } else {
    console.error('no getting started content defined by client')
    const empty = document.createElement('div')
    return empty
  }
}
github IBM / kui / plugins / plugin-core-support / about / src / about.ts View on Github external
async function renderGettingStarted({ REPL }: Arguments) {
  if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
    const marked = await markdown()
    const wrapper = document.createElement('div')
    wrapper.classList.add('page-content')
    wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
    return wrapper
  } else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
    return REPL.qexec(theme.gettingStarted)
  } else {
    console.error('no getting started content defined by client')
    const empty = document.createElement('div')
    return empty
  }
}
github IBM / kui / plugins / plugin-core-support / about / src / about.ts View on Github external
async function renderGettingStarted({ REPL }: Arguments) {
  if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
    const marked = await markdown()
    const wrapper = document.createElement('div')
    wrapper.classList.add('page-content')
    wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
    return wrapper
  } else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
    return REPL.qexec(theme.gettingStarted)
  } else {
    console.error('no getting started content defined by client')
    const empty = document.createElement('div')
    return empty
  }
}
github IBM / kui / plugins / plugin-core-support / about / src / about.ts View on Github external
async function renderGettingStarted({ REPL }: Arguments) {
  if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
    const marked = await markdown()
    const wrapper = document.createElement('div')
    wrapper.classList.add('page-content')
    wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
    return wrapper
  } else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
    return REPL.qexec(theme.gettingStarted)
  } else {
    console.error('no getting started content defined by client')
    const empty = document.createElement('div')
    return empty
  }
}