
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@deskpro/apps-sdk-react
Advanced tools
An SDK for building DeskPRO Apps powered by the React library.
Online documentation is available at https://deskpro.gitbooks.io/deskpro-apps/.
npm install --save @deskpro/apps-sdk-react
This tutorial will walk you through creating a simple DeskPRO app which displays a list of people participating in a ticket.
git clone https://github.com/deskpro/apps-boilerplate participants
cd participants
npm install
Update the "deskpro" property in the package.json, which you can find in your project root. Change the "title" property to "Participants".
{
"deskpro": {
"version": "2.1.0",
"title": "Participants",
"isSingle": true,
"scope": "agent",
"targets": [
{
"target": "ticket-sidebar",
"url": "html/index.html"
}
]
}
}
Your app component can be found in the file src/main/javascript/App.jsx.
import React from 'react';
import { Container, Avatar } from 'deskpro-components';
export default class App extends React.Component {
render() {
const { tabData } = this.props;
return (
<Container>
<ul className="participants-list">
{tabData.participants.map((p) => (
<li key={p.person.id}>
<Avatar src={p.person.default_picture_url} />
<div>
{p.person.name}
</div>
<div>
{p.person.primary_email.email}
</div>
</li>
))}
</ul>
</Container>
);
}
}
The boilerplate includes a SASS stylesheet which can be found in src/main/sass/index.scss. Modify the stylesheet to look like the following.
$dp-styles-font-path: "~deskpro-components/src/styles/fonts/";
@import "~deskpro-components/src/styles/main.scss";
.participants-list {
list-style-type: none;
li {
margin-bottom: 1rem;
}
}
Start the built in dev server.
npm run dev
Now open your browser to https://localhost/agent/?appstore.environment=development.
[2.0.0-beta.3][] - 2018-07-24
react-svg-inline
moved from devDependencies to dependenciesFAQs
An SDK for building DeskPRO Apps powered by the React library.
We found that @deskpro/apps-sdk-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.