@ekidpro/bridge
Advanced tools
Comparing version 1.0.12 to 1.0.14
@@ -12,3 +12,8 @@ declare const _default: { | ||
}; | ||
remote: { | ||
login: (username: string, password: string) => Promise<import("../..").UserInfo>; | ||
fetchUserInfo: (forceReload?: boolean) => Promise<import("../..").UserInfo>; | ||
reset: () => void; | ||
}; | ||
}; | ||
export default _default; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const scan_qr_1 = require("./scan-qr"); | ||
const remote_1 = require("./remote"); | ||
exports.default = { | ||
@@ -18,3 +19,8 @@ device: { | ||
}, | ||
remote: { | ||
login: remote_1.login, | ||
fetchUserInfo: remote_1.getUserInfo, | ||
reset: remote_1.reset, | ||
}, | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ekidpro/bridge", | ||
"version": "1.0.12", | ||
"version": "1.0.14", | ||
"description": "Bridge between ekidpro app with website", | ||
@@ -30,2 +30,3 @@ "homepage": "https://github.com/ekidpro-vn/bridge", | ||
"devDependencies": { | ||
"@types/blueimp-md5": "^2.7.0", | ||
"@types/history": "^4.7.6", | ||
@@ -46,2 +47,3 @@ "@types/node": "^13.11.1", | ||
"dependencies": { | ||
"blueimp-md5": "^2.17.0", | ||
"qrcode.react": "^1.0.0", | ||
@@ -48,0 +50,0 @@ "socket.io-client": "^2.3.0", |
@@ -155,10 +155,25 @@ ![ekidpro](./documents/image.png 'eKidPro Logo') | ||
- command.device.setButtonStatus() => Promise<'show' | 'hidden'> | ||
- command.device.setButtonStatus(type: 'show' | 'hidden') => Promise<'show' | 'hidden'> | ||
- command.device.setStatusBarStyle() => Promise<'default' | 'light-content' | 'dark-content'> | ||
- command.device.setStatusBarStyle(type: 'default' | 'light-content' | 'dark-content') => Promise<'default' | 'light-content' | 'dark-content'> | ||
- command.device.goBack() => Promise<boolean> | ||
* // TODO: getUserInfo() | ||
- Mini web function | ||
```js | ||
- Đăng nhập, lấy token và thông tin user | ||
command.remote.login(username: string, password: string) => Promise<UserInfo> | ||
- Lấy thông tin mới nhất của user. Nếu forceNew thì sẽ gọi từ api, còn ko lấy dữ liệu từ localStorage | ||
command.remote.fetchUserInfo(forceNew : boolean) => Promise<UserInfo> | ||
- Xoá dữ liệu đã lưu tại localStorage. Clear cache | ||
command.remote.reset() | ||
``` | ||
- // TODO: getUserInfo() | ||
4. Lắng nghe thay đổi từ trong app | ||
@@ -165,0 +180,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54161
68
826
197
6
10
+ Addedblueimp-md5@^2.17.0
+ Addedblueimp-md5@2.19.0(transitive)