add INSTANCE_IS_DEV

This commit is contained in:
Ruben Fiszel
2024-08-13 21:33:11 +02:00
parent 81803f10ff
commit 763a3062b3
7 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
80d9e507977b55d0b76272905c969c3d6e830083
91326e3b35f6a9454728e842b35b7160d907c100
@@ -30,7 +30,7 @@ pub const DEV_INSTANCE_SETTING: &str = "dev_instance";
pub const JWT_SECRET_SETTING: &str = "jwt_secret";
pub const EMAIL_DOMAIN_SETTING: &str = "email_domain";
pub const ENV_SETTINGS: [&str; 50] = [
pub const ENV_SETTINGS: [&str; 51] = [
"DISABLE_NSJAIL",
"MODE",
"NUM_WORKERS",
@@ -81,4 +81,5 @@ pub const ENV_SETTINGS: [&str; 50] = [
"MAX_WAIT_FOR_SIGTERM",
"WORKER_GROUP",
"SAML_METADATA",
"INSTANCE_IS_DEV",
];
@@ -718,6 +718,7 @@
/>
{:else if setting.fieldType == 'password'}
<input
autocomplete="new-password"
type="password"
placeholder={setting.placeholder}
bind:value={values[setting.key]}
@@ -148,7 +148,7 @@
<span class="text-tertiary text-2xs"
>If left empty, will be derived automatically from $AWS_SECRET_KEY, pod or ec2 profile</span
>
<input type="password" bind:value={bucket_config.secret_key} />
<input type="password" autocomplete="new-password" bind:value={bucket_config.secret_key} />
</label>
<label class="block pb-2">
<span class="text-primary font-semibold text-sm">Endpoint</span>
@@ -174,7 +174,7 @@
</label>
<label class="block pb-2">
<span class="text-primary font-semibold text-sm">Access Key</span>
<input type="password" bind:value={bucket_config.accessKey} />
<input type="password" autocomplete="new-password" bind:value={bucket_config.accessKey} />
</label>
<label class="block pb-2">
<span class="text-primary font-semibold text-sm"
+1 -1
View File
@@ -48,7 +48,7 @@
type="password"
bind:value={password}
on:keydown
autocomplete="off"
autocomplete="new-password"
{placeholder}
{disabled}
/>
@@ -173,6 +173,7 @@
!$connectingInput.opened && selectId(e, id, selectedComponent, $app)}
on:keydown|stopPropagation
type="password"
autocomplete="new-password"
bind:value
placeholder={resolvedConfig.placeholder}
disabled={resolvedConfig.disabled}
@@ -203,7 +203,12 @@
<span class="text-2xs text-tertiary ml-2">(optional but recommended)</span>
</span>
<div class="flex flex-row gap-1">
<input type="password" bind:value={openAiKey} on:keyup={handleKeyUp} />
<input
type="password"
autocomplete="new-password"
bind:value={openAiKey}
on:keyup={handleKeyUp}
/>
<TestOpenaiKey apiKey={openAiKey} disabled={!openAiKey} />
</div>
{#if openAiKey}