UI: FAQ регистрации и режим пароля из 12 слов

This commit is contained in:
AidarKC
2026-06-20 19:05:45 +04:00
parent 3b12e14e71
commit fec5e49304
11 changed files with 766 additions and 64 deletions
+8
View File
@@ -7,6 +7,7 @@ import {
DEFAULT_SHINE_SERVER_WS,
resolveShineServerByServerLogin,
} from './services/shine-server-resolver.js';
import { emptyPasswordWords } from './services/password-words.js';
const clone = (value) => JSON.parse(JSON.stringify(value));
const SESSION_STORAGE_KEY = 'shine-ui-current-session-v1';
@@ -260,15 +261,22 @@ function createInitialState({ withStoredSession = true } = {}) {
flowType: '',
login: '',
password: '',
passwordMode: 'single',
passwordWords: emptyPasswordWords(),
sessionId: '',
storagePwd: '',
pendingKeyBundle: null,
pendingSessionMaterial: null,
preGeneratedKeyBundle: null,
},
registrationHelp: {
selectedTopic: 'keys-storage',
},
loginDraft: {
login: storedSession?.login || '',
password: '',
passwordMode: 'single',
passwordWords: emptyPasswordWords(),
},
registrationPayment: {
walletAddress: '',