opaqueglass / progressbart-sywidget Goto Github PK
View Code? Open in Web Editor NEW用于展示任务进度的思源笔记挂件
License: GNU Affero General Public License v3.0
用于展示任务进度的思源笔记挂件
License: GNU Affero General Public License v3.0
00:00:00
思源的websocket链接可以通过siyuan.ws.ws获取
可以监听websocket消息触发进度条的自动刷新
/data/widgets/custom.js
,设置项仅部分会被导入(setting、defaultAttr的直接属性)。设置项格式参考:
/**/
export const config = {
token: "",
progressBarT:{
setting: {
showButtons: false
}
},
/*其他挂件的自定义设置,例如query*/
};
/*或,单独配置export*/
export const progressBarT = {
setting: {
showButtons: false
}
}
同时显示能看到deadline和进展,希望可以考虑,谢谢。
另外一些建议可以看看。
时间进度条有颜色变化的话就锦上添花了,样式建议:
开始时间希望可用有一个插入当前时间的按钮。
进行中;
隐藏后,通过双击进度百分比打开设置,单击进度百分比刷新进度。
(已在v0.1.3-beta1中发布)
由于目前高度调整是载入挂件后通过js对iframe.style进行直接修改,该修改不能被保存到文档中。导致下次在挂件js执行之前,挂件高度仍为原值。
临时解决方案:读取挂件块Kramdown,修改height后重新写入。
在本issue处理完成前,用户可以手动拖拽挂件设定大小。
处理完成后,由于挂件将记忆默认宽高,导致用户之前手动设定的挂件大小失效;如仍要保持之前的挂件大小,请载入挂件之前在 此方案可能导致同步冲突,将在正式版默认关闭。config.js
中将saveDefaultHeight
设置为false
。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.