ソースを参照

scaffold example

soyjavi 13 年 前
コミット
584ca56472

+ 62 - 0
examples/kitchen-sink/app/build/scaffold.js

@@ -0,0 +1,62 @@
+// Generated by CoffeeScript 1.3.3
+(function() {
+  var sections;
+
+  sections = [
+    {
+      id: "main",
+      transition: "slide",
+      header: {
+        title: "hola",
+        back: true,
+        nav: {
+          position: "right",
+          items: [
+            {
+              href: "#",
+              "data-icon": "home"
+            }
+          ]
+        }
+      },
+      footer: {
+        nav: {
+          "class": "with-labels",
+          items: [
+            {
+              href: "#",
+              "data-icon": "home",
+              "data-label": "ir"
+            }, {
+              href: "#",
+              "data-icon": "home",
+              "data-label": "ir"
+            }
+          ]
+        }
+      },
+      articles: [
+        {
+          id: "main-article"
+        }, {
+          id: "sksks"
+        }
+      ]
+    }, {
+      id: "item",
+      header: {
+        back: true
+      },
+      articles: [
+        {
+          id: "pending",
+          "class": "list scroll"
+        }, {
+          id: "finished",
+          "class": "list scroll"
+        }
+      ]
+    }
+  ];
+
+}).call(this);

+ 36 - 0
examples/kitchen-sink/app/scaffold.coffee

@@ -0,0 +1,36 @@
+sections = [
+    id: "main"
+    transition: "slide"
+    header:
+        title: "hola"
+        back: true
+        nav:
+            position: "right"
+            items: [
+                href: "#",
+                "data-icon": "home"
+            ]
+    footer:
+        nav:
+            class: "with-labels"
+            items: [
+                href: "#", "data-icon": "home", "data-label": "ir"
+            ,
+                href: "#", "data-icon": "home", "data-label": "ir"
+            ]
+
+    articles: [
+        id: "main-article"
+    ,
+        id: "sksks"
+    ]
+,
+    id: "item"
+    header:
+        back: true
+    articles: [
+        id: "pending", class: "list scroll"
+    ,
+        id: "finished", class: "list scroll"
+    ]
+]

+ 1 - 7
examples/kitchen-sink/index.html

@@ -149,13 +149,7 @@
                         'app/asides/features.html',
                         'app/asides/left.html',
                         'app/asides/right.html']
-            /*
-            ,
-            resources: {
-                sections: [ 'layout.html', 'notification.html', 'list.html', 'icon.html', 'grid.html', 'form.html', 'aside.html', 'touchevents.html', 'splash.html', 'data-attribute.html', 'scroll.html', 'color.html'],
-                asides: ['features.html', 'left.html', 'right.html']
-            }
-            */
+
         });
 
         Lungo.ready(function() {