A bit of cleanup
This commit is contained in:
parent
420303bffa
commit
011232bc75
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -7,5 +7,8 @@
|
||||
"out": true // set this to false to include "out" folder in search results
|
||||
},
|
||||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
|
||||
"typescript.tsc.autoDetect": "off"
|
||||
}
|
||||
"typescript.tsc.autoDetect": "off",
|
||||
"editor.detectIndentation": false,
|
||||
"prettier.tabWidth": 2,
|
||||
"prettier.singleQuote": true
|
||||
}
|
||||
|
@ -7,5 +7,4 @@ vsc-extension-quickstart.md
|
||||
**/tsconfig.json
|
||||
**/tslint.json
|
||||
**/*.map
|
||||
**/*.ts
|
||||
.gitea/
|
||||
**/*.ts
|
@ -1,38 +1,42 @@
|
||||
import { Issue } from "./issue";
|
||||
import { Issue } from './issue';
|
||||
|
||||
export function showIssueHTML(issue: Issue) {
|
||||
|
||||
return `<body>
|
||||
return `<body>
|
||||
<h1>{{label}}</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Title
|
||||
</td>
|
||||
<td >
|
||||
{{label}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
State
|
||||
</td>
|
||||
<td>
|
||||
{{state}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
Assignee
|
||||
</td>
|
||||
<td>
|
||||
{{assignee}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p style="font-size: 20pt">
|
||||
{{description}}
|
||||
</p>
|
||||
</body>
|
||||
`.replace("{{label}}", issue.label).replace("{{state}}", issue.issueState).replace("{{assignee}}", issue.assignee).replace("{{description}}", issue.body).replace("{{label}}", issue.label);
|
||||
}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Title
|
||||
</td>
|
||||
<td >
|
||||
{{label}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
State
|
||||
</td>
|
||||
<td>
|
||||
{{state}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
Assignee
|
||||
</td>
|
||||
<td>
|
||||
{{assignee}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p style="font-size: 20pt">
|
||||
{{description}}
|
||||
</p>
|
||||
</body>
|
||||
`
|
||||
.replace('{{label}}', issue.label)
|
||||
.replace('{{state}}', issue.issueState)
|
||||
.replace('{{assignee}}', issue.assignee)
|
||||
.replace('{{description}}', issue.body)
|
||||
.replace('{{label}}', issue.label);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
//
|
||||
|
||||
// The module 'assert' provides assertion methods from node
|
||||
import * as assert from 'assert';
|
||||
//import * as assert from 'assert';
|
||||
|
||||
// You can import and use all API from the 'vscode' module
|
||||
// as well as import your extension to test it
|
||||
@ -14,9 +14,4 @@ import * as assert from 'assert';
|
||||
// Defines a Mocha test suite to group tests of similar kind together
|
||||
suite("Extension Tests", function () {
|
||||
|
||||
// Defines a Mocha unit test
|
||||
test("Something 1", function() {
|
||||
assert.equal(-1, [1, 2, 3].indexOf(5));
|
||||
assert.equal(-1, [1, 2, 3].indexOf(0));
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user