ccperm 1.8.4 → 1.8.6
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/dist/interactive.js +2 -2
- package/dist/renderer.js +1 -1
- package/package.json +1 -1
package/dist/interactive.js
CHANGED
|
@@ -12,7 +12,7 @@ function visLen(s) {
|
|
|
12
12
|
}
|
|
13
13
|
function boxLine(text, width) {
|
|
14
14
|
const vis = visLen(text);
|
|
15
|
-
const padRight = Math.max(0, width - vis -
|
|
15
|
+
const padRight = Math.max(0, width - vis - 3);
|
|
16
16
|
return `${colors_js_1.DIM}│${colors_js_1.NC} ${text}${' '.repeat(padRight)}${colors_js_1.DIM}│${colors_js_1.NC}`;
|
|
17
17
|
}
|
|
18
18
|
function boxTop(title, info, width) {
|
|
@@ -137,7 +137,7 @@ function renderList(state, withPerms, emptyCount) {
|
|
|
137
137
|
const r = withPerms[i];
|
|
138
138
|
const isCursor = i === state.cursor;
|
|
139
139
|
const truncName = r.shortName.length > nameWidth ? r.shortName.slice(0, nameWidth - 1) + '…' : r.shortName;
|
|
140
|
-
const typeTag = r.isGlobal ? '' :
|
|
140
|
+
const typeTag = r.isGlobal ? pad('', 7) : `${colors_js_1.DIM} ${pad(r.fileType, 6)}${colors_js_1.NC}`;
|
|
141
141
|
const prefix = r.isGlobal ? '★ ' : '';
|
|
142
142
|
const marker = isCursor ? `${colors_js_1.CYAN}▸ ` : ' ';
|
|
143
143
|
const nameStyle = isCursor ? `${colors_js_1.BOLD}` : r.isGlobal ? `${colors_js_1.YELLOW}` : '';
|
package/dist/renderer.js
CHANGED
|
@@ -28,7 +28,7 @@ function printCompact(entries, summary) {
|
|
|
28
28
|
for (let i = 0; i < withPerms.length; i++) {
|
|
29
29
|
const result = withPerms[i];
|
|
30
30
|
const truncName = result.shortName.length > nameWidth ? result.shortName.slice(0, nameWidth - 1) + '…' : result.shortName;
|
|
31
|
-
const typeTag = result.isGlobal ? '' :
|
|
31
|
+
const typeTag = result.isGlobal ? pad('', 7) : `${colors_js_1.DIM} ${pad(result.fileType, 6)}${colors_js_1.NC}`;
|
|
32
32
|
const prefix = result.isGlobal ? '★ ' : '';
|
|
33
33
|
const nameStyle = result.isGlobal ? `${colors_js_1.YELLOW}` : '';
|
|
34
34
|
const nameCol = ` ${nameStyle}${prefix}${pad(truncName, nameWidth)}${colors_js_1.NC}${typeTag}`;
|