Skip to content

Commit

Permalink
Merge pull request #13 from dreambo8563/release
Browse files Browse the repository at this point in the history
1.1.1
  • Loading branch information
dreambo8563 authored Mar 11, 2019
2 parents ba9f6f8 + 6a03e8c commit c71be96
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 5 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
<a name="1.1.1"></a>
## [1.1.1](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.1.0...v1.1.1) (2019-03-11)


### Bug Fixes

* **dingtalk:** match lower case ([e2a2fb4](https://github.com/dreambo8563/vue-DeviceDetector/commit/e2a2fb4))



<a name="1.1.0"></a>
# [1.1.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.0.0...v1.1.0) (2019-03-11)


### Features

* **wechat:** add wechat ([b0c7e28](https://github.com/dreambo8563/vue-DeviceDetector/commit/b0c7e28))



<a name="1.0.0"></a>
# [1.0.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.8...v1.0.0) (2019-03-11)


### Features

* **dingding:** add dingding detect ([b03caac](https://github.com/dreambo8563/vue-DeviceDetector/commit/b03caac))



<a name="0.1.8"></a>
## [0.1.8](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.1...v0.1.8) (2019-03-08)

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

TODO:

- [ ] add dingding api
- [ ] add weixin api
- [x] add dingding api
- [x] add weixin api

### Install

Expand Down Expand Up @@ -58,6 +58,8 @@ interface IDeviceDetector {
androidPhone: Boolean
windows: Boolean
mobile: Boolean
dingding: Boolean //钉钉
wechat: Boolean // 微信
}
```

Expand All @@ -82,6 +84,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/all-contri
<!-- prettier-ignore -->
| [<img src="https://avatars2.githubusercontent.com/u/6948318?v=4" width="100px;" alt="Vincent Guo"/><br /><sub><b>Vincent Guo</b></sub>](https://dreambo8563.github.io/)<br />[💻](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 "Code") [📖](https://github.com/dreambo8563/vue-DeviceDetector/commits?author=dreambo8563 "Documentation") [🚇](#infra-dreambo8563 "Infrastructure (Hosting, Build-Tools, etc)") |
| :---: |

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-device-detector",
"version": "0.1.8",
"version": "1.1.1",
"private": false,
"author": "dreambo8563",
"main": "dist/vue-device-detector.umd.min.js",
Expand Down
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ class DeviceDetector {
android: Boolean;
androidPhone: Boolean;
mobile: Boolean;
dingding: Boolean;
wechat: Boolean;
constructor() {
this.windows = this.find("windows");
this.ipod = this.find("ipod");
this.ipad = this.find("ipad");
this.dingding = this.find("dingtalk");
this.wechat = this.find("micromessenger");
this.iphone = !this.windows && this.find("iphone");
this.iphoneX =
this.iphone &&
Expand Down Expand Up @@ -64,6 +68,8 @@ interface IDeviceDetector {
androidPhone: Boolean;
windows: Boolean;
mobile: Boolean;
dingding: Boolean;
wechat: Boolean;
}
export type deviceDetectorPlugin = {
install(vue: VueConstructor<Vue>, options?: any): void;
Expand Down
2 changes: 2 additions & 0 deletions types/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface IDeviceDetector {
androidPhone: Boolean;
windows: Boolean;
mobile: Boolean;
dingding: Boolean;
wechat: Boolean;
}
export declare type deviceDetectorPlugin = {
install(vue: VueConstructor<Vue>, options?: any): void;
Expand Down

0 comments on commit c71be96

Please sign in to comment.