Restructure: move Vite project into app/, deploy build output to repo root

The webserver serves the repo checkout directly as static files, so
index.html at the repo root must be the production build (pointing at
hashed /assets/*.js) rather than the dev template (/src/main.tsx),
which was being served with an unrecognized application/octet-stream
MIME type and blocked by the browser.

- Move src/, public/, scripts/, server/, package.json, vite.config.ts,
  tsconfig.json, .env(.example), and the dev index.html into app/.
- Add app/scripts/deploy.mjs: copies app/dist/* into the repo root
  after every `vite build`, cleaning up stale hashed filenames.
- Wire it into `npm run build` (app/package.json).
- Update run.sh to operate from app/, and .gitignore for the new layout.
- Commit the current build output (index.html, assets/, manifest,
  sw.js, workbox-*.js, favicon.svg, icons/, LICENSE) to the repo root.
- Update README with the new project layout and deployment model.
This commit is contained in:
oliver committed 2026-11-04 14:05:46 -03:00
1 parent 5245c0a856
commit c7b653ff6a
54 files changed
+224 -34

No files matched your search

+1
View File
@@ -0,0 +1 @@
:root{--bg: #000810;--bg-elev: #010f20;--bg-elev2: #001a30;--bg-hover: #001a30;--border: #0a3060;--border-soft: #072348;--text: #c8f0ff;--text-dim: #6aa8bf;--text-faint: #2e6a80;--accent: #00f5ff;--accent-soft: rgba(0, 245, 255, .12);--accent-strong: #00c8d4;--accent-contrast: #001018;--danger: #ff3b3b;--danger-soft: rgba(255, 59, 59, .14);--ok: #00ff88;--warn: #ffaa00;--radius: 10px;--radius-sm: 8px;--sidebar-w: 304px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}input,textarea,select{font-family:inherit;font-size:15px;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;outline:none;width:100%}input:focus,textarea:focus,select:focus{border-color:var(--accent)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#0a3060;border-radius:8px;border:2px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background:#0f4a6e;background-clip:padding-box}.app{display:flex;height:100dvh;overflow:hidden}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--bg-elev);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}.scrim{display:none}@media (max-width: 820px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;transform:translate(-100%);transition:transform .22s ease;box-shadow:0 0 40px #00000080;padding-top:env(safe-area-inset-top)}.sidebar.open{transform:translate(0)}.scrim.show{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:30}}.sidebar-head{padding:14px 14px 10px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--border-soft)}.brand{display:flex;align-items:center;gap:9px;font-weight:650;letter-spacing:.2px}.brand-mark{width:26px;height:26px;border-radius:7px;background:linear-gradient(180deg,#003545,#00202e);border:1px solid #005570;display:grid;place-items:center;color:var(--accent);font-weight:800;font-size:14px}.brand-link{display:inline-flex;align-items:center;text-decoration:none;border-radius:8px;padding:2px 4px;margin-left:-4px}.brand-link:hover{background:var(--bg-hover)}.brand-actions{margin-left:auto;display:flex;gap:4px}.icon-btn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--text-dim);transition:background .15s,color .15s}.icon-btn:hover{background:var(--bg-hover);color:var(--text)}.icon-btn.active{color:var(--accent);background:var(--accent-soft)}.profile-switch{position:relative}.profile-btn{width:100%;display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:var(--radius-sm);background:var(--bg-elev2);border:1px solid var(--border);text-align:left}.profile-btn:hover{border-color:#2f3b4d}.profile-btn .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex-shrink:0}.profile-btn .name{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-btn .sub{font-size:11px;color:var(--text-faint);margin-left:auto;flex-shrink:0}.menu{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--bg-elev2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:5px;z-index:20;box-shadow:0 12px 30px #00000073;max-height:320px;overflow:auto}.menu-item{width:100%;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:7px;font-size:14px;text-align:left}.menu-item:hover{background:var(--bg-hover)}.menu-item .check{margin-left:auto;color:var(--accent)}.new-chat{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-contrast);font-weight:700;font-size:14px}.new-chat:hover{background:var(--accent-strong)}.search-wrap{position:relative}.search-wrap svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-faint);pointer-events:none}.search-wrap input{padding-left:34px;background:var(--bg)}.sidebar-tools{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:12px;color:var(--text-dim);border-bottom:1px solid var(--border-soft)}.toggle{display:inline-flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle input{width:auto;accent-color:var(--accent)}.session-list{flex:1;overflow-y:auto;padding:8px;min-height:0}.group-label{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--text-faint);padding:12px 8px 6px;font-weight:600}.session-item{dispLine truncated