@youtyan/code-viewer 0.1.14 → 0.1.16
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 +9 -0
- package/package.json +1 -1
- package/web/app.js +875 -109
- package/web/index.html +45 -8
- package/web/style.css +414 -72
- package/web-src/server/git.ts +90 -29
- package/web-src/server/preview.ts +301 -49
- package/web-src/server/range.ts +228 -0
- package/web-src/server/runtime.d.ts +10 -0
- package/web-src/server/search.ts +10 -7
- package/web-src/types.ts +16 -1
package/README.md
CHANGED
|
@@ -65,8 +65,12 @@ Or place `.code-viewer.json` at the repository root:
|
|
|
65
65
|
|
|
66
66
|
```json
|
|
67
67
|
{
|
|
68
|
+
"version": 1,
|
|
68
69
|
"upload": {
|
|
69
70
|
"enabled": true
|
|
71
|
+
},
|
|
72
|
+
"scope": {
|
|
73
|
+
"omitDirs": ["node_modules", "dist", "build"]
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
```
|
|
@@ -74,6 +78,11 @@ Or place `.code-viewer.json` at the repository root:
|
|
|
74
78
|
Uploads are accepted only for the worktree target. Git tree views remain
|
|
75
79
|
read-only.
|
|
76
80
|
|
|
81
|
+
Repository scope settings control recursive repository browsing and search scope
|
|
82
|
+
for the left tree, Ctrl+K file palette, and Ctrl+G grep palette. The in-app Scope
|
|
83
|
+
Settings popover stores only a browser-local override in localStorage; edit
|
|
84
|
+
`.code-viewer.json` directly for project defaults shared with the repository.
|
|
85
|
+
|
|
77
86
|
## Development
|
|
78
87
|
|
|
79
88
|
```sh
|