@beaver-im/js-sdk 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/api/localClient.d.ts +1 -1
- package/dist/beaver-sdk.es.js +362 -356
- package/dist/beaver-sdk.umd.js +14 -14
- package/dist/config/index.d.ts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.vue.d.ts +6 -6
- package/dist/types/api/auth.d.ts +21 -1
- package/dist/types/api/localClient.d.ts +20 -0
- package/dist/types/api/oauth.d.ts +21 -1
- package/dist/types/api/qrcode.d.ts +21 -1
- package/dist/view/password-login/index.vue.d.ts +2 -2
- package/dist/view/qrcode-login/index.vue.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ npm install @beaver-im/js-sdk
|
|
|
12
12
|
|
|
13
13
|
```html
|
|
14
14
|
<beaver-login
|
|
15
|
-
|
|
15
|
+
oauth-Id="your_app_id"
|
|
16
16
|
api-base="https://server.wsrh8888.com"
|
|
17
17
|
oauth-base="https://oauth.wsrh8888.com"
|
|
18
18
|
redirect-url="https://yoursite.com/callback"
|
|
@@ -36,7 +36,7 @@ npm install @beaver-im/js-sdk
|
|
|
36
36
|
|
|
37
37
|
| 属性 | 类型 | 必填 | 说明 |
|
|
38
38
|
|------|------|------|------|
|
|
39
|
-
|
|
|
39
|
+
| oauth-Id | string | 是 | 开放平台应用 AppID |
|
|
40
40
|
| api-base | string | 否 | 开放 API 网关,默认 `https://server.wsrh8888.com` |
|
|
41
41
|
| oauth-base | string | 否 | 扫码页域名(拼 `/scan?sceneId=`),默认 `https://oauth.wsrh8888.com` |
|
|
42
42
|
| redirect-url | string | 否 | 登录成功后的回跳地址 |
|
|
@@ -62,7 +62,7 @@ element.addEventListener('login', (e) => {
|
|
|
62
62
|
```vue
|
|
63
63
|
<template>
|
|
64
64
|
<beaver-login
|
|
65
|
-
:
|
|
65
|
+
:oauth-Id="oauthId"
|
|
66
66
|
:api-base="apiBase"
|
|
67
67
|
:oauth-base="oauthBase"
|
|
68
68
|
@login="onLogin"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IQuickSignRes } from '../types/api/localClient';
|
|
2
2
|
|
|
3
3
|
/** 本机客户端快捷登录(海狸 PC 已登录时) */
|
|
4
|
-
export declare const quickSignApi: (
|
|
4
|
+
export declare const quickSignApi: (oauthId: string) => Promise<import('../utils/request').IResponseSuccessData<IQuickSignRes>>;
|