1.1.9 ā¢ Published 2 years ago
@emqx/community-websites-header v1.1.9
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
Attributes | Description | Type | Accepted Values | Default |
---|---|---|---|---|
lang | Page Language | string | en / zh | en |
product | Show Github Stars | string | emqx / 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