Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ml-heatmap
Advanced tools
Readme
一个基于 Vue3 + Vite2 + Typescript 的仿造 GitHub 热力图的UI组件。
安装:
npm i ml-heatmap
使用方法:
<script setup lang="ts">
import {MlHeatmap} from 'ml-heatmap'
import 'ml-heatmap/dist/style.css'
</script>
<template>
<ml-heatmap :data="[]" />
</template>
参数配置:
Params | Desc | Default |
---|---|---|
illustration | 是否打开图解 | true |
year | 数据当前年份 e.g. 2022 | current year |
locale | 语言(中英) e.g. en cn | en |
levelColor | 等级颜色数组 e.g. [x, x, x, x, x] | ['#EBEDF0', '#9BE9A8', '#40C463', '#30A14E', '#216E39'] |
level | 等级数组,默认五级(第一级为0),只需填写后四级即可 e.g. [1, 2, 3, 4] | [1, 4, 8, 12] |
data | 热力图数据,数据为一年中的所有数据(365/366天的数据) e.g. [ {date: '2022-01-12', count: 1}, ...... } | [] |
title | 标题 | "" |
tip1 | 方格 hover 有数据时的提示文本 {0} - 数据占位符 {1} - 日期占位符 | {0} contributions on {1} |
tip2 | 方格 hover 无数据时的提示文本 {0} - 数据占位符 {1} - 日期占位符 | No contributions on {1} |
主要依赖:
Dependencies | Version |
---|---|
Vue | ^3.2.25 |
Vite | ^2.8.0 |
Element-Plus | ^2.0.2 |
Moment | ^2.29.1 |
FAQs
一个基于 Vue3 + Vite2 + Typescript 的仿造 GitHub 热力图的UI组件。 ![image](https://user-images.githubusercontent.com/34913418/154430134-81e5bffc-206f-4885-bf5a-705c5ddbfcc2.png)
The npm package ml-heatmap receives a total of 0 weekly downloads. As such, ml-heatmap popularity was classified as not popular.
We found that ml-heatmap 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.