Git Product home page Git Product logo

tiddlywiki-remotestorage's Introduction

Save your tiddlers to remoteStorage!

Works anywhere, just grab the plugin on $:/plugins/fiatjaf/remoteStorage, save, reload, optionally change your preferences on $:/plugins/fiatjaf/remoteStorage/config and you'll be good to go.

Your tiddlers will be saved on /public/tiddlers/<chosen-namespace>/.

  • <chosen-namespace> defaults to "main".

Just start using it now

If you're just starting a new TiddlyWiki you don't have to bother installing anything, just visit https://tiddly.alhur.es/ and start writing. Changes will be saved locally, but you can login anytime to a remoteStorage account and your tiddlers will be saved automatically there.

tiddlywiki-remotestorage's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiddlywiki-remotestorage's Issues

Incorrect namespace

I tried the plugin as it seemed to be the ideal solution for my problem with too many wikis. However when I open a wiki via http, change the namespace and toggle private, the tiddlers get saved to my remoteStorage as expected. But after opening the wiki in a new browser (or clearing cache etc.) and logging in to the same account the tiddlers get not fetched.

I set the namespace and private switch to the same settings and reloaded the page which lead to the values still being there as expected (as they are stored in the browser). But the network console shows only requests to <remoteStorageURL>/tiddlers and not as one would expect to <remoteStorageURL>/tiddlers/<namespace>. So there can be no tiddlers to be fetched as there is no _index_ file at that path.

Loading tiddlers breaks dates

When I save a new tiddler there is a valid JSON object stored to my remote storage. So saving to RS is fine (see below). Also all Tiddlers created during the session are shown just fine in the "Recent" tab.

image3

After a revisit there are no more Tiddlers in the "Recent" tab which is caused by them being not parsed correctly. When I open the "Info" tab for a Tiddler all dates (created, modified) are filled with NaNNaNNaNNaNNaNNaNNaN. When retrieving a tiddler via the console $tw.wiki.getTiddler(title) it returns the tiddler objects with invalid dates. So it seems like there might be an issue loading tiddlers from remoteStorage.

image1
image2

Unable to build the plugin

I wanted to build your plugin and followed all steps in https://tiddlywiki.com/dev/
It does compile but when I use the index.html I got :

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
uncaught exception: Cannot find module named 'remotestoragejs' required by module '$:/plugins/tiddlywiki/remotestorage/syncadaptor.js', resolved to remotestoragejs

It seems that const remostorage = require("remotstoragejs") was not resolved.

Can you tell me how you did it.
I'm using node.js 8.9.4

I'm using your plugin as an example to develop a syncadaptor to node-solid-server.

Make config settings permanent

Thank you for fixing #1, I really love this plugin already.

Since I want to migrate a hugh number of wikis (>40) to remoteStorage I setup a simple HTTP server to serve bare single file wikis with the respective plugins enabled. To setup a new wiki I take the wiki from https://tiddly.alhur.es change the title, subtitle, settings and install some plugins before hitting "Save" and uploading the resulting "dump" to my server.

The problem is that this does not preserve the two tiddlers which set the namespace and the privacy setting. So I have to do this configuration for every wiki on every device which is quite error-prone. I would think that those tiddlers other than saved in Local Storage should be saved too when downloading a single file copy.

I do not see any security flaws if one might see the "path" on my remote storage in the resulting HTML file for this wiki as the login credentials are not stored. Due to the remoteStorage.js library it is quite easy to login with a new device only once and using this permission for all wikis since authorization is determined by host.

So my feature request would be to store $:/plugins/fiatjaf/remoteStorage/private and $:/plugins/fiatjaf/remoteStorage/namespace along with the other tiddlers when hitting "Save".

Blank page on tiddly.alhur.es

Few days ago I went on the site and everything was OK.
Today I only see a blank page 😢

Can we install the plugin by another way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.