@yokira404/dsh-git-guard 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/README.zh.md +2 -2
- package/client.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,14 @@ and the agent gets a clear refusal instead.
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
dsh plugin --profile <profile> add
|
|
19
|
+
dsh plugin --profile <profile> add @yokira404/dsh-git-guard
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Reload the page and the two switches appear at the right of the Session header.
|
|
23
23
|
|
|
24
24
|
> By hand: add `@yokira404/dsh-git-guard` to `dsh.profile.bundles` in
|
|
25
|
-
> `~/.dsh/profiles/<profile>/package.json`, and
|
|
25
|
+
> `~/.dsh/profiles/<profile>/package.json`, and list it under `dependencies` as
|
|
26
|
+
> `"^1.0.1"`.
|
|
26
27
|
|
|
27
28
|
## How the two switches interact
|
|
28
29
|
|
package/README.zh.md
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
## 安装
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
dsh plugin --profile <profile> add
|
|
17
|
+
dsh plugin --profile <profile> add @yokira404/dsh-git-guard
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
装好后重新加载页面,即可在会话标题栏右侧看到这两个开关。
|
|
21
21
|
|
|
22
|
-
> 手动登记 profile 也可以:在 `~/.dsh/profiles/<profile>/package.json` 的 `dsh.profile.bundles` 里加上 `@yokira404/dsh-git-guard`,并在 `dependencies`
|
|
22
|
+
> 手动登记 profile 也可以:在 `~/.dsh/profiles/<profile>/package.json` 的 `dsh.profile.bundles` 里加上 `@yokira404/dsh-git-guard`,并在 `dependencies` 里写 `"^1.0.1"`。
|
|
23
23
|
|
|
24
24
|
## 开关怎么联动
|
|
25
25
|
|
package/client.js
CHANGED
|
@@ -58,7 +58,7 @@ window.__ModuleLoader__.load({
|
|
|
58
58
|
|
|
59
59
|
const NS = 'dsh-git-guard'
|
|
60
60
|
const LOCALE_NS = 'gitGuard'
|
|
61
|
-
const VERSION = '1.0.
|
|
61
|
+
const VERSION = '1.0.1'
|
|
62
62
|
/** This package's own two routes on the Host's Web carrier, same origin as the GUI. */
|
|
63
63
|
const ROUTE = '/dsh-git-guard/state'
|
|
64
64
|
/** A switch is asked for, never waited on forever: the draw must never hang. */
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yokira404/dsh-git-guard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Two switches at the right of the Session header. The left one stops writes to your local git repository (git add, git commit); the right one stops uploads to a remote (git push, git remote, gh). Both start on, and switching a guard on never releases the other. The block happens before a command runs.",
|
|
6
6
|
"type": "module",
|