logiguard fork v2: patched GPUI on verified 8c74db0 tree
Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch: - serial.rs: add SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; add latest_serial_of() - window.rs: activate() uses keyboard-enter serial (Mutter focus gate) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
export default {
|
||||
async fetch(request, _env, _ctx) {
|
||||
const url = new URL(request.url);
|
||||
|
||||
if (url.pathname === "/docs/nightly") {
|
||||
url.hostname = "docs-nightly.pages.dev";
|
||||
url.pathname = "/docs/";
|
||||
} else if (url.pathname.startsWith("/docs/nightly/")) {
|
||||
url.hostname = "docs-nightly.pages.dev";
|
||||
url.pathname = url.pathname.replace("/docs/nightly/", "/docs/");
|
||||
} else if (url.pathname === "/docs/preview") {
|
||||
url.hostname = "docs-preview-5xd.pages.dev";
|
||||
url.pathname = "/docs/";
|
||||
} else if (url.pathname.startsWith("/docs/preview/")) {
|
||||
url.hostname = "docs-preview-5xd.pages.dev";
|
||||
url.pathname = url.pathname.replace("/docs/preview/", "/docs/");
|
||||
} else {
|
||||
url.hostname = "docs-anw.pages.dev";
|
||||
}
|
||||
|
||||
let res = await fetch(url, request);
|
||||
|
||||
if (res.status === 404) {
|
||||
res = await fetch("https://zed.dev/404");
|
||||
}
|
||||
|
||||
return res;
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
name = "docs-proxy"
|
||||
main = "src/worker.js"
|
||||
compatibility_date = "2024-05-03"
|
||||
workers_dev = true
|
||||
|
||||
[[routes]]
|
||||
pattern = "zed.dev/docs*"
|
||||
zone_name = "zed.dev"
|
||||
Reference in New Issue
Block a user