
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@ekidpro/bridge
Advanced tools
// TODO
Tạo mới project với CRA theo LINK
Thêm homepage vào trong package.json thành:
{
...
"homepage": "."
...
}
Nếu trong project đang sử dụng React Router vui lòng sử dụng HashRouter
thay cho BrowserRouter
$ import { HashRouter } from "react-router-dom";
Xuất project để upload lên cms:
$ npm run build
OR
$ yarn build
Sau đó zip folder build rồi up lên CMS
// TODO: Hướng dẫn up build lên cms
$ npm install --save @ekidpro/web
Hoặc
$ yarn add @ekidpro/web
// TODO:
import { controller } from '@ekidpro/web'
...
controller.start()
...
controller.stop()
...
Example:
useEffect(() => {
controller.start();
return () => {
controller.stop();
};
}, []);
// TODO: Danh sách event sẽ được cập nhật sau
import {Listener} from '@ekidpro/web';
const listener = Listener.start();
listener.onNetworkChange = e => {
console.log(e);
};
listener.onOrientationChange = e => {
console.log(e);
};
Example:
useEffect(() => {
const listener = Listener.start();
listener.onNetworkChange = (e) => {
console.log(e);
};
listener.onOrientationChange = (e) => {
console.log(e);
};
return () => listener.stop();
}, []);
import {command} from '@ekidpro/web';
command.device.getDeviceInfo() => Promise
command.user.getUserInfo() => Promise
command.user.scanQr() => Promise
// TODO: getUserInfo()
FAQs
Bridge between ekidpro app with website
The npm package @ekidpro/bridge receives a total of 1 weekly downloads. As such, @ekidpro/bridge popularity was classified as not popular.
We found that @ekidpro/bridge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.