1const swaggerAutogen = require('swagger-autogen')()
2
3const outputFile = './swagger_output.json'
4const endpointsFiles = ['./endpoints.js']
5
6swaggerAutogen(outputFile, endpointsFiles)
1checkLegends()
2
3 function checkLegends() {
4 var allLegends = document.querySelectorAll(".legend input[type='checkbox']")
5
6 for(var i = 0; i < allLegends.length; i++) {
7 if(!allLegends[i].checked) {
8 chart.toggleSeries(allLegends[i].value)
9 }
10 }
11 }
12
13 // toggleSeries accepts a single argument which should match the series name you're trying to toggle
14 function toggleSeries(checkbox) {
15 chart.toggleSeries(checkbox.value)
16 }
1var myModal = document.getElementById('myModal')
2var myInput = document.getElementById('myInput')
3
4myModal.addEventListener('shown.bs.modal', function () {
5 myInput.focus()
6})
11. Add tsconfig.json file to project
22. Integrate with a build tool
33. Change all .js files to .ts files
44. Check for any errors