
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
云实验室项目孔板可视化组件
安装 heatmap-c 组件,npm i heatmap-c
该组件输入的数据格式
{
data: [ // 图表数据
{
em_wave_length: '590',
ex_wave_length: '560',
sample_name: "MeasureingSample",
size: [8,12],
start_time: "05:18:07",
end_time: "05:18:07",
wavelengthMeasurement: '',
value: [{
x: 'A',
y: '1',
value: 77
},
{
x: 'A',
y: '2',
value: 99
},
...]
},
...
],
width: '250px', // 图表宽度
height: '330px' // 图表高度
}
1.在项目的 main.ts 文件中引入组件
// 导入热力图组件
import HeatmapC from 'heatmap-c'
app.use(HeatmapC)
2.在页面中使用组件
<template>
<heatmap-c :datasource="data" />
</template>
<script setup>
import g2pCom from 'hp-2/src/packages/g2pCom/index.vue'
// 【X轴,Y轴,状态对应的值(1是合格、2是不合格等)】
var heatmapData = [
[0, 0, 1],
[0, 1, 1],
[0, 2, 4],
]
// 孔板中默认的孔位效果
let wmsRich = {
width: 18,
height: 18,
align: 'center',
verticalAlign: 'top',
borderColor: 'black',
opacity: 1,
lineHeight: 20,
backgroundColor: {
image: ''
}
}
// 孔板状态数组
let wmsLabelArray = ['DNA', '感受态', '引物', '大肠杆菌', '培养液', '引物-1']
// 孔板每个状态对应选中和默认的颜色
let wmsColor = [
{ selected: '#52C41A', default: '#95DE64' },
{ selected: '#FF9D00', default: '#FFC15E' },
{ selected: '#005AEA', default: '#5898FF' },
{ selected: '#E90909', default: '#FF4D4F' },
{ selected: '#680DB6', default: '#8E58DA' },
{ selected: '#005AEA', default: '#5898FF' }
]
// 孔板中每个状态对应的样式配置
let wmsClassConfigArray = []
wmsLabelArray.map((item, index) => {
let configItem = {
name: item, // 状态名称
data: heatmapData.filter(val => {
return val[2] === index + 1
}),
scatter: {
formatter: 'wms',
rich: {
rich: {
...wmsRich,
backgroundColor: {
image: dna_icon.image // 默认时的孔板图标
}
}
},
itemStyle: {
selected: wmsColor[index].selected,
default: wmsColor[index].default
}
}
}
wmsClassConfigArray.push(configItem)
})
let wmsConfig = {
commonConfig: {
size: [7, 12],
legend: {
disabled: true
}
},
classConfig: wmsClassConfigArray
}
let data = ref({
data: heatmapData,
config: wmsConfig
})
</script>
FAQs
> 云实验室项目孔板可视化组件
The npm package heatmap-c receives a total of 5 weekly downloads. As such, heatmap-c popularity was classified as not popular.
We found that heatmap-c 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.