From efe14041b51bebbac1e619cae837edccd1e4ef6d Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 31 Dec 2022 03:40:41 +0100 Subject: [PATCH] Add g1lib crypto.mjs into TW --- crypto_challenge.txt | 47 + templates/twdefault.html | 4279 +++++++++++++++++++------------------- www/crypto.mjs | 4 +- 3 files changed, 2190 insertions(+), 2140 deletions(-) create mode 100644 crypto_challenge.txt diff --git a/crypto_challenge.txt b/crypto_challenge.txt new file mode 100644 index 00000000..ca64a53b --- /dev/null +++ b/crypto_challenge.txt @@ -0,0 +1,47 @@ +## CRYPTO DEFI +https://ipfs.copylaradio.com/ipfs/QmUtGpGeMZvwp47ftqebVmoFWCmvroy5wEtWsKvWvDWJpR/Foret%20Enchant%C3%A9e%20-%20PROJET%20ASTROPORT.pdf + +LES CLEFS DES TW DE LA FORET ONT ETE PERDUES + +Effacées de leur Station Astroport, les salt pepper manquent pour en reprendre le contrôle. + +http://ipfs.copylaradio.com:8080/ipns/k51qzi5uqu5dioeckikst5f8jw1tbljom6acjbw9zerl3671921krs4nm1531r +http://ipfs.copylaradio.com:8080/ipfs/QmWWwcnfpUssFpxPu2yz67sAofXiUhB7Hyiaqj58dtoyBd + +➢ Ğ1Actions /ipns/k51qzi5uqu5diyc1079mmusanhqz2feyl7ofrkbn7nw80x91tg3npbpn7ls9vn +/ipfs/QmNetNqjthacvam2zvRJnpYryB2ZYKUiAyXsHvdq2MHJh7 + +➢ Ğ1ArrosageJardin /ipns/k51qzi5uqu5dgrkrfhckkdyfeksxnsqa6jwtomm48g2ps6yfhg75ab6mu976s6 +Qma2dykfMxWD5mUPr7dCQCfPUSscCBDtJgg5piKVMXPkLk + +➢ Ğ1BioDigesteur /ipns/k51qzi5uqu5dko3yxg214k3o957g2m14ih3miiry9472k7tkb55o3auyvmggnq +Qmar1kpndh4sBZvANaCxY2RSnhtfKRQqC5cpL1ypA5hpHX + + +➢ Ğ1DessinsAnimes /ipns/k51qzi5uqu5dko0pdbr21whjz531g96rsgkg46xtwvek4h4jw5wurk0s3s0z47 +QmThfC4JiPXrzJ4euFXxvYgNey7Qim4XUHyBh2y5X1pykJ + +➢ Ğ1EauVivante /ipns/k51qzi5uqu5dgxuink7ch8a5m3bcwwir7nw6lfievvg7l1moompj5swkk4vsjx +QmYcQb7rQY2TJXxm7LKa5qRNnimPVZj7vctWHwg2rL3rxx + +➢ Ğ1Films /ipns/k51qzi5uqu5djlq9uxpjss08t2lr7n6kwn858w8wcqs1ym5wpzbo2n1j1o8xu7 +QmNMPQ46SX83CtDcCzMwUY4Z6yCVvwM9wgTGNvqSUzAC6w + +➢ Ğ1FiltreEauDIY /ipns/k51qzi5uqu5dll22sr6jw7nuamzc6jz9fgqoxmts3jkg1r9jdfd2j65lhp8kbn +QmcmLV31qfDmmAwUXiMrJZfsPoEKVGNX9LKrVfuDJ8trSX + +➢ Ğ1Flexyourte /ipns/k51qzi5uqu5dgmwympoar0pt719akiwhh3d9ire8ad66uaxxdprmu0w6ffy7cx + +➢ Ğ1ForetJardin /ipns/k51qzi5uqu5djtz886qkuwcwao0zkbkfz6ct5j7k5hslzkvihk26eqx57fhane + + +➢ Ğ1Ğ1Ronds /ipns/k51qzi5uqu5dmdjma9ew6vqrbqp3hrzh3aen1c37ahq4tm9tt738cpd19r86e4 +➢ Ğ1Kerterre /ipns/k51qzi5uqu5dgh0n8i418g154vhf9yhfegdmessww9eae7o11w2uaionso7zej +➢ Ğ1ReacteurBoisHuileEau /ipns/k51qzi5uqu5dkv77ezda27py7rdoi1jnnljpv2pdjt0z9s6si5ontp2gu6480p +➢ Ğ1Ressourcerie /ipns/k51qzi5uqu5dltlzvbhypviokoyy31gnc4zxdcrbs9bpawo9ed7sqyjlrrq203 +➢ Ğ1Solaire /ipns/k51qzi5uqu5dj0dgu97f8we2ra8h8ze4hcuw48pscfbxkfw6038zhh015q225v +➢ Ğ1ToilettesSeches /ipns/k51qzi5uqu5dmgh97e27tpsm9yj4ko04j5labaqdsqg0yyic6ymui7v0knq57y + + +ARRIVEREZ-VOUS A RACCORDER CE TW A UN ASTROPORT ? +Des incides otn été laissés... diff --git a/templates/twdefault.html b/templates/twdefault.html index 59ee926d..811c48a4 100644 --- a/templates/twdefault.html +++ b/templates/twdefault.html @@ -69,68 +69,68 @@ Error message and password prompt */ .tc-error-form { - font-family: sans-serif; - color: #fff; - z-index: 20000; - position: fixed; - background-color: rgb(255, 75, 75); - border: 8px solid rgb(255, 0, 0); - border-radius: 8px; - width: 50%; - margin-left: 25%; - margin-top: 4em; - padding: 0 2em 1em 2em; + font-family: sans-serif; + color: #fff; + z-index: 20000; + position: fixed; + background-color: rgb(255, 75, 75); + border: 8px solid rgb(255, 0, 0); + border-radius: 8px; + width: 50%; + margin-left: 25%; + margin-top: 4em; + padding: 0 2em 1em 2em; } .tc-error-form h1 { - text-align: center; + text-align: center; } .tc-error-prompt { - text-align: center; - color: #000; + text-align: center; + color: #000; } .tc-error-message { - overflow: auto; - max-height: 40em; - padding-right: 1em; - margin: 1em 0; - white-space: pre-line; + overflow: auto; + max-height: 40em; + padding-right: 1em; + margin: 1em 0; + white-space: pre-line; } .tc-password-wrapper { font-family: sans-serif; - z-index: 20000; - position: fixed; - text-align: center; - width: 200px; - top: 4em; - left: 50%; - margin-left: -144px; /* - width/2 - paddingHorz/2 - border */ - padding: 16px 16px 16px 16px; - border-radius: 8px; + z-index: 20000; + position: fixed; + text-align: center; + width: 200px; + top: 4em; + left: 50%; + margin-left: -144px; /* - width/2 - paddingHorz/2 - border */ + padding: 16px 16px 16px 16px; + border-radius: 8px; } .tc-password-wrapper { - color: #000; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - background-color: rgb(197, 235, 183); - border: 8px solid rgb(164, 197, 152); + color: #000; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + background-color: rgb(197, 235, 183); + border: 8px solid rgb(164, 197, 152); } .tc-password-wrapper form { - text-align: left; + text-align: left; } .tc-password-wrapper h1 { - font-size: 16px; - line-height: 20px; - padding-bottom: 16px; + font-size: 16px; + line-height: 20px; + padding-bottom: 16px; } .tc-password-wrapper input { - width: 100%; + width: 100%; } @@ -658,26 +658,26 @@ $tw.boot = $tw.boot || Object.create(null); // Detect platforms if(!("browser" in $tw)) { - $tw.browser = typeof(window) !== "undefined" ? {} : null; + $tw.browser = typeof(window) !== "undefined" ? {} : null; } if(!("node" in $tw)) { - $tw.node = typeof(process) === "object" ? {} : null; + $tw.node = typeof(process) === "object" ? {} : null; } if(!("nodeWebKit" in $tw)) { - $tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null; + $tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null; } // Set default boot tasks $tw.boot.tasks = { - trapErrors: !!($tw.browser && !$tw.node), - readBrowserTiddlers: !!($tw.browser && !$tw.node) + trapErrors: !!($tw.browser && !$tw.node), + readBrowserTiddlers: !!($tw.browser && !$tw.node) }; /* Information about each module is kept in an object with these members: - moduleType: type of module - definition: object, function or string defining the module; see below - exports: exports of the module, filled in after execution + moduleType: type of module + definition: object, function or string defining the module; see below + exports: exports of the module, filled in after execution The `definition` can be of several types: @@ -688,40 +688,40 @@ The `definition` can be of several types: Each moduleInfo object is stored in two hashmaps: $tw.modules.titles and $tw.modules.types. The first is indexed by title and the second is indexed by type and then title */ $tw.modules = { - titles: {}, // hashmap by module name of moduleInfo - types: {} // hashmap by module type and then name of moduleInfo + titles: {}, // hashmap by module name of moduleInfo + types: {} // hashmap by module type and then name of moduleInfo }; /* Define a JavaScript tiddler module for later execution - moduleName: name of module being defined - moduleType: type of module - definition: module definition; see discussion above + moduleName: name of module being defined + moduleType: type of module + definition: module definition; see discussion above */ $tw.modules.define = function(moduleName,moduleType,definition) { - // Create the moduleInfo - var moduleInfo = { - moduleType: moduleType, - definition: definition, - exports: undefined - }; - // If the definition is already an object we can use it as the exports - if(typeof moduleInfo.definition === "object") { - moduleInfo.exports = definition; - } - // Store the module in the titles hashmap - if(Object.prototype.hasOwnProperty.call($tw.modules.titles,moduleName)) { - console.log("Warning: Redefined module - " + moduleName); - } - $tw.modules.titles[moduleName] = moduleInfo; - // Store the module in the types hashmap - if(!Object.prototype.hasOwnProperty.call($tw.modules.types,moduleType)) { - $tw.modules.types[moduleType] = {}; - } - if(Object.prototype.hasOwnProperty.call($tw.modules.types[moduleType],moduleName)) { - console.log("Warning: Redefined module - " + moduleName); - } - $tw.modules.types[moduleType][moduleName] = moduleInfo; + // Create the moduleInfo + var moduleInfo = { + moduleType: moduleType, + definition: definition, + exports: undefined + }; + // If the definition is already an object we can use it as the exports + if(typeof moduleInfo.definition === "object") { + moduleInfo.exports = definition; + } + // Store the module in the titles hashmap + if(Object.prototype.hasOwnProperty.call($tw.modules.titles,moduleName)) { + console.log("Warning: Redefined module - " + moduleName); + } + $tw.modules.titles[moduleName] = moduleInfo; + // Store the module in the types hashmap + if(!Object.prototype.hasOwnProperty.call($tw.modules.types,moduleType)) { + $tw.modules.types[moduleType] = {}; + } + if(Object.prototype.hasOwnProperty.call($tw.modules.types[moduleType],moduleName)) { + console.log("Warning: Redefined module - " + moduleName); + } + $tw.modules.types[moduleType][moduleName] = moduleInfo; }; /* @@ -733,14 +733,14 @@ $tw.preloadTiddlers = $tw.preloadTiddlers || []; Convenience function for pushing a tiddler onto the preloading array */ $tw.preloadTiddler = function(fields) { - $tw.preloadTiddlers.push(fields); + $tw.preloadTiddlers.push(fields); }; /* Convenience function for pushing an array of tiddlers onto the preloading array */ $tw.preloadTiddlerArray = function(fieldsArray) { - $tw.preloadTiddlers.push.apply($tw.preloadTiddlers,fieldsArray); + $tw.preloadTiddlers.push.apply($tw.preloadTiddlers,fieldsArray); }; return $tw; @@ -748,17 +748,18 @@ return $tw; }); if(typeof(exports) === "undefined") { - // Set up $tw global for the browser - window.$tw = _bootprefix(window.$tw); + // Set up $tw global for the browser + window.$tw = _bootprefix(window.$tw); } else { - // Export functionality as a module - exports.bootprefix = _bootprefix; + // Export functionality as a module + exports.bootprefix = _bootprefix; } //# sourceURL=$:/boot/bootprefix.js