Skip to content

Commit

Permalink
Log Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
andreherberth committed Sep 6, 2018
1 parent b6ecc90 commit bf43018
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function cleanup() {
*/
function composerProgress($file){
$log_file = file_get_contents($this->tpath . $file);
$result = "<pre id='consoleoutput' style='height: 300px; max-height: 300px; overflow:auto; color:#fff;'>" . $log_file . "</pre>";
$result = "<pre id='consoleoutput' style='white-space: pre-wrap; text-align:left; height: 300px; max-height: 300px; overflow:auto; color:#fff;'>" . $log_file . "</pre>";
return $result;
}

Expand Down Expand Up @@ -328,8 +328,10 @@ function composerProgress($file){
src=" data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAABDCAYAAACROQIsAAARk0lEQVR42u1df4hcxR2/E8XSH9b+sNa2WrHxR5Pd69lLcre7lxix/oied7c/7gyImCZ3aRpzP/a9DRUpXW3FaqEaClIoQlKwLZWK0iKlUKiB/mPAKkpppS2JNaeUFhIKIVQKdj7vbq+7szPvzbyZee/t+v3CgOZ2Zme+O/P9zHx/Dgxo0Mpcrrmyb+jEO18beo/aaluZzz13YvfwxQNERERE/U5vzeWXSfCL26n5oVdohxAREfU9QdiR0Je3t/bndtAuISIi6luC6oOEfYSKaN/Qg7RTiIiI+pZW9uanSdiHt7fncy/STiEiIupjtVDuMAn76EY7hYiIqI+BgOwDSkbj3RuHabcQERH1JZGQVzQYz+WXabcQERH1HcEbhoS8qhvppudNeD08sXj1eHX5zrhtZOLgddt2LlwyMDJyAe3c+LRjd/MDW6a9m1p8LZTrtw1PL1OsCPG159eP78P3tuaA+WBekR3hDUNCXhUI8qdNfqRi1Vscnz30nmkrzvjvjtf8346Wl24eaDbPIxGkR7nJuUuLNf9P6zyt+f8cLx/8EnGG+Nrr68f3Bd/bkhVsPphXZEd4w5CQT8ZOYAsI2lup5r9WKi+Os+EHSRSRwC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WdzZfmq9mIo+H/8O/7eveEab2I8rSf4rPeIYOOeha63WFnazhdjwb8FfxNseIylensyFVgi47GOJxFiHhgPXxKs/WSxcshHbED7uqF6CtKVo35y943v7LZy/Ya4e0Bk+wipgREqjDMABKny1nT9Ns7j6vnxXxXyTUctAzURErPZA4FNR2IZa2OokmyCAewEunPvNSAIBEF56eauW1CMFMgYR18I3X0R27RHTVMwYwydoCobAktcu0Ddk2hzeTGHGtSGxYnOaqoPwmw2r/cDEKTJWyv7yuQ8rl1GVl/Mq3uz80UgyZETLZCRuG3TET7TqEqd3tWbtDizp4qxOa5xGWAQpJFWmCNAQ5SRNMworBPY1gtAANoyvTwc9+CgH/rH/W482RlfHuZvY6obH311jWq2BJbQeKzhSSRUcWmAL1QZAxayooJgnynO+k+H/Q69AgRp8dbW+uOcx1KtcQavg9acW1HxHBDEE8gqeX74tNQBcMQUpHz5R+P5YW7t81rLSOrMThHhQppVIABdW9rzkULVfwgbSn3j+Q+hn4WvH0RhmNJM4/fKG599Fn3iCEKbAkuUhgK3sbFd91+pCoSlsj+H2tNKwDvjv8sE9pMqtpRYv8P0fdewF9bjQT3kMMNjxoEgDd7aXL/qeVyb89OFyQMbumwObC0dfHNppHWSMmLNfTPuSyatplO/OLME//LK0vbx2caDMIDyDf+Ov+u6KqoKItzk4AYo+m40/A2fsXUTzgyxgwuhAcOmaN1wL0T8hY3aye876mXeSs4j5jxW8SaVnQRcFINx2dojem1EOCfZkiz5SURERKRMLgO53MQE/D+TpyxjanZBTC35HBEREVGyQNBrt2ouQlcnojl9EFMPzCMiIiJKjMLy42TSPsB53siS5WW10Y4jIiLKHLlK/ezE60ZQJEc1GC4zrwIHQW1ERERERmTqypm2sdVWbYHEwEyxfjERERFRYtQPQtQ0JXaaNg4iIiKiDKiGesPYKioE0/aqeZBUQ0REREQxKUgXrZnALWvBWEHq6x54FahkICUiIiJKmv4H+VYNIxhj5DgAAAAASUVORK5CYII="/>
<p style="max-width: 460px; margin:auto;">Pockethold is a 3rd party no shell Flarum downloader.</p>

<div id="progressdiv" style="padding-top:2em;">
<p style="max-width: 460px; margin:50px auto auto auto;"><button id="checkingbtn" class="instal1 btn btn-default btn-lg" role="button" disabled>Getting Status<i class="fa fa-cog fa-spin"></i></button></p>
<div id="progressdiv" style="margin-top:50px;">
<p style="max-width: 460px; margin:50px auto auto auto;">
<button id="checkingbtn" class="instal1 btn btn-default btn-lg" role="button" disabled>Getting Status<i class="fa fa-cog fa-spin"></i></button>
</p>
</div>

</div>
Expand All @@ -345,7 +347,11 @@ function composerProgress($file){
var count = 0;
var fmsg = "<h2 class='instal1'>Install failed</h2>";

var waiting = "<button class='instal1 btn btn-default btn-lg' disabled>Working Please wait <i class='fa fa-cog fa-spin'></i></button><div style='margin-top: 50px; padding:5px; background: #141414;' id='progress'></div>";
var waiting = "<button class='instal1 btn btn-default btn-lg' disabled>Working Please wait<i class='fa fa-cog fa-spin'>" +
"</i></button><div class='card' style='margin-top: 50px;'><div class='card-header'>Current Task Log </div>" +
"<div class='card-body' id='progress' style=' padding:5px; background: #141414;'></div></div>";


var setup = "<button class='instal1 btn btn-default btn-lg' disabled>Getting Composer<i class='fa fa-cog fa-spin'></i></button>";
var prepare1 = '<span class="instal1"><span id="prepare1btn" class="instal1 btn btn-primary btn-lg" role="button">Step 1: Download Composer</span></span>';

Expand Down

0 comments on commit bf43018

Please sign in to comment.