From 3abb5c0be1bba44702a77a32caf368775ab855c2 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 15 Feb 2020 15:38:17 +0100 Subject: rename articles to research --- root/articles/mmmfs/examples/gallery/$order | 2 -- .../examples/gallery/actual_image/image$png.png | Bin 678429 -> 0 bytes .../gallery/actual_image/preview: image$png.png | Bin 31880 -> 0 bytes .../examples/gallery/link_to_image/URL -> image$png | 1 - .../gallery/link_to_image/preview: URL -> image$png | 1 - ...show: text$moonscript -> fn -> mmm$component.moon | 19 ------------------- .../gallery/text$moonscript -> fn -> mmm$dom.moon | 12 ------------ .../mmmfs/examples/gallery/title: text$plain | 1 - 8 files changed, 36 deletions(-) delete mode 100644 root/articles/mmmfs/examples/gallery/$order delete mode 100644 root/articles/mmmfs/examples/gallery/actual_image/image$png.png delete mode 100644 root/articles/mmmfs/examples/gallery/actual_image/preview: image$png.png delete mode 100644 root/articles/mmmfs/examples/gallery/link_to_image/URL -> image$png delete mode 100644 root/articles/mmmfs/examples/gallery/link_to_image/preview: URL -> image$png delete mode 100644 root/articles/mmmfs/examples/gallery/slideshow: text$moonscript -> fn -> mmm$component.moon delete mode 100644 root/articles/mmmfs/examples/gallery/text$moonscript -> fn -> mmm$dom.moon delete mode 100644 root/articles/mmmfs/examples/gallery/title: text$plain (limited to 'root/articles/mmmfs/examples/gallery') diff --git a/root/articles/mmmfs/examples/gallery/$order b/root/articles/mmmfs/examples/gallery/$order deleted file mode 100644 index 9d438bd..0000000 --- a/root/articles/mmmfs/examples/gallery/$order +++ /dev/null @@ -1,2 +0,0 @@ -link_to_image -actual_image diff --git a/root/articles/mmmfs/examples/gallery/actual_image/image$png.png b/root/articles/mmmfs/examples/gallery/actual_image/image$png.png deleted file mode 100644 index b499413..0000000 Binary files a/root/articles/mmmfs/examples/gallery/actual_image/image$png.png and /dev/null differ diff --git a/root/articles/mmmfs/examples/gallery/actual_image/preview: image$png.png b/root/articles/mmmfs/examples/gallery/actual_image/preview: image$png.png deleted file mode 100644 index f9dbfad..0000000 Binary files a/root/articles/mmmfs/examples/gallery/actual_image/preview: image$png.png and /dev/null differ diff --git a/root/articles/mmmfs/examples/gallery/link_to_image/URL -> image$png b/root/articles/mmmfs/examples/gallery/link_to_image/URL -> image$png deleted file mode 100644 index 7cf76ff..0000000 --- a/root/articles/mmmfs/examples/gallery/link_to_image/URL -> image$png +++ /dev/null @@ -1 +0,0 @@ -https://picsum.photos/600/600/?image=101 diff --git a/root/articles/mmmfs/examples/gallery/link_to_image/preview: URL -> image$png b/root/articles/mmmfs/examples/gallery/link_to_image/preview: URL -> image$png deleted file mode 100644 index 2b2233b..0000000 --- a/root/articles/mmmfs/examples/gallery/link_to_image/preview: URL -> image$png +++ /dev/null @@ -1 +0,0 @@ -https://picsum.photos/200/200/?image=101 diff --git a/root/articles/mmmfs/examples/gallery/slideshow: text$moonscript -> fn -> mmm$component.moon b/root/articles/mmmfs/examples/gallery/slideshow: text$moonscript -> fn -> mmm$component.moon deleted file mode 100644 index 0178ac2..0000000 --- a/root/articles/mmmfs/examples/gallery/slideshow: text$moonscript -> fn -> mmm$component.moon +++ /dev/null @@ -1,19 +0,0 @@ -import ReactiveVar, text, elements from require 'mmm.component' -import div, a, img from elements - -=> - index = ReactiveVar 1 - - prev = (i) -> math.max 1, i - 1 - next = (i) -> math.min #@children, i + 1 - - div { - div { - a 'prev', href: '#', onclick: -> index\transform prev - index\map (i) -> text " image ##{i} " - a 'next', href: '#', onclick: -> index\transform next - }, - index\map (i) -> - child = assert @children[i], "image not found!" - img src: @children[i]\gett 'URL -> image/png' - } diff --git a/root/articles/mmmfs/examples/gallery/text$moonscript -> fn -> mmm$dom.moon b/root/articles/mmmfs/examples/gallery/text$moonscript -> fn -> mmm$dom.moon deleted file mode 100644 index 9bdac54..0000000 --- a/root/articles/mmmfs/examples/gallery/text$moonscript -> fn -> mmm$dom.moon +++ /dev/null @@ -1,12 +0,0 @@ -import div, h1, a, img, br from require 'mmm.dom' - -=> - link = (child) -> a { - href: '#', - onclick: -> BROWSER\navigate child.path - img src: child\gett 'preview', 'URL -> image/png' - } - - content = [link child for child in *@children] - table.insert content, 1, h1 'gallery index' - div content diff --git a/root/articles/mmmfs/examples/gallery/title: text$plain b/root/articles/mmmfs/examples/gallery/title: text$plain deleted file mode 100644 index 2e9ef34..0000000 --- a/root/articles/mmmfs/examples/gallery/title: text$plain +++ /dev/null @@ -1 +0,0 @@ -a gallery of images -- cgit v1.2.3