Replies: 10 comments 3 replies
-
+1 for user log in. Then u could use whatever viewer you want and sync annotations to logseq. Maybe without a pop but just a setting in the pluging setting for password and user? @duydl is this hard to implement? i will have a look later but i´m new to coding ... :( |
Beta Was this translation helpful? Give feedback.
-
Implemented in newest version. Please try it and give feedback in this issue. |
Beta Was this translation helpful? Give feedback.
-
Thanks for adding the functionality, it doesn't seem to be working for me however. Restarted Logseq inbetween each test:
#3 in console log I can see this error "Failed to load resource: the server responded with a status of 401 (Unauthorized)". Not sure why this is the case, I can use the exact same username + password to access the content server through a web browser. |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for the feedback. I am indeed having problem making the viewer working with login. However, could you confirm if:
|
Beta Was this translation helpful? Give feedback.
-
Yes, that works even with However it's not creating a separate page for the book, instead it adds the book as a new block. I'm not sure if this is a bug or new expected behaviour:
This works too. By the way the "Search Calibre library" side pane that opens when you try to add a Calibre book is incompatible with AwesomeUI. I've got Tabs installed also but that seems to be compatible. Have had to disable it when trying to test the new version of this plugin, where before your plugin used a floating pane so it wasn't an issue: |
Beta Was this translation helpful? Give feedback.
-
This has always been an optional setting. Disable it by unchecking the box:
Actually it is because a combination of both Tab and AwesomeUI. If you could type in the search bar and only the close button is overlapped, you could still exit with Escape button. A possible fix is to add some custom CSS like this |
Beta Was this translation helpful? Give feedback.
-
I tried implementing your plugin to log into the calibre web server using a username and pw. Problem is to hand over pw and user name via the iframe. I tried several stuff. I was even able to log in. But couldnt refresh the iframe page so i was stuck in a loading bar. Right now i suggestion is to use the web ebook reader of calibre web and not the iframe. You could just disable the iframe and people can use the browser windows to read and make annotations. you would have to let logseq as the master application handle the log in stuff via a security token and handle this to the iframe. that was when i gave up, tho calibre web server docu is sh****. the problem is with the iframe, that with every query to the server u have to pass the username and pw. That is not possible. i think a iframe does not support this. so if u just hand it 1 time then you will be stuck in a loading bar because it tries to load the reader. But it will decline the query for the content. Easiest way to have a username is to just disable the iframe and use a webbrwoser, log into calibre and use the annotations there. sync still works. |
Beta Was this translation helpful? Give feedback.
-
@CobriMediaJulien Thank you for the suggestion and trying. I think Calibre Server is simple Digest Authen though the problem was with iframe and CORS and stuff.
I have just implemented this in the newest version to allow opening viewer and annotation in browser. It opens multiple new tab though so not that convenient: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Is this issue with iframe and CORS etc due to a limitation with Logseq or with Calibre? I think a bug report should be posted for the relevant one as I'd like to use the viewer within Logseq rather than a separate browser window. |
Beta Was this translation helpful? Give feedback.
-
Currently without user login support I don't know how you can see highlights created in either desktop or Logseq simultaneously.
In Calibre > View > Browse annotations I can see all annotations and what user owns them (
Anonymous Content server user
for those made in Logseq, andLocal E-book viewer user
/localuser
for those made in desktop Calibre).When I open the book in Logseq I see the former annotations, when I open the book in Logseq the latter annotations. Having user login support would made it so that I can use
localuser
to store/view/edit all annotations on either app.Beta Was this translation helpful? Give feedback.
All reactions