GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — t3code/scripts/mobile-showcase.config.ts at main · Xenonesis/t3code Expand file tree/ Copy pathmobile-showcase.config.tsMore file actions 232 lines (219 loc) · 7.11 KB / Copy pathmobile-showcase.config.tsFile metadata and controls232 lines (219 loc) · 7.11 KB 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 import { MOBILE_DEFAULT_THEME_ID, MOBILE_THEME_IDS, type MobileThemeId, } from "@t3tools/shared/themePalettes"; import { SHOWCASE_SCENES, type ShowcaseScene } from "./mobile-showcase-environment.ts"; export { SHOWCASE_SCENES }; export type { ShowcaseScene }; export type ShowcaseAppearance = "light" | "dark"; export const SHOWCASE_THEMES = MOBILE_THEME_IDS; const DEFAULT_SHOWCASE_THEME = MOBILE_DEFAULT_THEME_ID; export type ShowcaseTheme = MobileThemeId; export interface ShowcaseStoreAssetSpec { readonly store: "apple" | "google-play"; readonly directory: string; readonly width: number; readonly height: number; readonly minimumUploadCount: number; readonly maximumUploadCount: number; readonly maximumFileSizeBytes?: number; } export interface ShowcaseIosDevice { readonly id: string; readonly platform: "ios"; readonly simulator: string; readonly simulatorDeviceType?: string; readonly appearance: ShowcaseAppearance; readonly theme: ShowcaseTheme; readonly orientation?: "portrait" | "landscape"; readonly fold?: "closed" | "open"; readonly scenes: ReadonlyArray<ShowcaseScene>; readonly storeAsset: ShowcaseStoreAssetSpec; } export interface ShowcaseAndroidDevice { readonly id: string; readonly platform: "android"; readonly avd: string; readonly appearance: ShowcaseAppearance; readonly theme: ShowcaseTheme; readonly abi?: "arm64-v8a" | "x86_64" | "x86" | "armeabi-v7a"; readonly scenes: ReadonlyArray<ShowcaseScene>; readonly viewport?: { readonly width: number; readonly height: number; readonly density?: number; }; readonly storeAsset: ShowcaseStoreAssetSpec; } export type ShowcaseDevice = ShowcaseIosDevice | ShowcaseAndroidDevice; export interface ShowcaseConfig { readonly outputDirectory: string; readonly metroPort: number; readonly settleDelayMs: number; readonly devices: ReadonlyArray<ShowcaseDevice>; } const ANDROID_ABIS = ["arm64-v8a", "x86_64", "x86", "armeabi-v7a"] as const; function resolveShowcaseAndroidAbi( value: string | undefined, ): NonNullable<ShowcaseAndroidDevice["abi"]> { if (!value) return "arm64-v8a"; if (ANDROID_ABIS.some((abi) => abi === value)) { return value as NonNullable<ShowcaseAndroidDevice["abi"]>; } throw new Error( `Unsupported T3_SHOWCASE_ANDROID_ABI '${value}'. Use ${ANDROID_ABIS.join(", ")}.`, ); } const config: ShowcaseConfig = { outputDirectory: "artifacts/app-store/screenshots", // A dedicated port prevents captures from attaching to another dev server's bundle. metroPort: 8199, settleDelayMs: 2_500, devices: [ { id: "iphone-6.9", platform: "ios", simulator: "T3 Showcase iPhone 17 Pro Max", simulatorDeviceType: "com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro-Max", appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, scenes: ["thread", "terminal", "review", "threads", "environments", "agent-activity"], storeAsset: { store: "apple", directory: "apple/iphone-6.9", width: 1320, height: 2868, minimumUploadCount: 1, maximumUploadCount: 10, }, }, { id: "iphone-6.5", platform: "ios", simulator: "T3 Showcase iPhone 14 Plus", simulatorDeviceType: "com.apple.CoreSimulator.SimDeviceType.iPhone-14-Plus", appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, scenes: ["thread", "terminal", "review", "threads", "environments", "agent-activity"], storeAsset: { store: "apple", directory: "apple/iphone-6.5", width: 1284, height: 2778, minimumUploadCount: 1, maximumUploadCount: 10, }, }, ...(["closed", "open"] as const).map((fold): ShowcaseIosDevice => ({ id: `iphone-duo-${fold}`, platform: "ios", simulator: `T3 Showcase iPhone Duo ${fold}`, simulatorDeviceType: "com.apple.CoreSimulator.SimDeviceType.iPhone-Duo", appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, orientation: fold === "closed" ? "portrait" : "landscape", fold, // Both poses share one ten-image App Store slot. scenes: ["thread", "terminal", "review", "threads", "environments"], storeAsset: { store: "apple", directory: `apple/iphone-duo-${fold}`, width: fold === "closed" ? 1398 : 2853, height: fold === "closed" ? 2034 : 2007, minimumUploadCount: 1, maximumUploadCount: 5, }, })), { id: "ipad-13", platform: "ios", simulator: "iPad Pro 13-inch (M5)", simulatorDeviceType: "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-16GB", appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, orientation: "landscape", // Lock screens ignore app rotation; headless landscape captures would be sideways. scenes: ["thread", "terminal", "review", "threads", "environments"], storeAsset: { store: "apple", directory: "apple/ipad-13", width: 2752, height: 2064, minimumUploadCount: 1, maximumUploadCount: 10, }, }, { id: "pixel", platform: "android", avd: "Pixel_10_Pro", // Apple Silicon defaults to ARM64; Blacksmith Linux CI overrides to x86_64 for KVM. abi: resolveShowcaseAndroidAbi(process.env.T3_SHOWCASE_ANDROID_ABI), appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, viewport: { width: 1080, height: 1920, density: 420, }, scenes: ["thread", "terminal", "review", "threads", "environments", "agent-activity"], storeAsset: { store: "google-play", directory: "google-play/phone", width: 1080, height: 1920, minimumUploadCount: 2, maximumUploadCount: 8, maximumFileSizeBytes: 8 * 1024 * 1024, }, }, { id: "android-tablet-7", platform: "android", avd: "Pixel_10_Pro", abi: resolveShowcaseAndroidAbi(process.env.T3_SHOWCASE_ANDROID_ABI), appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, viewport: { width: 1080, height: 1920, density: 288, }, scenes: ["thread", "terminal", "review", "threads", "environments", "agent-activity"], storeAsset: { store: "google-play", directory: "google-play/tablet-7", width: 1080, height: 1920, minimumUploadCount: 4, maximumUploadCount: 8, maximumFileSizeBytes: 8 * 1024 * 1024, }, }, { id: "android-tablet-10", platform: "android", avd: "Pixel_10_Pro", abi: resolveShowcaseAndroidAbi(process.env.T3_SHOWCASE_ANDROID_ABI), appearance: "dark", theme: DEFAULT_SHOWCASE_THEME, viewport: { width: 1440, height: 2560, density: 288, }, scenes: ["thread", "terminal", "review", "threads", "environments", "agent-activity"], storeAsset: { store: "google-play", directory: "google-play/tablet-10", width: 1440, height: 2560, minimumUploadCount: 4, maximumUploadCount: 8, maximumFileSizeBytes: 8 * 1024 * 1024, }, }, ], }; export default config; |
| 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. |