nandolawson / LinkLoom

A simple, self-hosted service for web links – themable, easy to customize and resource-efficient
https://nandolawson.github.io/LinkLoom/
GNU General Public License v3.0
47 stars 5 forks source link

Wallpaper overhaul #12

Closed Zohiu closed 5 days ago

Zohiu commented 6 days ago

I was told that you'd like some more wallpaper options, so I changed your wallpaper system to make it easier to add new ones, then added new ones. I think I explained all my choices pretty well here, so if you think something seems odd, ask me about it because it might just be a mistake / logical error on my side.

Small Changes

Functions

Multi-wallpaper support

DOM-interaction

New "content"

"Gradient" wallpaper

Good for use as background in multi-wallpaper mode. Displays a simple linear gradient.

"Brokenglass" wallpaper

Creates completely random colored polygons with a slight blur effect. It might look a bit rough at times.

"Characterdrift" wallpaper

Works just like particledrift, but uses characters. That includes emojis - Anything the site owner wants. No blur on this one.

Security concerns??

Using the values from the config directly to run functions and access files seems like a bad idea because there is no filtering or purification, but at the end of the day only the site owner can edit the configs and they already have the ability to add whatever they want to the code anyway, so I don't think this is an issue.

Readme

I did not change the readme at all, so merging this would require some changes there.

nandolawson commented 5 days ago

Great work, thank you very much! I'll deal with ESLint's complaining later, otherwise I'll leave the code as it is.