Skip to content

Commit

Permalink
Merge pull request #14 from NoiseByNorthwest/web-ui
Browse files Browse the repository at this point in the history
Web UI
  • Loading branch information
NoiseByNorthwest authored Mar 10, 2018
2 parents d64c8d9 + e0d0e8c commit a68ce65
Show file tree
Hide file tree
Showing 56 changed files with 5,922 additions and 1,148 deletions.
11 changes: 11 additions & 0 deletions Makefile.frag
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

spx_ui_assets_dir = $(prefix)/share/misc/php-spx/assets/web-ui

CFLAGS += -DSPX_HTTP_UI_ASSETS_DIR=\"$(spx_ui_assets_dir)\"

install-spx-ui-assets:
@echo "Installing SPX web UI to: $(spx_ui_assets_dir)"
@mkdir -p $(spx_ui_assets_dir)
@cp -r assets/web-ui/* $(spx_ui_assets_dir)

install: $(all_targets) $(install_targets) install-spx-ui-assets
408 changes: 220 additions & 188 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/docs/as-fg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/as-fp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/as-ms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/as-ov.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/as-tl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/as.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added assets/docs/cp-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/cp-list1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/docs/cp-list2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
184 changes: 184 additions & 0 deletions assets/web-ui/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
body {
background: #023;
background: -webkit-linear-gradient(#023, #000);
background: -o-linear-gradient(#023, #000);
background: -moz-linear-gradient(#023, #000);
background: linear-gradient(#023, #000);
background-repeat: no-repeat;
background-attachment: fixed;

font-family: monospace;
margin: 2px;
padding: 0;
}

* {
color: #089;
}

form#config label {
display: inline-block;
width: 300px;
margin-right: 20px;
margin-bottom: 30px;
text-align: right;
vertical-align: top;
}

form#config em {
display: inline-block;
vertical-align: top;
width: 300px;
margin-left: 10px;
margin-bottom: 20px;
}

form#config input {
vertical-align: top;
}

form#config select {
margin-bottom: 10px;
background-color: #000;
width: 200px;
}

table.data_table {
border-collapse: collapse;
border-spacing: 0;
margin: auto;
margin-top: 5px;
}

table.data_table tr {
cursor: pointer;
}

table.data_table th,
table.data_table td {
border: 1px solid #044;
margin: 0;
padding: 3px;
}

table.data_table th.data_table-sort,
table.data_table th:hover {
background-color: #023;
}

table.data_table tbody > tr:hover {
background-color: #033;
}

table.data_table td.breakable-text {
word-break: break-all;
}

table.data_table td > a {
display: block;
text-decoration: none;
}

#init-report {
position: absolute;
left: 50%;
}

#init-report > div {
position: relative;
left: -50%;
top: 200px;
border: solid 1px #0aa;
background-color: #023;
width: 400px;
height: 200px;
padding: 10px;
vertical-align: center;
text-align: center;
}

#init-report div.progress {
display: none;
width: 100%;
height: 20px;
border: solid 1px #099;
padding: 1px;
}

#init-report div.progress > div {
height: 100%;
background-color: #0d0;
}

#overview,
#timeline {
cursor: -webkit-grab;
cursor:-moz-grab;
}

#overview:active,
#timeline:active {
cursor: -webkit-grabbing;
cursor:-moz-grabbing;
}

table.layout {
border-spacing: 0;
width: 100%;
}

table.layout td {
padding: 0;
}

.widget {
border: solid 1px #022;
}

.widget:hover {
border: solid 1px #0aa;
}

.visualization {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

#metric-selector select {
background-color: #000;
}

#flatprofile {
h: right;
}

#flatprofile table {
border-collapse: collapse;
border-spacing: 0;
margin: 0;
}

#flatprofile table th,
#flatprofile table td {
border: 1px solid #044;
margin: 0;
padding-left: 2px;
padding-right: 2px;
}

#flatprofile table th.sortable {
cursor: pointer;
}

#flatprofile table th.sort,
#flatprofile table th.sortable:hover {
background-color: #023;
}

#flatprofile table td {
text-align: right;
}
Loading

0 comments on commit a68ce65

Please sign in to comment.