Closed herofmm closed 2 years ago
Hi @herofmm
I'm very happy that you have used it in chemistry! I used to study chemistry in a past life :D
Adding that feature shouldn't be too hard. It will likely require adding an headerImage:
field into spec.yml
, followed by adding a "headerImage": { "filename": "file.png", "data": "base64str" }
field onto the JSON that base64-encodes the image somehow.
However, I can't commit to doing it right away. I'm currently juggling several large projects and don't really have time to focus on Jobson so often. I'll try and hammer it out one evening/weekend but, again, I can't say "yep, it will be done by next week" because many work/life commitments pop up recently.
If anyone else reading this wants to give it a whirl, then be my guest. Implementation steps will be:
headerImage
field into the spec.yml
headerImage
path server-sideerror
field client side?spec
UI, have it ask whether the response contains a headerImage
field. If it does, have the UI unpack the base64 into an Image
and place the image in the webpage DOM so that it's visible. Maybe apply some basic CSS to ensure the image is percentage scaled on smaller devices (e.g. mobiles)Dear @adamkewley
First, thank you for the great project! I'm one of the people who developing the website for chemical kinetics calculation.
As @herofmm mentioned earlier, I'm trying to put an image on the job submission page in the way you said.
I added headerImage:
into spec.yml
and put "headerImage": { "filename": "file.png", "data": "base64str" }
in share/java/jobson-swagger.json
file. However, it didn't work.
So, I wonder if jobson-swagger.json
is JSON.
If right, where I have to put "headerImage":
?
Thanks a lot.
The headerImage
field is not yet implemented in jobson
, so this will
not work yet. I need to spend some time--which I don't currently have very
much of--to implement the feature for you!
Adam
On Thu, 9 Sept 2021 at 12:25, tartics @.***> wrote:
Dear @adamkewley https://github.com/adamkewley
First, thank you for the great project! I'm one of the people who developing a website for chemical kinetics calculation.
I'm trying to put the image on the job summation page in the way you said it. I added headerImage: into spec.yml and put "headerImage": { "filename": "file.png", "data": "base64str" } in share/java/jobson-swagger.json file. However, it didn't work.
So, I wonder if jobson-swagger.json is JSON. If right, where I have to put "headerImage":?
Thanks a lot.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adamkewley/jobson/issues/83#issuecomment-915961126, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEC5SULNNSSRGFVEUFF2I3UBCDQRANCNFSM5DRSOTOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Closed because, although it's a great feature idea, there is no active development time to implement this (I'm working on several other projects)
Dear Adam,
First, thank you for making this wonderful project and share it freely. We are currently developing a website using this tool, and I would like to request a feature addition as follow.
Would it be possible to show an image on the job submission page. Currently, we can add texts. But, it will be always better to show a diagram or an image for the target problem.
Thank you. Donghyuk Shin
p.s. below is our deployed website for chemical kinetics calculation. https://flame.kaist.ac.kr