1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-05 05:35:46 +01:00

Stripe usage output as completions output.

This commit is contained in:
Kris Maglione
2011-02-19 16:04:49 -05:00
parent 2583e32892
commit 019504e11c
2 changed files with 18 additions and 10 deletions

View File

@@ -453,6 +453,12 @@ var ConfigBase = Class("ConfigBase", {
REPL-E white-space: pre-wrap; REPL-E white-space: pre-wrap;
REPL-P white-space: pre-wrap; margin-bottom: 1em; REPL-P white-space: pre-wrap; margin-bottom: 1em;
Usage width: 100%;
UsageBody
UsageHead
UsageItem
UsageItem:nth-of-type(2n) background: rgba(0, 0, 0, .04);
Indicator color: blue; width: 1.5em; text-align: center; Indicator color: blue; width: 1.5em; text-align: center;
Filter font-weight: bold; Filter font-weight: bold;
@@ -499,7 +505,7 @@ var ConfigBase = Class("ConfigBase", {
text-shadow: black -1px 0 1px, black 0 1px 1px, black 1px 0 1px, black 0 -1px 1px; text-shadow: black -1px 0 1px, black 0 1px 1px, black 1px 0 1px, black 0 -1px 1px;
} }
Title color: magenta; background: white; font-weight: bold; Title color: magenta; font-weight: bold;
URL text-decoration: none; color: green; background: inherit; URL text-decoration: none; color: green; background: inherit;
URL:hover text-decoration: underline; cursor: pointer; URL:hover text-decoration: underline; cursor: pointer;
URLExtra color: gray; URLExtra color: gray;

View File

@@ -465,11 +465,13 @@ var Template = Module("Template", {
// <e4x> // <e4x>
return <table> return <table>
{ format.headings ? { format.headings ?
<tr highlight="Title" align="left"> <thead highlight="UsageHead">
{ <tr highlight="Title" align="left">
this.map(format.headings, function (h) <th>{h}</th>) {
} this.map(format.headings, function (h) <th>{h}</th>)
</tr> : "" }
</tr>
</thead> : ""
} }
{ format.columns ? { format.columns ?
<colgroup> <colgroup>
@@ -478,9 +480,9 @@ var Template = Module("Template", {
} }
</colgroup> : "" </colgroup> : ""
} }
{ <tbody highlight="UsageBody">{
this.map(iter, function (item) this.map(iter, function (item)
<tr> <tr highlight="UsageItem">
<td style="padding-right: 2em;"> <td style="padding-right: 2em;">
<span highlight="Usage Link">{ <span highlight="Usage Link">{
let (name = item.name || item.names[0], frame = item.definedAt) let (name = item.name || item.names[0], frame = item.definedAt)
@@ -492,8 +494,8 @@ var Template = Module("Template", {
{ item.columns ? template.map(item.columns, function (c) <td>{c}</td>) : "" } { item.columns ? template.map(item.columns, function (c) <td>{c}</td>) : "" }
<td>{desc(item)}</td> <td>{desc(item)}</td>
</tr>) </tr>)
} }</tbody>
</table>; </table>;
// </e4x> // </e4x>
} }
}); });