@coffre/ui 0.1.10 → 0.1.11
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/client/_coffre/assets/account-BJAdDvZf.js +2 -0
- package/dist/client/_coffre/assets/account-D0jLpk5c.js +1 -0
- package/dist/client/_coffre/assets/affordances-Bq2-oUB5.js +1 -0
- package/dist/client/_coffre/assets/audit-C-pcBgKe.js +2 -0
- package/dist/client/_coffre/assets/audit-CHGlDeBB.js +1 -0
- package/dist/client/_coffre/assets/{auth.device-BP5FY0K1.js → auth.device-BndOUjse.js} +1 -1
- package/dist/client/_coffre/assets/auth.device-CWHNQn9W.js +2 -0
- package/dist/client/_coffre/assets/directory-nDExpkAz.js +1 -0
- package/dist/client/_coffre/assets/dist-QVHMLatb.js +1 -0
- package/dist/client/_coffre/assets/globals-CKBoTlyH.css +1 -0
- package/dist/client/_coffre/assets/grants-CjoOnxzz.js +1 -0
- package/dist/client/_coffre/assets/icons-BQ27Ds9u.js +1 -0
- package/dist/client/_coffre/assets/index-CUGytaO3.js +12 -0
- package/dist/client/_coffre/assets/link-DP8SVWon.js +1 -0
- package/dist/client/_coffre/assets/login-CeaxDMcr.js +2 -0
- package/dist/client/_coffre/assets/login-DrMgvqZn.js +1 -0
- package/dist/client/_coffre/assets/offboarding-CNr_1tnl.js +1 -0
- package/dist/client/_coffre/assets/page-CGmvjSy4.js +1 -0
- package/dist/client/_coffre/assets/preload-helper-ClBkJ19f.js +1 -0
- package/dist/client/_coffre/assets/principal-page-DNLb_q_e.js +1 -0
- package/dist/client/_coffre/assets/projects._project._environment-CHzbboGp.js +3 -0
- package/dist/client/_coffre/assets/projects._project._environment-DDxu_HHD.js +2 -0
- package/dist/client/_coffre/assets/projects._project.index-CIAsjvg6.js +2 -0
- package/dist/client/_coffre/assets/projects._project.index-DZ9l6d-1.js +1 -0
- package/dist/client/_coffre/assets/projects.index-4eUXreE_.js +1 -0
- package/dist/client/_coffre/assets/row-state-ByET1OKX.js +1 -0
- package/dist/client/_coffre/assets/settings-D2zp1Ssu.js +1 -0
- package/dist/client/_coffre/assets/suspense-C7KwSnTG.js +1 -0
- package/dist/client/_coffre/assets/tokens._token-DWmbqzNk.js +2 -0
- package/dist/client/_coffre/assets/tokens._token-Dui_4KfS.js +1 -0
- package/dist/client/_coffre/assets/tokens.index-CSi5Wxwf.js +1 -0
- package/dist/client/_coffre/assets/ui-BdipqGpP.js +46 -0
- package/dist/client/_coffre/assets/unregistered-CA7B4C1m.js +1 -0
- package/dist/client/_coffre/assets/use-action-DRm9yVhV.js +1 -0
- package/dist/client/_coffre/assets/use-change-BRRMJocl.js +1 -0
- package/dist/client/_coffre/assets/use-shell-BMGlJ25Q.js +1 -0
- package/dist/client/_coffre/assets/useQuery-D__2KBOs.js +1 -0
- package/dist/client/_coffre/assets/useSuspenseQuery-CSXyDALB.js +1 -0
- package/dist/client/_coffre/assets/users._user-BkNrX7Qf.js +1 -0
- package/dist/client/_coffre/assets/users._user-jbSvtdOg.js +2 -0
- package/dist/client/_coffre/assets/users.index-CKnQ1G76.js +1 -0
- package/dist/server/.vite/manifest.json +343 -246
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-Dx-c3XVk.js +162 -0
- package/dist/server/_coffre/assets/{account-CUQYGCYh.js → account-BocTPU1J.js} +150 -117
- package/dist/server/_coffre/assets/{account-DMlUoBxQ.js → account-CL8hOGhO.js} +10 -24
- package/dist/server/_coffre/assets/{affordances-BNaXjMOb.js → affordances-CKANXDTG.js} +2 -22
- package/dist/server/_coffre/assets/{async-local-storage-C0cwgkEr.js → async-local-storage-C10uQtMM.js} +3 -2
- package/dist/server/_coffre/assets/{audit-CCdSLmvK.js → audit-Bcka4vA6.js} +46 -16
- package/dist/server/_coffre/assets/audit-CSRQYIhu.js +31 -0
- package/dist/server/_coffre/assets/{auth.device-C05u5ROO.js → auth.device-CMcUISZY.js} +7 -5
- package/dist/server/_coffre/assets/{auth.device-BoFM1jcf.js → auth.device-DqO0T-rU.js} +5 -5
- package/dist/server/_coffre/assets/{directory-GsnYkse0.js → directory-CyYx6Jx1.js} +87 -112
- package/dist/server/_coffre/assets/{use-action-DwEmf58L.js → dist-CnnV3t2g.js} +3 -48
- package/dist/server/_coffre/assets/globals-CKBoTlyH.css +1 -0
- package/dist/server/_coffre/assets/grants-CRijabX0.js +158 -0
- package/dist/server/_coffre/assets/{page-BdnhpwvH.js → icons-Dy-5ccDF.js} +3 -196
- package/dist/server/_coffre/assets/lazyRouteComponent-CqBNCGuZ.js +480 -0
- package/dist/server/_coffre/assets/link-42ZWdjzZ.js +422 -0
- package/dist/server/_coffre/assets/{login-DUtCQju5.js → login-BI9tzJEy.js} +7 -5
- package/dist/server/_coffre/assets/{login-B2njIq_o.js → login-C-v88YwP.js} +2 -2
- package/dist/server/_coffre/assets/matchContext-qLfYbC6_.js +56 -0
- package/dist/server/_coffre/assets/{offboarding-8yMa7ViM.js → offboarding-1H0LavTd.js} +6 -4
- package/dist/server/_coffre/assets/page-D_mO0-sn.js +3592 -0
- package/dist/server/_coffre/assets/{principal-page-B8zPcS2b.js → principal-page-DQDoXute.js} +51 -42
- package/dist/server/_coffre/assets/{projects._project._environment-BZ5Z80V8.js → projects._project._environment-C-yVwC92.js} +168 -248
- package/dist/server/_coffre/assets/{projects._project._environment-DdIOc7wx.js → projects._project._environment-D_5R40of.js} +4 -11
- package/dist/server/_coffre/assets/{projects._project.index-CuEAUwGn.js → projects._project.index-A2BImFIT.js} +134 -96
- package/dist/server/_coffre/assets/{projects._project.index-DvbcU1kh.js → projects._project.index-BPPKxKrt.js} +5 -4
- package/dist/server/_coffre/assets/{projects.index-5HI0wOuG.js → projects.index-543IsPzY.js} +57 -55
- package/dist/server/_coffre/assets/{react-dom-qCTiwGGR.js → react-dom-bBoJXlK2.js} +417 -51
- package/dist/server/_coffre/assets/{router-CQDoql8s.js → router-CM3vK8QO.js} +376 -92
- package/dist/server/_coffre/assets/row-state-XBtDoIA4.js +117 -0
- package/dist/server/_coffre/assets/{settings-BVz78wjP.js → settings-BLVU74ym.js} +8 -6
- package/dist/server/_coffre/assets/suspense-CzYTwxOj.js +602 -0
- package/dist/server/_coffre/assets/tokens._token-B-hBgwBW.js +10 -0
- package/dist/server/_coffre/assets/{tokens._token-CWs3Mtki.js → tokens._token-aubAUonP.js} +97 -79
- package/dist/server/_coffre/assets/{tokens.index-Ck0LN7aC.js → tokens.index-4D3jwp5v.js} +9 -6
- package/dist/server/_coffre/assets/{ui-D_slKpSF.js → ui-BI3Bf72q.js} +7 -836
- package/dist/server/_coffre/assets/{unregistered-Z17da4Rc.js → unregistered-CagDxMyw.js} +5 -3
- package/dist/server/_coffre/assets/use-action-tzBZvjjQ.js +47 -0
- package/dist/server/_coffre/assets/use-change-Dggqxy5y.js +1212 -0
- package/dist/server/_coffre/assets/use-shell-CwStDfzX.js +462 -0
- package/dist/server/_coffre/assets/useQuery-C6_dBjem.js +8 -0
- package/dist/server/_coffre/assets/{useStore-DWGPqzXR.js → useRouter-CaUSUNsw.js} +1 -420
- package/dist/server/_coffre/assets/useSuspenseQuery-BuapQt_P.js +117 -0
- package/dist/server/_coffre/assets/{users._user-CMwj-VI9.js → users._user-137WNyxn.js} +4 -5
- package/dist/server/_coffre/assets/users._user-C252Iilj.js +10 -0
- package/dist/server/_coffre/assets/{users.index-fWHv6A30.js → users.index-DQHsfnal.js} +9 -6
- package/dist/server/index.js +6 -5
- package/package.json +5 -3
- package/src/components/directory.tsx +75 -104
- package/src/components/grants.tsx +60 -112
- package/src/components/principal-page.tsx +54 -67
- package/src/components/principal-picker.tsx +7 -16
- package/src/components/row-state.tsx +95 -0
- package/src/components/service-tokens.tsx +75 -64
- package/src/components/shell.tsx +1 -1
- package/src/components/syncs.tsx +42 -26
- package/src/lib/announce.ts +36 -0
- package/src/lib/changes.ts +498 -0
- package/src/lib/optimistic.ts +233 -0
- package/src/lib/queries.ts +393 -0
- package/src/lib/use-action.ts +20 -15
- package/src/lib/use-change.ts +42 -0
- package/src/lib/use-shell.ts +17 -0
- package/src/router.tsx +17 -9
- package/src/routes/__root.tsx +8 -38
- package/src/routes/account.tsx +163 -154
- package/src/routes/audit.tsx +51 -72
- package/src/routes/auth.device.tsx +4 -2
- package/src/routes/login.tsx +3 -2
- package/src/routes/projects.$project.$environment.tsx +226 -231
- package/src/routes/projects.$project.index.tsx +136 -118
- package/src/routes/projects.index.tsx +117 -145
- package/src/routes/settings.tsx +7 -7
- package/src/routes/tokens.$token.tsx +14 -17
- package/src/routes/tokens.index.tsx +8 -4
- package/src/routes/unregistered.tsx +3 -2
- package/src/routes/users.$user.tsx +4 -4
- package/src/routes/users.index.tsx +8 -4
- package/src/styles/globals.css +78 -1
- package/dist/client/_coffre/assets/account-B48wuSF8.js +0 -1
- package/dist/client/_coffre/assets/account-BkNyIDT7.js +0 -2
- package/dist/client/_coffre/assets/affordances-CmoY-8Xf.js +0 -1
- package/dist/client/_coffre/assets/audit-BvwKYb-5.js +0 -2
- package/dist/client/_coffre/assets/audit-D02H-zxS.js +0 -1
- package/dist/client/_coffre/assets/auth.device-DYOONgFF.js +0 -2
- package/dist/client/_coffre/assets/coffre-BBp7cKVa.js +0 -1
- package/dist/client/_coffre/assets/directory-Bu0EIxqI.js +0 -1
- package/dist/client/_coffre/assets/globals-Bh2x1gBM.css +0 -1
- package/dist/client/_coffre/assets/grants-DavcwofW.js +0 -1
- package/dist/client/_coffre/assets/index-CDPlq5rM.js +0 -12
- package/dist/client/_coffre/assets/login-C-wTm_t1.js +0 -2
- package/dist/client/_coffre/assets/login-CLLv1om9.js +0 -1
- package/dist/client/_coffre/assets/offboarding-DWsE2FSa.js +0 -1
- package/dist/client/_coffre/assets/page-DbSS7pYH.js +0 -1
- package/dist/client/_coffre/assets/preload-helper-DduCCcmc.js +0 -46
- package/dist/client/_coffre/assets/principal-page-Bp_iwuSd.js +0 -1
- package/dist/client/_coffre/assets/projects._project._environment-BMeX_B8l.js +0 -2
- package/dist/client/_coffre/assets/projects._project._environment-CT0A-hIU.js +0 -3
- package/dist/client/_coffre/assets/projects._project.index-C_xYOGLT.js +0 -2
- package/dist/client/_coffre/assets/projects._project.index-Chcf-cUd.js +0 -1
- package/dist/client/_coffre/assets/projects.index-CfOtb1X5.js +0 -2
- package/dist/client/_coffre/assets/projects.index-DSjOhLDh.js +0 -1
- package/dist/client/_coffre/assets/settings-BC9cUJNK.js +0 -1
- package/dist/client/_coffre/assets/settings-Bkj_E21y.js +0 -2
- package/dist/client/_coffre/assets/tokens._token-BA0KqvaW.js +0 -1
- package/dist/client/_coffre/assets/tokens._token-Dh9jLOkm.js +0 -2
- package/dist/client/_coffre/assets/tokens.index-BgAMWkHT.js +0 -2
- package/dist/client/_coffre/assets/tokens.index-CHueIAv1.js +0 -1
- package/dist/client/_coffre/assets/unregistered-D5go1AfR.js +0 -1
- package/dist/client/_coffre/assets/use-action-l__xZDYY.js +0 -1
- package/dist/client/_coffre/assets/users._user-Dwqa0gv5.js +0 -1
- package/dist/client/_coffre/assets/users._user-xJAb3T6Y.js +0 -2
- package/dist/client/_coffre/assets/users.index-BJoF-L37.js +0 -2
- package/dist/client/_coffre/assets/users.index-YUjtbTGy.js +0 -1
- package/dist/server/_coffre/assets/_tanstack-start-manifest_v-BKg2AlPu.js +0 -133
- package/dist/server/_coffre/assets/audit-CThXn2v7.js +0 -74
- package/dist/server/_coffre/assets/coffre-C2ANsTAz.js +0 -281
- package/dist/server/_coffre/assets/globals-Bh2x1gBM.css +0 -1
- package/dist/server/_coffre/assets/grants-B6k4Fu9z.js +0 -243
- package/dist/server/_coffre/assets/projects.index-uiomWX_l.js +0 -54
- package/dist/server/_coffre/assets/settings-4oRyDizv.js +0 -18
- package/dist/server/_coffre/assets/tokens._token-CF_deAwq.js +0 -18
- package/dist/server/_coffre/assets/tokens.index-DF_07KEe.js +0 -10
- package/dist/server/_coffre/assets/users._user-DUzwkSKT.js +0 -10
- package/dist/server/_coffre/assets/users.index-BbuweTwH.js +0 -10
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
//#region \0tanstack-start-manifest:v
|
|
2
|
+
var tsrStartManifest = () => ({ routes: {
|
|
3
|
+
__root__: {
|
|
4
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/__root.tsx",
|
|
5
|
+
children: [
|
|
6
|
+
"/",
|
|
7
|
+
"/access",
|
|
8
|
+
"/account",
|
|
9
|
+
"/audit",
|
|
10
|
+
"/login",
|
|
11
|
+
"/settings",
|
|
12
|
+
"/unregistered",
|
|
13
|
+
"/auth/device",
|
|
14
|
+
"/tokens/$token",
|
|
15
|
+
"/users/$user",
|
|
16
|
+
"/projects/",
|
|
17
|
+
"/tokens/",
|
|
18
|
+
"/users/",
|
|
19
|
+
"/projects/$project/$environment",
|
|
20
|
+
"/projects/$project/"
|
|
21
|
+
],
|
|
22
|
+
preloads: [
|
|
23
|
+
"/_coffre/assets/index-CUGytaO3.js",
|
|
24
|
+
"/_coffre/assets/page-CGmvjSy4.js",
|
|
25
|
+
"/_coffre/assets/link-DP8SVWon.js",
|
|
26
|
+
"/_coffre/assets/preload-helper-ClBkJ19f.js",
|
|
27
|
+
"/_coffre/assets/suspense-C7KwSnTG.js",
|
|
28
|
+
"/_coffre/assets/use-shell-BMGlJ25Q.js",
|
|
29
|
+
"/_coffre/assets/dist-QVHMLatb.js",
|
|
30
|
+
"/_coffre/assets/ui-BdipqGpP.js",
|
|
31
|
+
"/_coffre/assets/project-environments-CfIH5kFM.js",
|
|
32
|
+
"/_coffre/assets/affordances-Bq2-oUB5.js",
|
|
33
|
+
"/_coffre/assets/icons-BQ27Ds9u.js",
|
|
34
|
+
"/_coffre/assets/account-BJAdDvZf.js",
|
|
35
|
+
"/_coffre/assets/row-state-ByET1OKX.js",
|
|
36
|
+
"/_coffre/assets/audit-C-pcBgKe.js",
|
|
37
|
+
"/_coffre/assets/login-CeaxDMcr.js",
|
|
38
|
+
"/_coffre/assets/auth.device-CWHNQn9W.js",
|
|
39
|
+
"/_coffre/assets/tokens._token-DWmbqzNk.js",
|
|
40
|
+
"/_coffre/assets/users._user-jbSvtdOg.js",
|
|
41
|
+
"/_coffre/assets/projects._project.index-CIAsjvg6.js",
|
|
42
|
+
"/_coffre/assets/projects._project._environment-DDxu_HHD.js"
|
|
43
|
+
],
|
|
44
|
+
scripts: [{ attrs: {
|
|
45
|
+
type: "module",
|
|
46
|
+
async: !0,
|
|
47
|
+
src: "/_coffre/assets/index-CUGytaO3.js"
|
|
48
|
+
} }]
|
|
49
|
+
},
|
|
50
|
+
"/account": {
|
|
51
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/account.tsx",
|
|
52
|
+
children: void 0,
|
|
53
|
+
preloads: [
|
|
54
|
+
"/_coffre/assets/account-D0jLpk5c.js",
|
|
55
|
+
"/_coffre/assets/use-change-BRRMJocl.js",
|
|
56
|
+
"/_coffre/assets/directory-nDExpkAz.js",
|
|
57
|
+
"/_coffre/assets/signin-errors-CroZWZgm.js"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"/audit": {
|
|
61
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/audit.tsx",
|
|
62
|
+
children: void 0,
|
|
63
|
+
preloads: [
|
|
64
|
+
"/_coffre/assets/audit-CHGlDeBB.js",
|
|
65
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
66
|
+
"/_coffre/assets/useQuery-D__2KBOs.js"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"/login": {
|
|
70
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/login.tsx",
|
|
71
|
+
children: void 0,
|
|
72
|
+
preloads: ["/_coffre/assets/login-DrMgvqZn.js", "/_coffre/assets/signin-errors-CroZWZgm.js"]
|
|
73
|
+
},
|
|
74
|
+
"/settings": {
|
|
75
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/settings.tsx",
|
|
76
|
+
children: void 0,
|
|
77
|
+
preloads: ["/_coffre/assets/settings-D2zp1Ssu.js", "/_coffre/assets/useSuspenseQuery-CSXyDALB.js"]
|
|
78
|
+
},
|
|
79
|
+
"/unregistered": {
|
|
80
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/unregistered.tsx",
|
|
81
|
+
children: void 0,
|
|
82
|
+
preloads: ["/_coffre/assets/unregistered-CA7B4C1m.js"]
|
|
83
|
+
},
|
|
84
|
+
"/auth/device": {
|
|
85
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/auth.device.tsx",
|
|
86
|
+
children: void 0,
|
|
87
|
+
preloads: ["/_coffre/assets/auth.device-BndOUjse.js"]
|
|
88
|
+
},
|
|
89
|
+
"/tokens/$token": {
|
|
90
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/tokens.$token.tsx",
|
|
91
|
+
children: void 0,
|
|
92
|
+
preloads: [
|
|
93
|
+
"/_coffre/assets/tokens._token-Dui_4KfS.js",
|
|
94
|
+
"/_coffre/assets/use-change-BRRMJocl.js",
|
|
95
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
96
|
+
"/_coffre/assets/use-action-DRm9yVhV.js",
|
|
97
|
+
"/_coffre/assets/principal-page-DNLb_q_e.js"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"/users/$user": {
|
|
101
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/users.$user.tsx",
|
|
102
|
+
children: void 0,
|
|
103
|
+
preloads: ["/_coffre/assets/users._user-BkNrX7Qf.js", "/_coffre/assets/principal-page-DNLb_q_e.js"]
|
|
104
|
+
},
|
|
105
|
+
"/projects/": {
|
|
106
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/projects.index.tsx",
|
|
107
|
+
children: void 0,
|
|
108
|
+
preloads: [
|
|
109
|
+
"/_coffre/assets/projects.index-4eUXreE_.js",
|
|
110
|
+
"/_coffre/assets/use-change-BRRMJocl.js",
|
|
111
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
112
|
+
"/_coffre/assets/validation-9Cl_XS-l.js"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"/tokens/": {
|
|
116
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/tokens.index.tsx",
|
|
117
|
+
children: void 0,
|
|
118
|
+
preloads: [
|
|
119
|
+
"/_coffre/assets/tokens.index-CSi5Wxwf.js",
|
|
120
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
121
|
+
"/_coffre/assets/directory-nDExpkAz.js",
|
|
122
|
+
"/_coffre/assets/offboarding-CNr_1tnl.js"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"/users/": {
|
|
126
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/users.index.tsx",
|
|
127
|
+
children: void 0,
|
|
128
|
+
preloads: [
|
|
129
|
+
"/_coffre/assets/users.index-CKnQ1G76.js",
|
|
130
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
131
|
+
"/_coffre/assets/directory-nDExpkAz.js",
|
|
132
|
+
"/_coffre/assets/offboarding-CNr_1tnl.js"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"/projects/$project/$environment": {
|
|
136
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/projects.$project.$environment.tsx",
|
|
137
|
+
children: void 0,
|
|
138
|
+
preloads: [
|
|
139
|
+
"/_coffre/assets/projects._project._environment-CHzbboGp.js",
|
|
140
|
+
"/_coffre/assets/use-change-BRRMJocl.js",
|
|
141
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
142
|
+
"/_coffre/assets/use-action-DRm9yVhV.js",
|
|
143
|
+
"/_coffre/assets/validation-9Cl_XS-l.js"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"/projects/$project/": {
|
|
147
|
+
filePath: "/home/runner/work/coffre/coffre/packages/ui/src/routes/projects.$project.index.tsx",
|
|
148
|
+
children: void 0,
|
|
149
|
+
preloads: [
|
|
150
|
+
"/_coffre/assets/projects._project.index-DZ9l6d-1.js",
|
|
151
|
+
"/_coffre/assets/use-change-BRRMJocl.js",
|
|
152
|
+
"/_coffre/assets/useSuspenseQuery-CSXyDALB.js",
|
|
153
|
+
"/_coffre/assets/useQuery-D__2KBOs.js",
|
|
154
|
+
"/_coffre/assets/directory-nDExpkAz.js",
|
|
155
|
+
"/_coffre/assets/use-action-DRm9yVhV.js",
|
|
156
|
+
"/_coffre/assets/validation-9Cl_XS-l.js",
|
|
157
|
+
"/_coffre/assets/grants-CjoOnxzz.js"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
} });
|
|
161
|
+
//#endregion
|
|
162
|
+
export { tsrStartManifest };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
+
import { C as useCoffre, h as queries, i as PageHeader, r as Fact, t as Card } from "./page-D_mO0-sn.js";
|
|
3
|
+
import { S as unlinkIdentity, n as useChangeStatus, t as useChange, u as endSession } from "./use-change-Dggqxy5y.js";
|
|
4
|
+
import { n as useSuspenseQueries, t as useShell } from "./use-shell-CwStDfzX.js";
|
|
5
|
+
import { a as ErrorLine, i as EmptyState, l as Timestamp, s as Notice, t as ConfirmButton } from "./ui-BI3Bf72q.js";
|
|
6
|
+
import { J as X, N as ProviderMark, R as SignOut, T as Monitor, U as Terminal } from "./icons-Dy-5ccDF.js";
|
|
7
|
+
import { n as ThemeCards, t as Route } from "./account-CL8hOGhO.js";
|
|
8
|
+
import { a as rowClass, i as RowPending, r as RowFailure } from "./row-state-XBtDoIA4.js";
|
|
9
|
+
import { r as InstanceRole } from "./directory-CyYx6Jx1.js";
|
|
8
10
|
import { t as signinErrorMessage } from "./signin-errors-BEFlVDbQ.js";
|
|
9
11
|
//#region src/routes/account.tsx?tsr-split=component
|
|
10
12
|
/**
|
|
@@ -13,10 +15,10 @@ import { t as signinErrorMessage } from "./signin-errors-BEFlVDbQ.js";
|
|
|
13
15
|
* are signed in. The sidebar's Settings is the instance's; this page is
|
|
14
16
|
* reached from your account at the sidebar's foot.
|
|
15
17
|
*/
|
|
18
|
+
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
16
19
|
var import_jsx_runtime = require_jsx_runtime();
|
|
17
20
|
function AccountPage() {
|
|
18
|
-
const { principal, instanceRole } =
|
|
19
|
-
const signin = Route.useLoaderData();
|
|
21
|
+
const { principal, instanceRole, auth } = useShell();
|
|
20
22
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
21
23
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeader, {
|
|
22
24
|
title: "Account",
|
|
@@ -59,15 +61,27 @@ function AccountPage() {
|
|
|
59
61
|
]
|
|
60
62
|
})
|
|
61
63
|
}),
|
|
62
|
-
|
|
64
|
+
auth.signin !== null && principal?.type === "user" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignIn, {
|
|
63
65
|
email: principal.id,
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
sessions: signin.sessions,
|
|
67
|
-
providers: signin.providers
|
|
68
|
-
})] })
|
|
66
|
+
providers: auth.signin.providers
|
|
67
|
+
})
|
|
69
68
|
] });
|
|
70
69
|
}
|
|
70
|
+
/** Which accounts you sign in with, and where you are signed in. */
|
|
71
|
+
function SignIn({ email, providers }) {
|
|
72
|
+
const client = useCoffre();
|
|
73
|
+
const [{ data: identities }, { data: sessions }] = useSuspenseQueries({ queries: [queries.identities(client), queries.sessions(client)] });
|
|
74
|
+
if (!identities.ok) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorLine, { error: identities.error });
|
|
75
|
+
if (!sessions.ok) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorLine, { error: sessions.error });
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SigninAccounts, {
|
|
77
|
+
email,
|
|
78
|
+
providers,
|
|
79
|
+
identities: identities.identities
|
|
80
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sessions, {
|
|
81
|
+
sessions: sessions.sessions,
|
|
82
|
+
providers
|
|
83
|
+
})] });
|
|
84
|
+
}
|
|
71
85
|
/**
|
|
72
86
|
* Sign-out is a form post: a GET could be triggered by any image tag on any
|
|
73
87
|
* page, and the server's origin check covers form posts.
|
|
@@ -89,19 +103,20 @@ function providerLabel(providers, id) {
|
|
|
89
103
|
function SigninAccounts({ email, providers, identities }) {
|
|
90
104
|
const { linked, error } = Route.useSearch();
|
|
91
105
|
const message = signinErrorMessage(error);
|
|
92
|
-
const
|
|
93
|
-
const
|
|
106
|
+
const change = unlinkIdentity(useCoffre());
|
|
107
|
+
const unlink = useChange(change);
|
|
108
|
+
const { status, dismiss } = useChangeStatus(change.list.queryKey);
|
|
94
109
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
95
110
|
labelledBy: "signin-accounts",
|
|
96
111
|
title: "Sign-in accounts",
|
|
97
112
|
description: "coffre recognises you by these accounts, never by an email address alone. A new account is linked here, while you are signed in.",
|
|
98
113
|
children: [
|
|
99
|
-
(linked !== void 0 || message !== null
|
|
114
|
+
(linked !== void 0 || message !== null) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
100
115
|
className: "card-body",
|
|
101
116
|
children: [linked !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Notice, {
|
|
102
117
|
tone: "good",
|
|
103
118
|
children: [providerLabel(providers, linked), " account linked."]
|
|
104
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorLine, { error: message
|
|
119
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorLine, { error: message })]
|
|
105
120
|
}),
|
|
106
121
|
identities.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyState, {
|
|
107
122
|
title: "No account linked",
|
|
@@ -136,51 +151,62 @@ function SigninAccounts({ email, providers, identities }) {
|
|
|
136
151
|
})
|
|
137
152
|
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: identities.map((identity) => {
|
|
138
153
|
const label = providerLabel(providers, identity.provider);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}) }),
|
|
150
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
151
|
-
className: "nowrap",
|
|
152
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, { iso: identity.createdAt })
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
155
|
-
className: "nowrap cell-muted",
|
|
156
|
-
children: identity.lastSignInAt === null ? "Never" : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
157
|
-
iso: identity.lastSignInAt,
|
|
158
|
-
display: "relative"
|
|
159
|
-
})
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
162
|
-
className: "col-actions",
|
|
163
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmButton, {
|
|
164
|
-
trigger: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
165
|
-
className: "act",
|
|
166
|
-
disabled: pending,
|
|
167
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { size: 13 }), "Unlink"]
|
|
168
|
-
}),
|
|
169
|
-
title: `Unlink this ${label} account?`,
|
|
170
|
-
body: identities.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
171
|
-
"It stops signing you in, and every session it opened ends now, this one included if you signed in with it. Your next sign-in with any account whose verified email is",
|
|
172
|
-
" ",
|
|
173
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
154
|
+
const brand = providers.find((p) => p.id === identity.provider)?.brand ?? "oidc";
|
|
155
|
+
const state = status(identity.id);
|
|
156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", {
|
|
157
|
+
className: rowClass(state),
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
160
|
+
className: "cell-account",
|
|
161
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProviderMark, { brand }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
162
|
+
className: "cell-stack",
|
|
163
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: label }), identity.email !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("small", {
|
|
174
164
|
className: "mono",
|
|
175
|
-
children: email
|
|
165
|
+
children: identity.email
|
|
166
|
+
})]
|
|
167
|
+
})]
|
|
168
|
+
}) }),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
170
|
+
className: "nowrap",
|
|
171
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, { iso: identity.createdAt })
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
174
|
+
className: "nowrap cell-muted",
|
|
175
|
+
children: identity.lastSignInAt === null ? "Never" : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
176
|
+
iso: identity.lastSignInAt,
|
|
177
|
+
display: "relative"
|
|
178
|
+
})
|
|
179
|
+
}),
|
|
180
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
181
|
+
className: "col-actions",
|
|
182
|
+
children: state.state === "pending" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowPending, { status: state }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ConfirmButton, {
|
|
183
|
+
trigger: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
184
|
+
className: "act",
|
|
185
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { size: 13 }), "Unlink"]
|
|
176
186
|
}),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
187
|
+
title: `Unlink this ${label} account?`,
|
|
188
|
+
body: identities.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
189
|
+
"It stops signing you in, and every session it opened ends now, this one included if you signed in with it. Your next sign-in with any account whose verified email is",
|
|
190
|
+
" ",
|
|
191
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
192
|
+
className: "mono",
|
|
193
|
+
children: email
|
|
194
|
+
}),
|
|
195
|
+
" links that account instead."
|
|
196
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "It stops signing you in, and every session it opened ends now, this one included if you signed in with it." }),
|
|
197
|
+
confirmLabel: "Unlink",
|
|
198
|
+
onConfirm: () => unlink({
|
|
199
|
+
...identity,
|
|
200
|
+
label
|
|
201
|
+
})
|
|
202
|
+
})
|
|
181
203
|
})
|
|
182
|
-
|
|
183
|
-
|
|
204
|
+
]
|
|
205
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowFailure, {
|
|
206
|
+
status: state,
|
|
207
|
+
columns: 4,
|
|
208
|
+
onDismiss: () => state.state === "failed" && dismiss(state.mutationId)
|
|
209
|
+
})] }, identity.id);
|
|
184
210
|
}) })]
|
|
185
211
|
})
|
|
186
212
|
}),
|
|
@@ -205,16 +231,14 @@ function SigninAccounts({ email, providers, identities }) {
|
|
|
205
231
|
});
|
|
206
232
|
}
|
|
207
233
|
function Sessions({ sessions, providers }) {
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
|
|
234
|
+
const change = endSession(useCoffre());
|
|
235
|
+
const end = useChange(change);
|
|
236
|
+
const { status, dismiss } = useChangeStatus(change.list.queryKey);
|
|
237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
211
238
|
labelledBy: "sessions",
|
|
212
239
|
title: "Sessions",
|
|
213
240
|
description: "Browsers and command lines signed in as you. Ending one signs it out at its next request.",
|
|
214
|
-
children:
|
|
215
|
-
className: "card-body",
|
|
216
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorLine, { error })
|
|
217
|
-
}), sessions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, {
|
|
241
|
+
children: sessions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, {
|
|
218
242
|
title: "No sessions",
|
|
219
243
|
children: "Nothing is signed in as you right now."
|
|
220
244
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -238,58 +262,67 @@ function Sessions({ sessions, providers }) {
|
|
|
238
262
|
children: "Actions"
|
|
239
263
|
})
|
|
240
264
|
})
|
|
241
|
-
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: sessions.map((session) =>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
children:
|
|
247
|
-
|
|
248
|
-
" ",
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
265
|
+
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: sessions.map((session) => {
|
|
266
|
+
const state = status(session.id);
|
|
267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("tr", {
|
|
268
|
+
className: rowClass(state),
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
271
|
+
className: "cell-account",
|
|
272
|
+
children: [session.kind === "cli" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Terminal, { size: 15 }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Monitor, { size: 15 }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
273
|
+
className: "cell-stack",
|
|
274
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
275
|
+
session.label ?? (session.kind === "cli" ? "Command line" : "Browser"),
|
|
276
|
+
" ",
|
|
277
|
+
session.current && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
278
|
+
className: "tag tag-blue",
|
|
279
|
+
children: "this browser"
|
|
280
|
+
})
|
|
281
|
+
] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("small", { children: [session.kind === "cli" ? "coffre login" : `via ${providerLabel(providers, session.provider)}`, session.lastUsedIp !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [" · ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
282
|
+
className: "mono",
|
|
283
|
+
children: session.lastUsedIp
|
|
284
|
+
})] })] })]
|
|
285
|
+
})]
|
|
286
|
+
}) }),
|
|
287
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
288
|
+
className: "nowrap cell-muted",
|
|
289
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
290
|
+
iso: session.lastUsedAt ?? session.createdAt,
|
|
291
|
+
display: "relative"
|
|
292
|
+
})
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
295
|
+
className: "nowrap cell-muted",
|
|
296
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
297
|
+
iso: session.expiresAt,
|
|
298
|
+
display: "relative"
|
|
299
|
+
})
|
|
300
|
+
}),
|
|
301
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
302
|
+
className: "col-actions",
|
|
303
|
+
children: session.current ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", {
|
|
304
|
+
method: "post",
|
|
305
|
+
action: "/auth/signout",
|
|
306
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
307
|
+
className: "act",
|
|
308
|
+
type: "submit",
|
|
309
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignOut, { size: 13 }), "Sign out"]
|
|
310
|
+
})
|
|
311
|
+
}) : state.state === "pending" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowPending, { status: state }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
312
|
+
className: "act",
|
|
313
|
+
onClick: () => end(session),
|
|
314
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { size: 13 }), "End"]
|
|
252
315
|
})
|
|
253
|
-
] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("small", { children: [session.kind === "cli" ? "coffre login" : `via ${providerLabel(providers, session.provider)}`, session.lastUsedIp !== null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [" · ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
254
|
-
className: "mono",
|
|
255
|
-
children: session.lastUsedIp
|
|
256
|
-
})] })] })]
|
|
257
|
-
})]
|
|
258
|
-
}) }),
|
|
259
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
260
|
-
className: "nowrap cell-muted",
|
|
261
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
262
|
-
iso: session.lastUsedAt ?? session.createdAt,
|
|
263
|
-
display: "relative"
|
|
264
|
-
})
|
|
265
|
-
}),
|
|
266
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
267
|
-
className: "nowrap cell-muted",
|
|
268
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Timestamp, {
|
|
269
|
-
iso: session.expiresAt,
|
|
270
|
-
display: "relative"
|
|
271
|
-
})
|
|
272
|
-
}),
|
|
273
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
274
|
-
className: "col-actions",
|
|
275
|
-
children: session.current ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", {
|
|
276
|
-
method: "post",
|
|
277
|
-
action: "/auth/signout",
|
|
278
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
|
|
279
|
-
className: "act",
|
|
280
|
-
type: "submit",
|
|
281
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignOut, { size: 13 }), "Sign out"]
|
|
282
316
|
})
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
] }, session.id)) })]
|
|
317
|
+
]
|
|
318
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowFailure, {
|
|
319
|
+
status: state,
|
|
320
|
+
columns: 4,
|
|
321
|
+
onDismiss: () => state.state === "failed" && dismiss(state.mutationId)
|
|
322
|
+
})] }, session.id);
|
|
323
|
+
}) })]
|
|
291
324
|
})
|
|
292
|
-
})
|
|
325
|
+
})
|
|
293
326
|
});
|
|
294
327
|
}
|
|
295
328
|
//#endregion
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { i as require_react, r as require_jsx_runtime, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
2
|
+
import { n as createFileRoute, t as lazyRouteComponent } from "./lazyRouteComponent-CqBNCGuZ.js";
|
|
3
|
+
import { f as loadShell, h as queries } from "./page-D_mO0-sn.js";
|
|
4
|
+
import { h as dropdown_menu_exports } from "./ui-BI3Bf72q.js";
|
|
5
|
+
import { B as Sun, E as Moon, T as Monitor, a as Check } from "./icons-Dy-5ccDF.js";
|
|
5
6
|
//#region src/components/theme.tsx
|
|
6
7
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7
8
|
var import_jsx_runtime = require_jsx_runtime();
|
|
@@ -134,7 +135,7 @@ function ThemeCards() {
|
|
|
134
135
|
}
|
|
135
136
|
//#endregion
|
|
136
137
|
//#region src/routes/account.tsx
|
|
137
|
-
var $$splitComponentImporter = () => import("./account-
|
|
138
|
+
var $$splitComponentImporter = () => import("./account-BocTPU1J.js");
|
|
138
139
|
/**
|
|
139
140
|
* Your own settings: how coffre looks here, who it takes you for and, when
|
|
140
141
|
* coffre runs its own sign-in, which accounts you sign in with and where you
|
|
@@ -150,25 +151,10 @@ var Route = createFileRoute("/account")({
|
|
|
150
151
|
}
|
|
151
152
|
return out;
|
|
152
153
|
},
|
|
153
|
-
loader: async ({ context: { client
|
|
154
|
-
const
|
|
155
|
-
if (auth ===
|
|
156
|
-
|
|
157
|
-
signin: false,
|
|
158
|
-
providers: [],
|
|
159
|
-
identities: [],
|
|
160
|
-
sessions: []
|
|
161
|
-
};
|
|
162
|
-
const { providers } = auth.signin;
|
|
163
|
-
return uiResult(async () => {
|
|
164
|
-
const [{ identities }, { sessions }] = await Promise.all([client.identities.list(), client.sessions.list()]);
|
|
165
|
-
return {
|
|
166
|
-
signin: true,
|
|
167
|
-
providers,
|
|
168
|
-
identities,
|
|
169
|
-
sessions
|
|
170
|
-
};
|
|
171
|
-
});
|
|
154
|
+
loader: async ({ context: { client, queryClient } }) => {
|
|
155
|
+
const shell = await loadShell(queryClient, client);
|
|
156
|
+
if (shell.auth.signin === null || shell.principal?.type !== "user") return;
|
|
157
|
+
await Promise.all([queryClient.fetchQuery(queries.identities(client)), queryClient.fetchQuery(queries.sessions(client))]);
|
|
172
158
|
},
|
|
173
159
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
174
160
|
});
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/lib/capabilities.ts
|
|
3
|
-
var NONE = {
|
|
4
|
-
canManageGrants: false,
|
|
5
|
-
canReadAudit: false,
|
|
6
|
-
canCreateProject: false
|
|
7
|
-
};
|
|
8
|
-
function deriveUiCapabilities(me, projects) {
|
|
9
|
-
if (me === null) return NONE;
|
|
10
|
-
const canManageInstance = me.instanceRole === "owner" || me.instanceRole === "root-admin";
|
|
11
|
-
return {
|
|
12
|
-
canManageGrants: canManageInstance,
|
|
13
|
-
canReadAudit: me.canReadAudit,
|
|
14
|
-
canCreateProject: canManageInstance
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/** Secret values are available only where the API reports secret.read. */
|
|
18
|
-
function canRevealSecrets(permissions) {
|
|
19
|
-
return permissions.includes("secret.read");
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
1
|
+
import { i as require_react, s as __toESM } from "./useRouter-CaUSUNsw.js";
|
|
22
2
|
//#region src/components/affordances.ts
|
|
23
3
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
24
4
|
/** The shared ordering and visibility rule for administration destinations. */
|
|
@@ -43,4 +23,4 @@ function SecretReadOnly({ canReveal, children }) {
|
|
|
43
23
|
return canReveal ? children : null;
|
|
44
24
|
}
|
|
45
25
|
//#endregion
|
|
46
|
-
export { hasAdministrationItems as a, SecretReadOnly as i, ProjectEmptyStateCopy as n,
|
|
26
|
+
export { hasAdministrationItems as a, SecretReadOnly as i, ProjectEmptyStateCopy as n, RootAdminOnly as r, AdministrationItems as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
1
|
+
import { i as require_react, r as require_jsx_runtime, s as __toESM, t as useRouter } from "./useRouter-CaUSUNsw.js";
|
|
2
|
+
import { A as functionalUpdate, C as DEFAULT_PROTOCOL_ALLOWLIST, D as deepEqual, E as decodePath, F as last, I as nullReplaceEqualDeep, L as replaceEqualDeep, M as isDangerousProtocol, O as encodePathLikeUrl, P as isPromise, S as invariant, T as createControlledPromise, _ as findRouteMatch, a as cleanPath, b as processRouteTree, c as interpolatePath, d as resolvePath, f as trimPath, g as findFlatMatch, h as buildRouteBranch, j as hasKeys, l as joinPaths, m as trimPathRight, n as useStore, o as compileDecodeCharMap, r as ClientOnly, v as findSingleMatch, w as arraysEqual, x as createLRUCache, y as processRouteMasks } from "./react-dom-bBoJXlK2.js";
|
|
3
|
+
import { a as redirect, n as matchContext, o as rootRouteId, r as isRedirect } from "./matchContext-qLfYbC6_.js";
|
|
3
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
5
|
//#region ../../node_modules/.pnpm/@tanstack+router-core@1.171.15/node_modules/@tanstack/router-core/dist/esm/not-found.js
|
|
5
6
|
/** Determine if a value is a TanStack Router not-found error. */
|