You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
were you able to use images in the web view? According to the docs, I just need to place an image with the same name as the recipe in the directory of the recipe, but nothing is showing.
@juliangaal From my testing, it somewhat works. This is my directory layout; if I understand the docs correctly, the bottom image (without .2) should be displayed as the recipe cover and the other should be displayed somewhere around step 3.
The cover image works fine but the one that's supposed to accompany step 3 does not show up. I assume it's just not implemented in CookCLI yet.
That's all with the local server though. The one on my VPS doesn't show images at all, because it's requesting them from a hardcoded localhost URI instead of a relative path.
hardcoded-uri.mp4
I imagine the fix is simple enough that I could open a PR without knowing Swift at all; I can take a look at it in a bit if @dubadub is alright with that 😄
Yep, that's the simple fix I expected. Just removing http://localhost:9080 and leaving it as / should be enough to fix the issue.
Activity
juliangaal commentedon Oct 27, 2021
Probably due to this, but I don't really understand the Svelte/js enough
Amolith commentedon Oct 28, 2021
Yep, that's the simple fix I expected. Just removing
http://localhost:9080and leaving it as/should be enough to fix the issue.Remove hardcoded localhost in image path #9
dubadub commentedon Oct 28, 2021
Thanks for reporting the fix for the issue 🕵️. I released the updated binaries.