mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-02-23 10:29:51 +00:00
Compare commits
365 Commits
testing-st
...
intrinsic-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c05400021c | ||
|
|
8aa558eb2c | ||
|
|
819d84ecab | ||
|
|
55dbce10f4 | ||
|
|
0b3efc2771 | ||
|
|
06adaf3331 | ||
|
|
c3695765ad | ||
|
|
636dae6c58 | ||
|
|
c25d6c11da | ||
|
|
4822919aa4 | ||
|
|
0dda07e3f1 | ||
|
|
5111be1953 | ||
|
|
9dadd3fafb | ||
|
|
12ced06d1d | ||
|
|
a4e8308e75 | ||
|
|
9a2534fc5e | ||
|
|
2ae1e5aa09 | ||
|
|
378b9b3627 | ||
|
|
e01c428a17 | ||
|
|
752c5cfbda | ||
|
|
094428b1ab | ||
|
|
41cd335cf4 | ||
|
|
26b2768294 | ||
|
|
0f79f88f58 | ||
|
|
4e3d07b16a | ||
|
|
01beac1d7c | ||
|
|
2cb5f57c69 | ||
|
|
0c80e1b35c | ||
|
|
55c634692b | ||
|
|
7e2a8238b5 | ||
|
|
ee90ad2fa6 | ||
|
|
d3f441cbb5 | ||
|
|
afabe5b714 | ||
|
|
3a60e0eb17 | ||
|
|
361a9668a2 | ||
|
|
b0d950faec | ||
|
|
8a92c4632d | ||
|
|
a1053ddc3d | ||
|
|
6b0a13b8cc | ||
|
|
c142bfc50d | ||
|
|
7ea788ca83 | ||
|
|
e8de413fba | ||
|
|
614ba8432f | ||
|
|
4cbf1b4d91 | ||
|
|
778e544f1c | ||
|
|
c84de85ed2 | ||
|
|
cd89415461 | ||
|
|
fbe5a2f908 | ||
|
|
ae9623ab2d | ||
|
|
2a2d998bef | ||
|
|
867fad030e | ||
|
|
4425a891bc | ||
|
|
0ac2b6ce31 | ||
|
|
697171a30d | ||
|
|
0b758190d1 | ||
|
|
4f0bdac77b | ||
|
|
3051e8dddc | ||
|
|
f5a6ac9446 | ||
|
|
2ebf452abb | ||
|
|
d4bc3fcd99 | ||
|
|
d770d98aff | ||
|
|
f7043f6d43 | ||
|
|
76f40208af | ||
|
|
67e8670c73 | ||
|
|
b1843837ea | ||
|
|
42c22acba6 | ||
|
|
f02c9ebba3 | ||
|
|
94b325f41f | ||
|
|
0219af604b | ||
|
|
843f133f5e | ||
|
|
903d0fb8e1 | ||
|
|
53edea9256 | ||
|
|
b04af8bf7a | ||
|
|
9aed6a5248 | ||
|
|
e9fb63affc | ||
|
|
4478f445a5 | ||
|
|
f8a8f00f52 | ||
|
|
d65c3afdf0 | ||
|
|
743415922d | ||
|
|
394e960add | ||
|
|
cc0c89836d | ||
|
|
3c7999c3bb | ||
|
|
54f0c4fa34 | ||
|
|
0c21bca0ad | ||
|
|
ee6cfc7785 | ||
|
|
664c6fd5d0 | ||
|
|
1994574cfd | ||
|
|
e8d4ce2ad0 | ||
|
|
ec0c91bca6 | ||
|
|
370ca4b4c4 | ||
|
|
49a33ae467 | ||
|
|
c13687b174 | ||
|
|
4457ee86c3 | ||
|
|
e8a23e9bcc | ||
|
|
baafe5ea23 | ||
|
|
3ee1b0bd26 | ||
|
|
c886cfe6f5 | ||
|
|
3fc9523f81 | ||
|
|
978685524b | ||
|
|
530b893710 | ||
|
|
908be0e91c | ||
|
|
1f34c62828 | ||
|
|
42f9f3073e | ||
|
|
a9940506cf | ||
|
|
dd70e37132 | ||
|
|
2801eee905 | ||
|
|
673a0f5605 | ||
|
|
42b2b9fd20 | ||
|
|
c7f741d4f8 | ||
|
|
eae869fd6f | ||
|
|
4954a6ac50 | ||
|
|
106fe2dfb9 | ||
|
|
c7b45a3eb0 | ||
|
|
86d3e9560b | ||
|
|
59548f066a | ||
|
|
ceb78a0c8d | ||
|
|
8d71942faa | ||
|
|
028c80782d | ||
|
|
81a972dc46 | ||
|
|
f273825ec3 | ||
|
|
d0285e001a | ||
|
|
81862b5bc5 | ||
|
|
dabbc1bacc | ||
|
|
1a1f166ac8 | ||
|
|
f2306a9a2f | ||
|
|
044ce8fbc2 | ||
|
|
36ae2e82be | ||
|
|
1e70e097e7 | ||
|
|
24ada16130 | ||
|
|
d919b825ed | ||
|
|
8151942bd4 | ||
|
|
a02c8e1cc4 | ||
|
|
7f730b7cbf | ||
|
|
5ea4077385 | ||
|
|
287d4ff63d | ||
|
|
c0843420d5 | ||
|
|
e3052647ff | ||
|
|
943030ccd2 | ||
|
|
de9a12b8f9 | ||
|
|
228c82e1db | ||
|
|
8993572fec | ||
|
|
b70f5bb0f7 | ||
|
|
747ffcaef2 | ||
|
|
fdafdba1b0 | ||
|
|
e73784ac4e | ||
|
|
f10a1a0538 | ||
|
|
3fb2f980c8 | ||
|
|
3856d1bf6a | ||
|
|
683aae4977 | ||
|
|
63bc3c3d65 | ||
|
|
99f4d5cc8a | ||
|
|
10cacfea9f | ||
|
|
77a227c1d0 | ||
|
|
0ea567b86d | ||
|
|
598d55a3cd | ||
|
|
0763ee5525 | ||
|
|
ca08eacce7 | ||
|
|
4bac0bca70 | ||
|
|
899a4984c0 | ||
|
|
e80b3339b0 | ||
|
|
5644e48d92 | ||
|
|
a58337d594 | ||
|
|
036c16728b | ||
|
|
e3648c7ec1 | ||
|
|
1f9cbd25b4 | ||
|
|
b18faf05c1 | ||
|
|
8a7b211a5a | ||
|
|
c08d946981 | ||
|
|
814f6b5dbb | ||
|
|
0ad080110a | ||
|
|
13bedda377 | ||
|
|
e43cccc432 | ||
|
|
0fbf14bb7a | ||
|
|
0160a4f3d3 | ||
|
|
b7c290a163 | ||
|
|
144a8ac3ff | ||
|
|
135a2e5320 | ||
|
|
9629d9e508 | ||
|
|
248de77117 | ||
|
|
de6b04d50d | ||
|
|
116b1b15af | ||
|
|
2eceee34fa | ||
|
|
12f7c077f0 | ||
|
|
60a34bb228 | ||
|
|
3d536ed2ae | ||
|
|
208de70e17 | ||
|
|
d27a847e67 | ||
|
|
86abb9bdb5 | ||
|
|
c0f7a77ab1 | ||
|
|
763fae5c53 | ||
|
|
ebb9c4f082 | ||
|
|
f565b5b55d | ||
|
|
6787a174b1 | ||
|
|
201b695d96 | ||
|
|
87d9e59e03 | ||
|
|
44cf2e3c70 | ||
|
|
9b2e8a61ed | ||
|
|
40fca47974 | ||
|
|
561296db71 | ||
|
|
a687aefbe9 | ||
|
|
bb53cc5791 | ||
|
|
5ddcd5a666 | ||
|
|
8b9723f6c7 | ||
|
|
b68de0d69f | ||
|
|
c060216a8e | ||
|
|
8b60cab6a2 | ||
|
|
9635e2d8af | ||
|
|
73bc45b305 | ||
|
|
0a03ac8219 | ||
|
|
b6c8045739 | ||
|
|
3a34a2e8d9 | ||
|
|
192fb9794d | ||
|
|
ea3cb1c58d | ||
|
|
5490b782a6 | ||
|
|
b9218a8391 | ||
|
|
6d11f4b506 | ||
|
|
a0caa0f12d | ||
|
|
e1287a9470 | ||
|
|
b3c2385018 | ||
|
|
a42a7972cb | ||
|
|
e259f414d9 | ||
|
|
646f5ae7cf | ||
|
|
e25ab7777f | ||
|
|
14d1672f6a | ||
|
|
0b789bf28b | ||
|
|
060cfd4868 | ||
|
|
142fef73f2 | ||
|
|
9e253efd9a | ||
|
|
a8822add1e | ||
|
|
a95cad4ef6 | ||
|
|
416925d354 | ||
|
|
e44d6f4d7b | ||
|
|
a51afc8b81 | ||
|
|
48cbaa1ec7 | ||
|
|
2933855f31 | ||
|
|
ead0fd5219 | ||
|
|
d955f259ec | ||
|
|
0a8fcfd3ba | ||
|
|
8712979deb | ||
|
|
f5b7b0cc55 | ||
|
|
4c64ae5afa | ||
|
|
04185b49af | ||
|
|
b2c3e2b01d | ||
|
|
78f1209672 | ||
|
|
5dd72d8223 | ||
|
|
d02c220ddf | ||
|
|
ddb6c206cb | ||
|
|
a4c2454773 | ||
|
|
e3e29ec463 | ||
|
|
47519b1703 | ||
|
|
41b9f625b3 | ||
|
|
0451a8aa8d | ||
|
|
1736d9dd4d | ||
|
|
491b664798 | ||
|
|
8a47eb2d03 | ||
|
|
c0415d9c93 | ||
|
|
f2a3e74e8b | ||
|
|
20611cc875 | ||
|
|
ac8fa2cf00 | ||
|
|
2327dd043f | ||
|
|
f4f1ae6b9b | ||
|
|
e591dfd590 | ||
|
|
c82761a600 | ||
|
|
d981e45e15 | ||
|
|
2dd8ff95b2 | ||
|
|
fca39c7f72 | ||
|
|
7bf2fee15e | ||
|
|
fc197e1bfa | ||
|
|
0aa9cf6669 | ||
|
|
6e4a64b6cd | ||
|
|
3f4067ef7b | ||
|
|
96840b886f | ||
|
|
bb462210c3 | ||
|
|
36b988c273 | ||
|
|
2a77d6afdf | ||
|
|
1e6d7b030f | ||
|
|
3a9d375fb2 | ||
|
|
459cae2817 | ||
|
|
de15b08b81 | ||
|
|
52cb5763c8 | ||
|
|
ab09d17499 | ||
|
|
53e1cad0d6 | ||
|
|
bb75560922 | ||
|
|
501cb7beaa | ||
|
|
006157ee97 | ||
|
|
ae8a6e7fb8 | ||
|
|
678c272979 | ||
|
|
a60e7165d2 | ||
|
|
9a042c0130 | ||
|
|
c64e94fdc2 | ||
|
|
ecbbbe39da | ||
|
|
6abfbc3987 | ||
|
|
38f7e792bc | ||
|
|
c386411570 | ||
|
|
73225d09d7 | ||
|
|
8d80ff297c | ||
|
|
0222d4df7c | ||
|
|
6dbdbfbe82 | ||
|
|
19990802fa | ||
|
|
0f4d6e4e47 | ||
|
|
a510e4ad68 | ||
|
|
e93515f32a | ||
|
|
6ae00e4973 | ||
|
|
3355907581 | ||
|
|
a687bfe928 | ||
|
|
c7ca8359ab | ||
|
|
18e1ee44d8 | ||
|
|
fbf619b006 | ||
|
|
bae2b78925 | ||
|
|
695e2ee589 | ||
|
|
d133c922b7 | ||
|
|
8a75ba17c1 | ||
|
|
a960e4f658 | ||
|
|
054be1af4e | ||
|
|
40138beac4 | ||
|
|
d450fce77b | ||
|
|
c64bbd984f | ||
|
|
0c1d478e19 | ||
|
|
753a820945 | ||
|
|
ffbef16152 | ||
|
|
232cffb0a1 | ||
|
|
4f4e055091 | ||
|
|
d7b00a6dd0 | ||
|
|
eaf8558595 | ||
|
|
1368cd67ca | ||
|
|
6505e4610f | ||
|
|
feec6ef18f | ||
|
|
19336dc437 | ||
|
|
30bb563ffe | ||
|
|
8d9407aad7 | ||
|
|
813a574921 | ||
|
|
93543ba213 | ||
|
|
3434884ea4 | ||
|
|
8a8dcf8255 | ||
|
|
b12625c9f6 | ||
|
|
e1b3308a9d | ||
|
|
d827c57dcf | ||
|
|
4327d58c1b | ||
|
|
dc7f8cb0af | ||
|
|
7f2ab57f78 | ||
|
|
38657a2323 | ||
|
|
dcf63b75fa | ||
|
|
f0cb57fad8 | ||
|
|
9a3f1d25e5 | ||
|
|
d6308f1c74 | ||
|
|
149bba62d2 | ||
|
|
8e4670ce0a | ||
|
|
69637640d2 | ||
|
|
2af23a6ca5 | ||
|
|
487f5f5251 | ||
|
|
dafe7884e8 | ||
|
|
a0be1d63ef | ||
|
|
842605d28e | ||
|
|
f6cd7608f5 | ||
|
|
8e1cad5a59 | ||
|
|
6b4f0bea98 | ||
|
|
d70b23e439 | ||
|
|
81405ee8f4 | ||
|
|
16e7510c72 | ||
|
|
26acd9be72 | ||
|
|
9a4aafdb41 | ||
|
|
5094096a87 | ||
|
|
98d411c08a | ||
|
|
220156edee | ||
|
|
7dfdbae812 |
@@ -1,8 +0,0 @@
|
|||||||
# Ignore "third party" code whose style we will not change.
|
|
||||||
/boot/sjcl.js
|
|
||||||
/core/modules/utils/base64-utf8/base64-utf8.module.js
|
|
||||||
/core/modules/utils/base64-utf8/base64-utf8.module.min.js
|
|
||||||
/core/modules/utils/diff-match-patch/diff_match_patch.js
|
|
||||||
/core/modules/utils/diff-match-patch/diff_match_patch_uncompressed.js
|
|
||||||
/core/modules/utils/dom/csscolorparser.js
|
|
||||||
/plugins/tiddlywiki/*/files/
|
|
||||||
317
.eslintrc.json
Normal file
317
.eslintrc.json
Normal file
@@ -0,0 +1,317 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"commonjs": true,
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended"
|
||||||
|
],
|
||||||
|
"globals": {
|
||||||
|
"$tw": "writable"
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 5
|
||||||
|
},
|
||||||
|
"plugins": [],
|
||||||
|
"rules": {
|
||||||
|
"array-bracket-newline": "off",
|
||||||
|
"array-bracket-spacing": "off",
|
||||||
|
"array-callback-return": "off",
|
||||||
|
"array-element-newline": "off",
|
||||||
|
"arrow-body-style": "error",
|
||||||
|
"arrow-parens": [
|
||||||
|
"error",
|
||||||
|
"as-needed"
|
||||||
|
],
|
||||||
|
"arrow-spacing": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"after": true,
|
||||||
|
"before": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"block-scoped-var": "off",
|
||||||
|
"block-spacing": "off",
|
||||||
|
"brace-style": "off",
|
||||||
|
"callback-return": "off",
|
||||||
|
"camelcase": "off",
|
||||||
|
"capitalized-comments": "off",
|
||||||
|
"class-methods-use-this": "error",
|
||||||
|
"comma-dangle": "off",
|
||||||
|
"comma-spacing": "off",
|
||||||
|
"comma-style": "off",
|
||||||
|
"complexity": "off",
|
||||||
|
"computed-property-spacing": "off",
|
||||||
|
"consistent-return": "off",
|
||||||
|
"consistent-this": "off",
|
||||||
|
"curly": "off",
|
||||||
|
"default-case": "off",
|
||||||
|
"default-case-last": "error",
|
||||||
|
"default-param-last": "error",
|
||||||
|
"dot-location": "off",
|
||||||
|
"dot-notation": "off",
|
||||||
|
"eol-last": "off",
|
||||||
|
"eqeqeq": "off",
|
||||||
|
"func-call-spacing": "off",
|
||||||
|
"func-name-matching": "off",
|
||||||
|
"func-names": "off",
|
||||||
|
"func-style": "off",
|
||||||
|
"function-call-argument-newline": "off",
|
||||||
|
"function-paren-newline": "off",
|
||||||
|
"generator-star-spacing": "error",
|
||||||
|
"global-require": "off",
|
||||||
|
"grouped-accessor-pairs": "error",
|
||||||
|
"guard-for-in": "off",
|
||||||
|
"handle-callback-err": "off",
|
||||||
|
"id-blacklist": "error",
|
||||||
|
"id-denylist": "error",
|
||||||
|
"id-length": "off",
|
||||||
|
"id-match": "error",
|
||||||
|
"implicit-arrow-linebreak": "error",
|
||||||
|
"indent": "off",
|
||||||
|
"indent-legacy": "off",
|
||||||
|
"init-declarations": "off",
|
||||||
|
"jsx-quotes": "error",
|
||||||
|
"key-spacing": "off",
|
||||||
|
"keyword-spacing": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"before": true,
|
||||||
|
"after": false,
|
||||||
|
"overrides": {
|
||||||
|
"case": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"do": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"else": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"return": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"throw": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"try": {
|
||||||
|
"after": true
|
||||||
|
},
|
||||||
|
"catch": {
|
||||||
|
"after": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"line-comment-position": "off",
|
||||||
|
"linebreak-style": "off",
|
||||||
|
"lines-around-comment": "off",
|
||||||
|
"lines-around-directive": "off",
|
||||||
|
"lines-between-class-members": "error",
|
||||||
|
"max-classes-per-file": "error",
|
||||||
|
"max-depth": "off",
|
||||||
|
"max-len": "off",
|
||||||
|
"max-lines": "off",
|
||||||
|
"max-lines-per-function": "off",
|
||||||
|
"max-nested-callbacks": "error",
|
||||||
|
"max-params": "off",
|
||||||
|
"max-statements": "off",
|
||||||
|
"max-statements-per-line": "off",
|
||||||
|
"multiline-comment-style": "off",
|
||||||
|
"multiline-ternary": "off",
|
||||||
|
"new-parens": "off",
|
||||||
|
"newline-after-var": "off",
|
||||||
|
"newline-before-return": "off",
|
||||||
|
"newline-per-chained-call": "off",
|
||||||
|
"no-alert": "off",
|
||||||
|
"no-array-constructor": "off",
|
||||||
|
"no-await-in-loop": "error",
|
||||||
|
"no-bitwise": "off",
|
||||||
|
"no-buffer-constructor": "off",
|
||||||
|
"no-caller": "error",
|
||||||
|
"no-catch-shadow": "off",
|
||||||
|
"no-confusing-arrow": "error",
|
||||||
|
"no-console": "off",
|
||||||
|
"no-constant-condition": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"checkLoops": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no-constructor-return": "error",
|
||||||
|
"no-continue": "off",
|
||||||
|
"no-div-regex": "off",
|
||||||
|
"no-duplicate-imports": "error",
|
||||||
|
"no-else-return": "off",
|
||||||
|
"no-empty-function": "off",
|
||||||
|
"no-eq-null": "off",
|
||||||
|
"no-eval": "off",
|
||||||
|
"no-extend-native": "off",
|
||||||
|
"no-extra-bind": "off",
|
||||||
|
"no-extra-label": "off",
|
||||||
|
"no-extra-parens": "off",
|
||||||
|
"no-floating-decimal": "off",
|
||||||
|
"no-implicit-coercion": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"boolean": false,
|
||||||
|
"number": false,
|
||||||
|
"string": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"no-implicit-globals": "off",
|
||||||
|
"no-implied-eval": "error",
|
||||||
|
"no-inline-comments": "off",
|
||||||
|
"no-invalid-this": "off",
|
||||||
|
"no-iterator": "error",
|
||||||
|
"no-label-var": "off",
|
||||||
|
"no-labels": "off",
|
||||||
|
"no-lone-blocks": "off",
|
||||||
|
"no-lonely-if": "off",
|
||||||
|
"no-loop-func": "off",
|
||||||
|
"no-loss-of-precision": "error",
|
||||||
|
"no-magic-numbers": "off",
|
||||||
|
"no-mixed-operators": "off",
|
||||||
|
"no-mixed-requires": "off",
|
||||||
|
"no-multi-assign": "off",
|
||||||
|
"no-multi-spaces": "off",
|
||||||
|
"no-multi-str": "error",
|
||||||
|
"no-multiple-empty-lines": ["warn", { "max": 4, "maxEOF": 0 }],
|
||||||
|
"no-native-reassign": "off",
|
||||||
|
"no-negated-condition": "off",
|
||||||
|
"no-negated-in-lhs": "error",
|
||||||
|
"no-nested-ternary": "off",
|
||||||
|
"no-new": "off",
|
||||||
|
"no-new-func": "off",
|
||||||
|
"no-new-object": "off",
|
||||||
|
"no-new-require": "error",
|
||||||
|
"no-new-wrappers": "error",
|
||||||
|
"no-octal-escape": "error",
|
||||||
|
"no-param-reassign": "off",
|
||||||
|
"no-path-concat": "error",
|
||||||
|
"no-plusplus": "off",
|
||||||
|
"no-process-env": "off",
|
||||||
|
"no-process-exit": "off",
|
||||||
|
"no-promise-executor-return": "error",
|
||||||
|
"no-proto": "off",
|
||||||
|
"no-restricted-exports": "error",
|
||||||
|
"no-restricted-globals": "error",
|
||||||
|
"no-restricted-imports": "error",
|
||||||
|
"no-restricted-modules": "error",
|
||||||
|
"no-restricted-properties": "error",
|
||||||
|
"no-restricted-syntax": "error",
|
||||||
|
"no-return-assign": "off",
|
||||||
|
"no-return-await": "error",
|
||||||
|
"no-script-url": "off",
|
||||||
|
"no-self-compare": "off",
|
||||||
|
"no-sequences": "off",
|
||||||
|
"no-shadow": "off",
|
||||||
|
"no-spaced-func": "off",
|
||||||
|
"no-sync": "off",
|
||||||
|
"no-tabs": "off",
|
||||||
|
"no-template-curly-in-string": "error",
|
||||||
|
"no-ternary": "off",
|
||||||
|
"no-throw-literal": "off",
|
||||||
|
"no-trailing-spaces": "error",
|
||||||
|
"no-undef-init": "off",
|
||||||
|
"no-undefined": "off",
|
||||||
|
"no-underscore-dangle": "off",
|
||||||
|
"no-unmodified-loop-condition": "off",
|
||||||
|
"no-unneeded-ternary": "off",
|
||||||
|
"no-unreachable-loop": "error",
|
||||||
|
"no-unused-expressions": "off",
|
||||||
|
"no-use-before-define": "off",
|
||||||
|
"no-useless-backreference": "error",
|
||||||
|
"no-useless-call": "off",
|
||||||
|
"no-useless-computed-key": "error",
|
||||||
|
"no-useless-concat": "off",
|
||||||
|
"no-useless-constructor": "error",
|
||||||
|
"no-useless-rename": "error",
|
||||||
|
"no-useless-return": "off",
|
||||||
|
"no-var": "off",
|
||||||
|
"no-void": "off",
|
||||||
|
"no-warning-comments": "off",
|
||||||
|
"no-whitespace-before-property": "error",
|
||||||
|
"nonblock-statement-body-position": [
|
||||||
|
"error",
|
||||||
|
"any"
|
||||||
|
],
|
||||||
|
"object-curly-newline": "off",
|
||||||
|
"object-curly-spacing": "off",
|
||||||
|
"object-property-newline": "off",
|
||||||
|
"object-shorthand": "off",
|
||||||
|
"one-var": "off",
|
||||||
|
"one-var-declaration-per-line": "off",
|
||||||
|
"operator-assignment": "off",
|
||||||
|
"operator-linebreak": "off",
|
||||||
|
"padded-blocks": "off",
|
||||||
|
"padding-line-between-statements": "error",
|
||||||
|
"prefer-arrow-callback": "off",
|
||||||
|
"prefer-const": "off",
|
||||||
|
"prefer-destructuring": "off",
|
||||||
|
"prefer-exponentiation-operator": "off",
|
||||||
|
"prefer-named-capture-group": "off",
|
||||||
|
"prefer-numeric-literals": "error",
|
||||||
|
"prefer-object-spread": "off",
|
||||||
|
"prefer-promise-reject-errors": "error",
|
||||||
|
"prefer-reflect": "off",
|
||||||
|
"prefer-regex-literals": "off",
|
||||||
|
"prefer-rest-params": "off",
|
||||||
|
"prefer-spread": "off",
|
||||||
|
"prefer-template": "off",
|
||||||
|
"quote-props": "off",
|
||||||
|
"quotes": "off",
|
||||||
|
"radix": "off",
|
||||||
|
"require-atomic-updates": "error",
|
||||||
|
"require-await": "error",
|
||||||
|
"require-jsdoc": "off",
|
||||||
|
"require-unicode-regexp": "off",
|
||||||
|
"rest-spread-spacing": "error",
|
||||||
|
"semi": "off",
|
||||||
|
"semi-spacing": "off",
|
||||||
|
"semi-style": "off",
|
||||||
|
"sort-imports": "error",
|
||||||
|
"sort-keys": "off",
|
||||||
|
"sort-vars": "off",
|
||||||
|
"space-before-blocks": "off",
|
||||||
|
"space-before-function-paren": "off",
|
||||||
|
"space-in-parens": "off",
|
||||||
|
"space-infix-ops": "off",
|
||||||
|
"space-unary-ops": "off",
|
||||||
|
"spaced-comment": "off",
|
||||||
|
"strict": "off",
|
||||||
|
"switch-colon-spacing": "off",
|
||||||
|
"symbol-description": "error",
|
||||||
|
"template-curly-spacing": "error",
|
||||||
|
"template-tag-spacing": "error",
|
||||||
|
"unicode-bom": [
|
||||||
|
"error",
|
||||||
|
"never"
|
||||||
|
],
|
||||||
|
"valid-jsdoc": "off",
|
||||||
|
"valid-typeof": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"requireStringLiterals": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vars-on-top": "off",
|
||||||
|
"wrap-iife": "off",
|
||||||
|
"wrap-regex": "off",
|
||||||
|
"yield-star-spacing": "error",
|
||||||
|
"yoda": "off",
|
||||||
|
"no-useless-escape": "off",
|
||||||
|
"no-unused-vars": "off",
|
||||||
|
"no-empty": "off",
|
||||||
|
"no-extra-semi": "off",
|
||||||
|
"no-redeclare": "off",
|
||||||
|
"no-control-regex": "off",
|
||||||
|
"no-mixed-spaces-and-tabs": "off",
|
||||||
|
"no-extra-boolean-cast": "off",
|
||||||
|
"no-prototype-builtins": "off",
|
||||||
|
"no-undef": "off",
|
||||||
|
"no-unreachable": "off",
|
||||||
|
"no-self-assign": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
286
.eslintrc.yml
286
.eslintrc.yml
@@ -1,286 +0,0 @@
|
|||||||
env:
|
|
||||||
browser: true
|
|
||||||
commonjs: true
|
|
||||||
es2021: true
|
|
||||||
node: true
|
|
||||||
extends: 'eslint:recommended'
|
|
||||||
globals:
|
|
||||||
"$tw": "writable" # temporary
|
|
||||||
parserOptions:
|
|
||||||
ecmaVersion: 5
|
|
||||||
rules:
|
|
||||||
array-bracket-newline: 'off'
|
|
||||||
array-bracket-spacing: 'off'
|
|
||||||
array-callback-return: 'off'
|
|
||||||
array-element-newline: 'off'
|
|
||||||
arrow-body-style: error
|
|
||||||
arrow-parens:
|
|
||||||
- error
|
|
||||||
- as-needed
|
|
||||||
arrow-spacing:
|
|
||||||
- error
|
|
||||||
- after: true
|
|
||||||
before: true
|
|
||||||
block-scoped-var: 'off'
|
|
||||||
block-spacing: 'off'
|
|
||||||
brace-style: 'off'
|
|
||||||
callback-return: 'off'
|
|
||||||
camelcase: 'off'
|
|
||||||
capitalized-comments: 'off'
|
|
||||||
class-methods-use-this: error
|
|
||||||
comma-dangle: 'off'
|
|
||||||
comma-spacing: 'off'
|
|
||||||
comma-style: 'off'
|
|
||||||
complexity: 'off'
|
|
||||||
computed-property-spacing: 'off'
|
|
||||||
consistent-return: 'off'
|
|
||||||
consistent-this: 'off'
|
|
||||||
curly: 'off'
|
|
||||||
default-case: 'off'
|
|
||||||
default-case-last: error
|
|
||||||
default-param-last: error
|
|
||||||
dot-location: 'off'
|
|
||||||
dot-notation: 'off'
|
|
||||||
eol-last: 'off'
|
|
||||||
eqeqeq: 'off'
|
|
||||||
func-call-spacing: 'off'
|
|
||||||
func-name-matching: 'off'
|
|
||||||
func-names: 'off'
|
|
||||||
func-style: 'off'
|
|
||||||
function-call-argument-newline: 'off'
|
|
||||||
function-paren-newline: 'off'
|
|
||||||
generator-star-spacing: error
|
|
||||||
global-require: 'off'
|
|
||||||
grouped-accessor-pairs: error
|
|
||||||
guard-for-in: 'off'
|
|
||||||
handle-callback-err: 'off'
|
|
||||||
id-blacklist: error
|
|
||||||
id-denylist: error
|
|
||||||
id-length: 'off'
|
|
||||||
id-match: error
|
|
||||||
implicit-arrow-linebreak: error
|
|
||||||
indent: 'off'
|
|
||||||
indent-legacy: 'off'
|
|
||||||
init-declarations: 'off'
|
|
||||||
jsx-quotes: error
|
|
||||||
key-spacing: 'off'
|
|
||||||
keyword-spacing:
|
|
||||||
- error
|
|
||||||
- before: true
|
|
||||||
after: false
|
|
||||||
overrides:
|
|
||||||
'case':
|
|
||||||
after: true
|
|
||||||
'do':
|
|
||||||
'after': true
|
|
||||||
'else':
|
|
||||||
after: true
|
|
||||||
'return':
|
|
||||||
after: true
|
|
||||||
'throw':
|
|
||||||
after: true
|
|
||||||
'try':
|
|
||||||
after: true
|
|
||||||
line-comment-position: 'off'
|
|
||||||
linebreak-style: 'off'
|
|
||||||
lines-around-comment: 'off'
|
|
||||||
lines-around-directive: 'off'
|
|
||||||
lines-between-class-members: error
|
|
||||||
max-classes-per-file: error
|
|
||||||
max-depth: 'off'
|
|
||||||
max-len: 'off'
|
|
||||||
max-lines: 'off'
|
|
||||||
max-lines-per-function: 'off'
|
|
||||||
max-nested-callbacks: error
|
|
||||||
max-params: 'off'
|
|
||||||
max-statements: 'off'
|
|
||||||
max-statements-per-line: 'off'
|
|
||||||
multiline-comment-style: 'off'
|
|
||||||
multiline-ternary: 'off'
|
|
||||||
new-parens: 'off'
|
|
||||||
newline-after-var: 'off'
|
|
||||||
newline-before-return: 'off'
|
|
||||||
newline-per-chained-call: 'off'
|
|
||||||
no-alert: 'off'
|
|
||||||
no-array-constructor: 'off'
|
|
||||||
no-await-in-loop: error
|
|
||||||
no-bitwise: 'off'
|
|
||||||
no-buffer-constructor: 'off'
|
|
||||||
no-caller: error
|
|
||||||
no-catch-shadow: 'off'
|
|
||||||
no-confusing-arrow: error
|
|
||||||
no-console: 'off'
|
|
||||||
no-constant-condition:
|
|
||||||
- error
|
|
||||||
- checkLoops: false
|
|
||||||
no-constructor-return: error
|
|
||||||
no-continue: 'off'
|
|
||||||
no-div-regex: 'off'
|
|
||||||
no-duplicate-imports: error
|
|
||||||
no-else-return: 'off'
|
|
||||||
no-empty-function: 'off'
|
|
||||||
no-eq-null: 'off'
|
|
||||||
no-eval: 'off'
|
|
||||||
no-extend-native: 'off'
|
|
||||||
no-extra-bind: 'off'
|
|
||||||
no-extra-label: 'off'
|
|
||||||
no-extra-parens: 'off'
|
|
||||||
no-floating-decimal: 'off'
|
|
||||||
no-implicit-coercion:
|
|
||||||
- error
|
|
||||||
- boolean: false
|
|
||||||
number: false
|
|
||||||
string: false
|
|
||||||
no-implicit-globals: 'off'
|
|
||||||
no-implied-eval: error
|
|
||||||
no-inline-comments: 'off'
|
|
||||||
no-invalid-this: 'off'
|
|
||||||
no-iterator: error
|
|
||||||
no-label-var: 'off'
|
|
||||||
no-labels: 'off'
|
|
||||||
no-lone-blocks: 'off'
|
|
||||||
no-lonely-if: 'off'
|
|
||||||
no-loop-func: 'off'
|
|
||||||
no-loss-of-precision: error
|
|
||||||
no-magic-numbers: 'off'
|
|
||||||
no-mixed-operators: 'off'
|
|
||||||
no-mixed-requires: 'off'
|
|
||||||
no-multi-assign: 'off'
|
|
||||||
no-multi-spaces: 'off'
|
|
||||||
no-multi-str: error
|
|
||||||
no-multiple-empty-lines: 'off'
|
|
||||||
no-native-reassign: 'off'
|
|
||||||
no-negated-condition: 'off'
|
|
||||||
no-negated-in-lhs: error
|
|
||||||
no-nested-ternary: 'off'
|
|
||||||
no-new: 'off'
|
|
||||||
no-new-func: 'off'
|
|
||||||
no-new-object: 'off'
|
|
||||||
no-new-require: error
|
|
||||||
no-new-wrappers: error
|
|
||||||
no-octal-escape: error
|
|
||||||
no-param-reassign: 'off'
|
|
||||||
no-path-concat: error
|
|
||||||
no-plusplus: 'off'
|
|
||||||
no-process-env: 'off'
|
|
||||||
no-process-exit: 'off'
|
|
||||||
no-promise-executor-return: error
|
|
||||||
no-proto: 'off'
|
|
||||||
no-restricted-exports: error
|
|
||||||
no-restricted-globals: error
|
|
||||||
no-restricted-imports: error
|
|
||||||
no-restricted-modules: error
|
|
||||||
no-restricted-properties: error
|
|
||||||
no-restricted-syntax: error
|
|
||||||
no-return-assign: 'off'
|
|
||||||
no-return-await: error
|
|
||||||
no-script-url: 'off'
|
|
||||||
no-self-compare: 'off'
|
|
||||||
no-sequences: 'off'
|
|
||||||
no-shadow: 'off'
|
|
||||||
no-spaced-func: 'off'
|
|
||||||
no-sync: 'off'
|
|
||||||
no-tabs: 'off'
|
|
||||||
no-template-curly-in-string: error
|
|
||||||
no-ternary: 'off'
|
|
||||||
no-throw-literal: 'off'
|
|
||||||
no-trailing-spaces: 'off'
|
|
||||||
no-undef-init: 'off'
|
|
||||||
no-undefined: 'off'
|
|
||||||
no-underscore-dangle: 'off'
|
|
||||||
no-unmodified-loop-condition: 'off'
|
|
||||||
no-unneeded-ternary: 'off'
|
|
||||||
no-unreachable-loop: error
|
|
||||||
no-unused-expressions: 'off'
|
|
||||||
no-use-before-define: 'off'
|
|
||||||
no-useless-backreference: error
|
|
||||||
no-useless-call: 'off'
|
|
||||||
no-useless-computed-key: error
|
|
||||||
no-useless-concat: 'off'
|
|
||||||
no-useless-constructor: error
|
|
||||||
no-useless-rename: error
|
|
||||||
no-useless-return: 'off'
|
|
||||||
no-var: 'off'
|
|
||||||
no-void: 'off'
|
|
||||||
no-warning-comments: 'off'
|
|
||||||
no-whitespace-before-property: error
|
|
||||||
nonblock-statement-body-position:
|
|
||||||
- error
|
|
||||||
- any
|
|
||||||
object-curly-newline: 'off'
|
|
||||||
object-curly-spacing: 'off'
|
|
||||||
object-property-newline: 'off'
|
|
||||||
object-shorthand: 'off'
|
|
||||||
one-var: 'off'
|
|
||||||
one-var-declaration-per-line: 'off'
|
|
||||||
operator-assignment: 'off'
|
|
||||||
operator-linebreak: 'off'
|
|
||||||
padded-blocks: 'off'
|
|
||||||
padding-line-between-statements: error
|
|
||||||
prefer-arrow-callback: 'off'
|
|
||||||
prefer-const: 'off'
|
|
||||||
prefer-destructuring: 'off'
|
|
||||||
prefer-exponentiation-operator: 'off'
|
|
||||||
prefer-named-capture-group: 'off'
|
|
||||||
prefer-numeric-literals: error
|
|
||||||
prefer-object-spread: 'off'
|
|
||||||
prefer-promise-reject-errors: error
|
|
||||||
prefer-reflect: 'off'
|
|
||||||
prefer-regex-literals: 'off'
|
|
||||||
prefer-rest-params: 'off'
|
|
||||||
prefer-spread: 'off'
|
|
||||||
prefer-template: 'off'
|
|
||||||
quote-props: 'off'
|
|
||||||
quotes:
|
|
||||||
- error
|
|
||||||
- double
|
|
||||||
- avoidEscape: true
|
|
||||||
radix: 'off'
|
|
||||||
require-atomic-updates: error
|
|
||||||
require-await: error
|
|
||||||
require-jsdoc: 'off'
|
|
||||||
require-unicode-regexp: 'off'
|
|
||||||
rest-spread-spacing: error
|
|
||||||
semi: 'off'
|
|
||||||
semi-spacing: 'off'
|
|
||||||
semi-style: 'off'
|
|
||||||
sort-imports: error
|
|
||||||
sort-keys: 'off'
|
|
||||||
sort-vars: 'off'
|
|
||||||
space-before-blocks: 'off'
|
|
||||||
space-before-function-paren: 'off'
|
|
||||||
space-in-parens: 'off'
|
|
||||||
space-infix-ops: 'off'
|
|
||||||
space-unary-ops: 'off'
|
|
||||||
spaced-comment: 'off'
|
|
||||||
strict: 'off'
|
|
||||||
switch-colon-spacing: 'off'
|
|
||||||
symbol-description: error
|
|
||||||
template-curly-spacing: error
|
|
||||||
template-tag-spacing: error
|
|
||||||
unicode-bom:
|
|
||||||
- error
|
|
||||||
- never
|
|
||||||
valid-jsdoc: 'off'
|
|
||||||
valid-typeof:
|
|
||||||
- error
|
|
||||||
- requireStringLiterals: false
|
|
||||||
vars-on-top: 'off'
|
|
||||||
wrap-iife: 'off'
|
|
||||||
wrap-regex: 'off'
|
|
||||||
yield-star-spacing: error
|
|
||||||
yoda: 'off'
|
|
||||||
|
|
||||||
# temporary rules
|
|
||||||
no-useless-escape: 'off'
|
|
||||||
no-unused-vars: 'off'
|
|
||||||
no-empty: 'off'
|
|
||||||
no-extra-semi: 'off'
|
|
||||||
no-redeclare: 'off'
|
|
||||||
no-control-regex: "off"
|
|
||||||
no-mixed-spaces-and-tabs: "off"
|
|
||||||
no-extra-boolean-cast: "off"
|
|
||||||
no-prototype-builtins: "off"
|
|
||||||
no-undef: "off"
|
|
||||||
no-unreachable: "off"
|
|
||||||
no-self-assign: "off"
|
|
||||||
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -5,17 +5,17 @@ on:
|
|||||||
- master
|
- master
|
||||||
- tiddlywiki-com
|
- tiddlywiki-com
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "18"
|
NODE_VERSION: "22"
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
node-version: "${{ env.NODE_VERSION }}"
|
||||||
- run: "./bin/ci-test.sh"
|
- run: "./bin/ci-test.sh"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: playwright-report
|
name: playwright-report
|
||||||
@@ -30,8 +30,8 @@ jobs:
|
|||||||
TW5_BUILD_MAIN_EDITION: "./editions/prerelease"
|
TW5_BUILD_MAIN_EDITION: "./editions/prerelease"
|
||||||
TW5_BUILD_OUTPUT: "./output/prerelease"
|
TW5_BUILD_OUTPUT: "./output/prerelease"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
node-version: "${{ env.NODE_VERSION }}"
|
||||||
- run: "./bin/ci-pre-build.sh"
|
- run: "./bin/ci-pre-build.sh"
|
||||||
@@ -62,8 +62,8 @@ jobs:
|
|||||||
TW5_BUILD_OUTPUT: "./output"
|
TW5_BUILD_OUTPUT: "./output"
|
||||||
TW5_BUILD_ARCHIVE: "./output"
|
TW5_BUILD_ARCHIVE: "./output"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
node-version: "${{ env.NODE_VERSION }}"
|
||||||
- run: "./bin/ci-pre-build.sh"
|
- run: "./bin/ci-pre-build.sh"
|
||||||
|
|||||||
2
.github/workflows/cla-check.yml
vendored
2
.github/workflows/cla-check.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
if: ${{ (github.event.pull_request.user.login != github.repository_owner) }}
|
if: ${{ (github.event.pull_request.user.login != github.repository_owner) }}
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
if ! curl -s https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/tiddlywiki-com/licenses/cla-individual.md | grep -o "@$USER,"; then
|
if ! curl -s https://raw.githubusercontent.com/Jermolene/TiddlyWiki5/tiddlywiki-com/licenses/cla-individual.md | grep -io "@$USER,"; then
|
||||||
echo "CLA not signed"
|
echo "CLA not signed"
|
||||||
gh pr comment "$NUMBER" -b "@$USER It appears that this is your first contribution to the project, welcome.
|
gh pr comment "$NUMBER" -b "@$USER It appears that this is your first contribution to the project, welcome.
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/cla-signed.yml
vendored
4
.github/workflows/cla-signed.yml
vendored
@@ -23,8 +23,8 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
if ! $BRANCH == "tiddlywiki-com"; then
|
if [[ "$BRANCH" != "tiddlywiki-com" ]]; then
|
||||||
echo "This CLA signature targets the wrong branch"
|
echo "This CLA signature targets the wrong branch: $BRANCH"
|
||||||
gh pr comment "$NUMBER" -b "@$AUTHOR Signatures to the CLA must target the 'tiddlywiki-com' branch."
|
gh pr comment "$NUMBER" -b "@$AUTHOR Signatures to the CLA must target the 'tiddlywiki-com' branch."
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# Default to the current version number for building the plugin library
|
# Default to the current version number for building the plugin library
|
||||||
|
|
||||||
if [ -z "$TW5_BUILD_VERSION" ]; then
|
if [ -z "$TW5_BUILD_VERSION" ]; then
|
||||||
TW5_BUILD_VERSION=v5.3.6
|
TW5_BUILD_VERSION=v5.3.7
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Using TW5_BUILD_VERSION as [$TW5_BUILD_VERSION]"
|
echo "Using TW5_BUILD_VERSION as [$TW5_BUILD_VERSION]"
|
||||||
@@ -97,7 +97,6 @@ if [ -n "$TW5_BUILD_ARCHIVE" ]; then
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
$TW5_BUILD_MAIN_EDITION \
|
$TW5_BUILD_MAIN_EDITION \
|
||||||
--verbose \
|
|
||||||
--version \
|
--version \
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_ARCHIVE \
|
--output $TW5_BUILD_ARCHIVE \
|
||||||
@@ -106,6 +105,7 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# /index.html Main site
|
# /index.html Main site
|
||||||
|
# /external-(version).html External core version of main site
|
||||||
# /favicon.ico Favicon for main site
|
# /favicon.ico Favicon for main site
|
||||||
# /static.html Static rendering of default tiddlers
|
# /static.html Static rendering of default tiddlers
|
||||||
# /alltiddlers.html Static rendering of all tiddlers
|
# /alltiddlers.html Static rendering of all tiddlers
|
||||||
@@ -115,11 +115,10 @@ fi
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
$TW5_BUILD_MAIN_EDITION \
|
$TW5_BUILD_MAIN_EDITION \
|
||||||
--verbose \
|
|
||||||
--version \
|
--version \
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build favicon static index \
|
--build favicon static index external-js \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
# /empty.html Empty
|
# /empty.html Empty
|
||||||
@@ -128,7 +127,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /tiddlywikicore-<version>.js Core plugin javascript
|
# /tiddlywikicore-<version>.js Core plugin javascript
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/empty \
|
./editions/empty \
|
||||||
--verbose \
|
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build empty emptyexternalcore \
|
--build empty emptyexternalcore \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
@@ -137,7 +135,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /test.html Test edition
|
# /test.html Test edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/test \
|
./editions/test \
|
||||||
--verbose \
|
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all test.html text/plain \
|
--rendertiddler $:/core/save/all test.html text/plain \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
@@ -150,7 +147,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /dev/static/static.css Static stylesheet
|
# /dev/static/static.css Static stylesheet
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/dev \
|
./editions/dev \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/dev \
|
--output $TW5_BUILD_OUTPUT/dev \
|
||||||
--build index favicon static \
|
--build index favicon static \
|
||||||
@@ -159,29 +155,13 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /tour.html tour edition
|
# /tour.html tour edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/tour \
|
./editions/tour \
|
||||||
--verbose \
|
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all tour.html text/plain \
|
--rendertiddler $:/core/save/all tour.html text/plain \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
# /dev/index.html Developer docs
|
|
||||||
# /dev/favicon.ico Favicon for dev site
|
|
||||||
# /dev/static.html Static rendering of default tiddlers
|
|
||||||
# /dev/alltiddlers.html Static rendering of all tiddlers
|
|
||||||
# /dev/static/* Static single tiddlers
|
|
||||||
# /dev/static/static.css Static stylesheet
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
|
||||||
./editions/dev \
|
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
|
||||||
--output $TW5_BUILD_OUTPUT/dev \
|
|
||||||
--build index favicon static \
|
|
||||||
|| exit 1
|
|
||||||
|
|
||||||
# /share.html Custom edition for sharing via the URL
|
# /share.html Custom edition for sharing via the URL
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/share \
|
./editions/share \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build share \
|
--build share \
|
||||||
@@ -190,7 +170,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /upgrade.html Custom edition for performing upgrades
|
# /upgrade.html Custom edition for performing upgrades
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/upgrade \
|
./editions/upgrade \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build upgrade \
|
--build upgrade \
|
||||||
@@ -199,7 +178,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /encrypted.html Copy of the main file encrypted with the password "password"
|
# /encrypted.html Copy of the main file encrypted with the password "password"
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
$TW5_BUILD_MAIN_EDITION \
|
$TW5_BUILD_MAIN_EDITION \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build encrypted \
|
--build encrypted \
|
||||||
@@ -215,7 +193,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/xlsx-utils/index.html xlsx-utils edition
|
# /editions/xlsx-utils/index.html xlsx-utils edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/xlsx-utils \
|
./editions/xlsx-utils \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/xlsx-utils/ \
|
--output $TW5_BUILD_OUTPUT/editions/xlsx-utils/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -224,7 +201,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/resumebuilder/index.html Resume builder edition
|
# /editions/resumebuilder/index.html Resume builder edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/resumebuilder \
|
./editions/resumebuilder \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/resumebuilder/ \
|
--output $TW5_BUILD_OUTPUT/editions/resumebuilder/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -233,7 +209,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/text-slicer/index.html Text slicer edition
|
# /editions/text-slicer/index.html Text slicer edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/text-slicer \
|
./editions/text-slicer \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/text-slicer/ \
|
--output $TW5_BUILD_OUTPUT/editions/text-slicer/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -242,7 +217,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/translators/index.html Translators edition
|
# /editions/translators/index.html Translators edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/translators \
|
./editions/translators \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/translators/ \
|
--output $TW5_BUILD_OUTPUT/editions/translators/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -251,7 +225,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/introduction/index.html Introduction edition
|
# /editions/introduction/index.html Introduction edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/introduction \
|
./editions/introduction \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/introduction/ \
|
--output $TW5_BUILD_OUTPUT/editions/introduction/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -260,7 +233,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/full/index.html Full edition
|
# /editions/full/index.html Full edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/full \
|
./editions/full \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/full/ \
|
--output $TW5_BUILD_OUTPUT/editions/full/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -269,7 +241,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/tw5.com-docs/index.html tiddlywiki.com docs edition
|
# /editions/tw5.com-docs/index.html tiddlywiki.com docs edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/tw5.com-docs \
|
./editions/tw5.com-docs \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/tw5.com-docs/ \
|
--output $TW5_BUILD_OUTPUT/editions/tw5.com-docs/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -278,7 +249,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /editions/twitter-archivist/index.html Twitter Archivist edition
|
# /editions/twitter-archivist/index.html Twitter Archivist edition
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/twitter-archivist \
|
./editions/twitter-archivist \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/editions/twitter-archivist/ \
|
--output $TW5_BUILD_OUTPUT/editions/twitter-archivist/ \
|
||||||
--build index \
|
--build index \
|
||||||
@@ -294,7 +264,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/innerwikidemo \
|
./editions/innerwikidemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/innerwiki/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/innerwiki/index.html text/plain \
|
||||||
@@ -305,7 +274,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/dynaviewdemo \
|
./editions/dynaviewdemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/dynaview/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/dynaview/index.html text/plain \
|
||||||
@@ -320,7 +288,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/katexdemo \
|
./editions/katexdemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/katex/index.html text/plain \
|
||||||
@@ -331,7 +298,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin
|
# /plugins/tiddlywiki/tahoelafs/empty.html Empty wiki with Tahoe-LAFS plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/tahoelafs \
|
./editions/tahoelafs \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/tahoelafs/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/tahoelafs/index.html text/plain \
|
||||||
@@ -342,7 +308,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/d3/empty.html Empty wiki with D3 plugin
|
# /plugins/tiddlywiki/d3/empty.html Empty wiki with D3 plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/d3demo \
|
./editions/d3demo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/d3/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/d3/index.html text/plain \
|
||||||
@@ -353,7 +318,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/codemirror/empty.html Empty wiki with codemirror plugin
|
# /plugins/tiddlywiki/codemirror/empty.html Empty wiki with codemirror plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/codemirrordemo \
|
./editions/codemirrordemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/codemirror/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/codemirror/index.html text/plain \
|
||||||
@@ -364,7 +328,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/markdown/empty.html Empty wiki with Markdown plugin
|
# /plugins/tiddlywiki/markdown/empty.html Empty wiki with Markdown plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/markdowndemo \
|
./editions/markdowndemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/markdown/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/markdown/index.html text/plain \
|
||||||
@@ -375,7 +338,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/tw2parser/empty.html Empty wiki with tw2parser plugin
|
# /plugins/tiddlywiki/tw2parser/empty.html Empty wiki with tw2parser plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/classicparserdemo \
|
./editions/classicparserdemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/tw2parser/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/tw2parser/index.html text/plain \
|
||||||
@@ -386,7 +348,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/highlight/empty.html Empty wiki with highlight plugin
|
# /plugins/tiddlywiki/highlight/empty.html Empty wiki with highlight plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/highlightdemo \
|
./editions/highlightdemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/highlight/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/highlight/index.html text/plain \
|
||||||
@@ -397,7 +358,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /plugins/tiddlywiki/geospatial/empty.html Empty wiki with geospatial plugin
|
# /plugins/tiddlywiki/geospatial/empty.html Empty wiki with geospatial plugin
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/geospatialdemo \
|
./editions/geospatialdemo \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--rendertiddler $:/core/save/all plugins/tiddlywiki/geospatial/index.html text/plain \
|
--rendertiddler $:/core/save/all plugins/tiddlywiki/geospatial/index.html text/plain \
|
||||||
@@ -425,7 +385,6 @@ rm -rf $TW5_BUILD_OUTPUT/languages/zh-Hant/static/*
|
|||||||
# /languages/de-AT/empty.html Empty wiki with de-AT language
|
# /languages/de-AT/empty.html Empty wiki with de-AT language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/de-AT \
|
./editions/de-AT \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/de-AT \
|
--output $TW5_BUILD_OUTPUT/languages/de-AT \
|
||||||
--build favicon empty static index \
|
--build favicon empty static index \
|
||||||
@@ -435,7 +394,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/de-DE/empty.html Empty wiki with de-DE language
|
# /languages/de-DE/empty.html Empty wiki with de-DE language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/de-DE \
|
./editions/de-DE \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/de-DE \
|
--output $TW5_BUILD_OUTPUT/languages/de-DE \
|
||||||
--build favicon empty static index \
|
--build favicon empty static index \
|
||||||
@@ -445,7 +403,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/es-ES/empty.html Empty wiki with es-ES language
|
# /languages/es-ES/empty.html Empty wiki with es-ES language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/es-ES \
|
./editions/es-ES \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/es-ES \
|
--output $TW5_BUILD_OUTPUT/languages/es-ES \
|
||||||
--build favicon empty static index \
|
--build favicon empty static index \
|
||||||
@@ -455,7 +412,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/fr-FR/empty.html Empty wiki with fr-FR language
|
# /languages/fr-FR/empty.html Empty wiki with fr-FR language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/fr-FR \
|
./editions/fr-FR \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/fr-FR \
|
--output $TW5_BUILD_OUTPUT/languages/fr-FR \
|
||||||
--build favicon empty static index \
|
--build favicon empty static index \
|
||||||
@@ -465,7 +421,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/ja-JP/empty.html Empty wiki with ja-JP language
|
# /languages/ja-JP/empty.html Empty wiki with ja-JP language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/ja-JP \
|
./editions/ja-JP \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/ja-JP \
|
--output $TW5_BUILD_OUTPUT/languages/ja-JP \
|
||||||
--build empty index \
|
--build empty index \
|
||||||
@@ -475,7 +430,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/ko-KR/empty.html Empty wiki with ko-KR language
|
# /languages/ko-KR/empty.html Empty wiki with ko-KR language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/ko-KR \
|
./editions/ko-KR \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/ko-KR \
|
--output $TW5_BUILD_OUTPUT/languages/ko-KR \
|
||||||
--build favicon empty static index \
|
--build favicon empty static index \
|
||||||
@@ -485,7 +439,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/zh-Hans/empty.html Empty wiki with zh-Hans language
|
# /languages/zh-Hans/empty.html Empty wiki with zh-Hans language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/zh-Hans \
|
./editions/zh-Hans \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/zh-Hans \
|
--output $TW5_BUILD_OUTPUT/languages/zh-Hans \
|
||||||
--build empty index \
|
--build empty index \
|
||||||
@@ -495,7 +448,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
# /languages/zh-Hant/empty.html Empty wiki with zh-Hant language
|
# /languages/zh-Hant/empty.html Empty wiki with zh-Hant language
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/zh-Hant \
|
./editions/zh-Hant \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/languages/zh-Hant \
|
--output $TW5_BUILD_OUTPUT/languages/zh-Hant \
|
||||||
--build empty index \
|
--build empty index \
|
||||||
@@ -509,7 +461,6 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
|
|
||||||
node $TW5_BUILD_TIDDLYWIKI \
|
node $TW5_BUILD_TIDDLYWIKI \
|
||||||
./editions/pluginlibrary \
|
./editions/pluginlibrary \
|
||||||
--verbose \
|
|
||||||
--load $TW5_BUILD_OUTPUT/build.tid \
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT/library/$TW5_BUILD_VERSION \
|
--output $TW5_BUILD_OUTPUT/library/$TW5_BUILD_VERSION \
|
||||||
--build library\
|
--build library\
|
||||||
|
|||||||
313
boot/boot.js
313
boot/boot.js
@@ -232,10 +232,10 @@ $tw.utils.error = function(err) {
|
|||||||
var link = dm("a"),
|
var link = dm("a"),
|
||||||
text = JSON.stringify(tiddlers);
|
text = JSON.stringify(tiddlers);
|
||||||
if(Blob !== undefined) {
|
if(Blob !== undefined) {
|
||||||
var blob = new Blob([text], {type: "text/html"});
|
var blob = new Blob([text], {type: "application/json"});
|
||||||
link.setAttribute("href", URL.createObjectURL(blob));
|
link.setAttribute("href", URL.createObjectURL(blob));
|
||||||
} else {
|
} else {
|
||||||
link.setAttribute("href","data:text/html," + encodeURIComponent(text));
|
link.setAttribute("href","data:application/json," + encodeURIComponent(text));
|
||||||
}
|
}
|
||||||
link.setAttribute("download","emergency-tiddlers-" + (new Date()) + ".json");
|
link.setAttribute("download","emergency-tiddlers-" + (new Date()) + ".json");
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
@@ -1068,6 +1068,10 @@ $tw.Tiddler.prototype.hasField = function(field) {
|
|||||||
return $tw.utils.hop(this.fields,field);
|
return $tw.utils.hop(this.fields,field);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$tw.Tiddler.prototype.isPlugin = function() {
|
||||||
|
return this.fields.type === "application/json" && this.hasField("plugin-type") && !this.hasField("draft.of");
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Compare two tiddlers for equality
|
Compare two tiddlers for equality
|
||||||
tiddler: the tiddler to compare
|
tiddler: the tiddler to compare
|
||||||
@@ -1162,21 +1166,21 @@ enableIndexers - Array of indexer names to enable, or null to use all available
|
|||||||
$tw.Wiki = function(options) {
|
$tw.Wiki = function(options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var self = this,
|
var self = this,
|
||||||
tiddlers = Object.create(null), // Hashmap of tiddlers
|
tiddlerStore = Object.create(null), // Hashmap of tiddlers
|
||||||
tiddlerTitles = null, // Array of tiddler titles
|
tiddlerTitles = null, // Array of tiddler titles, calculated and cached when needed
|
||||||
getTiddlerTitles = function() {
|
getTiddlerTitles = function() {
|
||||||
if(!tiddlerTitles) {
|
if(!tiddlerTitles) {
|
||||||
tiddlerTitles = Object.keys(tiddlers).sort(function(a,b) {return a.localeCompare(b);});
|
tiddlerTitles = Object.keys(tiddlerStore).sort(function(a,b) {return a.localeCompare(b);});
|
||||||
}
|
}
|
||||||
return tiddlerTitles;
|
return tiddlerTitles;
|
||||||
},
|
},
|
||||||
pluginTiddlers = [], // Array of tiddlers containing registered plugins, ordered by priority
|
pluginTiddlersInfo = [], // Array of tiddler fields for all plugins and sub-plugins, ordered by priority
|
||||||
pluginInfo = Object.create(null), // Hashmap of parsed plugin content
|
pluginContents = Object.create(null), // Hashmap by title of {contents:<parsed plugin contents>,fields:<fields>,subPluginTitles:<list>}
|
||||||
shadowTiddlers = Object.create(null), // Hashmap by title of {source:, tiddler:}
|
shadowTiddlerInfo = Object.create(null), // Hashmap by title of {source:, tiddler:}
|
||||||
shadowTiddlerTitles = null,
|
shadowTiddlerTitles = null, // Array of tiddler titles, calculated and cached when needed
|
||||||
getShadowTiddlerTitles = function() {
|
getShadowTiddlerTitles = function() {
|
||||||
if(!shadowTiddlerTitles) {
|
if(!shadowTiddlerTitles) {
|
||||||
shadowTiddlerTitles = Object.keys(shadowTiddlers).sort(function(a,b) {return a.localeCompare(b);});
|
shadowTiddlerTitles = Object.keys(shadowTiddlerInfo).sort(function(a,b) {return a.localeCompare(b);});
|
||||||
}
|
}
|
||||||
return shadowTiddlerTitles;
|
return shadowTiddlerTitles;
|
||||||
},
|
},
|
||||||
@@ -1218,7 +1222,7 @@ $tw.Wiki = function(options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Save the new tiddler
|
// Save the new tiddler
|
||||||
tiddlers[title] = tiddler;
|
tiddlerStore[title] = tiddler;
|
||||||
// Check we've got the title
|
// Check we've got the title
|
||||||
tiddlerTitles = $tw.utils.insertSortedArray(tiddlerTitles || [],title);
|
tiddlerTitles = $tw.utils.insertSortedArray(tiddlerTitles || [],title);
|
||||||
// Record the new tiddler state
|
// Record the new tiddler state
|
||||||
@@ -1243,7 +1247,7 @@ $tw.Wiki = function(options) {
|
|||||||
this.deleteTiddler = function(title) {
|
this.deleteTiddler = function(title) {
|
||||||
// Uncomment the following line for detailed logs of all tiddler deletions
|
// Uncomment the following line for detailed logs of all tiddler deletions
|
||||||
// console.log("Deleting",title)
|
// console.log("Deleting",title)
|
||||||
if($tw.utils.hop(tiddlers,title)) {
|
if($tw.utils.hop(tiddlerStore,title)) {
|
||||||
// Record the old tiddler state
|
// Record the old tiddler state
|
||||||
var updateDescriptor = {
|
var updateDescriptor = {
|
||||||
old: {
|
old: {
|
||||||
@@ -1253,7 +1257,7 @@ $tw.Wiki = function(options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Delete the tiddler
|
// Delete the tiddler
|
||||||
delete tiddlers[title];
|
delete tiddlerStore[title];
|
||||||
// Delete it from the list of titles
|
// Delete it from the list of titles
|
||||||
if(tiddlerTitles) {
|
if(tiddlerTitles) {
|
||||||
var index = tiddlerTitles.indexOf(title);
|
var index = tiddlerTitles.indexOf(title);
|
||||||
@@ -1281,11 +1285,11 @@ $tw.Wiki = function(options) {
|
|||||||
// Get a tiddler from the store
|
// Get a tiddler from the store
|
||||||
this.getTiddler = function(title) {
|
this.getTiddler = function(title) {
|
||||||
if(title) {
|
if(title) {
|
||||||
var t = tiddlers[title];
|
var t = tiddlerStore[title];
|
||||||
if(t !== undefined) {
|
if(t !== undefined) {
|
||||||
return t;
|
return t;
|
||||||
} else {
|
} else {
|
||||||
var s = shadowTiddlers[title];
|
var s = shadowTiddlerInfo[title];
|
||||||
if(s !== undefined) {
|
if(s !== undefined) {
|
||||||
return s.tiddler;
|
return s.tiddler;
|
||||||
}
|
}
|
||||||
@@ -1305,7 +1309,7 @@ $tw.Wiki = function(options) {
|
|||||||
index,titlesLength,title;
|
index,titlesLength,title;
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
callback(tiddlers[title],title);
|
callback(tiddlerStore[title],title);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1320,10 +1324,10 @@ $tw.Wiki = function(options) {
|
|||||||
index,titlesLength,title;
|
index,titlesLength,title;
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
if(tiddlers[title]) {
|
if(tiddlerStore[title]) {
|
||||||
callback(tiddlers[title],title);
|
callback(tiddlerStore[title],title);
|
||||||
} else {
|
} else {
|
||||||
var shadowInfo = shadowTiddlers[title];
|
var shadowInfo = shadowTiddlerInfo[title];
|
||||||
callback(shadowInfo.tiddler,title);
|
callback(shadowInfo.tiddler,title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1335,13 +1339,13 @@ $tw.Wiki = function(options) {
|
|||||||
titles = getTiddlerTitles();
|
titles = getTiddlerTitles();
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
callback(tiddlers[title],title);
|
callback(tiddlerStore[title],title);
|
||||||
}
|
}
|
||||||
titles = getShadowTiddlerTitles();
|
titles = getShadowTiddlerTitles();
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
if(!tiddlers[title]) {
|
if(!tiddlerStore[title]) {
|
||||||
var shadowInfo = shadowTiddlers[title];
|
var shadowInfo = shadowTiddlerInfo[title];
|
||||||
callback(shadowInfo.tiddler,title);
|
callback(shadowInfo.tiddler,title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1353,35 +1357,35 @@ $tw.Wiki = function(options) {
|
|||||||
titles = getShadowTiddlerTitles();
|
titles = getShadowTiddlerTitles();
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
if(tiddlers[title]) {
|
if(tiddlerStore[title]) {
|
||||||
callback(tiddlers[title],title);
|
callback(tiddlerStore[title],title);
|
||||||
} else {
|
} else {
|
||||||
var shadowInfo = shadowTiddlers[title];
|
var shadowInfo = shadowTiddlerInfo[title];
|
||||||
callback(shadowInfo.tiddler,title);
|
callback(shadowInfo.tiddler,title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
titles = getTiddlerTitles();
|
titles = getTiddlerTitles();
|
||||||
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
for(index = 0, titlesLength = titles.length; index < titlesLength; index++) {
|
||||||
title = titles[index];
|
title = titles[index];
|
||||||
if(!shadowTiddlers[title]) {
|
if(!shadowTiddlerInfo[title]) {
|
||||||
callback(tiddlers[title],title);
|
callback(tiddlerStore[title],title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Test for the existence of a tiddler (excludes shadow tiddlers)
|
// Test for the existence of a tiddler (excludes shadow tiddlers)
|
||||||
this.tiddlerExists = function(title) {
|
this.tiddlerExists = function(title) {
|
||||||
return !!$tw.utils.hop(tiddlers,title);
|
return !!$tw.utils.hop(tiddlerStore,title);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Determines if a tiddler is a shadow tiddler, regardless of whether it has been overridden by a real tiddler
|
// Determines if a tiddler is a shadow tiddler, regardless of whether it has been overridden by a real tiddler
|
||||||
this.isShadowTiddler = function(title) {
|
this.isShadowTiddler = function(title) {
|
||||||
return $tw.utils.hop(shadowTiddlers,title);
|
return $tw.utils.hop(shadowTiddlerInfo,title);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getShadowSource = function(title) {
|
this.getShadowSource = function(title) {
|
||||||
if($tw.utils.hop(shadowTiddlers,title)) {
|
if($tw.utils.hop(shadowTiddlerInfo,title)) {
|
||||||
return shadowTiddlers[title].source;
|
return shadowTiddlerInfo[title].source;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
@@ -1389,8 +1393,8 @@ $tw.Wiki = function(options) {
|
|||||||
// Get an array of all the currently recognised plugin types
|
// Get an array of all the currently recognised plugin types
|
||||||
this.getPluginTypes = function() {
|
this.getPluginTypes = function() {
|
||||||
var types = [];
|
var types = [];
|
||||||
$tw.utils.each(pluginTiddlers,function(pluginTiddler) {
|
$tw.utils.each(pluginTiddlersInfo,function(pluginTiddlerFields) {
|
||||||
var pluginType = pluginTiddler.fields["plugin-type"];
|
var pluginType = pluginTiddlerFields["plugin-type"];
|
||||||
if(pluginType && types.indexOf(pluginType) === -1) {
|
if(pluginType && types.indexOf(pluginType) === -1) {
|
||||||
types.push(pluginType);
|
types.push(pluginType);
|
||||||
}
|
}
|
||||||
@@ -1398,22 +1402,45 @@ $tw.Wiki = function(options) {
|
|||||||
return types;
|
return types;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Read plugin info for all plugins, or just an array of titles. Returns the number of plugins updated or deleted
|
// Read plugin contents for all plugins, or just an array of titles. Returns the list of updated plugin titles, the list of deleted plugin titles and
|
||||||
|
// a hashmap of the deleted plugin contents. Clears the pluginContents cache for any plugins that have been deleted
|
||||||
this.readPluginInfo = function(titles) {
|
this.readPluginInfo = function(titles) {
|
||||||
var results = {
|
var self = this,
|
||||||
|
results = {
|
||||||
modifiedPlugins: [],
|
modifiedPlugins: [],
|
||||||
deletedPlugins: []
|
deletedPlugins: [],
|
||||||
|
deletedPluginContents: {}
|
||||||
};
|
};
|
||||||
$tw.utils.each(titles || getTiddlerTitles(),function(title) {
|
$tw.utils.each(titles || getTiddlerTitles(),function(title) {
|
||||||
var tiddler = tiddlers[title];
|
var tiddler = self.getTiddler(title);
|
||||||
|
if(!tiddler) {
|
||||||
|
for(var t=0; t<pluginContents.length; t++) {
|
||||||
|
if(pluginContents[t].subPluginTitles.indexOf(title) !== -1) {
|
||||||
|
tiddler = new $tw.Tiddler(pluginContents[t].fields);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if(tiddler) {
|
if(tiddler) {
|
||||||
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type") && tiddler.fields.text) {
|
if(tiddler.isPlugin() && tiddler.fields.text) {
|
||||||
pluginInfo[tiddler.fields.title] = $tw.utils.parseJSONSafe(tiddler.fields.text);
|
var contents = $tw.utils.parseJSONSafe(tiddler.fields.text).tiddlers;
|
||||||
results.modifiedPlugins.push(tiddler.fields.title);
|
var subPluginTitles = [];
|
||||||
|
// Read any sub-plugins
|
||||||
|
$tw.utils.each(contents,function(subPluginFields,subPluginTitle) {
|
||||||
|
if(subPluginFields["plugin-type"] && subPluginFields["type"] === "application/json") {
|
||||||
|
var contents = $tw.utils.parseJSONSafe(subPluginFields.text).tiddlers
|
||||||
|
pluginContents[subPluginTitle] = {contents: contents,fields: subPluginFields};
|
||||||
|
results.modifiedPlugins.push(subPluginTitle);
|
||||||
|
subPluginTitles.push(subPluginTitle)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
pluginContents[title] = {contents: contents,fields: tiddler.fields,subPluginTitles: subPluginTitles};
|
||||||
|
results.modifiedPlugins.push(title);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(pluginInfo[title]) {
|
if(pluginContents[title]) {
|
||||||
delete pluginInfo[title];
|
results.deletedPluginContents[title] = {tiddlers: pluginContents[title].contents};
|
||||||
|
delete pluginContents[title];
|
||||||
results.deletedPlugins.push(title);
|
results.deletedPlugins.push(title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1421,34 +1448,42 @@ $tw.Wiki = function(options) {
|
|||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.isSubPlugin = function(title) {
|
||||||
|
for(var t=0; t<pluginContents.length; t++) {
|
||||||
|
if(pluginContents[t].subPluginTitles.indexOf(title) !== -1) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
// Get plugin info for a plugin
|
// Get plugin info for a plugin
|
||||||
this.getPluginInfo = function(title) {
|
this.getPluginInfo = function(title) {
|
||||||
return pluginInfo[title];
|
var pluginContent = pluginContents[title];
|
||||||
|
if(pluginContent) {
|
||||||
|
return {tiddlers: pluginContent.contents, subPluginTitles: pluginContent.subPluginTitles, fields: pluginContent.fields};
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Register the plugin tiddlers of a particular type, or null/undefined for any type, optionally restricting registration to an array of tiddler titles. Return the array of titles affected
|
// Register the plugin tiddlers of a particular type, or null/undefined for any type, optionally restricting registration to an array of tiddler titles. Return the array of titles affected
|
||||||
this.registerPluginTiddlers = function(pluginType,titles) {
|
this.registerPluginTiddlers = function(pluginType,titles) {
|
||||||
var self = this,
|
var self = this,
|
||||||
registeredTitles = [],
|
registeredTitles = [];
|
||||||
checkTiddler = function(tiddler,title) {
|
$tw.utils.each(pluginContents,function(pluginContent,pluginTitle) {
|
||||||
if(tiddler && tiddler.fields.type === "application/json" && tiddler.fields["plugin-type"] && (!pluginType || tiddler.fields["plugin-type"] === pluginType)) {
|
var pluginFields = pluginContent.fields;
|
||||||
var disablingTiddler = self.getTiddler("$:/config/Plugins/Disabled/" + title);
|
if(!titles || titles.indexOf(pluginTitle) !== -1) {
|
||||||
if(title === "$:/core" || !disablingTiddler || (disablingTiddler.fields.text || "").trim() !== "yes") {
|
if(!pluginType || pluginFields["plugin-type"] === pluginType) {
|
||||||
self.unregisterPluginTiddlers(null,[title]); // Unregister the plugin if it's already registered
|
var disablingTiddler = self.getTiddler("$:/config/Plugins/Disabled/" + pluginTitle);
|
||||||
pluginTiddlers.push(tiddler);
|
if(pluginTitle === "$:/core" || !disablingTiddler || (disablingTiddler.fields.text || "").trim() !== "yes") {
|
||||||
registeredTitles.push(tiddler.fields.title);
|
self.unregisterPluginTiddlers(null,[pluginTitle]); // Unregister the plugin if it's already registered
|
||||||
|
pluginTiddlersInfo.push(pluginFields);
|
||||||
|
registeredTitles.push(pluginTitle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
if(titles) {
|
|
||||||
$tw.utils.each(titles,function(title) {
|
|
||||||
checkTiddler(self.getTiddler(title),title);
|
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.each(function(tiddler,title) {
|
|
||||||
checkTiddler(tiddler,title);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return registeredTitles;
|
return registeredTitles;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1457,11 +1492,11 @@ $tw.Wiki = function(options) {
|
|||||||
var self = this,
|
var self = this,
|
||||||
unregisteredTitles = [];
|
unregisteredTitles = [];
|
||||||
// Remove any previous registered plugins of this type
|
// Remove any previous registered plugins of this type
|
||||||
for(var t=pluginTiddlers.length-1; t>=0; t--) {
|
for(var t=pluginTiddlersInfo.length-1; t>=0; t--) {
|
||||||
var tiddler = pluginTiddlers[t];
|
var pluginFields = pluginTiddlersInfo[t];
|
||||||
if(tiddler.fields["plugin-type"] && (!pluginType || tiddler.fields["plugin-type"] === pluginType) && (!titles || titles.indexOf(tiddler.fields.title) !== -1)) {
|
if(pluginFields["plugin-type"] && (!pluginType || pluginFields["plugin-type"] === pluginType) && (!titles || titles.indexOf(pluginFields.title) !== -1)) {
|
||||||
unregisteredTitles.push(tiddler.fields.title);
|
unregisteredTitles.push(pluginFields.title);
|
||||||
pluginTiddlers.splice(t,1);
|
pluginTiddlersInfo.splice(t,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return unregisteredTitles;
|
return unregisteredTitles;
|
||||||
@@ -1470,39 +1505,34 @@ $tw.Wiki = function(options) {
|
|||||||
// Unpack the currently registered plugins, creating shadow tiddlers for their constituent tiddlers
|
// Unpack the currently registered plugins, creating shadow tiddlers for their constituent tiddlers
|
||||||
this.unpackPluginTiddlers = function() {
|
this.unpackPluginTiddlers = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
// Sort the plugin titles by the `plugin-priority` field
|
// Sort the plugin titles by the `plugin-priority` field, if this field is missing, default to 1
|
||||||
pluginTiddlers.sort(function(a,b) {
|
pluginTiddlersInfo.sort(function(a, b) {
|
||||||
if("plugin-priority" in a.fields && "plugin-priority" in b.fields) {
|
var priorityA = "plugin-priority" in a ? a["plugin-priority"] : 1,
|
||||||
return a.fields["plugin-priority"] - b.fields["plugin-priority"];
|
priorityB = "plugin-priority" in b ? b["plugin-priority"] : 1;
|
||||||
} else if("plugin-priority" in a.fields) {
|
if (priorityA !== priorityB) {
|
||||||
|
return priorityA - priorityB;
|
||||||
|
} else if (a.title < b.title) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if("plugin-priority" in b.fields) {
|
} else if (a.title === b.title) {
|
||||||
return +1;
|
|
||||||
} else if(a.fields.title < b.fields.title) {
|
|
||||||
return -1;
|
|
||||||
} else if(a.fields.title === b.fields.title) {
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return +1;
|
return +1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Now go through the plugins in ascending order and assign the shadows
|
// Now go through the plugins in ascending order and assign the shadows
|
||||||
shadowTiddlers = Object.create(null);
|
shadowTiddlerInfo = Object.create(null);
|
||||||
$tw.utils.each(pluginTiddlers,function(tiddler) {
|
$tw.utils.each(pluginTiddlersInfo,function(tiddlerFields) {
|
||||||
|
var contents = pluginContents[tiddlerFields.title].contents;
|
||||||
// Extract the constituent tiddlers
|
// Extract the constituent tiddlers
|
||||||
if($tw.utils.hop(pluginInfo,tiddler.fields.title)) {
|
$tw.utils.each(contents,function(constituentTiddler,constituentTitle) {
|
||||||
$tw.utils.each(pluginInfo[tiddler.fields.title].tiddlers,function(constituentTiddler,constituentTitle) {
|
|
||||||
// Save the tiddler object
|
// Save the tiddler object
|
||||||
if(constituentTitle) {
|
shadowTiddlerInfo[constituentTitle] = {
|
||||||
shadowTiddlers[constituentTitle] = {
|
source: tiddlerFields.title,
|
||||||
source: tiddler.fields.title,
|
|
||||||
tiddler: new $tw.Tiddler(constituentTiddler,{title: constituentTitle})
|
tiddler: new $tw.Tiddler(constituentTiddler,{title: constituentTitle})
|
||||||
};
|
};
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
shadowTiddlerTitles = null;
|
shadowTiddlerTitles = null; // Force regeneration of the shadow tiddler titles list
|
||||||
this.clearCache(null);
|
this.clearCache(null);
|
||||||
this.clearGlobalCache();
|
this.clearGlobalCache();
|
||||||
$tw.utils.each(indexers,function(indexer) {
|
$tw.utils.each(indexers,function(indexer) {
|
||||||
@@ -1904,8 +1934,16 @@ $tw.loadTiddlersFromFile = function(filepath,fields) {
|
|||||||
extensionInfo = $tw.utils.getFileExtensionInfo(ext),
|
extensionInfo = $tw.utils.getFileExtensionInfo(ext),
|
||||||
type = extensionInfo ? extensionInfo.type : null,
|
type = extensionInfo ? extensionInfo.type : null,
|
||||||
typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
|
typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
|
||||||
data = fs.readFileSync(filepath,typeInfo ? typeInfo.encoding : "utf8"),
|
fileSize = fs.statSync(filepath).size,
|
||||||
tiddlers = $tw.wiki.deserializeTiddlers(ext,data,fields),
|
data;
|
||||||
|
if(fileSize > $tw.config.maxEditFileSize) {
|
||||||
|
data = "File " + filepath + "not loaded because it is too large";
|
||||||
|
console.log("Warning: " + data);
|
||||||
|
ext = ".txt";
|
||||||
|
} else {
|
||||||
|
data = fs.readFileSync(filepath,typeInfo ? typeInfo.encoding : "utf8");
|
||||||
|
}
|
||||||
|
var tiddlers = $tw.wiki.deserializeTiddlers(ext,data,fields),
|
||||||
metadata = $tw.loadMetadataForFile(filepath);
|
metadata = $tw.loadMetadataForFile(filepath);
|
||||||
if(metadata) {
|
if(metadata) {
|
||||||
if(type === "application/json") {
|
if(type === "application/json") {
|
||||||
@@ -1938,7 +1976,7 @@ $tw.boot.excludeRegExp = /^\.DS_Store$|^.*\.meta$|^\..*\.swp$|^\._.*$|^\.git$|^\
|
|||||||
/*
|
/*
|
||||||
Load all the tiddlers recursively from a directory, including honouring `tiddlywiki.files` files for drawing in external files. Returns an array of {filepath:,type:,tiddlers: [{..fields...}],hasMetaFile:}. Note that no file information is returned for externally loaded tiddlers, just the `tiddlers` property.
|
Load all the tiddlers recursively from a directory, including honouring `tiddlywiki.files` files for drawing in external files. Returns an array of {filepath:,type:,tiddlers: [{..fields...}],hasMetaFile:}. Note that no file information is returned for externally loaded tiddlers, just the `tiddlers` property.
|
||||||
*/
|
*/
|
||||||
$tw.loadTiddlersFromPath = function(filepath,excludeRegExp) {
|
$tw.loadTiddlersFromPath = function(filepath,excludeRegExp,excludePluginInfo) {
|
||||||
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
|
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
|
||||||
var tiddlers = [];
|
var tiddlers = [];
|
||||||
if(fs.existsSync(filepath)) {
|
if(fs.existsSync(filepath)) {
|
||||||
@@ -1948,11 +1986,17 @@ $tw.loadTiddlersFromPath = function(filepath,excludeRegExp) {
|
|||||||
// Look for a tiddlywiki.files file
|
// Look for a tiddlywiki.files file
|
||||||
if(files.indexOf("tiddlywiki.files") !== -1) {
|
if(files.indexOf("tiddlywiki.files") !== -1) {
|
||||||
Array.prototype.push.apply(tiddlers,$tw.loadTiddlersFromSpecification(filepath,excludeRegExp));
|
Array.prototype.push.apply(tiddlers,$tw.loadTiddlersFromSpecification(filepath,excludeRegExp));
|
||||||
|
} else if(files.indexOf("plugin.info") !== -1 && !excludePluginInfo) {
|
||||||
|
// Load sub-plugin
|
||||||
|
var tiddler = $tw.loadPluginFolder(filepath);
|
||||||
|
if(tiddler) {
|
||||||
|
tiddlers.push({tiddlers: [tiddler]});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// If not, read all the files in the directory
|
// If not, read all the files in the directory
|
||||||
$tw.utils.each(files,function(file) {
|
$tw.utils.each(files,function(file) {
|
||||||
if(!excludeRegExp.test(file) && file !== "plugin.info") {
|
if(!excludeRegExp.test(file) && file !== "plugin.info") {
|
||||||
tiddlers.push.apply(tiddlers,$tw.loadTiddlersFromPath(filepath + path.sep + file,excludeRegExp));
|
tiddlers.push.apply(tiddlers,$tw.loadTiddlersFromPath(path.join(filepath,file),excludeRegExp));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -2099,54 +2143,69 @@ Load the tiddlers from a plugin folder, and package them up into a proper JSON p
|
|||||||
*/
|
*/
|
||||||
$tw.loadPluginFolder = function(filepath,excludeRegExp) {
|
$tw.loadPluginFolder = function(filepath,excludeRegExp) {
|
||||||
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
|
excludeRegExp = excludeRegExp || $tw.boot.excludeRegExp;
|
||||||
var infoPath = filepath + path.sep + "plugin.info";
|
function readPluginFields(filepath) {
|
||||||
if(fs.existsSync(filepath) && fs.statSync(filepath).isDirectory()) {
|
if(!(fs.existsSync(filepath) && fs.statSync(filepath).isDirectory())) {
|
||||||
// Read the plugin information
|
|
||||||
if(!fs.existsSync(infoPath) || !fs.statSync(infoPath).isFile()) {
|
|
||||||
console.log("Warning: missing plugin.info file in " + filepath);
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
var pluginInfo = $tw.utils.parseJSONSafe(fs.readFileSync(infoPath,"utf8"),function() {return null;});
|
var infoPath = path.join(filepath,"plugin.info");
|
||||||
if(!pluginInfo) {
|
// Read the plugin information file
|
||||||
console.log("warning: invalid JSON in plugin.info file at " + infoPath);
|
if(!fs.existsSync(infoPath) || !fs.statSync(infoPath).isFile()) {
|
||||||
pluginInfo = {};
|
return null;
|
||||||
}
|
}
|
||||||
// Read the plugin files
|
var pluginFields = $tw.utils.parseJSONSafe(fs.readFileSync(infoPath,"utf8"),{});
|
||||||
var pluginFiles = $tw.loadTiddlersFromPath(filepath,excludeRegExp);
|
if(!(pluginFields.title && pluginFields.name)) {
|
||||||
// Save the plugin tiddlers into the plugin info
|
return null;
|
||||||
pluginInfo.tiddlers = pluginInfo.tiddlers || Object.create(null);
|
}
|
||||||
|
// Give the plugin the same version number as the core if it doesn't have one
|
||||||
|
if(!("version" in pluginFields)) {
|
||||||
|
pluginFields.version = $tw.packageInfo.version;
|
||||||
|
}
|
||||||
|
// Use "plugin" as the plugin-type if we don't have one
|
||||||
|
if(!("plugin-type" in pluginFields)) {
|
||||||
|
pluginFields["plugin-type"] = "plugin";
|
||||||
|
}
|
||||||
|
// Set the dependents and type
|
||||||
|
pluginFields.dependents = pluginFields.dependents || [];
|
||||||
|
pluginFields.type = "application/json";
|
||||||
|
// Deserialise array fields (currently required for the dependents field)
|
||||||
|
for(var field in pluginFields) {
|
||||||
|
if($tw.utils.isArray(pluginFields[field])) {
|
||||||
|
pluginFields[field] = $tw.utils.stringifyList(pluginFields[field]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return pluginFields;
|
||||||
|
}
|
||||||
|
function readPluginTiddlers(tiddlersPath) {
|
||||||
|
var pluginFiles = $tw.loadTiddlersFromPath(tiddlersPath,excludeRegExp,true),
|
||||||
|
pluginTiddlers = {};
|
||||||
|
// Save the plugin tiddlers into the plugin payload
|
||||||
for(var f=0; f<pluginFiles.length; f++) {
|
for(var f=0; f<pluginFiles.length; f++) {
|
||||||
var tiddlers = pluginFiles[f].tiddlers;
|
var tiddlers = pluginFiles[f].tiddlers;
|
||||||
|
if(!tiddlers) {
|
||||||
|
console.log(`Gosh ${JSON.stringify(pluginFiles[f])}`)
|
||||||
|
}
|
||||||
for(var t=0; t<tiddlers.length; t++) {
|
for(var t=0; t<tiddlers.length; t++) {
|
||||||
var tiddler= tiddlers[t];
|
var tiddler= tiddlers[t];
|
||||||
if(tiddler.title) {
|
if(tiddler.title) {
|
||||||
pluginInfo.tiddlers[tiddler.title] = tiddler;
|
pluginTiddlers[tiddler.title] = tiddler;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Give the plugin the same version number as the core if it doesn't have one
|
return pluginTiddlers;
|
||||||
if(!("version" in pluginInfo)) {
|
|
||||||
pluginInfo.version = $tw.packageInfo.version;
|
|
||||||
}
|
}
|
||||||
// Use "plugin" as the plugin-type if we don't have one
|
// Get the primary plugin fields
|
||||||
if(!("plugin-type" in pluginInfo)) {
|
var pluginFields = readPluginFields(filepath);
|
||||||
pluginInfo["plugin-type"] = "plugin";
|
if(!pluginFields) {
|
||||||
}
|
console.log("Warning: missing or invalid plugin.info file in " + filepath);
|
||||||
pluginInfo.dependents = pluginInfo.dependents || [];
|
|
||||||
pluginInfo.type = "application/json";
|
|
||||||
// Set plugin text
|
|
||||||
pluginInfo.text = JSON.stringify({tiddlers: pluginInfo.tiddlers});
|
|
||||||
delete pluginInfo.tiddlers;
|
|
||||||
// Deserialise array fields (currently required for the dependents field)
|
|
||||||
for(var field in pluginInfo) {
|
|
||||||
if($tw.utils.isArray(pluginInfo[field])) {
|
|
||||||
pluginInfo[field] = $tw.utils.stringifyList(pluginInfo[field]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return pluginInfo;
|
|
||||||
} else {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
// The payload to be stored in the plugin text field in JSON
|
||||||
|
var pluginPayload = {tiddlers: {}};
|
||||||
|
// Get the constituent tiddlers of the plugin
|
||||||
|
pluginPayload.tiddlers = readPluginTiddlers(filepath);
|
||||||
|
// Set plugin text
|
||||||
|
pluginFields.text = JSON.stringify(pluginPayload);
|
||||||
|
return pluginFields;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -2465,13 +2524,15 @@ $tw.boot.initStartup = function(options) {
|
|||||||
$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});
|
$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/heic","base64",".heic",{flags:["image"]});
|
$tw.utils.registerFileType("image/heic","base64",".heic",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/heif","base64",".heif",{flags:["image"]});
|
$tw.utils.registerFileType("image/heif","base64",".heif",{flags:["image"]});
|
||||||
|
$tw.utils.registerFileType("image/avif","base64",".avif",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/svg+xml","utf8",".svg",{flags:["image"]});
|
$tw.utils.registerFileType("image/svg+xml","utf8",".svg",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/vnd.microsoft.icon","base64",".ico",{flags:["image"]});
|
$tw.utils.registerFileType("image/vnd.microsoft.icon","base64",".ico",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
|
$tw.utils.registerFileType("image/x-icon","base64",".ico",{flags:["image"]});
|
||||||
$tw.utils.registerFileType("application/wasm","base64",".wasm");
|
$tw.utils.registerFileType("application/wasm","base64",".wasm");
|
||||||
$tw.utils.registerFileType("application/font-woff","base64",".woff");
|
$tw.utils.registerFileType("font/woff","base64",".woff");
|
||||||
$tw.utils.registerFileType("application/x-font-ttf","base64",".woff");
|
$tw.utils.registerFileType("font/woff2","base64",".woff2");
|
||||||
$tw.utils.registerFileType("application/font-woff2","base64",".woff2");
|
$tw.utils.registerFileType("font/ttf","base64",".ttf");
|
||||||
|
$tw.utils.registerFileType("font/otf","base64",".otf");
|
||||||
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
|
$tw.utils.registerFileType("audio/ogg","base64",".ogg");
|
||||||
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
$tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]);
|
||||||
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);
|
$tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]);
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ var _bootprefix = (function($tw) {
|
|||||||
$tw = $tw || Object.create(null);
|
$tw = $tw || Object.create(null);
|
||||||
$tw.boot = $tw.boot || Object.create(null);
|
$tw.boot = $tw.boot || Object.create(null);
|
||||||
|
|
||||||
|
// Config
|
||||||
|
$tw.config = $tw.config || Object.create(null);
|
||||||
|
$tw.config.maxEditFileSize = 100 * 1024 * 1024; // 100MB
|
||||||
|
|
||||||
// Detect platforms
|
// Detect platforms
|
||||||
if(!("browser" in $tw)) {
|
if(!("browser" in $tw)) {
|
||||||
$tw.browser = typeof(window) !== "undefined" && typeof(document) !== "undefined" ? {} : null;
|
$tw.browser = typeof(window) !== "undefined" && typeof(document) !== "undefined" ? {} : null;
|
||||||
|
|||||||
@@ -5,7 +5,3 @@ TiddlyWiki incorporates code from these fine OpenSource projects:
|
|||||||
* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]
|
* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]
|
||||||
* [[The Jasmine JavaScript Test Framework|https://jasmine.github.io/]]
|
* [[The Jasmine JavaScript Test Framework|https://jasmine.github.io/]]
|
||||||
* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]
|
* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]
|
||||||
|
|
||||||
And media from these projects:
|
|
||||||
|
|
||||||
* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]]
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ type: text/plain
|
|||||||
TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)
|
TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)
|
||||||
|
|
||||||
Copyright (c) 2004-2007, Jeremy Ruston
|
Copyright (c) 2004-2007, Jeremy Ruston
|
||||||
Copyright (c) 2007-2024, UnaMesa Association
|
Copyright (c) 2007-2025, UnaMesa Association
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|||||||
5
core/images/language.tid
Normal file
5
core/images/language.tid
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
title: $:/core/images/language
|
||||||
|
tags: $:/tags/Image
|
||||||
|
|
||||||
|
\parameters (size:"22pt")
|
||||||
|
<svg width=<<size>> height=<<size>> class="tc-image-language tc-image-button" viewBox="0 0 92 92"><path d="M0 0h2480.32v3507.87H0z" style="fill:none" transform="scale(.03696 .02613)"/><path d="M71.508 62.298c-1.243 15.83-16.758 28.344-35.714 28.344-5.713 0-11.113-1.136-15.905-3.158-2.977 2.498-8.618 4.183-15.088 4.183-.929 0-1.84-.034-2.73-.102 4.499-1.5 7.989-4.886 9.298-9.099C4.373 76.918 0 69.016 0 60.246 0 49.773 6.237 40.537 15.729 35.07c1.235 7.764 5.492 14.713 11.724 19.953l-7.269 18.453c-.393.976-.676 1.737-.847 2.285a5.326 5.326 0 0 0-.256 1.591c0 .89.368 1.686 1.103 2.388.736.702 1.583 1.052 2.542 1.052 1.13 0 1.942-.33 2.438-.988.497-.659 1.096-1.93 1.797-3.812l1.797-4.826h15.3l1.797 4.723c.239.582.526 1.254.86 2.015.333.762.646 1.327.936 1.695.291.368.65.659 1.078.873.428.213.942.32 1.54.32a3.586 3.586 0 0 0 2.632-1.09c.727-.728 1.09-1.528 1.09-2.4 0-.84-.384-2.183-1.154-4.031l-3.545-8.755c2.142.3 4.34.455 6.58.455 5.541 0 10.824-.951 15.636-2.674Zm-30.563.247 1.059 2.898H30.76l2.32-6.467a43.152 43.152 0 0 0 7.865 3.569Z"/><path d="M71.778 57.635c-4.793 2.023-10.191 3.157-15.907 3.157-19.767 0-35.793-13.61-35.793-30.396S36.104.001 55.87.001c19.772 0 35.797 13.61 35.797 30.395 0 8.77-4.373 16.674-11.371 22.221 1.309 4.211 4.8 7.6 9.299 9.1-.89.067-1.802.1-2.73.1-6.47 0-12.11-1.686-15.088-4.182Zm-15.59-15.887a44.237 44.237 0 0 0 3.3 2.496c4.284 2.942 9.06 5.381 14.33 7.315l2.334-3.517c-5.134-1.871-9.696-4.125-13.69-6.763a42.558 42.558 0 0 1-3.37-2.483c4.247-4.806 7.374-10.43 9.38-16.869h6.698V17.78h-16.7a47.226 47.226 0 0 0-1.528-2.959 52.943 52.943 0 0 0-2.885-4.562l-4.218 1.554a36.467 36.467 0 0 1 2.971 3.983c.427.661.833 1.323 1.217 1.984H36.394v4.148h6.77a36.878 36.878 0 0 0 5.422 11.56 42.918 42.918 0 0 0 4.591 5.497c-4.687 4.017-10.548 6.932-17.582 8.744l2.247 3.709c7.746-2.44 13.861-5.67 18.347-9.689Zm-9.047-19.82h16.991c-1.86 5.668-4.528 10.402-8 14.204a42.526 42.526 0 0 1-4.247-4.922c-2.126-2.883-3.71-5.977-4.744-9.283Z"/></svg>
|
||||||
@@ -3,5 +3,8 @@ name: en-GB
|
|||||||
description: English (British)
|
description: English (British)
|
||||||
author: JeremyRuston
|
author: JeremyRuston
|
||||||
core-version: >=5.0.0"
|
core-version: >=5.0.0"
|
||||||
|
plugin-type: language
|
||||||
|
type: application/json
|
||||||
|
hidden: yes
|
||||||
|
|
||||||
Stub pseudo-plugin for the default language
|
{tidddlers:{}}
|
||||||
@@ -96,6 +96,10 @@ Plugins/PluginWillRequireReload: (requires reload)
|
|||||||
Plugins/Plugins/Caption: Plugins
|
Plugins/Plugins/Caption: Plugins
|
||||||
Plugins/Plugins/Hint: Plugins
|
Plugins/Plugins/Hint: Plugins
|
||||||
Plugins/Reinstall/Caption: reinstall
|
Plugins/Reinstall/Caption: reinstall
|
||||||
|
Plugins/Stability/Deprecated: DEPRECATED
|
||||||
|
Plugins/Stability/Experimental: EXPERIMENTAL
|
||||||
|
Plugins/Stability/Legacy: LEGACY
|
||||||
|
Plugins/Stability/Stable: STABLE
|
||||||
Plugins/Themes/Caption: Themes
|
Plugins/Themes/Caption: Themes
|
||||||
Plugins/Themes/Hint: Theme plugins
|
Plugins/Themes/Hint: Theme plugins
|
||||||
Plugins/Update/Caption: update
|
Plugins/Update/Caption: update
|
||||||
@@ -171,6 +175,8 @@ Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description: Update addres
|
|||||||
Settings/PerformanceInstrumentation/Caption: Performance Instrumentation
|
Settings/PerformanceInstrumentation/Caption: Performance Instrumentation
|
||||||
Settings/PerformanceInstrumentation/Hint: Displays performance statistics in the browser developer console. Requires reload to take effect
|
Settings/PerformanceInstrumentation/Hint: Displays performance statistics in the browser developer console. Requires reload to take effect
|
||||||
Settings/PerformanceInstrumentation/Description: Enable performance instrumentation
|
Settings/PerformanceInstrumentation/Description: Enable performance instrumentation
|
||||||
|
Settings/RecentLimit/Caption: Recent Tab Limit
|
||||||
|
Settings/RecentLimit/Hint: Maximum number of tiddlers to be displayed under the sidebar "Recent" tab
|
||||||
Settings/ToolbarButtonStyle/Caption: Toolbar Button Style
|
Settings/ToolbarButtonStyle/Caption: Toolbar Button Style
|
||||||
Settings/ToolbarButtonStyle/Hint: Choose the style for toolbar buttons:
|
Settings/ToolbarButtonStyle/Hint: Choose the style for toolbar buttons:
|
||||||
Settings/ToolbarButtonStyle/Styles/Borderless: Borderless
|
Settings/ToolbarButtonStyle/Styles/Borderless: Borderless
|
||||||
@@ -200,10 +206,10 @@ Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist
|
|||||||
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
Settings/MissingLinks/Description: Enable links to missing tiddlers
|
||||||
SocialCard/Caption: Social Media Card
|
SocialCard/Caption: Social Media Card
|
||||||
SocialCard/Domain/Prompt: Domain name to display for the link (for example, ''tiddlywiki.com'')
|
SocialCard/Domain/Prompt: Domain name to display for the link (for example, ''tiddlywiki.com'')
|
||||||
SocialCard/Hint: This information is used by social and messaging services to display a preview card for links to this TiddlyWiki when hosted online
|
SocialCard/Hint: This information is used by social and messaging services to display a preview card for links to this ~TiddlyWiki when hosted online
|
||||||
SocialCard/PreviewUrl/Prompt: Full URL to preview image for this TiddlyWiki
|
SocialCard/PreviewUrl/Prompt: Full URL to preview image for this ~TiddlyWiki
|
||||||
SocialCard/PreviewUrl/Preview: Preview image:
|
SocialCard/PreviewUrl/Preview: Preview image:
|
||||||
SocialCard/Url/Prompt: Full URL of this TiddlyWiki
|
SocialCard/Url/Prompt: Full URL of this ~TiddlyWiki
|
||||||
StoryTiddler/Caption: Story Tiddler
|
StoryTiddler/Caption: Story Tiddler
|
||||||
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
StoryTiddler/Hint: This rule cascade is used to dynamically choose the template for displaying a tiddler in the story river.
|
||||||
StoryView/Caption: Story View
|
StoryView/Caption: Story View
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ Tags/ClearInput/Caption: clear input
|
|||||||
Tags/ClearInput/Hint: Clear tag input
|
Tags/ClearInput/Hint: Clear tag input
|
||||||
Tags/Dropdown/Caption: tag list
|
Tags/Dropdown/Caption: tag list
|
||||||
Tags/Dropdown/Hint: Show tag list
|
Tags/Dropdown/Hint: Show tag list
|
||||||
|
Tags/EmptyMessage: No tags found
|
||||||
|
Tags/EmptyMessage/System: No system tags found
|
||||||
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
||||||
Title/Exists/Prompt: Target tiddler already exists
|
Title/Exists/Prompt: Target tiddler already exists
|
||||||
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ Filter/Hint: Search via a [[filter expression|https://tiddlywiki.com/static/Filt
|
|||||||
Filter/Matches: //<small><<resultCount>> matches</small>//
|
Filter/Matches: //<small><<resultCount>> matches</small>//
|
||||||
Matches: //<small><<resultCount>> matches</small>//
|
Matches: //<small><<resultCount>> matches</small>//
|
||||||
Matches/All: All matches:
|
Matches/All: All matches:
|
||||||
|
Matches/NoMatch: //No match//
|
||||||
|
Matches/NoResult: //No search result//
|
||||||
Matches/Title: Title matches:
|
Matches/Title: Title matches:
|
||||||
Search: Search
|
Search: Search
|
||||||
Search/TooShort: Search text too short
|
Search/TooShort: Search text too short
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
title: $:/languages/en-GB/icon
|
|
||||||
type: image/svg+xml
|
|
||||||
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600">
|
|
||||||
<clipPath id="t">
|
|
||||||
<path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/>
|
|
||||||
</clipPath>
|
|
||||||
<path d="M0,0 v30 h60 v-30 z" fill="#00247d"/>
|
|
||||||
<path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/>
|
|
||||||
<path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(#t)" stroke="#cf142b" stroke-width="4"/>
|
|
||||||
<path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/>
|
|
||||||
<path d="M30,0 v30 M0,15 h60" stroke="#cf142b" stroke-width="6"/>
|
|
||||||
</svg>
|
|
||||||
@@ -6,10 +6,7 @@ module-type: global
|
|||||||
The $tw.Commander class is a command interpreter
|
The $tw.Commander class is a command interpreter
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -173,5 +170,3 @@ Commander.initCommands = function(moduleType) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Commander = Commander;
|
exports.Commander = Commander;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to build a build target
|
Command to build a build target
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -24,7 +21,7 @@ var Command = function(params,commander) {
|
|||||||
|
|
||||||
Command.prototype.execute = function() {
|
Command.prototype.execute = function() {
|
||||||
// Get the build targets defined in the wiki
|
// Get the build targets defined in the wiki
|
||||||
var buildTargets = $tw.boot.wikiInfo.build;
|
var buildTargets = $tw.boot.wikiInfo && $tw.boot.wikiInfo.build;
|
||||||
if(!buildTargets) {
|
if(!buildTargets) {
|
||||||
return "No build targets defined";
|
return "No build targets defined";
|
||||||
}
|
}
|
||||||
@@ -48,5 +45,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Clear password for crypto operations
|
Clear password for crypto operations
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -29,5 +26,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ Runs the commands returned from a filter
|
|||||||
|
|
||||||
\*/
|
\*/
|
||||||
|
|
||||||
(function() {
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -38,5 +34,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to delete tiddlers
|
Command to delete tiddlers
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -38,5 +35,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to list the available editions
|
Command to list the available editions
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -35,5 +32,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Commands to fetch external tiddlers
|
Commands to fetch external tiddlers
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -171,5 +168,3 @@ Command.prototype.processBody = function(body,type,options,url) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Help command
|
Help command
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jshint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -37,5 +34,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to import tiddlers from a file
|
Command to import tiddlers from a file
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -44,5 +41,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to initialise an empty wiki folder
|
Command to initialise an empty wiki folder
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -55,5 +52,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Listen for HTTP requests and serve tiddlers
|
Listen for HTTP requests and serve tiddlers
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Server = require("$:/core/modules/server/server.js").Server;
|
var Server = require("$:/core/modules/server/server.js").Server;
|
||||||
@@ -44,5 +41,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to load tiddlers from a file or directory
|
Command to load tiddlers from a file or directory
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -47,5 +44,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to pack all of the plugins in the library into a plugin tiddler of type "library"
|
Command to pack all of the plugins in the library into a plugin tiddler of type "library"
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -41,5 +38,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to set the default output location (defaults to current working directory)
|
Command to set the default output location (defaults to current working directory)
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -34,5 +31,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Save password for crypto operations
|
Save password for crypto operations
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -32,5 +29,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Render individual tiddlers and save the results to the specified files
|
Render individual tiddlers and save the results to the specified files
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var widget = require("$:/core/modules/widgets/widget.js");
|
var widget = require("$:/core/modules/widgets/widget.js");
|
||||||
@@ -66,6 +63,3 @@ Render individual tiddlers and save the results to the specified files
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|
||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to render a tiddler and save it to a file
|
Command to render a tiddler and save it to a file
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -53,5 +50,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to render several tiddlers to a folder of files
|
Command to render several tiddlers to a folder of files
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var widget = require("$:/core/modules/widgets/widget.js");
|
var widget = require("$:/core/modules/widgets/widget.js");
|
||||||
@@ -65,5 +62,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Saves individual tiddlers in their raw text or binary format to the specified files
|
Saves individual tiddlers in their raw text or binary format to the specified files
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -64,6 +61,3 @@ Saves individual tiddlers in their raw text or binary format to the specified fi
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|
||||||
@@ -16,10 +16,7 @@ The pathname specifies the pathname to the folder in which the JSON files should
|
|||||||
The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.
|
The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -94,5 +91,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to save the content of a tiddler to a file
|
Command to save the content of a tiddler to a file
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -47,5 +44,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to save several tiddlers to a folder of files
|
Command to save several tiddlers to a folder of files
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var widget = require("$:/core/modules/widgets/widget.js");
|
var widget = require("$:/core/modules/widgets/widget.js");
|
||||||
@@ -52,5 +49,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -15,10 +15,7 @@ The following options are supported:
|
|||||||
Supports backward compatibility with --savewikifolder <wikifolderpath> [<filter>] [ [<name>=<value>] ]*
|
Supports backward compatibility with --savewikifolder <wikifolderpath> [<filter>] [ [<name>=<value>] ]*
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -221,5 +218,3 @@ WikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Deprecated legacy command for serving tiddlers
|
Deprecated legacy command for serving tiddlers
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Server = require("$:/core/modules/server/server.js").Server;
|
var Server = require("$:/core/modules/server/server.js").Server;
|
||||||
@@ -51,5 +48,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.
|
Command to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var widget = require("$:/core/modules/widgets/widget.js");
|
var widget = require("$:/core/modules/widgets/widget.js");
|
||||||
@@ -54,5 +51,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Command to extract the shadow tiddlers from within a plugin
|
Command to extract the shadow tiddlers from within a plugin
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -40,5 +37,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Verbose command
|
Verbose command
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -30,5 +27,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: command
|
|||||||
Version command
|
Version command
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.info = {
|
exports.info = {
|
||||||
@@ -28,5 +25,3 @@ Command.prototype.execute = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.Command = Command;
|
exports.Command = Command;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: config
|
|||||||
Core configuration constants
|
Core configuration constants
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.preferences = {};
|
exports.preferences = {};
|
||||||
@@ -37,5 +34,3 @@ exports.htmlVoidElements = "area,base,br,col,command,embed,hr,img,input,keygen,l
|
|||||||
exports.htmlBlockElements = "address,article,aside,audio,blockquote,canvas,dd,details,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,nav,ol,p,pre,section,summary,table,tfoot,ul,video".split(",");
|
exports.htmlBlockElements = "address,article,aside,audio,blockquote,canvas,dd,details,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,nav,ol,p,pre,section,summary,table,tfoot,ul,video".split(",");
|
||||||
|
|
||||||
exports.htmlUnsafeElements = "script".split(",");
|
exports.htmlUnsafeElements = "script".split(",");
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: tiddlerdeserializer
|
|||||||
Functions to deserialise tiddlers from a block of text
|
Functions to deserialise tiddlers from a block of text
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["application/x-tiddler-html-div"] = function(text,fields) {
|
exports["application/x-tiddler-html-div"] = function(text,fields) {
|
||||||
@@ -181,5 +178,3 @@ var deserializeTiddlerDiv = function(text /* [,fields] */) {
|
|||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: library
|
|||||||
Text editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea
|
Text editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true,browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
|
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
|
||||||
@@ -273,5 +270,3 @@ FramedEngine.prototype.executeTextOperation = function(operation) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.FramedEngine = FramedEngine;
|
exports.FramedEngine = FramedEngine;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: library
|
|||||||
Text editor engine based on a simple input or textarea tag
|
Text editor engine based on a simple input or textarea tag
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
|
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
|
||||||
@@ -172,5 +169,3 @@ SimpleEngine.prototype.executeTextOperation = function(operation) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.SimpleEngine = SimpleEngine;
|
exports.SimpleEngine = SimpleEngine;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: library
|
|||||||
Factory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases
|
Factory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var DEFAULT_MIN_TEXT_AREA_HEIGHT = "100px"; // Minimum height of textareas in pixels
|
var DEFAULT_MIN_TEXT_AREA_HEIGHT = "100px"; // Minimum height of textareas in pixels
|
||||||
@@ -386,5 +383,3 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.editTextWidgetFactory = editTextWidgetFactory;
|
exports.editTextWidgetFactory = editTextWidgetFactory;
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: bitmapeditoroperation
|
|||||||
Bitmap editor operation to clear the image
|
Bitmap editor operation to clear the image
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["clear"] = function(event) {
|
exports["clear"] = function(event) {
|
||||||
@@ -20,5 +17,3 @@ exports["clear"] = function(event) {
|
|||||||
// Save changes
|
// Save changes
|
||||||
this.strokeEnd();
|
this.strokeEnd();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: bitmapeditoroperation
|
|||||||
Bitmap editor operation to resize the image
|
Bitmap editor operation to resize the image
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["resize"] = function(event) {
|
exports["resize"] = function(event) {
|
||||||
@@ -25,5 +22,3 @@ exports["resize"] = function(event) {
|
|||||||
// Save the image into the tiddler
|
// Save the image into the tiddler
|
||||||
this.saveChanges();
|
this.saveChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: bitmapeditoroperation
|
|||||||
Bitmap editor operation to rotate the image left by 90 degrees
|
Bitmap editor operation to rotate the image left by 90 degrees
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["rotate-left"] = function(event) {
|
exports["rotate-left"] = function(event) {
|
||||||
@@ -20,5 +17,3 @@ exports["rotate-left"] = function(event) {
|
|||||||
// Save the image into the tiddler
|
// Save the image into the tiddler
|
||||||
this.saveChanges();
|
this.saveChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,15 +6,17 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to excise the selection to a new tiddler
|
Text editor operation to excise the selection to a new tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
function isMarkdown(mediaType) {
|
||||||
|
return mediaType === 'text/markdown' || mediaType === 'text/x-markdown';
|
||||||
|
}
|
||||||
|
|
||||||
exports["excise"] = function(event,operation) {
|
exports["excise"] = function(event,operation) {
|
||||||
var editTiddler = this.wiki.getTiddler(this.editTitle),
|
var editTiddler = this.wiki.getTiddler(this.editTitle),
|
||||||
editTiddlerTitle = this.editTitle,
|
editTiddlerTitle = this.editTitle,
|
||||||
|
wikiLinks = !isMarkdown(editTiddler.fields.type),
|
||||||
excisionBaseTitle = $tw.language.getString("Buttons/Excise/DefaultTitle");
|
excisionBaseTitle = $tw.language.getString("Buttons/Excise/DefaultTitle");
|
||||||
if(editTiddler && editTiddler.fields["draft.of"]) {
|
if(editTiddler && editTiddler.fields["draft.of"]) {
|
||||||
editTiddlerTitle = editTiddler.fields["draft.of"];
|
editTiddlerTitle = editTiddler.fields["draft.of"];
|
||||||
@@ -26,7 +28,8 @@ exports["excise"] = function(event,operation) {
|
|||||||
{
|
{
|
||||||
title: excisionTitle,
|
title: excisionTitle,
|
||||||
text: operation.selection,
|
text: operation.selection,
|
||||||
tags: event.paramObject.tagnew === "yes" ? [editTiddlerTitle] : []
|
tags: event.paramObject.tagnew === "yes" ? [editTiddlerTitle] : [],
|
||||||
|
type: editTiddler.fields.type
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
operation.replacement = excisionTitle;
|
operation.replacement = excisionTitle;
|
||||||
@@ -35,7 +38,8 @@ exports["excise"] = function(event,operation) {
|
|||||||
operation.replacement = "{{" + operation.replacement+ "}}";
|
operation.replacement = "{{" + operation.replacement+ "}}";
|
||||||
break;
|
break;
|
||||||
case "link":
|
case "link":
|
||||||
operation.replacement = "[[" + operation.replacement+ "]]";
|
operation.replacement = wikiLinks ? "[[" + operation.replacement+ "]]"
|
||||||
|
: ("[" + operation.replacement + "](<#" + operation.replacement + ">)");
|
||||||
break;
|
break;
|
||||||
case "macro":
|
case "macro":
|
||||||
operation.replacement = "<<" + (event.paramObject.macro || "translink") + " \"\"\"" + operation.replacement + "\"\"\">>";
|
operation.replacement = "<<" + (event.paramObject.macro || "translink") + " \"\"\"" + operation.replacement + "\"\"\">>";
|
||||||
@@ -46,5 +50,3 @@ exports["excise"] = function(event,operation) {
|
|||||||
operation.newSelStart = operation.selStart;
|
operation.newSelStart = operation.selStart;
|
||||||
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -4,14 +4,9 @@ type: application/javascript
|
|||||||
module-type: texteditoroperation
|
module-type: texteditoroperation
|
||||||
Simply focus the Text editor
|
Simply focus the Text editor
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["focus-editor"] = function(event,operation) {
|
exports["focus-editor"] = function(event,operation) {
|
||||||
operation = null;
|
operation = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation insert text at the caret position. If there is a selection it is replaced.
|
Text editor operation insert text at the caret position. If there is a selection it is replaced.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["insert-text"] = function(event,operation) {
|
exports["insert-text"] = function(event,operation) {
|
||||||
@@ -19,5 +16,3 @@ exports["insert-text"] = function(event,operation) {
|
|||||||
operation.newSelStart = operation.selStart + operation.replacement.length;
|
operation.newSelStart = operation.selStart + operation.replacement.length;
|
||||||
operation.newSelEnd = operation.newSelStart;
|
operation.newSelEnd = operation.newSelStart;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to make a link
|
Text editor operation to make a link
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["make-link"] = function(event,operation) {
|
exports["make-link"] = function(event,operation) {
|
||||||
@@ -25,5 +22,3 @@ exports["make-link"] = function(event,operation) {
|
|||||||
operation.newSelStart = operation.selStart + operation.replacement.length;
|
operation.newSelStart = operation.selStart + operation.replacement.length;
|
||||||
operation.newSelEnd = operation.newSelStart;
|
operation.newSelEnd = operation.newSelStart;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to add a prefix to the selected lines
|
Text editor operation to add a prefix to the selected lines
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["prefix-lines"] = function(event,operation) {
|
exports["prefix-lines"] = function(event,operation) {
|
||||||
@@ -51,5 +48,3 @@ exports["prefix-lines"] = function(event,operation) {
|
|||||||
operation.newSelEnd = operation.newSelStart + operation.replacement.length;
|
operation.newSelEnd = operation.newSelStart + operation.replacement.length;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to replace the entire text
|
Text editor operation to replace the entire text
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["replace-all"] = function(event,operation) {
|
exports["replace-all"] = function(event,operation) {
|
||||||
@@ -19,5 +16,3 @@ exports["replace-all"] = function(event,operation) {
|
|||||||
operation.newSelStart = 0;
|
operation.newSelStart = 0;
|
||||||
operation.newSelEnd = operation.replacement.length;
|
operation.newSelEnd = operation.replacement.length;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to replace the selection
|
Text editor operation to replace the selection
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["replace-selection"] = function(event,operation) {
|
exports["replace-selection"] = function(event,operation) {
|
||||||
@@ -19,5 +16,3 @@ exports["replace-selection"] = function(event,operation) {
|
|||||||
operation.newSelStart = operation.selStart;
|
operation.newSelStart = operation.selStart;
|
||||||
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to save the current selection in a specified tiddler
|
Text editor operation to save the current selection in a specified tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["save-selection"] = function(event,operation) {
|
exports["save-selection"] = function(event,operation) {
|
||||||
@@ -19,5 +16,3 @@ exports["save-selection"] = function(event,operation) {
|
|||||||
this.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));
|
this.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to wrap the selected lines with a prefix and suffix
|
Text editor operation to wrap the selected lines with a prefix and suffix
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["wrap-lines"] = function(event,operation) {
|
exports["wrap-lines"] = function(event,operation) {
|
||||||
@@ -43,5 +40,3 @@ exports["wrap-lines"] = function(event,operation) {
|
|||||||
operation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);
|
operation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,45 +6,128 @@ module-type: texteditoroperation
|
|||||||
Text editor operation to wrap the selection with the specified prefix and suffix
|
Text editor operation to wrap the selection with the specified prefix and suffix
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["wrap-selection"] = function(event,operation) {
|
exports["wrap-selection"] = function(event,operation) {
|
||||||
if(operation.selStart === operation.selEnd) {
|
var o = operation,
|
||||||
// No selection; check if we're within the prefix/suffix
|
prefix = event.paramObject.prefix,
|
||||||
if(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {
|
suffix = event.paramObject.suffix,
|
||||||
|
trimSelection = event.paramObject.trimSelection || "no",
|
||||||
|
selLength = o.selEnd - o.selStart;
|
||||||
|
|
||||||
|
// This function detects, if trailing spaces are part of the selection __and__ if the user wants to handle them
|
||||||
|
// Returns "yes", "start", "end", "no" (default)
|
||||||
|
// yes .. there are trailing spaces at both ends
|
||||||
|
// start .. there are trailing spaces at the start
|
||||||
|
// end .. there are trailing spaces at the end
|
||||||
|
// no .. no trailing spaces are taken into account
|
||||||
|
var trailingSpaceAt = function(sel) {
|
||||||
|
var _start,
|
||||||
|
_end,
|
||||||
|
result;
|
||||||
|
// trimSelection is a user parameter, which this evaluations takes into account
|
||||||
|
switch(trimSelection) {
|
||||||
|
case "end":
|
||||||
|
result = (sel.trimEnd().length !== selLength) ? "end" : "no";
|
||||||
|
break;
|
||||||
|
case "yes":
|
||||||
|
_start = sel.trimStart().length !== selLength;
|
||||||
|
_end = sel.trimEnd().length !== selLength;
|
||||||
|
result = (_start && _end) ? "yes" : (_start) ? "start" : (_end) ? "end" : "no";
|
||||||
|
break;
|
||||||
|
case "start":
|
||||||
|
result = (sel.trimStart().length !== selLength) ? "start" : "no";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
result = "no";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function togglePrefixSuffix() {
|
||||||
|
if(o.text.substring(o.selStart - prefix.length, o.selStart + suffix.length) === prefix + suffix) {
|
||||||
// Remove the prefix and suffix
|
// Remove the prefix and suffix
|
||||||
operation.cutStart = operation.selStart - event.paramObject.prefix.length;
|
o.cutStart = o.selStart - prefix.length;
|
||||||
operation.cutEnd = operation.selEnd + event.paramObject.suffix.length;
|
o.cutEnd = o.selEnd + suffix.length;
|
||||||
operation.replacement = "";
|
o.replacement = "";
|
||||||
operation.newSelStart = operation.cutStart;
|
o.newSelStart = o.cutStart;
|
||||||
operation.newSelEnd = operation.newSelStart;
|
o.newSelEnd = o.newSelStart;
|
||||||
} else {
|
} else {
|
||||||
// Wrap the cursor instead
|
// Wrap the cursor instead
|
||||||
operation.cutStart = operation.selStart;
|
o.cutStart = o.selStart;
|
||||||
operation.cutEnd = operation.selEnd;
|
o.cutEnd = o.selEnd;
|
||||||
operation.replacement = event.paramObject.prefix + event.paramObject.suffix;
|
o.replacement = prefix + suffix;
|
||||||
operation.newSelStart = operation.selStart + event.paramObject.prefix.length;
|
o.newSelStart = o.selStart + prefix.length;
|
||||||
operation.newSelEnd = operation.newSelStart;
|
o.newSelEnd = o.newSelStart;
|
||||||
}
|
}
|
||||||
} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) {
|
}
|
||||||
|
|
||||||
|
// options: lenPrefix, lenSuffix
|
||||||
|
function removePrefixSuffix(options) {
|
||||||
|
options = options || {};
|
||||||
|
var _lenPrefix = options.lenPrefix || 0;
|
||||||
|
var _lenSuffix = options.lenSuffix || 0;
|
||||||
|
|
||||||
|
o.cutStart = o.selStart - _lenPrefix;
|
||||||
|
o.cutEnd = o.selEnd + _lenSuffix;
|
||||||
|
o.replacement = (_lenPrefix || _lenSuffix) ? o.selection : o.selection.substring(prefix.length, o.selection.length - suffix.length);
|
||||||
|
o.newSelStart = o.cutStart;
|
||||||
|
o.newSelEnd = o.cutStart + o.replacement.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
function addPrefixSuffix() {
|
||||||
|
// remove trailing space if requested
|
||||||
|
switch(trailingSpaceAt(o.selection)) {
|
||||||
|
case "no":
|
||||||
|
// has no trailing spaces
|
||||||
|
o.cutStart = o.selStart;
|
||||||
|
o.cutEnd = o.selEnd;
|
||||||
|
o.replacement = prefix + o.selection + suffix;
|
||||||
|
o.newSelStart = o.selStart;
|
||||||
|
o.newSelEnd = o.selStart + o.replacement.length;
|
||||||
|
break;
|
||||||
|
case "yes":
|
||||||
|
// handle both ends
|
||||||
|
o.cutStart = o.selEnd - (o.selection.trimStart().length);
|
||||||
|
o.cutEnd = o.selection.trimEnd().length + o.selStart;
|
||||||
|
o.replacement = prefix + o.selection.trim() + suffix;
|
||||||
|
o.newSelStart = o.cutStart;
|
||||||
|
o.newSelEnd = o.cutStart + o.replacement.length;
|
||||||
|
break;
|
||||||
|
case "start":
|
||||||
|
// handle leading
|
||||||
|
o.cutStart = o.selEnd - (o.selection.trimStart().length);
|
||||||
|
o.cutEnd = o.selEnd;
|
||||||
|
o.replacement = prefix + o.selection.trimStart() + suffix;
|
||||||
|
o.newSelStart = o.cutStart;
|
||||||
|
o.newSelEnd = o.cutStart + o.replacement.length;
|
||||||
|
break;
|
||||||
|
case "end":
|
||||||
|
// handle trailing
|
||||||
|
o.cutStart = o.selStart;
|
||||||
|
o.cutEnd = o.selection.trimEnd().length + o.selStart;
|
||||||
|
o.replacement = prefix + o.selection.trimEnd() + suffix;
|
||||||
|
o.newSelStart = o.selStart;
|
||||||
|
o.newSelEnd = o.selStart + o.replacement.length;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(o.selStart === o.selEnd) {
|
||||||
|
// No selection; Create prefix and suffix. Set cursor in between them: ""|""
|
||||||
|
togglePrefixSuffix();
|
||||||
|
} else if(o.text.substring(o.selStart, o.selStart + prefix.length) === prefix &&
|
||||||
|
o.text.substring(o.selEnd - suffix.length,o.selEnd) === suffix) {
|
||||||
// Prefix and suffix are already present, so remove them
|
// Prefix and suffix are already present, so remove them
|
||||||
operation.cutStart = operation.selStart;
|
removePrefixSuffix();
|
||||||
operation.cutEnd = operation.selEnd;
|
} else if(o.text.substring(o.selStart - prefix.length, o.selStart) === prefix &&
|
||||||
operation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length);
|
o.text.substring(o.selEnd, o.selEnd + suffix.length) === suffix) {
|
||||||
operation.newSelStart = operation.selStart;
|
// Prefix and suffix are present BUT not selected -> remove them
|
||||||
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
removePrefixSuffix({"lenPrefix": prefix.length, "lenSuffix": suffix.length});
|
||||||
} else {
|
} else {
|
||||||
// Add the prefix and suffix
|
// Add the prefix and suffix
|
||||||
operation.cutStart = operation.selStart;
|
addPrefixSuffix();
|
||||||
operation.cutEnd = operation.selEnd;
|
|
||||||
operation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix;
|
|
||||||
operation.newSelStart = operation.selStart;
|
|
||||||
operation.newSelEnd = operation.selStart + operation.replacement.length;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ Union of sets without de-duplication.
|
|||||||
Equivalent to = filter run prefix.
|
Equivalent to = filter run prefix.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -21,5 +18,3 @@ exports.all = function(operationSubFunction) {
|
|||||||
results.push.apply(results, operationSubFunction(source,widget));
|
results.push.apply(results, operationSubFunction(source,widget));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ Intersection of sets.
|
|||||||
Equivalent to + filter run prefix.
|
Equivalent to + filter run prefix.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -24,5 +21,3 @@ exports.and = function(operationSubFunction,options) {
|
|||||||
results.pushTop(operationSubFunction(source,widget));
|
results.pushTop(operationSubFunction(source,widget));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -3,10 +3,7 @@ title: $:/core/modules/filterrunprefixes/cascade.js
|
|||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -39,5 +36,3 @@ exports.cascade = function(operationSubFunction,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: filterrunprefix
|
|||||||
Equivalent to ~ filter run prefix.
|
Equivalent to ~ filter run prefix.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -23,5 +20,3 @@ exports.else = function(operationSubFunction) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ Difference of sets.
|
|||||||
Equivalent to - filter run prefix.
|
Equivalent to - filter run prefix.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -21,5 +18,3 @@ exports.except = function(operationSubFunction) {
|
|||||||
results.remove(operationSubFunction(source,widget));
|
results.remove(operationSubFunction(source,widget));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ type: application/javascript
|
|||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -35,5 +32,3 @@ exports.filter = function(operationSubFunction,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ type: application/javascript
|
|||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -27,5 +24,3 @@ exports.intersection = function(operationSubFunction) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -3,10 +3,7 @@ title: $:/core/modules/filterrunprefixes/map.js
|
|||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -40,5 +37,3 @@ exports.map = function(operationSubFunction,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: filterrunprefix
|
|||||||
Equivalent to a filter run with no prefix.
|
Equivalent to a filter run with no prefix.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -20,5 +17,3 @@ exports.or = function(operationSubFunction) {
|
|||||||
results.pushTop(operationSubFunction(source,widget));
|
results.pushTop(operationSubFunction(source,widget));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -3,10 +3,7 @@ title: $:/core/modules/filterrunprefixes/reduce.js
|
|||||||
type: application/javascript
|
type: application/javascript
|
||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -36,5 +33,3 @@ exports.reduce = function(operationSubFunction,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ type: application/javascript
|
|||||||
module-type: filterrunprefix
|
module-type: filterrunprefix
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -48,5 +45,3 @@ exports.sort = function(operationSubFunction,options) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: filterrunprefix
|
|||||||
Replace results of previous runs unless empty
|
Replace results of previous runs unless empty
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -28,5 +25,3 @@ exports.then = function(operationSubFunction) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: wikimethod
|
|||||||
Adds tiddler filtering methods to the $tw.Wiki object.
|
Adds tiddler filtering methods to the $tw.Wiki object.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var widgetClass = require("$:/core/modules/widgets/widget.js").widget;
|
var widgetClass = require("$:/core/modules/widgets/widget.js").widget;
|
||||||
@@ -367,5 +364,3 @@ exports.compileFilter = function(filterString) {
|
|||||||
this.filterCacheCount++;
|
this.filterCacheCount++;
|
||||||
return fnMeasured;
|
return fnMeasured;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ especially useful in contexts where only a filter expression is allowed
|
|||||||
and macro substitution isn't available.
|
and macro substitution isn't available.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -24,5 +21,3 @@ exports.addprefix = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ especially useful in contexts where only a filter expression is allowed
|
|||||||
and macro substitution isn't available.
|
and macro substitution isn't available.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -24,5 +21,3 @@ exports.addsuffix = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator returning the tiddler from the current list that is after the tiddler named in the operand.
|
Filter operator returning the tiddler from the current list that is after the tiddler named in the operand.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -27,5 +24,3 @@ exports.after = function(source,operator,options) {
|
|||||||
return [results[index + 1]];
|
return [results[index + 1]];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ Filter operator for selecting tiddlers
|
|||||||
[all[shadows+tiddlers]]
|
[all[shadows+tiddlers]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var allFilterOperators;
|
var allFilterOperators;
|
||||||
@@ -54,5 +51,3 @@ exports.all = function(source,operator,options) {
|
|||||||
}
|
}
|
||||||
return results.makeTiddlerIterator(options.wiki);
|
return results.makeTiddlerIterator(options.wiki);
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[current]]
|
Filter function for [all[current]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -23,5 +20,3 @@ exports.current = function(source,prefix,options) {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[missing]]
|
Filter function for [all[missing]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -18,5 +15,3 @@ Export our filter function
|
|||||||
exports.missing = function(source,prefix,options) {
|
exports.missing = function(source,prefix,options) {
|
||||||
return options.wiki.getMissingTitles();
|
return options.wiki.getMissingTitles();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[orphans]]
|
Filter function for [all[orphans]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -18,5 +15,3 @@ Export our filter function
|
|||||||
exports.orphans = function(source,prefix,options) {
|
exports.orphans = function(source,prefix,options) {
|
||||||
return options.wiki.getOrphanTitles();
|
return options.wiki.getOrphanTitles();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[shadows]]
|
Filter function for [all[shadows]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -18,5 +15,3 @@ Export our filter function
|
|||||||
exports.shadows = function(source,prefix,options) {
|
exports.shadows = function(source,prefix,options) {
|
||||||
return options.wiki.allShadowTitles();
|
return options.wiki.allShadowTitles();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[tags]]
|
Filter function for [all[tags]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -18,5 +15,3 @@ Export our filter function
|
|||||||
exports.tags = function(source,prefix,options) {
|
exports.tags = function(source,prefix,options) {
|
||||||
return Object.keys(options.wiki.getTagMap());
|
return Object.keys(options.wiki.getTagMap());
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: allfilteroperator
|
|||||||
Filter function for [all[tiddlers]]
|
Filter function for [all[tiddlers]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -18,5 +15,3 @@ Export our filter function
|
|||||||
exports.tiddlers = function(source,prefix,options) {
|
exports.tiddlers = function(source,prefix,options) {
|
||||||
return options.wiki.allTitles();
|
return options.wiki.allTitles();
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator for returning all the backlinks from a tiddler
|
Filter operator for returning all the backlinks from a tiddler
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -22,5 +19,3 @@ exports.backlinks = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results.makeTiddlerIterator(options.wiki);
|
return results.makeTiddlerIterator(options.wiki);
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ Filter operator for returning all the backtranscludes from a tiddler
|
|||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator returning the tiddler from the current list that is before the tiddler named in the operand.
|
Filter operator returning the tiddler from the current list that is before the tiddler named in the operand.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -27,5 +24,3 @@ exports.before = function(source,operator,options) {
|
|||||||
return [results[index - 1]];
|
return [results[index - 1]];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator for returning the names of the commands available in this wiki
|
Filter operator for returning the names of the commands available in this wiki
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -23,5 +20,3 @@ exports.commands = function(source,operator,options) {
|
|||||||
results.sort();
|
results.sort();
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
General purpose comparison operator
|
General purpose comparison operator
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.compare = function(source,operator,options) {
|
exports.compare = function(source,operator,options) {
|
||||||
@@ -36,5 +33,3 @@ var modes = {
|
|||||||
"lteq": function(value) {return value <= 0;},
|
"lteq": function(value) {return value <= 0;},
|
||||||
"lt": function(value) {return value < 0;}
|
"lt": function(value) {return value < 0;}
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator for finding values in array fields
|
Filter operator for finding values in array fields
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -41,5 +38,3 @@ exports.contains = function(source,operator,options) {
|
|||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator returning the number of entries in the current list.
|
Filter operator returning the number of entries in the current list.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -22,5 +19,3 @@ exports.count = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return [count + ""];
|
return [count + ""];
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operators for cryptography, using the Stanford JavaScript library
|
Filter operators for cryptography, using the Stanford JavaScript library
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports.sha256 = function(source,operator,options) {
|
exports.sha256 = function(source,operator,options) {
|
||||||
@@ -20,5 +17,3 @@ exports.sha256 = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator that selects tiddlers with a specified date field within a specified date interval.
|
Filter operator that selects tiddlers with a specified date field within a specified date interval.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -46,5 +43,3 @@ exports.days = function(source,operator,options) {
|
|||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ type: application/javascript
|
|||||||
module-type: filteroperator
|
module-type: filteroperator
|
||||||
Filter operator for deserializing string data into JSON representing tiddlers
|
Filter operator for deserializing string data into JSON representing tiddlers
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
exports["deserialize"] = function(source,operator,options) {
|
exports["deserialize"] = function(source,operator,options) {
|
||||||
@@ -35,5 +32,3 @@ exports["deserialize"] = function(source,operator,options) {
|
|||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator for returning the names of the deserializers in this wiki
|
Filter operator for returning the names of the deserializers in this wiki
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -23,5 +20,3 @@ exports.deserializers = function(source,operator,options) {
|
|||||||
results.sort();
|
results.sort();
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter function for [duplicateslugs[]]
|
Filter function for [duplicateslugs[]]
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -32,5 +29,3 @@ exports.duplicateslugs = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ Filter operator that selects one tiddler for each unique value of the specified
|
|||||||
With suffix "list", selects all tiddlers that are values in a specified list field.
|
With suffix "list", selects all tiddlers that are values in a specified list field.
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -63,5 +60,3 @@ exports.each = function(source,operator,options) {
|
|||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
@@ -6,10 +6,7 @@ module-type: filteroperator
|
|||||||
Filter operator that selects one tiddler for each unique day covered by the specified date field
|
Filter operator that selects one tiddler for each unique day covered by the specified date field
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
|
||||||
/*global $tw: false */
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -35,5 +32,3 @@ exports.eachday = function(source,operator,options) {
|
|||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user