-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Feature Request: Convert boards/lanes to text #2185
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
Comments
What kind of text? Some of these? |
Hi Well any text :) Any way to get the content out of Wekan is fine to me, except .json since it is no use and I cant find a way to make sense of it. For instance I create many cards as my ideas flow and new lanes etc. Then I would like to just take those lanes as separate blocks of text and the cards as indented text under neat so
becomes
|
This is not terribly useful to the OP, who admits he isn't a dev, but I built a page that logs into the API, exports the board and dumps every list, card, and card description, as HTML. It might be useful inspiration for someone... Because of CORS, these files have to be installed on the same domain as the Wekan instance, or CORS would have to be enabled. The example files are here: |
It occurs to me that I could probably make a version that would work for anyone who had CORS turned on, if I added a server URL field. I'll try to do that tonight. |
Wekan has CORS setting. Default is Snap
Dockerhttps://github.com/wekan/wekan/blob/devel/docker-compose.yml#L241 Sourcehttps://github.com/wekan/wekan/blob/devel/start-wekan.sh#L58 SandstormIt's not possible to set CORS at Sandstorm. |
@risacher How do I install it on my server? |
@gerroon I don't know enough about how your server is configured to answer that question. Do you have a way to serve static content besides through Wekan? If so, those three files are moderately self-sufficient. Just having them anywhere on the same server should be sufficient. Depending on the route for your wekan installation, you might need to edit the prefix url in the .html file. @xet7 In trying to make this work over CORS, I think I found an issue that makes CORS unusuable: namely that you can set "Access-control-allow-origin" via the CORS environment variable, but not "Access-control-allow-headers". As I read the CORS spec, I think that for the wekan API to work, server need to specify in the preflight response that as-a-minimum, "Authorization" and "Content-type" are allowed headers in a CORS request. Specifically, when I try to make CORS request from Chrome, I get this error, "Access to fetch at 'https://risacher.org/wekan/users/login' from origin 'https://thunderflite.com' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response." If I can't get this to work, I'll file another issue. I think the fix is possibly a small change to server/cors.js and/or any docker-compose.yml files to add the "Access-Control-Allow-Headers" header. |
Do you mean iframing?
Or alternatively allow all iframing (not recommended):
|
I use Snap for Wekan and I have apache. I will try it |
@xet7 I don't think I mean that. I'm trying to do this from inside browser, on cross-origin domain:
This code works in Chrome for single-domain requests. It does not work cross-domain, (even with setting CORS=*) and browser console gives the error above. From what I understand of the CORS spec (https://www.w3.org/TR/cors/#access-control-allow-headers-response-header) to use the Wekan API, the server will have to allow the "Authorization" header for the bearer token, and the "Content-type" header for application/json. It does this by setting the "Access-Control-Allow-Headers" headers in the Preflight response. "Content-type" is allowed by default in CORS only for application/x-www-form-urlencoded, multipart/form-data, or text/plain. Any other content-type requires that content-type be explicitly allowed by the server header during Preflight. CORS is more complicated than I knew. I thought "Access-Control-Allow-Origin: *" was all that was needed. |
PR #2429 addresses the CORS issue I described by adding CORS_ALLOW_HEADERS and CORS_EXPOSE_HEADERS |
Hi
Is it possible to convert boards or even swimlanes to text? I like that I can jot down ideas very quickly in Wekan but that is the end of it since I can’t make much use of it afterwards 😦
I know you can export json file but that is no use to me since I am not a dev, what am I going to do with a json file? I am looking for some kind of basic structured text so I can use in other places.
thanks
The text was updated successfully, but these errors were encountered: