Fix padding on Fn Store Gateway UI

The padding was off on the Gateway UI for the function
Store popup.

I have removed the 0padding css class from this element and left
it on the elements that require it

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This commit is contained in:
Alistair Hey
2020-02-23 21:57:20 +00:00
committed by Alex Ellis
parent ac1caa2897
commit b4bed58b66
6 changed files with 24 additions and 11 deletions

View File

@ -21,7 +21,7 @@ do
export AUTH_URL=""
;;
--help | -h)
echo "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen"
printf "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen"
exit
;;
esac
@ -35,9 +35,9 @@ secret=$(head -c 16 /dev/urandom| $sha_cmd | cut -d " " -f 1)
echo "$secret" | docker secret create basic-auth-password -
if [ $? = 0 ];
then
echo "[Credentials]\n username: admin \n password: $secret\n echo -n "$secret" | faas-cli login --username=admin --password-stdin"
printf "[Credentials]\n username: admin \n password: $secret\n echo -n ""$secret"" | faas-cli login --username=admin --password-stdin"
else
echo "[Credentials]\n already exist, not creating"
printf "[Credentials]\n already exist, not creating"
fi
if [ $BASIC_AUTH = "true" ];

View File

@ -1,8 +1,9 @@
.PHONY: all build push
TAG?=latest
NS?=openfaas
all: build
build:
./build.sh ${TAG}
./build.sh ${TAG} ${NS}
push:
./push.sh ${TAG}
./push.sh ${TAG} ${NS}

View File

@ -26,7 +26,7 @@
<div layout="column" ng-cloak>
<md-toolbar class="md-theme-indigo" hide-gt-sm>
<div class="md-toolbar-tools">
<div class="md-toolbar-tools no-pad">
<md-button ng-click="toggleSideNav()" class="md-icon-button" aria-label="Menu">
<md-icon md-svg-icon="img/icons/ic_menu_white.svg"></md-icon>
</md-button>
@ -36,7 +36,7 @@
<md-sidenav class="md-sidenav-left" md-component-id="left" md-is-locked-open="$mdMedia('gt-sm')" md-whiteframe="4" layout="column">
<md-toolbar class="md-theme-indigo">
<div class="md-toolbar-tools">
<div class="md-toolbar-tools no-pad">
<a href="https://www.openfaas.com/" target="_blank"><img src="icon.png" alt="OpenFaaS Icon" class="md-avatar" /></a>
<h1 style="flex: 1 1 auto;"><img src="img/logo-text.svg" class="md-logo"></h1>
<md-button ng-click="toggleSideNav()" class="md-icon-button" aria-label="Back" hide-gt-sm>

View File

@ -91,7 +91,7 @@ md-input-container .md-errors-spacer {
}
.md-toolbar-tools {
.no-pad {
padding: 0px 0px 0px 0px;
}

View File

@ -29,7 +29,12 @@ if [ "$1" ] ; then
fi
fi
NS=openfaas
if [ "$2" ] ; then
NS=$2
else
NS=openfaas
fi
echo "Building $NS/gateway:$eTAG with $dockerfile for $arch"

View File

@ -21,7 +21,14 @@ if [ "$1" ] ; then
fi
fi
echo Pushing openfaas/gateway:$eTAG
docker push openfaas/gateway:$eTAG
if [ "$2" ] ; then
NS=$2
else
NS=openfaas
fi
echo Pushing $NS/gateway:$eTAG
docker push $NS/gateway:$eTAG