diff --git a/1--conocer/wiki/._copinchapedia-notebook.html b/1--conocer/wiki/._copinchapedia-notebook.html deleted file mode 100644 index 2c1ff02..0000000 Binary files a/1--conocer/wiki/._copinchapedia-notebook.html and /dev/null differ diff --git a/1--conocer/wiki/backup/index-A2.html b/1--conocer/wiki/backup/index-A2.html new file mode 100644 index 0000000..8ac1229 --- /dev/null +++ b/1--conocer/wiki/backup/index-A2.html @@ -0,0 +1,3500 @@ + + + + + + + + + + + + + + + + + + + + +copinchapedia — la wiki de copincha + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/1--conocer/wiki/backup/index-A3.html b/1--conocer/wiki/backup/index-A3.html new file mode 100644 index 0000000..d5c8c88 --- /dev/null +++ b/1--conocer/wiki/backup/index-A3.html @@ -0,0 +1,3500 @@ + + + + + + + + + + + + + + + + + + + + +copinchapedia — la wiki de copincha + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/1--conocer/wiki/dev-old.html b/1--conocer/wiki/dev-old.html new file mode 100644 index 0000000..efa3507 --- /dev/null +++ b/1--conocer/wiki/dev-old.html @@ -0,0 +1,65984 @@ + + + + + + + + + + + + + + + + + + + + +Copincha — a non-linear personal web notebook + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + diff --git a/1--conocer/wiki/dev.html b/1--conocer/wiki/dev.html index e10ba3c..3ca53fb 100644 --- a/1--conocer/wiki/dev.html +++ b/1--conocer/wiki/dev.html @@ -10,7 +10,7 @@ - + @@ -19,7 +19,7 @@ -Copincha — a non-linear personal web notebook +copinchapedia — la wiki de copincha @@ -141,63133 +141,443 @@ Error message and password prompt

This TiddlyWiki contains the following tiddlers:

-

- - - - - - - - - - - - + + + @@ -63527,6 +838,26 @@ $tw.utils.isArrayEqual = function(array1,array2) { }); }; +/* +Add an entry to a sorted array if it doesn't already exist, while maintaining the sort order +*/ +$tw.utils.insertSortedArray = function(array,value) { + var low = 0, high = array.length - 1, mid, cmp; + while(low <= high) { + mid = (low + high) >> 1; + cmp = value.localeCompare(array[mid]); + if(cmp > 0) { + low = mid + 1; + } else if(cmp < 0) { + high = mid - 1; + } else { + return array; + } + } + array.splice(low,0,value); + return array; +}; + /* Push entries onto an array, removing them first if they already exist in the array array: array to modify (assumed to be free of duplicates) @@ -63715,6 +1046,28 @@ $tw.utils.deepDefaults = function(object /*, sourceObjectList */) { return object; }; +/* +Convert a URIComponent encoded string to a string safely +*/ +$tw.utils.decodeURIComponentSafe = function(s) { + var v = s; + try { + v = decodeURIComponent(s); + } catch(e) {} + return v; +}; + +/* +Convert a URI encoded string to a string safely +*/ +$tw.utils.decodeURISafe = function(s) { + var v = s; + try { + v = decodeURI(s); + } catch(e) {} + return v; +}; + /* Convert "&" to &, " " to nbsp, "<" to <, ">" to > and """ to " */ @@ -63726,8 +1079,16 @@ $tw.utils.htmlDecode = function(s) { Get the browser location.hash. We don't use location.hash because of the way that Firefox auto-urldecodes it (see http://stackoverflow.com/questions/1703552/encoding-of-window-location-hash) */ $tw.utils.getLocationHash = function() { - var parts = window.location.href.split('#'); - return "#" + (parts.length > 1 ? parts[1] : ""); + var href = window.location.href; + var idx = href.indexOf('#'); + if(idx === -1) { + return "#"; + } else if(href.substr(idx + 1,1) === "#" || href.substr(idx + 1,3) === "%23") { + // Special case: ignore location hash if it itself starts with a # + return "#"; + } else { + return href.substring(idx); + } }; /* @@ -63756,13 +1117,21 @@ $tw.utils.stringifyDate = function(value) { // Parse a date from a UTC YYYYMMDDHHMMSSmmm format string $tw.utils.parseDate = function(value) { if(typeof value === "string") { - return new Date(Date.UTC(parseInt(value.substr(0,4),10), + var negative = 1; + if(value.charAt(0) === "-") { + negative = -1; + value = value.substr(1); + } + var year = parseInt(value.substr(0,4),10) * negative, + d = new Date(Date.UTC(year, parseInt(value.substr(4,2),10)-1, parseInt(value.substr(6,2),10), parseInt(value.substr(8,2)||"00",10), parseInt(value.substr(10,2)||"00",10), parseInt(value.substr(12,2)||"00",10), parseInt(value.substr(14,3)||"000",10))); + d.setUTCFullYear(year); // See https://stackoverflow.com/a/5870822 + return d; } else if($tw.utils.isDate(value)) { return value; } else { @@ -63776,7 +1145,7 @@ $tw.utils.stringifyList = function(value) { var result = new Array(value.length); for(var t=0, l=value.length; t 0){ + $tw.wiki.addTiddler({title: "$:/config/OriginalTiddlerPaths", type: "application/json", text: JSON.stringify(output)}); } - $tw.wiki.addTiddler({title: "$:/config/OriginalTiddlerPaths", type: "application/json", text: JSON.stringify(output)}); } - // Save the path to the tiddlers folder for the filesystemadaptor - $tw.boot.wikiTiddlersPath = path.resolve($tw.boot.wikiPath,config["default-tiddler-location"] || $tw.config.wikiTiddlersSubDir); // Load any plugins within the wiki folder var wikiPluginsPath = path.resolve(wikiPath,$tw.config.wikiPluginsSubDir); if(fs.existsSync(wikiPluginsPath)) { @@ -65605,7 +3087,7 @@ $tw.loadTiddlersNode = function() { // Load any extra plugins $tw.utils.each($tw.boot.extraPlugins,function(name) { if(name.charAt(0) === "+") { // Relative path to plugin - var pluginFields = $tw.loadPluginFolder(name.substring(1));; + var pluginFields = $tw.loadPluginFolder(name.substring(1)); if(pluginFields) { $tw.wiki.addTiddler(pluginFields); } @@ -65614,7 +3096,7 @@ $tw.loadTiddlersNode = function() { type = parts[0]; if(parts.length === 3 && ["plugins","themes","languages"].indexOf(type) !== -1) { $tw.loadPlugins([parts[1] + "/" + parts[2]],$tw.config[type + "Path"],$tw.config[type + "EnvVar"]); - } + } } }); // Load the tiddlers from the wiki directory @@ -65631,8 +3113,7 @@ $tw.loadTiddlersNode = function() { /* Startup TiddlyWiki */ -$tw.boot.startup = function(options) { - options = options || {}; +$tw.boot.initStartup = function(options) { // Get the URL hash and check for safe mode $tw.locationHash = "#"; if($tw.browser && !$tw.node) { @@ -65718,22 +3199,25 @@ $tw.boot.startup = function(options) { $tw.utils.registerFileType("application/zip","base64",".zip"); $tw.utils.registerFileType("application/x-zip-compressed","base64",".zip"); $tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]}); + $tw.utils.registerFileType("image/jpg","base64",[".jpg",".jpeg"],{flags:["image"]}); $tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]}); $tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]}); $tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]}); $tw.utils.registerFileType("image/heic","base64",".heic",{flags:["image"]}); $tw.utils.registerFileType("image/heif","base64",".heif",{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/x-icon","base64",".ico",{flags:["image"]}); $tw.utils.registerFileType("application/font-woff","base64",".woff"); $tw.utils.registerFileType("application/x-font-ttf","base64",".woff"); $tw.utils.registerFileType("application/font-woff2","base64",".woff2"); $tw.utils.registerFileType("audio/ogg","base64",".ogg"); + $tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]); $tw.utils.registerFileType("video/ogg","base64",[".ogm",".ogv",".ogg"]); $tw.utils.registerFileType("video/webm","base64",".webm"); $tw.utils.registerFileType("video/mp4","base64",".mp4"); $tw.utils.registerFileType("audio/mp3","base64",".mp3"); - $tw.utils.registerFileType("audio/mp4","base64",[".mp4",".m4a"]); + $tw.utils.registerFileType("audio/mpeg","base64",[".mp3",".m2a",".mp2",".mpa",".mpg",".mpga"]); $tw.utils.registerFileType("text/markdown","utf8",[".md",".markdown"],{deserializerType:"text/x-markdown"}); $tw.utils.registerFileType("text/x-markdown","utf8",[".md",".markdown"]); $tw.utils.registerFileType("application/enex+xml","utf8",".enex"); @@ -65745,7 +3229,7 @@ $tw.boot.startup = function(options) { $tw.utils.registerFileType("application/epub+zip","base64",".epub"); $tw.utils.registerFileType("application/octet-stream","base64",".octet-stream"); // Create the wiki store for the app - $tw.wiki = new $tw.Wiki(); + $tw.wiki = new $tw.Wiki($tw.safeMode && {enableIndexers: []}); // Install built in tiddler fields modules $tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield"); // Install the tiddler deserializer modules @@ -65765,6 +3249,9 @@ $tw.boot.startup = function(options) { return result; } } +}; +$tw.boot.loadStartup = function(options){ + // Load tiddlers if($tw.boot.tasks.readBrowserTiddlers) { $tw.loadTiddlersBrowser(); @@ -65777,6 +3264,8 @@ $tw.boot.startup = function(options) { } // Give hooks a chance to modify the store $tw.hooks.invokeHook("th-boot-tiddlers-loaded"); +} +$tw.boot.execStartup = function(options){ // Unpack plugin tiddlers $tw.wiki.readPluginInfo(); $tw.wiki.registerPluginTiddlers("plugin",$tw.safeMode ? ["$:/core"] : undefined); @@ -65805,6 +3294,16 @@ $tw.boot.startup = function(options) { $tw.boot.disabledStartupModules = $tw.boot.disabledStartupModules || []; // Repeatedly execute the next eligible task $tw.boot.executeNextStartupTask(options.callback); +} +/* +Startup TiddlyWiki +*/ +$tw.boot.startup = function(options) { + options = options || {}; + // Get the URL hash and check for safe mode + $tw.boot.initStartup(options); + $tw.boot.loadStartup(options); + $tw.boot.execStartup(options); }; /* @@ -65866,16 +3365,29 @@ $tw.boot.executeNextStartupTask = function(callback) { }; /* -Returns true if we are running on one platforms specified in a task modules `platforms` array +Returns true if we are running on one of the platforms specified in taskModule's +`platforms` array; or if `platforms` property is not defined. */ $tw.boot.doesTaskMatchPlatform = function(taskModule) { var platforms = taskModule.platforms; if(platforms) { for(var t=0; t diff --git a/1--conocer/wiki/index-old.html b/1--conocer/wiki/index-old.html new file mode 100644 index 0000000..434a4e2 --- /dev/null +++ b/1--conocer/wiki/index-old.html @@ -0,0 +1,10193 @@ + + + + + + + + + + + + + + + + + + + + +Copinchapedia + +— Wiki del Hackerspace Copincha + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + diff --git a/1--conocer/wiki/index.html b/1--conocer/wiki/index.html index 55ac631..ddb876f 100644 --- a/1--conocer/wiki/index.html +++ b/1--conocer/wiki/index.html @@ -2,7 +2,7 @@ - + @@ -10,7 +10,7 @@ - + @@ -19,7 +19,7 @@ -Copinchapedia - -— Wiki del Hackerspace Copincha - +copinchapedia — la wiki de copincha @@ -144,10049 +141,3359 @@ Error message and password prompt

This TiddlyWiki contains the following tiddlers:

+

-
  • $:/plugins/tiddlywiki/railroad
  • -
  • $:/plugins/TWaddle/LeftBar/temp
  • -
  • $:/richlink/.dictionary
  • + -
  • $:/richlink/audio
  • + + + + + + + + + + - - - - diff --git a/1--conocer/wiki/media/image/background.svg b/1--conocer/wiki/media/image/background.svg new file mode 100644 index 0000000..48cefd3 --- /dev/null +++ b/1--conocer/wiki/media/image/background.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/1--conocer/wiki/media/image/banner--01.svg b/1--conocer/wiki/media/image/banner--01.svg new file mode 100644 index 0000000..7c04a01 --- /dev/null +++ b/1--conocer/wiki/media/image/banner--01.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/1--conocer/wiki/media/image/copincha-logo.png b/1--conocer/wiki/media/image/copincha-logo.png new file mode 100644 index 0000000..0b964f3 Binary files /dev/null and b/1--conocer/wiki/media/image/copincha-logo.png differ