[twdev] What does bag actuall means

2019-05-02 Thread LinOnetwo
tiddlyweb use bag for the location path it stores a tiddler.
https://github.com/Jermolene/TiddlyWiki5/blob/c05c0d3df66e587f35c5cd3eedcac432b1eed012/plugins/tiddlywiki/tiddlyweb/tiddlywebadaptor.js#L229

What does it actually means?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ca70c2b6-0a8b-4e96-8348-044cd5024fca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Meaning of 5 , 1 , 19 ?

2019-05-02 Thread Mat
Additional examples for improving css hackability in TW:


   - Page template based on css grid (Great intro vid 
    for anyone curious).
   - ...and tiddlers too (...when subgrids 
    come... or maybe 
   the way TW coded it's not necessary with subgrids i.e already possible?)

<:-)


>- The main obstacle for manipulating the styling is by far the current 
>stylesheets *monolithic* nature. These should be split up even though 
>I can't say exactly how. In complement to splitting them, they could 
>afterwards be grouped into cascade order, perhaps by means of tags or... 
>(next bullet)
>- Slugification  of 
>tiddler titles would enable more direct manipulation of CSS in wikitext, 
>using e.g tiddler titles as class names and even appended as selectors.
>- Cascade order deserves 
> an explicit 
>D'nD listing somewhere under Ctrlpanel > Appearance 
>- To create a SS tiddler, it ought to be enough to add a 
>$:/tags/Stylesheet tag, i.e auto-detect type.
>- Local styleblocks are easily "lost". If there was a way to 
>automatically "collect" (transclude?) them, it would be relatively easy to 
>create custom complex stylesheets or themes gradually.
>
>
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/493103ff-8aa0-4564-917d-ddfe1e99db3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [twdev] Re: What is that browser-messaging in the console?

2019-05-02 Thread Jeremy Ruston
Hi LinOneTwo, BJ,

As BJ says, these are debug messages from the browser-messaging module in the 
core (the browser-messaging module is used in the implementation of the plugin 
library). I’ve commented them out:

https://github.com/Jermolene/TiddlyWiki5/commit/091864ddaf17509191b269d316b917852da9c0df
 


Best wishes

Jeremy

> On 2 May 2019, at 18:59, BJ  wrote:
> 
> $:/core/modules/browser-messaging.js -its a startup module (module-type: 
> startup )you could try and change the module type (or delete it)
> 
> 
> On Thursday, May 2, 2019 at 3:32:00 PM UTC+2, LinOnetwo wrote:
> Hi,
> 
> I'm running 
> 
> tiddlywiki demo-wiki --listen host=localhost
> 
> Maybe it's from some filesystem syncadaptor?
> 
> I'm overwhelmed by the message generated, my own debug console.log are washed 
> away by those logs...
> 
> 
> 在 2019年5月2日星期四 UTC+8下午5:54:14,PMario写道:
> Hi, 
> 
> There is no browser-messaging.js module in the TW core.  Which system do 
> you use?
> 
> -m
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywikidev+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywikidev@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/07048501-8115-4858-9e55-406b71735702%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/F176B29F-3F84-4DEB-8DD2-6750EACD9B05%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: What is that browser-messaging in the console?

2019-05-02 Thread BJ
$:/core/modules/browser-messaging.js -its a startup module (module-type: 
startup )you could try and change the module type (or delete it)


On Thursday, May 2, 2019 at 3:32:00 PM UTC+2, LinOnetwo wrote:
>
> Hi,
>
> I'm running 
>
> tiddlywiki demo-wiki --listen host=localhost
>
> Maybe it's from some filesystem syncadaptor?
>
> I'm overwhelmed by the message generated, my own debug console.log are 
> washed away by those logs...
>
>
> 在 2019年5月2日星期四 UTC+8下午5:54:14,PMario写道:
>>
>> Hi, 
>>
>> There is no browser-messaging.js module in the TW core.  Which system 
>> do you use?
>>
>> -m
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/07048501-8115-4858-9e55-406b71735702%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: What is that browser-messaging in the console?

2019-05-02 Thread LinOnetwo
Hi,

I'm running 

tiddlywiki demo-wiki --listen host=localhost

Maybe it's from some filesystem syncadaptor?

I'm overwhelmed by the message generated, my own debug console.log are 
washed away by those logs...


在 2019年5月2日星期四 UTC+8下午5:54:14,PMario写道:
>
> Hi, 
>
> There is no browser-messaging.js module in the TW core.  Which system 
> do you use?
>
> -m
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/3674efbe-e577-430c-987d-690c6a4ca37d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Will state likes tab-1749438307 change in the future?

2019-05-02 Thread @TiddlyTweeter
Very interesting issue.

I'm not so tech but noticed the "hash" address *is* pretty reliably 
consistent in many cases. 

I like I can let the system work it out and do the state name for me. 

IF I need exact human readable state addresses then mostly it seems it can 
be asserted?

Just a footnote
Josiah

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/76b1659a-3b04-41a1-b47d-e556cfa64bf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: How to deal with window is not defined

2019-05-02 Thread BJ
maybe you can put the condition around all the code:

if ($tw && $tw.browser){
function .

etc


exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor
}


On Wednesday, May 1, 2019 at 6:36:07 PM UTC+2, LinOnetwo wrote:
>
> if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor
>
> But when starting tiddlywiki from command line, it still throws 
>
> ReferenceError: window is not defined
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/4dbc924a-6c1f-4a4f-9f51-384fd14b1ed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: What is that browser-messaging in the console?

2019-05-02 Thread PMario
Hi, 

There is no browser-messaging.js module in the TW core.  Which system 
do you use?

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b4a37100-da96-491a-a54d-8df90f4adcc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Will state likes tab-1749438307 change in the future?

2019-05-02 Thread Simon Huber
Hello @LinOneTwo,

in the tiddlywiki core these state titles are generated by the <> 
macro or <$qualify/> widget. they use a mechanism that creates a hash 
string based on the "transclusion variables" found through walking up the 
widget tree (which is something like an analogue to the html tree, but 
built starting with the rootwidget "at the top" [see 
$:/core/modules/rootwidget.js])

such a state title will not always reliably be the same

there's a discussion over at the github repo 
 where I've posted 
some hacks that allow remodelling of the state at any position in the DOM, 
but it's a bit complicated

best wishes,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/464658da-464f-472d-8b34-43c161e24c63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] How to support multiple languages in my plugin?

2019-05-02 Thread LinOnetwo
How can 
\define lingo-base() $:/language/ControlPanel/Saving/SoLiD/Config
automatically change based on current language selected by user?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e73ec75f-c3dd-4825-a2cf-b012ee2264a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: How to deal with window is not defined

2019-05-02 Thread LinOnetwo
I finally use this webpack config:

const path = require('path');
require('dotenv').config();

module.exports = {
  devtool: process.env.NODE_ENV === 'development' ? 'inline-source-map' : 
false,
  entry: './src/index.js',
  output: {
filename: 'SyncAdaptor.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'commonjs',
  },
  module: {
rules: [
  {
test: /\.js$/,
exclude: /node_modules/,
use: {
  loader: 'babel-loader',
},
  },
],
  },
  optimization: {
minimize: process.env.NODE_ENV !== 'development',
  },
  externals: [],
};
在此输入代码...


And use a index.js to guard if it's browser:

// prevent execution on server side, or there will be ReferenceError: 
window is not defined raised from solid-auth-client
if (typeof window !== 'undefined') {
  require('./SyncAdaptor');
}

Then it's fine to import browser only npm packages.



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/01e4852d-a2ec-40e1-8acb-194f268074ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] What is that browser-messaging in the console?

2019-05-02 Thread LinOnetwo
It's quite much

browser-messaging:  http://127.0.0.1:8080/ 
$:/core/modules/browser-messaging.js:148:3
browser-messaging: Received message from https://solid.community 
$:/core/modules/browser-messaging.js:149:3
browser-messaging: Message content 
Object { "solid-auth-client": {…} }
$:/core/modules/browser-messaging.js:150:3
browser-messaging:  http://127.0.0.1:8080/ 
$:/core/modules/browser-messaging.js:148:3
browser-messaging: Received message from https://solid.community 
$:/core/modules/browser-messaging.js:149:3
browser-messaging: Message content 
Object { "solid-auth-client": {…} }
$:/core/modules/browser-messaging.js:150:3
browser-messaging:  http://127.0.0.1:8080/ 
$:/core/modules/browser-messaging.js:148:3
browser-messaging: Received message from https://solid.community 
$:/core/modules/browser-messaging.js:149:3
browser-messaging: Message content 
Object { "solid-auth-client": {…} }
$:/core/modules/browser-messaging.js:150:3
browser-messaging:  http://127.0.0.1:8080/

Can it be turn off in the tiddlywiki cli?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/792388e4-6714-4d49-92c5-587f9193a39c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.