dsh-restart-dock

DSH 界面上一小框:一键重启宿主、一键刷新页面。重启会先问「立即 / 30 秒 / 60 秒 / 2 分钟 / 取消」,倒计时可撤回;小框需长按 320ms 才能拖动(避免手一抖就粘住),拖到边缘自动吸附,窗口缩放时跟着走。刷新前会真正确认插件包能加载(文件时间戳 + 取回 bundle + 语法编译三重检查),任何一项拿不到就不刷——宁可多点一次,也不把应用刷成起不来的样子。重启仅 Windows(PowerShell 5.1);界面与刷新功能全平台可用。

插件介绍

DSH 界面上一小框:一键重启宿主、一键刷新页面。重启会先问「立即 / 30 秒 / 60 秒 / 2 分钟 / 取消」,倒计时可撤回;小框需长按 320ms 才能拖动(避免手一抖就粘住),拖到边缘自动吸附,窗口缩放时跟着走。刷新前会真正确认插件包能加载(文件时间戳 + 取回 bundle + 语法编译三重检查),任何一项拿不到就不刷——宁可多点一次,也不把应用刷成起不来的样子。重启仅 Windows(PowerShell 5.1);界面与刷新功能全平台可用。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:7gzgn/dsh-restart-dock

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令