[TW5] Possible to save encrypted to tiddlyspot/own server and un-encrypted to disk?

瀏覽次數:117 次
跳到第一則未讀訊息

HC Haase

未讀,
2016年10月13日 凌晨3:39:032016/10/13
收件者:TiddlyWiki
Hello

Could it be possible to encrypt the wiki that is uploaded to tiddlyspot/own server via the save mechanism (and store.php script) in the control panel, and save a un-encrypted version on local disk?

My usecase is:
I want to protect my info floating around on the web, but I want easy access to my local file if/when something blows up and don't work (recently had a tw file that would not show anything).

PMario

未讀,
2016年10月13日 上午8:08:142016/10/13
收件者:TiddlyWiki
Hi,

You could create a new button, that opens a modal dialog. .. In the dialog you can call the TW password / encryption UI and the "save to tiddlyspot" UI. So you don't forget to encrypt first if you save back to TSpot. If you download to disk, just decrypt and save a plain file.

just some thoughts.

-mario

HC Haase

未讀,
2016年10月13日 上午9:16:472016/10/13
收件者:TiddlyWiki
Thansk

While this is not a "one button do it all", it is quite an elegant workaround.

However, for some reason the text in the transcluded tiddler disappear in the modal dialogue. Any idea why??



!Remember to set a password before saving {{$:/core/ui/Buttons/encryption}}

---

{{$:/core/ui/ControlPanel/Saving}}

 

Tobias Beer

未讀,
2016年10月13日 下午4:54:272016/10/13
收件者:TiddlyWiki
Hi HC Haase,

However, for some reason the text in the transcluded tiddler disappear in the modal dialogue. Any idea why??

Apparently, global macros are not available in the context of modals (?!?).
I would think this is a bug / defect / oversight.

You can realize that if you
put <<dumpvariables>> into $:/core/ui/ControlPanel/Saving
and then open that as a tiddler and then in a modal.

I would think the message tm-modal
needs / lacks support for global macros.

Best wishes,

Tobias.

Riz

未讀,
2016年10月13日 晚上11:01:312016/10/13
收件者:TiddlyWiki
I had better luck with

<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">


!Remember to set a password before saving {{$:/core/ui/Buttons/encryption}}

---

{{$:/core/ui/ControlPanel/Saving}}
</$importvariables>

The encryption button icon was still missing. I assume that is coz it involves another level of transclusion. If you are adamant about getting that icon, may be you can clone the button and modify.

Tobias Beer

未讀,
2016年10月14日 凌晨2:52:002016/10/14
收件者:TiddlyWiki
Hi Riz,
 
I had better luck with

<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">

Didn't test, but I presume it works.
Still not sure on the rationale as to why
global macros would not apply to modals.

Best wishes,

Tobias.

PMario

未讀,
2016年10月14日 清晨5:20:282016/10/14
收件者:TiddlyWiki
I did some tests yesterday. Also no clue whats going on,

So one workaround may be to open a tiddler instead of a dialog :/

-m

HC Haase

未讀,
2016年10月17日 凌晨3:49:182016/10/17
收件者:TiddlyWiki
I came a step closer.

In the saving tiddler there is a lot of (what's it called) code like this

<<lingo TiddlySpot/UserName>>

instead of text like  User name.

I Changed these to normal text and now it show in the modal mode nicely.

However The icon buttons is still not showing.
回覆所有人
回覆作者
轉寄
0 則新訊息