unixporn-dots / unixporn-dots.github.io

A collection of dotfiles and icons from the r/unixporn community
https://unixporn-dots.github.io
111 stars 19 forks source link

Refactored the entire codebase #34

Closed mahancoder closed 2 years ago

mahancoder commented 2 years ago

In this PR, I've refactored the entire JavsScript codebase. I made everything object-oriented and just made everything make more sense. We also have global contexts now. This should give you guys a good headstart for adding new features

I still believe that the CSS and HTML codebases are really messed up, and I might fix them later in another PR. There is also an inconsistency in naming conventions, among function names, variables, and also element Id/Class names.

This PR does not include ManorSailor's preview image button, since I forked the main branch, so I suggest you guys just merge this into a new branch and add the preview button manually, adhering to the new template of cards and image preview window.

Have fun!