refactor!: rename the project from Monitor to MoShiro

Namespaces, assemblies, projects and directories, the solution, binaries,
images, systemd units, config paths, environment variables, protocol method
names, the media type and the raw chunk magic all move to MoShiro/moshiro.
Existing data and deployments are not compatible and must be recreated.
Also fix the architecture tests after the solution layout change and make
the update tests independent of their order.
This commit is contained in:
justme committed 2026-10-07 01:49:04 +08:00
1 parent 17b35223aa
commit 83e5120377
309 files changed
+1505 -1499

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MyMonitor · 管理</title>
<title>MoShiro · 管理</title>
</head>
<body>
<div id="root"></div>
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "monitor-admin",
"name": "moshiro-admin",
"private": true,
"version": "0.1.0",
"type": "module",
+2 -2
View File
@@ -54,7 +54,7 @@ function Login() {
<form className="card login-split" onSubmit={submit}>
<aside className="login-side">
<div>
<h1>MyMonitor</h1>
<h1>MoShiro</h1>
<p className="muted">管理端</p>
</div>
<div className="src-list" role="listbox" aria-label="后端">
@@ -132,7 +132,7 @@ export function App() {
<div className="shell">
<aside className="side">
<a className="brand" href="/">
MyMonitor
MoShiro
</a>
{NAV.map((group) => (
<div key={group.section} style={{ display: 'contents' }}>
+1 -1
View File
@@ -48,7 +48,7 @@ function AddAgentDialog({ onClose, onCreated }: { onClose: () => void; onCreated
<div className="notice warn">令牌明文只显示这一次,请现在就复制。</div>
<Field label="在要加入的机器上运行">
<CommandTabs
storageKey="monitor.install_tab"
storageKey="moshiro.install_tab"
initial={guessPlatform()}
tabs={[
{ id: 'linux', label: 'Linux', command: created.install_commands.linux },
+2 -2
View File
@@ -107,8 +107,8 @@ function IdentityDialog({ identity, title, onClose }: { identity: ProbeIdentityD
</button>
<CopyButton text={json} label="复制内容" />
</div>
<Field label="在家宽机器上" hint="保存为 /etc/monitor/probe.json,然后启动 Probe;它会连接 probe.json 里的面板地址,Agent 列表和更新都由面板下发。">
<pre className="code">{`monitor-probe --config /etc/monitor/probe.json`}</pre>
<Field label="在家宽机器上" hint="保存为 /etc/moshiro/probe.json,然后启动 Probe;它会连接 probe.json 里的面板地址,Agent 列表和更新都由面板下发。">
<pre className="code">{`moshiro-probe --config /etc/moshiro/probe.json`}</pre>
</Field>
<details>
<summary className="muted" style={{ cursor: 'pointer' }}>