These are chat archives for biojs/biojs

28th
Jun 2018
Megh Thakkar
@Megh-Thakkar
Jun 28 2018 08:35 UTC
Hey @rowlandm I am out of station today due to some personal work. Won't be able to join for the community call. @sarthak-sehgal will brief about the progress about backend as well!
rowlandm
@rowlandm
Jun 28 2018 08:36 UTC
No worries
rowlandm
@rowlandm
Jun 28 2018 09:33 UTC
Call is in two hours. See you then
biojs/organisation#44
Sarthak Sehgal
@sarthak-sehgal
Jun 28 2018 09:34 UTC
@rowlandm is it at 10:3 GMT or 11:30 GMT?
10:30*
According to the link, it is supposed to be at 10:30 - an hour from now.
Megh Thakkar
@Megh-Thakkar
Jun 28 2018 09:56 UTC
Hi @/all updated the database with the dependency URLs as well as visualization scripts. For eg cytoscape ! @sarthak-sehgal good to go!!!
rowlandm
@rowlandm
Jun 28 2018 11:07 UTC
Bugger, it is supposed to be 10.30GMT but my calendar didn't change it!
Can we do it in 23 minutes (11.30 GMT) please?
Sorry about that!
rowlandm
@rowlandm
Jun 28 2018 11:15 UTC
Can we catchup in 15 minutes?
rowlandm
@rowlandm
Jun 28 2018 12:17 UTC
Thanks for that @sarthak-sehgal and @DennisSchwartz - have updated biojs/organisation#44
Sarthak Sehgal
@sarthak-sehgal
Jun 28 2018 14:53 UTC
We have a problem.
Megh is sending me the scripts, stylesheets, etc. but Vue doesn't allow scripts to be rendered/called.
Basically, it is not possible to have a "script" tag inside a Vue component template.
I've been searching through then internet for about 3 hours now and I've tried almost all the possibilities but it just doesn't seem to work.
Yo Yehudi
@yochannah
Jun 28 2018 14:54 UTC
could an iframe help?
Sarthak Sehgal
@sarthak-sehgal
Jun 28 2018 14:56 UTC

Yes, it would.
But then how do we have a dynamic HTML file?

I mean, I could call the API, get the scripts and render them (probably). But how does the HTML file know which component it is?

I'm thinking on those lines only.
Yo Yehudi
@yochannah
Jun 28 2018 14:57 UTC
I'm just throwing ideas out here but maybe we could generate a default template to insert the scripts into and serve that instead, embedded in an iframe?
e.g. in the component page embed a url in an iframe with the right structure - :componentname/demo.html
@rowlandm or @DennisSchwartz might have better ideas
Megh Thakkar
@Megh-Thakkar
Jun 28 2018 15:04 UTC
How about we render the iframe template?
I mean through the backend?
We can pass the variables as well, the same way an MVC model works
Sarthak Sehgal
@sarthak-sehgal
Jun 28 2018 15:04 UTC
We will still be loading the scripts from rawgit, right?
I mean, we won't bloat the server by downloading them, right?
Megh Thakkar
@Megh-Thakkar
Jun 28 2018 15:08 UTC
If we render, we can directly include them from rawgit. Won't be an issue
Megh Thakkar
@Megh-Thakkar
Jun 28 2018 15:14 UTC
Right now also, the iframe is rendered from the workman server. We can do something along those lines as a last resort.
Sarthak Sehgal
@sarthak-sehgal
Jun 28 2018 15:15 UTC
But I think that the problem right now is that the scripts are saved on the server (at least a few of then are, as I mentioned esrlier. I'll just check once again.).