Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### 新增

- Organization OS 首页双循环:FreeOS 数据面与 openXYOS 控制面的实时状态、一键装配员工 / 打包回流 / 运行 org loop,以及边车离线时的启动恢复。
- FreeOS 官网源码:`website/`(Vite + React 静态站,正式域名 https://freeos.cnxy.tech)。视觉与章节节奏对齐 XYAI Labs(天蓝→亮光、毛玻璃、01/02/…、底座 / 系统 / 生态),文案仍是 FreeOS 产品自己的话;圆形标志 + XYAI 机器人六姿态,无 Octop 红或章鱼形象。构建产物可整包上传到 `/www/wwwroot/freeos.cnxy.tech`。

### 变更

Expand Down
4 changes: 4 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
*.tsbuildinfo
.DS_Store
83 changes: 83 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# FreeOS 官网

正式地址:[https://freeos.cnxy.tech](https://freeos.cnxy.tech)

本目录是 [FreeOS](https://github.com/XYAIStudio/FreeOS) 的营销站点源码:Vite + React + TypeScript,`npm run build` 产出可直接当网站根目录的静态文件。

品牌:天蓝 → 亮光渐变、毛玻璃卡片、XYAI 蓝 `#0033FF` 点缀、圆形勾玉标志、XYAI 机器人六姿态。章节节奏对齐 [XYAI Labs](https://cnxy.ai/)(编号、中文大标题、底座 / 系统 / 生态),文案仍是 FreeOS 自己的产品故事,不声称本站是 XYOS Labs。不使用 Octop 红字标或章鱼形象。

## 本地预览

需要 Node.js 20+。

```bash
cd website
npm install
npm run dev
```

浏览器打开终端打印的本地地址(默认 `http://127.0.0.1:5173`)。点 Hero 里的机器人可轮换姿态。中 / EN 写在 `localStorage` 的 `freeos-locale`。

```bash
npm run build # 产出 website/dist/,根上就是 index.html
npm run preview # 预览生产构建
```

## 构建产物

`npm run build` 写入 **`website/dist/`**,结构类似:

```
website/dist/
index.html
favicon.png
logo.png
og.png
robots.txt
mascot/*.webp
assets/index-*.js
assets/index-*.css
```

`vite.config.ts` 使用相对 `base: './'`,把 `dist/` **里面的文件**拷到站点根即可,不要多套一层 `dist` 目录。

本仓库根与 `website/` 都忽略 `dist/`,构建产物默认不提交。

## 上传到用户服务器(宝塔 / aaPanel)

父进程会把静态构建上传到已解析的域名根目录。

| 项 | 值 |
|---|---|
| 公网地址 | `https://freeos.cnxy.tech` |
| 服务器网站根 | `/www/wwwroot/freeos.cnxy.tech` |
| 上传内容 | `website/dist/` **内的全部文件**(含 `index.html`、`assets/`、`mascot/`、图片) |
| 结果 | `/www/wwwroot/freeos.cnxy.tech/index.html` 可被 Nginx/Apache 直接返回 |

操作顺序(在有 Node 的机器上构建,再到面板上传;**不要把 SSH 密码或主机凭据写进仓库**):

1. `cd website && npm ci && npm run build`
2. 在宝塔「网站 → freeos.cnxy.tech → 根目录」确认为 `/www/wwwroot/freeos.cnxy.tech`
3. 清空该目录里旧的站点文件(保留面板自己的配置,不要删服务器系统目录)
4. 将 `website/dist/` 下所有文件上传到 `/www/wwwroot/freeos.cnxy.tech/`
5. 浏览器打开 https://freeos.cnxy.tech 应看到首页,而不是目录列表

静态站点即可,不必配 Node 反代。若面板默认目录索引,把默认文档设为 `index.html`。

## GitHub Pages(可选,不是主发布路径)

主站是 `freeos.cnxy.tech`。若仍要 Pages,把同一份 `dist/` 交给 Actions 或 `gh-pages` 即可。

## 资源从哪来

| 文件 | 来源 |
|---|---|
| `public/logo.png`、`favicon.png`、`og.png` | 仓库圆形标志(灰环 / 黄绿红勾玉 / 蓝水滴) |
| `public/mascot/*.webp` | `dashboard/public/xyai-mascot-*.webp` 的副本 |

## 内容边界

- 产品事实以仓库 `README.md`、`docs/architecture-integration.md`、`docs/asset-loop.md` 为准。
- Windows 安装包指向 [v0.0.1 Release](https://github.com/XYAIStudio/FreeOS/releases/tag/v0.0.1)。
- 页脚按 `NOTICE` 致谢 Octop(MIT)与 openXYOS(Apache-2.0),不主张上游商标从属。
- 视觉节奏参考 XYAI Labs 公开站的章节编号与玻璃质感,文案仍是 FreeOS 产品自己的话。
38 changes: 38 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>FreeOS — 让个人智能伙伴长成可治理的组织系统</title>
<meta
name="description"
content="FreeOS 是自托管多智能体操作系统。数据面跑起来,控制面长起来,自生长闭环自己长出下一位同事。可验证、可交付,数据留在你的机器上。"
/>
<meta name="theme-color" content="#7dd3fc" />
<link rel="canonical" href="https://freeos.cnxy.tech/" />
<link rel="icon" type="image/png" href="./favicon.png" />
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://freeos.cnxy.tech/" />
<meta property="og:title" content="FreeOS — 让个人智能伙伴长成可治理的组织系统" />
<meta
property="og:description"
content="懂你、帮你、陪你成长的智能伙伴 × 人机共融组织操作系统"
/>
<meta property="og:image" content="https://freeos.cnxy.tech/og.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="FreeOS" />
<meta name="twitter:description" content="懂你、帮你、陪你成长的智能伙伴 × 人机共融组织操作系统" />
<meta name="twitter:image" content="https://freeos.cnxy.tech/og.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading