diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-10-29 14:18:25 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-10-29 14:18:25 +0000 |
| commit | 1e3b0a12060dce916b686921c94520202c4cb130 (patch) | |
| tree | 064764fcb3b7daa25024b2565a64d48bae7d5d15 /root | |
| parent | fix the glaring security vulnerability i just implemented (diff) | |
| download | mmm-1e3b0a12060dce916b686921c94520202c4cb130.tar.gz mmm-1e3b0a12060dce916b686921c94520202c4cb130.zip | |
make security vulnerabilities optional, remove sandbox
Diffstat (limited to 'root')
11 files changed, 0 insertions, 79 deletions
diff --git a/root/sandbox/description: text$markdown.md b/root/sandbox/description: text$markdown.md deleted file mode 100644 index 250bb4e..0000000 --- a/root/sandbox/description: text$markdown.md +++ /dev/null @@ -1,5 +0,0 @@ -Everything in this Fileder is world-editable on the internet. -It will be reset to its' default state whenever I push my repository. -Please behave. - -Here is a list of this fileders content: diff --git a/root/sandbox/dynamic-children/a/text$lua -> table b/root/sandbox/dynamic-children/a/text$lua -> table deleted file mode 100644 index e69de29..0000000 --- a/root/sandbox/dynamic-children/a/text$lua -> table +++ /dev/null diff --git a/root/sandbox/dynamic-children/b/text$markdown.md b/root/sandbox/dynamic-children/b/text$markdown.md deleted file mode 100644 index e69de29..0000000 --- a/root/sandbox/dynamic-children/b/text$markdown.md +++ /dev/null diff --git a/root/sandbox/dynamic-children/c/text$javascript -> text$markdown.js b/root/sandbox/dynamic-children/c/text$javascript -> text$markdown.js deleted file mode 100644 index e69de29..0000000 --- a/root/sandbox/dynamic-children/c/text$javascript -> text$markdown.js +++ /dev/null diff --git a/root/sandbox/dynamic-children/description: text$markdown.md b/root/sandbox/dynamic-children/description: text$markdown.md deleted file mode 100644 index 32216ce..0000000 --- a/root/sandbox/dynamic-children/description: text$markdown.md +++ /dev/null @@ -1 +0,0 @@ -dynamically embedding children fileders with Lua diff --git a/root/sandbox/dynamic-children/text$lua -> fn -> mmm$dom.lua b/root/sandbox/dynamic-children/text$lua -> fn -> mmm$dom.lua deleted file mode 100644 index a3a019b..0000000 --- a/root/sandbox/dynamic-children/text$lua -> fn -> mmm$dom.lua +++ /dev/null @@ -1,19 +0,0 @@ -local d = require 'mmm.dom' -local u = require('mmm.mmmfs.util')(d) - --- we need to return a function to get access to the current fileder --- (thats why there is the '-> fn ->' in the type) -return function(self) - local children = {} - for i, child in ipairs(self.children) do - table.insert(children, d.li { - 'child ' .. i .. ': ', - u.link_to(child), - }) - end - - return d.article { - d.h1 'The Children are:', - d.ul(children), - } -end diff --git a/root/sandbox/javascript/description: text$markdown.md b/root/sandbox/javascript/description: text$markdown.md deleted file mode 100644 index eb0ca7c..0000000 --- a/root/sandbox/javascript/description: text$markdown.md +++ /dev/null @@ -1 +0,0 @@ -an example of how to use JS to create (dynamic) DOM / mmmfs content diff --git a/root/sandbox/javascript/text$javascript -> mmm$dom.js b/root/sandbox/javascript/text$javascript -> mmm$dom.js deleted file mode 100644 index 58deb23..0000000 --- a/root/sandbox/javascript/text$javascript -> mmm$dom.js +++ /dev/null @@ -1,24 +0,0 @@ -// a little helper function for creating DOM elements -const e = (elem, children) => { - const node = document.createElement(elem); - - if (typeof children === 'string') - node.innerText = children; - else - children.forEach(child => node.appendChild(child)); - - return node; -}; - -/* creating the equivalent of the following HTML directly as DOM content: - * - * <article> - * <h1>JavaScript</h1> - * <p>...</p> - * </article> - */ - -return e('article', [ - e('h1', 'JavaScript'), - e('p', 'JavaScript is supported natively in the browser but is not currently pre-rendered on the server.'), -]); diff --git a/root/sandbox/lua/description: text$markdown.md b/root/sandbox/lua/description: text$markdown.md deleted file mode 100644 index 3071697..0000000 --- a/root/sandbox/lua/description: text$markdown.md +++ /dev/null @@ -1 +0,0 @@ -an example of how to use Lua to create (dynamic) DOM / mmmfs content diff --git a/root/sandbox/lua/text$lua -> mmm$dom.lua b/root/sandbox/lua/text$lua -> mmm$dom.lua deleted file mode 100644 index db420ce..0000000 --- a/root/sandbox/lua/text$lua -> mmm$dom.lua +++ /dev/null @@ -1,10 +0,0 @@ --- see /meta/mmm.dom for documentation -local d = require 'mmm.dom' - -local lua = d.a { 'Lua', href = 'https://www.lua.org/' } -local fengari = d.a { 'fengari.io', href = 'https://fengari.io/' } - -return d.article { - d.h1 'Lua', - d.p { lua, ' is fully supported using ', fengari, ' on the Client.' } -} diff --git a/root/sandbox/text$lua -> fn -> mmm$dom.lua b/root/sandbox/text$lua -> fn -> mmm$dom.lua deleted file mode 100644 index 18206bb..0000000 --- a/root/sandbox/text$lua -> fn -> mmm$dom.lua +++ /dev/null @@ -1,18 +0,0 @@ -local d = require 'mmm.dom' -local u = require('mmm.mmmfs.util')(d) - -return function(self) - local children = {} - for i, child in ipairs(self.children) do - table.insert( - children, - d.li(u.link_to(child), ': ', (child:get('description: mmm/dom'))) - ) - end - - return d.div({ - d.h3(u.link_to(self)), - self:gett('description: mmm/dom'), - d.ul(children), - }) -end |
