CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s
补齐普通用户自助账号、中文设置与快捷键提示,修复大型扩展安装和移动端弹窗,并按服务器能力限制不兼容扩展。 Co-Authored-By: Codex <noreply@anthropic.com>
29 lines
565 B
Markdown
29 lines
565 B
Markdown
---
|
|
description: Implements the infrastructure for reading and writing to URIs
|
|
tags: meta
|
|
---
|
|
|
|
# Implementation
|
|
```space-lua
|
|
-- priority: 10
|
|
-- Virtual page (uri:URI)
|
|
virtualPage.define {
|
|
pattern = "uri:.+",
|
|
run = function(path)
|
|
local uri = path:sub(#"uri:"+1)
|
|
return net.readURI(uri .. ".md", {encoding="text/markdown"})
|
|
end
|
|
}
|
|
|
|
service.define {
|
|
selector = "net.readURI:https:*",
|
|
match = {},
|
|
run = function(data)
|
|
return net.proxyFetch(data.uri, {
|
|
responseEncoding = data.encoding,
|
|
timeout = data.timeout,
|
|
}).body
|
|
end
|
|
}
|
|
```
|