
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
pxy_webcommonui
Advanced tools
npm i pxy_webcommonui
<script src="pxy_webcommonui.min.js"></script>
import PxyCommonUI from 'pxy_webcommonui';
const {
Joystick,
KJoystickEvents,
KJoystickSubTypes
} = PxyCommonUI;
pxy_webcommonui
, use new pxy_webcommonui.Joystick({...config})
to create, see./sample-plain-html/source/index.htmlUse import
as exp:
this.joystick = new Joystick({
// root html element.
rootElement: this.uiContainerRef.current,
// Option,larksr object,create with larksr websdk
// If set auto send operate command to cloud, or use callback joystickstart joystickmove joystickend.
// npm https://www.npmjs.com/package/larksr_websdk
// doc https://github.com/ParaverseTechnology/lark_sr_websdk_demos
// demos https://ParaverseTechnology.github.io/webclient_sdk/
larksr: this.larksr,
// Option subType 1 wasd 2 updownleftright 3 joystick 0 none
// Joystick type
// 1 Keyboard WASD key
// 2 Keyboard UpDownLeftRight Key
// 3 Joystick
// 0 None
// 默认为 1
subType: 1,
// Option, component position
// If not set use parent position.
position: {
top: 150,
left: 100,
},
// Option, component size
// If not set use parent html element size.
size: {
width: 200,
height: 200,
},
// Option, component center point size.
// Default = total width 25%
centerSize: {
width: 100,
height: 100,
},
// Option,extral style css.
extralJoystickStyle: 'background-color: red;',
// Option, extral center point css style.
extralCenterStyle: 'background-color: #fff;',
// Option, background url. set within css prop background-image
joystickBackgroundUrl: "",
// Option,center point background url,set within css prop background-image
centerBackgroundUrl: "",
// Option,send command interval.
repeatTimeout: 10,
});
Destory Joystick:
// Destory joystick DOM element.
this.joystick.destroy();
Listen event.
this.joystick.on(KJoystickEvents.EVENTS_JOYSTICK_START, function(e) {
console.log("joystickstart", e.detail);
});
this.joystick.on(KJoystickEvents.EVENTS_JOSYTICK_MOVE, function(e) {
console.log("joystickmove", e.detail);
});
this.joystick.on(KJoystickEvents.EVENTS_JOYSTICK_END, function(e) {
console.log("joystickend", e.detail);
});
Generally two way to use this component. Use fixd position size or parent html element position size.
/**
* Refresh component size.
*/
public resize()
/**
* Show component.
*/
public show()
/**
* Hide component.
*/
public hide()
Use import
as exp:
this.keyboard = new Keyboard({
// root html element.
rootElement: this.uiKeyboardRef.current,
// must set larksr object
larksr: this.larksr,
// zh en
language: 'En',
theme: 'dark'
});
// show virtual keyboard
this.keyboard.show();
// hide virtual keyboard
this.keyboard.hide();
Listen event for input text.
this.keyboard.on('keyboardVal', function(e) {
console.log('e',e.detail);
});
yarn run dev
yarn run dist
FAQs
common ui components for pxy cloudrending.
The npm package pxy_webcommonui receives a total of 42 weekly downloads. As such, pxy_webcommonui popularity was classified as not popular.
We found that pxy_webcommonui 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.