Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

104 lines
2.4 KiB
TypeScript

const AI_BASE_URL = import.meta.env.VITE_AI_BASE_URL || '';
const AI_MODEL = import.meta.env.VITE_AI_MODEL || 'qwen-flash';
const AI_API_KEY = import.meta.env.VITE_AI_API_KEY || '';
export const SIMULATOR_CONFIG = {
// ======== 框架渲染参数 ========
framework: {
screenHeight: 2400,
screenWidth: 1080,
dpr: 3,
viewportWidth: 360,
viewportHeight: 800,
statusBarHeight: 40,
bottomGestureHeight: 16,
keyboardHeight: 320,
edgeGestureWidth: 20,
swipeThreshold: 60,
gestureBarWidth: 120,
gestureBarHeight: 4.5,
homeSwipeThreshold: 20,
recentsHoldDuration: 350,
gestureProgressDivisor: 100,
gestureCancelThreshold: 40,
gestureProgressScale: 0.3,
backIndicatorSize: 48,
backIndicatorOpacity: 0.2,
gestureBarOpacityLight: 0.6,
gestureBarOpacityDark: 0.3,
launcherPaddingTop: 64,
clockFontSize: 84,
appGridColumns: 4,
appIconSize: 60,
appIconBorderRadius: 12,
dockBorderRadius: 20,
recentsCardWidth: 200,
recentsCardHeight: 434,
recentsScrollContainerHeight: 500,
recentsSwipeThreshold: 100,
recentsBackgroundOpacity: 0.1,
recentsCardGap: 24,
recentsCardBorderRadius: 24,
recentsOpacityDivisor: 150,
recentsTopPadding: 96,
recentsAppPreviewWidth: 390,
recentsAppPreviewHeight: 844,
zIndexStatusBar: 1000,
zIndexRecents: 200,
zIndexRecentsBlur: 200,
zIndexRecentsCards: 205,
zIndexRecentsChrome: 210,
zIndexEdgeGestures: 2500,
zIndexGestureBar: 3300,
zIndexKeyboard: 3200,
zIndexSystemShade: 5000,
zIndexApp: 50,
transitionDuration: 200,
pageTransitionDuration: 300,
statusBarColorCheckInterval: 300,
},
// ======== 行为配置 ========
time: {
mode: 'real' as 'real' | 'simulated',
simulatedTime: '2026-01-04 20:00:00',
flowing: true,
speed: 1,
},
location: {
mode: 'simulated' as 'real' | 'simulated',
simulatedLocation: { latitude: 39.9794688, longitude: 116.3323982 } as
| string
| { latitude: number; longitude: number; accuracy?: number },
},
ai: {
enabled: Boolean(AI_BASE_URL),
baseUrl: AI_BASE_URL,
model: AI_MODEL,
apiKey: AI_API_KEY,
temperature: 0.7,
replyDelay: 500,
maxContextMessages: 15,
reasoningEffort: 'none' as 'none' | 'low' | 'medium' | 'high',
},
display: {
scale: 1,
themeColor: '#1a1a1a',
},
intent: {
chooserEnabled: true,
},
} as const;