carloskiki / leptos-icons

An icon library for the leptos web framework
MIT License
84 stars 16 forks source link

Refactor #5

Closed lpotthast closed 1 year ago

lpotthast commented 1 year ago

Hi, now to the PR I promised. I does a lot of things by now... Let me try to explain most of them (if I remember them all). Note: I incorporated all your last commits since I forked.

carloskiki commented 1 year ago

Wow, this is astonishing!

I'm pretty overwhelmed by this pr, but these are all great changes and I will surely merge them shortly.

I was just wondering why you chose the src/module/mod.rs over the src/module.rs convention?

lpotthast commented 1 year ago

Hi, the leptos-component functions i would leave non snake-case, as it is the UI / Leptos default. To the module convention: I think it's more or less a personal preference. Feel free to change anything. I just like the reduced "visual distance between module related files when looking at a file tree". With a mod.rs file, everything belonging to module "x" is contained in directory "x". I think it is a bit cleaner. The file simply be named "mod.rs" is a downside though... If there would be a "x.rs", defining the module, that might be, in a bigger project, be located "further away" the directory. Either way is totally fine :)