feat: support set api key from client side

This commit is contained in:
Fred Liang
2023-12-24 03:44:13 +08:00
parent 4169431f2c
commit 20f2f61349
5 changed files with 16 additions and 4 deletions

View File

@@ -64,6 +64,17 @@ export function AuthPage() {
);
}}
/>
<input
className={styles["auth-input"]}
type="password"
placeholder={Locale.Settings.Access.Google.ApiKey.Placeholder}
value={accessStore.googleApiKey}
onChange={(e) => {
accessStore.update(
(access) => (access.googleApiKey = e.currentTarget.value),
);
}}
/>
</>
) : null}