Skip to content

v1.5.0

Choose a tag to compare

@ShanHaiFish ShanHaiFish released this 15 Aug 16:43
· 3 commits to master since this release

左侧文件浏览器 (fexp) v1.5.0 — 静态 bundle 自动加载

本次变更

  • 静态 bundle 化:新增 package.jsondsh.bundle.patch + dsh.client.platform: "web")、cordis.patch.ymllib/index.js(Host 半区:经 webServer/fexp/default-root/fexp/list-dir/fexp/read-file 三个 JSON 路由)、client/client.js(Client 半区:window.__ModuleLoader__.load 注册,host.call → fetch 同源路由,styles.insert → 自建 <style> 标签)。
  • 自动加载:随 profile 层栈启动即生效,无需每次重启 DSH 后手动 cordis_define/cordis_run
  • 安装dsh plugin --profile web add fexp-file-explorer(本地未发布用 file: 路径,注意路径不能含空格)。
  • host-source.js / client-source.js 保留为动态插件回退形态(无 bundle 能力的 profile 用)。
  • 安全审查持平 WARN (33/300)。

功能(同 v1.4.0)

  • 双入口:侧栏「文件浏览」+ 会话标题栏「打开目录」
  • 320px 浏览面板:自动定位当前工作区、切换工作区自动重定位、面包屑、目录/文件列表、文本预览(256KB 上限)
  • 工具栏:工作区 / 根目录 / 上一级 / 刷新 / 在系统资源管理器中打开
  • 添加到聊天:文件引用 [文件名](绝对路径) 追加到输入框
  • 主题适配 + Google Material Icons(v1.4.0)