GithubHelp home page GithubHelp logo

felixhayashi / tw5-sessionlock Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 1.35 MB

Provides very basic user session handling for your tiddlywiki

License: BSD 2-Clause "Simplified" License

JavaScript 0.22% CSS 0.01% HTML 99.77%

tw5-sessionlock's Introduction

TW5-SessionLock

Provides a very basic user session mechanism.

Dependencies

  • TiddlyMap and all plugins required by TiddlyMap!
  • TiddlyFox to autosave the wiki
  • The wiki needs to be stored on a network drive or on a filesystem with sufficient access rights (rw).

Demo:

https://felixhayashi.github.io/TW5-SessionLock/

How it works

  • When opening a wiki, users are asked whether to open it in read or write mode. The dialog also displays the information whether the wiki is currently used in write mode and who is editing the wiki at the moment.
    • If the user chooses to open the wiki in write mode, he/she is asked to enter his/her name, which can be also selected from a list of existing names.
      • Non-existent users are newly added to the wiki (tagged "User").
      • The wiki is then immediately (and automatically) saved so anybody opening the wiki is informed that it is in use (a red bar at the top).
      • All tiddlers created are signed with the user name as author
    • In read mode opened
      • all edit/config buttons are removed and the wiki cannot be saved or auto-saved
      • The user has the option to switch into write mode, which will cause the wiki to reload and to display the initial dialog again (see first point)

FAQ

  • Why does this plugin depend to TiddlyMap? Because it requires the utils and the dialog system provided by TiddlyMap.

tw5-sessionlock's People

Contributors

felixhayashi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.