@lijian-ui/dsh-file-manager 0.1.20
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/LICENSE +38 -0
- package/README.i18n.yaml +6 -0
- package/README.md +66 -0
- package/README.zh.md +66 -0
- package/cordis.patch.yml +13 -0
- package/lib/assets/mermaid.min.js +3587 -0
- package/lib/client.js +7621 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +3207 -0
- package/lib/tsconfig.client.tsbuildinfo +1 -0
- package/lib/tsconfig.host.tsbuildinfo +1 -0
- package/lib/types/client/FileManagerSettingsCard.d.ts +56 -0
- package/lib/types/client/FileManagerSettingsCard.d.ts.map +1 -0
- package/lib/types/client/PluginSettingsCard.d.ts +104 -0
- package/lib/types/client/PluginSettingsCard.d.ts.map +1 -0
- package/lib/types/client/api.d.ts +75 -0
- package/lib/types/client/api.d.ts.map +1 -0
- package/lib/types/client/chat/AttachedFilesDock.d.ts +51 -0
- package/lib/types/client/chat/AttachedFilesDock.d.ts.map +1 -0
- package/lib/types/client/chat/file-ref.d.ts +35 -0
- package/lib/types/client/chat/file-ref.d.ts.map +1 -0
- package/lib/types/client/chat/mermaid-chat.d.ts +30 -0
- package/lib/types/client/chat/mermaid-chat.d.ts.map +1 -0
- package/lib/types/client/chat/placeholder-hint.d.ts +16 -0
- package/lib/types/client/chat/placeholder-hint.d.ts.map +1 -0
- package/lib/types/client/components/ExplorerPanel.d.ts +26 -0
- package/lib/types/client/components/ExplorerPanel.d.ts.map +1 -0
- package/lib/types/client/components/FileIcon.d.ts +15 -0
- package/lib/types/client/components/FileIcon.d.ts.map +1 -0
- package/lib/types/client/components/ScmPanel.d.ts +23 -0
- package/lib/types/client/components/ScmPanel.d.ts.map +1 -0
- package/lib/types/client/components/a11y.d.ts +12 -0
- package/lib/types/client/components/a11y.d.ts.map +1 -0
- package/lib/types/client/components/icons.d.ts +41 -0
- package/lib/types/client/components/icons.d.ts.map +1 -0
- package/lib/types/client/components/overlay.d.ts +45 -0
- package/lib/types/client/components/overlay.d.ts.map +1 -0
- package/lib/types/client/drag/DragFileInlay.d.ts +31 -0
- package/lib/types/client/drag/DragFileInlay.d.ts.map +1 -0
- package/lib/types/client/drag/file-drag.d.ts +47 -0
- package/lib/types/client/drag/file-drag.d.ts.map +1 -0
- package/lib/types/client/drag.d.ts +31 -0
- package/lib/types/client/drag.d.ts.map +1 -0
- package/lib/types/client/file-source.d.ts +29 -0
- package/lib/types/client/file-source.d.ts.map +1 -0
- package/lib/types/client/fileType.d.ts +31 -0
- package/lib/types/client/fileType.d.ts.map +1 -0
- package/lib/types/client/floating.d.ts +27 -0
- package/lib/types/client/floating.d.ts.map +1 -0
- package/lib/types/client/hooks/useResizableSplit.d.ts +37 -0
- package/lib/types/client/hooks/useResizableSplit.d.ts.map +1 -0
- package/lib/types/client/hooks/useStore.d.ts +10 -0
- package/lib/types/client/hooks/useStore.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +57 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/layout.d.ts +104 -0
- package/lib/types/client/layout.d.ts.map +1 -0
- package/lib/types/client/locales.d.ts +125 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/maximize.d.ts +24 -0
- package/lib/types/client/maximize.d.ts.map +1 -0
- package/lib/types/client/mention.d.ts +44 -0
- package/lib/types/client/mention.d.ts.map +1 -0
- package/lib/types/client/mount.d.ts +22 -0
- package/lib/types/client/mount.d.ts.map +1 -0
- package/lib/types/client/persist.d.ts +55 -0
- package/lib/types/client/persist.d.ts.map +1 -0
- package/lib/types/client/picker/FilePickerModal.d.ts +47 -0
- package/lib/types/client/picker/FilePickerModal.d.ts.map +1 -0
- package/lib/types/client/picker/file-picker.d.ts +62 -0
- package/lib/types/client/picker/file-picker.d.ts.map +1 -0
- package/lib/types/client/preview/PreviewPanel.d.ts +17 -0
- package/lib/types/client/preview/PreviewPanel.d.ts.map +1 -0
- package/lib/types/client/preview/PreviewTabs.d.ts +30 -0
- package/lib/types/client/preview/PreviewTabs.d.ts.map +1 -0
- package/lib/types/client/preview/PreviewToolbar.d.ts +37 -0
- package/lib/types/client/preview/PreviewToolbar.d.ts.map +1 -0
- package/lib/types/client/preview/content.d.ts +43 -0
- package/lib/types/client/preview/content.d.ts.map +1 -0
- package/lib/types/client/preview/markdown.d.ts +60 -0
- package/lib/types/client/preview/markdown.d.ts.map +1 -0
- package/lib/types/client/preview/mermaid.d.ts +78 -0
- package/lib/types/client/preview/mermaid.d.ts.map +1 -0
- package/lib/types/client/preview/selection.d.ts +26 -0
- package/lib/types/client/preview/selection.d.ts.map +1 -0
- package/lib/types/client/reference.d.ts +75 -0
- package/lib/types/client/reference.d.ts.map +1 -0
- package/lib/types/client/settings-form.d.ts +206 -0
- package/lib/types/client/settings-form.d.ts.map +1 -0
- package/lib/types/client/store.d.ts +279 -0
- package/lib/types/client/store.d.ts.map +1 -0
- package/lib/types/core/types.d.ts +132 -0
- package/lib/types/core/types.d.ts.map +1 -0
- package/lib/types/host/fs-service.d.ts +96 -0
- package/lib/types/host/fs-service.d.ts.map +1 -0
- package/lib/types/host/gate.d.ts +45 -0
- package/lib/types/host/gate.d.ts.map +1 -0
- package/lib/types/host/git-runner.d.ts +80 -0
- package/lib/types/host/git-runner.d.ts.map +1 -0
- package/lib/types/host/git-service.d.ts +130 -0
- package/lib/types/host/git-service.d.ts.map +1 -0
- package/lib/types/host/loopback.d.ts +25 -0
- package/lib/types/host/loopback.d.ts.map +1 -0
- package/lib/types/host/poll-guard.d.ts +55 -0
- package/lib/types/host/poll-guard.d.ts.map +1 -0
- package/lib/types/host/routes.d.ts +54 -0
- package/lib/types/host/routes.d.ts.map +1 -0
- package/lib/types/index.d.ts +35 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/mount-once.d.ts +25 -0
- package/lib/types/mount-once.d.ts.map +1 -0
- package/package.json +85 -0
- package/src/client/FileManagerSettingsCard.tsx +117 -0
- package/src/client/PluginSettingsCard.tsx +337 -0
- package/src/client/api.ts +141 -0
- package/src/client/chat/file-ref.ts +144 -0
- package/src/client/chat/mermaid-chat.tsx +102 -0
- package/src/client/chat/placeholder-hint.tsx +46 -0
- package/src/client/components/ExplorerPanel.tsx +534 -0
- package/src/client/components/FileIcon.tsx +46 -0
- package/src/client/components/ScmPanel.tsx +480 -0
- package/src/client/components/a11y.ts +20 -0
- package/src/client/components/icons.tsx +274 -0
- package/src/client/components/overlay.tsx +225 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/drag/DragFileInlay.tsx +89 -0
- package/src/client/drag/file-drag.ts +67 -0
- package/src/client/drag.ts +154 -0
- package/src/client/file-source.ts +58 -0
- package/src/client/fileType.ts +129 -0
- package/src/client/floating.ts +63 -0
- package/src/client/hooks/useResizableSplit.ts +91 -0
- package/src/client/hooks/useStore.ts +15 -0
- package/src/client/index.ts +389 -0
- package/src/client/layout.ts +546 -0
- package/src/client/locales.ts +247 -0
- package/src/client/maximize.ts +34 -0
- package/src/client/mount.tsx +74 -0
- package/src/client/persist.ts +194 -0
- package/src/client/picker/FilePickerModal.tsx +506 -0
- package/src/client/picker/file-picker.ts +86 -0
- package/src/client/preview/PreviewPanel.tsx +233 -0
- package/src/client/preview/PreviewTabs.tsx +159 -0
- package/src/client/preview/PreviewToolbar.tsx +160 -0
- package/src/client/preview/content.tsx +617 -0
- package/src/client/preview/markdown.ts +351 -0
- package/src/client/preview/mermaid.ts +274 -0
- package/src/client/preview/selection.ts +82 -0
- package/src/client/reference.ts +161 -0
- package/src/client/settings-card.module.css +316 -0
- package/src/client/settings-form.ts +451 -0
- package/src/client/store.ts +1290 -0
- package/src/client/styles/chip.module.css +38 -0
- package/src/client/styles/drag.module.css +30 -0
- package/src/client/styles/explorer.module.css +371 -0
- package/src/client/styles/picker.module.css +344 -0
- package/src/client/styles/preview.module.css +904 -0
- package/src/client/styles/scm.module.css +380 -0
- package/src/client/styles/tokens.module.css +480 -0
- package/src/core/types.ts +162 -0
- package/src/host/fs-service.ts +513 -0
- package/src/host/gate.ts +74 -0
- package/src/host/git-runner.ts +116 -0
- package/src/host/git-service.ts +395 -0
- package/src/host/loopback.ts +63 -0
- package/src/host/poll-guard.ts +109 -0
- package/src/host/routes.ts +695 -0
- package/src/index.ts +97 -0
- package/src/mount-once.ts +48 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global restyle of the shell's reference chips to the file-reference look
|
|
3
|
+
* (the user's screenshot): a muted rounded pill with a green `</>` code
|
|
4
|
+
* glyph. The shell renders every U+FFFC chip with `data-decoration="chip"`
|
|
5
|
+
* (InputBar), so this file overrides its default blue tint through that
|
|
6
|
+
* attribute — the hash-scoped `.chip` class stays untouched and alignment
|
|
7
|
+
* (the U+FFFC advance cell) is preserved because the glyph comes from the
|
|
8
|
+
* label cell's ::before, not the placeholder cell's.
|
|
9
|
+
*
|
|
10
|
+
* Side effect: chips of other sources (skills, subagents) pick up the same
|
|
11
|
+
* pill look — a uniform, muted family, which the shell's default blue
|
|
12
|
+
* already intended.
|
|
13
|
+
* @module dsh-filemgr/client/styles/chip
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
:global([data-decoration="chip"]) {
|
|
17
|
+
background: rgba(15, 23, 42, 0.06);
|
|
18
|
+
border-radius: 6px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:global(body[data-ds-dark-theme] [data-decoration="chip"]) {
|
|
22
|
+
background: rgba(255, 255, 255, 0.1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* The label cell keeps the shell's default 0.72 compensated scale (no
|
|
26
|
+
override here) — the pill text renders at the composer's native size. */
|
|
27
|
+
|
|
28
|
+
/* The green `</>` glyph, drawn inside the label cell (absolute-positioned by
|
|
29
|
+
the shell, so this never shifts the placeholder advance). */
|
|
30
|
+
:global([data-decoration="chip"] > span::before) {
|
|
31
|
+
content: "</>";
|
|
32
|
+
color: var(--aion-success, #16a34a);
|
|
33
|
+
font-family: var(--aion-font-mono, ui-monospace, Menlo, Consolas, monospace);
|
|
34
|
+
font-size: 0.85em;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
margin-right: 4px;
|
|
37
|
+
letter-spacing: -0.5px;
|
|
38
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composer dock drag inlay: a zero-height strip above the composer card
|
|
3
|
+
* that appears while an explorer file row is dragged over the page. Uses
|
|
4
|
+
* the panel's own token palette so the hint follows the active theme.
|
|
5
|
+
* @module dsh-filemgr/client/styles/drag
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.strip {
|
|
9
|
+
display: none;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
width: 100%;
|
|
12
|
+
max-width: var(--dsh-composer-card-max-width, 720px);
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
border: 1px dashed var(--aion-primary);
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
color: var(--aion-text-primary);
|
|
19
|
+
background-color: color-mix(in srgb, var(--aion-primary) 10%, transparent);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.stripActive {
|
|
23
|
+
display: flex;
|
|
24
|
+
height: 26px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.stripText {
|
|
28
|
+
font-size: 12px;
|
|
29
|
+
line-height: 18px;
|
|
30
|
+
}
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Explorer column styles — FileManager measured values (tree row 34px, tab bar
|
|
3
|
+
* 37px, 12px baseline with 8px row padding so content lands at 20px).
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* The Files/Changes tab bar: 28px buttons + 4px vertical padding + 1px border. */
|
|
7
|
+
.tabBar {
|
|
8
|
+
position: relative;
|
|
9
|
+
/* Above third-party skin fixed decoration layers (z-index ~20) so the tab
|
|
10
|
+
bar buttons and the collapse chevron stay clickable (issue #169). Low
|
|
11
|
+
enough to stay below overlays/dialogs (1000+). */
|
|
12
|
+
z-index: 30;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 4px;
|
|
16
|
+
padding: 4px 8px 4px 12px;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
border-bottom: 1px solid var(--aion-bg-3);
|
|
19
|
+
background: var(--aion-bg-1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tabBtn {
|
|
23
|
+
height: 28px;
|
|
24
|
+
padding: 0 8px;
|
|
25
|
+
border: none;
|
|
26
|
+
border-radius: 2px;
|
|
27
|
+
background: transparent;
|
|
28
|
+
color: var(--aion-text-secondary);
|
|
29
|
+
font-size: 13px;
|
|
30
|
+
font-family: var(--aion-font-sans);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tabBtn:hover {
|
|
37
|
+
background: var(--aion-fill-2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tabBtn:active {
|
|
41
|
+
background: var(--aion-bg-active);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tabBtn:focus-visible {
|
|
45
|
+
outline: 2px solid var(--aion-primary);
|
|
46
|
+
outline-offset: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.tabBtnActive {
|
|
50
|
+
height: 28px;
|
|
51
|
+
padding: 0 8px;
|
|
52
|
+
border: none;
|
|
53
|
+
border-radius: 2px;
|
|
54
|
+
background: var(--aion-bg-2);
|
|
55
|
+
color: var(--aion-text-primary);
|
|
56
|
+
font-size: 13px;
|
|
57
|
+
font-family: var(--aion-font-sans);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tabBtnActive:active {
|
|
65
|
+
background: var(--aion-bg-active);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tabBtnActive:focus-visible {
|
|
69
|
+
outline: 2px solid var(--aion-primary);
|
|
70
|
+
outline-offset: 2px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* The in-flow tab-bar icon button (maximize/restore, issue #315). */
|
|
74
|
+
.tabIconBtn {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
width: 24px;
|
|
79
|
+
height: 24px;
|
|
80
|
+
margin-right: 4px;
|
|
81
|
+
border: none;
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
background: transparent;
|
|
84
|
+
color: var(--aion-text-secondary);
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tabIconBtn:hover {
|
|
90
|
+
background: var(--aion-bg-3);
|
|
91
|
+
color: var(--aion-text-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.tabIconBtn:active {
|
|
95
|
+
background: var(--aion-bg-active);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.tabIconBtn:focus-visible {
|
|
99
|
+
outline: 2px solid var(--aion-primary);
|
|
100
|
+
outline-offset: 2px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* The persistent filename search area. */
|
|
104
|
+
.searchArea {
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
padding: 8px 8px 4px 12px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.searchBox {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 6px;
|
|
113
|
+
height: 28px;
|
|
114
|
+
padding: 0 8px;
|
|
115
|
+
border-radius: 2px;
|
|
116
|
+
background: var(--aion-bg-base);
|
|
117
|
+
border: 1px solid transparent;
|
|
118
|
+
transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.searchBoxFocus {
|
|
122
|
+
border-color: var(--aion-primary);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* The inner input is focusable; mirror its focus ring onto the box. */
|
|
126
|
+
.searchBox:focus-within {
|
|
127
|
+
box-shadow: 0 0 0 2px transparent, 0 0 0 4px var(--aion-primary);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.searchIcon {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
color: var(--aion-text-secondary);
|
|
134
|
+
flex-shrink: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.searchInput {
|
|
138
|
+
flex: 1;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
height: 100%;
|
|
141
|
+
border: none;
|
|
142
|
+
outline: none;
|
|
143
|
+
background: transparent;
|
|
144
|
+
color: var(--aion-text-primary);
|
|
145
|
+
font-size: 13px;
|
|
146
|
+
font-family: var(--aion-font-sans);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.searchInput::placeholder {
|
|
150
|
+
color: var(--aion-text-tertiary);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.searchClear {
|
|
154
|
+
display: none;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
width: 16px;
|
|
158
|
+
height: 16px;
|
|
159
|
+
border: none;
|
|
160
|
+
border-radius: 2px;
|
|
161
|
+
background: transparent;
|
|
162
|
+
color: var(--aion-text-tertiary);
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
padding: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.searchClear:hover {
|
|
168
|
+
color: var(--aion-text-primary);
|
|
169
|
+
background: var(--aion-fill-2);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.searchClear:active {
|
|
173
|
+
background: var(--aion-bg-active);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.searchClear:focus-visible {
|
|
177
|
+
outline: 2px solid var(--aion-primary);
|
|
178
|
+
outline-offset: 2px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.searchAreaFocus .searchClear {
|
|
182
|
+
display: flex;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Scroll region shared by tree and results. */
|
|
186
|
+
.scrollArea {
|
|
187
|
+
flex: 1;
|
|
188
|
+
min-height: 0;
|
|
189
|
+
overflow-y: auto;
|
|
190
|
+
overflow-x: hidden;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* The file tree. Rows: 34px, full-row hover/selected, 8px padding (the
|
|
194
|
+
container adds the 12px baseline). */
|
|
195
|
+
.tree {
|
|
196
|
+
padding: 2px 0 8px 12px;
|
|
197
|
+
user-select: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.treeRow {
|
|
201
|
+
display: flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 4px;
|
|
204
|
+
height: 34px;
|
|
205
|
+
padding-right: 8px;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
border-radius: 0;
|
|
208
|
+
transition: background-color 0.12s ease;
|
|
209
|
+
white-space: nowrap;
|
|
210
|
+
min-width: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.treeRow:hover {
|
|
214
|
+
background-color: var(--aion-fill-2);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.treeRow:active {
|
|
218
|
+
background-color: var(--aion-bg-active);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.treeRowDragging {
|
|
222
|
+
cursor: grabbing;
|
|
223
|
+
opacity: 0.55;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.treeRow:focus-visible {
|
|
227
|
+
box-shadow: inset 0 0 0 2px var(--aion-primary);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.treeRowSelected,
|
|
231
|
+
.treeRowSelected:hover {
|
|
232
|
+
background-color: var(--aion-fill-3);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.treeArrow {
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
width: 14px;
|
|
240
|
+
height: 14px;
|
|
241
|
+
color: var(--aion-text-tertiary);
|
|
242
|
+
flex-shrink: 0;
|
|
243
|
+
transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.treeArrowOpen {
|
|
247
|
+
transform: rotate(90deg);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.treeArrowEmpty {
|
|
251
|
+
visibility: hidden;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.treeName {
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
text-overflow: ellipsis;
|
|
257
|
+
font-size: 13px;
|
|
258
|
+
color: var(--aion-text-primary);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* The row '@' button: hidden until the row is hovered/focused, inserts a
|
|
262
|
+
@<rel-path> reference into the composer draft (issue #312). */
|
|
263
|
+
.refBtn {
|
|
264
|
+
display: none;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
width: 20px;
|
|
268
|
+
height: 20px;
|
|
269
|
+
margin-left: 4px;
|
|
270
|
+
padding: 0;
|
|
271
|
+
border: none;
|
|
272
|
+
border-radius: 4px;
|
|
273
|
+
background: transparent;
|
|
274
|
+
color: var(--aion-text-tertiary);
|
|
275
|
+
font-size: 13px;
|
|
276
|
+
line-height: 1;
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
flex-shrink: 0;
|
|
279
|
+
transition: background-color 0.12s ease, color 0.12s ease;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.treeRow:hover .refBtn,
|
|
283
|
+
.refBtn:focus-visible {
|
|
284
|
+
display: flex;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.refBtn:hover {
|
|
288
|
+
background: var(--aion-bg-3);
|
|
289
|
+
color: var(--aion-primary);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.refBtn:active {
|
|
293
|
+
background: var(--aion-bg-active);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.refBtn:focus-visible {
|
|
297
|
+
outline: 2px solid var(--aion-primary);
|
|
298
|
+
outline-offset: 1px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.treeRowSelected .treeName {
|
|
302
|
+
color: var(--aion-text-primary);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.treeMeta {
|
|
306
|
+
margin-left: auto;
|
|
307
|
+
font-size: 11px;
|
|
308
|
+
color: var(--aion-text-tertiary);
|
|
309
|
+
flex-shrink: 0;
|
|
310
|
+
padding-right: 4px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Search results (flat stream). */
|
|
314
|
+
.resultRow {
|
|
315
|
+
display: flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
gap: 6px;
|
|
318
|
+
height: 30px;
|
|
319
|
+
padding: 0 8px 0 12px;
|
|
320
|
+
cursor: pointer;
|
|
321
|
+
white-space: nowrap;
|
|
322
|
+
transition: background-color 0.12s ease;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.resultRow:hover {
|
|
326
|
+
background-color: var(--aion-fill-2);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.resultRow:active {
|
|
330
|
+
background-color: var(--aion-bg-active);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.resultRow:focus-visible {
|
|
334
|
+
box-shadow: inset 0 0 0 2px var(--aion-primary);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.resultName {
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
text-overflow: ellipsis;
|
|
340
|
+
font-size: 13px;
|
|
341
|
+
color: var(--aion-text-primary);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.resultPath {
|
|
345
|
+
overflow: hidden;
|
|
346
|
+
text-overflow: ellipsis;
|
|
347
|
+
font-size: 11px;
|
|
348
|
+
color: var(--aion-text-tertiary);
|
|
349
|
+
flex-shrink: 1;
|
|
350
|
+
min-width: 0;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.resultMeta {
|
|
354
|
+
font-size: 11px;
|
|
355
|
+
color: var(--aion-text-tertiary);
|
|
356
|
+
flex-shrink: 0;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.searchStatus {
|
|
360
|
+
padding: 12px;
|
|
361
|
+
font-size: 12px;
|
|
362
|
+
color: var(--aion-text-tertiary);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/* Empty tree state. */
|
|
366
|
+
.emptyState {
|
|
367
|
+
padding: 24px 16px;
|
|
368
|
+
font-size: 12px;
|
|
369
|
+
color: var(--aion-text-tertiary);
|
|
370
|
+
text-align: center;
|
|
371
|
+
}
|