Skip to content
dsh.fish
Bundle

dsh-ui-models-invert-selection

Adds an 'Invert selection' button to the fetch-models dialog of the Models settings section

Source
FraYoshi
stars
2 stars
License
MIT
Updated
Updated 10 days ago

Readme

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](/media/thumb.webp)

# 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:

``` json
{
  "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"
      ]
    }
  }
}
```
3. 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.
4. 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

Install

dsh plugin --profile web add github:FraYoshi/dsh-ui-models-invert-selection

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source