Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
/ vue3-waline Public archive

Waline Module for Vuejs 3.0 & VitePress

Notifications You must be signed in to change notification settings

Nekotakus/vue3-waline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Vue3-Waline

Waline Module for Vuejs 3.0

How to use it?

Step 1 - Install Waline client from npm

npm install @waline/client

Step 2 - Import this vue module

Here is a example

  • For VitePress:
// .vitepress/theme/index.ts

import { h } from 'vue'
import Theme from 'vitepress/theme'
import './style.css'

import Walineinit from '../../components/Walineinit.vue'; // Import this Vue file

export default {
  extends: Theme,
  Layout: () => {
    return h(Theme.Layout, null, {
      // https://vitepress.dev/guide/extending-default-theme#layout-slots
    })
  },
  enhanceApp({ app, router, siteData }) {
    // ...
    app.component('Walineinit', Walineinit)
  }
}

Step 3 - Use it

Here is a example

<Walineinit />

Releases

No releases published

Packages

No packages published

Languages