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

Is this broken now? #83

Open
sujeetpillai opened this issue Jan 6, 2024 · 18 comments
Open

Is this broken now? #83

sujeetpillai opened this issue Jan 6, 2024 · 18 comments

Comments

@sujeetpillai
Copy link

I'm unable to use it to download.

First I got the "Not logged in error" when downloading a section. Since it was looking for my email address in the HTML, the email address is not present as is on that page html anymore. It's in a modal dialogue.

When I bypassed that, I got an error where "component.snippets" was null. The data-page attribute has a javascript object there doesn't have those fields anymore. In fact the iframes for each component now has srcdoc.

@tecio-first
Copy link

Interesting what exactly is not working ? I used this repo for the first time yesterday and it works locally and as a download action.

@muesli-dev
Copy link

ref: #84
@sujeetpillai

@toshsan
Copy link

toshsan commented May 22, 2024

Not logged in error after logging in.

[email protected] start
node index.mjs

🔐 Logging into tailwindui.com...
🔍 Fetching https://tailwindui.com/login
⏱ 235ms (200)
✅ Success!

🗂 Output is ./output
🔍 Fetching https://tailwindui.com/components
⏱ 182ms (200)
⏳ Processing /components/marketing/sections/heroes...
🔍 Fetching https://tailwindui.com/components/marketing/sections/heroes
⏱ 178ms (200)
🚫 Not logged in

@kiliman
Copy link
Owner

kiliman commented May 22, 2024

I haven't checked recently. Let me see.

@kiliman
Copy link
Owner

kiliman commented May 22, 2024

Ok, I tried it locally
image

And here's my GitHub Action which runs daily
image

@toshsan
Copy link

toshsan commented May 22, 2024

Hmm. I have tried again on my repo. Same error as i reported above. Could you please share your commit hash to make sure we are on the same codebase?

@kiliman
Copy link
Owner

kiliman commented May 22, 2024

It's the latest master d3cc6ee

Do you have the all-access subscription? That's what I have. I wonder if that's the difference.

@muesli-dev
Copy link

Hmm. I have tried again on my repo. Same error as i reported above. Could you please share your commit hash to make sure we are on the same codebase?

Maybe this works for you also #84

@abdussamadbello
Copy link

@kiliman The issue I noticed are that tailwind is now blocking non-origin access from its CDN (https://tailwindui.com/build/assets/). So we need to download the sources from the headers and iframe and serve them locally.

@kiliman
Copy link
Owner

kiliman commented Jun 6, 2024

Yes, I noticed that too. I have a version running locally that I'm still testing. I'll try to get a preview version that you can try out by tomorrow.

@abdussamadbello
Copy link

Thanks @kiliman ... Youre awesome!

@abdussamadbello
Copy link

Yes, I noticed that too. I have a version running locally that I'm still testing. I'll try to get a preview version that you can try out by tomorrow.

Eagerly waiting for updates

@VIEWVIEWVIEW
Copy link

Yes, I noticed that too. I have a version running locally that I'm still testing. I'll try to get a preview version that you can try out by tomorrow.

Would be great if you could release the preview version. I copied almost all components by hand in the meantime to have them available when I'm on a plane. However, they updated many, many components to headlessui 2.1, and I definitely don't want to copy all of them by hand again xD

@jlarmstrongiv
Copy link

jlarmstrongiv commented Oct 3, 2024

Ahh, I was trying to use this package with the new components Adam talked about in the TailwindUI newsletter today.

Does anyone have any patches, workarounds, branches, or forks?

@kiliman
Copy link
Owner

kiliman commented Oct 4, 2024

@jlarmstrongiv Are you asking about the preview mode? Or are you unable to download the components at all?

@jlarmstrongiv
Copy link

The latest release 4.1.1 is now downloading components and templates 🎉 that wasn’t working for me yesterday

@kiliman
Copy link
Owner

kiliman commented Oct 4, 2024

Yeah, they changed the URLS to include the full domain, which broke how the files were stored.

As for the preview, they also changed how it works now. When you change language in the dropdown, it sends a PUT request to their website and then returns a JSON payload with the data. Perhaps they're trying to crack down on crawlers.

I'm still looking at options to support local previews.

@jlarmstrongiv
Copy link

jlarmstrongiv commented Oct 4, 2024

One thing I also noticed is that the file names may have unexpectedly appended https/

image

Anyway, thanks again for the update @kiliman 😄 I really appreciate it

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

No branches or pull requests

8 participants