@corpus-tool/workbench 0.4.0 → 0.4.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/dist/apps/web/.next/BUILD_ID +1 -1
- package/dist/apps/web/.next/build-manifest.json +3 -3
- package/dist/apps/web/.next/prerender-manifest.json +3 -3
- package/dist/apps/web/.next/required-server-files.json +5 -5
- package/dist/apps/web/.next/server/app/_global-error.html +1 -1
- package/dist/apps/web/.next/server/app/_global-error.rsc +1 -1
- package/dist/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/_not-found/page.js +1 -1
- package/dist/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/_not-found.html +1 -1
- package/dist/apps/web/.next/server/app/_not-found.rsc +1 -1
- package/dist/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/apps/web/.next/server/app/api/pull/route.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/api/push/route.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/invite/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/invite/page.js +1 -1
- package/dist/apps/web/.next/server/app/invite/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/catalogue/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/p/[slug]/catalogue/page.js +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/catalogue/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/entities/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/p/[slug]/entities/page.js +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/entities/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/p/[slug]/page.js +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/s/[stringId]/page/server-reference-manifest.json +8 -8
- package/dist/apps/web/.next/server/app/p/[slug]/s/[stringId]/page.js +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/s/[stringId]/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/settings/page/server-reference-manifest.json +13 -13
- package/dist/apps/web/.next/server/app/p/[slug]/settings/page.js +1 -1
- package/dist/apps/web/.next/server/app/p/[slug]/settings/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/page.js +1 -1
- package/dist/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/password/page/server-reference-manifest.json +4 -4
- package/dist/apps/web/.next/server/app/password/page.js +1 -1
- package/dist/apps/web/.next/server/app/password/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/projects/new/page/server-reference-manifest.json +5 -5
- package/dist/apps/web/.next/server/app/projects/new/page.js +1 -1
- package/dist/apps/web/.next/server/app/projects/new/page.js.nft.json +1 -1
- package/dist/apps/web/.next/server/app/projects/new/page_client-reference-manifest.js +1 -1
- package/dist/apps/web/.next/server/chunks/[root-of-the-server]__1j-kdja._.js +1 -1
- package/dist/apps/web/.next/server/chunks/_0fxwvbt._.js +8 -8
- package/dist/apps/web/.next/server/chunks/_19xu_mj._.js +8 -8
- package/dist/apps/web/.next/server/chunks/_1xsl0rt._.js +11 -1
- package/dist/apps/web/.next/server/chunks/ssr/[root-of-the-server]__08w92rh._.js +4 -0
- package/dist/apps/web/.next/server/chunks/ssr/_1lr8k0_._.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/_1m6p0mb._.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web_0xvlx61._.js +11 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web_149gpdh._.js +11 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_1z1-ku4.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_invite_page_actions_175yxtr.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_p_[slug]_catalogue_page_actions_0dunpgt.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_p_[slug]_entities_page_actions_0xiwdl9.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_p_[slug]_page_actions_1792is5.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_p_[slug]_s_[stringId]_page_actions_0h0xcts.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_1krlpoj.js +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_password_page_actions_0bl6ck5.js +1 -1
- package/dist/apps/web/.next/server/middleware-build-manifest.js +3 -3
- package/dist/apps/web/.next/server/pages/404.html +1 -1
- package/dist/apps/web/.next/server/pages/500.html +1 -1
- package/dist/apps/web/.next/server/server-reference-manifest.js +1 -1
- package/dist/apps/web/.next/server/server-reference-manifest.json +18 -18
- package/dist/apps/web/.next/static/chunks/{2yr-wvhk0gek9.js → 1ls9ng5otiiec.js} +1 -1
- package/dist/apps/web/server.js +1 -1
- package/package.json +1 -1
- package/dist/apps/web/.next/server/chunks/ssr/[root-of-the-server]__13fsfn6._.js +0 -4
- /package/dist/apps/web/.next/static/{yfTgCZmh0G5GgAWmkSLAG → HUjNHQ_BVWHZvPreiYQsr}/_buildManifest.js +0 -0
- /package/dist/apps/web/.next/static/{yfTgCZmh0G5GgAWmkSLAG → HUjNHQ_BVWHZvPreiYQsr}/_clientMiddlewareManifest.js +0 -0
- /package/dist/apps/web/.next/static/{yfTgCZmh0G5GgAWmkSLAG → HUjNHQ_BVWHZvPreiYQsr}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"00d82bbf4eaa9a945925b817ceff2a45c20a85175c\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 78429,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/invite/page\": {\n \"moduleId\": 18723,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/catalogue/page\": {\n \"moduleId\": 2902,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/entities/page\": {\n \"moduleId\": 28945,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/page\": {\n \"moduleId\": 91528,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/page\": {\n \"moduleId\": 31232,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/password/page\": {\n \"moduleId\": 26984,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/projects/new/page\": {\n \"moduleId\": 10324,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/auth/actions.ts\",\n \"exportedName\": \"signOut\"\n },\n \"400834c2c2eac087faae07c66fdca0c603f5cdae41\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 78429,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/invite/page\": {\n \"moduleId\": 18723,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/catalogue/page\": {\n \"moduleId\": 2902,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/entities/page\": {\n \"moduleId\": 28945,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/page\": {\n \"moduleId\": 91528,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/page\": {\n \"moduleId\": 31232,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/password/page\": {\n \"moduleId\": 26984,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/projects/new/page\": {\n \"moduleId\": 10324,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/auth/actions.ts\",\n \"exportedName\": \"submitSignIn\"\n },\n \"404ba711f797a751525b93c9dae8ca6da6126f922b\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 78429,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/invite/page\": {\n \"moduleId\": 18723,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/catalogue/page\": {\n \"moduleId\": 2902,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/entities/page\": {\n \"moduleId\": 28945,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/page\": {\n \"moduleId\": 91528,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/page\": {\n \"moduleId\": 31232,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/password/page\": {\n \"moduleId\": 26984,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/projects/new/page\": {\n \"moduleId\": 10324,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/auth/actions.ts\",\n \"exportedName\": \"submitJoin\"\n },\n \"40cde11c0ee10d5a0044fae0363b5e84036addf3d4\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 78429,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/invite/page\": {\n \"moduleId\": 18723,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/catalogue/page\": {\n \"moduleId\": 2902,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/entities/page\": {\n \"moduleId\": 28945,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/page\": {\n \"moduleId\": 91528,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/page\": {\n \"moduleId\": 31232,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/password/page\": {\n \"moduleId\": 26984,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/projects/new/page\": {\n \"moduleId\": 10324,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/auth/actions.ts\",\n \"exportedName\": \"submitPassword\"\n },\n \"4040c066ddaa44e524af141ab3193657e7b853d654\": {\n \"workers\": {\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/translations/actions.ts\",\n \"exportedName\": \"saveString\"\n },\n \"408bb163854fec98b4c4e73de2b60af8380ca1b505\": {\n \"workers\": {\n \"app/p/[slug]/s/[stringId]/page\": {\n \"moduleId\": 85760,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/translations/actions.ts\",\n \"exportedName\": \"verifyString\"\n },\n \"40231ab8cd2de2409465c629f8708bccff5ad0db37\": {\n \"workers\": {\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/projects/actions.ts\",\n \"exportedName\": \"saveLanguages\"\n },\n \"40593a5d98178e83bc9499e0c12667689d7fac866f\": {\n \"workers\": {\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/projects/actions.ts\",\n \"exportedName\": \"resetPasswordAction\"\n },\n \"4088cbb31ddaf2de982ca5e21b13a592ae02dcced1\": {\n \"workers\": {\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/projects/actions.ts\",\n \"exportedName\": \"rotateProjectToken\"\n },\n \"40a011ec30b903f5e914c4c280b34daca3079cf79b\": {\n \"workers\": {\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/projects/actions.ts\",\n \"exportedName\": \"toggleMaintainer\"\n },\n \"60d04f035e838dd966a4751781edc9d9888f3752af\": {\n \"workers\": {\n \"app/p/[slug]/settings/page\": {\n \"moduleId\": 79794,\n \"async\": false,\n \"codeHash\": null\n },\n \"app/projects/new/page\": {\n \"moduleId\": 10324,\n \"async\": false,\n \"codeHash\": null\n }\n },\n \"filename\": \"apps/web/src/projects/actions.ts\",\n \"exportedName\": \"createProjectAction\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"RVbR+DhHRNfPGKvOACxSWvZbvBthDj1oxN4UKH8f+JY=\"\n}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"00d82bbf4eaa9a945925b817ceff2a45c20a85175c": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/_not-found/page": {
|
|
6
6
|
"moduleId": 78429,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"filename": "apps/web/src/auth/actions.ts",
|
|
57
57
|
"exportedName": "signOut"
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"400834c2c2eac087faae07c66fdca0c603f5cdae41": {
|
|
60
60
|
"workers": {
|
|
61
61
|
"app/_not-found/page": {
|
|
62
62
|
"moduleId": 78429,
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"filename": "apps/web/src/auth/actions.ts",
|
|
113
113
|
"exportedName": "submitSignIn"
|
|
114
114
|
},
|
|
115
|
-
"
|
|
115
|
+
"404ba711f797a751525b93c9dae8ca6da6126f922b": {
|
|
116
116
|
"workers": {
|
|
117
117
|
"app/_not-found/page": {
|
|
118
118
|
"moduleId": 78429,
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"filename": "apps/web/src/auth/actions.ts",
|
|
169
169
|
"exportedName": "submitJoin"
|
|
170
170
|
},
|
|
171
|
-
"
|
|
171
|
+
"40cde11c0ee10d5a0044fae0363b5e84036addf3d4": {
|
|
172
172
|
"workers": {
|
|
173
173
|
"app/_not-found/page": {
|
|
174
174
|
"moduleId": 78429,
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"filename": "apps/web/src/auth/actions.ts",
|
|
225
225
|
"exportedName": "submitPassword"
|
|
226
226
|
},
|
|
227
|
-
"
|
|
227
|
+
"4040c066ddaa44e524af141ab3193657e7b853d654": {
|
|
228
228
|
"workers": {
|
|
229
229
|
"app/p/[slug]/s/[stringId]/page": {
|
|
230
230
|
"moduleId": 85760,
|
|
@@ -233,9 +233,9 @@
|
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
"filename": "apps/web/src/translations/actions.ts",
|
|
236
|
-
"exportedName": "
|
|
236
|
+
"exportedName": "saveString"
|
|
237
237
|
},
|
|
238
|
-
"
|
|
238
|
+
"408bb163854fec98b4c4e73de2b60af8380ca1b505": {
|
|
239
239
|
"workers": {
|
|
240
240
|
"app/p/[slug]/s/[stringId]/page": {
|
|
241
241
|
"moduleId": 85760,
|
|
@@ -244,9 +244,9 @@
|
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
"filename": "apps/web/src/translations/actions.ts",
|
|
247
|
-
"exportedName": "
|
|
247
|
+
"exportedName": "verifyString"
|
|
248
248
|
},
|
|
249
|
-
"
|
|
249
|
+
"40231ab8cd2de2409465c629f8708bccff5ad0db37": {
|
|
250
250
|
"workers": {
|
|
251
251
|
"app/p/[slug]/settings/page": {
|
|
252
252
|
"moduleId": 79794,
|
|
@@ -255,9 +255,9 @@
|
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
"filename": "apps/web/src/projects/actions.ts",
|
|
258
|
-
"exportedName": "
|
|
258
|
+
"exportedName": "saveLanguages"
|
|
259
259
|
},
|
|
260
|
-
"
|
|
260
|
+
"40593a5d98178e83bc9499e0c12667689d7fac866f": {
|
|
261
261
|
"workers": {
|
|
262
262
|
"app/p/[slug]/settings/page": {
|
|
263
263
|
"moduleId": 79794,
|
|
@@ -266,9 +266,9 @@
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
"filename": "apps/web/src/projects/actions.ts",
|
|
269
|
-
"exportedName": "
|
|
269
|
+
"exportedName": "resetPasswordAction"
|
|
270
270
|
},
|
|
271
|
-
"
|
|
271
|
+
"4088cbb31ddaf2de982ca5e21b13a592ae02dcced1": {
|
|
272
272
|
"workers": {
|
|
273
273
|
"app/p/[slug]/settings/page": {
|
|
274
274
|
"moduleId": 79794,
|
|
@@ -277,9 +277,9 @@
|
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
"filename": "apps/web/src/projects/actions.ts",
|
|
280
|
-
"exportedName": "
|
|
280
|
+
"exportedName": "rotateProjectToken"
|
|
281
281
|
},
|
|
282
|
-
"
|
|
282
|
+
"40a011ec30b903f5e914c4c280b34daca3079cf79b": {
|
|
283
283
|
"workers": {
|
|
284
284
|
"app/p/[slug]/settings/page": {
|
|
285
285
|
"moduleId": 79794,
|
|
@@ -288,9 +288,9 @@
|
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
290
|
"filename": "apps/web/src/projects/actions.ts",
|
|
291
|
-
"exportedName": "
|
|
291
|
+
"exportedName": "toggleMaintainer"
|
|
292
292
|
},
|
|
293
|
-
"
|
|
293
|
+
"60d04f035e838dd966a4751781edc9d9888f3752af": {
|
|
294
294
|
"workers": {
|
|
295
295
|
"app/p/[slug]/settings/page": {
|
|
296
296
|
"moduleId": 79794,
|
|
@@ -308,5 +308,5 @@
|
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"edge": {},
|
|
311
|
-
"encryptionKey": "
|
|
311
|
+
"encryptionKey": "RVbR+DhHRNfPGKvOACxSWvZbvBthDj1oxN4UKH8f+JY="
|
|
312
312
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78404,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(95187);let o=(0,n.createServerReference)("606556c249753cc2dfad92493334269e102c6f7aa9",n.callServer,void 0,n.findSourceMapURL,"createProjectAction");var a=e.i(80363),i=e.i(74944),s=e.i(12762),u=e.i(10012),l=e.i(96504);function c({label:e,hint:n,defaultValue:o=""}){let[a,d]=(0,r.useState)(o),f=a.split(",").map(e=>e.trim()).filter(e=>e.length>0);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(s.Field,{label:e,hint:n,children:(0,t.jsx)(u.Input,{name:"languages",required:!0,value:a,onChange:e=>d(e.target.value),placeholder:"en, pt-PT",autoCapitalize:"none"})}),f.length>0&&(0,t.jsx)("ul",{"aria-label":(0,l.t)("newProject.languagesChips"),className:"flex flex-wrap gap-1.5",children:f.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)(i.Chip,{variant:"outline",children:e})},`${e}-${r}`))})]})}var d=e.i(99897),f=e.i(85902);let p={"slug-taken":"newProject.errorSlugTaken",forbidden:"newProject.errorForbidden",invalid:"newProject.errorInvalid"},h={status:"idle"};e.s(["NewProjectForm",0,function(){let[e,n]=(0,r.useActionState)(o,h);return"created"===e.status?(0,t.jsxs)(d.Banner,{tone:"success",className:"space-y-3",children:[(0,t.jsx)("p",{children:(0,l.t)("newProject.created",{slug:e.slug})}),(0,t.jsx)("p",{className:"text-muted-foreground",children:(0,l.t)("newProject.tokenOnce")}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("code",{className:"block break-all rounded-md border border-border bg-background px-3 py-2 font-mono",children:e.token}),(0,t.jsx)(a.CopyButton,{value:e.token})]})]}):(0,t.jsxs)("form",{action:n,className:"space-y-4",children:["error"===e.status&&(0,t.jsx)(d.Banner,{tone:"error",children:(0,l.t)(p[e.reason]??"newProject.errorInvalid")}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.slug"),hint:(0,l.t)("newProject.slugHint"),children:(0,t.jsx)(u.Input,{name:"slug",required:!0,autoCapitalize:"none"})}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.name"),hint:(0,l.t)("newProject.nameHint"),children:(0,t.jsx)(u.Input,{name:"name",required:!0})}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.sourceLanguage"),hint:(0,l.t)("newProject.sourceLanguageHint"),children:(0,t.jsx)(u.Input,{name:"sourceLanguage",required:!0,placeholder:"en",autoCapitalize:"none"})}),(0,t.jsx)(c,{label:(0,l.t)("newProject.languages"),hint:(0,l.t)("newProject.languagesHint")}),(0,t.jsx)(f.Button,{type:"submit",children:(0,l.t)("newProject.submit")})]})}],78404)},2958,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),o=e.i(96504);let a=[{key:"nav.overview",path:"",matches:e=>""===e},{key:"nav.catalogue",path:"/catalogue",matches:e=>e.startsWith("/catalogue")||e.startsWith("/s/")},{key:"nav.entities",path:"/entities",matches:e=>e.startsWith("/entities")}],i={key:"nav.settings",path:"/settings",matches:e=>e.startsWith("/settings")};e.s(["AppNav",0,function({slug:e,maintainer:s}){let u=`/p/${e}`,l=(0,n.usePathname)().slice(u.length),c=s?[...a,i]:a;return(0,t.jsx)("nav",{"aria-label":(0,o.t)("nav.primary"),className:"flex flex-wrap gap-x-5 gap-y-1 text-sm",children:c.map(e=>{let n=e.matches(l);return(0,t.jsx)(r.default,{href:`${u}${e.path}`,"aria-current":n?"page":void 0,className:`-mb-px border-b-2 py-1 ${n?"border-foreground font-medium text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:(0,o.t)(e.key)},e.key)})})}])},80363,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(85902),o=e.i(96504);e.s(["CopyButton",0,function({value:e}){let[a,i]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>i(!1),2e3);return()=>clearTimeout(e)},[a]);let s=async()=>{try{await navigator.clipboard.writeText(e),i(!0)}catch{}};return(0,t.jsx)(n.Button,{type:"button",variant:"outline",size:"sm",onClick:s,children:a?(0,o.t)("settings.copied"):(0,o.t)("settings.copyToken")})}])},81733,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),o=e.i(85902),a=e.i(10012),i=e.i(96504);e.s(["ProjectSwitcher",0,function({current:e,projects:s}){let[u,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),f=s.find(t=>t.slug===e),p=s.filter(e=>e.name.toLowerCase().includes(c.trim().toLowerCase()));return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(o.Button,{variant:"outline",size:"sm","aria-haspopup":"listbox","aria-expanded":u,onClick:()=>l(e=>!e),children:f?.name??(0,i.t)("switcher.label")}),u&&(0,t.jsxs)("div",{role:"listbox",className:"absolute z-10 mt-1 w-64 rounded-md border border-border bg-popover p-1 shadow-md",children:[(0,t.jsx)(a.Input,{autoFocus:!0,value:c,onChange:e=>d(e.target.value),placeholder:(0,i.t)("switcher.placeholder"),className:"mb-1"}),0===p.length?(0,t.jsx)("p",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:(0,i.t)("switcher.empty")}):p.map(r=>(0,t.jsx)(n.default,{href:`/p/${r.slug}`,role:"option","aria-selected":r.slug===e,onClick:()=>l(!1),className:"block rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground aria-selected:font-medium",children:r.name},r.slug))]})]})}])},99897,e=>{"use strict";var t=e.i(43476),r=e.i(52088);let n={info:"bg-muted text-foreground",success:"bg-muted text-foreground",warning:"bg-state-stale text-state-stale-foreground",error:"border border-destructive/50 text-destructive"};e.s(["Banner",0,function({tone:e,className:o,children:a}){return(0,t.jsx)("div",{role:"error"===e?"alert":"status",className:(0,r.cn)("rounded-md px-3 py-2 text-sm",n[e],o),children:a})}])},74944,12762,e=>{"use strict";var t=e.i(43476),r=e.i(25913),n=e.i(52088);let o=(0,r.cva)("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-xs",{variants:{variant:{neutral:"bg-secondary text-secondary-foreground",outline:"border border-border text-muted-foreground",solid:"bg-primary text-primary-foreground",key:"bg-muted font-mono text-muted-foreground","state-verified":"bg-state-verified text-state-verified-foreground","state-stale":"bg-state-stale text-state-stale-foreground"}},defaultVariants:{variant:"neutral"}});e.s(["Chip",0,function({variant:e,className:r,...a}){return(0,t.jsx)("span",{className:(0,n.cn)(o({variant:e}),r),...a})},"chipVariants",0,o],74944);var a=e.i(71645);e.s(["Field",0,function({label:e,hint:r,error:n,children:o}){let i=(0,a.useId)(),s="string"==typeof o.props.id?o.props.id:i,u=`${s}-hint`,l=`${s}-error`,c=[r&&u,n&&l].filter(Boolean).join(" ")||void 0,d=(0,a.cloneElement)(o,{id:s,"aria-describedby":c,"aria-invalid":!!n||void 0});return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:s,className:"block text-sm font-medium",children:e}),d,r&&(0,t.jsx)("p",{id:u,className:"text-xs text-muted-foreground",children:r}),n&&(0,t.jsx)("p",{id:l,role:"alert",className:"text-sm text-destructive",children:n})]})}],12762)},10012,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(52088);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...o}));o.displayName="Input",e.s(["Input",0,o])},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(32120),i=e.r(92245),s=e.r(35326)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),g=e.r(9396);function b(t){var r;let n,o,a,[b,y]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:j,as:P,children:w,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:_,onClick:k,onMouseEnter:O,onTouchStart:T,legacyBehavior:R=!1,onNavigate:L,transitionTypes:I,ref:$,unstable_dynamicOnHover:A,...M}=t;n=w,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let U=s.default.useContext(l.AppRouterContext),B=!1!==S,F=!1===S?"none":!0===S?"full":"auto",z="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,D="string"==typeof(r=P||j)?r:(0,u.formatUrl)(r);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let K=R?o&&"object"==typeof o&&o.ref:$,W,q=s.default.useCallback(e=>(null!==U&&(x.current=(0,h.mountLinkInstance)(e,D,U,z,B,y,W)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,D,U,z,y,W]),H={ref:(0,c.useMergedRef)(q,K),onClick(t){R||"function"!=typeof k||k(t),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,o,a,i,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);s.default.startTransition(()=>{f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,u,l)})}}(t,D,x,C,_,L,I,F)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),U&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),U&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(D)?H.href=D:R&&!N&&("a"!==o.type||"href"in o.props)||(H.href=(0,f.addBasePath)(D)),a=R?s.default.cloneElement(o,H):(0,i.jsx)("a",{...M,...H,children:n}),(0,i.jsx)(v.Provider,{value:b,children:a})}let v=(0,s.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return P}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},18566,(e,t,r)=>{t.exports=e.r(76562)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78404,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(95187);let o=(0,n.createServerReference)("60d04f035e838dd966a4751781edc9d9888f3752af",n.callServer,void 0,n.findSourceMapURL,"createProjectAction");var a=e.i(80363),i=e.i(74944),s=e.i(12762),u=e.i(10012),l=e.i(96504);function c({label:e,hint:n,defaultValue:o=""}){let[a,d]=(0,r.useState)(o),f=a.split(",").map(e=>e.trim()).filter(e=>e.length>0);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(s.Field,{label:e,hint:n,children:(0,t.jsx)(u.Input,{name:"languages",required:!0,value:a,onChange:e=>d(e.target.value),placeholder:"en, pt-PT",autoCapitalize:"none"})}),f.length>0&&(0,t.jsx)("ul",{"aria-label":(0,l.t)("newProject.languagesChips"),className:"flex flex-wrap gap-1.5",children:f.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)(i.Chip,{variant:"outline",children:e})},`${e}-${r}`))})]})}var d=e.i(99897),f=e.i(85902);let p={"slug-taken":"newProject.errorSlugTaken",forbidden:"newProject.errorForbidden",invalid:"newProject.errorInvalid"},h={status:"idle"};e.s(["NewProjectForm",0,function(){let[e,n]=(0,r.useActionState)(o,h);return"created"===e.status?(0,t.jsxs)(d.Banner,{tone:"success",className:"space-y-3",children:[(0,t.jsx)("p",{children:(0,l.t)("newProject.created",{slug:e.slug})}),(0,t.jsx)("p",{className:"text-muted-foreground",children:(0,l.t)("newProject.tokenOnce")}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("code",{className:"block break-all rounded-md border border-border bg-background px-3 py-2 font-mono",children:e.token}),(0,t.jsx)(a.CopyButton,{value:e.token})]})]}):(0,t.jsxs)("form",{action:n,className:"space-y-4",children:["error"===e.status&&(0,t.jsx)(d.Banner,{tone:"error",children:(0,l.t)(p[e.reason]??"newProject.errorInvalid")}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.slug"),hint:(0,l.t)("newProject.slugHint"),children:(0,t.jsx)(u.Input,{name:"slug",required:!0,autoCapitalize:"none"})}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.name"),hint:(0,l.t)("newProject.nameHint"),children:(0,t.jsx)(u.Input,{name:"name",required:!0})}),(0,t.jsx)(s.Field,{label:(0,l.t)("newProject.sourceLanguage"),hint:(0,l.t)("newProject.sourceLanguageHint"),children:(0,t.jsx)(u.Input,{name:"sourceLanguage",required:!0,placeholder:"en",autoCapitalize:"none"})}),(0,t.jsx)(c,{label:(0,l.t)("newProject.languages"),hint:(0,l.t)("newProject.languagesHint")}),(0,t.jsx)(f.Button,{type:"submit",children:(0,l.t)("newProject.submit")})]})}],78404)},2958,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),o=e.i(96504);let a=[{key:"nav.overview",path:"",matches:e=>""===e},{key:"nav.catalogue",path:"/catalogue",matches:e=>e.startsWith("/catalogue")||e.startsWith("/s/")},{key:"nav.entities",path:"/entities",matches:e=>e.startsWith("/entities")}],i={key:"nav.settings",path:"/settings",matches:e=>e.startsWith("/settings")};e.s(["AppNav",0,function({slug:e,maintainer:s}){let u=`/p/${e}`,l=(0,n.usePathname)().slice(u.length),c=s?[...a,i]:a;return(0,t.jsx)("nav",{"aria-label":(0,o.t)("nav.primary"),className:"flex flex-wrap gap-x-5 gap-y-1 text-sm",children:c.map(e=>{let n=e.matches(l);return(0,t.jsx)(r.default,{href:`${u}${e.path}`,"aria-current":n?"page":void 0,className:`-mb-px border-b-2 py-1 ${n?"border-foreground font-medium text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:(0,o.t)(e.key)},e.key)})})}])},80363,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(85902),o=e.i(96504);e.s(["CopyButton",0,function({value:e}){let[a,i]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>i(!1),2e3);return()=>clearTimeout(e)},[a]);let s=async()=>{try{await navigator.clipboard.writeText(e),i(!0)}catch{}};return(0,t.jsx)(n.Button,{type:"button",variant:"outline",size:"sm",onClick:s,children:a?(0,o.t)("settings.copied"):(0,o.t)("settings.copyToken")})}])},81733,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),o=e.i(85902),a=e.i(10012),i=e.i(96504);e.s(["ProjectSwitcher",0,function({current:e,projects:s}){let[u,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)(""),f=s.find(t=>t.slug===e),p=s.filter(e=>e.name.toLowerCase().includes(c.trim().toLowerCase()));return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(o.Button,{variant:"outline",size:"sm","aria-haspopup":"listbox","aria-expanded":u,onClick:()=>l(e=>!e),children:f?.name??(0,i.t)("switcher.label")}),u&&(0,t.jsxs)("div",{role:"listbox",className:"absolute z-10 mt-1 w-64 rounded-md border border-border bg-popover p-1 shadow-md",children:[(0,t.jsx)(a.Input,{autoFocus:!0,value:c,onChange:e=>d(e.target.value),placeholder:(0,i.t)("switcher.placeholder"),className:"mb-1"}),0===p.length?(0,t.jsx)("p",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:(0,i.t)("switcher.empty")}):p.map(r=>(0,t.jsx)(n.default,{href:`/p/${r.slug}`,role:"option","aria-selected":r.slug===e,onClick:()=>l(!1),className:"block rounded-sm px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground aria-selected:font-medium",children:r.name},r.slug))]})]})}])},99897,e=>{"use strict";var t=e.i(43476),r=e.i(52088);let n={info:"bg-muted text-foreground",success:"bg-muted text-foreground",warning:"bg-state-stale text-state-stale-foreground",error:"border border-destructive/50 text-destructive"};e.s(["Banner",0,function({tone:e,className:o,children:a}){return(0,t.jsx)("div",{role:"error"===e?"alert":"status",className:(0,r.cn)("rounded-md px-3 py-2 text-sm",n[e],o),children:a})}])},74944,12762,e=>{"use strict";var t=e.i(43476),r=e.i(25913),n=e.i(52088);let o=(0,r.cva)("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-xs",{variants:{variant:{neutral:"bg-secondary text-secondary-foreground",outline:"border border-border text-muted-foreground",solid:"bg-primary text-primary-foreground",key:"bg-muted font-mono text-muted-foreground","state-verified":"bg-state-verified text-state-verified-foreground","state-stale":"bg-state-stale text-state-stale-foreground"}},defaultVariants:{variant:"neutral"}});e.s(["Chip",0,function({variant:e,className:r,...a}){return(0,t.jsx)("span",{className:(0,n.cn)(o({variant:e}),r),...a})},"chipVariants",0,o],74944);var a=e.i(71645);e.s(["Field",0,function({label:e,hint:r,error:n,children:o}){let i=(0,a.useId)(),s="string"==typeof o.props.id?o.props.id:i,u=`${s}-hint`,l=`${s}-error`,c=[r&&u,n&&l].filter(Boolean).join(" ")||void 0,d=(0,a.cloneElement)(o,{id:s,"aria-describedby":c,"aria-invalid":!!n||void 0});return(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{htmlFor:s,className:"block text-sm font-medium",children:e}),d,r&&(0,t.jsx)("p",{id:u,className:"text-xs text-muted-foreground",children:r}),n&&(0,t.jsx)("p",{id:l,role:"alert",className:"text-sm text-destructive",children:n})]})}],12762)},10012,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(52088);let o=r.forwardRef(({className:e,type:r,...o},a)=>(0,t.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...o}));o.displayName="Input",e.s(["Input",0,o])},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(32120),i=e.r(92245),s=e.r(35326)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809),i=e.r(43476),s=a._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),p=e.r(88540),h=e.r(91949),m=e.r(73668),g=e.r(9396);function b(t){var r;let n,o,a,[b,y]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:j,as:P,children:w,prefetch:S=null,passHref:N,replace:C,shallow:E,scroll:_,onClick:k,onMouseEnter:O,onTouchStart:T,legacyBehavior:R=!1,onNavigate:L,transitionTypes:I,ref:$,unstable_dynamicOnHover:A,...M}=t;n=w,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let U=s.default.useContext(l.AppRouterContext),B=!1!==S,F=!1===S?"none":!0===S?"full":"auto",z="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,D="string"==typeof(r=P||j)?r:(0,u.formatUrl)(r);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let K=R?o&&"object"==typeof o&&o.ref:$,W,q=s.default.useCallback(e=>(null!==U&&(x.current=(0,h.mountLinkInstance)(e,D,U,z,B,y,W)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,D,U,z,y,W]),H={ref:(0,c.useMergedRef)(q,K),onClick(t){R||"function"!=typeof k||k(t),R&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,o,a,i,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);s.default.startTransition(()=>{f(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,u,l)})}}(t,D,x,C,_,L,I,F)},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),U&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),U&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(D)?H.href=D:R&&!N&&("a"!==o.type||"href"in o.props)||(H.href=(0,f.addBasePath)(D)),a=R?s.default.cloneElement(o,H):(0,i.jsx)("a",{...M,...H,children:n}),(0,i.jsx)(v.Provider,{value:b,children:a})}let v=(0,s.createContext)(h.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return P}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),o=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${o}${c}${s}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return s(e)}},18566,(e,t,r)=>{t.exports=e.r(76562)}]);
|
package/dist/apps/web/server.js
CHANGED
|
@@ -9,7 +9,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
|
|
|
9
9
|
const hostname = process.env.HOSTNAME || '0.0.0.0'
|
|
10
10
|
|
|
11
11
|
let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
|
|
12
|
-
const nextConfig = {"env":{},"webpack":null,"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"instrumentationClientInject":[],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":false,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/
|
|
12
|
+
const nextConfig = {"env":{},"webpack":null,"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"instrumentationClientInject":[],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":false,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/runner/work/corpus/corpus","enablePrerenderSourceMaps":true,"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"experimental":{"appNewScrollHandler":true,"coldCacheBadge":false,"devValidationWorker":true,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"dynamicOnHover":false,"useOffline":false,"varyParams":true,"optimisticRouting":true,"instrumentationClientRouterTransitionEvents":false,"prefetchInlining":{"maxSize":2048,"maxBundleSize":10240},"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":3,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptOperationCache":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"devMemoryThresholdRestart":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"requestInsights":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"useTypeScriptCli":true,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":true,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"serverComponentsHmrCancellation":false,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"globalNotFound":false,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":true,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","turbopackMemoryEvictionMode":"auto","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"useCacheTimeout":54,"instantInsights":{"validationLevel":"warning"},"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","serverExternalPackages":["better-sqlite3"],"outputFileTracingIncludes":{"/**":["./drizzle/**/*"]},"repoRoot":"/home/runner/work/corpus/corpus","turbopack":{"root":"/home/runner/work/corpus/corpus"},"distDirRoot":".next"}
|
|
13
13
|
|
|
14
14
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corpus-tool/workbench",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The Corpus translation workbench: the web app @corpus-tool/cli starts with `corpus workbench`, or a host runs behind a URL.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/miguelaguiar01/corpus#readme",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
module.exports=[85148,(a,b,c)=>{b.exports=a.x("better-sqlite3",()=>require("better-sqlite3"))},66680,(a,b,c)=>{b.exports=a.x("node:crypto",()=>require("node:crypto"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},57764,(a,b,c)=>{b.exports=a.x("node:url",()=>require("node:url"))},93584,a=>{"use strict";var b=a.i(37936),c=a.i(5246);a.i(70396);var d=a.i(73727),e=a.i(66528),f=a.i(38382);class g{max;windowMs;maxKeys;hits=new Map;constructor(a){this.max=a.max,this.windowMs=a.windowMs,this.maxKeys=a.maxKeys??1e4}get size(){return this.hits.size}evictExpired(a){for(let[b,c]of this.hits)a-c.windowStart>=this.windowMs&&this.hits.delete(b)}blocked(a,b=Date.now()){let c=this.hits.get(a);return!!c&&!(b-c.windowStart>=this.windowMs)&&c.count>=this.max}retryAfterMs(a,b=Date.now()){return this.blocked(a,b)?this.hits.get(a).windowStart+this.windowMs-b:0}allow(a,b=Date.now()){let c=this.hits.get(a);return c&&b-c.windowStart<this.windowMs?(c.count+=1,c.count<=this.max):(this.evictExpired(b),(!!c||!(this.hits.size>=this.maxKeys))&&(this.hits.set(a,{windowStart:b,count:1}),!0))}}var h=a.i(63634),i=a.i(87061),j=a.i(13095);let k=new g({max:10,windowMs:9e5,maxKeys:1e3}),l=new g({max:30,windowMs:9e5});async function m(){var a;return a=(await (0,c.headers)()).get("x-forwarded-for"),a?.split(",")[0]?.trim()||"unknown"}async function n(){let a=await m(),b=Math.max(k.retryAfterMs(a),l.retryAfterMs("invite"));return b>0?Math.max(1,Math.ceil(b/6e4)):0}async function o(){k.allow(await m()),l.allow("invite")}async function p(){let a=await n();a>0&&(0,d.redirect)((0,f.inviteErrorPath)("rate-limited",{wait:String(a)}))}async function q(a,b){let g=(0,i.createSession)((0,e.getDb)(),a);(await (0,c.cookies)()).set(f.SESSION_COOKIE,g,{httpOnly:!0,sameSite:"lax",secure:!0,path:"/",maxAge:Math.floor(f.SESSION_TTL_MS/1e3)}),(0,d.redirect)(b)}async function r(a){await p();let b=process.env.CORPUS_INVITE_SECRET;if(!b)throw Error("CORPUS_INVITE_SECRET is not configured");let c=(0,i.joinInstance)((0,e.getDb)(),{instanceSecret:b,providedSecret:String(a.get("secret")??""),name:String(a.get("name")??""),password:String(a.get("password")??"")});c.ok||(await o(),(0,d.redirect)((0,f.inviteErrorPath)("name-taken"===c.reason?"name-taken":"weak-password"===c.reason?"weak-password":"invalid"))),await q(c.user.id,"/")}async function s(a){await p();let b=(0,i.signIn)((0,e.getDb)(),{name:String(a.get("name")??""),password:String(a.get("password")??"")});b.ok||(await o(),(0,d.redirect)((0,f.inviteErrorPath)("credentials"))),await q(b.user.id,b.mustChangePassword?f.PASSWORD_PATH:"/")}async function t(a){let b=await (0,h.currentUser)();b||(0,d.redirect)(f.INVITE_PATH),(0,i.setPassword)((0,e.getDb)(),b.id,String(a.get("password")??"")).ok||(0,d.redirect)(`${f.PASSWORD_PATH}?error=weak-password`),(0,d.redirect)("/")}async function u(){let a=await (0,c.cookies)(),b=a.get(f.SESSION_COOKIE)?.value;b&&(0,i.endSession)((0,e.getDb)(),b),a.delete(f.SESSION_COOKIE),(0,d.redirect)(f.INVITE_PATH)}(0,j.ensureServerEntryExports)([r,s,t,u]),(0,b.registerServerReference)(r,"40a302a1878afae102f13f5044466ed212822e21e0",null),(0,b.registerServerReference)(s,"406d6a4c9d37b33ee15cb61203bd77d5bfadea1aab",null),(0,b.registerServerReference)(t,"40da12052d7290b5860cc1c89b6d77b51200d303fd",null),(0,b.registerServerReference)(u,"0006277a72b69cdb00caf695a70e306eadfb2845a1",null),a.s(["signOut",0,u,"submitJoin",0,r,"submitPassword",0,t,"submitSignIn",0,s],93584)},65112,a=>{"use strict";a.s(["AppNav",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call AppNav() from the server but AppNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/web/src/components/app-nav.tsx","AppNav")},82203,a=>{"use strict";var b=a.i(65112);a.n(b)},22923,a=>{"use strict";var b=a.i(7997);let c={form:"max-w-md",reading:"max-w-3xl",wide:"max-w-[100rem]"};a.s(["Page",0,function({width:a,className:d="",children:e}){return(0,b.jsx)("main",{className:`mx-auto w-full px-4 py-6 sm:px-6 lg:px-10 lg:py-8 2xl:px-16 ${c[a]} ${d}`,children:e})}])},43028,a=>{"use strict";a.s(["ProjectSwitcher",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ProjectSwitcher() from the server but ProjectSwitcher is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/apps/web/src/components/project-switcher.tsx","ProjectSwitcher")},25842,a=>{"use strict";var b=a.i(43028);a.n(b)},12408,a=>{"use strict";var b=a.i(7997),c=a.i(95936),d=a.i(93584),e=a.i(33137),f=a.i(82203),g=a.i(25842);a.s(["AppShell",0,function({project:a,maintainer:h=!1,projects:i=[],home:j=!0,signedIn:k=j,children:l}){let m="text-sm font-semibold";return(0,b.jsxs)("div",{className:"min-h-dvh",children:[(0,b.jsxs)("header",{className:"flex min-h-14 flex-wrap items-center gap-x-4 gap-y-2 border-b border-border px-4 py-2 sm:px-6 lg:px-10 2xl:px-16",children:[j?(0,b.jsx)(c.default,{href:"/",className:m,children:(0,e.t)("app.title")}):(0,b.jsx)("span",{className:m,children:(0,e.t)("app.title")}),a&&(0,b.jsx)(g.ProjectSwitcher,{current:a,projects:i}),(0,b.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-x-5 gap-y-1",children:[a&&(0,b.jsx)(f.AppNav,{slug:a,maintainer:h}),k&&(0,b.jsx)("form",{action:d.signOut,children:(0,b.jsx)("button",{type:"submit",className:"-mb-px border-b-2 border-transparent py-1 text-sm text-muted-foreground hover:text-foreground",children:(0,e.t)("nav.signOut")})})]})]}),l]})}])},96106,a=>{"use strict";var b=a.i(7997),c=a.i(717),d=Object.defineProperty,e=(a,b)=>d(a,"name",{value:b,configurable:!0});function f(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function g(...a){return b=>{let c=!1,d=a.map(a=>{let d=f(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():f(a[b],null)}}}}function h(...a){return c.useCallback(g(...a),a)}e(f,"setRef"),e(g,"composeRefs"),e(h,"useComposedRefs");var i=Object.defineProperty,j=(a,b)=>i(a,"name",{value:b,configurable:!0});function k(a){let b=c.forwardRef((b,d)=>{let{children:e,...f}=b,g=null,i=!1,j=[];s(e)&&"function"==typeof w&&(e=w(e._payload)),c.Children.forEach(e,a=>{if(q(a)){i=!0;let b="child"in a.props?a.props.child:a.props.children;s(b)&&"function"==typeof w&&(b=w(b._payload)),g=n(a,b),j.push(g?.props?.children)}else j.push(a)}),g?g=c.cloneElement(g,void 0,j):!i&&1===c.Children.count(e)&&c.isValidElement(e)&&(g=e);let k=g?p(g):void 0,l=h(d,k);if(!g){if(e||0===e)throw Error(i?v(a):u(a));return e}let m=o(f,g.props??{});return g.type!==c.Fragment&&(m.ref=d?l:k),c.cloneElement(g,m)});return b.displayName=`${a}.Slot`,b}j(k,"createSlot");var l=k("Slot"),m=Symbol.for("radix.slottable");j(function(a){let b=j(a=>"child"in a?a.children(a.child):a.children,"Slottable");return b.displayName=`${a}.Slottable`,b.__radixId=m,b},"createSlottable");var n=j((a,b)=>{if("child"in a.props){let b=a.props.child;return c.isValidElement(b)?c.cloneElement(b,void 0,a.props.children(b.props.children)):null}return c.isValidElement(b)?b:null},"getSlottableElementFromSlottable");function o(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}function p(a){let b=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,c=b&&"isReactWarning"in b&&b.isReactWarning;return c?a.ref:(c=(b=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in b&&b.isReactWarning)?a.props.ref:a.props.ref||a.ref}function q(a){return c.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===m}j(o,"mergeProps"),j(p,"getElementRef"),j(q,"isSlottable");var r=Symbol.for("react.lazy");function s(a){return null!=a&&"object"==typeof a&&"$$typeof"in a&&a.$$typeof===r&&"_payload"in a&&t(a._payload)}function t(a){return"object"==typeof a&&null!==a&&"then"in a}j(s,"isLazyComponent"),j(t,"isPromiseLike");var u=j(a=>`${a} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),v=j(a=>`${a} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),w=c[" use ".trim().toString()],x=a.i(96942),y=a.i(28472);let z=(0,x.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),A=c.forwardRef(({className:a,variant:c,size:d,asChild:e=!1,...f},g)=>(0,b.jsx)(e?l:"button",{className:(0,y.cn)(z({variant:c,size:d,className:a})),ref:g,...f}));A.displayName="Button",a.s(["Button",0,A],96106)},64240,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},13095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
2
|
-
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},37936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},84707,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(11857);a.n(d("[project]/node_modules/next/dist/client/app-dir/link.js"))},97647,a=>{"use strict";var b=a.i(84707);a.n(b)},95936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(64240),g=a.r(7997),h=f._(a.r(97647));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__13fsfn6._.js.map
|
|
File without changes
|
|
File without changes
|
/package/dist/apps/web/.next/static/{yfTgCZmh0G5GgAWmkSLAG → HUjNHQ_BVWHZvPreiYQsr}/_ssgManifest.js
RENAMED
|
File without changes
|