Install scene: fix cmd-bar overlap, swap install command

The "CLICK TO COPY" hint was absolute-positioned at top:10/right:14 of
the cmd-box, landing on top of "~/facere — bash" in the bar header.
Move the hint into the bar as a flex sibling so the title and hint
share the row cleanly without overlap.

Replace the placeholder install command with the real installer pulled
from raw.githubusercontent.com, with FACERE_GH_TOKEN as a
"contact us for demo" placeholder.

Also fix deploy/build.sh: `npm init -y` rejects the leading-dot dir
name `.build`, and the preset must be resolved by absolute path since
babel runs from the repo root.
This commit is contained in:
2026-05-08 00:45:21 +08:00
parent d0e6322f9e
commit ea85a01edf
5 changed files with 33 additions and 29 deletions

10
app.js
View File

@@ -466,7 +466,7 @@ function InstallSection({
contentRef
}) {
const [copied, setCopied] = useState(false);
const cmd = "curl -fsSL https://facere.ai/install.sh | sh";
const cmd = `curl -fsSL https://raw.githubusercontent.com/ZhaoYiping789/facere-installer/main/bootstrap.sh | FACERE_GH_TOKEN="contact us for demo"`;
const copy = async () => {
try {
await navigator.clipboard.writeText(cmd);
@@ -515,7 +515,9 @@ function InstallSection({
className: "cmd-led led-cyan"
}), /*#__PURE__*/React.createElement("span", {
className: "cmd-title"
}, "~/facere \u2014 bash")), /*#__PURE__*/React.createElement("div", {
}, "~/facere \u2014 bash"), /*#__PURE__*/React.createElement("span", {
className: "cmd-bar-hint"
}, copied ? "✓ COPIED" : "CLICK TO COPY")), /*#__PURE__*/React.createElement("div", {
className: "cmd-body"
}, /*#__PURE__*/React.createElement("span", {
className: "cmd-prompt"
@@ -523,9 +525,7 @@ function InstallSection({
className: "cmd-text"
}, cmd), /*#__PURE__*/React.createElement("span", {
className: "cmd-cursor"
})), /*#__PURE__*/React.createElement("div", {
className: "cmd-hint"
}, copied ? "✓ COPIED" : "CLICK TO COPY")), /*#__PURE__*/React.createElement("a", {
}))), /*#__PURE__*/React.createElement("a", {
className: "docs-link",
href: "#",
onClick: e => e.preventDefault()