-
+ {{ range where $.Site.Data.bundles "status" "live" }}
+ {{ partial "bundle.html" . }}
+ {{ end }}
+
+
+ {{ range where $.Site.Data.bundles "status" "coming-soon" }}
+
diff --git a/data/bundles.json b/data/bundles.json
old mode 100755
new mode 100644
index 22c1cd9..a5ff5d4
--- a/data/bundles.json
+++ b/data/bundles.json
@@ -1,243 +1,303 @@
-{
- "Bundles": {
- "Browser JS": {
- "status": "live",
- "image": "../img/logo_1.png",
- "github": "https://github.com/ipfs/js-libp2p-ipfs-browser",
- "categories": {
- "Transport": {
- "modules": {
- "libp2p-websockets": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-websockets"
- },
- "libp2p-webrtc-star": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
- }
- }
- },
- "Stream Muxer": {
- "modules": {
- "libp2p-multiplex": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-multiplex"
- },
- "libp2p-spdy": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-spdy"
- }
- }
- },
- "Crypto Channels": {
- "modules": {
- "libp2p-secio": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-secio"
- }
- }
- },
- "Peer Routing": {
- "modules": {
- "libp2p-kad-dht": {
- "status": "unstable",
- "url": "https://github.com/libp2p/js-libp2p-kad-dht"
- }
- }
- },
- "Record Stores": {
- "modules": {
- "record": {
- "status": "usable",
- "url": "https://github.com/libp2p/js-libp2p-record"
- }
- }
- },
- "Discovery": {
- "modules": {
- "libp2p-webrtc-star": {
- "status": "done",
- "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
- },
- "libp2p-railing": {
- "status": "done",
- "url": "https://github.com/libp2p/js-libp2p-railing"
- }
- }
- }
+[
+ {
+ "id": "browser-js",
+ "name": "Browser JS",
+ "status": "live",
+ "image": "../img/logo_1.png",
+ "github": "https://github.com/ipfs/js-libp2p-ipfs-browser",
+ "categories": [
+ {
+ "id": "transport",
+ "modules": [
+ {
+ "id": "libp2p-websockets",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-websockets"
+ },
+ {
+ "id": "libp2p-webrtc-star",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
+ }
+ ]
+ },
+ {
+ "id": "stream-muxer",
+ "modules": [
+ {
+ "id": "libp2p-multiplex",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-multiplex"
+ },
+ {
+ "id": "libp2p-spdy",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-spdy"
+ }
+ ]
+ },
+ {
+ "id": "crypto-channels",
+ "modules": [
+ {
+ "id": "libp2p-secio",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-secio"
+ }
+ ]
+ },
+ {
+ "id": "peer-routing",
+ "modules": [
+ {
+ "id": "libp2p-kad-dht",
+ "status": "Unstable",
+ "url": "https://github.com/libp2p/js-libp2p-kad-dht"
+ }
+ ]
+ },
+ {
+ "id": "record-stores",
+ "modules": [
+ {
+ "id": "record",
+ "status": "Usable",
+ "url": "https://github.com/libp2p/js-libp2p-record"
+ }
+ ]
+ },
+ {
+ "id": "discovery",
+ "modules": [
+ {
+ "id": "libp2p-webrtc-star",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
+ },
+ {
+ "id": "libp2p-railing",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-railing"
+ }
+ ]
}
- },
- "Node JS": {
- "status": "live",
- "image": "../img/logo_2.png",
- "github": "https://github.com/ipfs/js-libp2p-ipfs-nodejs",
- "categories": {
- "Transport": {
- "modules": {
- "libp2p-tcp": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-tcp"
- },
- "libp2p-websockets": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-websockets"
- },
- "libp2p-webrtc-star": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
- }
- }
- },
- "Stream Muxer": {
- "modules": {
- "libp2p-multiplex": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-multiplex"
- },
- "libp2p-spdy": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-spdy"
- }
- }
- },
- "Crypto Channels": {
- "modules": {
- "libp2p-secio": {
- "status": "Done",
- "url": "https://github.com/libp2p/js-libp2p-secio"
- }
- }
- },
- "Peer Routing": {
- "modules": {
- "libp2p-kad-dht": {
- "status": "unstable",
- "url": "https://github.com/libp2p/js-libp2p-kad-dht"
- }
- }
- },
- "Record Stores": {
- "modules": {
- "record": {
- "status": "usable",
- "url": "https://github.com/libp2p/js-libp2p-record"
- }
- }
- },
- "Discovery": {
- "modules": {
- "libp2p-mdns": {
- "status": "done",
- "url": "https://github.com/libp2p/js-libp2p-mdns"
- },
- "libp2p-webrtc-star": {
- "status": "done",
- "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
- },
- "libp2p-railing": {
- "status": "unstable",
- "url": "https://github.com/libp2p/js-libp2p-railing"
- }
- }
- }
+ ]
+ },
+ {
+ "id": "node-js",
+ "name": "Node JS",
+ "status": "live",
+ "image": "../img/logo_2.png",
+ "github": "https://github.com/ipfs/js-libp2p-ipfs-nodejs",
+ "categories": [
+ {
+ "id": "transport",
+ "modules": [
+ {
+ "id": "libp2p-tcp",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-tcp"
+ },
+ {
+ "id": "libp2p-websockets",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-websockets"
+ },
+ {
+ "id": "libp2p-webrtc-star",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
+ }
+ ]
+ },
+ {
+ "id": "stream-muxer",
+ "modules": [
+ {
+ "id": "libp2p-multiplex",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-multiplex"
+ },
+ {
+ "id": "libp2p-spdy",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-spdy"
+ }
+ ]
+ },
+ {
+ "id": "crypto-channels",
+ "modules": [
+ {
+ "id": "libp2p-secio",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-secio"
+ }
+ ]
+ },
+ {
+ "id": "peer-routing",
+ "modules": [
+ {
+ "id": "libp2p-kad-dht",
+ "status": "Unstable",
+ "url": "https://github.com/libp2p/js-libp2p-kad-dht"
+ }
+ ]
+ },
+ {
+ "id": "record-stores",
+ "modules": [
+ {
+ "id": "record",
+ "status": "Usable",
+ "url": "https://github.com/libp2p/js-libp2p-record"
+ }
+ ]
+ },
+ {
+ "id": "discovery",
+ "modules": [
+ {
+ "id": "libp2p-mdns",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-mdns"
+ },
+ {
+ "id": "libp2p-webrtc-star",
+ "status": "Done",
+ "url": "https://github.com/libp2p/js-libp2p-webrtc-star"
+ },
+ {
+ "id": "libp2p-railing",
+ "status": "Unstable",
+ "url": "https://github.com/libp2p/js-libp2p-railing"
+ }
+ ]
}
- },
- "Golang": {
- "status": "live",
- "image": "../img/logo_3.png",
- "github": "https://github.com/libp2p/go-libp2p",
- "categories": {
- "Transport": {
- "modules": {
- "go-tcp-transport": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-tcp-transport"
- },
- "go-ws-transport": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-ws-transport"
- }
- }
- },
- "Stream Muxer": {
- "modules": {
- "libp2p-yamux": {
- "status": "Done",
- "url": ""
- },
- "libp2p-multiplex": {
- "status": "Done",
- "url": ""
- }
- }
- },
- "Crypto Channels": {
- "modules": {
- "libp2p-secio": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-libp2p-secio"
- }
- }
- },
- "Peer Routing": {
- "modules": {
- "libp2p-kad-dht": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-libp2p-kad-dht"
- }
- }
- },
- "Record Stores": {
- "modules": {
- "libp2p-kad-dht": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-libp2p-kad-dht"
- }
- }
- },
- "NAT Traversal": {
- "modules": {
- "libp2p-nat": {
- "status": "Done",
- "url": "https://github.com/libp2p/go-libp2p-nat"
- }
- }
- },
- "Discovery": {
- "modules": {
- "libp2p-mdns": {
- "status": "done",
- "url": "https://github.com/libp2p/go-libp2p/blob/master/p2p/discovery/mdns.go"
- },
- "libp2p-railing": {
- "status": "unstable",
- "url": ""
- }
- }
- }
+ ]
+ },
+ {
+ "id": "golang",
+ "name": "Golang",
+ "status": "live",
+ "image": "../img/logo_3.png",
+ "github": "https://github.com/libp2p/go-libp2p",
+ "categories": [
+ {
+ "id": "transport",
+ "modules": [
+ {
+ "id": "go-tcp-transport",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-tcp-transport"
+ },
+ {
+ "id": "go-ws-transport",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-ws-transport"
+ }
+ ]
+ },
+ {
+ "id": "stream-muxer",
+ "modules": [
+ {
+ "id": "libp2p-yamux",
+ "status": "Done",
+ "url": ""
+ },
+ {
+ "id": "libp2p-multiplex",
+ "status": "Done",
+ "url": ""
+ }
+ ]
+ },
+ {
+ "id": "crypto-channels",
+ "modules": [
+ {
+ "id": "libp2p-secio",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-libp2p-secio"
+ }
+ ]
+ },
+ {
+ "id": "peer-routing",
+ "modules": [
+ {
+ "id": "libp2p-kad-dht",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-libp2p-kad-dht"
+ }
+ ]
+ },
+ {
+ "id": "record-stores",
+ "modules": [
+ {
+ "id": "libp2p-kad-dht",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-libp2p-kad-dht"
+ }
+ ]
+ },
+ {
+ "id": "nat-traversal",
+ "name": "NAT Traversal",
+ "modules": [
+ {
+ "id": "libp2p-nat",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-libp2p-nat"
+ }
+ ]
+ },
+ {
+ "id": "discovery",
+ "modules": [
+ {
+ "id": "libp2p-mdns",
+ "status": "Done",
+ "url": "https://github.com/libp2p/go-libp2p/blob/master/p2p/discovery/mdns.go"
+ },
+ {
+ "id": "libp2p-railing",
+ "status": "Unstable",
+ "url": ""
+ }
+ ]
}
- },
- "Haskell": {
- "status": "coming-soon",
- "image": "../img/logo_4.png",
- "github": ""
- },
- "Java": {
- "status": "coming-soon",
- "image": "../img/logo_java.png",
- "nav-img": "../img/logo_5.png",
- "github": ""
- },
- "Python": {
- "status": "coming-soon",
- "image": "../img/logo_6.png",
- "nav-img": "../img/logo_6_.png",
- "github": ""
- },
- "Rust": {
- "status": "coming-soon",
- "image": "../img/logo_7.png",
- "github": ""
- }
+ ]
+ },
+ {
+ "name": "Haskell",
+ "status": "coming-soon",
+ "image": "../img/logo_4.png",
+ "github": "",
+ "categories": []
+ },
+ {
+ "name": "Java",
+ "status": "coming-soon",
+ "image": "../img/logo_java.png",
+ "github": "",
+ "categories": []
+ },
+ {
+ "name": "Python",
+ "status": "coming-soon",
+ "image": "../img/logo_6.png",
+ "github": "",
+ "categories": []
+ },
+ {
+ "name": "Rust",
+ "status": "coming-soon",
+ "image": "../img/logo_7.png",
+ "github": "",
+ "categories": []
}
-}
+]
diff --git a/js/bundles.js b/js/bundles.js
index bac1ec0..4a335fe 100755
--- a/js/bundles.js
+++ b/js/bundles.js
@@ -1,158 +1,9 @@
var $ = require('jquery')
-var data = require('../data/bundles.json')
var initPage = require('./lib/init-page')
initPage()
$(function () {
- var bundles = data.Bundles
- createNav()
- createContent()
- createComingSoon()
-
- function createComingSoon () {
- var template = $(
- '
+
+ {{ end }}
+
+
+
+
+
+ In progress...
+
+
+
+
+
+
+
+
+
+
+ ' +
- '' +
- '
'
- )
-
- var section = $('')
- var index = 0
- $.each(bundles, function (key, values) {
- if (values['status'] !== 'live' && index < 6) {
- var tmp = template.clone()
- tmp.find('img').attr('src', values['image'])
- section.append(tmp)
-
- index++
- }
- })
-
- var tempRectangle = $(
- '' +
- '' +
- '
' +
- 'In progress...
' +
- '' +
- '' +
- '
'
- )
- var imgCube = ['../img/img4.png', '../img/img5.png']
- for (var n = index; n < 6; n++) {
- var tmp = tempRectangle.clone()
- tmp.find('img').attr('src', imgCube[n % 2])
- section.append(tmp)
- }
- $('.wrap', 'article.bundles-info').append(section)
- }
-
- function createContent () {
- var template = $('' +
- '' +
- '
' +
- '' +
- '
' +
- '' +
- '
' +
- '' +
- '' +
- '
' +
- '' +
- '' +
- '
' +
- 'GitHub' +
- '
+
+
+
+
+
+
+
+
+ GitHub
+
+ {{ range $index, $element := .categories }}
+
+ -
+ {{ range .modules }}
+
- + + {{ partial "status-icon" . }} + {{ .id }} + + + {{ end }} +