1.1.0 • Published 4 years ago

@justeat/f-development-context v1.1.0

Weekly downloads
24
License
Apache-2.0
Repository
github
Last release
4 years ago

f-development-context

  • f-development-context provides entry points for the WebDriver Demo within components so that they can install the standard context of features
  • You shouldn't manually add this to any of your components; the generator will add the devDependency and wire up the WebDriver test scripts automatically

Contexts Added

  • $logger - The standard way to provide diagnostic output through this.$logger
  • $cookies - The standard way to interact with cookies through this.$cookies
  • i18n - The standard way to localise your components using <i18n>, this.i18n and $t('message')
  • VueX - The standard way to store state information in components
  • $gtm - The standard way to provide GTM access via this.$gtm (note: the variable name gtm is configurable)

$logger Interface

  • logError(message, store, additionalProperties)
  • logWarn(message, store, additionalProperties)
  • logInfo(message, store, additionalProperties)

$cookies Interface

i18n Interface

VueX Interface

$gtm Interface