Would people point me to integrations with 3rd-party JS that are particularly instructive? I think the only one that I use regularly is Mermaid, and I will look at that one soon. What other ones do you find well-written and/or inspriring?
My team at GigantiCorp has a summer intern, who’s been looking at some of the documentation I’ve done in TW. She’s figured her way around pretty well, and has been interested in writing her own plugin.
What she wants to do overlaps a great deal with the recent request in First Post + Help On Lightbox Gallery System in Tiddlywiki?. So maybe she will be helping someone out at the same time she scratches her own itch. We are both assuming that this will involve integrating a third-party lightbox implementation, although there are certainly other approaches.
I haven’t tried to do this. I’ve written my own JS widgets and filter-operators. But I’ve never tried to integrate someone else’s work, to fit a different style of code interface with TW. So I’m looking for examples that would help show the basics of how its done rather than the ones with the most amazing output. But really, any suggestions are welcome.
For whatever reason, she would much rather talk to me than to join the forums – not an attitude that I understand myself, but I am ancient compared to this 21-year old rising junior, so who am I to say?
The good thing with the spotlight repo is, that it contains a dist/ directory, which contains all the elements we need. js, SVGs and the css.
dist/js/spotlight.min.js is a minified version - but seems to be different to the one Saq used.
A second good source IMO will be the new core confetti-plugin, which is available in the TW preview edition atm. It’s usefull but experimental at the moment
Yes, that helps, but Swathi is advanced enough that she could probably find what she needs in any reasonably-written implementation. She’s the most advanced intern I’ve dealt with in the past decade. She is already competent in most of the web technologies, and I would consider her at minimum an intermediate JS user, and close to advanced. (Of course maybe this is because I’m flattered that she attached herself to me when she found out I was the author of the library she used in a course last semester!) She’s teaching me things about React and git I never knew.
I find that surprising. With all the minification tools available, why not minify ourselves? Is there some licensing concern?
Oh, that one is nice. We looked at a few others, including another one using Spotlight, but this is much more flexible than them. Thank you. We will have to look around to see if Spotlight has all the capabilities required or if another library does. (Mostly displaying metadata atop the image, but Swathi has some additional ideas; in the end, we’ll probably want to use a lightbox-like mechanism to display full tiddlers with some template.)
Yes, I’ve been through that a few times, but I’d forgotten to show it to her. I’ll do so.