Closed ewingson closed 2 years ago
Great work, @ewingson, here's your first merged PR!
@ewingson great job.
If you keep the Vite dependency you must document the purpose and how to use it.
For the purpose of podProvider the simplest is just use a JavaScript prompt
. Examples must be as simple as possible.
@bourgeoa @jeff-zucker
a) I am afraid the vite
dependency happened by mistake. first, I installed it during the development in a wrong folder, so that npm thought it would be needed. I am new to this.
b) I know what a prompt is, but I'm not sure I understand what you mean. would a javascript input field with a prefilled content (solidweb.me in that case) be sufficient or what do you suppose do do exactly in this example ?
b) is perfect. I was too quick
I am afraid I am not yet ready. I just went to https://jeff-zucker.github.io/solid-file-client/docs/examples/ and the Login gave me an Invalid Request. that must happen because of the local version being (treated) other than the live merged version. I suppose the following:
vite
dependency, case it is not technical necessaryvite
in the right directory (the dir of the app, in this case docs/examples/upload
) [edit] as we have seen now, it must be docs/examples
I went to try the app and it is not working.
copy
and click on login
you are back to the old authorization flow.this comes because docs/examples/
is the index of the app and copy/upload happens in different iframes. so work to be done. but before I fork and clone new, we should solve the dependency question
[edit] maybe we find a solution for the (upload/copy) menu without iframes
@jeff-zucker @bourgeoa (comment on location: I misplaced this edit here https://github.com/jeff-zucker/solid-file-client/pull/218#issuecomment-1026451304 cause my repo doesn't have issues. I'm working through the stuff) could you please review https://github.com/ewingson/solid-file-client/tree/use_dpop_auth/docs/examples/advanced (both files)
several q's opened
session
is used in index.html
L171 and L198. does that matter ? getDefaultSession()
in index.html
L171, L198 and copy.js
L9 ?statements I wanna trace the option buttons / checkboxes / ids / classes. I wanna use existing code wherever possible.
to really work it / control it ... I must understand
it.
what do you think ?
[edit] introduced a main function. things get clearer, slowly...
[edit2] I have created advanced/index.html
and advanced/copy.js
and need to rewrite at least parts of it...
status: upload working copy not working I have made copy verbose and am trying to follow the codeflow
@bourgeoa @jeff-zucker @SharonStrats
I post a screenshot
@bourgeoa @jeff-zucker @SharonStrats
I think I can improve the error-handling still a bit.
the HEAD errors will vanish when served live.
but only thing that worries me, the formular expects correct paths and sometimes there aren't even .acl
or .meta
files so you need to use it in the correct way.
but functionaliy, yeah. gonna clean up. don't know though if I let it verbose, can you gimme a hint ? an average user has no console open.
I was wrong, the .acl errors you get are from solid-file-client you should trap them by putting a try/catch around the copy commands. Leaving the console logs is ok with me.
d2022-01-28 t18:59 @bourgeoa @jeff-zucker
the code is functional. I did adjustments. expect this as my first contribution of actual working code. what still needs to be done is an options menu for the pod provider.