diff --git a/src/css/header.css b/src/css/header.css index b3ac93510308340ca4a87aea52914f7e7c843d0f..a534104cd31e356727640ad395ad01b1df725c6e 100644 --- a/src/css/header.css +++ b/src/css/header.css @@ -42,4 +42,7 @@ } .header-item:hover { color: #DDD; +} +.header-item-active, .header-item-active:hover { + color: #FFF; } \ No newline at end of file diff --git a/src/index/css/repo.css b/src/index/css/repo.css new file mode 100644 index 0000000000000000000000000000000000000000..a14bbc3303f92526dcfa59491e6dc277bba629f2 --- /dev/null +++ b/src/index/css/repo.css @@ -0,0 +1,25 @@ +.repo { + display: block; + margin-top: 16px; + padding: 3px 10px 3px 8px; + border: 1px solid #D5D5D5; + border-radius: 4px; + cursor: pointer; + + box-shadow: 0 4px 4px #DDD; + background-image: linear-gradient(to bottom, #FCFCFC 0%, #EEE 100%); + background-repeat: no-repeat; + + font-size: 16px; + line-height: 24px; + text-decoration: none; +} + +.repo-title { + font-size: 24px; + line-height: 32px; +} + +.repo-address { + color: #888; +} \ No newline at end of file diff --git a/src/index/index.html b/src/index/index.html new file mode 100644 index 0000000000000000000000000000000000000000..853ded6277713b5da558034d17949ba399063487 --- /dev/null +++ b/src/index/index.html @@ -0,0 +1,39 @@ + + + + Repository Index - Git Center + + + + + + + + + + + + +
+ + +
Git Center
+
+ +
Repository Index
+
+
+ +
+

Repository Index

+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/src/index/js/main.js b/src/index/js/main.js new file mode 100644 index 0000000000000000000000000000000000000000..d78c9cc0d3d2f787998e9c499ef229994609e82f --- /dev/null +++ b/src/index/js/main.js @@ -0,0 +1,31 @@ +let zeroFrame = new ZeroFrame(); +let zeroPage = new ZeroPage(zeroFrame); +let zeroDB = new ZeroDB(zeroPage); + +zeroDB.query("SELECT repo_index.*, json.cert_user_id FROM repo_index, json WHERE repo_index.json_id = json.json_id") + .then(index => { + index.forEach(repo => { + let node = document.createElement("div"); + node.className = "repo"; + + let title = document.createElement("div"); + title.className = "repo-title"; + title.textContent = repo.address; + node.appendChild(title); + + let address = document.createElement("div"); + address.className = "repo-address"; + address.textContent = repo.address; + node.appendChild(address); + + document.getElementById("repos").appendChild(node); + }); + }); + + +/* +
+
Git Center Source
+
1RepoXU8bQE9m7ssNwL4nnxBnZVejHCc6
+
+*/ \ No newline at end of file