dsh-bash-terminal-ts 0.9.3 → 0.9.5

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.
@@ -7772,46 +7772,28 @@ function pickLang() {
7772
7772
  }
7773
7773
  return STAR_COPY.en;
7774
7774
  }
7775
- var STAR_CTA = {
7776
- zh: "\u7559\u9897 Star",
7777
- en: "Star",
7778
- ja: "\u30B9\u30BF\u30FC",
7779
- ko: "\uC2A4\uD0C0",
7780
- fr: "Star",
7781
- de: "Stern",
7782
- it: "Stella",
7783
- ru: "\u0417\u0432\u0435\u0437\u0434\u0430",
7784
- es: "Estrella",
7785
- pt: "Estrela"
7775
+ var STAR_VERSION = "0.9.5";
7776
+ var STAR_FOOT_COPY = {
7777
+ zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
7778
+ en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
7779
+ ja: { ask: "\u304A\u5F79\u306B\u7ACB\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F", star: "GitHub \u3067\u30B9\u30BF\u30FC", issue: "\u3054\u610F\u898B\u30FB\u4E0D\u5177\u5408\u5831\u544A" },
7780
+ ko: { ask: "\uC720\uC6A9\uD55C\uAC00\uC694?", star: "GitHub \uC5D0\uC11C \uC2A4\uD0C0", issue: "\uD53C\uB4DC\uBC31 / \uC774\uC288 \uC5F4\uAE30" },
7781
+ fr: { ask: "Utile ?", star: "Une \xE9toile sur GitHub", issue: "Retour / ouvrir un ticket" },
7782
+ de: { ask: "Hilfreich?", star: "Stern auf GitHub", issue: "Feedback / Issue \xF6ffnen" },
7783
+ it: { ask: "Ti \xE8 utile?", star: "Stella su GitHub", issue: "Feedback / apri una issue" },
7784
+ ru: { ask: "\u041F\u043E\u043B\u0435\u0437\u043D\u043E?", star: "\u0417\u0432\u0435\u0437\u0434\u0430 \u043D\u0430 GitHub", issue: "\u041E\u0442\u0437\u044B\u0432 / \u043E\u0442\u043A\u0440\u044B\u0442\u044C issue" },
7785
+ es: { ask: "\xBFTe resulta \xFAtil?", star: "Danos una estrella", issue: "Sugerencias / abrir issue" },
7786
+ pt: { ask: "Achou \xFAtil?", star: "D\xEA uma estrela no GitHub", issue: "Feedback / abrir uma issue" }
7786
7787
  };
7787
- var STAR_HIDE = {
7788
- zh: "\u4E0D\u518D\u63D0\u793A",
7789
- en: "Dismiss",
7790
- ja: "\u4ECA\u5F8C\u8868\u793A\u3057\u306A\u3044",
7791
- ko: "\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30",
7792
- fr: "Masquer",
7793
- de: "Ausblenden",
7794
- it: "Nascondi",
7795
- ru: "\u0421\u043A\u0440\u044B\u0442\u044C",
7796
- es: "Ocultar",
7797
- pt: "Ocultar"
7798
- };
7799
- var STAR_S_STYLE_ID = "dsh-star-row-s-style";
7800
- var STAR_S_STYLE = [
7801
- ".dsh-star-row-s{display:flex;align-items:center;gap:8px;flex-wrap:wrap;",
7802
- "font-size:12px;line-height:1.5;color:inherit;opacity:.75;margin-top:10px;",
7803
- "padding-top:8px;border-top:1px solid var(--dsw-alias-border-l2,currentColor)}",
7804
- ".dsh-star-row-s:hover{opacity:1}",
7805
- ".dsh-star-link{display:inline-flex;align-items:center;gap:6px;",
7806
- "color:inherit;text-decoration:none}",
7807
- ".dsh-star-link:hover{text-decoration:underline}",
7808
- ".dsh-star-link svg{width:14px;height:14px;flex:none;display:block}",
7809
- ".dsh-star-row-s .dsh-star-ask{opacity:.85;font-weight:400}",
7810
- ".dsh-star-cta,.dsh-star-hide{font:inherit;font-size:11px;line-height:1;",
7811
- "padding:4px 9px;border-radius:999px;border:1px solid currentColor;",
7812
- "background:transparent;color:inherit;cursor:pointer;flex:none;opacity:.7}",
7813
- ".dsh-star-hide{padding:4px 7px}",
7814
- ".dsh-star-cta:hover,.dsh-star-hide:hover{opacity:1}"
7788
+ var STAR_FOOT_STYLE_ID = "dsh-star-foot-style";
7789
+ var STAR_FOOT_STYLE = [
7790
+ ".dsh-star-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;",
7791
+ "font-size:12px;line-height:1.6;color:inherit;opacity:.72;margin-top:10px}",
7792
+ ".dsh-star-foot:hover{opacity:1}",
7793
+ ".dsh-star-foot .dsh-star-ver{opacity:.6;font-variant-numeric:tabular-nums}",
7794
+ ".dsh-star-foot .dsh-star-dot{opacity:.4}",
7795
+ ".dsh-star-foot a{color:inherit;text-decoration:none}",
7796
+ ".dsh-star-foot a:hover{text-decoration:underline}"
7815
7797
  ].join("");
7816
7798
  function starLang() {
7817
7799
  const tag = typeof document !== "undefined" && document.documentElement.lang || "";
@@ -7819,72 +7801,77 @@ function starLang() {
7819
7801
  for (const cand of STAR_LANGS) if (low.startsWith(cand)) return cand;
7820
7802
  return "en";
7821
7803
  }
7804
+ var STAR_DISMISS_KEY = "dsh.star." + STAR_NS + ".v2.dismissed";
7805
+ var STAR_DISMISS_KEY_V1 = "dsh.star." + STAR_NS + ".dismissed";
7822
7806
  function starDismissed() {
7823
7807
  try {
7824
- return localStorage.getItem("dsh.star." + STAR_NS + ".dismissed") === "1";
7808
+ if (localStorage.getItem(STAR_DISMISS_KEY_V1) !== null) {
7809
+ localStorage.removeItem(STAR_DISMISS_KEY_V1);
7810
+ }
7811
+ return localStorage.getItem(STAR_DISMISS_KEY) === "1";
7825
7812
  } catch {
7826
7813
  return false;
7827
7814
  }
7828
7815
  }
7829
7816
  function starDismiss() {
7830
7817
  try {
7831
- localStorage.setItem("dsh.star." + STAR_NS + ".dismissed", "1");
7818
+ localStorage.setItem(STAR_DISMISS_KEY, "1");
7832
7819
  } catch {
7833
7820
  }
7834
7821
  }
7835
- function injectStarSStyle(d) {
7836
- if (d.getElementById(STAR_S_STYLE_ID)) return;
7822
+ function injectFootStyle(d) {
7823
+ if (d.getElementById(STAR_FOOT_STYLE_ID)) return;
7837
7824
  const style = d.createElement("style");
7838
- style.id = STAR_S_STYLE_ID;
7839
- style.textContent = STAR_S_STYLE;
7825
+ style.id = STAR_FOOT_STYLE_ID;
7826
+ style.textContent = STAR_FOOT_STYLE;
7840
7827
  d.head.appendChild(style);
7841
7828
  }
7842
- function openRepo(d) {
7843
- const a = d.createElement("a");
7844
- a.href = REPO_URL;
7845
- a.target = "_blank";
7846
- a.rel = "noopener noreferrer";
7847
- a.click();
7829
+ function footItem(d, tag, text, href) {
7830
+ const el = d.createElement(tag);
7831
+ el.className = "dsh-star-ask";
7832
+ if (tag === "a" && href) {
7833
+ const a = el;
7834
+ a.href = href;
7835
+ a.target = "_blank";
7836
+ a.rel = "noopener noreferrer";
7837
+ }
7838
+ el.textContent = text;
7839
+ return el;
7840
+ }
7841
+ function footDot(d) {
7842
+ const dot = d.createElement("span");
7843
+ dot.className = "dsh-star-dot";
7844
+ dot.textContent = "\xB7";
7845
+ return dot;
7848
7846
  }
7849
- function extendedStarRow(link, d) {
7847
+ function extendedStarRow(neutral, d) {
7850
7848
  if (STAR_VARIANT !== "S") return null;
7851
- if (starDismissed()) return link;
7852
- injectStarSStyle(d);
7853
- link.className = "dsh-star-link";
7854
- const lang = starLang();
7849
+ if (starDismissed()) return null;
7850
+ injectFootStyle(d);
7851
+ const copy = STAR_FOOT_COPY[starLang()] ?? STAR_FOOT_COPY.en;
7852
+ const issuesUrl = REPO_URL.replace(/\/+$/, "") + "/issues/new";
7855
7853
  const row = d.createElement("div");
7856
- row.className = "dsh-star-row-s";
7857
- row.appendChild(link);
7858
- const ask = d.createElement("span");
7859
- ask.className = "dsh-star-ask";
7860
- ask.textContent = STAR_COPY[lang].ask;
7861
- row.appendChild(ask);
7862
- const cta = d.createElement("button");
7863
- cta.type = "button";
7864
- cta.className = "dsh-star-cta";
7865
- cta.textContent = "\u2605 " + STAR_CTA[lang];
7866
- cta.addEventListener("click", (event) => {
7867
- event.preventDefault();
7868
- event.stopPropagation();
7869
- openRepo(d);
7870
- });
7871
- row.appendChild(cta);
7872
- const hide = d.createElement("button");
7873
- hide.type = "button";
7874
- hide.className = "dsh-star-hide";
7875
- hide.textContent = "\xD7";
7876
- hide.title = STAR_HIDE[lang];
7877
- hide.setAttribute("aria-label", STAR_HIDE[lang]);
7878
- hide.addEventListener("click", (event) => {
7879
- event.preventDefault();
7880
- event.stopPropagation();
7854
+ row.className = "dsh-star-foot";
7855
+ const ver = d.createElement("span");
7856
+ ver.className = "dsh-star-ver";
7857
+ ver.textContent = "v" + STAR_VERSION;
7858
+ row.appendChild(ver);
7859
+ row.appendChild(footDot(d));
7860
+ row.appendChild(footItem(d, "span", copy.ask));
7861
+ const star = footItem(d, "a", "\u2B50 " + copy.star, REPO_URL);
7862
+ const issue = footItem(d, "a", "\u{1F4AC} " + copy.issue, issuesUrl);
7863
+ row.appendChild(star);
7864
+ row.appendChild(footDot(d));
7865
+ row.appendChild(issue);
7866
+ const collapse = () => {
7881
7867
  starDismiss();
7882
7868
  if (row.parentNode) {
7883
- row.parentNode.replaceChild(link, row);
7884
- link.className = "dsh-star-row";
7869
+ neutral.className = "dsh-star-row";
7870
+ row.parentNode.replaceChild(neutral, row);
7885
7871
  }
7886
- });
7887
- row.appendChild(hide);
7872
+ };
7873
+ star.addEventListener("click", collapse);
7874
+ issue.addEventListener("click", collapse);
7888
7875
  return row;
7889
7876
  }
7890
7877
  function mountStarRow(doc) {
package/dist/client.js CHANGED
@@ -7777,46 +7777,28 @@ function pickLang() {
7777
7777
  }
7778
7778
  return STAR_COPY.en;
7779
7779
  }
7780
- var STAR_CTA = {
7781
- zh: "\u7559\u9897 Star",
7782
- en: "Star",
7783
- ja: "\u30B9\u30BF\u30FC",
7784
- ko: "\uC2A4\uD0C0",
7785
- fr: "Star",
7786
- de: "Stern",
7787
- it: "Stella",
7788
- ru: "\u0417\u0432\u0435\u0437\u0434\u0430",
7789
- es: "Estrella",
7790
- pt: "Estrela"
7780
+ var STAR_VERSION = "0.9.5";
7781
+ var STAR_FOOT_COPY = {
7782
+ zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
7783
+ en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
7784
+ ja: { ask: "\u304A\u5F79\u306B\u7ACB\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F", star: "GitHub \u3067\u30B9\u30BF\u30FC", issue: "\u3054\u610F\u898B\u30FB\u4E0D\u5177\u5408\u5831\u544A" },
7785
+ ko: { ask: "\uC720\uC6A9\uD55C\uAC00\uC694?", star: "GitHub \uC5D0\uC11C \uC2A4\uD0C0", issue: "\uD53C\uB4DC\uBC31 / \uC774\uC288 \uC5F4\uAE30" },
7786
+ fr: { ask: "Utile ?", star: "Une \xE9toile sur GitHub", issue: "Retour / ouvrir un ticket" },
7787
+ de: { ask: "Hilfreich?", star: "Stern auf GitHub", issue: "Feedback / Issue \xF6ffnen" },
7788
+ it: { ask: "Ti \xE8 utile?", star: "Stella su GitHub", issue: "Feedback / apri una issue" },
7789
+ ru: { ask: "\u041F\u043E\u043B\u0435\u0437\u043D\u043E?", star: "\u0417\u0432\u0435\u0437\u0434\u0430 \u043D\u0430 GitHub", issue: "\u041E\u0442\u0437\u044B\u0432 / \u043E\u0442\u043A\u0440\u044B\u0442\u044C issue" },
7790
+ es: { ask: "\xBFTe resulta \xFAtil?", star: "Danos una estrella", issue: "Sugerencias / abrir issue" },
7791
+ pt: { ask: "Achou \xFAtil?", star: "D\xEA uma estrela no GitHub", issue: "Feedback / abrir uma issue" }
7791
7792
  };
7792
- var STAR_HIDE = {
7793
- zh: "\u4E0D\u518D\u63D0\u793A",
7794
- en: "Dismiss",
7795
- ja: "\u4ECA\u5F8C\u8868\u793A\u3057\u306A\u3044",
7796
- ko: "\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30",
7797
- fr: "Masquer",
7798
- de: "Ausblenden",
7799
- it: "Nascondi",
7800
- ru: "\u0421\u043A\u0440\u044B\u0442\u044C",
7801
- es: "Ocultar",
7802
- pt: "Ocultar"
7803
- };
7804
- var STAR_S_STYLE_ID = "dsh-star-row-s-style";
7805
- var STAR_S_STYLE = [
7806
- ".dsh-star-row-s{display:flex;align-items:center;gap:8px;flex-wrap:wrap;",
7807
- "font-size:12px;line-height:1.5;color:inherit;opacity:.75;margin-top:10px;",
7808
- "padding-top:8px;border-top:1px solid var(--dsw-alias-border-l2,currentColor)}",
7809
- ".dsh-star-row-s:hover{opacity:1}",
7810
- ".dsh-star-link{display:inline-flex;align-items:center;gap:6px;",
7811
- "color:inherit;text-decoration:none}",
7812
- ".dsh-star-link:hover{text-decoration:underline}",
7813
- ".dsh-star-link svg{width:14px;height:14px;flex:none;display:block}",
7814
- ".dsh-star-row-s .dsh-star-ask{opacity:.85;font-weight:400}",
7815
- ".dsh-star-cta,.dsh-star-hide{font:inherit;font-size:11px;line-height:1;",
7816
- "padding:4px 9px;border-radius:999px;border:1px solid currentColor;",
7817
- "background:transparent;color:inherit;cursor:pointer;flex:none;opacity:.7}",
7818
- ".dsh-star-hide{padding:4px 7px}",
7819
- ".dsh-star-cta:hover,.dsh-star-hide:hover{opacity:1}"
7793
+ var STAR_FOOT_STYLE_ID = "dsh-star-foot-style";
7794
+ var STAR_FOOT_STYLE = [
7795
+ ".dsh-star-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;",
7796
+ "font-size:12px;line-height:1.6;color:inherit;opacity:.72;margin-top:10px}",
7797
+ ".dsh-star-foot:hover{opacity:1}",
7798
+ ".dsh-star-foot .dsh-star-ver{opacity:.6;font-variant-numeric:tabular-nums}",
7799
+ ".dsh-star-foot .dsh-star-dot{opacity:.4}",
7800
+ ".dsh-star-foot a{color:inherit;text-decoration:none}",
7801
+ ".dsh-star-foot a:hover{text-decoration:underline}"
7820
7802
  ].join("");
7821
7803
  function starLang() {
7822
7804
  const tag = typeof document !== "undefined" && document.documentElement.lang || "";
@@ -7824,72 +7806,77 @@ function starLang() {
7824
7806
  for (const cand of STAR_LANGS) if (low.startsWith(cand)) return cand;
7825
7807
  return "en";
7826
7808
  }
7809
+ var STAR_DISMISS_KEY = "dsh.star." + STAR_NS + ".v2.dismissed";
7810
+ var STAR_DISMISS_KEY_V1 = "dsh.star." + STAR_NS + ".dismissed";
7827
7811
  function starDismissed() {
7828
7812
  try {
7829
- return localStorage.getItem("dsh.star." + STAR_NS + ".dismissed") === "1";
7813
+ if (localStorage.getItem(STAR_DISMISS_KEY_V1) !== null) {
7814
+ localStorage.removeItem(STAR_DISMISS_KEY_V1);
7815
+ }
7816
+ return localStorage.getItem(STAR_DISMISS_KEY) === "1";
7830
7817
  } catch {
7831
7818
  return false;
7832
7819
  }
7833
7820
  }
7834
7821
  function starDismiss() {
7835
7822
  try {
7836
- localStorage.setItem("dsh.star." + STAR_NS + ".dismissed", "1");
7823
+ localStorage.setItem(STAR_DISMISS_KEY, "1");
7837
7824
  } catch {
7838
7825
  }
7839
7826
  }
7840
- function injectStarSStyle(d) {
7841
- if (d.getElementById(STAR_S_STYLE_ID)) return;
7827
+ function injectFootStyle(d) {
7828
+ if (d.getElementById(STAR_FOOT_STYLE_ID)) return;
7842
7829
  const style = d.createElement("style");
7843
- style.id = STAR_S_STYLE_ID;
7844
- style.textContent = STAR_S_STYLE;
7830
+ style.id = STAR_FOOT_STYLE_ID;
7831
+ style.textContent = STAR_FOOT_STYLE;
7845
7832
  d.head.appendChild(style);
7846
7833
  }
7847
- function openRepo(d) {
7848
- const a = d.createElement("a");
7849
- a.href = REPO_URL;
7850
- a.target = "_blank";
7851
- a.rel = "noopener noreferrer";
7852
- a.click();
7834
+ function footItem(d, tag, text, href) {
7835
+ const el = d.createElement(tag);
7836
+ el.className = "dsh-star-ask";
7837
+ if (tag === "a" && href) {
7838
+ const a = el;
7839
+ a.href = href;
7840
+ a.target = "_blank";
7841
+ a.rel = "noopener noreferrer";
7842
+ }
7843
+ el.textContent = text;
7844
+ return el;
7845
+ }
7846
+ function footDot(d) {
7847
+ const dot = d.createElement("span");
7848
+ dot.className = "dsh-star-dot";
7849
+ dot.textContent = "\xB7";
7850
+ return dot;
7853
7851
  }
7854
- function extendedStarRow(link, d) {
7852
+ function extendedStarRow(neutral, d) {
7855
7853
  if (STAR_VARIANT !== "S") return null;
7856
- if (starDismissed()) return link;
7857
- injectStarSStyle(d);
7858
- link.className = "dsh-star-link";
7859
- const lang = starLang();
7854
+ if (starDismissed()) return null;
7855
+ injectFootStyle(d);
7856
+ const copy = STAR_FOOT_COPY[starLang()] ?? STAR_FOOT_COPY.en;
7857
+ const issuesUrl = REPO_URL.replace(/\/+$/, "") + "/issues/new";
7860
7858
  const row = d.createElement("div");
7861
- row.className = "dsh-star-row-s";
7862
- row.appendChild(link);
7863
- const ask = d.createElement("span");
7864
- ask.className = "dsh-star-ask";
7865
- ask.textContent = STAR_COPY[lang].ask;
7866
- row.appendChild(ask);
7867
- const cta = d.createElement("button");
7868
- cta.type = "button";
7869
- cta.className = "dsh-star-cta";
7870
- cta.textContent = "\u2605 " + STAR_CTA[lang];
7871
- cta.addEventListener("click", (event) => {
7872
- event.preventDefault();
7873
- event.stopPropagation();
7874
- openRepo(d);
7875
- });
7876
- row.appendChild(cta);
7877
- const hide = d.createElement("button");
7878
- hide.type = "button";
7879
- hide.className = "dsh-star-hide";
7880
- hide.textContent = "\xD7";
7881
- hide.title = STAR_HIDE[lang];
7882
- hide.setAttribute("aria-label", STAR_HIDE[lang]);
7883
- hide.addEventListener("click", (event) => {
7884
- event.preventDefault();
7885
- event.stopPropagation();
7859
+ row.className = "dsh-star-foot";
7860
+ const ver = d.createElement("span");
7861
+ ver.className = "dsh-star-ver";
7862
+ ver.textContent = "v" + STAR_VERSION;
7863
+ row.appendChild(ver);
7864
+ row.appendChild(footDot(d));
7865
+ row.appendChild(footItem(d, "span", copy.ask));
7866
+ const star = footItem(d, "a", "\u2B50 " + copy.star, REPO_URL);
7867
+ const issue = footItem(d, "a", "\u{1F4AC} " + copy.issue, issuesUrl);
7868
+ row.appendChild(star);
7869
+ row.appendChild(footDot(d));
7870
+ row.appendChild(issue);
7871
+ const collapse = () => {
7886
7872
  starDismiss();
7887
7873
  if (row.parentNode) {
7888
- row.parentNode.replaceChild(link, row);
7889
- link.className = "dsh-star-row";
7874
+ neutral.className = "dsh-star-row";
7875
+ row.parentNode.replaceChild(neutral, row);
7890
7876
  }
7891
- });
7892
- row.appendChild(hide);
7877
+ };
7878
+ star.addEventListener("click", collapse);
7879
+ issue.addEventListener("click", collapse);
7893
7880
  return row;
7894
7881
  }
7895
7882
  function mountStarRow(doc) {
package/dsh.plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "dsh-bash-terminal-ts",
3
3
  "name": "dsh-bash-terminal-ts",
4
- "version": "0.9.3",
4
+ "version": "0.9.5",
5
5
  "description": {
6
6
  "en": "One shell tool that runs commands through PowerShell, Git Bash, MSYS2, WSL or Niubash on Windows, plus an embedded terminal for the bottom dock with per-shell activation switches and a default-shell fallback chain.",
7
7
  "zh": "一个 shell 工具,可在 Windows 上通过 PowerShell / Git Bash / MSYS2 / WSL / Niubash 执行命令;另提供底部工作台的内嵌终端,支持按 shell 激活开关与默认 shell 回落链。",
package/lib/client.js CHANGED
@@ -7777,46 +7777,28 @@ function pickLang() {
7777
7777
  }
7778
7778
  return STAR_COPY.en;
7779
7779
  }
7780
- var STAR_CTA = {
7781
- zh: "\u7559\u9897 Star",
7782
- en: "Star",
7783
- ja: "\u30B9\u30BF\u30FC",
7784
- ko: "\uC2A4\uD0C0",
7785
- fr: "Star",
7786
- de: "Stern",
7787
- it: "Stella",
7788
- ru: "\u0417\u0432\u0435\u0437\u0434\u0430",
7789
- es: "Estrella",
7790
- pt: "Estrela"
7780
+ var STAR_VERSION = "0.9.5";
7781
+ var STAR_FOOT_COPY = {
7782
+ zh: { ask: "\u89C9\u5F97\u597D\u7528\uFF1F", star: "\u53BB GitHub \u70B9\u4E2A Star", issue: "\u53CD\u9988\u5EFA\u8BAE / \u63D0 issue" },
7783
+ en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
7784
+ ja: { ask: "\u304A\u5F79\u306B\u7ACB\u3063\u3066\u3044\u307E\u3059\u304B\uFF1F", star: "GitHub \u3067\u30B9\u30BF\u30FC", issue: "\u3054\u610F\u898B\u30FB\u4E0D\u5177\u5408\u5831\u544A" },
7785
+ ko: { ask: "\uC720\uC6A9\uD55C\uAC00\uC694?", star: "GitHub \uC5D0\uC11C \uC2A4\uD0C0", issue: "\uD53C\uB4DC\uBC31 / \uC774\uC288 \uC5F4\uAE30" },
7786
+ fr: { ask: "Utile ?", star: "Une \xE9toile sur GitHub", issue: "Retour / ouvrir un ticket" },
7787
+ de: { ask: "Hilfreich?", star: "Stern auf GitHub", issue: "Feedback / Issue \xF6ffnen" },
7788
+ it: { ask: "Ti \xE8 utile?", star: "Stella su GitHub", issue: "Feedback / apri una issue" },
7789
+ ru: { ask: "\u041F\u043E\u043B\u0435\u0437\u043D\u043E?", star: "\u0417\u0432\u0435\u0437\u0434\u0430 \u043D\u0430 GitHub", issue: "\u041E\u0442\u0437\u044B\u0432 / \u043E\u0442\u043A\u0440\u044B\u0442\u044C issue" },
7790
+ es: { ask: "\xBFTe resulta \xFAtil?", star: "Danos una estrella", issue: "Sugerencias / abrir issue" },
7791
+ pt: { ask: "Achou \xFAtil?", star: "D\xEA uma estrela no GitHub", issue: "Feedback / abrir uma issue" }
7791
7792
  };
7792
- var STAR_HIDE = {
7793
- zh: "\u4E0D\u518D\u63D0\u793A",
7794
- en: "Dismiss",
7795
- ja: "\u4ECA\u5F8C\u8868\u793A\u3057\u306A\u3044",
7796
- ko: "\uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30",
7797
- fr: "Masquer",
7798
- de: "Ausblenden",
7799
- it: "Nascondi",
7800
- ru: "\u0421\u043A\u0440\u044B\u0442\u044C",
7801
- es: "Ocultar",
7802
- pt: "Ocultar"
7803
- };
7804
- var STAR_S_STYLE_ID = "dsh-star-row-s-style";
7805
- var STAR_S_STYLE = [
7806
- ".dsh-star-row-s{display:flex;align-items:center;gap:8px;flex-wrap:wrap;",
7807
- "font-size:12px;line-height:1.5;color:inherit;opacity:.75;margin-top:10px;",
7808
- "padding-top:8px;border-top:1px solid var(--dsw-alias-border-l2,currentColor)}",
7809
- ".dsh-star-row-s:hover{opacity:1}",
7810
- ".dsh-star-link{display:inline-flex;align-items:center;gap:6px;",
7811
- "color:inherit;text-decoration:none}",
7812
- ".dsh-star-link:hover{text-decoration:underline}",
7813
- ".dsh-star-link svg{width:14px;height:14px;flex:none;display:block}",
7814
- ".dsh-star-row-s .dsh-star-ask{opacity:.85;font-weight:400}",
7815
- ".dsh-star-cta,.dsh-star-hide{font:inherit;font-size:11px;line-height:1;",
7816
- "padding:4px 9px;border-radius:999px;border:1px solid currentColor;",
7817
- "background:transparent;color:inherit;cursor:pointer;flex:none;opacity:.7}",
7818
- ".dsh-star-hide{padding:4px 7px}",
7819
- ".dsh-star-cta:hover,.dsh-star-hide:hover{opacity:1}"
7793
+ var STAR_FOOT_STYLE_ID = "dsh-star-foot-style";
7794
+ var STAR_FOOT_STYLE = [
7795
+ ".dsh-star-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;",
7796
+ "font-size:12px;line-height:1.6;color:inherit;opacity:.72;margin-top:10px}",
7797
+ ".dsh-star-foot:hover{opacity:1}",
7798
+ ".dsh-star-foot .dsh-star-ver{opacity:.6;font-variant-numeric:tabular-nums}",
7799
+ ".dsh-star-foot .dsh-star-dot{opacity:.4}",
7800
+ ".dsh-star-foot a{color:inherit;text-decoration:none}",
7801
+ ".dsh-star-foot a:hover{text-decoration:underline}"
7820
7802
  ].join("");
7821
7803
  function starLang() {
7822
7804
  const tag = typeof document !== "undefined" && document.documentElement.lang || "";
@@ -7824,72 +7806,77 @@ function starLang() {
7824
7806
  for (const cand of STAR_LANGS) if (low.startsWith(cand)) return cand;
7825
7807
  return "en";
7826
7808
  }
7809
+ var STAR_DISMISS_KEY = "dsh.star." + STAR_NS + ".v2.dismissed";
7810
+ var STAR_DISMISS_KEY_V1 = "dsh.star." + STAR_NS + ".dismissed";
7827
7811
  function starDismissed() {
7828
7812
  try {
7829
- return localStorage.getItem("dsh.star." + STAR_NS + ".dismissed") === "1";
7813
+ if (localStorage.getItem(STAR_DISMISS_KEY_V1) !== null) {
7814
+ localStorage.removeItem(STAR_DISMISS_KEY_V1);
7815
+ }
7816
+ return localStorage.getItem(STAR_DISMISS_KEY) === "1";
7830
7817
  } catch {
7831
7818
  return false;
7832
7819
  }
7833
7820
  }
7834
7821
  function starDismiss() {
7835
7822
  try {
7836
- localStorage.setItem("dsh.star." + STAR_NS + ".dismissed", "1");
7823
+ localStorage.setItem(STAR_DISMISS_KEY, "1");
7837
7824
  } catch {
7838
7825
  }
7839
7826
  }
7840
- function injectStarSStyle(d) {
7841
- if (d.getElementById(STAR_S_STYLE_ID)) return;
7827
+ function injectFootStyle(d) {
7828
+ if (d.getElementById(STAR_FOOT_STYLE_ID)) return;
7842
7829
  const style = d.createElement("style");
7843
- style.id = STAR_S_STYLE_ID;
7844
- style.textContent = STAR_S_STYLE;
7830
+ style.id = STAR_FOOT_STYLE_ID;
7831
+ style.textContent = STAR_FOOT_STYLE;
7845
7832
  d.head.appendChild(style);
7846
7833
  }
7847
- function openRepo(d) {
7848
- const a = d.createElement("a");
7849
- a.href = REPO_URL;
7850
- a.target = "_blank";
7851
- a.rel = "noopener noreferrer";
7852
- a.click();
7834
+ function footItem(d, tag, text, href) {
7835
+ const el = d.createElement(tag);
7836
+ el.className = "dsh-star-ask";
7837
+ if (tag === "a" && href) {
7838
+ const a = el;
7839
+ a.href = href;
7840
+ a.target = "_blank";
7841
+ a.rel = "noopener noreferrer";
7842
+ }
7843
+ el.textContent = text;
7844
+ return el;
7845
+ }
7846
+ function footDot(d) {
7847
+ const dot = d.createElement("span");
7848
+ dot.className = "dsh-star-dot";
7849
+ dot.textContent = "\xB7";
7850
+ return dot;
7853
7851
  }
7854
- function extendedStarRow(link, d) {
7852
+ function extendedStarRow(neutral, d) {
7855
7853
  if (STAR_VARIANT !== "S") return null;
7856
- if (starDismissed()) return link;
7857
- injectStarSStyle(d);
7858
- link.className = "dsh-star-link";
7859
- const lang = starLang();
7854
+ if (starDismissed()) return null;
7855
+ injectFootStyle(d);
7856
+ const copy = STAR_FOOT_COPY[starLang()] ?? STAR_FOOT_COPY.en;
7857
+ const issuesUrl = REPO_URL.replace(/\/+$/, "") + "/issues/new";
7860
7858
  const row = d.createElement("div");
7861
- row.className = "dsh-star-row-s";
7862
- row.appendChild(link);
7863
- const ask = d.createElement("span");
7864
- ask.className = "dsh-star-ask";
7865
- ask.textContent = STAR_COPY[lang].ask;
7866
- row.appendChild(ask);
7867
- const cta = d.createElement("button");
7868
- cta.type = "button";
7869
- cta.className = "dsh-star-cta";
7870
- cta.textContent = "\u2605 " + STAR_CTA[lang];
7871
- cta.addEventListener("click", (event) => {
7872
- event.preventDefault();
7873
- event.stopPropagation();
7874
- openRepo(d);
7875
- });
7876
- row.appendChild(cta);
7877
- const hide = d.createElement("button");
7878
- hide.type = "button";
7879
- hide.className = "dsh-star-hide";
7880
- hide.textContent = "\xD7";
7881
- hide.title = STAR_HIDE[lang];
7882
- hide.setAttribute("aria-label", STAR_HIDE[lang]);
7883
- hide.addEventListener("click", (event) => {
7884
- event.preventDefault();
7885
- event.stopPropagation();
7859
+ row.className = "dsh-star-foot";
7860
+ const ver = d.createElement("span");
7861
+ ver.className = "dsh-star-ver";
7862
+ ver.textContent = "v" + STAR_VERSION;
7863
+ row.appendChild(ver);
7864
+ row.appendChild(footDot(d));
7865
+ row.appendChild(footItem(d, "span", copy.ask));
7866
+ const star = footItem(d, "a", "\u2B50 " + copy.star, REPO_URL);
7867
+ const issue = footItem(d, "a", "\u{1F4AC} " + copy.issue, issuesUrl);
7868
+ row.appendChild(star);
7869
+ row.appendChild(footDot(d));
7870
+ row.appendChild(issue);
7871
+ const collapse = () => {
7886
7872
  starDismiss();
7887
7873
  if (row.parentNode) {
7888
- row.parentNode.replaceChild(link, row);
7889
- link.className = "dsh-star-row";
7874
+ neutral.className = "dsh-star-row";
7875
+ row.parentNode.replaceChild(neutral, row);
7890
7876
  }
7891
- });
7892
- row.appendChild(hide);
7877
+ };
7878
+ star.addEventListener("click", collapse);
7879
+ issue.addEventListener("click", collapse);
7893
7880
  return row;
7894
7881
  }
7895
7882
  function mountStarRow(doc) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-bash-terminal-ts",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "tag": "latest"
@@ -70,55 +70,42 @@ function pickLang(): { ask: string } {
70
70
  return STAR_COPY.en!;
71
71
  }
72
72
 
73
- // STAR:EXTENDED:BEGIN — S 档专用段(话术 + ★ CTA + 隐藏钮)。sync 对 A/L 副本整段剥除,
74
- // 所以本段怎么改都不会波及已发布的 A/L 副本。S 档渲染:GitHub SVG + owner/repo 链接 |
75
- // star.ask | ★ star.cta(打开仓库页)| × star.hide(收话术与两钮)。★ 是「去点星」的
76
- // 动作,隐藏才是「别打扰我」;两者绝不合流——旧版把点星写成隐藏,用户点 ★ 只落个静默收起,
77
- // 仓库页一次都没打开过(2.0.25 实测缺陷)。隐藏写 localStorage `dsh.star.<ns>.dismissed=1`,
78
- // 链接段永留。文案 10 语随 documentElement.lang。
79
- const STAR_CTA: Record<string, string> = {
80
- zh: "留颗 Star",
81
- en: "Star",
82
- ja: "スター",
83
- ko: "스타",
84
- fr: "Star",
85
- de: "Stern",
86
- it: "Stella",
87
- ru: "Звезда",
88
- es: "Estrella",
89
- pt: "Estrela",
90
- };
73
+ // STAR:EXTENDED:BEGIN — S 档专用段(v2:一行页脚 = 版本 · 问句 · ⭐ star · 💬 issue)。
74
+ // 学产品页脚的写法:**不建按钮、不画边框、不留关闭钮**,整行只有两个 <a>。
75
+ // 旧 S 档(≤2.0.25)把 GitHub 链接 + 长话术 + ★ 胶囊 + × 胶囊四个元素挤在一行并压一条
76
+ // 顶部分割线:★ 与整行链接同义(都开仓库页)、× 是负向首因,用户先想关掉而不是点星。
77
+ // v2 收成截图那种一段式:版本打头(sync 从各仓 package.json 烘进来,--check 即版本哨兵),
78
+ // 短问句「觉得好用?」只问不讲道理,两个动作(star / 开 issue)都是纯文字链接。
79
+ // 关闭态:点过任一链接即自动收成中性一行(localStorage `dsh.star.<ns>.v2.dismissed=1`),
80
+ // 不再提供可见的 ×;旧键(≤2.0.25 把点星误写成关闭)读到即清、**不迁值**。
81
+ // 文案 10 语随 documentElement.lang;本段由 sync 对 A/L 副本整段剥除。
82
+
83
+ // STAR-VER:BEGIN — generated by sync.mjs from <repo>/package.json; edit the real source instead
84
+ const STAR_VERSION = "0.9.5";
85
+ // STAR-VER:END
91
86
 
92
- /** 隐藏钮的可读名(★ 之外的独立动作,10 语同集)。 */
93
- const STAR_HIDE: Record<string, string> = {
94
- zh: "不再提示",
95
- en: "Dismiss",
96
- ja: "今後表示しない",
97
- ko: "다시 보지 않기",
98
- fr: "Masquer",
99
- de: "Ausblenden",
100
- it: "Nascondi",
101
- ru: "Скрыть",
102
- es: "Ocultar",
103
- pt: "Ocultar",
87
+ const STAR_FOOT_COPY: Record<string, { ask: string; star: string; issue: string }> = {
88
+ zh: { ask: "觉得好用?", star: "去 GitHub 点个 Star", issue: "反馈建议 / 提 issue" },
89
+ en: { ask: "Finding it useful?", star: "Star on GitHub", issue: "Feedback / open an issue" },
90
+ ja: { ask: "お役に立っていますか?", star: "GitHub でスター", issue: "ご意見・不具合報告" },
91
+ ko: { ask: "유용한가요?", star: "GitHub 에서 스타", issue: "피드백 / 이슈 열기" },
92
+ fr: { ask: "Utile ?", star: "Une étoile sur GitHub", issue: "Retour / ouvrir un ticket" },
93
+ de: { ask: "Hilfreich?", star: "Stern auf GitHub", issue: "Feedback / Issue öffnen" },
94
+ it: { ask: "Ti è utile?", star: "Stella su GitHub", issue: "Feedback / apri una issue" },
95
+ ru: { ask: "Полезно?", star: "Звезда на GitHub", issue: "Отзыв / открыть issue" },
96
+ es: { ask: "¿Te resulta útil?", star: "Danos una estrella", issue: "Sugerencias / abrir issue" },
97
+ pt: { ask: "Achou útil?", star: "Dê uma estrela no GitHub", issue: "Feedback / abrir uma issue" },
104
98
  };
105
99
 
106
- const STAR_S_STYLE_ID = "dsh-star-row-s-style";
107
- const STAR_S_STYLE = [
108
- ".dsh-star-row-s{display:flex;align-items:center;gap:8px;flex-wrap:wrap;",
109
- "font-size:12px;line-height:1.5;color:inherit;opacity:.75;margin-top:10px;",
110
- "padding-top:8px;border-top:1px solid var(--dsw-alias-border-l2,currentColor)}",
111
- ".dsh-star-row-s:hover{opacity:1}",
112
- ".dsh-star-link{display:inline-flex;align-items:center;gap:6px;",
113
- "color:inherit;text-decoration:none}",
114
- ".dsh-star-link:hover{text-decoration:underline}",
115
- ".dsh-star-link svg{width:14px;height:14px;flex:none;display:block}",
116
- ".dsh-star-row-s .dsh-star-ask{opacity:.85;font-weight:400}",
117
- ".dsh-star-cta,.dsh-star-hide{font:inherit;font-size:11px;line-height:1;",
118
- "padding:4px 9px;border-radius:999px;border:1px solid currentColor;",
119
- "background:transparent;color:inherit;cursor:pointer;flex:none;opacity:.7}",
120
- ".dsh-star-hide{padding:4px 7px}",
121
- ".dsh-star-cta:hover,.dsh-star-hide:hover{opacity:1}",
100
+ const STAR_FOOT_STYLE_ID = "dsh-star-foot-style";
101
+ const STAR_FOOT_STYLE = [
102
+ ".dsh-star-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;",
103
+ "font-size:12px;line-height:1.6;color:inherit;opacity:.72;margin-top:10px}",
104
+ ".dsh-star-foot:hover{opacity:1}",
105
+ ".dsh-star-foot .dsh-star-ver{opacity:.6;font-variant-numeric:tabular-nums}",
106
+ ".dsh-star-foot .dsh-star-dot{opacity:.4}",
107
+ ".dsh-star-foot a{color:inherit;text-decoration:none}",
108
+ ".dsh-star-foot a:hover{text-decoration:underline}",
122
109
  ].join("");
123
110
 
124
111
  /** 宿主语言标签归一:取 `documentElement.lang` 的前缀,命中 STAR_LANGS 即用。 */
@@ -129,10 +116,19 @@ function starLang(): string {
129
116
  return "en";
130
117
  }
131
118
 
119
+ /** 关闭态新键(v2)。**必须换键**:≤2.0.25 把「点 ★」误写成了关闭,旧键里的 1 是误判产物。 */
120
+ const STAR_DISMISS_KEY = "dsh.star." + STAR_NS + ".v2.dismissed";
121
+ /** 旧键(脏数据源):读到即清掉,**不迁值**——迁过来等于把旧 bug 固化。 */
122
+ const STAR_DISMISS_KEY_V1 = "dsh.star." + STAR_NS + ".dismissed";
123
+
132
124
  /** 是否已被用户点掉话术(隐私模式下读失败按未关闭处理,只影响本次会话)。 */
133
125
  function starDismissed(): boolean {
134
126
  try {
135
- return localStorage.getItem("dsh.star." + STAR_NS + ".dismissed") === "1";
127
+ // 一次性清旧键:旧版点 ★ 就写 1,凡中招的用户会被它永久按成裸链接。
128
+ if (localStorage.getItem(STAR_DISMISS_KEY_V1) !== null) {
129
+ localStorage.removeItem(STAR_DISMISS_KEY_V1);
130
+ }
131
+ return localStorage.getItem(STAR_DISMISS_KEY) === "1";
136
132
  } catch {
137
133
  return false;
138
134
  }
@@ -141,72 +137,78 @@ function starDismissed(): boolean {
141
137
  /** 记住关闭态(隐私模式写失败不报错,话术本次隐藏、刷新复活)。 */
142
138
  function starDismiss(): void {
143
139
  try {
144
- localStorage.setItem("dsh.star." + STAR_NS + ".dismissed", "1");
140
+ localStorage.setItem(STAR_DISMISS_KEY, "1");
145
141
  } catch {
146
142
  /* noop */
147
143
  }
148
144
  }
149
145
 
150
- /** 一次性注入 S 档样式。 */
151
- function injectStarSStyle(d: Document): void {
152
- if (d.getElementById(STAR_S_STYLE_ID)) return;
146
+ /** 一次性注入页脚样式。 */
147
+ function injectFootStyle(d: Document): void {
148
+ if (d.getElementById(STAR_FOOT_STYLE_ID)) return;
153
149
  const style = d.createElement("style");
154
- style.id = STAR_S_STYLE_ID;
155
- style.textContent = STAR_S_STYLE;
150
+ style.id = STAR_FOOT_STYLE_ID;
151
+ style.textContent = STAR_FOOT_STYLE;
156
152
  d.head.appendChild(style);
157
153
  }
158
154
 
159
- /** 打开仓库页:桌面壳里 window.open 可能被拦,锚点 click 才是两条路径都通的写法。 */
160
- function openRepo(d: Document): void {
161
- const a = d.createElement("a");
162
- a.href = REPO_URL;
163
- a.target = "_blank";
164
- a.rel = "noopener noreferrer";
165
- a.click();
155
+ /** 页脚里的一段:可点即 <a>,纯文字即 <span>。 */
156
+ function footItem(d: Document, tag: "a" | "span", text: string, href?: string): HTMLElement {
157
+ const el = d.createElement(tag);
158
+ el.className = "dsh-star-ask";
159
+ if (tag === "a" && href) {
160
+ const a = el as HTMLAnchorElement;
161
+ a.href = href;
162
+ a.target = "_blank";
163
+ a.rel = "noopener noreferrer";
164
+ }
165
+ el.textContent = text;
166
+ return el;
167
+ }
168
+
169
+ /** 分隔点。 */
170
+ function footDot(d: Document): HTMLElement {
171
+ const dot = d.createElement("span");
172
+ dot.className = "dsh-star-dot";
173
+ dot.textContent = "·";
174
+ return dot;
166
175
  }
167
176
 
168
- /** S 档扩充:把裸链接行升级成「链接 | 话术 | ★ CTA | × 隐藏」,非 S 档返回 null 走原路径。 */
169
- function extendedStarRow(link: HTMLElement, d: Document): HTMLElement | null {
177
+ /**
178
+ * S 档:一行页脚;非 S 档或已关掉过话术时返回 null(走裸链接原路径)。
179
+ * 点过任一链接 → 记关闭 + 换回中性一行,链接本身照常跳转(不 preventDefault)。
180
+ */
181
+ function extendedStarRow(neutral: HTMLAnchorElement, d: Document): HTMLElement | null {
170
182
  if (STAR_VARIANT !== "S") return null;
171
- if (starDismissed()) return link;
172
- injectStarSStyle(d);
173
- link.className = "dsh-star-link";
174
- const lang = starLang();
183
+ if (starDismissed()) return null;
184
+ injectFootStyle(d);
185
+ const copy = STAR_FOOT_COPY[starLang()] ?? STAR_FOOT_COPY.en!;
186
+ const issuesUrl = REPO_URL.replace(/\/+$/, "") + "/issues/new";
175
187
  const row = d.createElement("div");
176
- row.className = "dsh-star-row-s";
177
- row.appendChild(link);
178
- const ask = d.createElement("span");
179
- ask.className = "dsh-star-ask";
180
- ask.textContent = STAR_COPY[lang]!.ask;
181
- row.appendChild(ask);
182
- const cta = d.createElement("button");
183
- cta.type = "button";
184
- cta.className = "dsh-star-cta";
185
- cta.textContent = "★ " + STAR_CTA[lang];
186
- cta.addEventListener("click", (event: Event) => {
187
- // 行内的 ★ 是「去点星」:打开仓库页,不隐藏。
188
- event.preventDefault();
189
- event.stopPropagation();
190
- openRepo(d);
191
- });
192
- row.appendChild(cta);
193
- const hide = d.createElement("button");
194
- hide.type = "button";
195
- hide.className = "dsh-star-hide";
196
- hide.textContent = "×";
197
- hide.title = STAR_HIDE[lang]!;
198
- hide.setAttribute("aria-label", STAR_HIDE[lang]!);
199
- hide.addEventListener("click", (event: Event) => {
200
- // 隐藏才是「别打扰我」:收话术与两钮,链接段永留。
201
- event.preventDefault();
202
- event.stopPropagation();
188
+ row.className = "dsh-star-foot";
189
+
190
+ const ver = d.createElement("span");
191
+ ver.className = "dsh-star-ver";
192
+ ver.textContent = "v" + STAR_VERSION;
193
+ row.appendChild(ver);
194
+ row.appendChild(footDot(d));
195
+ row.appendChild(footItem(d, "span", copy.ask));
196
+ const star = footItem(d, "a", "⭐ " + copy.star, REPO_URL);
197
+ const issue = footItem(d, "a", "💬 " + copy.issue, issuesUrl);
198
+ row.appendChild(star);
199
+ row.appendChild(footDot(d));
200
+ row.appendChild(issue);
201
+
202
+ // 点过就收敛:话术只打扰一次,链接段以后一直留着(和 v1 的 dismissed 语义一致)。
203
+ const collapse = (): void => {
203
204
  starDismiss();
204
205
  if (row.parentNode) {
205
- row.parentNode.replaceChild(link, row);
206
- link.className = "dsh-star-row";
206
+ neutral.className = "dsh-star-row";
207
+ row.parentNode.replaceChild(neutral, row);
207
208
  }
208
- });
209
- row.appendChild(hide);
209
+ };
210
+ star.addEventListener("click", collapse);
211
+ issue.addEventListener("click", collapse);
210
212
  return row;
211
213
  }
212
214
  // STAR:EXTENDED:END