imp/exp/show/cookie
Build Service / BuildPackage (push) Has been cancelled

This commit is contained in:
2026-05-14 18:27:20 -04:00
parent 172e3f63ac
commit 2cdc4a5f34
9 changed files with 409 additions and 38 deletions
+57
View File
@@ -0,0 +1,57 @@
import { storeJson } from '../fileModels/storeJson'
import { i18n } from '../i18n'
import { sdk } from '../sdk'
import { APP_USER } from '../utils'
export const showPassword = sdk.Action.withoutInput(
// id
'show-password',
// metadata
async ({ effects }) => ({
name: i18n('Show Web UI Password'),
description: i18n(
'Display the existing username and password for the Spaces web terminal.',
),
warning: null,
allowedStatuses: 'any',
group: null,
visibility: 'enabled',
}),
// run
async ({ effects }) => {
const password = await storeJson.read((s) => s.password).once()
return {
version: '1',
title: i18n('Show Web UI Password'),
message: i18n(
'Use these credentials to log in to the Spaces web terminal.',
),
result: {
type: 'group',
value: [
{
type: 'single',
name: i18n('Username'),
description: null,
value: APP_USER,
masked: false,
copyable: true,
qr: false,
},
{
type: 'single',
name: i18n('Password'),
description: null,
value: password ?? '',
masked: true,
copyable: true,
qr: false,
},
],
},
}
},
)