Skip to content

Commit

Permalink
wizard: animate side logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Feb 21, 2018
1 parent 6dd70a7 commit d2318a4
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 15 deletions.
10 changes: 9 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@

[v0.46.23](https://github.com/nextcloud/nextcloudpi/commit/d0d6159) (2018-02-19) ncp-web: support for small screens
[v0.46.27](https://github.com/nextcloud/nextcloudpi/commit/fe3b78a) (2018-02-20) wizard: animate side logs

[v0.46.26](https://github.com/nextcloud/nextcloudpi/commit/c25a130) (2018-02-21) ncp-web: animate script textbox

[v0.46.25](https://github.com/nextcloud/nextcloudpi/commit/7b61539) (2018-02-21) ncp-web: fix backend request without arguments

[v0.46.24](https://github.com/nextcloud/nextcloudpi/commit/9846f23) (2018-02-21) ncp-web: link to wizard and Nextcloud instance

[v0.46.23](https://github.com/nextcloud/nextcloudpi/commit/6fdd1ea) (2018-02-19) ncp-web: support for small screens

[v0.46.22](https://github.com/nextcloud/nextcloudpi/commit/44f00b6) (2018-02-19) UFW: make it work with nc-forward-ports

Expand Down
3 changes: 1 addition & 2 deletions ncp-web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
</div>
</header>

<div id='overlay' class="hidden"></div>
<div id="content-wrapper">
<div id="content" class="app-files" role="main">
<div id="app-navigation">
Expand Down Expand Up @@ -181,8 +182,6 @@
</div>
</div>

<div id='overlay' class="hidden"></div>

<?php
include ('csrf.php');
echo '<input type="hidden" id="csrf-token" name="csrf-token" value="' . getCSRFToken() . '"/>';
Expand Down
4 changes: 2 additions & 2 deletions ncp-web/ncp.css
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ a#versionlink:hover {
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 1;
z-index: 10000;
line-height: 60px;
border-radius: 3px;
}
Expand All @@ -1257,5 +1257,5 @@ a#versionlink:hover {
left: 0;
width: 100%;
height: 100%;
z-index: 1500;
z-index: 2500;
}
36 changes: 27 additions & 9 deletions ncp-web/wizard/CSS/wizard.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ div.linkbox {
min-width: 16px;
min-height: 16px;
background-image:url("../../../img/menu.svg");

position:fixed;
display:inline-block !important;
top:45px;
left:0;
width:44px;
height:44px;
z-index:2000;
cursor:pointer;
opacity:0.6
}

.menu-icon:hover,.menu-icon:focus {
opacity:1
}

#ncp-welcome-logo {
Expand Down Expand Up @@ -121,7 +135,7 @@ div.linkbox {
bottom:0;
height:100%;
width:100%;
z-index:9000;
z-index:2000;
text-align:center;
cursor:pointer;
}
Expand All @@ -130,21 +144,25 @@ div.linkbox {
display:block;
background: white;
position:relative;
width:40em;
width:0em;
height:100%;
}

#output-btn {
position:fixed;
top:5px;
left:5px;
}

td {
width: 7em;
}

.buttons-area label{
margin: 0;
font-weight: 100;
};
}

#overlay {
background-color: rgba(0, 0, 0, 0.2);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1500;
}
12 changes: 11 additions & 1 deletion ncp-web/wizard/JS/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(document).ready(function(){
$('#output-wrapper').show();
var textarea = $('#output-box');
textarea[0].scrollTop = textarea[0].scrollHeight;
textarea.animate({ width: "40em" });
$('#overlay').show();
}

// launch an request for launch action to the backend
Expand Down Expand Up @@ -284,7 +286,15 @@ $(document).ready(function(){
// close log output
$('.output-close').on('click', function(e){
if( e.target.id == 'output-wrapper' )
$('#output-wrapper').hide();
{
$('#output-box').animate(
{ width: "0em" },
{ complete: function() {
$('#output-wrapper').hide();
$('#overlay').hide();
}
} );
}
} );

// make sure log box starts empty
Expand Down
1 change: 1 addition & 0 deletions ncp-web/wizard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<link rel="icon" type="image/png" href="../img/favicon.png" />
</head>
<body>
<div id='overlay' class="ncp-hidden"></div>
<div id="rootwizard">
<ul id="ncp-nav">
<li><a href="#tab1" data-toggle="tab">Welcome</a></li>
Expand Down

0 comments on commit d2318a4

Please sign in to comment.