mirror of
https://github.com/dream-pep/koring-launcher.git
synced 2026-09-12 05:45:18 +08:00
Implements Koring OIDC device-auth flow and integrates it into the app: core auth (TS/JS), IPC handlers, renderer API, KoringLogin React component, and a zustand koringAuth store. Handlers support device-code request, polling, refresh, get-user and logout and persist user info to existing auth/config. Also refactors many settings pages to use shared Setting components (SettingCard, SettingRow, SectionTitle, PageHeader) and replaces custom controls with @heroui/react primitives (Avatar, Button, Switch, RadioGroup, Slider, Input, TextArea, EmptyState). Adds OOBE login/welcome pages, a setting login route, installer header generator script, and a sample koring-auth.json for development.
16 lines
534 B
TypeScript
16 lines
534 B
TypeScript
import { EmptyState } from "@heroui/react";
|
|
import { Globe } from "lucide-react";
|
|
import { PageHeader } from "@/components/setting";
|
|
|
|
export function EtherOnlineSetting() {
|
|
return (
|
|
<div>
|
|
<PageHeader title="以太联机" desc="配置以太联机服务,实现多人局域网或远程联机" />
|
|
<EmptyState className="py-16">
|
|
<Globe className="w-10 h-10 text-muted-foreground/30" />
|
|
<p className="text-sm text-muted-foreground mt-3">该功能正在开发中</p>
|
|
</EmptyState>
|
|
</div>
|
|
);
|
|
}
|