mirror of
https://github.com/dream-pep/koring-launcher.git
synced 2026-09-12 05:45:18 +08:00
Route Minecraft/Fabric/Forge downloads through BMCLAPI mirror and update installer logic. Added mirror rewrite utility (rewriteToMirror), mirror-aware downloadFile, and mirrorFetch; switched version manifest and metadata endpoints to bmclapi2.bangbang93.com and wired maven/assets hosts into xmcl/installer calls. Cleaned up compiled electron JS files and consolidated runtime files under electron-dist; updated electron-builder.yml (compression, asar, NSIS settings, license/installer assets and languages). Minor env/path changes (VITE_APP_ICON paths), added .npmrc (electron_mirror), new Koring.yml, pnpm-workspace and public installer assets. Also added/updated multiple frontend pages, store components, and TypeScript handlers to integrate the changes.
66 lines
2.7 KiB
TypeScript
66 lines
2.7 KiB
TypeScript
// __ __ __ __ ______ __ __ ______ __ __ ______ ______
|
|
// /\ \ /\ \ /\ "-.\ \ /\ ___\ /\ \/ / /\ ___\ /\ "-.\ \ /\ ___\ /\__ _\
|
|
// \ \ \____ \ \ \ \ \ \-. \ \ \ \__ \ \ \ _"-. \ \ __\ \ \ \-. \ \ \ __\ \/_/\ \/
|
|
// \ \_____\ \ \_\ \ \_\\"\_\ \ \_____\ \ \_\ \_\ \ \_____\ \ \_\\"\_\ \ \_____\ \ \_\
|
|
// \/_____/ \/_/ \/_/ \/_/ \/_____/ \/_/\/_/ \/_____/ \/_/ \/_/ \/_____/ \/_/
|
|
//
|
|
// 所有权利归Lingke Network (china)所有 | dream_pep拥有其艺术改变权力
|
|
// 未经允许的情况下删除此版权头可能会受到民事指控
|
|
// 请勿在未经Lingke Network (china)允许的范围内修改代码并分发
|
|
|
|
import { useRouteStore } from "@/stores/routeStore";
|
|
import { OobeLayout } from "./layout";
|
|
import { NextButton } from "./next-button";
|
|
|
|
const LEGAL_ITEMS = [
|
|
{
|
|
label: "匿名数据收集",
|
|
desc: "您在使用本产品时,可能会收集匿名数据,用于改进产品功能和用户体验。包括崩溃日志、崩溃操作路径与设备状态等脱敏信息。并上传至 Lenjing.Cloud 服务器。",
|
|
},
|
|
{
|
|
label: "隐私声明与个人信息保护策略",
|
|
desc: "本产品在现有版本下暂未进行收集任何隐私信息与个人信息。",
|
|
},
|
|
{
|
|
label: "其他信息",
|
|
desc: "Copyright © 深圳棱镜视界科技有限公司。\n违法违规行为举报信箱:support@lenjing.email",
|
|
},
|
|
{
|
|
label: "如果不愿意遵守或者同意以上法律声明",
|
|
desc: "请退出关闭,并卸载本产品。",
|
|
},
|
|
];
|
|
|
|
export function OobeLegal() {
|
|
const navigate = useRouteStore((s) => s.navigate);
|
|
|
|
return (
|
|
<OobeLayout>
|
|
<div className="w-full max-w-lg flex flex-col items-center gap-5 px-6">
|
|
{/* 标题 */}
|
|
<div className="text-center space-y-1">
|
|
<h2 className="text-lg font-bold text-foreground">法律信息</h2>
|
|
<p className="text-xs text-muted-foreground">请阅读以下法律声明</p>
|
|
</div>
|
|
|
|
{/* 法律信息列表 */}
|
|
<div className="w-full space-y-2">
|
|
{LEGAL_ITEMS.map((item) => (
|
|
<div
|
|
key={item.label}
|
|
className="w-full px-4 py-3 rounded-xl bg-foreground/[0.03] border border-border/40 dark:border-white/[0.06]"
|
|
>
|
|
<p className="text-[13.5px] font-medium text-foreground">{item.label}</p>
|
|
<p className="text-[11.5px] text-muted-foreground/70 mt-1 leading-relaxed whitespace-pre-line">
|
|
{item.desc}
|
|
</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
|
|
<NextButton onClick={() => navigate("oobe/welcome")} />
|
|
</OobeLayout>
|
|
);
|
|
}
|