@parallelworks/tandem-web 0.143.0 → 0.144.0
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 +51 -0
- package/_virtual/_virtual_i18n/es/common.js +51 -0
- package/_virtual/_virtual_i18n/ja/common.js +51 -0
- package/_virtual/_virtual_i18n/ko/common.js +51 -0
- package/_virtual/_virtual_i18n/zh/common.js +51 -0
- package/api/queries.js +85 -74
- package/components/SettingsNav.js +40 -35
- package/components/icons.js +8 -8
- package/package.json +1 -1
- package/routeTree.gen.js +190 -184
- package/routes/_workspace/settings/import.js +6 -0
- package/routes/_workspace/settings/import2.js +330 -0
- package/routes/_workspace/settings/import3.js +4 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Link as e } from "../lib/router.js";
|
|
2
2
|
import { githubAccountQuery as t, meQuery as n } from "../api/queries.js";
|
|
3
|
-
import { ChevronDownIcon as r, CommentIcon as i, FolderIcon as a, HistoryIcon as o, KeyIcon as s, LinkIcon as c, ListViewIcon as l,
|
|
4
|
-
import { useTranslations as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { useQuery as
|
|
3
|
+
import { ChevronDownIcon as r, CommentIcon as i, FolderIcon as a, HistoryIcon as o, KeyIcon as s, LinkIcon as c, ListViewIcon as l, MigrationIcon as u, NotificationIcon as d, RepositoryIcon as f, SettingsIcon as p, ShieldIcon as m, TagIcon as h, UserIcon as g, UsersIcon as _, WebhookIcon as v, WorkerIcon as y } from "./icons.js";
|
|
4
|
+
import { useTranslations as b } from "use-intl";
|
|
5
|
+
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
6
|
+
import { useQuery as w, useSuspenseQuery as T } from "@tanstack/react-query";
|
|
7
7
|
// src/components/SettingsNav.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
let { data: e } =
|
|
8
|
+
var E = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", D = "bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] hover:bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] !text-[var(--theme-sidebar-active-text,var(--theme-app))] font-medium", O = { className: D };
|
|
9
|
+
function k() {
|
|
10
|
+
let { data: e } = T(n), r = b("settingsNav"), x = e?.mode === "platform", { data: S } = w(t);
|
|
11
11
|
return [
|
|
12
12
|
{
|
|
13
13
|
label: r("account"),
|
|
@@ -15,31 +15,31 @@ function O() {
|
|
|
15
15
|
{
|
|
16
16
|
to: "/$workspace/settings/account",
|
|
17
17
|
label: r("profile"),
|
|
18
|
-
Icon:
|
|
18
|
+
Icon: g
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
to: "/$workspace/settings/notifications",
|
|
22
22
|
label: r("notifications"),
|
|
23
|
-
Icon:
|
|
23
|
+
Icon: d
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
to: "/$workspace/settings/runners",
|
|
27
27
|
label: r("runners"),
|
|
28
|
-
Icon:
|
|
28
|
+
Icon: y
|
|
29
29
|
},
|
|
30
|
-
...
|
|
30
|
+
...S?.enabled ? [{
|
|
31
31
|
to: "/$workspace/settings/connections",
|
|
32
32
|
label: r("connections"),
|
|
33
33
|
Icon: c
|
|
34
34
|
}] : [],
|
|
35
|
-
...
|
|
35
|
+
...x ? [] : [{
|
|
36
36
|
to: "/$workspace/settings/tokens",
|
|
37
37
|
label: r("tokens"),
|
|
38
38
|
Icon: s
|
|
39
39
|
}, {
|
|
40
40
|
to: "/$workspace/settings/sessions",
|
|
41
41
|
label: r("sessions"),
|
|
42
|
-
Icon:
|
|
42
|
+
Icon: m
|
|
43
43
|
}]
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -49,22 +49,22 @@ function O() {
|
|
|
49
49
|
{
|
|
50
50
|
to: "/$workspace/settings",
|
|
51
51
|
label: r("general"),
|
|
52
|
-
Icon:
|
|
52
|
+
Icon: p
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
to: "/$workspace/settings/members",
|
|
56
|
-
label: r(
|
|
57
|
-
Icon:
|
|
56
|
+
label: r(x ? "access" : "members"),
|
|
57
|
+
Icon: _
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
to: "/$workspace/settings/roles",
|
|
61
61
|
label: r("roles"),
|
|
62
|
-
Icon:
|
|
62
|
+
Icon: m
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
to: "/$workspace/settings/groups",
|
|
66
66
|
label: r("groups"),
|
|
67
|
-
Icon:
|
|
67
|
+
Icon: m
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
to: "/$workspace/settings/teams",
|
|
@@ -74,7 +74,7 @@ function O() {
|
|
|
74
74
|
{
|
|
75
75
|
to: "/$workspace/settings/labels",
|
|
76
76
|
label: r("labels"),
|
|
77
|
-
Icon:
|
|
77
|
+
Icon: h
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
to: "/$workspace/settings/fields",
|
|
@@ -86,7 +86,7 @@ function O() {
|
|
|
86
86
|
label: r("auditLog"),
|
|
87
87
|
Icon: o
|
|
88
88
|
},
|
|
89
|
-
...
|
|
89
|
+
...x ? [] : [{
|
|
90
90
|
to: "/$workspace/settings/sso",
|
|
91
91
|
label: r("sso"),
|
|
92
92
|
Icon: s
|
|
@@ -99,7 +99,7 @@ function O() {
|
|
|
99
99
|
{
|
|
100
100
|
to: "/$workspace/settings/github",
|
|
101
101
|
label: r("github"),
|
|
102
|
-
Icon:
|
|
102
|
+
Icon: f
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
to: "/$workspace/settings/slack",
|
|
@@ -109,37 +109,42 @@ function O() {
|
|
|
109
109
|
{
|
|
110
110
|
to: "/$workspace/settings/webhooks",
|
|
111
111
|
label: r("webhooks"),
|
|
112
|
-
Icon:
|
|
112
|
+
Icon: v
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
to: "/$workspace/settings/import",
|
|
116
|
+
label: r("import"),
|
|
117
|
+
Icon: u
|
|
113
118
|
}
|
|
114
119
|
]
|
|
115
120
|
}
|
|
116
121
|
];
|
|
117
122
|
}
|
|
118
|
-
function
|
|
119
|
-
let n =
|
|
120
|
-
return /* @__PURE__ */
|
|
123
|
+
function A({ workspace: t }) {
|
|
124
|
+
let n = b("settingsNav"), i = k();
|
|
125
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C(e, {
|
|
121
126
|
to: "/$workspace/issues",
|
|
122
127
|
params: { workspace: t },
|
|
123
128
|
className: "flex h-9 items-center gap-2 rounded-md px-2 text-sm font-semibold hover:bg-muted",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
-
}), /* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ S(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
|
|
130
|
+
}), /* @__PURE__ */ S("nav", {
|
|
126
131
|
"aria-label": n("label"),
|
|
127
132
|
className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
|
|
128
|
-
children: i.map((n) => /* @__PURE__ */
|
|
133
|
+
children: i.map((n) => /* @__PURE__ */ C("div", {
|
|
129
134
|
className: "mt-4 first:mt-0",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ S("p", {
|
|
131
136
|
className: "flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
|
|
132
137
|
children: n.label
|
|
133
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ S("div", {
|
|
134
139
|
className: "mt-1 space-y-0.5",
|
|
135
|
-
children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */
|
|
140
|
+
children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ C(e, {
|
|
136
141
|
to: n,
|
|
137
142
|
params: { workspace: t },
|
|
138
|
-
className:
|
|
139
|
-
activeProps:
|
|
143
|
+
className: E,
|
|
144
|
+
activeProps: O,
|
|
140
145
|
activeOptions: { exact: !0 },
|
|
141
146
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ S(i, { className: "size-4" }),
|
|
143
148
|
" ",
|
|
144
149
|
r
|
|
145
150
|
]
|
|
@@ -148,4 +153,4 @@ function k({ workspace: t }) {
|
|
|
148
153
|
}, n.label))
|
|
149
154
|
})] });
|
|
150
155
|
}
|
|
151
|
-
export {
|
|
156
|
+
export { A as SettingsNav, E as navItem, D as navOn, k as useSettingsPages };
|
package/components/icons.js
CHANGED
|
@@ -200,12 +200,12 @@ function l(e) {
|
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
var u = l(r.AddIcon), d = l(r.ColumnsIcon), f = l(r.AttachmentIcon), p = l(r.BranchIcon), m = l(r.CalendarIcon), h = l(r.ClockIcon), g = l(r.CheckIcon), _ = l(r.ChevronDownIcon), v = l(r.ChevronRightIcon), y = l(r.CloseIcon), b = l(r.CommentIcon), x = l(r.DownloadIcon), S = l(r.UploadIcon), C = l(r.ExpandIcon), w = l(r.FileTextIcon), T = l(r.FolderIcon), E = l(r.ChartIcon), D = l(r.GridIcon), O = l(r.HistoryIcon), k = l(r.InboxIcon), A = l(r.KeyIcon), j = l(r.MinimizeIcon), M = l(r.LibraryIcon), N = l(r.ListViewIcon), P = l(r.MailIcon);
|
|
203
|
+
var u = l(r.AddIcon), d = l(r.ColumnsIcon), f = l(r.AttachmentIcon), p = l(r.BranchIcon), m = l(r.CalendarIcon), h = l(r.ClockIcon), g = l(r.CheckIcon), _ = l(r.ChevronDownIcon), v = l(r.ChevronRightIcon), y = l(r.CloseIcon), b = l(r.CommentIcon), x = l(r.DownloadIcon), S = l(r.UploadIcon), C = l(r.ExpandIcon), w = l(r.FileTextIcon), T = l(r.FolderIcon), E = l(r.ChartIcon), D = l(r.GridIcon), O = l(r.HistoryIcon), k = l(r.InboxIcon), A = l(r.KeyIcon), j = l(r.MinimizeIcon), M = l(r.LibraryIcon), N = l(r.ListViewIcon), P = l(r.MailIcon), F = l(r.MigrationIcon);
|
|
204
204
|
r.NavigationIcon;
|
|
205
|
-
var
|
|
205
|
+
var te = l(r.NotificationIcon), I = l(r.QueueIcon), L = l(r.ProjectIcon), R = l(r.PullRequestIcon), z = l(r.RepositoryIcon), B = l(r.SearchIcon), V = l(r.SettingsIcon), H = l(r.ShieldIcon), U = l(r.ShrinkIcon);
|
|
206
206
|
r.SignOutIcon;
|
|
207
|
-
var
|
|
208
|
-
function
|
|
207
|
+
var W = l(r.TagIcon), G = l(r.UserIcon), K = l(r.UsersIcon), q = l(r.WebhookIcon), J = l(r.WorkerIcon), Y = c("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), X = c("M2.5 3.5h11v9h-11ZM10 3.5v9"), Z = c("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), Q = c("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ne = c("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
|
|
208
|
+
function re({ className: e = "size-4" }) {
|
|
209
209
|
return /* @__PURE__ */ t("svg", {
|
|
210
210
|
viewBox: "0 0 16 16",
|
|
211
211
|
className: `shrink-0 ${e}`,
|
|
@@ -214,10 +214,10 @@ function ne({ className: e = "size-4" }) {
|
|
|
214
214
|
children: /* @__PURE__ */ t("path", { d: "M8 0a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.72 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.66 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 0Z" })
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var ie = l(r.AddUserIcon), ae = l(r.RemoveUserIcon), oe = l(r.ArchiveIcon), se = l(r.RestoreIcon), ce = l(r.EditIcon), le = l(r.RenameIcon), ue = l(r.LinkIcon), de = l(r.UnlinkIcon);
|
|
218
218
|
r.CommitIcon;
|
|
219
|
-
var
|
|
219
|
+
var fe = l(r.ReleaseIcon), pe = l(r.MegaphoneIcon), $ = l(r.SwapIcon), me = l(r.TrashIcon);
|
|
220
220
|
r.EyeIcon;
|
|
221
|
-
var
|
|
221
|
+
var he = l(r.SuccessIcon), ge = l(r.CancelIcon), _e = l(r.AgentIcon);
|
|
222
222
|
r.ArrowRightIcon;
|
|
223
|
-
export { u as AddIcon,
|
|
223
|
+
export { u as AddIcon, ie as AddUserIcon, _e as AgentIcon, oe as ArchiveIcon, ne as AreaIcon, f as AttachmentIcon, d as BoardIcon, p as BranchIcon, m as CalendarIcon, ge as CancelIcon, E as ChartIcon, g as CheckIcon, _ as ChevronDownIcon, v as ChevronRightIcon, h as ClockIcon, y as CloseIcon, re as CodeHostIcon, b as CommentIcon, Y as CycleIcon, x as DownloadIcon, ce as EditIcon, Q as EstimateIcon, C as ExpandIcon, w as FileTextIcon, T as FolderIcon, D as GridIcon, O as HistoryIcon, k as InboxIcon, A as KeyIcon, M as LibraryIcon, ue as LinkIcon, N as ListViewIcon, P as MailIcon, pe as MegaphoneIcon, F as MigrationIcon, j as MinimizeIcon, te as NotificationIcon, ee as PriorityIcon, L as ProjectIcon, R as PullRequestIcon, fe as ReleaseIcon, ae as RemoveUserIcon, le as RenameIcon, z as RepositoryIcon, se as RestoreIcon, B as SearchIcon, V as SettingsIcon, H as ShieldIcon, U as ShrinkIcon, X as SidePanelIcon, a as StatusIcon, he as SuccessIcon, $ as SwapIcon, W as TagIcon, Z as TimelineIcon, me as TrashIcon, I as TriageIcon, de as UnlinkIcon, S as UploadIcon, G as UserIcon, K as UsersIcon, q as WebhookIcon, J as WorkerIcon, s as usePriorityNames };
|