Unverified Commit 9d137879 authored by Lemon-miaow's avatar Lemon-miaow
Browse files

refactor(panel): dashboard

parent b81b3345
Loading
Loading
Loading
Loading
+7 −2
Changes for panel/src/components/VoxelFleet.tsx: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -34,8 +34,13 @@ export function VoxelFleet({ servers }: Props) {

    const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
    renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
    mount.appendChild(renderer.domElement);
    renderer.domElement.style.position = "absolute";
    renderer.domElement.style.top = "0";
    renderer.domElement.style.left = "0";
    renderer.domElement.style.width = "100%";
    renderer.domElement.style.height = "100%";
    renderer.domElement.style.display = "block";
    mount.appendChild(renderer.domElement);

    scene.add(new THREE.AmbientLight(0xffffff, 0.55));
    const key = new THREE.DirectionalLight(0xffffff, 1.1);
@@ -157,7 +162,7 @@ export function VoxelFleet({ servers }: Props) {
    };
  }, []);

  return <div ref={mountRef} className="h-full w-full" />;
  return <div ref={mountRef} className="h-full w-full relative" />;
}

/** sig is a cheap fingerprint of the fleet's renderable shape (order-independent
+32 −1
Changes for panel/src/i18n/resources/en-US/dashboard.json: 32 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -10,5 +10,36 @@
  "fleet": "Fleet",
  "manage": "Manage",
  "loading_scene": "Loading scene…",
  "preparing_scene": "Preparing scene…"
  "preparing_scene": "Preparing scene…",
  "fleet_load": "Fleet Load & Health",
  "active_load": "Player Load Rate",
  "status_distribution": "Node Status Distribution",
  "account_status": "Account Status",
  "account_linked_title": "Account Linked",
  "account_linked_desc": "Your identity is bound to a Minecraft UUID. You have full server ownership and wake permissions.",
  "account_unlinked_title": "Account Unlinked",
  "account_unlinked_desc": "You must link a Minecraft character to claim or operate servers. Go to Account to bind now.",
  "go_link": "Bind Now",
  "system_specs": "Specs & Metrics",
  "spec_images_total": "Whitelisted Images",
  "spec_images_built": "Built Locally",
  "spec_images_external": "External Whitelisted",
  "spec_servers_total": "Total Servers",
  "spec_servers_owned": "Owned Servers",
  "spec_servers_claimable": "Claimable Servers",
  "spec_running_ratio": "Running Rate",
  "spec_stopped_ratio": "Sleeping Rate",
  "spec_failed_ratio": "Failed Rate",
  "no_servers_monitor": "No active instances in the cluster",
  "images_count": "Whitelisted backend images available",
  "legend_title": "3D Node Monitor Legend",
  "legend_running": "Running",
  "legend_starting": "Starting",
  "legend_stopping": "Stopping",
  "legend_stopped": "Sleeping",
  "legend_failed": "Failed",
  "legend_unknown": "Unknown",
  "welcome_title": "Welcome to Felis Lolicon",
  "welcome_desc": "You have logged into the User Dashboard. Go to 'My Servers' to view and claim nodes allocated to you, or manage their sleep, wake, and console logs.",
  "go_to_servers_btn": "Manage My Servers"
}
+32 −1
Changes for panel/src/i18n/resources/zh-CN/dashboard.json: 32 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -10,5 +10,36 @@
  "fleet": "服务器概览",
  "manage": "管理",
  "loading_scene": "正在加载 3D 场景…",
  "preparing_scene": "正在准备场景…"
  "preparing_scene": "正在准备场景…",
  "fleet_load": "负载与健康度",
  "active_load": "玩家在线负载",
  "status_distribution": "节点状态分布",
  "account_status": "账号绑定状态",
  "account_linked_title": "已关联游戏身份",
  "account_linked_desc": "您的 Web 身份已成功绑定至 Minecraft 角色。拥有完整的所有权认领及启动权限。",
  "account_unlinked_title": "未关联游戏角色",
  "account_unlinked_desc": "您需要关联 Minecraft 角色才能认领或操作服务器。请立即前往个人中心绑定。",
  "go_link": "前往绑定",
  "system_specs": "系统实例与镜像指标",
  "spec_images_total": "支持镜像总数",
  "spec_images_built": "集群自建镜像",
  "spec_images_external": "外部登记镜像",
  "spec_servers_total": "可见服务器总数",
  "spec_servers_owned": "我拥有的服务器",
  "spec_servers_claimable": "公网可认领服",
  "spec_running_ratio": "节点运行率",
  "spec_stopped_ratio": "节点休眠率",
  "spec_failed_ratio": "节点故障率",
  "no_servers_monitor": "当前集群暂无服务器实例",
  "images_count": "个支持的白名单镜像环境",
  "legend_title": "3D 节点监控图例",
  "legend_running": "运行中",
  "legend_starting": "启动中",
  "legend_stopping": "停止中",
  "legend_stopped": "已休眠",
  "legend_failed": "异常失败",
  "legend_unknown": "未知状态",
  "welcome_title": "欢迎使用 Felis 编排平台",
  "welcome_desc": "您已成功登录用户控制台。您可以在「我的服务器」页面查看并认领分配给您的专属节点,或者对其进行休眠、唤醒和控制台日志监控。",
  "go_to_servers_btn": "操作我的服务器"
}
+420 −36

File changed.

Preview size limit exceeded, changes collapsed.