mirror of
https://github.com/Iheuzio/gpt-contextfiles.git
synced 2025-07-18 14:00:48 +00:00
Merge pull request #23 from Iheuzio/feature/format-code
Feature/format code
This commit is contained in:
commit
2392bc7099
23
CHANGELOG.md
23
CHANGELOG.md
@ -4,6 +4,29 @@ Version History
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [Release 0.1.3]
|
||||
|
||||
## What's Changed
|
||||
* fix(explorer-context): Shows the add files context for any file by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/19
|
||||
* fix(assistant): Assistant would not answer reponse by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/20
|
||||
* Release 0.1.3 by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/21
|
||||
|
||||
**Full Changelog**: https://github.com/Iheuzio/gpt-contextfiles/compare/0.1.2...0.1.3
|
||||
|
||||
## [Release 0.1.2]
|
||||
|
||||
## What's Changed
|
||||
* feature(tags): associate project with relative keywords by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/11
|
||||
* feature(categories): Expand into other categories related to this program by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/12
|
||||
* Update issue templates by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/13
|
||||
* Adding Guides by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/14
|
||||
* feature(sidebar): Renders webpanel on the side by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/15
|
||||
* fix(css): sidebar now has css by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/16
|
||||
* Release 0.1.2 by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/17
|
||||
|
||||
|
||||
**Full Changelog**: https://github.com/Iheuzio/gpt-contextfiles/compare/0.1.0...0.1.2
|
||||
|
||||
## [Release 0.1.1]
|
||||
|
||||
Swapped category from `other` to `Machine Learning` to better reflect use-case
|
||||
|
20
extension.js
20
extension.js
@ -224,13 +224,9 @@ function getWebviewContent(apiResponse = '', question = '') {
|
||||
outline: none;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
||||
#response {
|
||||
border: 1px solid #000;
|
||||
background-color: #e0e0e0;
|
||||
padding: 10px;
|
||||
margin-top: 20px;
|
||||
overflow-wrap: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
#file-list {
|
||||
@ -418,7 +414,7 @@ function getWebviewContent(apiResponse = '', question = '') {
|
||||
div#api-response.content.active {
|
||||
background-color: #313131;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body class="panel">
|
||||
@ -443,9 +439,11 @@ function getWebviewContent(apiResponse = '', question = '') {
|
||||
</div>
|
||||
${
|
||||
apiResponse ? `
|
||||
<div id="rendered">
|
||||
<p id="responses">${apiResponse}</p>
|
||||
</div>
|
||||
<div id="rendered">
|
||||
<p id="responses">
|
||||
<pre id="response">${apiResponse.replace(/```([^```]+)```/g, '<code>$1</code>')}</pre>
|
||||
</p>
|
||||
</div>
|
||||
` : null
|
||||
}
|
||||
</div>
|
||||
@ -481,7 +479,7 @@ function getWebviewContent(apiResponse = '', question = '') {
|
||||
function toggleApiResponse() {
|
||||
const apiResponse = document.getElementById('api-response');
|
||||
var response = document.getElementById('responses');
|
||||
if(response === null || response === 'null') {
|
||||
if(response === null) {
|
||||
return;
|
||||
}
|
||||
apiResponse.classList.toggle('active');
|
||||
|
Loading…
Reference in New Issue
Block a user