-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce "Multi Wiki Server" Plugin #7915
base: master
Are you sure you want to change the base?
Changes from 250 commits
8543dda
3f1f7c7
1eed613
0799177
1fb8b2e
615dc0c
8941bd1
50d0b14
a16338c
2f09c32
82fae45
4f37355
4133e7d
9767e7d
4b0df1a
26ede28
5443248
02afbb4
5fddd3b
70b048f
8f9ae7e
01d29ed
afa9ad3
e9f83ca
59aed49
d832bbc
11ecaff
f7914db
4f9ba11
dc86920
da5b316
e343ecc
c131210
239ace0
138c7f2
f6d6478
ddbd6d1
ff18482
4d42d4a
627c3e2
d16746a
26e198b
41ab949
8d95c92
ed71ada
3ad3e19
0b9749f
b0a6730
8290d85
270f62b
541c166
14752cc
f5fdd79
62b2fe3
84c8a9b
41a5bcc
85607f7
51e6466
4204ff3
3283d38
4b6872a
262a730
6675358
2c810fa
f925f03
c26acfd
f2267e2
59b425f
8edefff
6f8a3b9
2d4b334
bab14b7
6503fb4
b8c1c6c
1eecfb6
0d22bf8
790f431
3fca823
a33705e
310b5f0
3c58788
3ad87df
2361880
f926516
3276703
61b5412
066e553
b1edbed
343cc33
d5aa74d
1c0341d
630b985
6724fa8
83229ac
dd9a3bf
e614e29
d7d0733
de4fe13
9facf4a
d97ddf1
4f9ff1a
5fe41fc
1a28ec7
8a209d6
89ae201
2ba3643
abde67e
3335e87
e355848
f4ac2b9
5802834
e3b2776
0f5dfb8
54ff044
9df625c
8b5c374
24413c5
a443e5f
f906442
d6807cb
8b6642b
bc45a16
c9ab184
b923be5
3da773c
e553539
2916cb6
501f574
f675733
9b59ae2
d518675
b4855b2
347aa4d
69cc45b
dea739f
faa4b97
7eaa9b8
3d485f0
09de919
f606e33
6a673e6
259b3dc
1c64646
6063256
957329d
38ee942
9b3ca52
ae8ef30
cae9dbf
6154de0
891f0fd
60e6c8b
808b944
eaebeb8
3aa5607
1f63bcb
52f7638
08649dd
a2012dc
e66b67d
8091db3
6c9b924
8198574
708e219
7a0c434
b58cfe6
d1bb715
464d17b
4b1affe
37f6930
cca1f21
fcffff3
8a2111f
baee0bb
f2947e7
ad528d6
d51ad80
51cdca6
28a8314
ce79a4a
131a5ab
9ba4556
cc4cb04
db9978f
2e4980b
516a17a
471ba99
129bbe4
aafe775
ea318ba
268aaeb
d8eb5cb
92a1c56
87f4a52
3c7f060
4c2c726
33fb857
b4564e3
a37d501
9b6d677
d8fd9af
e396334
109d92a
d03ad0b
3c36e4b
049951e
3f30cb4
b8f463d
2b2fd4b
38e1ea8
0ff3875
e9cbb51
d1edf64
f1d0e52
39b7a4f
5b53a14
9e2962b
e9f3145
882438d
b4664bd
066771e
97db75e
adb2ffc
2819b53
6492ed3
edc32c5
9eb28a0
535c440
eac8a2c
3287dce
8a5a684
c733116
90848a1
a930411
b698b3e
4050ba5
a9c124c
0f4f60f
6e7efeb
d0b5f41
517dae8
6dd6b7b
d0575d6
5d6ddae
6a7612d
c7531e5
ad901a9
3a5f67d
316bd65
e873518
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The `multi-wiki-support` branch includes some changes that are not intended to be merged into the `master` branch: | ||
|
||
* Readme update (see `editions/tw5.com/tiddlers/readme/ReadMe.tid`) | ||
* Remove `multiwikiserver` plugin from `readme-bld.sh` (see `bin/readme-bld.sh`) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ fi | |
|
||
# tw5.com readmes | ||
node $TW5_BUILD_TIDDLYWIKI \ | ||
+plugins/tiddlywiki/multiwikiserver \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does readme-bld.sh need the multiwikiserver plugin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a temporary measure while the PR is in development. It allows us to include content from the MWS plugin in the readme. |
||
editions/tw5.com \ | ||
--verbose \ | ||
--output . \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/*\ | ||
title: $:/core/modules/commands/quit.js | ||
type: application/javascript | ||
module-type: command | ||
|
||
Immediately ends the TiddlyWiki process | ||
|
||
\*/ | ||
(function(){ | ||
|
||
/*jslint node: true, browser: true */ | ||
/*global $tw: false */ | ||
"use strict"; | ||
|
||
exports.info = { | ||
name: "quit", | ||
synchronous: true | ||
}; | ||
|
||
var Command = function(params,commander,callback) { | ||
var self = this; | ||
this.params = params; | ||
this.commander = commander; | ||
this.callback = callback; | ||
}; | ||
|
||
Command.prototype.execute = function() { | ||
// Clear any pending commands | ||
this.commander.clearCommands(); | ||
// We don't actually quit, we just issue the "th-quit" hook to give listeners a chance to exit | ||
$tw.hooks.invokeHook("th-quit"); | ||
return null; | ||
}; | ||
|
||
exports.Command = Command; | ||
|
||
})(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,4 +163,4 @@ ImageWidget.prototype.refresh = function(changedTiddlers) { | |
|
||
exports.image = ImageWidget; | ||
|
||
})(); | ||
})(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought, we wanted remove the "covering" function? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
title: $:/core/ui/Buttons/manage-acl | ||
tags: $:/tags/PageControls | ||
caption: {{$:/core/images/globe}} {{$:/language/Buttons/ManageACL/Caption}} | ||
description: {{$:/language/Buttons/ManageACL/Hint}} | ||
|
||
\whitespace trim | ||
<$button tooltip={{$:/language/Buttons/ManageACL/Hint}} aria-label={{$:/language/Buttons/ManageACL/Caption}} class=<<tv-config-toolbar-class>>> | ||
<$action-managetiddler tiddler=<<currentTiddler>>/> | ||
{{$:/core/images/globe}} | ||
<%if [<tv-config-toolbar-text>match[yes]] %> | ||
<span class="tc-btn-text"> | ||
<$text text={{$:/language/Buttons/ManageACL/Caption}}/> | ||
</span> | ||
<%endif%> | ||
</$button> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
title: $:/tags/PageControls | ||
list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/layout]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/network-activity]] [[$:/core/ui/Buttons/more-page-actions]] | ||
list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/layout]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/manage-acl]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/network-activity]] [[$:/core/ui/Buttons/more-page-actions]] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
title: $:/config/MultiWikiServer/Engine | ||
text: better |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"description": "Multiple wiki client-server edition", | ||
"plugins": [ | ||
"tiddlywiki/tiddlyweb", | ||
"tiddlywiki/filesystem", | ||
"tiddlywiki/multiwikiclient", | ||
"tiddlywiki/multiwikiserver" | ||
], | ||
"themes": [ | ||
"tiddlywiki/vanilla", | ||
"tiddlywiki/snowwhite" | ||
], | ||
"build": { | ||
"mws-add-user": [ | ||
"--mws-add-permission", "READ", "Allows user to create tiddlers", | ||
"--mws-add-permission", "WRITE", "Gives the user the permission to edit and delete tiddlers", | ||
"--mws-add-role", "ADMIN", "System Administrator", | ||
"--mws-assign-role-permission", "ADMIN", "READ", | ||
"--mws-assign-role-permission", "ADMIN", "WRITE", | ||
"--mws-add-user", "user", "pass123", | ||
"--mws-assign-user-role", "user", "ADMIN" | ||
], | ||
"load-mws-demo-data": [ | ||
"--mws-load-wiki-folder","./editions/tw5.com","docs", "TiddlyWiki Documentation from https://tiddlywiki.com","docs","TiddlyWiki Documentation from https://tiddlywiki.com", | ||
"--mws-load-wiki-folder","./editions/dev","dev","TiddlyWiki Developer Documentation from https://tiddlywiki.com/dev","dev-docs", "TiddlyWiki Developer Documentation from https://tiddlywiki.com/dev", | ||
"--mws-load-wiki-folder","./editions/tour","tour","TiddlyWiki Interactive Tour from https://tiddlywiki.com","tour", "TiddlyWiki Interactive Tour from https://tiddlywiki.com", | ||
"--mws-create-bag","bag-alpha","A test bag", | ||
"--mws-create-bag","bag-beta","Another test bag", | ||
"--mws-create-bag","bag-gamma","A further test bag", | ||
"--mws-create-recipe","recipe-rho","bag-alpha bag-beta","First wiki", | ||
"--mws-create-recipe","recipe-sigma","bag-alpha bag-gamma","Second Wiki", | ||
"--mws-create-recipe","recipe-tau","bag-alpha","Third Wiki", | ||
"--mws-create-recipe","recipe-upsilon","bag-alpha bag-gamma bag-beta","Fourth Wiki", | ||
"--mws-save-tiddler-text","bag-alpha","$:/SiteTitle","bag-alpha", | ||
"--mws-save-tiddler-text","bag-alpha","😀😃😄😁😆🥹😅😂","bag-alpha", | ||
"--mws-save-tiddler-text","bag-beta","$:/SiteTitle","bag-beta", | ||
"--mws-save-tiddler-text","bag-gamma","$:/SiteTitle","bag-gamma", | ||
"--mws-add-permission", "READ", "Allows user to create tiddlers", | ||
"--mws-add-permission", "WRITE", "Gives the user the permission to edit and delete tiddlers", | ||
"--mws-add-role", "ADMIN", "System Administrator", | ||
"--mws-add-role", "USER", "Basic User", | ||
"--mws-assign-role-permission", "ADMIN", "READ", | ||
"--mws-assign-role-permission", "ADMIN", "WRITE", | ||
"--mws-assign-role-permission", "USER", "READ" | ||
] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In line 15 there is
npm install playwright ...
which is also added to package.json, which is installed here. -- I think line 15 is redundant