@parallelworks/tandem-web 0.175.2 → 0.175.4
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/_virtual/_virtual_i18n/en/common.js +3 -1
- package/_virtual/_virtual_i18n/es/common.js +3 -1
- package/_virtual/_virtual_i18n/ja/common.js +3 -1
- package/_virtual/_virtual_i18n/ko/common.js +3 -1
- package/_virtual/_virtual_i18n/zh/common.js +3 -1
- package/components/DocTable.js +30 -19
- package/components/DocsTree.js +198 -224
- package/components/IssueCode.js +10 -11
- package/package.json +1 -1
- package/routes/_workspace/docs/_doc2.js +1 -1
- package/routes/_workspace/docs/space2._space.js +134 -115
- package/routes/_workspace/issues/_identifier2.js +2 -2
- package/routes/_workspace2.js +310 -314
|
@@ -598,6 +598,7 @@ var e = {
|
|
|
598
598
|
newIssue: "New issue",
|
|
599
599
|
myIssues: "My issues",
|
|
600
600
|
decisions: "Decisions",
|
|
601
|
+
docs: "Docs",
|
|
601
602
|
triage: "Triage",
|
|
602
603
|
teams: "Teams",
|
|
603
604
|
newIssueInTeam: "New issue in team",
|
|
@@ -1361,6 +1362,8 @@ var e = {
|
|
|
1361
1362
|
none: "No docs match.",
|
|
1362
1363
|
docTitle: "Title",
|
|
1363
1364
|
updated: "Updated",
|
|
1365
|
+
author: "Author",
|
|
1366
|
+
inParent: "in {parent}",
|
|
1364
1367
|
board: "Board",
|
|
1365
1368
|
table: "Table",
|
|
1366
1369
|
layout: "Layout",
|
|
@@ -1388,7 +1391,6 @@ var e = {
|
|
|
1388
1391
|
copyOf: "Copy of {title}",
|
|
1389
1392
|
subPages: "Sub-pages",
|
|
1390
1393
|
noSubPages: "No sub-pages yet. Type /page to add one.",
|
|
1391
|
-
teamDocs: "{team} docs",
|
|
1392
1394
|
title: "Docs",
|
|
1393
1395
|
new: "New doc",
|
|
1394
1396
|
newInTeamNamed: "New doc in {team}",
|
|
@@ -598,6 +598,7 @@ var e = {
|
|
|
598
598
|
newIssue: "Nueva incidencia",
|
|
599
599
|
myIssues: "Mis incidencias",
|
|
600
600
|
decisions: "Decisiones",
|
|
601
|
+
docs: "Documentos",
|
|
601
602
|
triage: "Clasificación",
|
|
602
603
|
teams: "Equipos",
|
|
603
604
|
newIssueInTeam: "Nueva incidencia en el equipo",
|
|
@@ -1361,6 +1362,8 @@ var e = {
|
|
|
1361
1362
|
none: "Ningún documento coincide.",
|
|
1362
1363
|
docTitle: "Título",
|
|
1363
1364
|
updated: "Actualizado",
|
|
1365
|
+
author: "Autor",
|
|
1366
|
+
inParent: "en {parent}",
|
|
1364
1367
|
board: "Tablero",
|
|
1365
1368
|
table: "Tabla",
|
|
1366
1369
|
layout: "Diseño",
|
|
@@ -1388,7 +1391,6 @@ var e = {
|
|
|
1388
1391
|
copyOf: "Copia de {title}",
|
|
1389
1392
|
subPages: "Subpáginas",
|
|
1390
1393
|
noSubPages: "Aún no hay subpáginas. Escribe /page para añadir una.",
|
|
1391
|
-
teamDocs: "Documentos de {team}",
|
|
1392
1394
|
title: "Documentos",
|
|
1393
1395
|
new: "Nuevo documento",
|
|
1394
1396
|
newInTeamNamed: "Nuevo documento en {team}",
|
|
@@ -598,6 +598,7 @@ var e = {
|
|
|
598
598
|
newIssue: "新しい課題",
|
|
599
599
|
myIssues: "自分の課題",
|
|
600
600
|
decisions: "判断",
|
|
601
|
+
docs: "ドキュメント",
|
|
601
602
|
triage: "トリアージ",
|
|
602
603
|
teams: "チーム",
|
|
603
604
|
newIssueInTeam: "チームに新しい課題",
|
|
@@ -1361,6 +1362,8 @@ var e = {
|
|
|
1361
1362
|
none: "一致するドキュメントはありません。",
|
|
1362
1363
|
docTitle: "タイトル",
|
|
1363
1364
|
updated: "更新",
|
|
1365
|
+
author: "作成者",
|
|
1366
|
+
inParent: "{parent} 内",
|
|
1364
1367
|
board: "ボード",
|
|
1365
1368
|
table: "表",
|
|
1366
1369
|
layout: "レイアウト",
|
|
@@ -1388,7 +1391,6 @@ var e = {
|
|
|
1388
1391
|
copyOf: "{title} のコピー",
|
|
1389
1392
|
subPages: "サブページ",
|
|
1390
1393
|
noSubPages: "サブページはまだありません。/page で追加できます。",
|
|
1391
|
-
teamDocs: "{team} のドキュメント",
|
|
1392
1394
|
title: "ドキュメント",
|
|
1393
1395
|
new: "新規ドキュメント",
|
|
1394
1396
|
newInTeamNamed: "{team} に新規ドキュメント",
|
|
@@ -598,6 +598,7 @@ var e = {
|
|
|
598
598
|
newIssue: "새 이슈",
|
|
599
599
|
myIssues: "내 이슈",
|
|
600
600
|
decisions: "결정",
|
|
601
|
+
docs: "문서",
|
|
601
602
|
triage: "분류",
|
|
602
603
|
teams: "팀",
|
|
603
604
|
newIssueInTeam: "팀에 새 이슈",
|
|
@@ -1361,6 +1362,8 @@ var e = {
|
|
|
1361
1362
|
none: "일치하는 문서가 없습니다.",
|
|
1362
1363
|
docTitle: "제목",
|
|
1363
1364
|
updated: "수정됨",
|
|
1365
|
+
author: "작성자",
|
|
1366
|
+
inParent: "{parent} 안",
|
|
1364
1367
|
board: "보드",
|
|
1365
1368
|
table: "표",
|
|
1366
1369
|
layout: "레이아웃",
|
|
@@ -1388,7 +1391,6 @@ var e = {
|
|
|
1388
1391
|
copyOf: "{title} 사본",
|
|
1389
1392
|
subPages: "하위 페이지",
|
|
1390
1393
|
noSubPages: "아직 하위 페이지가 없습니다. /page로 추가하세요.",
|
|
1391
|
-
teamDocs: "{team} 문서",
|
|
1392
1394
|
title: "문서",
|
|
1393
1395
|
new: "새 문서",
|
|
1394
1396
|
newInTeamNamed: "{team}에 새 문서",
|
|
@@ -598,6 +598,7 @@ var e = {
|
|
|
598
598
|
newIssue: "新建议题",
|
|
599
599
|
myIssues: "我的议题",
|
|
600
600
|
decisions: "决策",
|
|
601
|
+
docs: "文档",
|
|
601
602
|
triage: "分拣",
|
|
602
603
|
teams: "团队",
|
|
603
604
|
newIssueInTeam: "在团队中新建议题",
|
|
@@ -1361,6 +1362,8 @@ var e = {
|
|
|
1361
1362
|
none: "没有匹配的文档。",
|
|
1362
1363
|
docTitle: "标题",
|
|
1363
1364
|
updated: "更新于",
|
|
1365
|
+
author: "作者",
|
|
1366
|
+
inParent: "位于 {parent}",
|
|
1364
1367
|
board: "看板",
|
|
1365
1368
|
table: "表格",
|
|
1366
1369
|
layout: "布局",
|
|
@@ -1388,7 +1391,6 @@ var e = {
|
|
|
1388
1391
|
copyOf: "{title} 的副本",
|
|
1389
1392
|
subPages: "子页面",
|
|
1390
1393
|
noSubPages: "还没有子页面。输入 /page 添加。",
|
|
1391
|
-
teamDocs: "{team} 的文档",
|
|
1392
1394
|
title: "文档",
|
|
1393
1395
|
new: "新建文档",
|
|
1394
1396
|
newInTeamNamed: "在 {team} 中新建文档",
|
package/components/DocTable.js
CHANGED
|
@@ -35,29 +35,29 @@ function y(n, r, i) {
|
|
|
35
35
|
isPending: s
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function b({ workspace: e, space: t, layout: n, config: r }) {
|
|
39
|
-
let
|
|
40
|
-
if (
|
|
38
|
+
function b({ workspace: e, space: t, layout: n, config: r, query: o = "" }) {
|
|
39
|
+
let l = p("docViews"), d = f(), { actorName: g } = a(e), { docs: _, props: b, isPending: S } = y(e, t, r), C = o.trim().toLowerCase(), w = C ? _.filter((e) => e.title.toLowerCase().includes(C)) : _, T = new Map(_.map((e) => [e.id, e.title])), E = c(e), D = (e, t) => e.properties?.[t.id];
|
|
40
|
+
if (S) return /* @__PURE__ */ m("p", {
|
|
41
41
|
className: "p-4 text-sm text-muted-foreground",
|
|
42
|
-
children:
|
|
42
|
+
children: l("loading")
|
|
43
43
|
});
|
|
44
44
|
if (n === "board") {
|
|
45
|
-
let n =
|
|
45
|
+
let n = b.find((e) => e.id === r.groupBy && v(e));
|
|
46
46
|
return n ? /* @__PURE__ */ m(x, {
|
|
47
47
|
workspace: e,
|
|
48
48
|
space: t,
|
|
49
|
-
docs:
|
|
50
|
-
props:
|
|
49
|
+
docs: w,
|
|
50
|
+
props: b,
|
|
51
51
|
by: n
|
|
52
52
|
}) : /* @__PURE__ */ m("p", {
|
|
53
53
|
className: "p-4 text-sm text-muted-foreground",
|
|
54
|
-
children:
|
|
54
|
+
children: l("pickGroup")
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
return
|
|
57
|
+
let O = r.columns ? r.columns.flatMap((e) => b.filter((t) => t.id === e)) : b;
|
|
58
|
+
return w.length === 0 ? /* @__PURE__ */ m("p", {
|
|
59
59
|
className: "p-4 text-sm text-muted-foreground",
|
|
60
|
-
children:
|
|
60
|
+
children: l("none")
|
|
61
61
|
}) : /* @__PURE__ */ m("div", {
|
|
62
62
|
className: "overflow-x-auto",
|
|
63
63
|
children: /* @__PURE__ */ h("table", {
|
|
@@ -65,18 +65,22 @@ function b({ workspace: e, space: t, layout: n, config: r }) {
|
|
|
65
65
|
children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", { children: [
|
|
66
66
|
/* @__PURE__ */ m("th", {
|
|
67
67
|
scope: "col",
|
|
68
|
-
children:
|
|
68
|
+
children: l("docTitle")
|
|
69
69
|
}),
|
|
70
|
-
|
|
70
|
+
O.map((e) => /* @__PURE__ */ m("th", {
|
|
71
71
|
scope: "col",
|
|
72
72
|
children: e.name
|
|
73
73
|
}, e.id)),
|
|
74
74
|
/* @__PURE__ */ m("th", {
|
|
75
75
|
scope: "col",
|
|
76
|
-
children:
|
|
76
|
+
children: l("author")
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ m("th", {
|
|
79
|
+
scope: "col",
|
|
80
|
+
children: l("updated")
|
|
77
81
|
})
|
|
78
|
-
] }) }), /* @__PURE__ */ m("tbody", { children:
|
|
79
|
-
/* @__PURE__ */
|
|
82
|
+
] }) }), /* @__PURE__ */ m("tbody", { children: w.map((t) => /* @__PURE__ */ h("tr", { children: [
|
|
83
|
+
/* @__PURE__ */ h("td", { children: [/* @__PURE__ */ h(u, {
|
|
80
84
|
to: "/$workspace/docs/$doc",
|
|
81
85
|
params: {
|
|
82
86
|
workspace: e,
|
|
@@ -87,11 +91,18 @@ function b({ workspace: e, space: t, layout: n, config: r }) {
|
|
|
87
91
|
className: "truncate",
|
|
88
92
|
children: t.title
|
|
89
93
|
})]
|
|
90
|
-
})
|
|
91
|
-
|
|
94
|
+
}), t.parentId && T.has(t.parentId) && /* @__PURE__ */ m("span", {
|
|
95
|
+
className: "ml-6 block truncate text-xs text-muted-foreground",
|
|
96
|
+
children: l("inParent", { parent: T.get(t.parentId) ?? "" })
|
|
97
|
+
})] }),
|
|
98
|
+
O.map((e) => /* @__PURE__ */ m("td", { children: E(e, D(t, e)) }, e.id)),
|
|
99
|
+
/* @__PURE__ */ m("td", {
|
|
100
|
+
className: "text-muted-foreground",
|
|
101
|
+
children: g(t.creator)
|
|
102
|
+
}),
|
|
92
103
|
/* @__PURE__ */ m("td", {
|
|
93
104
|
className: "text-muted-foreground",
|
|
94
|
-
children:
|
|
105
|
+
children: d.dateTime(new Date(t.updatedAt), { dateStyle: "medium" })
|
|
95
106
|
})
|
|
96
107
|
] }, t.id)) })]
|
|
97
108
|
})
|