suchmememanyskill / themezer-nx

A switch theme downloader that pulls from https://themezer.net/
GNU General Public License v3.0
89 stars 7 forks source link

layout listing missing #10

Closed ITotalJustice closed 11 months ago

ITotalJustice commented 11 months ago

on the website, there's a way to list layouts only, here is a get request to do that: https://api.themezer.net/?query=query($page:Int,$limit:Int,$sort:String,$order:String,$query:String){layoutList(page:$page,limit:$limit,sort:$sort,order:$order,query:$query){id,uuid,creator{id,display_name},details{name,description,color},target,last_updated,dl_count,like_count}}&variables={"page":1,"limit":10,"sort":"updated","order":"desc","query":null}

to request an image of the layout, you have to use the uuid: https://api.themezer.net/cdn/layouts/uuid-here/overlay.png

actual example: https://api.themezer.net/cdn/layouts/a0af39c7-676b-4cd1-a0c9-20f16cc4e7cd/overlay.png

suchmememanyskill commented 11 months ago

Why would it be useful to list layouts?

ITotalJustice commented 11 months ago

well i thought it was basically a plain theme, just the layout changed. I realise now its actually a template for other themes 🤣