Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
amis-layout
Advanced tools
爱速搭框架渲染器+设计器
npm i amis-layout
import {render as renderAmis} from 'amis';
import 'amis-layout';
import 'amis-layout/dist/style.css';
const App = (props) => {
return (
{
// 渲染
renderAmis({
type: 'app-layout',
preset: '3',
header: [
{
type: 'tpl',
tpl: '我的应用'
}
],
page: [
{
type: 'page',
body: [
{
type: 'tpl',
tpl: '我的页面'
}
]
}
]
})
}
)
}
import {render as renderAmis} from 'amis';
import 'amis-layout';
import 'amis-layout/dist/style.css';
const App = (props) => {
return (
{
// 渲染
renderAmis({
type: 'app-layout',
preset: '3',
supportExtraScript: true,
extraCss: [
{
url: 'https://127.0.0.1:5500/main.css'
},
{
url: 'https://127.0.0.1:5500/iconfont.css'
}
],
extraJs: [
{
url: 'https://127.0.0.1:5500/bundle.js',
callback: async function () {
// 派发渲染器事件
this.dispatchEvent('JS_LOAD_FINISH', {data: 'xxx'});
}
}
],
page: [
{
type: 'page',
body: [
{
type: 'tpl',
tpl: '我的页面'
}
]
}
]
})
}
)
}
参考 types.d.ts
。
FAQs
爱速搭框架渲染器+设计器
The npm package amis-layout receives a total of 0 weekly downloads. As such, amis-layout popularity was classified as not popular.
We found that amis-layout 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.