Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 5x 5x 5x 5x 5x 5x | import type { Channel } from './channel'
import type { BootstrapResponse, Me, Session } from './session'
import type { Health, PublicConfig } from './system'
// Sample DTOs for tests and stories; spread to vary (`{ ...MOCK_CHANNEL, name: 'x' }`).
// Not exported from index.ts, so no app bundle carries them: import `@chattra/shared/mocks`.
export const MOCK_HEALTH = { status: 'ok' } satisfies Health
export const MOCK_PUBLIC_CONFIG = {
environment: 'local',
firebase: {
projectId: 'demo-chattra',
apiKey: 'demo-api-key',
authDomain: 'demo-chattra.firebaseapp.com',
messagingSenderId: '1234567890',
appId: '1:1234567890:web:abcdef',
vapidKey: 'demo-vapid-key',
},
} satisfies PublicConfig
export const MOCK_ME = {
id: '01930000-0000-7000-8000-000000000001',
workspaceId: '01930000-0000-7000-8000-000000000002',
email: 'an@asnet.com.vn',
displayName: 'An Nguyen',
avatarUrl: null,
role: 'member',
} satisfies Me
export const MOCK_BOOTSTRAP = {
user: MOCK_ME,
sessionId: '01930000-0000-7000-8000-000000000003',
} satisfies BootstrapResponse
export const MOCK_SESSION = {
id: MOCK_BOOTSTRAP.sessionId,
device: 'Chrome on macOS',
createdAt: 1_762_000_000_000,
lastSeenAt: 1_762_000_060_000,
current: true,
} satisfies Session
export const MOCK_CHANNEL = {
id: '01930000-0000-7000-8000-000000000004',
name: 'general',
kind: 'public',
topic: null,
description: null,
isGeneral: true,
archivedAt: null,
memberCount: 1,
joined: true,
createdAt: 1_762_000_000_000,
} satisfies Channel
|