imnaK / quantum

A "Better Discord" plugin for message encryption/decryption
GNU General Public License v3.0
3 stars 0 forks source link

Major Refactor: Improved Codebase Structure #1

Closed imnaK closed 7 months ago

imnaK commented 7 months ago

I have completed a significant refactor of the entire codebase. The primary goal of this refactor was to improve the overall structure of the code and enhance its readability and maintainability. Here are the key changes:

  1. Directory Structure: The files have been reorganized into separate directories based on their purpose. This includes new directories for components (src/components/), utilities (src/utils/), models (src/models/), and services (src/services/).
  2. Utility Functions: All utility functions have been consolidated in the utils directory and are now imported from an index.js file to streamline import statements.
  3. Constants: Constants that are used across multiple files have been centralized in a constants.js file in the utils directory.
  4. Webpack Aliases: To simplify imports and make them more readable, I've set up Webpack aliases. Now, you can import any file from the src directory using the @src alias, and any file from the assets directory using the @assets alias.

I would appreciate it if you could review these changes. Please pay special attention to the new directory structure, the way modules are imported, and the use of Webpack aliases. Please test the code thoroughly at runtime and make sure there are no bugs or features missing. Let me know if you have any suggestions for further improvements.

imnaK commented 7 months ago

Well, I am closing this and opening it for another branch. Github somehow wanted this to go to the main branch but I wanted it to be in the dev branch.