-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add live views to new webui #8970
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I had originally created a "context" directory for hooks, but "hooks" is probably more appropriate. Maybe you could move use-persistence.tsx
into hooks
and then instead of index.ts
, make a resize-observer.tsx
or something if we want to keep separate hooks in their own files.
@hawkeye217 good idea, done 👍 |
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card"; | ||
import { Switch } from "../ui/switch"; | ||
import { Label } from "../ui/label"; | ||
import { usePersistence } from "@/context/use-persistence"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This context is missing from this PR and doesn't exist on the 0.14 branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it was moved to hooks
and missed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah missed that one, fixed in #8981
* Add support for live views * Lint fixes * Fix width * Fix lint * Cleanup hooks
* Add support for live views * Lint fixes * Fix width * Fix lint * Cleanup hooks
* Add support for live views * Lint fixes * Fix width * Fix lint * Cleanup hooks
* Add support for live views * Lint fixes * Fix width * Fix lint * Cleanup hooks
For now just adding webrtc and debug because MSE and JSMPEG rely on javascript which is making things less simple. Persistence is supported and also fixed an issue on mobile with screen width