@burdenoff/microfe-devportal 2026.623.5 → 2026.623.7
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/dist/devportal/DevportalRoutes.js +123 -108
- package/dist/devportal/DevportalRoutes.js.map +1 -1
- package/dist/devportal/components/SectionNav.js +71 -5
- package/dist/devportal/components/SectionNav.js.map +1 -0
- package/dist/devportal/components/index.js +1 -1
- package/dist/devportal/hooks/useGraphQL.js +1 -1
- package/dist/devportal/pages/AdminReviewPage.js +39 -39
- package/dist/devportal/pages/AnalyticsDashboardPage.js +54 -54
- package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
- package/dist/devportal/pages/ApiKeysPage.js +53 -53
- package/dist/devportal/pages/ApiKeysPage.js.map +1 -1
- package/dist/devportal/pages/AppLogsPage.js +9 -9
- package/dist/devportal/pages/ApplicationDetailPage.js +462 -462
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationVersionsPage.js +120 -120
- package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationsPage.js +73 -73
- package/dist/devportal/pages/ApplicationsPage.js.map +1 -1
- package/dist/devportal/pages/CreateApiKeyPage.js +20 -20
- package/dist/devportal/pages/CreateApplicationPage.js +32 -32
- package/dist/devportal/pages/CreateOAuthClientPage.js +18 -18
- package/dist/devportal/pages/CreateOrganizationPage.js +12 -12
- package/dist/devportal/pages/CreateWebhookPage.js +23 -23
- package/dist/devportal/pages/DashboardPage.js +23 -23
- package/dist/devportal/pages/DelegationsPage.js +22 -22
- package/dist/devportal/pages/EditApplicationPage.js +283 -283
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/ListingPreviewPage.js +9 -9
- package/dist/devportal/pages/OAuthClientDetailPage.js +15 -15
- package/dist/devportal/pages/OAuthClientsPage.js +14 -14
- package/dist/devportal/pages/OrganizationDetailPage.js +84 -84
- package/dist/devportal/pages/OrganizationMembersPage.js +260 -260
- package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationsPage.js +16 -16
- package/dist/devportal/pages/PublishPage.js +16 -16
- package/dist/devportal/pages/PublisherProfilePage.js +18 -18
- package/dist/devportal/pages/RevenueDashboardPage.js +29 -29
- package/dist/devportal/pages/SettingsPage.js +17 -17
- package/dist/devportal/pages/SetupPage.js +99 -99
- package/dist/devportal/pages/SetupPage.js.map +1 -1
- package/dist/devportal/pages/WebhookDetailPage.js +143 -143
- package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
- package/dist/devportal/pages/WebhooksPage.js +133 -133
- package/dist/devportal/pages/WebhooksPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useDevportal as e } from "../providers/DevportalProvider.js";
|
|
2
2
|
import { cn as t } from "../utils/cn.js";
|
|
3
3
|
import { EmptyState as n } from "../components/EmptyState.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { useGetApplicationsQuery as r, useGetOrganizationQuery as i, useRequestOrgVerificationMutation as a } from "../../generated/global-operations.js";
|
|
5
|
+
import { PageLayout as o, PageSection as s } from "../components/PageLayout.js";
|
|
6
|
+
import { StatCard as c, StatCardGrid as l } from "../components/StatCard.js";
|
|
7
|
+
import { ORG_ROLE_LABELS as u } from "../utils/constants.js";
|
|
8
|
+
import { AppListItem as d } from "../components/AppCard.js";
|
|
9
|
+
import { DataTable as f, DetailList as p } from "../components/DataTable.js";
|
|
10
10
|
import { DEVPORTAL_PERMISSIONS as m } from "../constants/permissions.js";
|
|
11
11
|
import { useDevportalPermission as h } from "../hooks/usePermission.js";
|
|
12
12
|
import { useEffect as g, useState as _ } from "react";
|
|
@@ -79,95 +79,95 @@ function z(e) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
var B = () => {
|
|
82
|
-
let { navigate: n, basePath:
|
|
83
|
-
let n =
|
|
82
|
+
let { navigate: n, basePath: a } = e(), { orgId: s } = P(), { t: c } = v(), l = (e, t) => {
|
|
83
|
+
let n = c(e);
|
|
84
84
|
return n === e ? t : n;
|
|
85
|
-
}, { allowed:
|
|
85
|
+
}, { allowed: u } = h(m.ORG_UPDATE), [d, f] = _("overview"), p = [
|
|
86
86
|
{
|
|
87
87
|
id: "overview",
|
|
88
|
-
label:
|
|
88
|
+
label: l("devportal.overview", "Overview"),
|
|
89
89
|
icon: C
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
id: "apps",
|
|
93
|
-
label:
|
|
93
|
+
label: l("devportal.applications", "Applications"),
|
|
94
94
|
icon: b
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
id: "members",
|
|
98
|
-
label:
|
|
98
|
+
label: l("devportal.members", "Members"),
|
|
99
99
|
icon: N
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
id: "settings",
|
|
103
|
-
label:
|
|
103
|
+
label: l("devportal.settings", "Settings"),
|
|
104
104
|
icon: A
|
|
105
105
|
}
|
|
106
|
-
], { data: x, previousData: S, loading: w, error: D } =
|
|
107
|
-
variables: { id:
|
|
108
|
-
skip: !
|
|
109
|
-
}), k = x ?? S, { data: j } =
|
|
106
|
+
], { data: x, previousData: S, loading: w, error: D } = i({
|
|
107
|
+
variables: { id: s },
|
|
108
|
+
skip: !s
|
|
109
|
+
}), k = x ?? S, { data: j } = r({
|
|
110
110
|
variables: { limit: 50 },
|
|
111
111
|
fetchPolicy: "cache-and-network"
|
|
112
112
|
}), M = (e) => {
|
|
113
|
-
n?.(`${
|
|
113
|
+
n?.(`${a}${e}`);
|
|
114
114
|
};
|
|
115
115
|
if (g(() => {
|
|
116
116
|
let e = k?.developerOrganization?.name;
|
|
117
|
-
if (!
|
|
117
|
+
if (!s || !e) return;
|
|
118
118
|
let t = window.__breadcrumbRegistry;
|
|
119
|
-
return t?.register(
|
|
120
|
-
}, [
|
|
121
|
-
title:
|
|
122
|
-
backLink: `${
|
|
123
|
-
backLabel:
|
|
119
|
+
return t?.register(s, e), () => t?.unregister(s);
|
|
120
|
+
}, [s, x?.developerOrganization?.name]), w && !k) return /* @__PURE__ */ I(o, {
|
|
121
|
+
title: l("devportal.loadingDots", "Loading..."),
|
|
122
|
+
backLink: `${a}/organizations`,
|
|
123
|
+
backLabel: l("devportal.backToOrganizations", "Back to Organizations"),
|
|
124
124
|
children: /* @__PURE__ */ I("div", {
|
|
125
125
|
className: "flex items-center justify-center py-12",
|
|
126
126
|
children: /* @__PURE__ */ I(O, { className: "h-8 w-8 animate-spin text-muted-foreground" })
|
|
127
127
|
})
|
|
128
128
|
});
|
|
129
|
-
if (D || !k?.developerOrganization) return /* @__PURE__ */ I(
|
|
130
|
-
title:
|
|
131
|
-
backLink: `${
|
|
132
|
-
backLabel:
|
|
129
|
+
if (D || !k?.developerOrganization) return /* @__PURE__ */ I(o, {
|
|
130
|
+
title: l("devportal.organizationNotFound", "Organization Not Found"),
|
|
131
|
+
backLink: `${a}/organizations`,
|
|
132
|
+
backLabel: l("devportal.backToOrganizations", "Back to Organizations"),
|
|
133
133
|
children: /* @__PURE__ */ L("div", {
|
|
134
134
|
className: "flex flex-col items-center justify-center py-12 gap-4",
|
|
135
135
|
children: [
|
|
136
136
|
/* @__PURE__ */ I(y, { className: "h-12 w-12 text-destructive" }),
|
|
137
137
|
/* @__PURE__ */ I("h2", {
|
|
138
138
|
className: "text-lg font-semibold",
|
|
139
|
-
children:
|
|
139
|
+
children: l("devportal.organizationNotFoundLower", "Organization not found")
|
|
140
140
|
}),
|
|
141
141
|
/* @__PURE__ */ I("p", {
|
|
142
142
|
className: "text-muted-foreground",
|
|
143
|
-
children: D?.message ||
|
|
143
|
+
children: D?.message || l("devportal.organizationNotFoundDescription", "The organization you're looking for doesn't exist or you don't have access to it.")
|
|
144
144
|
}),
|
|
145
145
|
/* @__PURE__ */ I("button", {
|
|
146
146
|
onClick: () => M("/organizations"),
|
|
147
147
|
className: "mt-4 inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90",
|
|
148
|
-
children:
|
|
148
|
+
children: l("devportal.backToOrganizations", "Back to Organizations")
|
|
149
149
|
})
|
|
150
150
|
]
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
|
-
let F = R(k.developerOrganization), B = (k.developerOrganization.members ?? []).map(z), G = j?.applications?.edges?.map((e) => e.node) ?? [], K =
|
|
154
|
-
return /* @__PURE__ */ L(
|
|
153
|
+
let F = R(k.developerOrganization), B = (k.developerOrganization.members ?? []).map(z), G = j?.applications?.edges?.map((e) => e.node) ?? [], K = s ? G.filter((e) => e.developerOrganizationId === s) : G, q = parseInt(F.apiCallsUsed) / F.apiCallsLimit * 100, J = parseInt(F.storageUsed) / parseInt(F.storageLimit) * 100;
|
|
154
|
+
return /* @__PURE__ */ L(o, {
|
|
155
155
|
title: F.name,
|
|
156
156
|
description: F.description,
|
|
157
|
-
backLink: `${
|
|
158
|
-
backLabel:
|
|
157
|
+
backLink: `${a}/organizations`,
|
|
158
|
+
backLabel: l("devportal.backToOrganizations", "Back to Organizations"),
|
|
159
159
|
actions: /* @__PURE__ */ L("div", {
|
|
160
160
|
className: "flex items-center gap-2",
|
|
161
161
|
children: [/* @__PURE__ */ L("button", {
|
|
162
162
|
onClick: () => n?.(`/billing/earnings?developerOrgId=${encodeURIComponent(F.id)}&developerOrgName=${encodeURIComponent(F.name)}`),
|
|
163
163
|
className: "inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted transition-colors",
|
|
164
|
-
children: [/* @__PURE__ */ I(T, { size: 16 }),
|
|
164
|
+
children: [/* @__PURE__ */ I(T, { size: 16 }), l("devportal.revenue", "Revenue")]
|
|
165
165
|
}), /* @__PURE__ */ L("button", {
|
|
166
|
-
onClick: () =>
|
|
167
|
-
disabled: !
|
|
168
|
-
"aria-disabled": !
|
|
166
|
+
onClick: () => f("settings"),
|
|
167
|
+
disabled: !u,
|
|
168
|
+
"aria-disabled": !u,
|
|
169
169
|
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
|
|
170
|
-
children: [/* @__PURE__ */ I(E, { size: 16 }),
|
|
170
|
+
children: [/* @__PURE__ */ I(E, { size: 16 }), l("devportal.settings", "Settings")]
|
|
171
171
|
})]
|
|
172
172
|
}),
|
|
173
173
|
children: [/* @__PURE__ */ I("div", {
|
|
@@ -175,50 +175,50 @@ var B = () => {
|
|
|
175
175
|
children: /* @__PURE__ */ I("nav", {
|
|
176
176
|
className: "-mb-px flex gap-4 overflow-x-auto",
|
|
177
177
|
role: "tablist",
|
|
178
|
-
"aria-label":
|
|
178
|
+
"aria-label": l("devportal.organizationSections", "Organization sections"),
|
|
179
179
|
children: p.map((e) => {
|
|
180
180
|
let n = e.icon;
|
|
181
181
|
return /* @__PURE__ */ L("button", {
|
|
182
182
|
id: `organization-tab-${e.id}`,
|
|
183
183
|
role: "tab",
|
|
184
|
-
"aria-selected":
|
|
184
|
+
"aria-selected": d === e.id,
|
|
185
185
|
"aria-controls": `organization-panel-${e.id}`,
|
|
186
|
-
onClick: () =>
|
|
187
|
-
className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors",
|
|
186
|
+
onClick: () => f(e.id),
|
|
187
|
+
className: t("flex items-center gap-2 border-b-2 px-1 py-3 text-sm font-medium transition-colors", d === e.id ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"),
|
|
188
188
|
children: [/* @__PURE__ */ I(n, { size: 16 }), e.label]
|
|
189
189
|
}, e.id);
|
|
190
190
|
})
|
|
191
191
|
})
|
|
192
192
|
}), /* @__PURE__ */ L("div", {
|
|
193
193
|
className: "mt-6",
|
|
194
|
-
id: `organization-panel-${
|
|
194
|
+
id: `organization-panel-${d}`,
|
|
195
195
|
role: "tabpanel",
|
|
196
|
-
"aria-labelledby": `organization-tab-${
|
|
196
|
+
"aria-labelledby": `organization-tab-${d}`,
|
|
197
197
|
tabIndex: 0,
|
|
198
198
|
children: [
|
|
199
|
-
|
|
199
|
+
d === "overview" && /* @__PURE__ */ I(V, {
|
|
200
200
|
org: F,
|
|
201
201
|
apps: K,
|
|
202
202
|
members: B,
|
|
203
203
|
apiCallsPercent: q,
|
|
204
204
|
storagePercent: J,
|
|
205
205
|
onNavigate: M,
|
|
206
|
-
onShowApps: () =>
|
|
206
|
+
onShowApps: () => f("apps")
|
|
207
207
|
}),
|
|
208
|
-
|
|
208
|
+
d === "apps" && /* @__PURE__ */ I(H, {
|
|
209
209
|
apps: K,
|
|
210
210
|
onNavigate: M
|
|
211
211
|
}),
|
|
212
|
-
|
|
212
|
+
d === "members" && /* @__PURE__ */ I(U, {
|
|
213
213
|
members: B,
|
|
214
214
|
onNavigate: M,
|
|
215
215
|
orgId: F.id
|
|
216
216
|
}),
|
|
217
|
-
|
|
217
|
+
d === "settings" && /* @__PURE__ */ I(W, { org: F })
|
|
218
218
|
]
|
|
219
219
|
})]
|
|
220
220
|
});
|
|
221
|
-
}, V = ({ org: e, apps: t, members: r, apiCallsPercent:
|
|
221
|
+
}, V = ({ org: e, apps: t, members: r, apiCallsPercent: i, storagePercent: a, onNavigate: o, onShowApps: f }) => {
|
|
222
222
|
let { t: m } = v(), h = (e, t) => {
|
|
223
223
|
let n = m(e);
|
|
224
224
|
return n === e ? t : n;
|
|
@@ -228,15 +228,15 @@ var B = () => {
|
|
|
228
228
|
children: [/* @__PURE__ */ L("div", {
|
|
229
229
|
className: "lg:col-span-2 space-y-6",
|
|
230
230
|
children: [
|
|
231
|
-
/* @__PURE__ */ L(
|
|
231
|
+
/* @__PURE__ */ L(l, {
|
|
232
232
|
columns: 4,
|
|
233
233
|
children: [
|
|
234
|
-
/* @__PURE__ */ I(
|
|
234
|
+
/* @__PURE__ */ I(c, {
|
|
235
235
|
title: h("devportal.publishedApps", "Published Apps"),
|
|
236
236
|
value: `${e.publishedApps}/${e.totalApps}`,
|
|
237
237
|
icon: /* @__PURE__ */ I(b, { size: 20 })
|
|
238
238
|
}),
|
|
239
|
-
/* @__PURE__ */ I(
|
|
239
|
+
/* @__PURE__ */ I(c, {
|
|
240
240
|
title: h("devportal.totalInstalls", "Total Installs"),
|
|
241
241
|
value: e.totalInstalls.toLocaleString(),
|
|
242
242
|
icon: /* @__PURE__ */ I(M, { size: 20 }),
|
|
@@ -245,22 +245,22 @@ var B = () => {
|
|
|
245
245
|
label: h("devportal.thisMonth", "this month")
|
|
246
246
|
}
|
|
247
247
|
}),
|
|
248
|
-
/* @__PURE__ */ I(
|
|
248
|
+
/* @__PURE__ */ I(c, {
|
|
249
249
|
title: h("devportal.totalRevenue", "Total Revenue"),
|
|
250
250
|
value: `$${e.totalRevenue.toLocaleString()}`,
|
|
251
251
|
icon: /* @__PURE__ */ I(T, { size: 20 })
|
|
252
252
|
}),
|
|
253
|
-
/* @__PURE__ */ I(
|
|
253
|
+
/* @__PURE__ */ I(c, {
|
|
254
254
|
title: h("devportal.avgRating", "Avg Rating"),
|
|
255
255
|
value: e.averageRating ? `${e.averageRating.toFixed(1)} ★` : h("devportal.notAvailable", "N/A"),
|
|
256
256
|
icon: /* @__PURE__ */ I(S, { size: 20 })
|
|
257
257
|
})
|
|
258
258
|
]
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */ I(
|
|
260
|
+
/* @__PURE__ */ I(s, {
|
|
261
261
|
title: h("devportal.recentApplications", "Recent Applications"),
|
|
262
262
|
actions: /* @__PURE__ */ L("button", {
|
|
263
|
-
onClick:
|
|
263
|
+
onClick: f,
|
|
264
264
|
className: "text-sm text-primary hover:underline flex items-center gap-1",
|
|
265
265
|
children: [
|
|
266
266
|
h("devportal.viewAll", "View all"),
|
|
@@ -270,9 +270,9 @@ var B = () => {
|
|
|
270
270
|
}),
|
|
271
271
|
children: t.length > 0 ? /* @__PURE__ */ I("div", {
|
|
272
272
|
className: "space-y-2",
|
|
273
|
-
children: t.slice(0, 3).map((e) => /* @__PURE__ */ I(
|
|
273
|
+
children: t.slice(0, 3).map((e) => /* @__PURE__ */ I(d, {
|
|
274
274
|
app: e,
|
|
275
|
-
onClick: () =>
|
|
275
|
+
onClick: () => o(`/apps/${e.id}`)
|
|
276
276
|
}, e.id))
|
|
277
277
|
}) : /* @__PURE__ */ I(n, {
|
|
278
278
|
icon: /* @__PURE__ */ I(b, { size: 24 }),
|
|
@@ -280,7 +280,7 @@ var B = () => {
|
|
|
280
280
|
description: h("devportal.createYourFirstApplication", "Create your first application")
|
|
281
281
|
})
|
|
282
282
|
}),
|
|
283
|
-
/* @__PURE__ */ L(
|
|
283
|
+
/* @__PURE__ */ L(s, {
|
|
284
284
|
title: h("devportal.usageAndQuotas", "Usage & Quotas"),
|
|
285
285
|
children: [/* @__PURE__ */ L("div", {
|
|
286
286
|
className: "grid gap-4 sm:grid-cols-2",
|
|
@@ -288,13 +288,13 @@ var B = () => {
|
|
|
288
288
|
label: h("devportal.apiCalls", "API Calls"),
|
|
289
289
|
used: parseInt(e.apiCallsUsed),
|
|
290
290
|
limit: e.apiCallsLimit,
|
|
291
|
-
percent:
|
|
291
|
+
percent: i,
|
|
292
292
|
format: "number"
|
|
293
293
|
}), /* @__PURE__ */ I(G, {
|
|
294
294
|
label: h("devportal.storage", "Storage"),
|
|
295
295
|
used: parseInt(e.storageUsed),
|
|
296
296
|
limit: parseInt(e.storageLimit),
|
|
297
|
-
percent:
|
|
297
|
+
percent: a,
|
|
298
298
|
format: "bytes"
|
|
299
299
|
})]
|
|
300
300
|
}), e.quotaResetAt && /* @__PURE__ */ L("p", {
|
|
@@ -310,9 +310,9 @@ var B = () => {
|
|
|
310
310
|
}), /* @__PURE__ */ L("div", {
|
|
311
311
|
className: "space-y-6",
|
|
312
312
|
children: [
|
|
313
|
-
/* @__PURE__ */ I(
|
|
313
|
+
/* @__PURE__ */ I(s, {
|
|
314
314
|
title: h("devportal.revenueSummary", "Revenue Summary"),
|
|
315
|
-
children: /* @__PURE__ */ I(
|
|
315
|
+
children: /* @__PURE__ */ I(p, { items: [
|
|
316
316
|
{
|
|
317
317
|
label: h("devportal.totalRevenue", "Total Revenue"),
|
|
318
318
|
value: `$${e.totalRevenue.toLocaleString()}`
|
|
@@ -335,10 +335,10 @@ var B = () => {
|
|
|
335
335
|
}
|
|
336
336
|
] })
|
|
337
337
|
}),
|
|
338
|
-
/* @__PURE__ */ I(
|
|
338
|
+
/* @__PURE__ */ I(s, {
|
|
339
339
|
title: h("devportal.teamMembers", "Team Members"),
|
|
340
340
|
actions: /* @__PURE__ */ I("button", {
|
|
341
|
-
onClick: () =>
|
|
341
|
+
onClick: () => o(`/organizations/${e.id}/members`),
|
|
342
342
|
className: "text-sm text-primary hover:underline",
|
|
343
343
|
children: h("devportal.manage", "Manage")
|
|
344
344
|
}),
|
|
@@ -356,7 +356,7 @@ var B = () => {
|
|
|
356
356
|
children: e.email
|
|
357
357
|
}), /* @__PURE__ */ I("p", {
|
|
358
358
|
className: "text-xs text-muted-foreground",
|
|
359
|
-
children:
|
|
359
|
+
children: u[e.role]
|
|
360
360
|
})] })]
|
|
361
361
|
})
|
|
362
362
|
}, e.id)), r.length > 3 && /* @__PURE__ */ L("p", {
|
|
@@ -370,7 +370,7 @@ var B = () => {
|
|
|
370
370
|
})]
|
|
371
371
|
})
|
|
372
372
|
}),
|
|
373
|
-
/* @__PURE__ */ I(
|
|
373
|
+
/* @__PURE__ */ I(s, {
|
|
374
374
|
title: h("devportal.links", "Links"),
|
|
375
375
|
children: /* @__PURE__ */ L("div", {
|
|
376
376
|
className: "space-y-2",
|
|
@@ -413,7 +413,7 @@ var B = () => {
|
|
|
413
413
|
})]
|
|
414
414
|
}), e.length > 0 ? /* @__PURE__ */ I("div", {
|
|
415
415
|
className: "space-y-2",
|
|
416
|
-
children: e.map((e) => /* @__PURE__ */ I(
|
|
416
|
+
children: e.map((e) => /* @__PURE__ */ I(d, {
|
|
417
417
|
app: e,
|
|
418
418
|
onClick: () => t(`/apps/${e.id}`)
|
|
419
419
|
}, e.id))
|
|
@@ -449,7 +449,7 @@ var B = () => {
|
|
|
449
449
|
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 transition-colors",
|
|
450
450
|
children: [/* @__PURE__ */ I(k, { size: 16 }), a("devportal.inviteMember", "Invite Member")]
|
|
451
451
|
})]
|
|
452
|
-
}), /* @__PURE__ */ I(
|
|
452
|
+
}), /* @__PURE__ */ I(f, {
|
|
453
453
|
data: e,
|
|
454
454
|
keyField: "id",
|
|
455
455
|
columns: [
|
|
@@ -472,7 +472,7 @@ var B = () => {
|
|
|
472
472
|
header: a("devportal.roleColumn", "Role"),
|
|
473
473
|
render: (e) => /* @__PURE__ */ I("span", {
|
|
474
474
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium", e.role === "OWNER" ? "bg-accent-purple-subtle text-accent-purple" : e.role === "ADMIN" ? "bg-status-info-bg-subtle text-status-info-text" : e.role === "DEVELOPER" ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-primary"),
|
|
475
|
-
children:
|
|
475
|
+
children: u[e.role]
|
|
476
476
|
})
|
|
477
477
|
},
|
|
478
478
|
{
|
|
@@ -492,13 +492,13 @@ var B = () => {
|
|
|
492
492
|
let { t } = v(), n = (e, n) => {
|
|
493
493
|
let r = t(e);
|
|
494
494
|
return r === e ? n : r;
|
|
495
|
-
}, [r,
|
|
495
|
+
}, [r, i] = _("manual"), [o, c] = _(!1), [l, { loading: u }] = a({ onCompleted: () => c(!0) });
|
|
496
496
|
return /* @__PURE__ */ L("div", {
|
|
497
497
|
className: "space-y-6 max-w-2xl",
|
|
498
498
|
children: [
|
|
499
|
-
/* @__PURE__ */ I(
|
|
499
|
+
/* @__PURE__ */ I(s, {
|
|
500
500
|
title: n("devportal.organizationDetails", "Organization Details"),
|
|
501
|
-
children: /* @__PURE__ */ I(
|
|
501
|
+
children: /* @__PURE__ */ I(p, { items: [
|
|
502
502
|
{
|
|
503
503
|
label: n("devportal.organizationId", "Organization ID"),
|
|
504
504
|
value: /* @__PURE__ */ I("code", {
|
|
@@ -528,9 +528,9 @@ var B = () => {
|
|
|
528
528
|
}
|
|
529
529
|
] })
|
|
530
530
|
}),
|
|
531
|
-
/* @__PURE__ */ I(
|
|
531
|
+
/* @__PURE__ */ I(s, {
|
|
532
532
|
title: n("devportal.legalInformation", "Legal Information"),
|
|
533
|
-
children: /* @__PURE__ */ I(
|
|
533
|
+
children: /* @__PURE__ */ I(p, { items: [
|
|
534
534
|
{
|
|
535
535
|
label: n("devportal.legalEntityName", "Legal Entity Name"),
|
|
536
536
|
value: e.legalEntityName || n("devportal.notProvided", "Not provided")
|
|
@@ -564,9 +564,9 @@ var B = () => {
|
|
|
564
564
|
}
|
|
565
565
|
] })
|
|
566
566
|
}),
|
|
567
|
-
/* @__PURE__ */ L(
|
|
567
|
+
/* @__PURE__ */ L(s, {
|
|
568
568
|
title: n("devportal.verificationStatus", "Verification Status"),
|
|
569
|
-
children: [/* @__PURE__ */ I(
|
|
569
|
+
children: [/* @__PURE__ */ I(p, { items: [{
|
|
570
570
|
label: n("devportal.verifiedLabel", "Verified"),
|
|
571
571
|
value: e.isVerified ? /* @__PURE__ */ L("span", {
|
|
572
572
|
className: "text-status-success-text flex items-center gap-1",
|
|
@@ -608,20 +608,20 @@ var B = () => {
|
|
|
608
608
|
"manual"
|
|
609
609
|
].map((e) => /* @__PURE__ */ I("button", {
|
|
610
610
|
type: "button",
|
|
611
|
-
onClick: () =>
|
|
611
|
+
onClick: () => i(e),
|
|
612
612
|
className: `rounded-md border px-3 py-1 text-xs font-medium transition-colors ${r === e ? "bg-primary text-primary-foreground border-primary" : "border-border hover:bg-muted"}`,
|
|
613
613
|
children: e === "domain" ? n("devportal.domainVerification", "Domain") : e === "document" ? n("devportal.documentVerification", "Document") : n("devportal.manualVerification", "Manual review")
|
|
614
614
|
}, e))
|
|
615
615
|
}),
|
|
616
616
|
/* @__PURE__ */ L("button", {
|
|
617
617
|
type: "button",
|
|
618
|
-
disabled:
|
|
619
|
-
onClick: () =>
|
|
618
|
+
disabled: u,
|
|
619
|
+
onClick: () => l({ variables: {
|
|
620
620
|
id: e.id,
|
|
621
621
|
method: r
|
|
622
622
|
} }),
|
|
623
623
|
className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50",
|
|
624
|
-
children: [
|
|
624
|
+
children: [u ? /* @__PURE__ */ I(O, {
|
|
625
625
|
size: 14,
|
|
626
626
|
className: "animate-spin"
|
|
627
627
|
}) : /* @__PURE__ */ I(j, { size: 14 }), n("devportal.requestVerification", "Request Verification")]
|