1.2.0 • Published 5 years ago

vuepress-plugin-cat-model v1.2.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
5 years ago

vuepress-plugin-cat-model

demo.png

vuepress-plugin-cat-model plugin for vuepress-theme-reco or other vuepress themes.

Name

  • As plugin: vuepress-plugin-cat-model
  • As component: CatModel (auto appear in the page, no need for extra code)

Buttons

ButtonUseDefault Tip
homeBack to home of blogYou are the apple of my eye and I want to bring you home
messageShow site title'Welcome to ' + Your site title ($site.title)
themeModify themeOK, I hope you love my other friends
closeClose kanbannaingI love you most
infoJump to plugin's GitHub pageDo you want to know more about me?

::: warning This plugin hasn't been translated to English yet and the above default tip is merely translation of the Chinese version. :::

Option API

default parameters when using the plugin

Attributes

theme

  • description: default theme
  • type: Array
  • default: ['blackCat', 'whiteCat', 'haru1', 'haru2', 'haruto', 'koharu', 'izumi', 'shizuku', 'wanko', 'miku', 'z16']
  • accepted-values:
    • if theme includes only one value, default to this theme and hide the button to change theme
    • if theme includes multiple values, default to the first theme and randomly switch to other themes when theme button is clicked
    • note the case of theme name
    • see available themes at the end

clean

  • description: if clean mode is on (hide all buttons)
  • type: Boolean
  • default: false
  • accepted-values: true | false

messages

  • description: message tip
  • type: Object
  • default:
    {
        welcome: 'Welcome to' + $site.title',
        home: 'You are the Apple of my eye and I want to bring you home',
        theme: 'OK, I hope you love my other friends',
        close: 'I love you most',
        info: 'Do you want to know more about me?'
    }
  • accepted-values: see the end

messageStyle

  • description: customize message style
  • type: Object
  • default:
    {
      right: '68px',
      bottom: '190px'
    }

modelStyle

  • description: customize model style
  • type: Object
  • default:
    {
      right: '90px',
      bottom: '-20px',
      opacity: '0.9'
    }

btnStyle

  • description: customize button style
  • type: Object
  • default:
    {
      right: '90px',
      bottom: '40px',
    }

width

  • description: theme width
  • type: Number
  • default: 150

height

  • description: theme height
  • type: Number
  • default: 220

Available Themes

themes.png

About

Contributors

1.2.0

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago