@parallelworks/tandem-web 0.144.0 → 0.145.1
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 +43 -1
- package/_virtual/_virtual_i18n/es/common.js +43 -1
- package/_virtual/_virtual_i18n/ja/common.js +43 -1
- package/_virtual/_virtual_i18n/ko/common.js +43 -1
- package/_virtual/_virtual_i18n/zh/common.js +43 -1
- package/api/queries.js +87 -65
- package/components/SettingsNav.js +48 -43
- package/components/icons.js +8 -8
- package/package.json +1 -1
- package/routeTree.gen.js +180 -174
- package/routes/_workspace/settings/parallelworks.js +6 -0
- package/routes/_workspace/settings/parallelworks2.js +230 -0
- package/routes/_workspace/settings/parallelworks3.js +8 -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,
|
|
4
|
-
import { useTranslations as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { useQuery as
|
|
3
|
+
import { ChevronDownIcon as r, CloudIcon as i, CommentIcon as a, FolderIcon as o, HistoryIcon as s, KeyIcon as c, LinkIcon as l, ListViewIcon as u, MigrationIcon as d, NotificationIcon as f, RepositoryIcon as p, SettingsIcon as m, ShieldIcon as h, TagIcon as g, UserIcon as _, UsersIcon as v, WebhookIcon as y, WorkerIcon as b } from "./icons.js";
|
|
4
|
+
import { useTranslations as x } from "use-intl";
|
|
5
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
6
|
+
import { useQuery as T, useSuspenseQuery as E } from "@tanstack/react-query";
|
|
7
7
|
// src/components/SettingsNav.tsx
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
let { data: e } =
|
|
8
|
+
var D = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", O = "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", k = { className: O };
|
|
9
|
+
function A() {
|
|
10
|
+
let { data: e } = E(n), r = x("settingsNav"), S = e?.mode === "platform", { data: C } = T(t);
|
|
11
11
|
return [
|
|
12
12
|
{
|
|
13
13
|
label: r("account"),
|
|
@@ -15,31 +15,31 @@ function k() {
|
|
|
15
15
|
{
|
|
16
16
|
to: "/$workspace/settings/account",
|
|
17
17
|
label: r("profile"),
|
|
18
|
-
Icon:
|
|
18
|
+
Icon: _
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
to: "/$workspace/settings/notifications",
|
|
22
22
|
label: r("notifications"),
|
|
23
|
-
Icon:
|
|
23
|
+
Icon: f
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
to: "/$workspace/settings/runners",
|
|
27
27
|
label: r("runners"),
|
|
28
|
-
Icon:
|
|
28
|
+
Icon: b
|
|
29
29
|
},
|
|
30
|
-
...
|
|
30
|
+
...C?.enabled ? [{
|
|
31
31
|
to: "/$workspace/settings/connections",
|
|
32
32
|
label: r("connections"),
|
|
33
|
-
Icon:
|
|
33
|
+
Icon: l
|
|
34
34
|
}] : [],
|
|
35
|
-
...
|
|
35
|
+
...S ? [] : [{
|
|
36
36
|
to: "/$workspace/settings/tokens",
|
|
37
37
|
label: r("tokens"),
|
|
38
|
-
Icon:
|
|
38
|
+
Icon: c
|
|
39
39
|
}, {
|
|
40
40
|
to: "/$workspace/settings/sessions",
|
|
41
41
|
label: r("sessions"),
|
|
42
|
-
Icon:
|
|
42
|
+
Icon: h
|
|
43
43
|
}]
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -49,47 +49,47 @@ function k() {
|
|
|
49
49
|
{
|
|
50
50
|
to: "/$workspace/settings",
|
|
51
51
|
label: r("general"),
|
|
52
|
-
Icon:
|
|
52
|
+
Icon: m
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
to: "/$workspace/settings/members",
|
|
56
|
-
label: r(
|
|
57
|
-
Icon:
|
|
56
|
+
label: r(S ? "access" : "members"),
|
|
57
|
+
Icon: v
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
to: "/$workspace/settings/roles",
|
|
61
61
|
label: r("roles"),
|
|
62
|
-
Icon:
|
|
62
|
+
Icon: h
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
to: "/$workspace/settings/groups",
|
|
66
66
|
label: r("groups"),
|
|
67
|
-
Icon:
|
|
67
|
+
Icon: h
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
to: "/$workspace/settings/teams",
|
|
71
71
|
label: r("teams"),
|
|
72
|
-
Icon:
|
|
72
|
+
Icon: o
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
to: "/$workspace/settings/labels",
|
|
76
76
|
label: r("labels"),
|
|
77
|
-
Icon:
|
|
77
|
+
Icon: g
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
to: "/$workspace/settings/fields",
|
|
81
81
|
label: r("fields"),
|
|
82
|
-
Icon:
|
|
82
|
+
Icon: u
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
to: "/$workspace/settings/audit-log",
|
|
86
86
|
label: r("auditLog"),
|
|
87
|
-
Icon:
|
|
87
|
+
Icon: s
|
|
88
88
|
},
|
|
89
|
-
...
|
|
89
|
+
...S ? [] : [{
|
|
90
90
|
to: "/$workspace/settings/sso",
|
|
91
91
|
label: r("sso"),
|
|
92
|
-
Icon:
|
|
92
|
+
Icon: c
|
|
93
93
|
}]
|
|
94
94
|
]
|
|
95
95
|
},
|
|
@@ -99,52 +99,57 @@ function k() {
|
|
|
99
99
|
{
|
|
100
100
|
to: "/$workspace/settings/github",
|
|
101
101
|
label: r("github"),
|
|
102
|
-
Icon:
|
|
102
|
+
Icon: p
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
to: "/$workspace/settings/slack",
|
|
106
106
|
label: r("slack"),
|
|
107
|
-
Icon:
|
|
107
|
+
Icon: a
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
to: "/$workspace/settings/webhooks",
|
|
111
111
|
label: r("webhooks"),
|
|
112
|
-
Icon:
|
|
112
|
+
Icon: y
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
to: "/$workspace/settings/parallelworks",
|
|
116
|
+
label: r("parallelWorks"),
|
|
117
|
+
Icon: i
|
|
113
118
|
},
|
|
114
119
|
{
|
|
115
120
|
to: "/$workspace/settings/import",
|
|
116
121
|
label: r("import"),
|
|
117
|
-
Icon:
|
|
122
|
+
Icon: d
|
|
118
123
|
}
|
|
119
124
|
]
|
|
120
125
|
}
|
|
121
126
|
];
|
|
122
127
|
}
|
|
123
|
-
function
|
|
124
|
-
let n =
|
|
125
|
-
return /* @__PURE__ */
|
|
128
|
+
function j({ workspace: t }) {
|
|
129
|
+
let n = x("settingsNav"), i = A();
|
|
130
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(e, {
|
|
126
131
|
to: "/$workspace/issues",
|
|
127
132
|
params: { workspace: t },
|
|
128
133
|
className: "flex h-9 items-center gap-2 rounded-md px-2 text-sm font-semibold hover:bg-muted",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
-
}), /* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ C(r, { className: "size-4 rotate-90 text-muted-foreground" }), n("label")]
|
|
135
|
+
}), /* @__PURE__ */ C("nav", {
|
|
131
136
|
"aria-label": n("label"),
|
|
132
137
|
className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
|
|
133
|
-
children: i.map((n) => /* @__PURE__ */
|
|
138
|
+
children: i.map((n) => /* @__PURE__ */ w("div", {
|
|
134
139
|
className: "mt-4 first:mt-0",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ C("p", {
|
|
136
141
|
className: "flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
|
|
137
142
|
children: n.label
|
|
138
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ C("div", {
|
|
139
144
|
className: "mt-1 space-y-0.5",
|
|
140
|
-
children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */
|
|
145
|
+
children: n.items.map(({ to: n, label: r, Icon: i }) => /* @__PURE__ */ w(e, {
|
|
141
146
|
to: n,
|
|
142
147
|
params: { workspace: t },
|
|
143
|
-
className:
|
|
144
|
-
activeProps:
|
|
148
|
+
className: D,
|
|
149
|
+
activeProps: k,
|
|
145
150
|
activeOptions: { exact: !0 },
|
|
146
151
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ C(i, { className: "size-4" }),
|
|
148
153
|
" ",
|
|
149
154
|
r
|
|
150
155
|
]
|
|
@@ -153,4 +158,4 @@ function A({ workspace: t }) {
|
|
|
153
158
|
}, n.label))
|
|
154
159
|
})] });
|
|
155
160
|
}
|
|
156
|
-
export {
|
|
161
|
+
export { j as SettingsNav, D as navItem, O as navOn, A 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.
|
|
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.BucketIcon), O = l(r.CloudIcon), k = l(r.GridIcon), A = l(r.HistoryIcon), j = l(r.InboxIcon), M = l(r.KeyIcon), N = l(r.MinimizeIcon), P = l(r.LibraryIcon), F = l(r.ListViewIcon), I = l(r.MailIcon), L = l(r.MigrationIcon);
|
|
204
204
|
r.NavigationIcon;
|
|
205
|
-
var
|
|
205
|
+
var R = l(r.NotificationIcon), z = l(r.QueueIcon), B = l(r.ProjectIcon), V = l(r.PullRequestIcon), H = l(r.RepositoryIcon), U = l(r.SearchIcon), te = l(r.SettingsIcon), W = l(r.ShieldIcon), G = l(r.ShrinkIcon);
|
|
206
206
|
r.SignOutIcon;
|
|
207
|
-
var
|
|
208
|
-
function
|
|
207
|
+
var K = l(r.TagIcon), q = l(r.UserIcon), J = l(r.UsersIcon), Y = l(r.WebhookIcon), X = l(r.WorkerIcon), Z = 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"), Q = c("M2.5 3.5h11v9h-11ZM10 3.5v9"), ne = c("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), re = c("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ie = 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 ae({ 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 re({ 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 oe = l(r.AddUserIcon), se = l(r.RemoveUserIcon), ce = l(r.ArchiveIcon), le = l(r.RestoreIcon), ue = l(r.EditIcon), de = l(r.RenameIcon), fe = l(r.LinkIcon), pe = l(r.UnlinkIcon);
|
|
218
218
|
r.CommitIcon;
|
|
219
|
-
var
|
|
219
|
+
var $ = l(r.ReleaseIcon), me = l(r.MegaphoneIcon), he = l(r.SwapIcon), ge = l(r.TrashIcon);
|
|
220
220
|
r.EyeIcon;
|
|
221
|
-
var
|
|
221
|
+
var _e = l(r.SuccessIcon), ve = l(r.CancelIcon), ye = l(r.AgentIcon);
|
|
222
222
|
r.ArrowRightIcon;
|
|
223
|
-
export { u as AddIcon,
|
|
223
|
+
export { u as AddIcon, oe as AddUserIcon, ye as AgentIcon, ce as ArchiveIcon, ie as AreaIcon, f as AttachmentIcon, d as BoardIcon, p as BranchIcon, D as BucketIcon, m as CalendarIcon, ve as CancelIcon, E as ChartIcon, g as CheckIcon, _ as ChevronDownIcon, v as ChevronRightIcon, h as ClockIcon, y as CloseIcon, O as CloudIcon, ae as CodeHostIcon, b as CommentIcon, Z as CycleIcon, x as DownloadIcon, ue as EditIcon, re as EstimateIcon, C as ExpandIcon, w as FileTextIcon, T as FolderIcon, k as GridIcon, A as HistoryIcon, j as InboxIcon, M as KeyIcon, P as LibraryIcon, fe as LinkIcon, F as ListViewIcon, I as MailIcon, me as MegaphoneIcon, L as MigrationIcon, N as MinimizeIcon, R as NotificationIcon, ee as PriorityIcon, B as ProjectIcon, V as PullRequestIcon, $ as ReleaseIcon, se as RemoveUserIcon, de as RenameIcon, H as RepositoryIcon, le as RestoreIcon, U as SearchIcon, te as SettingsIcon, W as ShieldIcon, G as ShrinkIcon, Q as SidePanelIcon, a as StatusIcon, _e as SuccessIcon, he as SwapIcon, K as TagIcon, ne as TimelineIcon, ge as TrashIcon, z as TriageIcon, pe as UnlinkIcon, S as UploadIcon, q as UserIcon, J as UsersIcon, Y as WebhookIcon, X as WorkerIcon, s as usePriorityNames };
|