feat: add Ray-Ban display dashboard PoC (#226)

This commit is contained in:
Eyejoker
2026-06-07 23:05:23 +09:00
committed by GitHub
parent 337d46461c
commit 5c47024e44
5 changed files with 1235 additions and 3 deletions

View File

@@ -2,6 +2,13 @@ import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import { GlassesApp } from './GlassesApp';
function isGlassesRoute(): boolean {
const pathname = window.location.pathname.replace(/\/+$/, '') || '/';
const search = new URLSearchParams(window.location.search);
return pathname === '/glasses' || search.get('display') === 'rayban';
}
const root = document.getElementById('root');
@@ -10,7 +17,5 @@ if (!root) {
}
createRoot(root).render(
<StrictMode>
<App />
</StrictMode>,
<StrictMode>{isGlassesRoute() ? <GlassesApp /> : <App />}</StrictMode>,
);