Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the content.ts into manageable files #8

Open
zalimitless opened this issue Jun 12, 2023 · 3 comments
Open

Split the content.ts into manageable files #8

zalimitless opened this issue Jun 12, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@zalimitless
Copy link
Collaborator

As this is the first file to run, the code needs to be split into manageable files to allow for more modular development.

Split into:

  • Utilities
  • Functionality
  • Components

This is due to changes.

@marvinIsSacul marvinIsSacul added the enhancement New feature or request label Jun 12, 2023
@zalimitless
Copy link
Collaborator Author

Created a DateUtils.ts that splits all date related functionality from the content.ts

@marvinIsSacul
Copy link
Owner

You'll put it in a new folder or?

@zalimitless
Copy link
Collaborator Author

zalimitless commented Jun 13, 2023

You'll put it in a new folder or?

Yeah, there are a few new folders:

./Util/DateUtils.ts
./Types/MyLMSTypes.ts
./Interfaces/TBA Anything related to interfaces, similar to types
./ExtentionUI/TBA Anything related to the Extension's popup UI
./Components/TBA Anything related to components that enhances the website

"// One major difference between type aliases vs interfaces are that interfaces are open and type aliases are closed. This means you can extend an interface by declaring it a second time. // In the other case a type cannot be changed outside of its declaration."
~ TypeScriptLang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants