dsh-brief-sidebar 0.9.27 → 0.9.28
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 +21 -21
- package/cordis.patch.yml +18 -18
- package/dsh.plugin.json +1 -1
- package/lib/client.js +213 -1
- package/lib/client.js.map +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/types/client/star-row-copy.d.ts +20 -0
- package/locale/de.json +6 -6
- package/locale/en.json +6 -6
- package/locale/es.json +6 -6
- package/locale/fr.json +6 -6
- package/locale/it.json +6 -6
- package/locale/ja.json +6 -6
- package/locale/ko.json +6 -6
- package/locale/ru.json +6 -6
- package/locale/zh.json +6 -6
- package/package.json +1 -1
- package/screenshots.json +5 -5
- package/src/client/BriefIcon.tsx +56 -56
- package/src/client/SummaryTab.tsx +78 -78
- package/src/client/TodoBoardTab.tsx +188 -188
- package/src/client/brief/board.ts +104 -104
- package/src/client/brief/dock-shadow.tsx +74 -74
- package/src/client/brief/use-todos.ts +27 -27
- package/src/client/echo-viewer/echo-viewer.tsx +135 -135
- package/src/client/family-host.tsx +220 -220
- package/src/client/file-open.ts +108 -108
- package/src/client/index.tsx +415 -415
- package/src/client/memory-open.ts +52 -52
- package/src/client/memory-tab.ts +35 -35
- package/src/client/memory-viewer/viewer.tsx +179 -179
- package/src/client/native-sidebar.tsx +149 -149
- package/src/client/scope-face.ts +101 -101
- package/src/client/settings-card.tsx +2 -0
- package/src/client/spirit-echo.ts +255 -255
- package/src/client/spirit-open.ts +49 -49
- package/src/client/star-row-copy.ts +256 -0
- package/src/client/summary/DeliverablesSection.tsx +247 -247
- package/src/client/summary/EchoViewMenu.tsx +189 -189
- package/src/client/summary/FoldToggle.tsx +114 -114
- package/src/client/summary/MemoryRecallSection.tsx +654 -654
- package/src/client/summary/MemorySlotsSection.tsx +291 -291
- package/src/client/summary/MemoryViewMenu.tsx +247 -247
- package/src/client/summary/RecallBubble.tsx +256 -256
- package/src/client/summary/ReferenceSection.tsx +235 -235
- package/src/client/summary/SearchRefSection.tsx +313 -313
- package/src/client/summary/SkillUsageSection.tsx +191 -191
- package/src/client/summary/SpiritEchoSection.tsx +350 -350
- package/src/client/summary/deliverables.ts +105 -105
- package/src/client/summary/memory-recall.ts +131 -131
- package/src/client/summary/memory-slots.ts +145 -145
- package/src/client/summary/recall-feedback.ts +164 -164
- package/src/client/summary/search-refs.ts +185 -185
- package/src/client/summary/skill-usage.ts +124 -124
- package/src/client/summary/use-config-flag.ts +60 -60
- package/src/client/use-projection.ts +130 -130
- package/src/index.ts +77 -77
- package/src/projection/keys.ts +113 -113
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 drscrewdriver
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 drscrewdriver
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/cordis.patch.yml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# dsh-brief-sidebar bundle patch
|
|
2
|
-
#
|
|
3
|
-
# Assembly layer for the DSH profiles whose bundle list includes this package.
|
|
4
|
-
# A pure ADDITION: one insert row carrying an id no shipped entry uses. No
|
|
5
|
-
# shipped row is disabled, renamed, or reconfigured here, so the patch stays
|
|
6
|
-
# safe to compose with any other plugin's patch.
|
|
7
|
-
#
|
|
8
|
-
# The row exists only so the loader has a host-side entry point; every
|
|
9
|
-
# behaviour of this plugin lives in the browser half (see src/index.ts).
|
|
10
|
-
#
|
|
11
|
-
# Install (recommended, official CLI):
|
|
12
|
-
# dsh plugin --profile <profile> add dsh-brief-sidebar@dsh-0.1.5 (DSH 0.1.5+ only)
|
|
13
|
-
#
|
|
14
|
-
# Both routes are mutually exclusive - do not end up with the row twice.
|
|
15
|
-
|
|
16
|
-
- insert:
|
|
17
|
-
- id: dsh-brief-sidebar
|
|
18
|
-
name: dsh-brief-sidebar
|
|
1
|
+
# dsh-brief-sidebar bundle patch
|
|
2
|
+
#
|
|
3
|
+
# Assembly layer for the DSH profiles whose bundle list includes this package.
|
|
4
|
+
# A pure ADDITION: one insert row carrying an id no shipped entry uses. No
|
|
5
|
+
# shipped row is disabled, renamed, or reconfigured here, so the patch stays
|
|
6
|
+
# safe to compose with any other plugin's patch.
|
|
7
|
+
#
|
|
8
|
+
# The row exists only so the loader has a host-side entry point; every
|
|
9
|
+
# behaviour of this plugin lives in the browser half (see src/index.ts).
|
|
10
|
+
#
|
|
11
|
+
# Install (recommended, official CLI):
|
|
12
|
+
# dsh plugin --profile <profile> add dsh-brief-sidebar@dsh-0.1.5 (DSH 0.1.5+ only)
|
|
13
|
+
#
|
|
14
|
+
# Both routes are mutually exclusive - do not end up with the row twice.
|
|
15
|
+
|
|
16
|
+
- insert:
|
|
17
|
+
- id: dsh-brief-sidebar
|
|
18
|
+
name: dsh-brief-sidebar
|
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-brief-sidebar",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.28",
|
|
4
4
|
"main": "./lib/index.mjs",
|
|
5
5
|
"description": "会话简报侧栏页(brief):把会话的 todo 列表(`todos` 投影的进展看板)、产物列表(`dshSummaryDeliverables` 投影的实时产出文件)、引用页签(技能 / 本会话召回 / 常驻槽位 / 回响,附「详细展示 ▾」与行内「查看详情 ▾」经深链打开 dsh-prime-memory 记忆库;回响页签列出本会话被 dsh-spirit 召回的回响段,并可经深链跳到星图与条目)一起渲染成右侧栏的一个「概要」tab,并遮蔽 DSH 官方那条 composer 上方的 todo 面板。只读展示,不做写回。",
|
|
6
6
|
"engines": {
|
package/lib/client.js
CHANGED
|
@@ -5507,6 +5507,216 @@ window.__ModuleLoader__.load({
|
|
|
5507
5507
|
}, TodoDockShadow));
|
|
5508
5508
|
}
|
|
5509
5509
|
//#endregion
|
|
5510
|
+
//#region src/client/star-row-copy.ts
|
|
5511
|
+
/**
|
|
5512
|
+
* star-row 真源(面板 star 快车道行,v1)——纯 DOM 实现,零依赖。
|
|
5513
|
+
*
|
|
5514
|
+
* 副本约束:生成文件名 star-row-copy.ts,头部须保留 /** 块注释,单行 ≤140
|
|
5515
|
+
* 字宽(sidebar-fold 仓 lint 门禁:max-line + file-header)。
|
|
5516
|
+
*
|
|
5517
|
+
* 契约(对齐 panel-star-row spec):
|
|
5518
|
+
* - 渲染一行 <a>:GitHub 单色 SVG + `owner/name`;variant A 追加一句工程话术;
|
|
5519
|
+
* - 整行即链接(A/L 档),新标签页打开;不做弹窗、不做按钮交互;
|
|
5520
|
+
* - 文案内嵌 10 语,按 `document.documentElement.lang` 前缀自选
|
|
5521
|
+
* (同 sidebar-fold `pickDictionary` 口径),不依赖宿主 locale 服务,
|
|
5522
|
+
* 避免逐仓动字典文件;
|
|
5523
|
+
* - 样式一次性注入 <style data-dsh-star-row>,色随 currentColor,深浅主题自适应;
|
|
5524
|
+
* - 副本由 _tools/star-row/sync.mjs 生成到各仓 `src/client/star-row-copy.ts`
|
|
5525
|
+
* (文件名含 copy,locale 守卫豁免规则命中),改副本无效,改真源后重跑 sync。
|
|
5526
|
+
*
|
|
5527
|
+
* 每仓生成时在文件头部烘焙 REPO_URL / STAR_NS / STAR_VARIANT 三个常量。
|
|
5528
|
+
*/
|
|
5529
|
+
/** 生成段:REPO_URL / STAR_NS / STAR_VARIANT 由 sync 注入。 */
|
|
5530
|
+
const REPO_URL = "https://github.com/drscrewdriver/dsh-brief-sidebar";
|
|
5531
|
+
const STAR_NS = "brief-sidebar";
|
|
5532
|
+
/** zh 为键集真理源;10 语与 sidebar-fold/manage-session 同集合。 */
|
|
5533
|
+
const STAR_COPY = {
|
|
5534
|
+
zh: { ask: "觉得省事了?一颗 Star 让工具被更多人看见" },
|
|
5535
|
+
en: { ask: "Finding it handy? A star helps more people discover this tool" },
|
|
5536
|
+
ja: { ask: "便利でしたら⭐で、このツールがもっと届きます" },
|
|
5537
|
+
ko: { ask: "유용했다면 ⭐ 하나로 더 많은 사용자에게 닿습니다" },
|
|
5538
|
+
fr: { ask: "Utile ? Une étoile aide cet outil à être découvert" },
|
|
5539
|
+
de: { ask: "Nützlich? Ein Stern hilft dem Tool, gesehen zu werden" },
|
|
5540
|
+
it: { ask: "Ti è utile? Una stella aiuta questo tool a farsi scoprire" },
|
|
5541
|
+
ru: { ask: "Пригодилось? Звезда поможет большему числу людей узнать о tool" },
|
|
5542
|
+
es: { ask: "¿Te resulta útil? Una estrella ayuda a que más gente lo descubra" },
|
|
5543
|
+
pt: { ask: "Achou útil? Uma estrela ajuda mais pessoas a descobrir a ferramenta" }
|
|
5544
|
+
};
|
|
5545
|
+
const STAR_LANGS = [
|
|
5546
|
+
"zh",
|
|
5547
|
+
"en",
|
|
5548
|
+
"ja",
|
|
5549
|
+
"ko",
|
|
5550
|
+
"fr",
|
|
5551
|
+
"de",
|
|
5552
|
+
"it",
|
|
5553
|
+
"ru",
|
|
5554
|
+
"es",
|
|
5555
|
+
"pt"
|
|
5556
|
+
];
|
|
5557
|
+
/** GitHub mark(Simple Icons / octicon 轮廓,24 视口),fill 随 currentColor。 */
|
|
5558
|
+
const GITHUB_MARK_PATH = "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332 -5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12";
|
|
5559
|
+
const STYLE_ID = "dsh-star-row-style";
|
|
5560
|
+
const STYLE_CSS = [
|
|
5561
|
+
".dsh-star-row{display:flex;align-items:center;gap:7px;font-size:12px;",
|
|
5562
|
+
"line-height:1.5;color:inherit;text-decoration:none;opacity:.72;padding:3px 0;",
|
|
5563
|
+
"margin-top:6px;min-width:0;flex-wrap:wrap}",
|
|
5564
|
+
".dsh-star-row:hover{opacity:1;text-decoration:underline}",
|
|
5565
|
+
".dsh-star-row svg{width:14px;height:14px;flex:none;display:block}",
|
|
5566
|
+
".dsh-star-row .dsh-star-ask{opacity:.85;font-weight:400}"
|
|
5567
|
+
].join("");
|
|
5568
|
+
const STAR_CTA = {
|
|
5569
|
+
zh: "留颗 Star",
|
|
5570
|
+
en: "Star",
|
|
5571
|
+
ja: "スター",
|
|
5572
|
+
ko: "스타",
|
|
5573
|
+
fr: "Star",
|
|
5574
|
+
de: "Stern",
|
|
5575
|
+
it: "Stella",
|
|
5576
|
+
ru: "Звезда",
|
|
5577
|
+
es: "Estrella",
|
|
5578
|
+
pt: "Estrela"
|
|
5579
|
+
};
|
|
5580
|
+
/** 隐藏钮的可读名(★ 之外的独立动作,10 语同集)。 */
|
|
5581
|
+
const STAR_HIDE = {
|
|
5582
|
+
zh: "不再提示",
|
|
5583
|
+
en: "Dismiss",
|
|
5584
|
+
ja: "今後表示しない",
|
|
5585
|
+
ko: "다시 보지 않기",
|
|
5586
|
+
fr: "Masquer",
|
|
5587
|
+
de: "Ausblenden",
|
|
5588
|
+
it: "Nascondi",
|
|
5589
|
+
ru: "Скрыть",
|
|
5590
|
+
es: "Ocultar",
|
|
5591
|
+
pt: "Ocultar"
|
|
5592
|
+
};
|
|
5593
|
+
const STAR_S_STYLE_ID = "dsh-star-row-s-style";
|
|
5594
|
+
const STAR_S_STYLE = [
|
|
5595
|
+
".dsh-star-row-s{display:flex;align-items:center;gap:8px;flex-wrap:wrap;",
|
|
5596
|
+
"font-size:12px;line-height:1.5;color:inherit;opacity:.75;margin-top:10px;",
|
|
5597
|
+
"padding-top:8px;border-top:1px solid var(--dsw-alias-border-l2,currentColor)}",
|
|
5598
|
+
".dsh-star-row-s:hover{opacity:1}",
|
|
5599
|
+
".dsh-star-link{display:inline-flex;align-items:center;gap:6px;",
|
|
5600
|
+
"color:inherit;text-decoration:none}",
|
|
5601
|
+
".dsh-star-link:hover{text-decoration:underline}",
|
|
5602
|
+
".dsh-star-link svg{width:14px;height:14px;flex:none;display:block}",
|
|
5603
|
+
".dsh-star-row-s .dsh-star-ask{opacity:.85;font-weight:400}",
|
|
5604
|
+
".dsh-star-cta,.dsh-star-hide{font:inherit;font-size:11px;line-height:1;",
|
|
5605
|
+
"padding:4px 9px;border-radius:999px;border:1px solid currentColor;",
|
|
5606
|
+
"background:transparent;color:inherit;cursor:pointer;flex:none;opacity:.7}",
|
|
5607
|
+
".dsh-star-hide{padding:4px 7px}",
|
|
5608
|
+
".dsh-star-cta:hover,.dsh-star-hide:hover{opacity:1}"
|
|
5609
|
+
].join("");
|
|
5610
|
+
/** 宿主语言标签归一:取 `documentElement.lang` 的前缀,命中 STAR_LANGS 即用。 */
|
|
5611
|
+
function starLang() {
|
|
5612
|
+
const low = (typeof document !== "undefined" && document.documentElement.lang || "").toLowerCase();
|
|
5613
|
+
for (const cand of STAR_LANGS) if (low.startsWith(cand)) return cand;
|
|
5614
|
+
return "en";
|
|
5615
|
+
}
|
|
5616
|
+
/** 是否已被用户点掉话术(隐私模式下读失败按未关闭处理,只影响本次会话)。 */
|
|
5617
|
+
function starDismissed() {
|
|
5618
|
+
try {
|
|
5619
|
+
return localStorage.getItem("dsh.star." + STAR_NS + ".dismissed") === "1";
|
|
5620
|
+
} catch {
|
|
5621
|
+
return false;
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
/** 记住关闭态(隐私模式写失败不报错,话术本次隐藏、刷新复活)。 */
|
|
5625
|
+
function starDismiss() {
|
|
5626
|
+
try {
|
|
5627
|
+
localStorage.setItem("dsh.star." + STAR_NS + ".dismissed", "1");
|
|
5628
|
+
} catch {}
|
|
5629
|
+
}
|
|
5630
|
+
/** 一次性注入 S 档样式。 */
|
|
5631
|
+
function injectStarSStyle(d) {
|
|
5632
|
+
if (d.getElementById(STAR_S_STYLE_ID)) return;
|
|
5633
|
+
const style = d.createElement("style");
|
|
5634
|
+
style.id = STAR_S_STYLE_ID;
|
|
5635
|
+
style.textContent = STAR_S_STYLE;
|
|
5636
|
+
d.head.appendChild(style);
|
|
5637
|
+
}
|
|
5638
|
+
/** 打开仓库页:桌面壳里 window.open 可能被拦,锚点 click 才是两条路径都通的写法。 */
|
|
5639
|
+
function openRepo(d) {
|
|
5640
|
+
const a = d.createElement("a");
|
|
5641
|
+
a.href = REPO_URL;
|
|
5642
|
+
a.target = "_blank";
|
|
5643
|
+
a.rel = "noopener noreferrer";
|
|
5644
|
+
a.click();
|
|
5645
|
+
}
|
|
5646
|
+
/** S 档扩充:把裸链接行升级成「链接 | 话术 | ★ CTA | × 隐藏」,非 S 档返回 null 走原路径。 */
|
|
5647
|
+
function extendedStarRow(link, d) {
|
|
5648
|
+
if (starDismissed()) return link;
|
|
5649
|
+
injectStarSStyle(d);
|
|
5650
|
+
link.className = "dsh-star-link";
|
|
5651
|
+
const lang = starLang();
|
|
5652
|
+
const row = d.createElement("div");
|
|
5653
|
+
row.className = "dsh-star-row-s";
|
|
5654
|
+
row.appendChild(link);
|
|
5655
|
+
const ask = d.createElement("span");
|
|
5656
|
+
ask.className = "dsh-star-ask";
|
|
5657
|
+
ask.textContent = STAR_COPY[lang].ask;
|
|
5658
|
+
row.appendChild(ask);
|
|
5659
|
+
const cta = d.createElement("button");
|
|
5660
|
+
cta.type = "button";
|
|
5661
|
+
cta.className = "dsh-star-cta";
|
|
5662
|
+
cta.textContent = "★ " + STAR_CTA[lang];
|
|
5663
|
+
cta.addEventListener("click", (event) => {
|
|
5664
|
+
event.preventDefault();
|
|
5665
|
+
event.stopPropagation();
|
|
5666
|
+
openRepo(d);
|
|
5667
|
+
});
|
|
5668
|
+
row.appendChild(cta);
|
|
5669
|
+
const hide = d.createElement("button");
|
|
5670
|
+
hide.type = "button";
|
|
5671
|
+
hide.className = "dsh-star-hide";
|
|
5672
|
+
hide.textContent = "×";
|
|
5673
|
+
hide.title = STAR_HIDE[lang];
|
|
5674
|
+
hide.setAttribute("aria-label", STAR_HIDE[lang]);
|
|
5675
|
+
hide.addEventListener("click", (event) => {
|
|
5676
|
+
event.preventDefault();
|
|
5677
|
+
event.stopPropagation();
|
|
5678
|
+
starDismiss();
|
|
5679
|
+
if (row.parentNode) {
|
|
5680
|
+
row.parentNode.replaceChild(link, row);
|
|
5681
|
+
link.className = "dsh-star-row";
|
|
5682
|
+
}
|
|
5683
|
+
});
|
|
5684
|
+
row.appendChild(hide);
|
|
5685
|
+
return row;
|
|
5686
|
+
}
|
|
5687
|
+
/** 在目标文档上建出快车道行(一次性注入样式)。纯 DOM,React 仓经 ref 回调挂载。 */
|
|
5688
|
+
function mountStarRow(doc) {
|
|
5689
|
+
const d = doc ?? document;
|
|
5690
|
+
if (!d.getElementById(STYLE_ID)) {
|
|
5691
|
+
const tag = d.createElement("style");
|
|
5692
|
+
tag.id = STYLE_ID;
|
|
5693
|
+
tag.textContent = STYLE_CSS;
|
|
5694
|
+
d.head.appendChild(tag);
|
|
5695
|
+
}
|
|
5696
|
+
const match = REPO_URL.match(/github\.com\/([^/]+\/[^/#?]+)/);
|
|
5697
|
+
const repo = match ? match[1] : "drscrewdriver";
|
|
5698
|
+
const a = d.createElement("a");
|
|
5699
|
+
a.className = "dsh-star-row";
|
|
5700
|
+
a.href = REPO_URL;
|
|
5701
|
+
a.target = "_blank";
|
|
5702
|
+
a.rel = "noreferrer";
|
|
5703
|
+
a.dataset.starNs = STAR_NS;
|
|
5704
|
+
const svg = d.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
5705
|
+
svg.setAttribute("viewBox", "0 0 24 24");
|
|
5706
|
+
svg.setAttribute("aria-hidden", "true");
|
|
5707
|
+
const path = d.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
5708
|
+
path.setAttribute("fill", "currentColor");
|
|
5709
|
+
path.setAttribute("d", GITHUB_MARK_PATH);
|
|
5710
|
+
svg.appendChild(path);
|
|
5711
|
+
a.appendChild(svg);
|
|
5712
|
+
const label = d.createElement("span");
|
|
5713
|
+
label.textContent = repo;
|
|
5714
|
+
a.appendChild(label);
|
|
5715
|
+
const row = extendedStarRow(a, d);
|
|
5716
|
+
if (row) return row;
|
|
5717
|
+
return a;
|
|
5718
|
+
}
|
|
5719
|
+
//#endregion
|
|
5510
5720
|
//#region src/client/settings-card.tsx
|
|
5511
5721
|
/**
|
|
5512
5722
|
* BriefSettingsCard — the brief-sidebar settings card.
|
|
@@ -5693,7 +5903,9 @@ window.__ModuleLoader__.load({
|
|
|
5693
5903
|
onToggle: (next) => {
|
|
5694
5904
|
scope?.set("showMemorySlots", next);
|
|
5695
5905
|
}
|
|
5696
|
-
})), !unavailable && !snapshot.writable && (0, react.createElement)("p", { style: HINT_STYLE }, t("settings.readonly"))))
|
|
5906
|
+
})), !unavailable && !snapshot.writable && (0, react.createElement)("p", { style: HINT_STYLE }, t("settings.readonly"))), (0, react.createElement)("span", { ref: (node) => {
|
|
5907
|
+
if (node && !node.firstChild) node.appendChild(mountStarRow());
|
|
5908
|
+
} }));
|
|
5697
5909
|
}
|
|
5698
5910
|
//#endregion
|
|
5699
5911
|
//#region src/client/family-host.tsx
|