Re: [twdev] Re: How to use Node modules in browser?

2019-07-11 Thread Brian Theado
Bimlas, If the npm modules you want are compatible with the browser, then you can bundle them into a tiddler and load them directly in the browser. It can be tricky to get it working. I've had the most success using browserify --standalone to get it bundled in a way that it will work with TW's

Re: [twdev] TW5 port of github.com/json-editor/json-editor

2019-03-17 Thread Brian Theado
to > read through the guts of JSONEditor's core.js file and also the > "./editors/*" functions to see if we can get it to spawn native TW input > widgets (which will automatically handle writing the data to the target for > you with the TW input mechanism), and disable J

Re: [twdev] Re: ANN: widget tutorial

2019-02-22 Thread Brian Theado
More progress. I wrote the child widget tutorial with lots of parse tree and widget tree examples. See https://btheado.github.io/tw-widget-tutorial/#Child%20widgets%20tutorial. Best viewed with a wider screen and with the sidebar hidden. On Sun, Feb 17, 2019 at 9:21 AM Brian Theado wrote: >

Re: [twdev] Re: ANN: widget tutorial

2019-02-17 Thread Brian Theado
On Sun, Feb 17, 2019 at 10:25 AM stefano franchi wrote: [...] > In particular, there is an issue I have not been able to solve yet, and I > hope you may help---where do I look to find examples of a callback function > that would allow the calling code to tell the external library to save its >

Re: [twdev] Re: ANN: widget tutorial

2019-02-17 Thread Brian Theado
pic being orthogonal to writing widget code. Brian On Sun, Feb 3, 2019 at 11:14 PM stefano franchi wrote: > Brian, > > great work and greatly needed. Can't wait to read the 3rd party library > tutorial! > > Cheers, > Stefano > > On Sun, Feb 3, 2019 at 9:35 PM Br

Re: [twdev] Re: External js library for a widget plugin on node-->where should it go?

2019-02-07 Thread Brian Theado
Stefano, On Wed, Feb 6, 2019 at 2:54 PM stefano franchi wrote: > thanks for the tip. I hadn't added a title and module-type to the library > (in fact, I would rather not touch it, if possible), but doing so does not > change the outcome. I still get a module not found error. > To avoid

Re: [twdev] More problems with dev environment on node...

2019-02-04 Thread Brian Theado
These steps work for me. If they work for you, maybe it can help you track down your issue: 1. mkdir simple-tw-npm-test 2. cd simple-tw-npm-test # Ignore warnings here about missing package.json 3. npm install tiddlywiki 4. $(npm bin)/tiddlywiki wiki --init server 5. $(npm bin)/tiddlywiki wiki

Re: [twdev] Plugin development environment under Node and Github with external js library---some guidance appreciated

2019-02-04 Thread Brian Theado
Stefano, I have a plugin at https://github.com/btheado/tw-ftlist which uses a structure I prefer. This one doesn't have any javascript code, but a javascript plugin can be structured like this as well (just that more will be needed). TW listed as a dev-dependency in package.json and installed

Re: [twdev] Re: ANN: widget tutorial

2019-02-04 Thread Brian Theado
lene.com > > On 4 Feb 2019, at 04:14, stefano franchi > wrote: > > Brian, > > great work and greatly needed. Can't wait to read the 3rd party library > tutorial! > > Cheers, > Stefano > > On Sun, Feb 3, 2019 at 9:35 PM Brian Theado > wrote: > >> T

[twdev] Re: ANN: widget tutorial

2019-02-03 Thread Brian Theado
et refresh tutorial part III Widget attributes tutorial part I With these still left to write: Widget attributes tutorial part II 3rd party library tutorial part I 3rd party library tutorial part II Child widgets tutorial Brian On Sun, Feb 3, 2019 at 8:14 AM Brian Theado wrote: > I have a wor

[twdev] ANN: widget tutorial

2019-02-03 Thread Brian Theado
I have a work in progress tutorial for writing TW widgets at https://btheado.github.io/tw-widget-tutorial/. It starts with the simplest widget I could think of and builds from there. I will be adding more over the coming days and weeks. It uses the innerwiki plugin to provide an interactive

Re: [twdev] Announcing the "innerwiki" plugin

2019-01-27 Thread Brian Theado
Oops, I just forgot the dollar sign. Looks like you also forgot the dollar sign in your email. It should be: <$data $filter="[!is[system]]"/> That seems to work for me. On Sun, Jan 27, 2019 at 7:38 PM Brian Theado wrote: [...] > <$data filter="[!is[system

Re: [twdev] Announcing the "innerwiki" plugin

2019-01-27 Thread Brian Theado
his to work: > > <$innerwiki width="1200" height="400" style="width:100%;" > filename="screenshot-1"> > <$data filter="[all[tiddlers]]"/> > > > So on my wiki, I would inject all of my tiddlers into the innerwiki > >

Re: [twdev] Announcing the "innerwiki" plugin

2019-01-27 Thread Brian Theado
Diego, On Sun, Jan 27, 2019 at 6:23 PM Diego Mesa wrote: > Conceptually, I could see this as a "sandbox" mechanism where I could > inject all of my tiddlers into the innerwiki and then try risky > plugins/modifications/etc. How can we inject the outer wiki user contents > into the inner wiki? >

Re: [twdev] What are 5 most important widgets to learn?

2019-01-06 Thread Brian Theado
Yes, sure. I knew the answer. I saw Joe write such an "exercise for the reader" question on his blog and thought he might appreciate the same :-). On Sun, Jan 6, 2019 at 6:17 AM TonyM wrote: > Brian, > > You will loose focus, if you are editing the content, that includes the > edit widget. Each

Re: [twdev] What are 5 most important widgets to learn?

2019-01-05 Thread Brian Theado
Jeremy, On Sun, Dec 23, 2018 at 8:05 AM Jeremy Ruston wrote: [...] > There’s also a bundle of widgets that I consider to be hacks that have > hung over from the very early days of TW5. At the beginning we didn’t have > flexible enough primitives to model some behaviour (like the story river), >

Re: [twdev] What are 5 most important widgets to learn?

2019-01-05 Thread Brian Theado
Joe, On Fri, Jan 4, 2019 at 4:50 PM joearms wrote: > From this point of view, I could repeat my question only with time asking > "which widgets best illustrate the dynamic nature of the TW? > All TW widgets demonstrate the dynamic nature. There are several others which demonstrate it in a