Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持伺服代码片段 /snippets/ #6356

Closed
88250 opened this issue Oct 26, 2022 · 1 comment
Closed

支持伺服代码片段 /snippets/ #6356

88250 opened this issue Oct 26, 2022 · 1 comment
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Oct 26, 2022

    @88250 能不能将 `data/snippets` 目录也建立静态 Web 文件服务, 这样就可以在 `conf.json` 中通过 `@import url('/snippets/foo.css');` 与 `import('/snippets/bar.js');` 引用了, 不然想要同步的话只能另辟蹊径放在 `data/widgets` 或 `data/emojis` 目录了

Originally posted by @Zuoqiu-Yingyi in #6143 (comment)

@88250 88250 self-assigned this Oct 26, 2022
@88250 88250 added this to the 2.4.6 milestone Oct 26, 2022
@88250 88250 closed this as completed Oct 26, 2022
@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Oct 27, 2022

@88250 我认为如果未在 conf.json 中匹配到请求的内容, 应返回对应的文件, 比如请求 /snippets/test.js 文件

  • 如果 conf.json 存在 "name": "test", "type": "js" 的片段, 返回该片段 content 字段值
  • 如果 conf.json 没有匹配的片段, 则返回 data/snippets/ 目录下的 test.js 文件

Zuoqiu-Yingyi added a commit to Zuoqiu-Yingyi/siyuan that referenced this issue Oct 27, 2022
88250 pushed a commit that referenced this issue Oct 28, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356
88250 pushed a commit that referenced this issue Oct 28, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项
88250 pushed a commit that referenced this issue Oct 29, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项

* 🎨 鉴权支持 IPv6 本机回环地址
88250 pushed a commit that referenced this issue Oct 30, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项

* 🎨 鉴权支持 IPv6 本机回环地址

* 🎨 支持 HEVC 编码视频播放
88250 pushed a commit that referenced this issue Oct 31, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项

* 🎨 鉴权支持 IPv6 本机回环地址

* 🎨 支持 HEVC 编码视频播放

* 🎨 保存 `data/storage/local.json` 时格式化
Vanessa219 pushed a commit that referenced this issue Nov 3, 2022
* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项

* 🎨 鉴权支持 IPv6 本机回环地址

* 🎨 支持 HEVC 编码视频播放

* 🎨 保存 `data/storage/local.json` 时格式化

* 🎨 行内元素的下划线颜色设置为继承元素前景颜色
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants