@pan-stack/test 0.0.9 → 0.0.10

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.
@@ -4294,12 +4294,14 @@ function studioDialog() {
4294
4294
  if (st.cli === false) { body.replaceChildren(h('p', { 'data-testid': 'studio-cli' }, st.error || T('C\u1EA7n Pan CLI \u0111\u1EC3 ph\xE1t h\xE0nh l\xEAn Pan Studio.'))); return; }
4295
4295
  if (!st.login) { body.replaceChildren(h('p', { 'data-testid': 'studio-login' }, T('M\xE1y n\xE0y ch\u01B0a \u0111\u0103ng nh\u1EADp Pan Studio. \u0110\u0103ng nh\u1EADp trong Pan Studio Desktop (g\xF3c ph\u1EA3i tr\xEAn) ho\u1EB7c ch\u1EA1y \xABpan login\xBB, r\u1ED3i m\u1EDF l\u1EA1i h\u1ED9p n\xE0y.'))); return; }
4296
4296
  const link = st.web ? h('a', { href: st.web, target: '_blank', rel: 'noopener', 'data-testid': 'studio-web' }, T('M\u1EDF tr\xEAn Pan Studio')) : null;
4297
- body.replaceChildren(
4297
+ // replaceChildren(null) in ch\u1EEF \xABnull\xBB \u21D2 l\u1ECDc ph\u1EA7n tr\u1ED1ng
4298
+ body.replaceChildren(...[
4298
4299
  st.doc ? h('p', { 'data-testid': 'studio-doc' }, T('\u0110\xE3 ph\xE1t h\xE0nh: \xAB{t}\xBB \u2014 b\u1EA3n {r}.', { t: st.doc.title, r: st.doc.revision }), ' ', link)
4299
4300
  : h('p', { 'data-testid': 'studio-none' }, T('Ch\u01B0a ph\xE1t h\xE0nh l\xEAn Pan Studio. Ph\xE1t h\xE0nh xong, t\xE0i li\u1EC7u hi\u1EC7n \u1EDF workspace \xABT\xE0i li\u1EC7u ki\u1EC3m th\u1EED\xBB tr\xEAn web: th\xE0nh vi\xEAn d\u1EF1 \xE1n xem, b\xECnh lu\u1EADn theo t\u1EEBng k\u1ECBch b\u1EA3n.')),
4300
4301
  st.project ? null : h('p', { class: 'pb-small pb-muted' }, T('Ch\u01B0a g\u1EAFn d\u1EF1 \xE1n Studio (repo t\xE0i li\u1EC7u BA li\xEAn k\u1EBFt ch\u01B0a khai d\u1EF1 \xE1n) \u2014 t\xE0i li\u1EC7u ch\u1EC9 b\u1EA1n v\xE0 ng\u01B0\u1EDDi \u0111\u01B0\u1EE3c m\u1EDDi th\u1EA5y.')),
4301
4302
  st.error ? h('p', { class: 'pb-small', style: { color: 'var(--pb-broken)' } }, st.error) : null,
4302
- h('p', { class: 'pb-small pb-muted' }, T('Ph\xE1t h\xE0nh l\u1EA1i s\u1EBD GHI \u0110\xC8 b\u1EA3n tr\xEAn Studio b\u1EB1ng n\u1ED9i dung hi\u1EC7n t\u1EA1i c\u1EE7a repo (k\u1EC3 c\u1EA3 k\u1EBFt qu\u1EA3 test).')));
4303
+ h('p', { class: 'pb-small pb-muted' }, T('Ph\xE1t h\xE0nh l\u1EA1i s\u1EBD GHI \u0110\xC8 b\u1EA3n tr\xEAn Studio b\u1EB1ng n\u1ED9i dung hi\u1EC7n t\u1EA1i c\u1EE7a repo (k\u1EC3 c\u1EA3 k\u1EBFt qu\u1EA3 test).')),
4304
+ ].filter(Boolean));
4303
4305
  };
4304
4306
  P.dialog({
4305
4307
  title: T('Pan Studio'), size: 'md', testid: 'studio-dialog', body: h('div', { class: 'pb-stack' }, body, status),