diff --git a/components/sidebar.html b/components/sidebar.html index 8a91351e..9017660e 100644 --- a/components/sidebar.html +++ b/components/sidebar.html @@ -54,15 +54,6 @@ /> For You - - - For Kids - Recently Added + + + For Kids + { - const { getApplication } = await import('./js/applicationContext.js'); - const app = getApplication(); - - if (!app) { - console.error("Application instance not found"); - return; - } - - const video = { - id: "test-video-id", - title: "Frontend Verification Video", - pubkey: "abcd1234abcd1234abcd1234abcd1234", - creatorName: "Verified User", - thumbnail: "/assets/jpg/video-thumbnail-fallback.jpg", - shareUrl: "http://localhost:8000/?v=test" - }; - - // We use app.openShareNostrModal to test the integration in app.js as well - await app.openShareNostrModal({ video }); - })() - """) - - # Wait for modal to appear - print("Waiting for modal...") - modal = page.locator("#shareNostrModal") - modal.wait_for(state="visible", timeout=10000) - - # Take screenshot - os.makedirs("verification", exist_ok=True) - screenshot_path = os.path.abspath("verification/share_modal.png") - modal.screenshot(path=screenshot_path) - print(f"Screenshot saved to {screenshot_path}") - - browser.close() - -if __name__ == "__main__": - verify_share_modal() diff --git a/views/kids.html b/views/kids.html index 535f08df..28cc89aa 100644 --- a/views/kids.html +++ b/views/kids.html @@ -26,6 +26,7 @@ +