How to use the @uiengine/util/src/string.upcaseFirstChar function in @uiengine/util

To help you get started, we’ve selected a few @uiengine/util 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 dennisreimann / uiengine / packages / ui / src / vue / router / index.js View on Github external
const mainComponent = type => {
  if (type === 'documentation') {
    return MainDocumentation
  }

  const componentName = upcaseFirstChar(type)

  return () => import(
    /* webpackPrefetch: true */
    /* webpackChunkName: "[request]" */
    `../components/Main${componentName}`
  )
}
github dennisreimann / uiengine / packages / ui / src / vue / store / preferences.js View on Github external
const mutations = Object.keys(properties).reduce((obj, property) => {
  const upcased = upcaseFirstChar(property)
  const setter = `set${upcased}`

  obj[setter] = (state, value) => {
    // set value in session storage
    setSession(property, value)

    state[property] = reactiveValue(value)
  }

  return obj
}, {})