@xiaoming_z/dsh-git 0.0.0-stage → 0.3.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 +147 -2
- package/client.js +3133 -0
- package/cordis.patch.yml +29 -0
- package/docs/composer-branch-chip.png +0 -0
- package/index.js +1320 -0
- package/package.json +44 -4
- package/test/browser/README.md +39 -0
- package/test/browser/drive.mjs +122 -0
- package/test/browser/harness.js +271 -0
- package/test/browser/index.html +41 -0
- package/test/browser/setup.mjs +119 -0
- package/test/client.test.mjs +1258 -0
- package/test/host.test.mjs +817 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# The DSH git panel's composition layer.
|
|
2
|
+
#
|
|
3
|
+
# One package carries both halves: the Host face (`exports["."]`) provides the
|
|
4
|
+
# git service and a read/write HTTP route table under /git-api, and the browser
|
|
5
|
+
# face (`exports["./client"]`, declared through `dsh.client`) registers the Git
|
|
6
|
+
# view. One Loader row mounts both — the client-modules registry finds the
|
|
7
|
+
# browser half by scanning enabled Loader entries for a package that declares
|
|
8
|
+
# `dsh.client`, so the row below is what puts the panel on screen.
|
|
9
|
+
#
|
|
10
|
+
# A bundle patch is applied in `dsh.profile.bundles` order, before the profile's
|
|
11
|
+
# own `cordis.patch.yml` and any `--patch` overlay.
|
|
12
|
+
#
|
|
13
|
+
# The row is inserted with no `config`, so the Host half falls back to its own
|
|
14
|
+
# defaults: it inspects the directory `dsh web` was launched from and refuses
|
|
15
|
+
# every other path. To widen or pin that, uncomment the block below and list the
|
|
16
|
+
# repository roots you actually want reachable.
|
|
17
|
+
#
|
|
18
|
+
# - id: git
|
|
19
|
+
# config:
|
|
20
|
+
# # A request for a path outside these prefixes is refused with HTTP 400.
|
|
21
|
+
# # Both sides are canonicalized with realpath, so a symlinked root
|
|
22
|
+
# # (macOS /tmp, a symlinked project directory) still matches.
|
|
23
|
+
# allowedRoots: !!js [process.cwd(), '/Users/xiaoming/Projects']
|
|
24
|
+
# # Used when a request omits `root`. Defaults to the process cwd.
|
|
25
|
+
# defaultRoot: !!js process.cwd()
|
|
26
|
+
|
|
27
|
+
- insert:
|
|
28
|
+
- id: git
|
|
29
|
+
name: '@xiaoming_z/dsh-git'
|
|
Binary file
|