Fix/sjcl variable (#8099)

* refactor: use files to add prefix

* fix: always use $tw.sjcl

* refactor: move sjcl to lib/sjcl

* fix: require sjcl in lib/

* refactor: move sjcl.js back into /boot
This commit is contained in:
lin onetwo
2024-05-26 15:56:25 +01:00
committed by GitHub
parent e3f9be995b
commit a463783283
3 changed files with 36 additions and 4 deletions
-3
View File
@@ -1,3 +0,0 @@
title: $:/library/sjcl.js
type: application/javascript
library: yes
+35
View File
@@ -0,0 +1,35 @@
{
"tiddlers": [
{
"file": "sjcl.js",
"fields": {
"title": "$:/library/sjcl.js",
"type": "application/javascript",
"library": "yes"
},
"prefix": "(function(define) {\n",
"suffix": "\n})(function (_,defined){window.sjcl = defined()})\n"
},
{
"file": "boot.js",
"fields": {
"title": "$:/boot/boot.js",
"type": "application/javascript"
}
},
{
"file": "bootprefix.js",
"fields": {
"title": "$:/boot/bootprefix.js",
"type": "application/javascript"
}
},
{
"file": "boot.css.tid",
"fields": {
"title": "$:/boot/boot.css",
"type": "text/css"
}
}
]
}