update api text inpu is password
This commit is contained in:
parent
1e85149660
commit
be5b7455b5
@ -111,7 +111,6 @@ export async function regexSearchFiles(
|
|||||||
let output: string
|
let output: string
|
||||||
try {
|
try {
|
||||||
output = await execRipgrep(rgPath, args)
|
output = await execRipgrep(rgPath, args)
|
||||||
console.log("output", output)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error executing ripgrep:", error)
|
console.error("Error executing ripgrep:", error)
|
||||||
return "No results found"
|
return "No results found"
|
||||||
@ -161,9 +160,6 @@ export async function regexSearchFiles(
|
|||||||
results.push(currentResult as SearchResult)
|
results.push(currentResult as SearchResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("results", results)
|
|
||||||
console.log("currentResult", currentResult)
|
|
||||||
|
|
||||||
return formatResults(results, directoryPath)
|
return formatResults(results, directoryPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -116,16 +116,20 @@ export class InfioSettingTab extends PluginSettingTab {
|
|||||||
a.setAttr('rel', 'noopener');
|
a.setAttr('rel', 'noopener');
|
||||||
}))
|
}))
|
||||||
.setClass('setting-item-heading-smaller')
|
.setClass('setting-item-heading-smaller')
|
||||||
.addText((text) =>
|
.addText((text) => {
|
||||||
text
|
const t = text
|
||||||
.setValue(this.plugin.settings.serperApiKey)
|
.setValue(this.plugin.settings.serperApiKey)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
await this.plugin.setSettings({
|
await this.plugin.setSettings({
|
||||||
...this.plugin.settings,
|
...this.plugin.settings,
|
||||||
serperApiKey: value,
|
serperApiKey: value,
|
||||||
})
|
})
|
||||||
}),
|
});
|
||||||
)
|
if (t.inputEl) {
|
||||||
|
t.inputEl.type = "password";
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
})
|
||||||
|
|
||||||
new Setting(containerEl)
|
new Setting(containerEl)
|
||||||
.setName('Jina API key (Optional)')
|
.setName('Jina API key (Optional)')
|
||||||
@ -139,16 +143,20 @@ export class InfioSettingTab extends PluginSettingTab {
|
|||||||
a.setAttr('rel', 'noopener');
|
a.setAttr('rel', 'noopener');
|
||||||
}))
|
}))
|
||||||
.setClass('setting-item-heading-smaller')
|
.setClass('setting-item-heading-smaller')
|
||||||
.addText((text) =>
|
.addText((text) => {
|
||||||
text
|
const t = text
|
||||||
.setValue(this.plugin.settings.jinaApiKey)
|
.setValue(this.plugin.settings.jinaApiKey)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
await this.plugin.setSettings({
|
await this.plugin.setSettings({
|
||||||
...this.plugin.settings,
|
...this.plugin.settings,
|
||||||
jinaApiKey: value,
|
jinaApiKey: value,
|
||||||
})
|
})
|
||||||
}),
|
});
|
||||||
)
|
if (t.inputEl) {
|
||||||
|
t.inputEl.type = "password";
|
||||||
|
}
|
||||||
|
return t;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
renderRAGSection(containerEl: HTMLElement): void {
|
renderRAGSection(containerEl: HTMLElement): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user