Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

AlloyLever

1KB js library contains development debugging, error monitoring and reporting, user problem localization features - 1KB代码搞定开发调试发布,错误监控上报,用户问题定位

Subscribe to updates I use AlloyLever


Statistics on AlloyLever

Number of watchers on Github 876
Number of open issues 14
Average time to close an issue about 2 hours
Main language JavaScript
Average time to merge a PR about 14 hours
Open pull requests 0+
Closed pull requests 1+
Last commit over 1 year ago
Repo Created about 3 years ago
Repo Last Updated over 1 year ago
Size 650 KB
Homepage https://alloyteam...
Organization / Authoralloyteam
Contributors1
Page Updated
Do you use AlloyLever? Leave a review!
View open issues (14)
View AlloyLever activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating AlloyLever for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

| English

AlloyLever

1kb(gzip)

urlvConsolevConsole

npm install alloylever

CDN:

https://unpkg.com/alloylever@1.0.2/alloy-lever.js

AlloyLever.config({
    cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js',  //vconsoleCDN
    reportUrl: "//a.qq.com",  //
  reportPrefix: 'qun',   //msg
    reportKey: 'msg',        //msgkeymsg
    otherReport: {              //
        uin: 491862102
    },
    entry:"#entry"          //DOM6vConsole//AlloyLever.entry('#entry2')
})

AlloyLeverwindow.onerrorreportUrlvConsole CDN://pub.idqqimg.com/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js

urlvConsole

AlloyLeverurl vconsole=show vConsole:

//log
http://localhost:63342/AlloyLever/index.html?vconsole=show
//log
http://localhost:63342/AlloyLever/index.html?vconsole=hide
//vConsole
http://localhost:63342/AlloyLever/index.html

url:

  • vconsole=showurl

QQ491862102

English |

AlloyLever

1kb(gzip) js library contains development debugging, error monitoring and reporting, user problem localization features.

  • support error monitoring and reporting
  • support for vConsole error display
  • support the development phase by using vConsole
  • support the production environment authorities to pull vConsole
  • support DOM evokes vConsole
  • supports url evokes vConsole

There are two purposes for URL parameter arousal, the first is to display the vConsole panel during the website development process, and the second is to send a complaint to the feedback site. The wrong user displays the vConsole panel for locating errors.

Install

npm install alloylever

or include this in your html:

<script src="https://cdn.jsdelivr.net/npm/alloylever@1/alloy-lever.min.js"></script>

Usage

AlloyLever.config({
    cdn:'//s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js',  //vconsole CDN address
    reportUrl: "//a.qq.com",  //Error reporting address
    reportPrefix: 'qun',    //An error reporting msg prefix is generally used to differentiate business types
    reportKey: 'msg',        //Error reporting msg prefix key, user reporting system receives storage msg
    otherReport: {              //Other information to be reported
        uin: 491862102
    },
    entry:"#entry"          //Please click on this DOM element to summon vConsole 6 times. You can use AlloyLever.entry('#entry2') add more entry
})

AlloyLever will listen to window.onerror and save the error information, and report to reportUrl, you can also call vConsole and display errors and related logs.

URL evokes vConsole

As long as your page references AlloyLever, you simply display the vConsole panel with the vconsole=show in your url. Such as:

//load and display the log panel
http://localhost:63342/AlloyLever/index.html?vconsole=show
//load but don't display the log panel
http://localhost:63342/AlloyLever/index.html?vconsole=hide
//don't load vConsole
http://localhost:63342/AlloyLever/index.html

The role of these URL is well understood:

  • development phase for debugging
  • open the URL with vconsole=show to the user who has complained

DEMO

License

This content is released under the MIT License.

AlloyLever open issues Ask a question     (View All Issues)
  • over 2 years 能否像vConsole.js一样 添加一个运行js脚本的功能?
  • over 2 years 文件引用位置:Cannot read properties 'querySelectorAll' of null 解决办法
  • almost 3 years 这个和vConsole.js有什么区别
  • almost 3 years 不能在head里面引入,和KISSY冲突
  • almost 3 years Powered By Nuclear 能去掉吗?
  • about 3 years Error: Uncaught InvalidStateError
  • about 3 years 最近产能很足呀~
AlloyLever list of languages used
Other projects in JavaScript