add events js to repo for develop usage
This commit is contained in:
2
public/events.js
Normal file
2
public/events.js
Normal file
File diff suppressed because one or more lines are too long
@@ -12,26 +12,15 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<script src="./bundle.js"></script>
|
<script src="./bundle.js"></script>
|
||||||
<script src="./bundle.events.js"></script>
|
<script src="./events.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const queryObj = {
|
|
||||||
sessionId: '8874be03-bf8f-411e-862a-64ea7f950026',
|
|
||||||
};
|
|
||||||
let query = '';
|
|
||||||
Object.keys(queryObj).forEach(key => {
|
|
||||||
query += `${key}=${queryObj[key]}&`;
|
|
||||||
});
|
|
||||||
fetch(`http://192.168.17.205:9090/api/events?${query}`)
|
|
||||||
.then(res => res.json())
|
|
||||||
.then(data => {
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
new rrwebPlayer({
|
new rrwebPlayer({
|
||||||
target: document.body,
|
target: document.body,
|
||||||
data: {
|
data: {
|
||||||
events: data.events,
|
events,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user