Commit 9580e905 authored by Ivanq's avatar Ivanq

Some fixes

parent b6142a9a
......@@ -34,7 +34,7 @@
<main class="content">
<h1>Welcome to Git Center!</h1>
<p>
<b>Git Center</b> is a hosting platform for Git repositories. We provide several collaboration features such as bug tracking and wikis for every project, and private and public repositories for free. Join us by creating a new repository.
<b>Git Center</b> is a hosting platform for Git repositories. We provide several collaboration features such as bug tracking for every project, and private and public repositories for free. Join us by creating a new repository.
</p>
<p>
<b>Git Center</b> is built using ZeroNet, so its workflow differs from GitHub. Read more <a href="workflow/">here</a> or <a href="support/">ask us for support</a>.
......
let zeroFrame = new ZeroFrame();
let zeroPage = new ZeroPage(zeroFrame);
let siteInfo, list;
zeroPage.getSiteInfo()
.then(siteInfo => {
.then(s => {
siteInfo = s;
if(siteInfo.settings.permissions.indexOf("Merger:GitCenter") == -1) {
return zeroPage.cmd("wrapperPermissionAdd", ["Merger:GitCenter"]);
}
})
.then(() => {
if(siteInfo.settings.permissions.indexOf("Cors:1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz") == -1) {
return zeroPage.cmd("corsPermission", ["1iD5ZQJMNXu43w1qLB8sfdHVKppVMduGz"]);
}
})
.then(() => {
return zeroPage.cmd("mergerSiteList");
})
.then(l => {
list = l;
if(!list["1RepoXU8bQE9m7ssNwL4nnxBnZVejHCc6"]) {
return zeroPage.cmd("mergerSiteAdd", ["1RepoXU8bQE9m7ssNwL4nnxBnZVejHCc6"]);
}
})
.then(() => {
if(!list["1iNDExENNBsfHc6SKmy1HaeasHhm3RPcL"]) {
return zeroPage.cmd("mergerSiteAdd", ["1iNDExENNBsfHc6SKmy1HaeasHhm3RPcL"]);
}
})
.then(() => {
let button = document.getElementById("create_repository");
button.classList.remove("button-disabled");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment