Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
aiyou-vue-diff
Advanced tools
aiyou-vue-diff 是哎呦系列中,vue的文本对比工具,也可以用于对比代码,非常的方便,没有什么花里胡哨的功能,全是实用的,谁用谁爽[狗头保命],常规的操作,非常的简单。
nodejs | npm | size |
---|---|---|
> 12.0 | > 6.0 | 有点,不过这没啥办法 |
aiyou-vue-diff,一个简单的vue组件,引入之后、正常注册组件、传递参数:
功能 | 描述 |
---|---|
对比方式 | 支持单列对比 和 双列对比 |
隐藏相同行 | 支持隐藏内容相同的行 |
对比效果 | 支持精确到单词 和 精确到字符 |
小地图 | 左侧的迷你小地图 |
... | 后续功能待优化 |
params | 参数值 |
---|---|
longText | { A: 老的文本内容 , B: 新的文本内容 } |
topHeight | 默认值是 100px |
containerHeight | 默认值 50vh |
... | 后续功能待优化 |
依赖安装:
npm install aiyou-vue-diff
安装完毕依赖之后,通过引入的方式来使用它:
<template>
<div id="app">
<aiyou-vue-diff
:longText="longText"
topHeight="100px"
containerHeight="500px"
></aiyou-vue-diff>
</div>
</template>
<script>
import AiyouVueDiff from "aiyou-vue-diff";
export default {
name: "App",
components: {
AiyouVueDiff,
},
data() {
return {
longText: {
A: `内容1`,
B: `内容2`,
},
};
},
};
</script>
<style>
#app {
}
</style>
安装->使用
github仓库中有相关的使用demo
aiyou-vue-diff 是哎呦系列中一员,之后还会有其它的成员陆续上来。
有问题可以在github的issue中提哟,感兴趣也可以加微信交流:
diff:对比两个文本内容,生成一个对比后的js对象 diff2html:将对比后的内容转成html来显示 pagemap:没有直接下载这个依赖,而是把这个依赖的文件拷贝了一份,然后改了改里面的内容,让它支持我。
FAQs
The npm package aiyou-vue-diff receives a total of 2 weekly downloads. As such, aiyou-vue-diff popularity was classified as not popular.
We found that aiyou-vue-diff 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.