Download frontend/src/components/window/MainWindow.svelte from openfree/graphite2: direct link, hf CLI and curl.
- Browser
- Download file 755 Bytes
-
https://huggingface.co/spaces/openfree/graphite2/resolve/main/frontend/src/components/window/MainWindow.svelte
- Command line
-
hf download hf://spaces/openfree/graphite2/frontend/src/components/window/MainWindow.svelte
-
curl -L -o MainWindow.svelte https://huggingface.co/spaces/openfree/graphite2/resolve/main/frontend/src/components/window/MainWindow.svelte
755 Bytes
| <script lang="ts" context="module"> | |
| export type ApplicationPlatform = "Windows" | "Mac" | "Linux" | "Web"; | |
| </script> | |
| <script lang="ts"> | |
| import LayoutCol from "@graphite/components/layout/LayoutCol.svelte"; | |
| import StatusBar from "@graphite/components/window/status-bar/StatusBar.svelte"; | |
| import TitleBar from "@graphite/components/window/title-bar/TitleBar.svelte"; | |
| import Workspace from "@graphite/components/window/workspace/Workspace.svelte"; | |
| let platform: ApplicationPlatform = "Web"; | |
| let maximized: true; | |
| </script> | |
| <LayoutCol class="main-window"> | |
| <TitleBar {platform} {maximized} /> | |
| <Workspace /> | |
| <StatusBar /> | |
| </LayoutCol> | |
| <style lang="scss" global> | |
| .main-window { | |
| height: 100%; | |
| overflow: auto; | |
| touch-action: none; | |
| } | |
| </style> | |