Giter Club home page Giter Club logo

Comments (4)

fiatjaf avatar fiatjaf commented on June 15, 2024

I don't remember exactly what I did, I just remember having a lot of trouble.

Basically, if you were to build this plugin, you would have to

  1. Clone https://github.com/Jermolene/TiddlyWiki5
  2. Clone tiddlywiki-remotestorage to a folder inside the folder plugins/tiddlywiki
  3. Build it with npm install and npm build
  4. Add the plugin to one of the "editions" definition (or create your own edition)
  5. Run one of the CLI commands to build the TiddlyWiki edition, it's something like ./tiddlywiki.js editions/whatever --build index (tiddlywiki.js is in the root)

That will give you an HTML file that is a full TiddlyWiki instance with your plugin available.

Please let me know if I can help you with anything else. I'm also on #tiddlywiki on Freenode.

from tiddlywiki-remotestorage.

fiatjaf avatar fiatjaf commented on June 15, 2024

Considering the error you're seeing, it's because you didn't build the plugin with npm. But that is out of the scope of TiddlyWiki, it's just the basic thing all JavaScript people do: they use modules from npm as if they were writing Node.js code, then run browserify or something else on them to get a single JavaScript file with all files and dependencies bundled together, then they include that on the HTML.

You don't necessarily need to do that (specially if you're not using any external dependency), but if you want to, take a look at Browserify.

Also, you won't need the remotestorage package.

from tiddlywiki-remotestorage.

bourgeoa avatar bourgeoa commented on June 15, 2024

from tiddlywiki-remotestorage.

fiatjaf avatar fiatjaf commented on June 15, 2024

readonly is just a variable specific to this plugin. I set it at the following lines:

this.readonly = (
'yes' === this.getTiddlerText('$:/plugins/fiatjaf/remoteStorage/readonly')
)
. It's relevant just because you could be browsing a remoteStorage instance that is not yours, thus it will be readonly.

getClient is also just a helper function for building the RemoteStorage client. Again, shouldn't be relevant to your implementation.

from tiddlywiki-remotestorage.

Related Issues (6)

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.