Coder Social home page Coder Social logo

aomeivs / web-see-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xy-sea/web-see-demo

0.0 0.0 0.0 3.24 MB

web-see监控后台demo,主要用来演示错误还原功能,方式包括:定位源码、播放录屏、记录用户行为

JavaScript 40.51% HTML 3.18% Vue 56.32%

web-see-demo's Introduction

websee-logo

web-see 后台demo,主要用来演示错误还原功能,方式包括:定位源码、播放录屏、记录用户行为

功能

1、使用 express 搭建静态服务器,模拟线上环境,通过获取.map文件,实现定位源码的功能

2、server.js 中实现了 reportData(错误上报)、getmap(获取 map 文件)、getRecordScreenId(获取录屏信息)、 getErrorList(获取错误列表)的接口

3、用户可点击 'js 报错'、'异步报错'、'promise 错误' 按钮,上报对应的代码错误,后台实现代码错误还原

4、点击 'xhr 请求报错'、'fetch 请求报错' 按钮,上报接口报错信息

5、点击 '加载资源报错' 按钮,上报对应的资源报错信息

通过对这些错误的捕获与处理,了解监控平台的整体流程

安装

$ npm install

运行

$ npm run start

浏览器输入 http://localhost:8083

演示

后台页面

sea.png

演示效果

web-see.gif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.