dsh-ui-models-invert-selection
文件与数据 活跃维护

dsh-ui-models-invert-selection

FraYoshi/dsh-ui-models-invert-selection

提供快捷反选能力,无需手动逐个调整模型选中项,点击即可完成已选与未选内容的状态互换,操作简单高效,可轻松应对批量模型筛选时的选中调整需求

2
Stars 标星
0
Forks 分支
2
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
13 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:FraYoshi/dsh-ui-models-invert-selection
git clone https://github.com/FraYoshi/dsh-ui-models-invert-selection.git
git clone git@github.com:FraYoshi/dsh-ui-models-invert-selection.git
README.md main

This plugin adds a "invert selection" button when adding models from the auto-fetched list of the providers, so only the ones we already have are checked.

thumbnail

INSTALLATION

  1. clone this repo, then copy its content into /home/dshuser/.dsh/profiles/<profile>/plugins/models-invert-selection
  2. add the plugin to the <profile>/package.json by appending it to the dependencies and bundle like in this example:
{
  "name": "dsh-profile-web",
  "private": true,
  "dependencies": {
      "dsh-ui-models-invert-selection": "file:./plugins/models-invert-selection"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "dsh-ui-models-invert-selection"
      ]
    }
  }
}
  1. from the profile's directory i.e. /home/dshuser/.dsh/profiles/web, we run pnpm install, be aware that you need to be the correct user, root might fail.
  2. restart the container/service

REMOVAL

  1. delete the /home/dshuser/.dsh/profiles/<profile>/plugins/models-invert-selection
  2. remove the relative lines from the <profile>/package.json
  3. rerun the pnpm install as we did in the installation
  4. restart the container/service