chore: drop design-doc citations from code comments (English-only sweep) (#236)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0cc0bd1a1a
commit
169c7d5006
16 files changed
+21
-26
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# electron-builder config (design § "桌面端原型 · 打包与更新", milestone M3).
|
||||
# electron-builder config for the desktop shell installers.
|
||||
#
|
||||
# The app directory is the pnpm-deploy staging tree assembled by scripts/stage.mjs —
|
||||
# a portable, self-contained node_modules (workspace packages materialized) plus the
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Desktop shell main process (design § "桌面端原型").
|
||||
* Desktop shell main process.
|
||||
*
|
||||
* One window over the embedded server: fork penguin-server as a utilityProcess on the
|
||||
* shared data root (PENGUIN_HOME or ~/.penguin/data), learn its port (last launch's when
|
||||
|
||||
@@ -13,8 +13,7 @@ export function parsePortFile(content: string): number | null {
|
||||
|
||||
/**
|
||||
* The App origin for a port. Always `localhost`: on loopback the App is canonicalized
|
||||
* onto localhost and `127.0.0.1` is reserved as the preview host, which rejects /api
|
||||
* (see design § "桌面端原型 · 进程模型").
|
||||
* onto localhost and `127.0.0.1` is reserved as the preview host, which rejects /api.
|
||||
*/
|
||||
export function appOriginFor(port: number): string {
|
||||
return `http://localhost:${port}`;
|
||||
@@ -41,9 +40,9 @@ export function isAppUrl(url: string, origin: string | null): boolean {
|
||||
|
||||
/**
|
||||
* Whether a URL belongs to this instance's local surface: the app origin itself or its
|
||||
* loopback counterpart on the same port, which is where Workspace previews are served
|
||||
* (see design § "Workspace 文件预览"). Preview windows navigate freely within it; anything
|
||||
* else is external and belongs in the system browser.
|
||||
* loopback counterpart on the same port, which is where Workspace previews are served.
|
||||
* Preview windows navigate freely within it; anything else is external and belongs in
|
||||
* the system browser.
|
||||
*/
|
||||
export function isLocalSurfaceUrl(url: string, origin: string | null): boolean {
|
||||
if (origin === null) return false;
|
||||
|
||||
Reference in new issue
Block a user