1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 10:37:20 +00:00
Commit Graph

164 Commits

Author SHA1 Message Date
snlhnk
c05c0d3df6 Module-ize server routes, add static file support and other enhancements(#2679)
* Module-ize server routes and add static file support (#2510)

* Refactor server routes to modules

New module type: serverroute

Caveats: Loading order is not deterministic but this would only matter
if two route modules attempted to use the same path regexp (that would
be silly).

* Add static assets plugin

This plugin allows the node server to fetch static assets in the /assets
directory. I felt that this was a feature that goes above the core
functionality. That is why I added it as a plugin. with the modular
route extensions this was a breeze.

* Add serverroute description to ModuleTypes

* Coding standards tweaks

* Fix filename typo

* Move support for attachments from a plugin into the core

* Missing "else"

* Refactor server handling

* Introduce a new named parameter scheme for commands
* Move the SimpleServer class into it's own module
* Deprecate the --server command because of the unwieldy syntax
* Add a new --listen command using the new syntax

For example:

tiddlywiki mywiki --listen host:0.0.0.0 port:8090

* Add check for unknown parameters

* Add support for multiple basic authentication credentials in a CSV file

Beware: Passwords are stored in plain text. If that's a problem, use an authenticating proxy and the trusted header authentication approach.

* Refactor module locations

* Rename "serverroute" module type to "route"

* Remove support for verifying optional named command parameters

The idea was to be able to flag unknown parameter names, but requiring a command to pre-specify all the parameter names makes it harder for (say) the listen command to be extensible so that plugins can add new optional parameters that they handle. (This is particularly in the context of work in progress to encapsulate authenticators into their own modules).

* Refactor the two authenticators into separate modules and add support for authorization

* Correct mistaken path.join vs. path.resolve

See https://stackoverflow.com/a/39836259

* Docs for the named command parameters

I'd be grateful if anyone with sufficient Windows experience could confirm that the note about double quotes in "NamedCommandParameters" is correct.

* Be consistent about lower case parameter names

* Do the right thing when we have a username but no password

With a username parameter but no password parameter we'll attribute edits to that username, but not require authentication.

* Remove obsolete code

* Add support for requiring authentication without restricting the username

* Refactor authorization checks

* Return read_only status in /status response

* Fix two code typos

* Add basic support for detecting readonly status and avoiding write errors

We now have syncadaptors returning  readonly status and avoid attempting to write to the server if it's going to fail

* Add readonly-styles

We hide editing-related buttons in read only mode

I've made this part of the tiddlyweb plugin but I think a case could be made for putting it into the core.

* Add custom request header as CSRF mitigation

By default we require the header X-Requested-With to be set to TiddlyWiki. Can be overriden by setting csrfdisable to "yes"

See https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Protecting_REST_Services:_Use_of_Custom_Request_Headers

* Add support for HTTPS

* First pass at a route for serving rendered tiddlers

cc @Drakor

* Tweaks to the single tiddler static view

Adding a simple sidebar

* Switch to "dash" separated parameter names

* Typo

* Docs: Update ServerCommand and ListenCommand

* First pass at docs for the new web server stuff

Writing the docs is turning out to be quite an undertaking, much harder than writing the code!

* Get rid of extraneous paragraphs in static renderings

* Rejig anonymous user handling

Now we can support wikis that are read-only for anonymous access, but allow a user to login for read/write access.

* More docs

Slowly getting there...

* Static tiddler rendering: Fix HTML content in page title

* Docs updates

* Fix server command parameter names

Missed off 30ce7ea

* Docs: Missing quotes

* Avoid inadvertent dependency on Node.js > v9.6.0

The listenOptions parameter of the plain HTTP version of CreateServer was only introduced in v9.6.0

cc @Drakor @pmario

* Typo
2018-07-18 16:54:43 +01:00
Jermolene
1280984e78 Docs: cleanup file locations 2018-03-29 12:51:08 +01:00
Rizwan
a62e7d218c Create TW5-SingleExecutable_by_Jed_Carty.tid (#3181) 2018-03-20 19:21:31 +00:00
Rizwan
cb28065d8e Docs: Community- Adding Widdly by Opennota (#3160) 2018-03-10 14:52:52 +00:00
Jermolene
e27497d43d tw.com: Add some links 2017-12-19 17:18:28 +00:00
Jermolene
4d2d202935 Add link to Uwe Stuehler's plugins 2017-12-12 10:50:15 +00:00
Jermolene
c507d4e2dd Use https for YouTube 2017-11-18 19:53:52 +00:00
Mario Pietsch
525e07f259 added new "file-backups" AddOn resource, Added video HowTo's link to WebDav saver info. (#3014) 2017-11-16 16:29:31 +00:00
Jermolene
5acfc012cb Docs: Add link to Riz's Tekan Kanban 2017-11-15 16:12:47 +00:00
Jermolene
54b1e284fa Docs updates
Missing .tid extensions were causing those tiddlers to be mis-read.
2017-11-14 12:46:21 +00:00
Jermolene
304eb99d41 Docs updates 2017-11-14 12:31:35 +00:00
Jermolene
021b5e072b Updated GettingStarted material about saving changes 2017-11-13 14:00:01 +00:00
Marxsal
464ef889f9 Doc-Resource: Dropboard by Reid Gould (#3009)
* Doc-Resource: Dropboard by Reid Gould

* Minor date tweak
2017-11-13 13:41:10 +00:00
Jermolene
29364cbd08 Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
Jermolene
c5b478efe7 Docs updates
Including a new tiddler about the Firefox Apocalypse
2017-11-10 14:39:15 +00:00
Jermolene
ae8fb3e98b Add some resource links 2017-11-07 18:57:51 +00:00
Jermolene
1088b01f96 Fix typo: MathCell is by Stephen Kimmel 2017-08-13 17:30:36 +01:00
Marxsal
ab064e15a9 MathCell - community document ref (#2877) 2017-06-09 16:48:06 +01:00
Jermolene
684e4feff5 Add link for TWEUM2017 2017-04-28 09:40:58 +01:00
Jermolene
cb0ccb22b1 Add thumbnail for TWEUM2017 microsite 2017-04-27 08:59:19 +01:00
Jermolene
2a1fb964d5 Reformatting "wikilabs" resource link title 2017-04-19 15:56:41 +01:00
Mario Pietsch
5050829e63 add wikilabs resource link tiddler (#2834) 2017-04-19 15:54:37 +01:00
Jermolene
d778bc9a21 Add link to Tinka 2017-03-17 14:20:44 +00:00
Roma
d53d6e7921 Added community tiddler for ViM syntax file. (#2544) 2017-02-26 16:48:07 +00:00
Sylvain Comte
da0c244a51 created a "resource" card for leaflet maps plugin (#2734) 2017-02-23 17:01:41 +00:00
Jermolene
de9bb2fa40 Feature TiddlyMap in the HelloThere thumbnails 2017-02-12 11:13:43 +00:00
Jermolene
1563f207b3 Tweaks to #2753
@twMat I felt that the “see below” part was a bit clumsy, as it jumps
quite a long way down, past three embedded videos.
2017-02-04 16:22:25 +00:00
twMat
9a01e9ab71 Update doc on how to submit PR's. (#2753)
Added note to clarify difference between submitting doc improvements and code improvements.
2017-02-04 16:18:48 +00:00
Marxsal
2b90d0ab96 Doc: Community Resources: TiddlyServer (#2708) 2017-01-13 11:00:06 -07:00
Thomas Elmiger
d632e47ffe Added missing tag "Resources" (Community Resource) (#2707)
* Replacement icon stopwatch on

As discussed in issue #2690

* Replacement icon stopwatch off

As discussed in issue #2690

* Added missing tag "Resources" (Community Resource)
2017-01-13 10:59:38 -07:00
Jeremy Ruston
190d4881bf Remove accented character from filename
@Marxsal just a fyi there are a lot of problems on some platform combinations with accented characters in filenames.
2017-01-13 08:17:03 -07:00
Marxsal
00669e87da Docs: Community Resources: Noteself,Slides and Stories, TKN (#2685)
* Docs: Community Resources: Noteself,Slides and Stories, TKN

* Doc: Community Resource: Cardo

* Tweaks to community resources

* removing unnecessary new lines

* Removed spacing around question marks.

* Noteself. Removing one more space. Picked a bad day not to wear glasses.
2017-01-09 12:32:56 +00:00
Jermolene
a2b465ee75 Docs: Tweaks for title conventions for resources 2016-12-31 13:20:54 +00:00
Marxsal
241f901d85 New references for Community resources. (#2677)
* New references for Community resources.

This batch includes Filter Examples by Tobias Beerand and
Gospel Bubbles by David Gifford

* Four more community resources added --
How Does Twederation Work
Ghostwriter Theme
Moments Theme
Lucky Sushi Online SHop

* Two more: Hacks by Thomas Elmiger. Forum on Reddit by Riz
2016-12-31 13:18:48 +00:00
Jermolene
60c6f039e4 Update link to tobibeer's tips 2016-12-30 17:42:34 +00:00
Jermolene
0e83fad837 Remove link to TW5Mall
The site has been retired by the author.
2016-12-30 17:42:34 +00:00
Jermolene
bbcc367e5a Add link to google groups search at mail-archive.com 2016-12-29 09:13:28 +00:00
Jermolene
1299472c38 Add links to TiddlyWiki European Meetup 2016 2016-07-12 13:16:30 +01:00
Myeongjin
80256b4dab Update document in tiddlywiki.com edition
* Add string '.htm' to 'Saving with TiddlyIE'
* Change external links to match locale with wiki language
* Add instructions for use to 'Saving on Android'
* Change string in 'task'
* Change instructions for use in 'Saving on iPad/iPhone'
* Add newline to 'TiddlyDesktop Releases'
* Remove caption from 'Serving TW5 from Android'
* Change link to external in tiddlers which tagged 'Editions'
* Remove string 'index.html' from 'Some of the things you can do with TiddlyWiki'
* Change link 'TiddlyWiki Groups' to 'Forums' in tiddlers which tagged 'Community'
* Remove CamelCase link 'TiddlyWiki' from tiddlers tagged 'Community'
* Change string 'done' to 'Upgrade' in 'UpgradeMechanism'
* Change buttons to images in 'How to export tiddlers'
* Add images about buttons to tiddlers
* Add quotation mark to text 'edit' in 'Signing the Contributor License Agreement'
* Rename 'UsingSVG' to 'Using SVG'
* Change link 'TypedBlockWikiText' to 'Typed Blocks in WikiText' in 'Using SVG'
* Add tiddler 'Using Stamp'
* Add 'rel="noopener noreferrer"' to external links
* Add description about 'rel="noreferrer"' to 'HTML in WikiText'
* Add link of prerelease version about translators edition, and how to translate on Node.js, in 'Translate TiddlyWiki into your language'
* Change string 'dropdown' to 'tab' in 'Installing a plugin from the plugin library'
* Add download button to 'Empty Edition'
2016-07-06 01:10:51 +09:00
Jermolene
28730caf7b Remove missing link for http://dullroar.com/tiddlywiki5.html 2016-06-23 16:24:05 +01:00
Jermolene
4934d3251e Add note about docs forum 2016-06-23 16:23:52 +01:00
Myeongjin
2edaa5fbce Update tiddlywiki.com edition (#2454)
* Change button texts to latest version

* Move tiddler files to appropriate categorys
2016-05-20 07:46:11 -06:00
Jermolene
d1642da2a9 Add link to Stephen Kimmel's plugins 2016-05-05 19:10:20 +01:00
Myeongjin
5f68f411c8 Replace '_' to space in tw5.com edition (#2417)
* Move tiddler 'thumbnail Macro (Examples)' to directory 'macros/examples'

* Replace '_' to space in tw5.com edition
2016-05-02 08:34:30 +01:00
Jermolene
785ad664de Add a link to @malgam's sandbox 2016-05-01 14:19:46 +01:00
Jermolene
5086722ee2 Fix TiddlyChrome URI 2016-04-29 18:54:44 +01:00
Jermolene
556e54a0f6 Add link to @stevenleeg's twproxy 2016-04-24 16:03:46 +01:00
Jermolene
f5f92072e1 Add @sukima's personal site example 2016-04-24 12:22:34 +01:00
Jermolene
147ce5803c Add link for TiddlyChrome 2016-04-22 15:37:55 +01:00
Aurélien Correia
0ca66e5dd5 update information about datepicker 2016-03-20 15:48:43 +01:00