Skip to content

How to update external dependencies

Thomas Kropeit edited this page Apr 6, 2022 · 1 revision

JavaScript dependencies

dfirtrack_api

Update dependencies in /dfirtrack_api/static/dfirtrack_api/.

Swagger UI

  • Check for new version here: https://github.com/swagger-api/swagger-ui/releases
  • From the downloaded archive copy dist/swagger-ui-bundle.js, dist/swagger-ui.css and replace the existing files. Ignore other files of the archive. Rename the folder to match the new version number.
  • Update file imports in project, especially /dfirtrack_api/templates/dfirtrack_api/swagger-ui.html.
  • Check for updated license, update /LICENSE if necessary.

dfirtrack_main

Update dependencies in /dfirtrack_main/static/dfirtrack_main/.

Bootstrap

  • Check for new version here: https://getbootstrap.com/docs/versions/
  • Download "Compiled CSS and JS" and extract it here. Remove the old folder.
  • Update file imports in project, especially /dfirtrack_main/templates/dfirtrack_main/mainloginlogout.html, /dfirtrack_main/templates/dfirtrack_main/mainpopup.html, /dfirtrack_main/templates/dfirtrack_main/maintemplate.html.
  • Check for updated license, update /LICENSE if necessary.

clipboard.js

  • Check for new version here: https://github.com/zenorocha/clipboard.js/releases
  • From the downloaded archive copy dist/clipboard.min.js and replace the existing files. Ignore other files of the archive. Rename the folder to match the new version number.
  • Update file imports in project, especially /dfirtrack_main/templates/dfirtrack_main/maintemplate.html.
  • Check for updated license, update /LICENSE if necessary.

DataTables

  • Check for new version here: https://datatables.net/
  • On the download page select styling framework = Bootstrap 5, packages: jQuery 3, DataTables, extensions: Responsive and download method = Download. This is pre-selected if you used this link. Click on the "Download files" button, the options "Minify" and "Concatenate" only affect the code snippet.
  • From the downloaded archive copy datatables.css, datatables.js, datatables.min.css, datatables.min.js and replace the existing files. Ignore other files of the archive. Rename the folder to match the new version number.
  • Update file imports in project, especially /dfirtrack_artifacts/templates/dfirtrack_artifacts/*/*.html, /dfirtrack_config/templates/dfirtrack_config/assignment/assignment.html, /dfirtrack_main/templates/dfirtrack_main/*/*.html.
  • Check for updated license, update /LICENSE if necessary.

jQuery

  • Check for new version here: https://jquery.com/download/
  • Download the "compressed, production jQuery" version and replace the existing file. Rename the folder to match the new version number.
  • Update file imports in project, especially /dfirtrack_main/templates/dfirtrack_main/mainpopup.html, /dfirtrack_main/templates/dfirtrack_main/maintemplate.html.
  • Check for updated license, update /LICENSE if necessary.