Skip to content

Commit

Permalink
power.skia.org - Move to using app-sk.
Browse files Browse the repository at this point in the history
Bug: skia:
Change-Id: I3096a4681ad18c9a26f86754cb026de3ea5a4b07
Reviewed-on: https://skia-review.googlesource.com/c/177022
Reviewed-by: Kevin Lubick <[email protected]>
Commit-Queue: Joe Gregorio <[email protected]>
  • Loading branch information
jcgregorio authored and Skia Commit-Bot committed Dec 12, 2018
1 parent eb81fbb commit b516c1a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
23 changes: 13 additions & 10 deletions power/modules/power-index-sk/power-index-sk.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'infra-sk/modules/app-sk'
import 'elements-sk/error-toast-sk'
import { errorMessage } from 'elements-sk/errorMessage'

Expand All @@ -11,16 +12,18 @@ const UPDATE_INTERVAL_MS = 60000;

// Main template for this element
const template = (ele) => html`
<header>Power Controller</header>
<main>
<h1>Broken Bots (with powercycle support)</h1>
${downBotsTable(ele._bots, ele._hosts)}
</main>
<footer>
<error-toast-sk></error-toast-sk>
</footer>`;
<app-sk>
<header><h1>Power Controller</h1></header>
<main>
<h2>Broken Bots (with powercycle support)</h2>
${downBotsTable(ele._bots, ele._hosts)}
</main>
<footer>
<error-toast-sk></error-toast-sk>
</footer>
<app-sk>`;

const downBotsTable = (bots, hosts) => html`
<table>
Expand Down
21 changes: 8 additions & 13 deletions power/modules/power-index-sk/power-index-sk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,25 @@ body {
padding: 0;
}

power-index-sk {
main {
padding: 5px;
}
app-sk {
--sidebar-width: 0;

header {
margin: 0;
padding: 1em 0.5em;
color: var(--white);
background: var(--blue);
display: flex;
flex-direction: row;
justify-content: space-between;
font-weight: bold;
header h1 {
margin-left: 0.4em;
}
}

power-index-sk {
table {
border-collapse: collapse;
margin-left: 5px;
}

td, th {
border: 1px solid var(--dark-white);
padding: 5px;
}

th {
position: relative;
}
Expand Down
3 changes: 2 additions & 1 deletion power/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "",
"dependencies": {
"common-sk": "^3.1.0",
"elements-sk": "^2.6.0",
"elements-sk": "^2.6.2",
"infra-sk": "^0.8.1",
"lit-html": "~0.14.0"
},
"devDependencies": {
Expand Down

0 comments on commit b516c1a

Please sign in to comment.