Compare commits
No commits in common. "f83863ef0179955a15c889617b2a1c07691def16" and "9f057dc29aa9568477a999d4ae48b272633f392e" have entirely different histories.
f83863ef01
...
9f057dc29a
2
deps/codemirror/cm6.js
vendored
2
deps/codemirror/cm6.js
vendored
File diff suppressed because one or more lines are too long
170
deps/codemirror_src/package-lock.json
generated
vendored
170
deps/codemirror_src/package-lock.json
generated
vendored
@ -19,9 +19,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@codemirror/autocomplete": {
|
"node_modules/@codemirror/autocomplete": {
|
||||||
"version": "6.18.1",
|
"version": "6.18.0",
|
||||||
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.1.tgz",
|
"resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.0.tgz",
|
||||||
"integrity": "sha512-iWHdj/B1ethnHRTwZj+C1obmmuCzquH29EbcKr0qIjA9NfDeBDJ7vs+WOHsFeLeflE4o+dHfYndJloMKHUkWUA==",
|
"integrity": "sha512-5DbOvBbY4qW5l57cjDsmmpDh3/TeK1vXfTHa+BUMrRzdWdcxKZ4U4V7vQaTtOpApNU4kLS4FQ6cINtLg245LXA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/language": "^6.0.0",
|
"@codemirror/language": "^6.0.0",
|
||||||
@ -37,9 +37,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@codemirror/commands": {
|
"node_modules/@codemirror/commands": {
|
||||||
"version": "6.6.2",
|
"version": "6.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.6.1.tgz",
|
||||||
"integrity": "sha512-Fq7eWOl1Rcbrfn6jD8FPCj9Auaxdm5nIK5RYOeW7ughnd/rY5AmPg6b+CfsG39ZHdwiwe8lde3q8uR7CF5S0yQ==",
|
"integrity": "sha512-iBfKbyIoXS1FGdsKcZmnrxmbc8VcbMrSgD7AVrsnX+WyAYjmUDWvE93dt5D874qS4CCVu4O1JpbagHdXbbLiOw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/language": "^6.0.0",
|
"@codemirror/language": "^6.0.0",
|
||||||
@ -270,9 +270,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@lezer/javascript": {
|
"node_modules/@lezer/javascript": {
|
||||||
"version": "1.4.18",
|
"version": "1.4.17",
|
||||||
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.18.tgz",
|
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.17.tgz",
|
||||||
"integrity": "sha512-Y8BeHOt4LtcxJgXwadtfSeWPrh0XzklcCHnCVT+vOsxqH4gWmunP2ykX+VVOlM/dusyVyiNfG3lv0f10UK+mgA==",
|
"integrity": "sha512-bYW4ctpyGK+JMumDApeUzuIezX01H76R1foD6LcRX224FWfyYit/HYxiPGDjXXe/wQWASjCvVGoukTH68+0HIA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lezer/common": "^1.2.0",
|
"@lezer/common": "^1.2.0",
|
||||||
@ -371,9 +371,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm-eabi": {
|
"node_modules/@rollup/rollup-android-arm-eabi": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.2.tgz",
|
||||||
"integrity": "sha512-MmKSfaB9GX+zXl6E8z4koOr/xU63AMVleLEa64v7R0QF/ZloMs5vcD1sHgM64GXXS1csaJutG+ddtzcueI/BLg==",
|
"integrity": "sha512-fSuPrt0ZO8uXeS+xP3b+yYTCBUd05MoSp2N/MFOgjhhUhMmchXlpTQrTpI8T+YAwAQuK7MafsCOxW7VrPMrJcg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@ -384,9 +384,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-android-arm64": {
|
"node_modules/@rollup/rollup-android-arm64": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.2.tgz",
|
||||||
"integrity": "sha512-zrt8ecH07PE3sB4jPOggweBjJMzI1JG5xI2DIsUbkA+7K+Gkjys6eV7i9pOenNSDJH3eOr/jLb/PzqtmdwDq5g==",
|
"integrity": "sha512-xGU5ZQmPlsjQS6tzTTGwMsnKUtu0WVbl0hYpTPauvbRAnmIvpInhJtgjj3mcuJpEiuUw4v1s4BimkdfDWlh7gA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -397,9 +397,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-arm64": {
|
"node_modules/@rollup/rollup-darwin-arm64": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.2.tgz",
|
||||||
"integrity": "sha512-P0UxIOrKNBFTQaXTxOH4RxuEBVCgEA5UTNV6Yz7z9QHnUJ7eLX9reOd/NYMO3+XZO2cco19mXTxDMXxit4R/eQ==",
|
"integrity": "sha512-99AhQ3/ZMxU7jw34Sq8brzXqWH/bMnf7ZVhvLk9QU2cOepbQSVTns6qoErJmSiAvU3InRqC2RRZ5ovh1KN0d0Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -410,9 +410,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-darwin-x64": {
|
"node_modules/@rollup/rollup-darwin-x64": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.2.tgz",
|
||||||
"integrity": "sha512-L1M0vKGO5ASKntqtsFEjTq/fD91vAqnzeaF6sfNAy55aD+Hi2pBI5DKwCO+UNDQHWsDViJLqshxOahXyLSh3EA==",
|
"integrity": "sha512-ZbRaUvw2iN/y37x6dY50D8m2BnDbBjlnMPotDi/qITMJ4sIxNY33HArjikDyakhSv0+ybdUxhWxE6kTI4oX26w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -423,9 +423,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.2.tgz",
|
||||||
"integrity": "sha512-btVgIsCjuYFKUjopPoWiDqmoUXQDiW2A4C3Mtmp5vACm7/GnyuprqIDPNczeyR5W8rTXEbkmrJux7cJmD99D2g==",
|
"integrity": "sha512-ztRJJMiE8nnU1YFcdbd9BcH6bGWG1z+jP+IPW2oDUAPxPjo9dverIOyXz76m6IPA6udEL12reYeLojzW2cYL7w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@ -436,9 +436,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
|
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.2.tgz",
|
||||||
"integrity": "sha512-zmjbSphplZlau6ZTkxd3+NMtE4UKVy7U4aVFMmHcgO5CUbw17ZP6QCgyxhzGaU/wFFdTfiojjbLG3/0p9HhAqA==",
|
"integrity": "sha512-flOcGHDZajGKYpLV0JNc0VFH361M7rnV1ee+NTeC/BQQ1/0pllYcFmxpagltANYt8FYf9+kL6RSk80Ziwyhr7w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm"
|
"arm"
|
||||||
],
|
],
|
||||||
@ -449,9 +449,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
"node_modules/@rollup/rollup-linux-arm64-gnu": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.2.tgz",
|
||||||
"integrity": "sha512-nSZfcZtAnQPRZmUkUQwZq2OjQciR6tEoJaZVFvLHsj0MF6QhNMg0fQ6mUOsiCUpTqxTx0/O6gX0V/nYc7LrgPw==",
|
"integrity": "sha512-69CF19Kp3TdMopyteO/LJbWufOzqqXzkrv4L2sP8kfMaAQ6iwky7NoXTp7bD6/irKgknDKM0P9E/1l5XxVQAhw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -462,9 +462,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
"node_modules/@rollup/rollup-linux-arm64-musl": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.2.tgz",
|
||||||
"integrity": "sha512-MnvSPGO8KJXIMGlQDYfvYS3IosFN2rKsvxRpPO2l2cum+Z3exiExLwVU+GExL96pn8IP+GdH8Tz70EpBhO0sIQ==",
|
"integrity": "sha512-48pD/fJkTiHAZTnZwR0VzHrao70/4MlzJrq0ZsILjLW/Ab/1XlVUStYyGt7tdyIiVSlGZbnliqmult/QGA2O2w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -475,9 +475,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
|
"node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.2.tgz",
|
||||||
"integrity": "sha512-+W+p/9QNDr2vE2AXU0qIy0qQE75E8RTwTwgqS2G5CRQ11vzq0tbnfBd6brWhS9bCRjAjepJe2fvvkvS3dno+iw==",
|
"integrity": "sha512-cZdyuInj0ofc7mAQpKcPR2a2iu4YM4FQfuUzCVA2u4HI95lCwzjoPtdWjdpDKyHxI0UO82bLDoOaLfpZ/wviyQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ppc64"
|
"ppc64"
|
||||||
],
|
],
|
||||||
@ -488,9 +488,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.2.tgz",
|
||||||
"integrity": "sha512-yXH6K6KfqGXaxHrtr+Uoy+JpNlUlI46BKVyonGiaD74ravdnF9BUNC+vV+SIuB96hUMGShhKV693rF9QDfO6nQ==",
|
"integrity": "sha512-RL56JMT6NwQ0lXIQmMIWr1SW28z4E4pOhRRNqwWZeXpRlykRIlEpSWdsgNWJbYBEWD84eocjSGDu/XxbYeCmwg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"riscv64"
|
"riscv64"
|
||||||
],
|
],
|
||||||
@ -501,9 +501,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-s390x-gnu": {
|
"node_modules/@rollup/rollup-linux-s390x-gnu": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.2.tgz",
|
||||||
"integrity": "sha512-R8cwY9wcnApN/KDYWTH4gV/ypvy9yZUHlbJvfaiXSB48JO3KpwSpjOGqO4jnGkLDSk1hgjYkTbTt6Q7uvPf8eg==",
|
"integrity": "sha512-PMxkrWS9z38bCr3rWvDFVGD6sFeZJw4iQlhrup7ReGmfn7Oukrr/zweLhYX6v2/8J6Cep9IEA/SmjXjCmSbrMQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"s390x"
|
"s390x"
|
||||||
],
|
],
|
||||||
@ -514,9 +514,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.2.tgz",
|
||||||
"integrity": "sha512-kZPbX/NOPh0vhS5sI+dR8L1bU2cSO9FgxwM8r7wHzGydzfSjLRCFAT87GR5U9scj2rhzN3JPYVC7NoBbl4FZ0g==",
|
"integrity": "sha512-B90tYAUoLhU22olrafY3JQCFLnT3NglazdwkHyxNDYF/zAxJt5fJUB/yBoWFoIQ7SQj+KLe3iL4BhOMa9fzgpw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -527,9 +527,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-linux-x64-musl": {
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.2.tgz",
|
||||||
"integrity": "sha512-S0Yq+xA1VEH66uiMNhijsWAafffydd2X5b77eLHfRmfLsRSpbiAWiRHV6DEpz6aOToPsgid7TI9rGd6zB1rhbg==",
|
"integrity": "sha512-7twFizNXudESmC9oneLGIUmoHiiLppz/Xs5uJQ4ShvE6234K0VB1/aJYU3f/4g7PhssLGKBVCC37uRkkOi8wjg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -540,9 +540,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
"node_modules/@rollup/rollup-win32-arm64-msvc": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.2.tgz",
|
||||||
"integrity": "sha512-9isNzeL34yquCPyerog+IMCNxKR8XYmGd0tHSV+OVx0TmE0aJOo9uw4fZfUuk2qxobP5sug6vNdZR6u7Mw7Q+Q==",
|
"integrity": "sha512-9rRero0E7qTeYf6+rFh3AErTNU1VCQg2mn7CQcI44vNUWM9Ze7MSRS/9RFuSsox+vstRt97+x3sOhEey024FRQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@ -553,9 +553,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
"node_modules/@rollup/rollup-win32-ia32-msvc": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.2.tgz",
|
||||||
"integrity": "sha512-nMIdKnfZfzn1Vsk+RuOvl43ONTZXoAPUUxgcU0tXooqg4YrAqzfKzVenqqk2g5efWh46/D28cKFrOzDSW28gTA==",
|
"integrity": "sha512-5rA4vjlqgrpbFVVHX3qkrCo/fZTj1q0Xxpg+Z7yIo3J2AilW7t2+n6Q8Jrx+4MrYpAnjttTYF8rr7bP46BPzRw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"ia32"
|
"ia32"
|
||||||
],
|
],
|
||||||
@ -566,9 +566,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
"node_modules/@rollup/rollup-win32-x64-msvc": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.2.tgz",
|
||||||
"integrity": "sha512-fOvu7PCQjAj4eWDEuD8Xz5gpzFqXzGlxHZozHP4b9Jxv9APtdxL6STqztDzMLuRXEc4UpXGGhx029Xgm91QBeA==",
|
"integrity": "sha512-6UUxd0+SKomjdzuAcp+HAmxw1FlGBnl1v2yEPSabtx4lBfdXHDVsW7+lQkgz9cNFJGY3AWR7+V8P5BqkD9L9nA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@ -579,9 +579,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@types/estree": {
|
"node_modules/@types/estree": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
||||||
"integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
|
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/resolve": {
|
"node_modules/@types/resolve": {
|
||||||
@ -782,9 +782,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup": {
|
"node_modules/rollup": {
|
||||||
"version": "4.21.3",
|
"version": "4.21.2",
|
||||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.21.3.tgz",
|
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.21.2.tgz",
|
||||||
"integrity": "sha512-7sqRtBNnEbcBtMeRVc6VRsJMmpI+JU1z9VTvW8D4gXIYQFz0aLcsE6rRkyghZkLfEgUZgVvOG7A5CVz/VW5GIA==",
|
"integrity": "sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/estree": "1.0.5"
|
"@types/estree": "1.0.5"
|
||||||
@ -797,31 +797,25 @@
|
|||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@rollup/rollup-android-arm-eabi": "4.21.3",
|
"@rollup/rollup-android-arm-eabi": "4.21.2",
|
||||||
"@rollup/rollup-android-arm64": "4.21.3",
|
"@rollup/rollup-android-arm64": "4.21.2",
|
||||||
"@rollup/rollup-darwin-arm64": "4.21.3",
|
"@rollup/rollup-darwin-arm64": "4.21.2",
|
||||||
"@rollup/rollup-darwin-x64": "4.21.3",
|
"@rollup/rollup-darwin-x64": "4.21.2",
|
||||||
"@rollup/rollup-linux-arm-gnueabihf": "4.21.3",
|
"@rollup/rollup-linux-arm-gnueabihf": "4.21.2",
|
||||||
"@rollup/rollup-linux-arm-musleabihf": "4.21.3",
|
"@rollup/rollup-linux-arm-musleabihf": "4.21.2",
|
||||||
"@rollup/rollup-linux-arm64-gnu": "4.21.3",
|
"@rollup/rollup-linux-arm64-gnu": "4.21.2",
|
||||||
"@rollup/rollup-linux-arm64-musl": "4.21.3",
|
"@rollup/rollup-linux-arm64-musl": "4.21.2",
|
||||||
"@rollup/rollup-linux-powerpc64le-gnu": "4.21.3",
|
"@rollup/rollup-linux-powerpc64le-gnu": "4.21.2",
|
||||||
"@rollup/rollup-linux-riscv64-gnu": "4.21.3",
|
"@rollup/rollup-linux-riscv64-gnu": "4.21.2",
|
||||||
"@rollup/rollup-linux-s390x-gnu": "4.21.3",
|
"@rollup/rollup-linux-s390x-gnu": "4.21.2",
|
||||||
"@rollup/rollup-linux-x64-gnu": "4.21.3",
|
"@rollup/rollup-linux-x64-gnu": "4.21.2",
|
||||||
"@rollup/rollup-linux-x64-musl": "4.21.3",
|
"@rollup/rollup-linux-x64-musl": "4.21.2",
|
||||||
"@rollup/rollup-win32-arm64-msvc": "4.21.3",
|
"@rollup/rollup-win32-arm64-msvc": "4.21.2",
|
||||||
"@rollup/rollup-win32-ia32-msvc": "4.21.3",
|
"@rollup/rollup-win32-ia32-msvc": "4.21.2",
|
||||||
"@rollup/rollup-win32-x64-msvc": "4.21.3",
|
"@rollup/rollup-win32-x64-msvc": "4.21.2",
|
||||||
"fsevents": "~2.3.2"
|
"fsevents": "~2.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rollup/node_modules/@types/estree": {
|
|
||||||
"version": "1.0.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
|
||||||
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/safe-buffer": {
|
"node_modules/safe-buffer": {
|
||||||
"version": "5.2.1",
|
"version": "5.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
@ -900,9 +894,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/terser": {
|
"node_modules/terser": {
|
||||||
"version": "5.33.0",
|
"version": "5.32.0",
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.33.0.tgz",
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.32.0.tgz",
|
||||||
"integrity": "sha512-JuPVaB7s1gdFKPKTelwUyRq5Sid2A3Gko2S0PncwdBq7kN9Ti9HPWDQ06MPsEDGsZeVESjKEnyGy68quBk1w6g==",
|
"integrity": "sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
# Tilde Friends Cheat Sheet
|
|
||||||
|
|
||||||
Making apps for the impatient tilde friend.
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
|
|
||||||
- either run your own instance or use [tildefriends.net](https://www.tildefriends.net/)
|
|
||||||
- register and login
|
|
||||||
- [optional] use the `ssb` app to create yourself an SSB identity
|
|
||||||
|
|
||||||
## Development Process
|
|
||||||
|
|
||||||
1. hit the `edit` link from any app or new app URL
|
|
||||||
2. make sure the path in the text box is under your username: `/~username/app/`
|
|
||||||
3. write server-side code in `app.js`
|
|
||||||
4. click the `save` button or press the save hotkey (Alt+S or _[browser-specific modifiers]_+S)
|
|
||||||
5. see the app reload on the right side
|
|
||||||
|
|
||||||
## Output
|
|
||||||
|
|
||||||
- **`app.setDocument(html)`** - send HTML to the browser
|
|
||||||
- **`print(...)`** - send values to the browser's developer console
|
|
||||||
|
|
||||||
## Persistence
|
|
||||||
|
|
||||||
- **`app.localStorageGet(key)`** -> **`value`**
|
|
||||||
- **`app.localStorageSet(key, value)`**
|
|
||||||
- **`database()`**, **`shared_database(key)`**, **`my_shared_database(package, key)`**
|
|
||||||
- **`db.get(key)`** -> **`value`**
|
|
||||||
- **`db.set(key, value)`**
|
|
||||||
- **`db.exchange(key, expected, value)`** -> **`exchanged`**
|
|
||||||
- **`db.remove(key)`**
|
|
||||||
- **`db.getAll()`** -> **`[key1, ...]`**
|
|
||||||
- **`db.getLike(pattern)`** -> **`{key1: value1, ...}`**
|
|
||||||
|
|
||||||
## SSB
|
|
||||||
|
|
||||||
- **`ssb.createIdentity()`** -> **`id`**
|
|
||||||
- **`ssb.getIdentities()`** -> **`[id1, ...]`**
|
|
||||||
- **`ssb.appendMessageWithIdentity(id, content)`** -> **`message_id`**
|
|
||||||
- **`ssb.blobStore(blob)`** -> **`blob_id`**
|
|
||||||
- **`ssb.blobGet(id)`** -> **`blob`**
|
|
||||||
- **`ssb.sqlAsync(query, args, row_callback)`**
|
|
||||||
|
|
||||||
## TF-RPC
|
|
||||||
|
|
||||||
Stock helper code for calling functions across the web server and browser boundary.
|
|
||||||
|
|
||||||
- on the server: `import * as tfrpc from '/tfrpc.js';`
|
|
||||||
- in the browser: `import * as tfrpc from '/static/tfrpc.js';`
|
|
||||||
- either direction:
|
|
||||||
- register a function: `tfrpc.register(function my_function() {});`
|
|
||||||
- call a remote function: `let promise = tfrpc.rpc.my_function();`
|
|
||||||
|
|
||||||
## Share
|
|
||||||
|
|
||||||
- give out web links: [https://www.tildefriends.net/~cory/screwble/](https://www.tildefriends.net/~cory/screwble/)
|
|
||||||
- use the `Attach App` button when composing a post in [the SSB app](https://www.tildefriends.net/~core/ssb/)
|
|
||||||
|
|
||||||
## More Docs
|
|
||||||
|
|
||||||
- [api reference](https://www.tildefriends.net/~cory/api/)
|
|
||||||
- [source code](https://dev.tildefriends.net/cory/tildefriends/releases)
|
|
295
docs/guide.md
295
docs/guide.md
@ -1,166 +1,209 @@
|
|||||||
# Tilde Friends Developer's Guide
|
# Philosophy
|
||||||
|
|
||||||
A Tilde Friends application starts with code that runs on a Tilde Friends server, possibly far away from where you wrote it, in a little JavaScript environment, in its own restricted process, with the only access to the outside world being the ability to send messages to the server. This document gives some recipes showing how that can be used to build a functional user-facing application in light of the unique constraints present.
|
Tilde Friends is a platform for making, running, and sharing web applications.
|
||||||
|
|
||||||
## Example 1: Hello, world!
|
When you visit Tilde Friends in a web browser, you are presented with a
|
||||||
|
terminal interface, typically with a big text output box covering most of the
|
||||||
|
page and an input box at the bottom, into which text or commands can be
|
||||||
|
entered. A script runs to produce text output and consume user input.
|
||||||
|
|
||||||
Of course we must start with a classic.
|
The script is a Tilde Friends application, and it runs on the server, which
|
||||||
|
means that unlike client-side JavaScript, it can have the ability to read and
|
||||||
|
write files on the server or create network connections to other machines.
|
||||||
|
Unlike node.js or other server-side runtime environments, applications are
|
||||||
|
limited for security reasons to not interfere with each other or bring the
|
||||||
|
entire server down.
|
||||||
|
|
||||||
### app.js
|
Above the terminal, an "Edit" link brings a visitor to the source code for the
|
||||||
|
current Tilde Friends application, which they can then edit, save as their own,
|
||||||
|
and run.
|
||||||
|
|
||||||
```
|
# Architecture
|
||||||
app.setDocument('<h1 style="color: #fff">Hello, world!</h1>');
|
|
||||||
```
|
|
||||||
|
|
||||||
### Output
|
Tilde Friends is a C++ application with a JavaScript runtime that provides
|
||||||
|
restricted access to filesystem, network, and other system resources. The core
|
||||||
|
process runs a core set of scripts that implement a web server, typically
|
||||||
|
starting a new process for each visitor's session which runs scripts for the
|
||||||
|
active application and stopping it when the visitor leaves.
|
||||||
|
|
||||||
<iframe srcdoc="<h1 style="color: #fff">Hello, world!</h1>"></iframe>
|
Only the core process has access to most system resources, but session
|
||||||
|
processes can be given accesss through the core process.
|
||||||
|
|
||||||
### Explanation
|
Service processes are identical to session processes, but they are not tied to
|
||||||
|
a user session.
|
||||||
|
|
||||||
At a glance, this might seem mundane, but for it to work:
|
## Communication
|
||||||
|
|
||||||
- the server starts a real process for your app and loads your code into it
|
In the same way that web browsers expose APIs for scripts running in the
|
||||||
- your code runs
|
browser to modify the document, play sounds and video, and draw, Tilde Friends
|
||||||
- `app.setDocument()` sends a message back to the server
|
exposes APIs for scripts running on a Tilde Friends server to interact with a
|
||||||
- the server interprets the message and redirects it to the browser
|
visitor's web browser, read and write files on the server, and otherwise
|
||||||
- `core/client.js` in the browser receives the message and puts your HTML into an iframe
|
interact with the world.
|
||||||
- your HTML is presented by the browser in an iframe sandbox
|
|
||||||
|
|
||||||
But you don't have to think about all that. Call a function, and you see the result.
|
There are several distinct classes of APIs.
|
||||||
|
|
||||||
## Example 2: Hit Counter
|
First, there are low-level functions exposed from C++ to JavaScript. Most of
|
||||||
|
these are only available to the core process. These typically only go through
|
||||||
|
a basic JavaScript to C++ transition and are relatively fast and immediate.
|
||||||
|
|
||||||
Let's take advantage of code running on the server and create a little hit counter using a key value store shared between all visitors.
|
// Displays some text to the server's console.
|
||||||
|
print("Hello, world!");
|
||||||
|
|
||||||
### app.js
|
There is a mechanism for communicating between processes. Functions can be
|
||||||
|
exported and called across process boundaries. When this is done, any
|
||||||
|
arguments are serialized to a network protocol, deserialized by the other
|
||||||
|
process, the function called, and finally any return value is passed back in
|
||||||
|
the same way. Any functions referenced by the arguments or return value are
|
||||||
|
also exported and can be subsequently called across process boundaries.
|
||||||
|
Functions called across process boundaries are always asynchronous, returning a
|
||||||
|
Promise. Care must be taken for security reasons to not pass dangerous
|
||||||
|
functions ("deleteAllMydata()") to untrusted processes, and it is best for
|
||||||
|
performance reasons to minimize the data size transferred between processes.
|
||||||
|
|
||||||
```
|
// Send an "add" function to any other running processes. When called, it
|
||||||
async function main() {
|
// will run in this process.
|
||||||
let db = await shared_database('visitors');
|
core.broadcast({add: function(x, y) { return x + y; }});
|
||||||
let count = parseInt((await db.get('visitors')) ?? '0') + 1;
|
|
||||||
await db.set('visitors', count.toString());
|
|
||||||
await app.setDocument(`
|
|
||||||
<h1 style="color: #fff">Welcome, visitor #${count}!</h1>
|
|
||||||
`);
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
// Receive the above message and call the function.
|
||||||
```
|
core.register("onMessage", function(sender, message) {
|
||||||
|
message.add(3, 4).then(x => terminal.print(x.toString()));
|
||||||
### Output
|
|
||||||
|
|
||||||
<iframe srcdoc="<h1 style="color: #fff">Welcome, visitor #1!</h1>"></iframe>
|
|
||||||
|
|
||||||
### Explanation
|
|
||||||
|
|
||||||
Just as pure browser apps have access to `localStorage`, Tilde Friends apps have access to key-value storage on the server.
|
|
||||||
|
|
||||||
The interface is a bit clunky and will likely change someday, but this example gets a database object, from which you can get and set string values by key. There are various on `shared_database` that let you store data that is private to the user or shared by different criteria.
|
|
||||||
|
|
||||||
Also, even though any browser-side code is sandboxed, it is allowed to access browser local storage by going through Tilde Friends API, because sometimes that is useful.
|
|
||||||
|
|
||||||
## Example 3: Files
|
|
||||||
|
|
||||||
Suppose you don't want to create your entire app in a single server-side file as we've done with the previous examples. There are some tools to allow you to begin to organize.
|
|
||||||
|
|
||||||
### app.js
|
|
||||||
|
|
||||||
```
|
|
||||||
async function main() {
|
|
||||||
let html = utf8Decode(await getFile('index.html'));
|
|
||||||
app.setDocument(html);
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
```
|
|
||||||
|
|
||||||
### index.html
|
|
||||||
|
|
||||||
```
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script type="module" src="script.js"></script>
|
|
||||||
</head>
|
|
||||||
<body style="color: #fff">
|
|
||||||
<h1>File Test</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
### script.js
|
|
||||||
|
|
||||||
```
|
|
||||||
window.addEventListener('load', function() {
|
|
||||||
document.body.appendChild(document.createTextNode('Hello, world');
|
|
||||||
});
|
});
|
||||||
```
|
|
||||||
|
|
||||||
### Output
|
Finally, there is a core web interface that runs on the client's browser that
|
||||||
|
extends access to a running Tilde Friends script.
|
||||||
|
|
||||||
<iframe srcdoc="<body style="color: #fff"><h1>File Test</h1>Hello, world!</body>"></iframe>
|
// Displays a message in the client's browser.
|
||||||
|
terminal.print("Hello, world!");
|
||||||
|
|
||||||
### Explanation
|
## API Documentation
|
||||||
|
|
||||||
On the server, `utf8Decode(await getFile(fileName))` lets you load a file from your app. In the browser, your app files are made available by HTTP, so you can `<script src="my_script.js"></script>` and such to access them.
|
The Tilde Friends API is very much evolving.
|
||||||
|
|
||||||
## Example 4: Remote Procedure Call
|
All currently registered methods can be explored in the
|
||||||
|
[documentation](https://www.tildefriends.net/~cory/documentation) app.
|
||||||
|
|
||||||
While making calls between the client and the server, it is possible to pass functions across that boundary. `tfrpc.js` is a tiny script which builds on that feature to try to hide some of the complexities.
|
All browser-facing methods are implemented in [client.js](core/client.js).
|
||||||
|
Most process-related methods are implemented in [core.js](core/core.js).
|
||||||
|
|
||||||
### app.js
|
Higher-level behaviors are often implemented within library-style apps
|
||||||
|
themselves and are beyond the scope of this document.
|
||||||
|
|
||||||
```
|
### Terminal
|
||||||
import * as tf from '/tfrpc.js';
|
|
||||||
|
|
||||||
function sum() {
|
All interaction with a human user is through a terminal-like interface. Though
|
||||||
let s = 0
|
it is somewhat limiting, it makes simple things easy, and it is possible to
|
||||||
for (let x of arguments) {
|
construct complicated interfaces by creating and interacting with an iframe.
|
||||||
s += x;
|
|
||||||
}
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
tf.register(sum);
|
|
||||||
|
|
||||||
async function main() {
|
#### terminal.print(arguments...)
|
||||||
app.setDocument(utf8Decode(await getFile('index.html')));
|
|
||||||
}
|
|
||||||
main();
|
|
||||||
```
|
|
||||||
|
|
||||||
### index.html
|
Print to the terminal. Arguments and lists are recursively expanded. Numerous
|
||||||
|
special values are supported as implemented in client.cs.
|
||||||
|
|
||||||
```
|
// Create a link.
|
||||||
<html>
|
terminal.print({href: "http://www.tildefriends.net/", value: "Tilde Friends!"});
|
||||||
<body>
|
|
||||||
<h1 id='result'>Calculating...</h1>
|
|
||||||
</body>
|
|
||||||
<script type="module" src="script.js"></script>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
### script.js
|
// Create an iframe.
|
||||||
|
terminal.print({iframe: "<b>Hello, world!</b>", width: 640, height: 480});
|
||||||
|
|
||||||
```
|
// Use style.
|
||||||
import * as tf from '/static/tfrpc.js';
|
terminal.print({style: "color: #f00", value: "Hello, world!"});
|
||||||
|
|
||||||
window.addEventListener('load', async function() {
|
// Create a link that when clicked will act as if the user typed a command.
|
||||||
document.getElementById('result').innerText = await tf.rpc.sum(1, 2, 3);
|
terminal.print({command: "exit", value: "Get out of here."});
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### Output
|
#### terminal.clear()
|
||||||
|
|
||||||
<iframe srcdoc="<body style="color: #fff"><h1>6</h1></body>"></iframe>
|
Clears the terminal output.
|
||||||
|
|
||||||
### Explanation
|
#### terminal.readLine()
|
||||||
|
|
||||||
Here the browser makes an asynchronous call to the server to do some basic math and update its DOM with the result.
|
Read a line of input from the user.
|
||||||
|
|
||||||
With your favorite Vue/Lit/React/... library on the client-side and your favorite Tilde Friends API calls registered with tfrpc, it becomes pretty easy to start extracting interesting information from, say, SQL queries over Secure Scuttlebutt data, and generating complicated, dynamic user interface. These are the building blocks I used to make the current Tilde Friends SSB client interface.
|
#### terminal.setEcho(echo)
|
||||||
|
|
||||||
## Conclusion
|
Controls whether the terminal will automatically echo user input. Defaults to true.
|
||||||
|
|
||||||
Tilde Friends is currently a pile of all the parts that I thought I needed to build interesting web applications, tied together by code that tries to walk the fine line between being secure enough to let us safely run code on the same device and being usable enough that you can open a tab in your browser and start building just by typing code.
|
#### terminal.setPrompt(prompt)
|
||||||
|
|
||||||
I don't claim it thoroughly accomplishes either yet, but I believe it is at a stage where it is showing how promising this approach can be, and I am excited for you to take it for a spin and share.
|
Sets the terminal prompt. The default is ">".
|
||||||
|
|
||||||
|
#### terminal.setTitle(title)
|
||||||
|
|
||||||
|
Sets the browser window/tab title.
|
||||||
|
|
||||||
|
#### terminal.split(terminalList)
|
||||||
|
|
||||||
|
Reconfigures the terminal layout, potentially into multiple split panes.
|
||||||
|
|
||||||
|
terminal.split([
|
||||||
|
{
|
||||||
|
type: "horizontal",
|
||||||
|
children: [
|
||||||
|
{name: "left", basis: "2in", grow: 0, shrink: 0},
|
||||||
|
{name: "middle", grow: 1},
|
||||||
|
{name: "right", basis: "2in", grow: 0, shrink: 0},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
#### terminal.select(name)
|
||||||
|
|
||||||
|
Directs subsequent output to the named terminal.
|
||||||
|
|
||||||
|
#### terminal.postMessageToIframe(iframeName, message)
|
||||||
|
|
||||||
|
Sends a message to the iframe that was created with the given name, using the
|
||||||
|
browser's window.postMessage.
|
||||||
|
|
||||||
|
### Database
|
||||||
|
|
||||||
|
Tilde Friends uses lmdb as a basic key value store. Keys and values are all
|
||||||
|
expected to be of type String. Each application gets its own isolated
|
||||||
|
database.
|
||||||
|
|
||||||
|
#### database.get(key)
|
||||||
|
|
||||||
|
Retrieve the database value associated with the given key.
|
||||||
|
|
||||||
|
#### database.set(key, value)
|
||||||
|
|
||||||
|
Sets the database value for the given key, overwriting any existing value.
|
||||||
|
|
||||||
|
#### database.remove(key)
|
||||||
|
|
||||||
|
Remove the database entry for the given key.
|
||||||
|
|
||||||
|
#### database.getAlll()
|
||||||
|
|
||||||
|
Retrieve a list of all key names.
|
||||||
|
|
||||||
|
### Network
|
||||||
|
|
||||||
|
Network access is generally not extended to untrusted users.
|
||||||
|
|
||||||
|
It is necessary to grant network permissions to an app owner through the
|
||||||
|
administration app.
|
||||||
|
|
||||||
|
Apps that require network access must declare it like this:
|
||||||
|
|
||||||
|
//! { "permissions": ["network"] }
|
||||||
|
|
||||||
|
#### network.newConnection()
|
||||||
|
|
||||||
|
Creates a Connection object.
|
||||||
|
|
||||||
|
#### connection.connect(host, port)
|
||||||
|
|
||||||
|
Opens a TCP connection to host:port.
|
||||||
|
|
||||||
|
#### connection.read(readCallback)
|
||||||
|
|
||||||
|
Begins reading and calls readCallback(data) for all data received.
|
||||||
|
|
||||||
|
#### connection.write(data)
|
||||||
|
|
||||||
|
Writes data to the connection.
|
||||||
|
|
||||||
|
#### connection.close()
|
||||||
|
|
||||||
|
Closes the connection.
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
# Tilde Friends Vision
|
|
||||||
|
|
||||||
Tilde Friends is a tool for making and sharing.
|
|
||||||
|
|
||||||
It is both a peer-to-peer social network client, participating in Secure
|
|
||||||
Scuttlebutt, and an environment for creating and running web applications.
|
|
||||||
|
|
||||||
## Why
|
|
||||||
|
|
||||||
This is a thing that I wanted to exist and wanted to work on. No other reason.
|
|
||||||
There is not a business model. I believe it is interesting and unique.
|
|
||||||
|
|
||||||
## Goals
|
|
||||||
|
|
||||||
1. Make it **easy and fun** to run all sorts of web applications.
|
|
||||||
|
|
||||||
2. Provide **security** that is easy to understand and protects your data.
|
|
||||||
|
|
||||||
3. Make **creating and sharing** web applications accessible to anyone with a
|
|
||||||
browser.
|
|
||||||
|
|
||||||
## Ways to Use Tilde Friends
|
|
||||||
|
|
||||||
1. **Social Network User**: This is a social network first. You are just here,
|
|
||||||
because your friends are. Or you like how we limit your message length or
|
|
||||||
short videos or whatever the trend is. If you are ambitious, you click links
|
|
||||||
and see interactive experiences (apps) that you wouldn't see elsewhere.
|
|
||||||
|
|
||||||
2. **Web Visitor**: You get links from a friend to meeting invites, polls, games,
|
|
||||||
lists, wiki pages, ..., and you interact with them as though they were
|
|
||||||
cloud-hosted by a megacorporation. They just work, and you don't think twice.
|
|
||||||
|
|
||||||
3. **Group leader**: You host or use a small public instance, installing apps for
|
|
||||||
a group of friends to use as web visitors.
|
|
||||||
|
|
||||||
4. **Developer**: You like to write code and make or improve apps for fun or to
|
|
||||||
solve problems. When you encounter a Tilde Friends app on a strange server,
|
|
||||||
you know you can trivially modify it or download it to your own instance.
|
|
||||||
|
|
||||||
## Future Goals / Endgame
|
|
||||||
|
|
||||||
1. Mobile apps. This can run on your old phone. Maybe you won't be hosting
|
|
||||||
the web interface publicly, but you can sync, install and edit apps, and
|
|
||||||
otherwise get the full experience from a tiny touch screen.
|
|
||||||
|
|
||||||
2. The universal application runtime. The web browser is the universal
|
|
||||||
platform, but even for the simplest application that you might want to host
|
|
||||||
for your friends, cloud hosting, containers, and complicated dependencies might
|
|
||||||
all enter the mix. Tilde Friends, though it is yet another thing to host,
|
|
||||||
includes everything you need out of the box to run a vast variety of interesting
|
|
||||||
apps.
|
|
||||||
|
|
||||||
Tilde Friends will be built out, gradually providing safe access to host
|
|
||||||
resources and client resources the same way web browsers extended access to
|
|
||||||
resources like GPU, persistent storage, cameras, ... over the years.
|
|
||||||
|
|
||||||
Not much effort has been put forward yet to having a robust, long-lasting API,
|
|
||||||
but since the client side longevity is already handled by web browsers, it
|
|
||||||
seems possible that the server-side API can be managed in a similar way.
|
|
||||||
|
|
||||||
3. An awesome development environment. Right now it runs JavaScript from the
|
|
||||||
first embeddable text editor I could poorly configure enough to edit code,
|
|
||||||
but it could incorporate a debugger, source control integration a la ssb-git,
|
|
||||||
merge tools, and transpiling from all sorts of different languages.
|
|
Loading…
Reference in New Issue
Block a user