Skip to content

Commit

Permalink
build: release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Feb 7, 2022
1 parent 907058f commit 9893e3e
Show file tree
Hide file tree
Showing 7 changed files with 22,058 additions and 4,430 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [2.0.0](https://github.com/fengyuanchen/vue-qrcode/compare/v2.0.0-rc.1...v2.0.0) (2022-02-07)



# [2.0.0-rc.1](https://github.com/fengyuanchen/vue-qrcode/compare/v2.0.0-rc...v2.0.0-rc.1) (2021-08-23)


Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# vue-qrcode

[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-qrcode.svg)](https://codecov.io/gh/fengyuanchen/vue-qrcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-qrcode/next.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-qrcode.svg)](https://unpkg.com/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js)
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-qrcode.svg)](https://codecov.io/gh/fengyuanchen/vue-qrcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-qrcode.svg)](https://unpkg.com/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js)

> QR code component for Vue 3, bases on [node-qrcode](https://github.com/soldair/node-qrcode).
> QR code component for Vue 3, bases on [node-qrcode](https://github.com/soldair/node-qrcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-qrcode/tree/v1) branch.
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-qrcode)
Expand All @@ -14,23 +14,38 @@ dist/
├── vue-qrcode.js (UMD, default)
├── vue-qrcode.min.js (UMD, compressed)
├── vue-qrcode.esm.js (ECMAScript Module)
└── vue-qrcode.esm.min.js (ECMAScript Module, compressed)
├── vue-qrcode.esm.min.js (ECMAScript Module, compressed)
└── vue-qrcode.d.ts (TypeScript Declaration File)
```

## Getting started

### Installation

Using npm:

```shell
npm install vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```

Using pnpm:

```shell
pnpm add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```

Using Yarn:

```shell
npm install vue@next qrcode @chenfengyuan/vue-qrcode@next
yarn add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```

In browser:
Using CDN:

```html
<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/qrcode.js"></script><!-- qrocde is required -->
<script src="/path/to/vue-qrcode.js"></script>
<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
<script src="https://unpkg.com/[email protected]/build/qrcode.js"></script><!-- qrocde is required -->
<script src="https://unpkg.com/@chenfengyuan/vue-qrcode@2"></script>
```

### Usage
Expand Down
1 change: 1 addition & 0 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export default defineComponent({
table {
display: table;
width: 100%;
}
code {
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<meta name="description" content="Number input component for Vue.js.">
<meta name="author" content="Chen Fengyuan">
<link href="https://unpkg.com/bootstrap@5/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@4/github-markdown.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css@5/github-markdown.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11/styles/github.min.css" crossorigin="anonymous">
</head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/bootstrap@5/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@highlightjs/cdn-assets@11/highlight.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/qrcode@1.4.4/build/qrcode.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/qrcode@1.5.0/build/qrcode.js" crossorigin="anonymous"></script>
<script src="https://fengyuanchen.github.io/shared/google-analytics.js" crossorigin="anonymous"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>hljs.highlightAll();</script>
</body>
</html>
Loading

0 comments on commit 9893e3e

Please sign in to comment.