mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
fmt(js): npm run fix on merge (#70914)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
fb8d824bcb
commit
78a343169c
5 changed files with 14 additions and 34 deletions
|
|
@ -16,13 +16,7 @@ import {
|
|||
DialogTitle
|
||||
} from '@/components/ui/dialog'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import {
|
||||
Select,
|
||||
SelectContent,
|
||||
SelectItem,
|
||||
SelectTrigger,
|
||||
SelectValue
|
||||
} from '@/components/ui/select'
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
||||
import { Textarea } from '@/components/ui/textarea'
|
||||
import {
|
||||
createWebhook,
|
||||
|
|
@ -259,9 +253,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) {
|
|||
current
|
||||
? {
|
||||
...current,
|
||||
subscriptions: current.subscriptions.map(s =>
|
||||
s.name === subName ? { ...s, enabled: nextEnabled } : s
|
||||
)
|
||||
subscriptions: current.subscriptions.map(s => (s.name === subName ? { ...s, enabled: nextEnabled } : s))
|
||||
}
|
||||
: current
|
||||
)
|
||||
|
|
@ -409,9 +401,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) {
|
|||
title={sub.name}
|
||||
/>
|
||||
))}
|
||||
{visible.length === 0 && (
|
||||
<p className="px-2 py-4 text-center text-xs text-muted-foreground">{w.empty}</p>
|
||||
)}
|
||||
{visible.length === 0 && <p className="px-2 py-4 text-center text-xs text-muted-foreground">{w.empty}</p>}
|
||||
<PanelAddButton
|
||||
label={w.newSubscription}
|
||||
onClick={() => {
|
||||
|
|
@ -421,11 +411,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) {
|
|||
/>
|
||||
</PanelList>
|
||||
|
||||
{selectedSub ? (
|
||||
<WebhookDetail sub={selectedSub} />
|
||||
) : (
|
||||
<PanelEmpty description={w.empty} icon="search" />
|
||||
)}
|
||||
{selectedSub ? <WebhookDetail sub={selectedSub} /> : <PanelEmpty description={w.empty} icon="search" />}
|
||||
</PanelBody>
|
||||
</>
|
||||
)}
|
||||
|
|
@ -441,11 +427,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) {
|
|||
{created ? (
|
||||
<div className="grid gap-2">
|
||||
<ListRow action={<CopyValueRow copyLabel={w.copy} value={created.url} />} title={w.webhookUrl} wide />
|
||||
<ListRow
|
||||
action={<CopyValueRow copyLabel={w.copy} value={created.secret} />}
|
||||
title={w.secretOnce}
|
||||
wide
|
||||
/>
|
||||
<ListRow action={<CopyValueRow copyLabel={w.copy} value={created.secret} />} title={w.secretOnce} wide />
|
||||
<DialogFooter>
|
||||
<Button onClick={closeCreate} size="sm">
|
||||
{w.done}
|
||||
|
|
|
|||
|
|
@ -1448,8 +1448,7 @@ export const en: Translations = {
|
|||
toggleFailed: (name: string) => `Failed to update "${name}"`,
|
||||
newSubscription: 'New subscription',
|
||||
restarting: 'Gateway restarting...',
|
||||
restartNeeded:
|
||||
'Webhooks are enabled, but the gateway still needs a restart before the receiver can come online.',
|
||||
restartNeeded: 'Webhooks are enabled, but the gateway still needs a restart before the receiver can come online.',
|
||||
restartGateway: 'Restart gateway',
|
||||
restartingGateway: 'Restarting...',
|
||||
restartFailed: (detail: string) => `Gateway restart failed${detail}`,
|
||||
|
|
|
|||
|
|
@ -1931,8 +1931,7 @@ export const zhHant = defineLocale({
|
|||
installTo: '將安裝至',
|
||||
retryAfterRun: '我已執行 -- 重試',
|
||||
setupChoiceTitle: '設定 Hermes Desktop',
|
||||
setupChoiceDesc:
|
||||
'將此應用程式連線到您已執行的 Hermes 閘道,或在這台電腦上本機安裝 Hermes。',
|
||||
setupChoiceDesc: '將此應用程式連線到您已執行的 Hermes 閘道,或在這台電腦上本機安裝 Hermes。',
|
||||
connectExistingTitle: '連線到現有 Hermes',
|
||||
connectExistingShort: '連線現有環境',
|
||||
connectExistingDesc: '使用工作階段權杖或瀏覽器登入連線遠端後端。不會啟動本機安裝。',
|
||||
|
|
|
|||
|
|
@ -2308,8 +2308,7 @@ export const zh: Translations = {
|
|||
installTo: '将安装到',
|
||||
retryAfterRun: '我已运行 -- 重试',
|
||||
setupChoiceTitle: '设置 Hermes Desktop',
|
||||
setupChoiceDesc:
|
||||
'将此应用连接到你已运行的 Hermes 网关,或在这台电脑上本地安装 Hermes。',
|
||||
setupChoiceDesc: '将此应用连接到你已运行的 Hermes 网关,或在这台电脑上本地安装 Hermes。',
|
||||
connectExistingTitle: '连接到现有 Hermes',
|
||||
connectExistingShort: '连接现有环境',
|
||||
connectExistingDesc: '使用会话令牌或浏览器登录连接远程后端。不会启动本地安装。',
|
||||
|
|
|
|||
|
|
@ -24,11 +24,12 @@ describe('deriveRemoteAuthProviderShape', () => {
|
|||
})
|
||||
|
||||
it('keeps OAuth copy for redirect providers and mixed deployments', () => {
|
||||
expect(deriveRemoteAuthProviderShape([{ name: 'nous', displayName: 'Nous Research', supportsPassword: false }]))
|
||||
.toEqual({
|
||||
isPassword: false,
|
||||
providerLabel: 'Nous Research'
|
||||
})
|
||||
expect(
|
||||
deriveRemoteAuthProviderShape([{ name: 'nous', displayName: 'Nous Research', supportsPassword: false }])
|
||||
).toEqual({
|
||||
isPassword: false,
|
||||
providerLabel: 'Nous Research'
|
||||
})
|
||||
|
||||
expect(
|
||||
deriveRemoteAuthProviderShape([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue