Move non Web IDE code outside of the app/assets/javascripts/ide directory

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

MR: Pending

Description

After removing the legacy Web IDE frontend in Remove legacy Web IDE frontend source code (#537160 - closed), we identified features outside of the Web IDE domain that depend on some legacy Web IDE's modules defined in the app/assets/javascripts/ide directory.The goal of this issue moving those utilities to the features that use them.

Acceptance criteria

  • Move app/assets/javascripts/ide/utils.js to app/assets/javascripts/editor.
  • Move app/assets/javascripts/ide/lib/languages to app/assets/javascripts/editor/lib .
  • Move app/assets/javascripts/ide/lib/themes to app/assets/javascripts/editor/lib .
  • Move app/assets/javascripts/ide/lib/editor_options to app/assets/javascripts/editor/lib.
  • Move app/assets/javascripts/ide/services/index.js to app/assets/javascripts/analytics/analytics_dashboards/api.
  • Move app/assets/javascripts/ide/stores/utils.js to app/assets/javascripts/diffs/utils.
  • In the app/assets/javascripts/ide/constants.js file, move the following constants to the app/assets/javascripts/ide/constants.js file:
    • diffModes
    • diffViewerModes
    • diffViewerErrors
  • Make app/assets/javascripts/ide/commit_icon.js a part of the app/assets/javascripts/vue_shared/components/changed_file_icon.vue component.
Edited by 🤖 GitLab Bot 🤖