Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@edenjs/admin
Advanced tools
[![TravisCI](https://travis-ci.com/eden-js/admin.svg?branch=master)](https://travis-ci.com/eden-js/admin) [![Issues](https://img.shields.io/github/issues/eden-js/admin.svg)](https://github.com/eden-js/admin/issues) [![License](https://img.shields.io/badge
Administrator base logic component for EdenJS
@edenjs/admin
creates all the base administrator logic that any normal system should require. This module also creates configuratble dashboards.
npm i --save @edenjs/admin
No configuration is required for this module
Dashboard
UsageDashboard model consists of a single configurable dashboard instance. These are created in the frontend through the api.
// load model
const Dashboard = model('dashboard');
// get first dashboard
const dashboard = await Dashboard.findOne();
// dashboard used in frontend
const data = await dashboard.sanitise();
No hooks created in this module
<dashboard>
UsageThe dashboard view creates an instance of a dashboard container, this provides a fully configurable dashboard area.
In the controller Usage
// require helper
const blockHelper = helper('cms/block');
// get dashboards
const dashboards = await Dashboard.find();
// sanitise data
const data = await Promise.all(dashboards.map(dash => dash.sanitise()));
// render dashboard/home.tag view
res.render('dashboard/home', {
blocks : blockHelper.renderBlocks('admin'), // render blocks can be namespaced
dashboards : data,
});
In the view dashboard/home.tag
Usage
<dashboard-home-page>
<dashboard dashboards={ opts.dashboards } blocks={ opts.blocks } type="my.dashboard" name="My Dashboard" />
</dashboard-home-page>
<admin-header>
UsageThe admin header view creates a common admin header component for use in admin layout pages.
In the view
<admin-header title="Admin Header Title" />
FAQs
[![TravisCI](https://travis-ci.com/eden-js/admin.svg?branch=master)](https://travis-ci.com/eden-js/admin) [![Issues](https://img.shields.io/github/issues/eden-js/admin.svg)](https://github.com/eden-js/admin/issues) [![License](https://img.shields.io/badge
We found that @edenjs/admin 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.