Sync OneOS workspace with new prototypes, annotations, and Gitea remote fix.

Add vehicle-h2-fee-ledger, customer-management, lease and self-operated ledgers, annotation sources, agent skills, and vite annotation runtime support. Update vehicle management, contract templates, and lease contract flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
王冕
2026-06-30 15:27:23 +08:00
parent 00ca1846af
commit af29b26fe8
309 changed files with 73875 additions and 3838 deletions

View File

@@ -87,7 +87,7 @@
</head>
<body>
<main>
<p>可以通过 npx @axhub/make 启动管理页面。</p>
<p>可以通过 npx -y @axhub/make@latest 启动管理页面。</p>
<div class="actions">
<button id="start-button" type="button" hidden>启动管理服务</button>
</div>
@@ -106,6 +106,9 @@
}
function redirectWhenReady(payload) {
if (!shouldRedirectToAdmin()) {
return false;
}
if (payload && payload.ready && payload.adminUrl) {
location.replace(payload.adminUrl);
return true;
@@ -113,6 +116,11 @@
return false;
}
function shouldRedirectToAdmin() {
var pathname = window.location.pathname;
return pathname === '/' || pathname === '/index.html';
}
function showStartButton() {
if (startButton) {
startButton.hidden = false;
@@ -152,7 +160,7 @@
}
startButton.disabled = true;
startButton.textContent = '启动中...';
setStatus('正在执行 npx @axhub/make...');
setStatus('正在执行 npx -y @axhub/make@latest...');
try {
var response = await fetch('/__axhub/make-server/start', { method: 'POST', headers: { accept: 'application/json' } });
var payload = await response.json();
@@ -170,6 +178,10 @@
if (startButton) {
startButton.addEventListener('click', startServer);
}
if (!shouldRedirectToAdmin()) {
setStatus('当前路径不是管理入口。');
return;
}
checkStatus();
}());
</script>