feat(web): add iPhone Duo 3D controls (#12813)
This commit is contained in:
1 parent
fd46510058
commit
46f3c2ca2c
25 files changed
+2951
-44
No files matched your search
@@ -139,3 +139,29 @@ it.each([
|
||||
expect(await response.text()).not.toContain("private credential diagnostic");
|
||||
expect(requests).toEqual([]);
|
||||
});
|
||||
|
||||
it.each([1, 3])(
|
||||
"forwards fixed Duo display %s through the authenticated read proxy",
|
||||
async (panel) => {
|
||||
const { handler, requests } = fixture([AuthOrchestrationReadScope]);
|
||||
const route = `/vendor/serve-sim/helper/duo/panel/${panel}/stream.avcc`;
|
||||
const response = await handler(
|
||||
new Request(`http://t3.test/api/device-hub${route}?wsTicket=secret`),
|
||||
);
|
||||
expect(response.status).toBe(200);
|
||||
await response.text();
|
||||
expect(requests).toEqual([`http://hub.test${route}`]);
|
||||
},
|
||||
);
|
||||
|
||||
it.each(["/panel/2/stream.avcc", "/panel/1/webrtc/offer", "/panel/3/exec"])(
|
||||
"rejects unsupported Duo route %s",
|
||||
async (route) => {
|
||||
const { handler, requests } = fixture([AuthOrchestrationReadScope]);
|
||||
const response = await handler(
|
||||
new Request(`http://t3.test/api/device-hub/vendor/serve-sim/helper/duo${route}`),
|
||||
);
|
||||
expect(response.status).toBe(404);
|
||||
expect(requests).toEqual([]);
|
||||
},
|
||||
);
|
||||
@@ -42,6 +42,7 @@ const ALLOWED_PATHS: ReadonlyArray<RegExp> = [
|
||||
/^\/vendor\/serve-sim\/api\/screenshot$/,
|
||||
/^\/vendor\/serve-sim\/api\/event-log(\/events)?$/,
|
||||
/^\/vendor\/serve-sim\/helper\/[^/]+\/(stream\.mjpeg|stream\.avcc|config|health|ax|foreground)$/,
|
||||
/^\/vendor\/serve-sim\/helper\/[^/]+\/panel\/(1|3)\/stream\.avcc$/,
|
||||
/^\/vendor\/serve-sim\/appstate$/,
|
||||
/^\/vendor\/serve-emu\/api\/(devices|screenshot|stream-mode|stream-settings|accessibility)$/,
|
||||
/^\/vendor\/serve-emu\/health$/,
|
||||
|
||||
@@ -26,7 +26,7 @@ import * as Semaphore from "effect/Semaphore";
|
||||
import * as ProcessRunner from "../processRunner.ts";
|
||||
|
||||
const DEVICE_HUB_PACKAGE = "expo-device-hub";
|
||||
export const DEVICE_HUB_VERSION = "0.10.1";
|
||||
export const DEVICE_HUB_VERSION = "0.12.0";
|
||||
const AGENT_DEVICE_PACKAGE = "agent-device";
|
||||
export const AGENT_DEVICE_VERSION = "0.21.12";
|
||||
|
||||
|
||||
Reference in new issue
Block a user