Skip to content

Commit c71be96

Browse files
authored
Merge pull request #13 from dreambo8563/release
1.1.1
2 parents ba9f6f8 + 6a03e8c commit c71be96

File tree

6 files changed

+46
-5
lines changed

6 files changed

+46
-5
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
<a name="1.1.1"></a>
2+
## [1.1.1](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.1.0...v1.1.1) (2019-03-11)
3+
4+
5+
### Bug Fixes
6+
7+
* **dingtalk:** match lower case ([e2a2fb4](https://github.com/dreambo8563/vue-DeviceDetector/commit/e2a2fb4))
8+
9+
10+
11+
<a name="1.1.0"></a>
12+
# [1.1.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v1.0.0...v1.1.0) (2019-03-11)
13+
14+
15+
### Features
16+
17+
* **wechat:** add wechat ([b0c7e28](https://github.com/dreambo8563/vue-DeviceDetector/commit/b0c7e28))
18+
19+
20+
21+
<a name="1.0.0"></a>
22+
# [1.0.0](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.8...v1.0.0) (2019-03-11)
23+
24+
25+
### Features
26+
27+
* **dingding:** add dingding detect ([b03caac](https://github.com/dreambo8563/vue-DeviceDetector/commit/b03caac))
28+
29+
30+
131
<a name="0.1.8"></a>
232
## [0.1.8](https://github.com/dreambo8563/vue-DeviceDetector/compare/v0.1.1...v0.1.8) (2019-03-08)
333

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
TODO:
2222

23-
- [ ] add dingding api
24-
- [ ] add weixin api
23+
- [x] add dingding api
24+
- [x] add weixin api
2525

2626
### Install
2727

@@ -58,6 +58,8 @@ interface IDeviceDetector {
5858
androidPhone: Boolean
5959
windows: Boolean
6060
mobile: Boolean
61+
dingding: Boolean //钉钉
62+
wechat: Boolean // 微信
6163
}
6264
```
6365

@@ -82,6 +84,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/all-contri
8284
<!-- prettier-ignore -->
8385
| [<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)") |
8486
| :---: |
87+
8588
<!-- ALL-CONTRIBUTORS-LIST:END -->
8689

87-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
90+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-device-detector",
3-
"version": "0.1.8",
3+
"version": "1.1.1",
44
"private": false,
55
"author": "dreambo8563",
66
"main": "dist/vue-device-detector.umd.min.js",

src/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ class DeviceDetector {
1818
android: Boolean;
1919
androidPhone: Boolean;
2020
mobile: Boolean;
21+
dingding: Boolean;
22+
wechat: Boolean;
2123
constructor() {
2224
this.windows = this.find("windows");
2325
this.ipod = this.find("ipod");
2426
this.ipad = this.find("ipad");
27+
this.dingding = this.find("dingtalk");
28+
this.wechat = this.find("micromessenger");
2529
this.iphone = !this.windows && this.find("iphone");
2630
this.iphoneX =
2731
this.iphone &&
@@ -64,6 +68,8 @@ interface IDeviceDetector {
6468
androidPhone: Boolean;
6569
windows: Boolean;
6670
mobile: Boolean;
71+
dingding: Boolean;
72+
wechat: Boolean;
6773
}
6874
export type deviceDetectorPlugin = {
6975
install(vue: VueConstructor<Vue>, options?: any): void;

types/main.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ interface IDeviceDetector {
1111
androidPhone: Boolean;
1212
windows: Boolean;
1313
mobile: Boolean;
14+
dingding: Boolean;
15+
wechat: Boolean;
1416
}
1517
export declare type deviceDetectorPlugin = {
1618
install(vue: VueConstructor<Vue>, options?: any): void;

0 commit comments

Comments
 (0)