
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.
phosphor-boxpanel
Advanced tools
A Phosphor layout panel which arranges its children into a single row or column.
A Phosphor layout panel which arranges its children into a single row or column.
Prerequisites
npm install --save phosphor-boxpanel
Prerequisites
git clone https://github.com/phosphorjs/phosphor-boxpanel.git
cd phosphor-boxpanel
npm install
Rebuild
npm run clean
npm run build
Follow the source build instructions first.
# run tests in Firefox
npm test
# run tests in Chrome
npm run test:chrome
# run tests in IE
npm run test:ie
Follow the source build instructions first.
npm run docs
Navigate to docs/index.html
.
Follow the source build instructions first.
npm run build:example
Navigate to example/index.html
.
The runtime versions which are currently known to work are listed below. Earlier versions may also work, but come with no guarantees.
Follow the package install instructions first.
npm install --save-dev browserify browserify-css
browserify myapp.js -o mybundle.js
Note: This module is fully compatible with Node/Babel/ES6/ES5. Simply omit the type declarations when using a language other than TypeScript.
import {
BoxPanel
} from 'phosphor-boxpanel';
import {
Widget
} from 'phosphor-widget';
// Create some content for the panel.
let w1 = new Widget();
let w2 = new Widget();
let w3 = new Widget();
// Set the widget stretch factors (optional).
BoxPanel.setStretch(w1, 0);
BoxPanel.setStretch(w2, 2);
BoxPanel.setStretch(w3, 1);
// Set the widget size basis (optional).
BoxPanel.setSizeBasis(w1, 200);
BoxPanel.setSizeBasis(w2, 650);
BoxPanel.setSizeBasis(w3, 350);
// Setup the box panel.
let panel = new BoxPanel();
panel.direction = BoxPanel.LeftToRight;
panel.spacing = 5;
panel.addChild(w1);
panel.addChild(w2);
panel.addChild(w3);
FAQs
A Phosphor layout panel which arranges its children into a single row or column.
We found that phosphor-boxpanel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.