Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-26 Thread Jeremy Ruston
Hi Bimlas Apologies for the late response, I’ll respond on the GitHub ticket, Best wishes Jeremy > On 22 Apr 2019, at 15:30, bimlas wrote: > > Jeremy, > > Sorry for the late reply. I've modified the saver to work with GitLab, please > check it out:

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-22 Thread bimlas
Jeremy, Sorry for the late reply. I've modified the saver to work with GitLab, please check it out: https://github.com/Jermolene/TiddlyWiki5/pull/3931 *I would like to ask the others to try out the GitHub/GitLab saver to find out the possible problems as soon as possible.* 2019. április 15.,

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-16 Thread Mohammad
Hi Olegh, Sorry for late reply! I saw you have successfully set up your wiki on! Congrats! --Mohammad On Tuesday, April 16, 2019 at 1:56:47 PM UTC+4:30, oleghbond wrote: > > Jeremy, thanks, > > I've just checked in other browser. Indeed the PAT field is empty. > > So, I prove TW5 GitHub

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-16 Thread Olegh Bondarenko
Jeremy, thanks, I've just checked in other browser. Indeed the PAT field is empty. So, I prove TW5 GitHub Saviour as well https://protw.github.io/tw5ghs/. Olegh Bondarenko https://bit.ly/oleghbond вт, 16 квіт. 2019 о 12:20 Jeremy Ruston пише: > Hi Olegh > > >

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-16 Thread Jeremy Ruston
Hi Olegh > > After the wiki is saved at GitHub it stores PAT in itself. So anyone can > download the whole wiki and similarly take control of the published content. No, the PAT is stored in browser local storage, not in the wiki itself. Best wishes Jeremy. > In opposite if PAT is deleted

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-16 Thread oleghbond
Hi, Mohammad, everything works fine. *BUT* I've encountered a certain security issue which I don't know how to walk around. Namely: - After the wiki is saved at GitHub it stores PAT in itself. So anyone can download the whole wiki and similarly take control of the published

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-15 Thread Jeremy Ruston
> On 10 Apr 2019, at 08:31, Jeremy Ruston wrote: > > It looks like the API for GitLab is almost identical to that of GitHub. I'll > expose the API endpoint as a configuration parameter and then you can > experiment with it more easily. I’ve made an update so that the API URL is configurable

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-15 Thread Jeremy Ruston
Hi Olegh, Mohammad, I think that 404 error might be because the target directory doesn’t exist. I’ve just pushed an update to fix it: https://github.com/Jermolene/TiddlyWiki5/commit/b32a5aa9afcdd6059fe57226385bde0c7655e000 In a few moments the new build will be available at:

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-15 Thread Mohammad
Hi Olegh, Jeremy may have a better answer, but by my best knowledge this is because of wrong credential! Check you have entered the right PAT (create a new personal access token and enabled permissions for gist and repo) --Mohammad On Monday, April 15, 2019 at 10:42:37 PM UTC+4:30, oleghbond

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-15 Thread oleghbond
Hi, Mohammed, sounds attractive because of simplicity, I did precisely what you describe, however, eventually obtained: "Error while saving: XMLHttpRequest error code: 404". What could be wrong? Olegh вівторок, 9 квітня 2019 р. 22:52:53 UTC+3 користувач Mohammad написав: > > More inputs >

[tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-10 Thread bimlas
"Path to target file" in GitHub saver has to be filled to prevent RSOD.. (sorry for short messages, I'm on phone). -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email

[tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-10 Thread bimlas
I think the saver broke Tiddly: cannot download prerelease, it drops RSOD. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-10 Thread ILYA
Hello, This is great!!! If we are able to publish single file to github.com how hard it would be to implement a layout similar to nodejs. Where every tiddler is in its own file. In this case index.html wouldn't be changing and it would be easier to get git history for single tiddler. BR,

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-10 Thread Mohammad
Hi Jeremy 1. The problem was the PAT (personal access token) 2. Overwriting the current index.html is okay (each save overwrite the previous one) 3. I just had to create the folder in advance if the path is not existed! (for examples for /docs/ I had first create the folder)

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-10 Thread Jeremy Ruston
Hi Mohammad Glad you got it working. Was the only problem fixing the access rights for the personal access token? Can you confirm that you were able to save to a new location as well as saving over an existing file? Many thanks, Jeremy -- Jeremy Ruston jer...@jermolene.com

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
Hi Jeremy, I think this feature should be properly announced! This way many GitHub users can use Tiddlywiki for project, organization website and documentation. So there is a huge opportunity to replace the static GitHub pages with dynamic webpages created by Tiddlywiki. --Mohammad On

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
More inputs 1. From https://tiddlywiki.com/prerelease I downloaded an *empty *version 2. I created a new personal access token and enabled

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
Hi Jeremy, More input! I created a new personal access token and enabled all permissions. I also created the /wiki/ folder Now I could save, but not easily as I get sometimes 409, 0, error. I tried to strip out the wiki to have a small one to be able save it quicker. --Mohammad On Tuesday,

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
Thanks Xavier! I followed Jeremy and even I created one as you told, no success! --Mohammad On Tuesday, April 9, 2019 at 8:33:54 PM UTC+4:30, Xavier wrote: > > Hi Mohammad, > > I think you need to create a first version of the file on GitHub before > being able to push subsequent versions from

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
Hi Jeremy, I uses a personal access token, I created one for experimenting this new feature! But it is not clear what kind of permissions TW needs to save on GitHub. I tried different forms. --Mohammad On Tuesday, April 9, 2019 at 9:13:46 PM UTC+4:30, Jeremy Ruston wrote: > > Hi Mohammad > >

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Jeremy Ruston
Hi Mohammad > I think you need to create a first version of the file on GitHub before being > able to push subsequent versions from your wiki. You shouldn’t need to do that, it should work for saving to a brand new path within the repo. The 401 error code means “Unauthorised”, so I think

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Xavier Cazin
Hi Mohammad, I think you need to create a first version of the file on GitHub before being able to push subsequent versions from your wiki. Cheers, -- Xavier Cazin On Tue, Apr 9, 2019 at 1:29 PM Mohammad wrote: > Many thanks Jeremy! > > >1. I opened the

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Xavier Cazin
Hi Jeremy, Wonderful, thank you for the additional tips. Cheers, -- Xavier Cazin On Tue, Apr 9, 2019 at 9:30 AM Jeremy Ruston wrote: > Hi Xavier > > I think this saver will prove immensely useful, thank you! > > > I’m just embarrassed that it took me so long to realise that this was >

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Mohammad
Many thanks Jeremy! 1. I opened the https://tiddlywiki.com/prerelease/#Saving+to+GitHub 2. In control panel GitHub saver filled up required information 3. Click save and I got this error: XMLHttpRequest Error 401 Note: I have downloaded a copy of

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Jeremy Ruston
Hi Xavier > I think this saver will prove immensely useful, thank you! I’m just embarrassed that it took me so long to realise that this was possible, and immense gratitude to 38911BytesFree on GitHub who developed a version for TiddlyWiki Classic 4 years ago:

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-09 Thread Xavier Cazin
Hi Jeremy, I think this saver will prove immensely useful, thank you! Since we'll certainly want to use it to *publish* wikis (with Github Pages), I'd suggest adding a setting *Filter* that allows to save only a subset of the tiddlers. For instance, a value "[!tag[Work In Progress]]" would sync

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-08 Thread Jeremy Ruston
I’ve made a first cut at a saver to save directly to GitHub: https://github.com/Jermolene/TiddlyWiki5/commit/aa5eaa98fcb8658dbc2b93476c2e09c9207439d8 It works similarly to the upload saver that is used

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-08 Thread Mohammad
Many Thanks Jeremy! TW deserves to have that capability Best Mohammad On Monday, April 8, 2019 at 3:14:18 PM UTC+4:30, Jeremy Ruston wrote: > > Hi Mohammad > > Referring to: https://github.com/Jermolene/TiddlyWiki5/issues/3890 > > And the nice https://github.com/38911BytesFree/TiddlyWiki > > >

Re: [tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-08 Thread Jeremy Ruston
Hi Mohammad > Referring to: https://github.com/Jermolene/TiddlyWiki5/issues/3890 > > And the nice https://github.com/38911BytesFree/TiddlyWiki That is very interesting, I'm sorry I missed it when it was first released. More to the point, I missed the existence of the GitHub APIs that it uses

[tw5] Save directly Tiddlywiki 5 file to GitHub

2019-04-04 Thread Mohammad
Referring to: https://github.com/Jermolene/TiddlyWiki5/issues/3890 And the nice https://github.com/38911BytesFree/TiddlyWiki To save Tiddlywiki directly to GitHub Pages, is it possible to 1. Have GitHub Saver plugin? or 2. Update the current classic TW to TW5? --Mohammad -- You