1.1.9 ā€¢ Published 2 years ago

@emqx/community-websites-header v1.1.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 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

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago