mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-30 16:17:46 +00:00
Merge pull request #152 from GokuWeedLord/feature/launcherchanges
add commit history to launcher and fix issue causing blank frames to open
This commit is contained in:
commit
4d2c890aba
3 changed files with 81 additions and 42 deletions
|
@ -7,6 +7,7 @@ body {
|
|||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.contentContainer{
|
||||
|
@ -137,3 +138,26 @@ p.pageSubTitle{
|
|||
margin:0 auto;
|
||||
}
|
||||
|
||||
.commit-history {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.commit-history li a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.commit-history li a:hover {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.s-left-half {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.s-link-badge {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 19px;
|
||||
}
|
|
@ -48,10 +48,10 @@
|
|||
<body scroll="no">
|
||||
<div class="s-full-split s-left-half col-xs-7">
|
||||
<div class="clearfix s-link-badge-wrapper">
|
||||
<a href="https://discord.gg/KfrZCkx" target="_blank" class="s-link-badge s-link-badge-discord col-xs-5">
|
||||
<a href="https://discord.gg/KfrZCkx" class="s-link-badge s-link-badge-discord col-xs-5">
|
||||
Join us on Discord!
|
||||
</a>
|
||||
<a href="https://github.com/SapphireMordred/Sapphire" target="_blank" class="s-link-badge s-link-badge-github col-xs-5 pull-left">
|
||||
<a href="https://github.com/SapphireMordred/Sapphire" class="s-link-badge s-link-badge-github col-xs-5 pull-left">
|
||||
Our Github repository
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sapphire - Login</title>
|
||||
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="assets/css/styles.css">
|
||||
<link rel="stylesheet" href="assets/css/global.css">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sapphire - Login</title>
|
||||
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="assets/css/styles.css">
|
||||
<link rel="stylesheet" href="assets/css/global.css">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
|
||||
<script>
|
||||
function doLogin(){
|
||||
|
@ -51,14 +51,17 @@
|
|||
<body scroll="no">
|
||||
<div class="s-full-split s-left-half col-xs-7">
|
||||
<div class="clearfix s-link-badge-wrapper">
|
||||
<a href="https://discord.gg/KfrZCkx" target="_blank" class="s-link-badge s-link-badge-discord col-xs-5">
|
||||
<a href="https://discord.gg/KfrZCkx" class="s-link-badge s-link-badge-discord col-xs-5">
|
||||
Join us on Discord!
|
||||
</a>
|
||||
<a href="https://github.com/SapphireMordred/Sapphire" target="_blank" class="s-link-badge s-link-badge-github col-xs-5 pull-left">
|
||||
<a href="https://github.com/SapphireMordred/Sapphire" class="s-link-badge s-link-badge-github col-xs-5 pull-left">
|
||||
Our Github repository
|
||||
</a>
|
||||
</div>
|
||||
<h2>Github stuff here soon!</h2>
|
||||
<h2>Recent Activity</h2>
|
||||
<ul id="commit-log" class="commit-history">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="s-full-split s-right-half col-xs-5">
|
||||
<div class="s-logo">
|
||||
|
@ -66,41 +69,53 @@
|
|||
</div>
|
||||
<div class="s-login-box col-xs-12">
|
||||
<div class="s-login-box-form">
|
||||
<h1 class="text-center s-login-call">Login to Account</h1>
|
||||
<div class="input-control">
|
||||
<label class="s-login-input-wrapper">
|
||||
Username
|
||||
<input type="text" name="username" autofocus>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<label class="s-login-input-wrapper">
|
||||
Password
|
||||
<input type="password" name="password">
|
||||
</label>
|
||||
</div>
|
||||
<button class="btn btn-default s-login-btn pull-right" id="submitButton" onclick="doLogin()">Login</button>
|
||||
<p id="Error" class="s-error-text"></p>
|
||||
</div>
|
||||
<a class="btn btn-default s-acc-btn" href="createUser.html">Create Account</a>
|
||||
</div>
|
||||
<div class="s-gears">
|
||||
<img class="s-gears" src="assets/img/graffletopia-gears.png" alt="">
|
||||
</div>
|
||||
<h1 class="text-center s-login-call">Login to Account</h1>
|
||||
<div class="input-control">
|
||||
<label class="s-login-input-wrapper">
|
||||
Username
|
||||
<input type="text" name="username" autofocus>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<label class="s-login-input-wrapper">
|
||||
Password
|
||||
<input type="password" name="password">
|
||||
</label>
|
||||
</div>
|
||||
<button class="btn btn-default s-login-btn pull-right" id="submitButton" onclick="doLogin()">Login</button>
|
||||
<p id="Error" class="s-error-text"></p>
|
||||
</div>
|
||||
<a class="btn btn-default s-acc-btn" href="createUser.html">Create Account</a>
|
||||
</div>
|
||||
<div class="s-gears">
|
||||
<img class="s-gears" src="assets/img/graffletopia-gears.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div id="TopDiv"></div>
|
||||
<div class="container"></div>
|
||||
|
||||
<script src="assets/js/jquery.min.js"></script>
|
||||
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
<div id="TopDiv"></div>
|
||||
<div class="container"></div>
|
||||
|
||||
<script src="assets/js/jquery.min.js"></script>
|
||||
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
<script> // Run only after jq and bootstrap have finished loading
|
||||
<script>
|
||||
fetch( "https://api.github.com/repos/SapphireMordred/Sapphire/events" ).then( function( resp ) {
|
||||
return resp.json();
|
||||
}).then( function( data ) {
|
||||
data = data.filter( function( e ) {
|
||||
return e.type == "PushEvent";
|
||||
});
|
||||
|
||||
// Work around non-HTML5 compliant IE autofocus
|
||||
$(function() {
|
||||
$('[autofocus]:not(:focus)').eq(0).focus();
|
||||
let commitContainer = document.getElementById( 'commit-log' );
|
||||
for ( var evnt of data ) {
|
||||
for ( var commit of evnt.payload.commits ) {
|
||||
let e = document.createElement( 'li' );
|
||||
e.innerHTML = '<a href="https://github.com/SapphireMordred/Sapphire/commit/' + commit.sha + '">' + commit.message + '</a>';
|
||||
|
||||
commitContainer.appendChild( e );
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Reference in a new issue