-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from JetBrains/local-run
Add local run capability + Self-Hosted support + UX and UI improvements
- Loading branch information
Showing
62 changed files
with
3,945 additions
and
814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//@ts-check | ||
|
||
// This script will be run within the webview itself | ||
// It cannot access the main VS Code APIs directly. | ||
(function () { | ||
const vscode = acquireVsCodeApi(); | ||
|
||
document.querySelector('.unlink-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: 'unlink' }); | ||
}); | ||
|
||
document.querySelector('.open-report-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: 'openReport' }); | ||
}); | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//@ts-check | ||
|
||
// This script will be run within the webview itself | ||
// It cannot access the main VS Code APIs directly. | ||
(function () { | ||
const vscode = acquireVsCodeApi(); | ||
|
||
document.querySelector('.login-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_LOG_IN }); | ||
}); | ||
|
||
document.querySelector('.self-hosted-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_LOG_IN_CUSTOM_SERVER }); | ||
}); | ||
|
||
// noinspection DuplicatedCode | ||
document.querySelector('.close-report-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_CLOSE_REPORT }); | ||
}); | ||
|
||
window.addEventListener('message', event => { | ||
const message = event.data; // Here 'data' contains information sent from extension. | ||
switch (message.type) { | ||
case 'hide': | ||
let element = document.querySelector(message.data); | ||
if (element && message.visible === false) { | ||
element.classList.add('hide-element'); | ||
} else if (element) { | ||
element.classList.remove('hide-element'); | ||
} | ||
break; | ||
} | ||
}); | ||
|
||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
body { | ||
background-color: transparent; | ||
} | ||
|
||
.hide-element { | ||
display: none; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
html { | ||
box-sizing: border-box; | ||
font-size: 13px; | ||
} | ||
|
||
*, | ||
*:before, | ||
*:after { | ||
box-sizing: inherit; | ||
} | ||
|
||
body, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
p, | ||
ol, | ||
ul { | ||
margin: 0; | ||
padding: 0; | ||
font-weight: normal; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//@ts-check | ||
|
||
// This script will be run within the webview itself | ||
// It cannot access the main VS Code APIs directly. | ||
(function () { | ||
const vscode = acquireVsCodeApi(); | ||
|
||
document.querySelector('.run-locally-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_RUN_LOCALLY }); | ||
}); | ||
|
||
document.querySelector('.view-history-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_OPEN_LOCAL_REPORT }); | ||
}); | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//@ts-check | ||
|
||
// This script will be run within the webview itself | ||
// It cannot access the main VS Code APIs directly. | ||
(function () { | ||
const vscode = acquireVsCodeApi(); | ||
|
||
document.querySelector('.logout-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_LOG_OUT }); | ||
}); | ||
|
||
// noinspection DuplicatedCode | ||
document.querySelector('.close-report-button').addEventListener('click', () => { | ||
vscode.postMessage({ type: myConstants.COMMAND_CLOSE_REPORT }); | ||
}); | ||
|
||
window.addEventListener('message', event => { | ||
const message = event.data; // Here 'data' contains information sent from extension. | ||
switch (message.type) { | ||
case 'hide': | ||
let element = document.querySelector(message.data); | ||
if (element && message.visible === false) { | ||
element.classList.add('hide-element'); | ||
} else if (element) { | ||
element.classList.remove('hide-element'); | ||
} | ||
break; | ||
} | ||
}); | ||
}()); |
Oops, something went wrong.