|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>Issue Viewer</title> |
| 6 | + <script src="issues.js"></script> |
| 7 | + <style> |
| 8 | +@import url("https://martinthomson.github.io/i-d-template/fonts.css"); |
| 9 | +body { font: 15px/20px "Lora", serif; } |
| 10 | +h2, h3, h4, h5, th, .item, .meta { |
| 11 | + font-family: "Cabin Condensed", sans-serif; font-weight: 600; line-height: 150%; } |
| 12 | +tt { font: 14px/20px "Oxygen Mono", monospace; } |
| 13 | +pre { font: 12.5px/16px "Oxygen Mono", monospace; } |
| 14 | +tt, pre { background-color: #eee; border-radius: 2px; padding: 0 2px; } |
| 15 | +table { border: 1px solid #ddd; border-collapse: collapse; } |
| 16 | +td, th { border: 1px solid #eee; padding: 5px 2px; |
| 17 | + text-align: left; vertical-align: text-bottom; } |
| 18 | +td .extra { display: none; max-width: 600px; overflow: auto; margin-top: 5px; } |
| 19 | +.date, .id { text-align: right; } |
| 20 | +.id a, .title a { text-decoration: none; color: #000; } |
| 21 | +.assignees { max-width: 120px; } |
| 22 | +.item { white-space: nowrap; } |
| 23 | +.item span, .item a { |
| 24 | + margin: 0 2px; padding: 1px 3px; max-width: 100px; |
| 25 | + font-size: 14px; overflow: hidden; text-overflow: ellipsis; } |
| 26 | +.item a { text-decoration: none; font-weight: 600; color: #000; } |
| 27 | +.item a:hover { text-decoration: underline; } |
| 28 | +.item a.short { max-width: 32px; } |
| 29 | +.item .swatch, .item .avatar { |
| 30 | + display: inline-block; width: 16px; height: 16px; border-radius: 2px; |
| 31 | + vertical-align: text-bottom; padding: 0; margin: 0 2px; font-size: 10px; } |
| 32 | +.warning { font-weight: 600; padding: 2px 10px; } |
| 33 | +code { background-color: #eee; white-space: nowrap; } |
| 34 | +#cmd { width: 600px; } |
| 35 | +#help, #issue, #overlay { display: none; position: fixed; } |
| 36 | +#help.active, #issue.active, #overlay.active { display: block; } |
| 37 | +#overlay { |
| 38 | + z-index: 1; width: 100%; height: 100%; left: 0; top: 0; |
| 39 | + background-color: #333; opacity: 0.5; } |
| 40 | +#issue, #help { |
| 41 | + z-index: 2; width: calc(100% - 150px); height: calc(100% - 80px); |
| 42 | + left: 50px; top: 20px; border: 1px solid #eee; |
| 43 | + background-color: #fff; padding: 20px 25px; border-radius: 5px; |
| 44 | + overflow-y: auto; overscroll-behavior: contain; } |
| 45 | +h2 { margin: 20px 0 10px; } h3, h4, h5 { margin: 10px 0 5px; } |
| 46 | +h2 .number { display: inline-block; min-width: 50px; text-align: right; } |
| 47 | +h2 { font-size: 32px; } h3 { font-size: 20px; } |
| 48 | +h4 { font-size: 18px; } h5 { font-size: 16px; } |
| 49 | +.meta { margin: 2px 64px; font-size: 15px; color: #444; } |
| 50 | +.meta > span { margin: 0 5px; } |
| 51 | +.comments { margin: 5px; border: none; } |
| 52 | +.comments td { border: none; } |
| 53 | +.comments td.date { color: #555; font-size: 14px; } |
| 54 | +.body { max-width: 550px; border: none; } |
| 55 | +#issue > .body { margin: 20px 64px 20px 10px; } |
| 56 | +p { margin: 0 2px 0.8em; } |
| 57 | +blockquote { font-style: italic; margin: 0.5em 10px 1.3em; |
| 58 | + padding: 0 5px; border-left: 3px solid #eee; } |
| 59 | +ul, ol { padding-left: 32px; } |
| 60 | + </style> |
| 61 | + </head> |
| 62 | + <body> |
| 63 | + <div> |
| 64 | + <label for="cmd">Filter:</label> |
| 65 | + <input id="cmd" name="cmd" type="search" autofocus |
| 66 | + placeholder="type '/help' to show filter syntax"> |
| 67 | + <span id="status"><span id="count"></span> records</span> |
| 68 | + </div> |
| 69 | + <div id="display"> |
| 70 | + <table> |
| 71 | + <thead> |
| 72 | + <tr> |
| 73 | + <th id="sort-id">ID</th> |
| 74 | + <th id="sort-title">Title</th> |
| 75 | + <th id="sort-state">State</th> |
| 76 | + <th id="sort-author">Author</th> |
| 77 | + <th>Assignee</th> |
| 78 | + <th>Labels</th> |
| 79 | + </tr> |
| 80 | + </thead> |
| 81 | + <tbody id="issuelist"> |
| 82 | + </tbody> |
| 83 | + </table> |
| 84 | + </div> |
| 85 | + <div id="overlay"></div> |
| 86 | + <div id="help"> |
| 87 | + <p>This page shows GitHub issues in a simple form.</p> |
| 88 | + <p>The filter box above accepts a set of filters, each separated by space.</p> |
| 89 | + <ul id="functions"> |
| 90 | + </ul> |
| 91 | + <p>You can <tt>/sort</tt> on <tt>id</tt>, <tt>recent</tt>, or <tt>closed</tt>.</p> |
| 92 | + <p>Pressing <tt>enter</tt> saves the current search. |
| 93 | + Pressing <tt>esc</tt> leaves the text input area.</p> |
| 94 | + <h3>Outside the search box</h3> |
| 95 | + <p>Clicking an issue title displays details for the issue including comments. |
| 96 | + Pressing <tt>n</tt> or <tt>j</tt> moves to the next issue, |
| 97 | + and <tt>p</tt> or <tt>k</tt> move to the previous one.</p> |
| 98 | + <p>Pressing <tt>esc</tt> closes the issue view, <tt>'</tt> focuses search, and |
| 99 | + <tt>c</tt> clears the search.</p> |
| 100 | + </div> |
| 101 | + <div id="issue"></div> |
| 102 | + </body> |
| 103 | +</html> |
0 commit comments