GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): removing a secret provider lists the Simlock tokens that re… · adampeterhiggins/t3code@b690f08

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/settings
    • SecretsSettings.logic.test.ts
    • SecretsSettings.logic.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/settings/SecretsSettings.logic.test.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/settings/SecretsSettings.logic.test.ts
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ const settings = Schema.decodeSync(ServerSettings)({
3131
easDeviceHosts: [
3232
{ kind: "eas", id: "eas", label: "EAS Simulator", accessToken: personal("op://expo") },
3333
],
34+
simlockDeviceHosts: [
35+
{
36+
kind: "simlock",
37+
id: "pool",
38+
label: "Simlock Pool",
39+
gatewayUrl: "https://simlock.test",
40+
agentToken: personal("op://simlock"),
41+
},
42+
],
3443
cloudSpeechCredentials: { openai: personal("op://voice"), xai: "" },
3544
});
3645

@@ -43,6 +52,7 @@ it.each([
4352
"GitHub · github.com",
4453
"https://hub.test · Management Key",
4554
"EAS Simulator · Access Token",
55+
"Simlock Pool · Agent Token",
4656
"Voice · OpenAI",
4757
],
4858
],
Collapse file

‎apps/web/src/components/settings/SecretsSettings.logic.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/settings/SecretsSettings.logic.ts
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
isSecretReference,
66
secretReferencesInSettings,
77
type ServerSettings,
8+
SimlockDeviceHostConfig,
89
UsageLimitSourceConfig,
910
} from "@t3tools/contracts";
1011
import { getProviderClient } from "@t3tools/client-runtime/provider-clients";
@@ -18,6 +19,7 @@ type SecretUseSettings = Pick<
1819
| "sourceControlHosts"
1920
| "usageLimitSources"
2021
| "easDeviceHosts"
22+
| "simlockDeviceHosts"
2123
| "cloudSpeechCredentials"
2224
>;
2325

@@ -92,6 +94,9 @@ export function secretProviderUses(
9294
...settings.easDeviceHosts.flatMap((host) =>
9395
uses({ settingsSchema: EasDeviceHostConfig }, `eas:${host.id}`, host.label, host),
9496
),
97+
...settings.simlockDeviceHosts.flatMap((host) =>
98+
uses({ settingsSchema: SimlockDeviceHostConfig }, `simlock:${host.id}`, host.label, host),
99+
),
95100
...CloudSpeechProvider.literals.flatMap((provider) => {
96101
const credential = settings.cloudSpeechCredentials[provider];
97102
return isSecretReference(credential) && credential.provider === providerId

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.