sonderxiaoming / autohelp Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
翻了资源库唯独没有看到猫猫这张图,因此无法简单粗暴的平替,本人对前端一窍不通,不知道大佬是否方便提供这一选项
(因为bot发展到现在已经和pcr没啥关系了)
如果不好提供,请大佬直接关闭,打扰大佬了
本地机跑的bot,没有公网IP,怎么用
感谢dalao提供的轮子,今天尝试了进行部署,想到了点改进的方向
json
文案然后访问对应的url
得到黑名单插件的readme
。Service
的help
文案好点?当然我不清楚起初是不是因为这个help
文案混乱才用readme
作为帮助文案。但因为readme
有好些都不是给用户阅读的,而是维护人员,而每个插件单独建一个userreadme
有点小麻烦;并且还有个问题就是可能一个module
的文件夹里有不止一个插件,但它们只能共享一个userreadme
。还有就是文件夹名也不一定是service
名,用户管理员在自己启动禁用插件时还是不容易找到帮助文案对应的service
名字。第一点的改进就把要渲染的内容(插件名和插件帮助文案)变量传入render_template
函数里,help.html
解析该变量就可以了。
第二点的改进,在Service
类里有个get_loaded_services
类可以获取已加载的插件,包括其name
和help
。当然可以将help
渲染成html
然后嵌入到网页里,这样帮助文案里显示的插件名字就是service name
。
我自己对这两点改进,但由于我对JQuery UI库
不太熟悉,在修改后出现了折叠效果不符合预期行为的问题(折叠动画不是从下往上慢慢闭合,而是直接闭合后往下展开一点点,如下动图所示),目前还在研究原因中。
如果需要,我可以把我改的pr上来。
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.