pull/10/head
Hunter Long 2018-06-28 09:44:56 -07:00
parent 6aa5ebce46
commit b4ee5ae514
5 changed files with 117 additions and 51 deletions

View File

@ -51,7 +51,6 @@ notifications:
email: false email: false
before_install: before_install:
- gem install sass
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi - if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi
before_script: before_script:

View File

@ -4,17 +4,20 @@ APP="statup"
REPO="hunterlong/statup" REPO="hunterlong/statup"
SASS=1.7.1 SASS=1.7.1
# COMPILE BOOTSTRAP
git clone https://github.com/twbs/bootstrap.git git clone https://github.com/twbs/bootstrap.git
cd bootstrap cd bootstrap
npm install npm install
rm -f scss/_variables.scss rm -f scss/_variables.scss
mv html/scss/bootstrap.scss scss/_variables.scss cp ../html/scss/_variables.scss scss/_variables.scss
npm run dist npm run dist
mv dist/css/bootstrap.min.cs html/css/bootstrap.min.css mv dist/css/bootstrap.min.css ../html/css/bootstrap.min.css
cd ../
rm -rf bootstrap
# RENDERING CSS # RENDERING CSS
sass html/scss/base.scss:html/css/base.css gem install sass
sass html/scss/base.scss html/css/base.css
# MIGRATION SQL FILE FOR CURRENT VERSION # MIGRATION SQL FILE FOR CURRENT VERSION
printf "UPDATE core SET version='$VERSION';\n" >> sql/upgrade.sql printf "UPDATE core SET version='$VERSION';\n" >> sql/upgrade.sql
@ -22,6 +25,7 @@ printf "UPDATE core SET version='$VERSION';\n" >> sql/upgrade.sql
# COMPILE SRC INTO BIN # COMPILE SRC INTO BIN
rice embed-go rice embed-go
# BUILD STATUP GOLANG BINS
mkdir build mkdir build
xgo -go 1.10.x --targets=darwin/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=darwin/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=darwin/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=darwin/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
@ -30,7 +34,6 @@ xgo -go 1.10.x --targets=linux/386 --dest=build -ldflags="-X main.VERSION=$VERSI
xgo -go 1.10.x --targets=windows-6.0/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=windows-6.0/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=linux/arm-7 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=linux/arm-7 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./ xgo -go 1.10.x --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.VERSION=$VERSION" -a -o build/$APP-linux-alpine . CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.VERSION=$VERSION" -a -o build/$APP-linux-alpine .
cd build cd build

View File

@ -11,72 +11,88 @@
================ ================
*/ */
HTML, BODY { HTML, BODY {
background-color: #fcfcfc; } background-color: #fcfcfc;
}
.container { .container {
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
max-width: 860px; } max-width: 860px;
}
.online_list .badge { .online_list .badge {
margin-top: 0.2rem; } margin-top: 0.2rem;
}
.navbar { .navbar {
margin-bottom: 30px; } margin-bottom: 30px;
}
.btn-sm { .btn-sm {
line-height: 1.3; line-height: 1.3;
font-size: 0.75rem; } font-size: 0.75rem;
}
.view_service_btn { .view_service_btn {
position: absolute; position: absolute;
bottom: -40px; bottom: -40px;
right: 40px; } right: 40px;
}
.service_lower_info { .service_lower_info {
position: absolute; position: absolute;
bottom: -40px; bottom: -40px;
left: 40px; left: 40px;
color: #d1ffca; color: #d1ffca;
font-size: 0.85rem; } font-size: 0.85rem;
}
.lg_number { .lg_number {
font-size: 26pt; font-size: 26pt;
font-weight: bold; font-weight: bold;
display: block; display: block;
color: #474747; } color: #474747;
}
.stats_area { .stats_area {
text-align: center; text-align: center;
color: #a5a5a5; } color: #a5a5a5;
}
.lower_canvas { .lower_canvas {
height: 55px; height: 55px;
width: 100%; width: 100%;
background-color: #48d338; background-color: #48d338;
padding: 17px 10px; } padding: 17px 10px;
}
.lower_canvas SPAN { .lower_canvas SPAN {
font-size: 1rem; } font-size: 1rem;
}
.footer { .footer {
text-decoration: none; text-decoration: none;
margin-top: 20px; } margin-top: 20px;
}
.footer A { .footer A {
color: #aaaaaa; color: #aaaaaa;
text-decoration: none; } text-decoration: none;
}
.footer A:HOVER { .footer A:HOVER {
color: #6d6d6d; } color: #6d6d6d;
}
.online_badge { .online_badge {
color: #fff; color: #fff;
background-color: #35b317; } background-color: #35b317;
}
.offline_badge { .offline_badge {
color: #fff; color: #fff;
background-color: #c51919; } background-color: #c51919;
}
.progress { .progress {
margin-top: -20px; margin-top: -20px;
@ -84,88 +100,136 @@ HTML, BODY {
margin-bottom: 15px; margin-bottom: 15px;
width: calc(100% + 40px); width: calc(100% + 40px);
height: 3px; height: 3px;
border-radius: 0; } border-radius: 0;
}
.card { .card {
background-color: #fff; } background-color: #fff;
}
.card-body { .card-body {
overflow: hidden; } overflow: hidden;
}
.card-body H4 A { .card-body H4 A {
color: #239e07; color: #239e07;
text-decoration: none; } text-decoration: none;
}
.chart-container { .chart-container {
position: relative; position: relative;
height: 170px; height: 170px;
width: 100%; } width: 100%;
}
.btn-primary { .CodeMirror {
background-color: white; /* Bootstrap Settings */
border: 1px solid #b9b9b9; box-sizing: border-box;
color: #353535; margin: 0;
height: 35px; font: inherit;
padding: 5px 15px; } overflow: auto;
font-family: inherit;
display: block;
width: 100%;
padding: 0px;
font-size: 14px;
line-height: 1.5;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
/* Code Mirror Settings */
font-family: monospace;
position: relative;
overflow: hidden;
height: 60vh;
}
.CodeMirror-focused {
/* Bootstrap Settings */
border-color: #66afe9;
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
@media (max-width: 767px) { @media (max-width: 767px) {
.sm-container { .sm-container {
margin-top: 40px !important; margin-top: 40px !important;
padding: 0 !important; } padding: 0 !important;
}
.list-group-item H5 { .list-group-item H5 {
font-size: 0.9rem; } font-size: 0.9rem;
}
.container { .container {
padding: 0 !important; } padding: 0 !important;
}
.navbar { .navbar {
margin-left: 0px; margin-left: 0px;
margin-top: 0px; margin-top: 0px;
width: 100%; width: 100%;
margin-bottom: 0; } margin-bottom: 0;
}
.card-body { .card-body {
font-size: 6pt; font-size: 6pt;
padding: 5px 5px; } padding: 5px 5px;
}
.lg_number { .lg_number {
font-size: 1.5rem; } font-size: 1.5rem;
}
.stats_area { .stats_area {
margin-top: 35px !important; margin-top: 35px !important;
margin-bottom: 35px !important; } margin-bottom: 35px !important;
}
.stats_area .col-4 { .stats_area .col-4 {
padding-left: 0; padding-left: 0;
padding-right: 0; } padding-right: 0;
}
.lower_canvas SPAN { .lower_canvas SPAN {
font-size: 0.9rem; font-size: 0.9rem;
float: left; } float: left;
}
.btn-sm { .btn-sm {
line-height: 0.9rem; line-height: 0.9rem;
font-size: 0.65rem; } font-size: 0.65rem;
}
.full-col-12 { .full-col-12 {
padding-left: 0px; padding-left: 0px;
padding-right: 0px; } padding-right: 0px;
}
.card { .card {
border: 0; border: 0;
border-radius: 0; } border-radius: 0;
}
.list-group-item { .list-group-item {
border-top: 1px solid #e4e4e4; border-top: 1px solid #e4e4e4;
border: 0px; } border: 0px;
}
.list-group-item:first-child { .list-group-item:first-child {
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; } border-top-right-radius: 0;
}
.list-group-item:last-child { .list-group-item:last-child {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-bottom-left-radius: 0; } } border-bottom-left-radius: 0;
}
}
/*# sourceMappingURL=base.css.map */ /*# sourceMappingURL=base.css.map */

File diff suppressed because one or more lines are too long

View File

@ -948,4 +948,4 @@ $pre-scrollable-max-height: 340px !default;
// Printing // Printing
$print-page-size: a3 !default; $print-page-size: a3 !default;
$print-body-min-width: map-get($grid-breakpoints, "lg") !default; $print-body-min-width: map-get($grid-breakpoints, "lg") !default;