2.0.3 • Published 4 years ago

@mrzhiin/modis v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Modis

npm (scoped) npm bundle size (scoped)

Comment service for web

Getting Started

Installation

Use NPM or Yarn

npm i @mrzhiin/modis

yarn add @mrzhiin/modis

Use Browser

  • Full
<script src="path/modis.js"></script>
  • Lite
<script src="//cdn.jsdelivr.net/npm/leancloud-storage@3.11.0/dist/av-min.js"></script>
<script src="path/modis.slim.js"></script>

Usage

<div id="modis"></div>
<script>
  new Modis({
    el: "#modis",
    backend: "leancloud",
    backendConfig: {
      appId: "",
      appKey: ""
    }
  });
</script>

Options

OptionTypeDescriptionDefault
elstring/ElementCSS selector or Element
localestringLanguagezh-CN
gravatarstringGravatar request URLhttps://www.gravatar.com/avatar/
gravatarParametersstringGravatar request URL's combining parameters(Don't use s)?d=mp&s=60
pageSizenumberNumber of comment displayed per page10
pathnameGeneratorfunction
themestringThemeauto
backendstringBackend serviceleancloud
backendConfigobjectBackend service config

Backend service

leancloud

OptionTypeDescriptionDefault
appIdstringLeancloud App appId
appKeystringLeancloud App appKey
spabooleanfalse

valine

OptionTypeDescriptionDefault
appIdstringLeancloud App appId
appKeystringLeancloud App appKey
spabooleanfalse

Document

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 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

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago