Browse Source

Merge pull request #422 from Lupul/webui-0626

Cleanup/Webui 0626-02
Kristan Kenney 6 years ago
parent
commit
7ea6041d2a
5 changed files with 17 additions and 8 deletions
  1. 7 5
      bin/v-update-sys-hestia-git
  2. 2 0
      src/hst_autocompile.sh
  3. 4 1
      web/css/styles.min.css
  4. 1 1
      web/js/app.js
  5. 3 1
      web/templates/footer.html

+ 7 - 5
bin/v-update-sys-hestia-git

@@ -53,6 +53,7 @@ download_file() {
 BUILD_DIR='/tmp/hestiacp-src/'
 DEB_DIR="$BUILD_DIR/debs/"
 INSTALL_DIR='/usr/local/hestia'
+ARCHIVE_DIR="${BUILD_DIR}/archive/"
 
 # Set command variables
 branch=$1
@@ -71,6 +72,7 @@ PHP_V='7.3.4'
 # Create build directories
 rm -rf $BUILD_DIR
 mkdir -p $DEB_DIR
+mkdir -p $ARCHIVE_DIR
 
 # Set package dependencies for compiling
 SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config'
@@ -126,13 +128,15 @@ HESTIA_B='true'
 GIT_REP='https://raw.githubusercontent.com/hestiacp/hestiacp/'$branch'/src/deb'
 
 # Generate Links for sourcecode
-HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.zip'
+HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
 NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
 OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
 PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
 ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
 PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
 
+# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
+branch=$(echo "$branch" |sed 's/\//-/g');
 
 #################################################################################
 #
@@ -327,9 +331,7 @@ if [ "$HESTIA_B" = true ] ; then
     mkdir $BUILD_DIR/hestia_$HESTIA_V
 
     # Download and unpack source files
-    download_file $HESTIA_ARCHIVE_LINK
-    unzip -q $branch.zip
-    rm $branch.zip
+    download_file $HESTIA_ARCHIVE_LINK '-' 'fresh' | tar xz
 
     # Prepare Deb Package Folder Structure
     cd hestia_$HESTIA_V/
@@ -345,7 +347,7 @@ if [ "$HESTIA_B" = true ] ; then
     chmod +x postinst
 
     # Move needed directories
-    cd ../../hestiacp-$branch
+    cd $BUILD_DIR/hestiacp-$branch
     mv bin func install web ../hestia_$HESTIA_V/usr/local/hestia/
 
     # Set permission

+ 2 - 0
src/hst_autocompile.sh

@@ -182,6 +182,8 @@ PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
 ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
 PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
 
+# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
+branch=$(echo "$branch" |sed 's/\//-/g');
 
 #################################################################################
 #

+ 4 - 1
web/css/styles.min.css

@@ -1203,7 +1203,7 @@ a {
 }
 
 div.l-content > div.l-separator:nth-of-type(2) {
-  margin-top: 178px;
+  margin-top: 180px;
   width: 100%;
   position: fixed;
   z-index: 120;
@@ -3404,6 +3404,9 @@ form#vstobjects.suspended {
 .shortcuts .close:active {
   background-color: #55c9c0;
 }
+.shortcuts .close .fas {
+  font-size: 1.3rem;
+}
 .shortcuts ul {
   list-style-type: none;
   padding: 30px 20px;

+ 1 - 1
web/js/app.js

@@ -1023,7 +1023,7 @@ hover_menu = function() {
         nav_context.css({'margin-top': '101px'});
         nav_a.find('ul').css({'visibility': 'hidden'});
         nav_main.css({'padding-top': '27px'});
-        sep_2.css({'box-shadow':'0 2px 6px 0 rgba(200, 200, 200, 0.35)'});
+        sep_2.css({'box-shadow':'0 5px 6px 0 rgba(200, 200, 200, 0.35)'});
     }
 
     if(st == 0){

+ 3 - 1
web/templates/footer.html

@@ -7,7 +7,9 @@
   <div class="shortcuts animated fadeIn" style="display:none">
     <div class="header">
       <div class="title"><?=__('Shortcuts')?></div>
-      <div class="close"></div>
+      <div class="close text-center">
+        <i class="fas fa-times"></i>
+      </div>
 
     </div>
     <ul>