cicy-desktop 2.1.69 → 2.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/backends/homepage-react/assets/index-BpljolQs.js +365 -0
- package/src/backends/homepage-react/assets/{index-BniEbx_j.css → index-C9AZlTew.css} +1 -1
- package/src/backends/homepage-react/index.html +2 -2
- package/src/backends/local-teams.js +42 -4
- package/src/backends/sidecar-ipc.js +23 -1
- package/src/i18n/locales/en.json +9 -7
- package/src/i18n/locales/zh-CN.json +9 -7
- package/src/sidecar/cicy-code.js +54 -111
- package/src/sidecar/localbin.js +133 -0
- package/src/sidecar/native.js +4 -2
- package/src/sidecar/runtime.js +7 -3
- package/workers/render/src/App.css +156 -10
- package/workers/render/src/App.jsx +254 -39
- package/.env.dev +0 -7
- package/src/backends/homepage-react/assets/index-B8gGhz8B.js +0 -365
- package/workers/render.bak.20260528-2338/DESIGN_v2.md +0 -254
- package/workers/render.bak.20260528-2338/index.html +0 -12
- package/workers/render.bak.20260528-2338/package-lock.json +0 -827
- package/workers/render.bak.20260528-2338/package.json +0 -19
- package/workers/render.bak.20260528-2338/public/_headers +0 -5
- package/workers/render.bak.20260528-2338/public/manifest.json +0 -6
- package/workers/render.bak.20260528-2338/src/App.css +0 -224
- package/workers/render.bak.20260528-2338/src/App.jsx +0 -1028
- package/workers/render.bak.20260528-2338/src/api.js +0 -285
- package/workers/render.bak.20260528-2338/src/cicycode-ops.js +0 -222
- package/workers/render.bak.20260528-2338/src/components/BackendCard.css +0 -299
- package/workers/render.bak.20260528-2338/src/components/BackendCard.jsx +0 -133
- package/workers/render.bak.20260528-2338/src/components/BackendModal.css +0 -161
- package/workers/render.bak.20260528-2338/src/components/BackendModal.jsx +0 -199
- package/workers/render.bak.20260528-2338/src/components/Button.css +0 -72
- package/workers/render.bak.20260528-2338/src/components/Button.jsx +0 -37
- package/workers/render.bak.20260528-2338/src/components/Card.css +0 -42
- package/workers/render.bak.20260528-2338/src/components/Card.jsx +0 -21
- package/workers/render.bak.20260528-2338/src/components/Icon.jsx +0 -30
- package/workers/render.bak.20260528-2338/src/components/Menu.css +0 -55
- package/workers/render.bak.20260528-2338/src/components/Menu.jsx +0 -91
- package/workers/render.bak.20260528-2338/src/components/SidecarBanner.css +0 -79
- package/workers/render.bak.20260528-2338/src/components/SidecarBanner.jsx +0 -84
- package/workers/render.bak.20260528-2338/src/components/StatusChip.css +0 -19
- package/workers/render.bak.20260528-2338/src/components/StatusChip.jsx +0 -31
- package/workers/render.bak.20260528-2338/src/components/Toast.css +0 -31
- package/workers/render.bak.20260528-2338/src/components/Toast.jsx +0 -23
- package/workers/render.bak.20260528-2338/src/components/WslSetupBanner.css +0 -464
- package/workers/render.bak.20260528-2338/src/components/WslSetupBanner.jsx +0 -716
- package/workers/render.bak.20260528-2338/src/dockerInstaller.js +0 -0
- package/workers/render.bak.20260528-2338/src/i18n/en.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/fr.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/index.js +0 -69
- package/workers/render.bak.20260528-2338/src/i18n/ja.json +0 -116
- package/workers/render.bak.20260528-2338/src/i18n/zh-CN.json +0 -121
- package/workers/render.bak.20260528-2338/src/main.js +0 -475
- package/workers/render.bak.20260528-2338/src/main.jsx +0 -18
- package/workers/render.bak.20260528-2338/src/style.css +0 -275
- package/workers/render.bak.20260528-2338/src/styles/base.css +0 -98
- package/workers/render.bak.20260528-2338/src/styles/tokens.css +0 -90
- package/workers/render.bak.20260528-2338/src/tos.js +0 -72
- package/workers/render.bak.20260528-2338/src/worker.js +0 -40
- package/workers/render.bak.20260528-2338/src/wslInstaller.js +0 -1563
- package/workers/render.bak.20260528-2338/vite.config.js +0 -36
- package/workers/render.bak.20260528-2338/wrangler.toml +0 -17
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import { execSync } from "node:child_process";
|
|
4
|
-
|
|
5
|
-
// Build-time stamps so the running SPA can prove which deploy it is.
|
|
6
|
-
// __WORKER_BUILD_TIME__ — ISO date of the build (UTC, second precision).
|
|
7
|
-
// __WORKER_GIT_SHA__ — short git rev of the current HEAD, "local" if not in a repo.
|
|
8
|
-
const buildTime = new Date().toISOString().replace(/\..*/, "Z");
|
|
9
|
-
let gitSha = "local";
|
|
10
|
-
try {
|
|
11
|
-
gitSha = execSync("git rev-parse --short HEAD", { stdio: ["ignore", "pipe", "ignore"] })
|
|
12
|
-
.toString().trim() || "local";
|
|
13
|
-
} catch {}
|
|
14
|
-
|
|
15
|
-
// Dev server intentionally binds 0.0.0.0 so Electron (or any other host
|
|
16
|
-
// on the LAN / via cf-tunnel) can load the page.
|
|
17
|
-
export default defineConfig({
|
|
18
|
-
plugins: [react()],
|
|
19
|
-
define: {
|
|
20
|
-
__WORKER_BUILD_TIME__: JSON.stringify(buildTime),
|
|
21
|
-
__WORKER_GIT_SHA__: JSON.stringify(gitSha),
|
|
22
|
-
},
|
|
23
|
-
// Relative asset paths so the production build works under file://
|
|
24
|
-
// when copied into cicy-desktop/src/backends/homepage-react/.
|
|
25
|
-
base: "./",
|
|
26
|
-
server: {
|
|
27
|
-
host: "0.0.0.0",
|
|
28
|
-
port: 8173,
|
|
29
|
-
strictPort: true,
|
|
30
|
-
allowedHosts: true,
|
|
31
|
-
},
|
|
32
|
-
build: {
|
|
33
|
-
outDir: "dist",
|
|
34
|
-
emptyOutDir: true,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name = "desktop-render"
|
|
2
|
-
compatibility_date = "2025-01-01"
|
|
3
|
-
main = "src/worker.js"
|
|
4
|
-
|
|
5
|
-
# Custom domain — bind desktop.cicy-ai.com to this Worker.
|
|
6
|
-
# DNS for desktop.cicy-ai.com is managed automatically by Workers Custom Domains.
|
|
7
|
-
routes = [
|
|
8
|
-
{ pattern = "desktop.cicy-ai.com", custom_domain = true }
|
|
9
|
-
]
|
|
10
|
-
|
|
11
|
-
# Static SPA hosting via the Workers Assets binding. The Vite build output
|
|
12
|
-
# lives in ./dist; Workers serves index.html for navigation requests
|
|
13
|
-
# (single-page-app mode) so client-side routes resolve.
|
|
14
|
-
[assets]
|
|
15
|
-
directory = "./dist"
|
|
16
|
-
not_found_handling = "single-page-application"
|
|
17
|
-
binding = "ASSETS"
|