← Về thư mục
frontend/src/components/customize/vendors/volcengine.tsx
- VolcState · type · L27-L27 — type VolcState = Record;
- rec · function · L29-L33 — function rec(value: unknown): Record
- VolcBtn · function · L35-L56 — function VolcBtn({ label, icon, class: cls = "outline-btn small", disabled, spinning, onClick, }: { label: string; icon: string; class?: string; disabled?: boolean; spinning?: boolean; onClick: () => void; })
- VolcNotice · function · L58-L78 — function VolcNotice({ tone, title, body, }: { tone?: string; title: string; body?: string; })
- VolcExternal · function · L80-L101 — function VolcExternal({ label, url, icon = "globe", onOpen, }: { label: string; url: string; icon?: string; onOpen?: () => void; })
- VolcenginePanel · function · L103-L781 — function VolcenginePanel()
- stopPoll · function · L116-L120 — stopPoll = ()
- applyState · function · L126-L129 — applyState = (next: VolcState)
- refresh · function · L131-L163 — refresh = async (opts?: { autoConfigure?: boolean; announce?: boolean; }): Promise
- configure · function · L165-L205 — configure = async ( current: VolcState, nextPlanKey: string, apiKeyChoice = "", nextEndpoint = "", )
- startKeyPoll · function · L207-L222 — startKeyPoll = ()
- startLogin · function · L224-L254 — startLogin = async ()
- RecheckButton · function · L783-L822 — function RecheckButton({ refresh, applyState, state, refreshMessage, setRefreshMessage, }: { refresh: (opts?: { announce?: boolean }) => Promise; applyState: (s: VolcState) => void; state: VolcState; refreshMessage: string; setRefreshMessage: (s: string) => void; })
- AwaitingCode · function · L824-L899 — function AwaitingCode({ state, login, applyState, refresh, }: { state: VolcState; login: Record; applyState: (s: VolcState) => void; refresh: () => Promise; })
- FailedLogin · function · L901-L960 — function FailedLogin({ state, login, startLogin, refresh, }: { state: VolcState; login: Record; startLogin: () => Promise; refresh: () => Promise; })