1.1.9 • Published 3 years ago

@emqx/community-websites-header v1.1.9

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

community-websites-header

🌌 EMQ Community Websites Header.

Usage

Install package

yarn add @emqx/community-websites-header

Nuxt

EMQHeader.ts

import Vue from 'vue'
import EMQHeader from '@emqx/community-websites-header'

Vue.use(EMQHeader)

nuxt.config.ts

{
    plugins: [{ src: '~/plugins/EMQHeader', ssr: false },],
}

default.vue

<client-only>
    <EMQHeader :lang="$i18n.locale" product="emqx" />
</client-only>

Vuepress

enhanceApp.js

export default ({
  Vue, // the version of Vue being used in the VuePress app
  options, // the options for the root Vue instance
  router, // the router instance for the app
  siteData, // site metadata
}) => {

    ...

  Vue.mixin({
    mounted() {
      const EMQHeader = require('@emqx/community-websites-header')
      Vue.use(EMQHeader)
    },
  })
}

Layout.vue

<EMQHeader :lang="$lang === 'en' ? 'en' : 'zh'" product="emqx" />

Attributes

AttributesDescriptionTypeAccepted ValuesDefault
langPage Languagestringen / zhen
productShow Github Starsstringemqx / neuron / nanomq / mqttx—

Publish

npm login

yarn lib

npm publish
1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago