ソースを参照

assign categories to jQuery examples

Benoît Hubert 8 年 前
コミット
dcdd73638c

+ 1 - 1
exemples/jquery/ajax-envoi-formulaire-par-get/config.json

@@ -1,6 +1,6 @@
 {
   "title": "AJAX - Envoi formulaire par GET",
-  "category": "misc",
+  "category": "ajax",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/ajax-envoi-formulaire-par-post/config.json

@@ -1,6 +1,6 @@
 {
   "title": "AJAX - Envoi formulaire par POST",
-  "category": "misc",
+  "category": "ajax",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/ajax-exemple-simple/config.json

@@ -1,6 +1,6 @@
 {
   "title": "AJAX - Exemple simple",
-  "category": "misc",
+  "category": "ajax",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/ajax-requete-randomuserme/config.json

@@ -1,6 +1,6 @@
 {
   "title": "AJAX - Requête randomuser.me",
-  "category": "misc",
+  "category": "ajax",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/ajax-requete-themoviedborg/config.json

@@ -1,6 +1,6 @@
 {
   "title": "AJAX - Requête themoviedb.org",
-  "category": "misc",
+  "category": "ajax",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/evenements-1-click-submit/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Evènements 1 : click et submit",
-  "category": "misc",
+  "category": "evenements",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/evenements-2-change/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Evènements 2 : change",
-  "category": "misc",
+  "category": "evenements",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/evenements-3-keyup/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Evènements 3 : keyup",
-  "category": "misc",
+  "category": "evenements",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 19 - 1
exemples/jquery/repo-config.json

@@ -1,3 +1,21 @@
 {
-  "title": "jQuery"
+  "title": "jQuery",
+  "categories": [
+    {
+      "slug": "selecteurs",
+      "title": "Sélecteurs"
+    },
+    {
+      "slug": "evenements",
+      "title": "Évènements"
+    },
+    {
+      "slug": "ajax",
+      "title": "AJAX"
+    },
+    {
+      "slug": "misc",
+      "title": "Non-classé"
+    }
+  ]
 }

+ 1 - 1
exemples/jquery/selecteurs-basiques/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Sélecteurs basiques",
-  "category": "misc",
+  "category": "selecteurs",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/selecteurs-filtres-2/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Sélecteurs : filtres 2",
-  "category": "misc",
+  "category": "selecteurs",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/selecteurs-filtres/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Sélecteurs : filtres",
-  "category": "misc",
+  "category": "selecteurs",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],

+ 1 - 1
exemples/jquery/selecteurs-multiples/config.json

@@ -1,6 +1,6 @@
 {
   "title": "Sélecteurs multiples",
-  "category": "misc",
+  "category": "selecteurs",
   "html": [ "example.html" ],
   "js": [ "script.js" ],
   "css": [],