@minecraft-docker/mcctl-console 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +81 -78
- package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +4 -4
- package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/routes-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/history/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/history/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/restore/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/restore/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/backup/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/ban/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/ban/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/kick/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/kick/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/op/[player]/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/op/[player]/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/op/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/op/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/whitelist/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/whitelist/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/whitelist/status/route.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/players/whitelist/status/route.js.nft.json +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/router/status/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/router/status/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/[action]/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/[action]/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/config/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/config/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/exec/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/exec/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/hostnames/route.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/hostnames/route.js.nft.json +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/world/reset/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/[name]/world/reset/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/servers/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/[name]/[action]/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/[name]/[action]/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/[name]/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/[name]/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/route.js +1 -57
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/api/worlds/route.js.nft.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +3 -3
- package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +16 -14
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/1080.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/1309.js +57 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/1314.js +7 -7
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/3434.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/354.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5019.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8685.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/1476-a0570078fdf78fae.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2666-060d67b8e56af9d0.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5787-3387a2b82bbb1e66.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6645-9bcc9a0f9cd2fdc9.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7305-17eb783421477032.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7727-2552fac729c5514a.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9058-02ac41562ff141d0.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9154-c792f0aadd25fffe.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9949-92aa4cba630945d3.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-201b9f9aecc8932e.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-626f566be94160eb.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-a655062812711f1b.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-7797d4cf74c7fa77.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/console/page-4e811ac018a2a049.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-f1026a973b0f8ac1.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/page-9d374aef836cdbae.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-fe918cc58acd9ed9.js +1 -0
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-2e4a4b525d3b0f1d.js +1 -0
- package/.next/{static/chunks/app/login/page-073a17485ca81f18.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/login/page-ff4d395f77e036b5.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/signup/{page-bfb822f4c5c7ce99.js → page-861124fab907567f.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/{main-d86dc43481acf07f.js → main-c1b58e7640294abf.js} +1 -1
- package/.next/standalone/platform/services/mcctl-console/package.json +1 -1
- package/.next/static/chunks/1476-a0570078fdf78fae.js +1 -0
- package/.next/static/chunks/2666-060d67b8e56af9d0.js +1 -0
- package/.next/static/chunks/5787-3387a2b82bbb1e66.js +1 -0
- package/.next/static/chunks/6645-9bcc9a0f9cd2fdc9.js +1 -0
- package/.next/static/chunks/7305-17eb783421477032.js +1 -0
- package/.next/static/chunks/7727-2552fac729c5514a.js +1 -0
- package/.next/static/chunks/9058-02ac41562ff141d0.js +1 -0
- package/.next/static/chunks/9154-c792f0aadd25fffe.js +1 -0
- package/.next/static/chunks/9949-92aa4cba630945d3.js +1 -0
- package/.next/static/chunks/app/(main)/backups/page-201b9f9aecc8932e.js +1 -0
- package/.next/static/chunks/app/(main)/dashboard/page-626f566be94160eb.js +1 -0
- package/.next/static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js +1 -0
- package/.next/static/chunks/app/(main)/players/page-a655062812711f1b.js +1 -0
- package/.next/static/chunks/app/(main)/routing/page-7797d4cf74c7fa77.js +1 -0
- package/.next/static/chunks/app/(main)/servers/[name]/console/page-4e811ac018a2a049.js +1 -0
- package/.next/static/chunks/app/(main)/servers/[name]/page-f1026a973b0f8ac1.js +1 -0
- package/.next/static/chunks/app/(main)/servers/page-9d374aef836cdbae.js +1 -0
- package/.next/static/chunks/app/(main)/settings/page-fe918cc58acd9ed9.js +1 -0
- package/.next/static/chunks/app/(main)/worlds/page-2e4a4b525d3b0f1d.js +1 -0
- package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/login/page-073a17485ca81f18.js → static/chunks/app/login/page-ff4d395f77e036b5.js} +1 -1
- package/.next/static/chunks/app/signup/{page-bfb822f4c5c7ce99.js → page-861124fab907567f.js} +1 -1
- package/.next/static/chunks/{main-d86dc43481acf07f.js → main-c1b58e7640294abf.js} +1 -1
- package/package.json +2 -2
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/2793.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8402.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/1544-d2d1404bef00d038.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/1721-2758853c661770ff.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2537-6c9d2dfd403b7448.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3489-b8c5f08aa4922197.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5375-a2d3a8fb915a3971.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/563-d87300cc5ef5920c.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6357-a9d3501984c53429.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6857-5b9c04069853bfc4.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8558-4356df5e91ec7f4c.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-a8606e93b4994f33.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-fe3321721ddfe2a7.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-bc7b020e80bc6d8d.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-5bbed669a03279a3.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-ee0b47f2cc2bc235.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/console/page-617a1ab914c8d828.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-b8d4a08a748e882d.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/page-e47f9c34ab4e890d.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-dac4b25dde7b0719.js +0 -1
- package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-7e2bc35fda11d7c4.js +0 -1
- package/.next/static/chunks/1544-d2d1404bef00d038.js +0 -1
- package/.next/static/chunks/1721-2758853c661770ff.js +0 -1
- package/.next/static/chunks/2537-6c9d2dfd403b7448.js +0 -1
- package/.next/static/chunks/3489-b8c5f08aa4922197.js +0 -1
- package/.next/static/chunks/5375-a2d3a8fb915a3971.js +0 -1
- package/.next/static/chunks/563-d87300cc5ef5920c.js +0 -1
- package/.next/static/chunks/6357-a9d3501984c53429.js +0 -1
- package/.next/static/chunks/6857-5b9c04069853bfc4.js +0 -1
- package/.next/static/chunks/8558-4356df5e91ec7f4c.js +0 -1
- package/.next/static/chunks/app/(main)/backups/page-a8606e93b4994f33.js +0 -1
- package/.next/static/chunks/app/(main)/dashboard/page-fe3321721ddfe2a7.js +0 -1
- package/.next/static/chunks/app/(main)/layout-bc7b020e80bc6d8d.js +0 -1
- package/.next/static/chunks/app/(main)/players/page-5bbed669a03279a3.js +0 -1
- package/.next/static/chunks/app/(main)/routing/page-ee0b47f2cc2bc235.js +0 -1
- package/.next/static/chunks/app/(main)/servers/[name]/console/page-617a1ab914c8d828.js +0 -1
- package/.next/static/chunks/app/(main)/servers/[name]/page-b8d4a08a748e882d.js +0 -1
- package/.next/static/chunks/app/(main)/servers/page-e47f9c34ab4e890d.js +0 -1
- package/.next/static/chunks/app/(main)/settings/page-dac4b25dde7b0719.js +0 -1
- package/.next/static/chunks/app/(main)/worlds/page-7e2bc35fda11d7c4.js +0 -1
- /package/.next/standalone/platform/services/mcctl-console/.next/static/{qKkyAhVhtEF8ACV2o3pRc → 0yTJAIAp_3b6rB4bkr7KX}/_buildManifest.js +0 -0
- /package/.next/standalone/platform/services/mcctl-console/.next/static/{qKkyAhVhtEF8ACV2o3pRc → 0yTJAIAp_3b6rB4bkr7KX}/_ssgManifest.js +0 -0
- /package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/{page-21b37416096d3cfc.js → page-592b5471bbfd01e3.js} +0 -0
- /package/.next/static/{qKkyAhVhtEF8ACV2o3pRc → 0yTJAIAp_3b6rB4bkr7KX}/_buildManifest.js +0 -0
- /package/.next/static/{qKkyAhVhtEF8ACV2o3pRc → 0yTJAIAp_3b6rB4bkr7KX}/_ssgManifest.js +0 -0
- /package/.next/static/chunks/app/(main)/audit-logs/{page-21b37416096d3cfc.js → page-592b5471bbfd01e3.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
exports.id=354,exports.ids=[354],exports.modules={78729:(e,r,t)=>{Promise.resolve().then(t.bind(t,47600))},47600:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>V});var a=t(58120),s=t(36372),i=t(89352),n=t(56539),l=t(40611),o=t(22053),c=t(39497),d=t(54365),x=t(2365),h=t(27121),m=t(58664),p=t(73091),u=t(19609),f=t(63654),g=t(63856),b=t(6695),j=t(33615),y=t(6545),v=t(43908),Z=t(28669),w=t(32130),C=t(88517),k=t(765),S=t(37372),P=t(34081),z=t(60417);function I(e){return(0,a.jsxs)(z.Z,{...e,viewBox:"0 0 32 32",children:[a.jsx("rect",{width:"32",height:"32",fill:"#5DA840"}),a.jsx("rect",{x:"4",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"20",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"12",y:"16",width:"8",height:"4",fill:"#000"}),a.jsx("rect",{x:"8",y:"20",width:"16",height:"8",fill:"#000"}),a.jsx("rect",{x:"8",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"20",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"0",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"8",y:"4",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"24",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"28",y:"8",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"0",y:"24",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"})]})}var W=t(36597),A=t(68763);let D=[{label:"Dashboard",href:"/dashboard",icon:a.jsx(y.Z,{})},{label:"Servers",href:"/servers",icon:a.jsx(v.Z,{})},{label:"Worlds",href:"/worlds",icon:a.jsx(k.Z,{})},{label:"Players",href:"/players",icon:a.jsx(Z.Z,{})},{label:"Audit Log",href:"/audit-logs",icon:a.jsx(C.Z,{})},{label:"Backups",href:"/backups",icon:a.jsx(S.Z,{})},{label:"Routing",href:"/routing",icon:a.jsx(w.Z,{})}];function T({mobileOpen:e,onMenuToggle:r}){let t=(0,n.usePathname)(),{data:s}=(0,A.kP)(),y=e=>"/dashboard"===e?"/dashboard"===t||"/"===t:t.startsWith(e);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(o.Z,{position:"fixed",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider",zIndex:e=>e.zIndex.drawer+1},children:(0,a.jsxs)(c.Z,{sx:{maxWidth:"1400px",width:"100%",mx:"auto",px:{xs:2,sm:3}},children:[a.jsx(d.Z,{color:"inherit","aria-label":"open menu",edge:"start",onClick:r,sx:{mr:2,display:{md:"none"}},children:a.jsx(b.Z,{})}),(0,a.jsxs)(l.default,{href:"/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:28,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"common.white",letterSpacing:"0.05em",fontSize:"1.1rem"},children:"Minecraft Console"})]}),a.jsx(i.Z,{component:"nav",sx:{display:{xs:"none",md:"flex"},alignItems:"center",gap:1,ml:4,flex:1},children:D.map(e=>{let r=y(e.href);return a.jsx(l.default,{href:e.href,style:{textDecoration:"none"},onClick:()=>!r&&(0,W.Av)(),children:(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,color:r?"primary.main":"text.secondary",backgroundColor:r?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:"action.hover",color:r?"primary.main":"text.primary"}},children:[a.jsx(i.Z,{component:"span",sx:{display:"flex",alignItems:"center","& svg":{fontSize:20}},children:e.icon}),a.jsx(x.Z,{variant:"body2",sx:{fontWeight:r?600:400},children:e.label})]})},e.href)})}),a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:a.jsx(P.Ie,{})})]})}),a.jsx(h.ZP,{variant:"temporary",anchor:"left",open:e,onClose:r,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:280,backgroundColor:"background.paper"}},children:(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:2,minHeight:64,borderBottom:"1px solid",borderColor:"divider"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:24,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"primary.main",letterSpacing:"0.05em",fontSize:"1rem"},children:"Minecraft Console"})]}),a.jsx(d.Z,{onClick:r,"aria-label":"close menu",children:a.jsx(j.Z,{})})]}),a.jsx(m.Z,{sx:{flex:1,px:1,py:2},children:D.map(e=>{let t=y(e.href);return a.jsx(p.ZP,{disablePadding:!0,sx:{mb:.5},children:(0,a.jsxs)(u.Z,{component:l.default,href:e.href,onClick:()=>{r(),t||(0,W.Av)()},"aria-current":t?"page":void 0,sx:{borderRadius:2,backgroundColor:t?"action.selected":"transparent","&:hover":{backgroundColor:"action.hover"}},children:[a.jsx(f.Z,{sx:{color:t?"primary.main":"text.secondary",minWidth:40},children:e.icon}),a.jsx(g.Z,{primary:e.label,primaryTypographyProps:{fontWeight:t?600:400,color:t?"primary.main":"text.primary"}})]})},e.href)})})]})})]})}var M=t(23972),q=t(42578),R=t(80336),U=t(3984),E=t(60028);function H(e){return a.jsx(z.Z,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288z"})})}let B=[{title:"Resources",links:[{label:"Getting Started",href:"https://minecraft-server-manager.readthedocs.io/en/latest/getting-started/",external:!0},{label:"Configuration",href:"https://minecraft-server-manager.readthedocs.io/en/latest/configuration/",external:!0},{label:"Troubleshooting",href:"https://minecraft-server-manager.readthedocs.io/en/latest/troubleshooting/",external:!0}]},{title:"Documentation",links:[{label:"CLI Commands",href:"https://minecraft-server-manager.readthedocs.io/en/latest/cli/",external:!0},{label:"API Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/console/",external:!0},{label:"itzg Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/itzg-reference/",external:!0}]},{title:"Community",links:[{label:"GitHub",href:"https://github.com/smallmiro/minecraft-server-manager",external:!0},{label:"Issues",href:"https://github.com/smallmiro/minecraft-server-manager/issues",external:!0}]},{title:"About",links:[{label:"License",href:"https://github.com/smallmiro/minecraft-server-manager/blob/main/LICENSE",external:!0},{label:"Docker Hub",href:"https://hub.docker.com/r/itzg/minecraft-server",external:!0}]}];function L(){let e=new Date().getFullYear();return a.jsx(i.Z,{component:"footer",sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",mt:"auto"},children:(0,a.jsxs)(M.Z,{maxWidth:"lg",sx:{py:6},children:[a.jsx(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(4, 1fr)"},gap:4,mb:4},children:B.map(e=>(0,a.jsxs)(i.Z,{children:[a.jsx(x.Z,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary",mb:2},children:e.title}),a.jsx(i.Z,{component:"ul",sx:{listStyle:"none",p:0,m:0},children:e.links.map(e=>a.jsx(i.Z,{component:"li",sx:{mb:1},children:a.jsx(q.Z,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,underline:"hover",sx:{color:"text.secondary",fontSize:"0.875rem",transition:"color 0.2s ease","&:hover":{color:"primary.main"}},children:e.label})},e.label))})]},e.title))}),a.jsx(R.Z,{sx:{mb:3}}),(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:2},children:[(0,a.jsxs)(x.Z,{variant:"body2",sx:{color:"text.tertiary"},children:[e," \xa9"," ",a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:"primary.main"},children:"Minecraft Server Management Console"})]}),(0,a.jsxs)(i.Z,{sx:{display:"flex",gap:2},children:[a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(U.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://minecraft-server-manager.readthedocs.io/",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(E.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://hub.docker.com/r/itzg/minecraft-server",target:"_blank",rel:"noopener noreferrer","aria-label":"Docker Hub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(H,{fontSize:"small"})})]})]})]})})}function V({children:e}){let[r,t]=(0,s.useState)(!1);return(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:"background.default"},children:[a.jsx(T,{mobileOpen:r,onMenuToggle:()=>{t(!r)}}),a.jsx(i.Z,{component:"main",sx:{flexGrow:1,display:"flex",flexDirection:"column",pt:{xs:"88px",sm:"96px"},pb:{xs:3,sm:4},px:{xs:2,sm:3,md:4},maxWidth:"1400px",width:"100%",mx:"auto"},children:e}),a.jsx(L,{})]})}},34081:(e,r,t)=>{"use strict";t.d(r,{U0:()=>p,WS:()=>u,Ie:()=>I});var a=t(58120),s=t(36372),i=t(89352),n=t(66757),l=t(6275),o=t(92559),c=t(54365),d=t(10257),x=t(3643),h=t(8721),m=t(68763);function p({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)({}),[y,v]=(0,s.useState)(null),[Z,w]=(0,s.useState)(!1),C=()=>{let e={};return r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e.email="Invalid email address"):e.email="Email is required",p||(e.password="Password is required"),j(e),0===Object.keys(e).length},k=async t=>{if(t.preventDefault(),v(null),C()){w(!0);try{let t=await m.cg.email({email:r,password:p});if(t.error){v(t.error.message||"Invalid credentials"),w(!1);return}e&&e()}catch(e){v("An unexpected error occurred. Please try again."),w(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:k,sx:{display:"flex",flexDirection:"column",gap:2},children:[y&&a.jsx(n.Z,{severity:"error",onClose:()=>v(null),children:y}),a.jsx(l.Z,{label:"Email",type:"email",value:r,onChange:e=>t(e.target.value),error:!!b.email,helperText:b.email,disabled:Z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:f?"text":"password",value:p,onChange:e=>u(e.target.value),error:!!b.password,helperText:b.password,disabled:Z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{g(!f)},edge:"end",children:f?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:Z,fullWidth:!0,size:"large",children:Z?"Signing in...":"Sign In"})]})}function u({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(""),[b,j]=(0,s.useState)(""),[y,v]=(0,s.useState)(!1),[Z,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)({}),[S,P]=(0,s.useState)(null),[z,I]=(0,s.useState)(!1),W=()=>{let e={};return r||(e.name="Name is required"),p?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)||(e.email="Invalid email address"):e.email="Email is required",f?f.length<8&&(e.password="Password must be at least 8 characters"):e.password="Password is required",b?f!==b&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your password",k(e),0===Object.keys(e).length},A=async t=>{if(t.preventDefault(),P(null),W()){I(!0);try{let t=await m.y1.email({email:p,password:f,name:r});if(t.error){P(t.error.message||"Registration failed"),I(!1);return}e&&e()}catch(e){P("An unexpected error occurred. Please try again."),I(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:A,sx:{display:"flex",flexDirection:"column",gap:2},children:[S&&a.jsx(n.Z,{severity:"error",onClose:()=>P(null),children:S}),a.jsx(l.Z,{label:"Name",type:"text",value:r,onChange:e=>t(e.target.value),error:!!C.name,helperText:C.name,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Email",type:"email",value:p,onChange:e=>u(e.target.value),error:!!C.email,helperText:C.email,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:y?"text":"password",value:f,onChange:e=>g(e.target.value),error:!!C.password,helperText:C.password,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{v(!y)},edge:"end",children:y?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(l.Z,{label:"Confirm Password",type:Z?"text":"password",value:b,onChange:e=>j(e.target.value),error:!!C.confirmPassword,helperText:C.confirmPassword,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{w(!Z)},edge:"end",children:Z?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:z,fullWidth:!0,size:"large",children:z?"Creating account...":"Sign Up"})]})}var f=t(56539),g=t(79943),b=t(61573),j=t(51232),y=t(2365),v=t(48787),Z=t(80336),w=t(99634),C=t(63654),k=t(63856),S=t(62178),P=t(50210),z=t(49185);function I(){let e=(0,f.useRouter)(),{data:r,isPending:t}=(0,m.kP)(),[n,l]=(0,s.useState)(null),o=()=>{l(null)},x=async()=>{o(),await (0,m.w7)(),e.push("/login")};if(t)return a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(g.Z,{size:24})});if(!r?.user)return a.jsx(d.Z,{variant:"contained",color:"primary",onClick:()=>{e.push("/login")},children:"Sign In"});let{user:h}=r,p=((e,r)=>{if(e){let r=e.split(" ");return r.length>=2?`${r[0][0]}${r[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()}return r?r[0].toUpperCase():"?"})(h.name,h.email);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(c.Z,{onClick:e=>{l(e.currentTarget)},"aria-label":"user menu",children:a.jsx(b.Z,{sx:{bgcolor:"primary.main"},children:p})}),(0,a.jsxs)(j.Z,{anchorEl:n,open:!!n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{mt:1},children:[(0,a.jsxs)(i.Z,{sx:{px:2,py:1.5,minWidth:200},children:[a.jsx(y.Z,{variant:"subtitle1",fontWeight:"600",children:h.name||"User"}),a.jsx(y.Z,{variant:"body2",color:"text.secondary",children:h.email}),"admin"===h.role&&a.jsx(v.Z,{label:"Admin",size:"small",color:"primary",sx:{mt:1}})]}),a.jsx(Z.Z,{}),"admin"===h.role&&(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/admin/users")},children:[a.jsx(C.Z,{children:a.jsx(S.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Users"})]}),(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/settings")},children:[a.jsx(C.Z,{children:a.jsx(P.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Settings"})]}),(0,a.jsxs)(w.Z,{onClick:x,children:[a.jsx(C.Z,{children:a.jsx(z.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Logout"})]})]})]})}},36597:(e,r,t)=>{"use strict";t.d(r,{Av:()=>a.startLoading});var a=t(21908)},68763:(e,r,t)=>{"use strict";t.d(r,{Cp:()=>x,Nq:()=>d,cg:()=>n,kP:()=>c,w7:()=>l,y1:()=>o,zB:()=>h});var a=t(19106),s=t(82829);let i=(0,a.X)({baseURL:process.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:n,signOut:l,signUp:o,useSession:c,updateUser:d,changePassword:x}=i,h=i.admin},26072:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>a});let a=(0,t(2325).createProxy)(String.raw`/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/(main)/layout.tsx#default`)},52001:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var a=t(15505);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,a.fillMetadataSegment)(".",e.params,"icon.svg")+"?0f68875a168deab8"}]}};
|
|
1
|
+
exports.id=354,exports.ids=[354],exports.modules={78729:(e,r,t)=>{Promise.resolve().then(t.bind(t,47600))},47600:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>_});var a=t(58120),s=t(36372),i=t(89352),n=t(56539),l=t(40611),o=t(22053),c=t(39497),d=t(54365),x=t(2365),h=t(27121),m=t(58664),p=t(73091),u=t(19609),f=t(63654),g=t(63856),b=t(6695),j=t(33615),y=t(6545),v=t(43908),Z=t(28669),w=t(32130),C=t(88517),k=t(765),S=t(37372),P=t(34081),z=t(60417);function I(e){return(0,a.jsxs)(z.Z,{...e,viewBox:"0 0 32 32",children:[a.jsx("rect",{width:"32",height:"32",fill:"#5DA840"}),a.jsx("rect",{x:"4",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"20",y:"8",width:"8",height:"8",fill:"#000"}),a.jsx("rect",{x:"12",y:"16",width:"8",height:"4",fill:"#000"}),a.jsx("rect",{x:"8",y:"20",width:"16",height:"8",fill:"#000"}),a.jsx("rect",{x:"8",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"20",y:"28",width:"4",height:"4",fill:"#000"}),a.jsx("rect",{x:"0",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"8",y:"4",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"24",y:"0",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"28",y:"8",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"}),a.jsx("rect",{x:"0",y:"24",width:"4",height:"4",fill:"#4A9030",opacity:"0.5"})]})}var W=t(36597),A=t(68763);let D=[{label:"Dashboard",href:"/dashboard",icon:a.jsx(y.Z,{})},{label:"Servers",href:"/servers",icon:a.jsx(v.Z,{})},{label:"Worlds",href:"/worlds",icon:a.jsx(k.Z,{})},{label:"Players",href:"/players",icon:a.jsx(Z.Z,{})},{label:"Audit",href:"/audit-logs",icon:a.jsx(C.Z,{})},{label:"Backups",href:"/backups",icon:a.jsx(S.Z,{})},{label:"Routing",href:"/routing",icon:a.jsx(w.Z,{})}];function T({mobileOpen:e,onMenuToggle:r}){let t=(0,n.usePathname)(),{data:s}=(0,A.kP)(),y=e=>"/dashboard"===e?"/dashboard"===t||"/"===t:t.startsWith(e);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(o.Z,{position:"fixed",elevation:0,sx:{backgroundColor:"background.paper",borderBottom:"1px solid",borderColor:"divider",zIndex:e=>e.zIndex.drawer+1},children:(0,a.jsxs)(c.Z,{sx:{maxWidth:"1400px",width:"100%",mx:"auto",px:{xs:2,sm:3}},children:[a.jsx(d.Z,{color:"inherit","aria-label":"open menu",edge:"start",onClick:r,sx:{mr:2,display:{md:"none"}},children:a.jsx(b.Z,{})}),(0,a.jsxs)(l.default,{href:"/",style:{textDecoration:"none",display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:28,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"common.white",letterSpacing:"0.05em",fontSize:"1.1rem"},children:"Minecraft Console"})]}),a.jsx(i.Z,{component:"nav",sx:{display:{xs:"none",md:"flex"},alignItems:"center",gap:1,ml:4,flex:1},children:D.map(e=>{let r=y(e.href);return a.jsx(l.default,{href:e.href,style:{textDecoration:"none"},onClick:()=>!r&&(0,W.Av)(),children:(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,color:r?"primary.main":"text.secondary",backgroundColor:r?"action.selected":"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:"action.hover",color:r?"primary.main":"text.primary"}},children:[a.jsx(i.Z,{component:"span",sx:{display:"flex",alignItems:"center","& svg":{fontSize:20}},children:e.icon}),a.jsx(x.Z,{variant:"body2",sx:{fontWeight:r?600:400},children:e.label})]})},e.href)})}),a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:a.jsx(P.Ie,{})})]})}),a.jsx(h.ZP,{variant:"temporary",anchor:"left",open:e,onClose:r,ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:280,backgroundColor:"background.paper"}},children:(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:2,minHeight:64,borderBottom:"1px solid",borderColor:"divider"},children:[(0,a.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(I,{sx:{fontSize:24,color:"primary.main",mr:1}}),a.jsx(x.Z,{variant:"h6",component:"span",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"primary.main",letterSpacing:"0.05em",fontSize:"1rem"},children:"Minecraft Console"})]}),a.jsx(d.Z,{onClick:r,"aria-label":"close menu",children:a.jsx(j.Z,{})})]}),a.jsx(m.Z,{sx:{flex:1,px:1,py:2},children:D.map(e=>{let t=y(e.href);return a.jsx(p.ZP,{disablePadding:!0,sx:{mb:.5},children:(0,a.jsxs)(u.Z,{component:l.default,href:e.href,onClick:()=>{r(),t||(0,W.Av)()},"aria-current":t?"page":void 0,sx:{borderRadius:2,backgroundColor:t?"action.selected":"transparent","&:hover":{backgroundColor:"action.hover"}},children:[a.jsx(f.Z,{sx:{color:t?"primary.main":"text.secondary",minWidth:40},children:e.icon}),a.jsx(g.Z,{primary:e.label,primaryTypographyProps:{fontWeight:t?600:400,color:t?"primary.main":"text.primary"}})]})},e.href)})})]})})]})}var M=t(23972),q=t(42578),R=t(80336),U=t(3984),E=t(60028);function H(e){return a.jsx(z.Z,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288z"})})}let B=[{title:"Resources",links:[{label:"Getting Started",href:"https://minecraft-server-manager.readthedocs.io/en/latest/getting-started/",external:!0},{label:"Configuration",href:"https://minecraft-server-manager.readthedocs.io/en/latest/configuration/",external:!0},{label:"Troubleshooting",href:"https://minecraft-server-manager.readthedocs.io/en/latest/troubleshooting/",external:!0}]},{title:"Documentation",links:[{label:"CLI Commands",href:"https://minecraft-server-manager.readthedocs.io/en/latest/cli/",external:!0},{label:"API Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/console/",external:!0},{label:"itzg Reference",href:"https://minecraft-server-manager.readthedocs.io/en/latest/itzg-reference/",external:!0}]},{title:"Community",links:[{label:"GitHub",href:"https://github.com/smallmiro/minecraft-server-manager",external:!0},{label:"Issues",href:"https://github.com/smallmiro/minecraft-server-manager/issues",external:!0}]},{title:"About",links:[{label:"License",href:"https://github.com/smallmiro/minecraft-server-manager/blob/main/LICENSE",external:!0},{label:"Docker Hub",href:"https://hub.docker.com/r/itzg/minecraft-server",external:!0}]}];function V(){let e=new Date().getFullYear();return a.jsx(i.Z,{component:"footer",sx:{backgroundColor:"background.paper",borderTop:"1px solid",borderColor:"divider",mt:"auto"},children:(0,a.jsxs)(M.Z,{maxWidth:"lg",sx:{py:6},children:[a.jsx(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(4, 1fr)"},gap:4,mb:4},children:B.map(e=>(0,a.jsxs)(i.Z,{children:[a.jsx(x.Z,{variant:"subtitle2",sx:{fontWeight:600,color:"text.primary",mb:2},children:e.title}),a.jsx(i.Z,{component:"ul",sx:{listStyle:"none",p:0,m:0},children:e.links.map(e=>a.jsx(i.Z,{component:"li",sx:{mb:1},children:a.jsx(q.Z,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,underline:"hover",sx:{color:"text.secondary",fontSize:"0.875rem",transition:"color 0.2s ease","&:hover":{color:"primary.main"}},children:e.label})},e.label))})]},e.title))}),a.jsx(R.Z,{sx:{mb:3}}),(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:2},children:[(0,a.jsxs)(x.Z,{variant:"body2",sx:{color:"text.tertiary"},children:[e," \xa9"," ",a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer",underline:"hover",sx:{color:"primary.main"},children:"Minecraft Server Management Console"})]}),(0,a.jsxs)(i.Z,{sx:{display:"flex",gap:2},children:[a.jsx(q.Z,{href:"https://github.com/smallmiro/minecraft-server-manager",target:"_blank",rel:"noopener noreferrer","aria-label":"GitHub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(U.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://minecraft-server-manager.readthedocs.io/",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(E.Z,{fontSize:"small"})}),a.jsx(q.Z,{href:"https://hub.docker.com/r/itzg/minecraft-server",target:"_blank",rel:"noopener noreferrer","aria-label":"Docker Hub",sx:{color:"text.secondary",transition:"color 0.2s ease","&:hover":{color:"text.primary"}},children:a.jsx(H,{fontSize:"small"})})]})]})]})})}function _({children:e}){let[r,t]=(0,s.useState)(!1);return(0,a.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",backgroundColor:"background.default"},children:[a.jsx(T,{mobileOpen:r,onMenuToggle:()=>{t(!r)}}),a.jsx(i.Z,{component:"main",sx:{flexGrow:1,display:"flex",flexDirection:"column",pt:{xs:"88px",sm:"96px"},pb:{xs:3,sm:4},px:{xs:2,sm:3,md:4},maxWidth:"1400px",width:"100%",mx:"auto"},children:e}),a.jsx(V,{})]})}},34081:(e,r,t)=>{"use strict";t.d(r,{U0:()=>p,WS:()=>u,Ie:()=>I});var a=t(58120),s=t(36372),i=t(89352),n=t(66757),l=t(6275),o=t(92559),c=t(54365),d=t(10257),x=t(3643),h=t(8721),m=t(68763);function p({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[b,j]=(0,s.useState)({}),[y,v]=(0,s.useState)(null),[Z,w]=(0,s.useState)(!1),C=()=>{let e={};return r?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)||(e.email="Invalid email address"):e.email="Email is required",p||(e.password="Password is required"),j(e),0===Object.keys(e).length},k=async t=>{if(t.preventDefault(),v(null),C()){w(!0);try{let t=await m.cg.email({email:r,password:p});if(t.error){v(t.error.message||"Invalid credentials"),w(!1);return}e&&e()}catch(e){v("An unexpected error occurred. Please try again."),w(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:k,sx:{display:"flex",flexDirection:"column",gap:2},children:[y&&a.jsx(n.Z,{severity:"error",onClose:()=>v(null),children:y}),a.jsx(l.Z,{label:"Email",type:"email",value:r,onChange:e=>t(e.target.value),error:!!b.email,helperText:b.email,disabled:Z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:f?"text":"password",value:p,onChange:e=>u(e.target.value),error:!!b.password,helperText:b.password,disabled:Z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{g(!f)},edge:"end",children:f?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:Z,fullWidth:!0,size:"large",children:Z?"Signing in...":"Sign In"})]})}function u({onSuccess:e}){let[r,t]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[f,g]=(0,s.useState)(""),[b,j]=(0,s.useState)(""),[y,v]=(0,s.useState)(!1),[Z,w]=(0,s.useState)(!1),[C,k]=(0,s.useState)({}),[S,P]=(0,s.useState)(null),[z,I]=(0,s.useState)(!1),W=()=>{let e={};return r||(e.name="Name is required"),p?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)||(e.email="Invalid email address"):e.email="Email is required",f?f.length<8&&(e.password="Password must be at least 8 characters"):e.password="Password is required",b?f!==b&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your password",k(e),0===Object.keys(e).length},A=async t=>{if(t.preventDefault(),P(null),W()){I(!0);try{let t=await m.y1.email({email:p,password:f,name:r});if(t.error){P(t.error.message||"Registration failed"),I(!1);return}e&&e()}catch(e){P("An unexpected error occurred. Please try again."),I(!1)}}};return(0,a.jsxs)(i.Z,{component:"form",onSubmit:A,sx:{display:"flex",flexDirection:"column",gap:2},children:[S&&a.jsx(n.Z,{severity:"error",onClose:()=>P(null),children:S}),a.jsx(l.Z,{label:"Name",type:"text",value:r,onChange:e=>t(e.target.value),error:!!C.name,helperText:C.name,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Email",type:"email",value:p,onChange:e=>u(e.target.value),error:!!C.email,helperText:C.email,disabled:z,fullWidth:!0,required:!0}),a.jsx(l.Z,{label:"Password",type:y?"text":"password",value:f,onChange:e=>g(e.target.value),error:!!C.password,helperText:C.password,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{v(!y)},edge:"end",children:y?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(l.Z,{label:"Confirm Password",type:Z?"text":"password",value:b,onChange:e=>j(e.target.value),error:!!C.confirmPassword,helperText:C.confirmPassword,disabled:z,fullWidth:!0,required:!0,InputProps:{endAdornment:a.jsx(o.Z,{position:"end",children:a.jsx(c.Z,{"aria-label":"toggle password visibility",onClick:()=>{w(!Z)},edge:"end",children:Z?a.jsx(x.Z,{}):a.jsx(h.Z,{})})})}}),a.jsx(d.Z,{type:"submit",variant:"contained",color:"primary",disabled:z,fullWidth:!0,size:"large",children:z?"Creating account...":"Sign Up"})]})}var f=t(56539),g=t(79943),b=t(61573),j=t(51232),y=t(2365),v=t(48787),Z=t(80336),w=t(99634),C=t(63654),k=t(63856),S=t(62178),P=t(50210),z=t(49185);function I(){let e=(0,f.useRouter)(),{data:r,isPending:t}=(0,m.kP)(),[n,l]=(0,s.useState)(null),o=()=>{l(null)},x=async()=>{o(),await (0,m.w7)(),e.push("/login")};if(t)return a.jsx(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(g.Z,{size:24})});if(!r?.user)return a.jsx(d.Z,{variant:"contained",color:"primary",onClick:()=>{e.push("/login")},children:"Sign In"});let{user:h}=r,p=((e,r)=>{if(e){let r=e.split(" ");return r.length>=2?`${r[0][0]}${r[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()}return r?r[0].toUpperCase():"?"})(h.name,h.email);return(0,a.jsxs)(a.Fragment,{children:[a.jsx(c.Z,{onClick:e=>{l(e.currentTarget)},"aria-label":"user menu",children:a.jsx(b.Z,{sx:{bgcolor:"primary.main"},children:p})}),(0,a.jsxs)(j.Z,{anchorEl:n,open:!!n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{mt:1},children:[(0,a.jsxs)(i.Z,{sx:{px:2,py:1.5,minWidth:200},children:[a.jsx(y.Z,{variant:"subtitle1",fontWeight:"600",children:h.name||"User"}),a.jsx(y.Z,{variant:"body2",color:"text.secondary",children:h.email}),"admin"===h.role&&a.jsx(v.Z,{label:"Admin",size:"small",color:"primary",sx:{mt:1}})]}),a.jsx(Z.Z,{}),"admin"===h.role&&(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/admin/users")},children:[a.jsx(C.Z,{children:a.jsx(S.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Users"})]}),(0,a.jsxs)(w.Z,{onClick:()=>{o(),e.push("/settings")},children:[a.jsx(C.Z,{children:a.jsx(P.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Settings"})]}),(0,a.jsxs)(w.Z,{onClick:x,children:[a.jsx(C.Z,{children:a.jsx(z.Z,{fontSize:"small"})}),a.jsx(k.Z,{children:"Logout"})]})]})]})}},36597:(e,r,t)=>{"use strict";t.d(r,{Av:()=>a.startLoading});var a=t(21908)},68763:(e,r,t)=>{"use strict";t.d(r,{Cp:()=>x,Nq:()=>d,cg:()=>n,kP:()=>c,w7:()=>l,y1:()=>o,zB:()=>h});var a=t(19106),s=t(82829);let i=(0,a.X)({baseURL:process.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:n,signOut:l,signUp:o,useSession:c,updateUser:d,changePassword:x}=i,h=i.admin},26072:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>a});let a=(0,t(2325).createProxy)(String.raw`/home/runner/work/minecraft-server-manager/minecraft-server-manager/platform/services/mcctl-console/src/app/(main)/layout.tsx#default`)},52001:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});var a=t(15505);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,a.fillMetadataSegment)(".",e.params,"icon.svg")+"?0f68875a168deab8"}]}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=5019,exports.ids=[5019],exports.modules={5414:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)([(0,l.jsx)("path",{d:"m7.3 14.7 1.2-1.2c-1-1-1.5-2.3-1.5-3.5 0-1.3.5-2.6 1.5-3.5L7.3 5.3c-1.3 1.3-2 3-2 4.7s.7 3.4 2 4.7M19.1 2.9l-1.2 1.2c1.6 1.6 2.4 3.8 2.4 5.9 0 2.1-.8 4.3-2.4 5.9l1.2 1.2c2-2 2.9-4.5 2.9-7.1 0-2.6-1-5.1-2.9-7.1"},"0"),(0,l.jsx)("path",{d:"M6.1 4.1 4.9 2.9C3 4.9 2 7.4 2 10c0 2.6 1 5.1 2.9 7.1l1.2-1.2c-1.6-1.6-2.4-3.8-2.4-5.9 0-2.1.8-4.3 2.4-5.9m10.6 10.6c1.3-1.3 2-3 2-4.7-.1-1.7-.7-3.4-2-4.7l-1.2 1.2c1 1 1.5 2.3 1.5 3.5 0 1.3-.5 2.6-1.5 3.5zM14.5 10c0-1.38-1.12-2.5-2.5-2.5S9.5 8.62 9.5 10c0 .76.34 1.42.87 1.88L7 22h2l.67-2h4.67l.66 2h2l-3.37-10.12c.53-.46.87-1.12.87-1.88m-4.17 8L12 13l1.67 5z"},"1")],"CellTower")},94304:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},61960:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},79603:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck")},36739:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},5019:(e,s,r)=>{r.d(s,{eE:()=>J,E4:()=>A,SB:()=>M,ms:()=>q,hI:()=>j,zd:()=>V,Ik:()=>S});var n=r(58120),t=r(67073),l=r(92797),a=r(2365),i=r(89352),o=r(48787),c=r(37891),d=r(88916),x=r(59059),h=r(75698),u=r(79795);let m={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},p={border:0,py:1};function j({router:e}){var s;let r=(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:s.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:s,color:"default"}:{label:"Unknown",color:"default"};return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(u.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),n.jsx(c.Z,{size:"small",children:(0,n.jsxs)(d.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Router Name"}),n.jsx(h.Z,{sx:p,children:e.name})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Port"}),n.jsx(h.Z,{sx:p,children:e.port})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Mode"}),n.jsx(h.Z,{sx:p,children:n.jsx(o.Z,{label:r.label,size:"small",color:r.color,variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Uptime"}),n.jsx(h.Z,{sx:p,children:e.uptime||"-"})]})]})})]})})}var Z=r(98243),f=r(95009),g=r(4587),w=r(45912),v=r(32130),y=r(84527);function b(e){switch(e){case"running":return"#4caf50";case"exited":case"dead":case"not_found":case"not_created":return"#f44336";case"created":case"restarting":case"paused":return"#ff9800";default:return"#9e9e9e"}}function P({status:e}){return n.jsx(Z.Z,{title:e,arrow:!0,children:n.jsx(i.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:b(e),flexShrink:0,boxShadow:"running"===e?`0 0 6px ${b(e)}`:"none"}})})}function S({router:e}){let s=function(e){let s=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),n=s.get(e);n?n.hostnames.push(r.hostname):s.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return s}(e.routes);return n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(v.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,n.jsxs)(i.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[n.jsx(o.Z,{label:e.status,size:"small",color:function(e){switch(e){case"running":return"success";case"exited":case"dead":case"not_found":case"not_created":return"error";case"created":case"restarting":case"paused":return"warning";default:return"default"}}(e.status)}),n.jsx(o.Z,{label:e.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(e.health),variant:"outlined"})]})]}),n.jsx(a.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===e.routes.length?n.jsx(a.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):n.jsx(i.Z,{sx:{mt:1},children:Array.from(s.entries()).map(([e,{status:s,hostnames:r,serverType:t,serverVersion:l}])=>(0,n.jsxs)(f.Z,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:1,borderColor:"divider","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}},children:[n.jsx(g.Z,{expandIcon:n.jsx(y.Z,{}),children:(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[n.jsx(P,{status:s}),n.jsx(a.Z,{variant:"subtitle2",sx:{fontWeight:600},children:e}),(t||l)&&n.jsx(a.Z,{variant:"caption",color:"text.secondary",children:[t,l].filter(Boolean).join(" ")}),(0,n.jsxs)(a.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[r.length," ",1===r.length?"route":"routes"]})]})}),n.jsx(w.Z,{sx:{pt:0},children:n.jsx(i.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:r.map(e=>n.jsx(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},e))})]})})}var z=r(79603);let C={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function M({router:e}){var s;let r=e.routes.filter(e=>"running"===e.serverStatus).length,u=e.routes.length;return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(z.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),n.jsx(c.Z,{size:"small",children:(0,n.jsxs)(d.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Listening Port"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:e.port,size:"small",variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Routing Mode"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?"Auto Discovery":s.includes("mapping")?"Manual Mapping":s:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Total Routes"}),n.jsx(h.Z,{sx:I,children:u})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Active Routes"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:`${r} / ${u}`,size:"small",color:r>0?"success":"default",variant:"outlined"})})]})]})})]})})}var k=r(5414);function A({avahi:e}){let s=e?.status??"unknown";return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(k.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),n.jsx(o.Z,{label:s,size:"small",color:"running"===s?"success":s.includes("not running")?"warning":"not installed"===s?"error":"default",sx:{ml:"auto"}})]}),(0,n.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",n.jsx("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var N=r(36372),D=r(6275),L=r(10257),T=r(79943),W=r(38481),R=r(68763);function V({onSuccess:e,onError:s}){let{data:r}=(0,R.kP)(),[c,d]=(0,N.useState)(r?.user?.name||""),[x,h]=(0,N.useState)(!1),[u,m]=(0,N.useState)(!1),p=r?.user,j=c!==(p?.name||""),Z=async()=>{if(j&&c.trim()){h(!0);try{let{error:r}=await (0,R.Nq)({name:c.trim()});r?s(r.message||"Failed to update profile"):e("Profile updated successfully")}catch{s("Failed to update profile")}finally{h(!1)}}};return p?n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[n.jsx(W.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,n.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[n.jsx(D.Z,{label:"Name",value:c,onChange:e=>d(e.target.value),fullWidth:!0,size:"small"}),n.jsx(D.Z,{label:"Email",value:p.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[n.jsx(a.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),n.jsx(o.Z,{label:"admin"===p.role?"Admin":"User",size:"small",color:"admin"===p.role?"primary":"default",variant:"outlined"})]}),n.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:n.jsx(L.Z,{variant:"contained",onClick:Z,disabled:!j||!c.trim()||x,startIcon:x?n.jsx(T.Z,{size:16}):null,children:x?"Saving...":"Save Changes"})})]})]})}):null}var F=r(92559),U=r(54365),E=r(61960),$=r(27767),_=r(36739);function q({onSuccess:e,onError:s}){let[r,o]=(0,N.useState)(""),[c,d]=(0,N.useState)(""),[x,h]=(0,N.useState)(""),[u,m]=(0,N.useState)(!1),[p,j]=(0,N.useState)(!1),[Z,f]=(0,N.useState)(!1),[g,w]=(0,N.useState)(!1),[v,y]=(0,N.useState)({}),b=()=>{let e={};return r||(e.currentPassword="Current password is required"),c?c.length<8&&(e.newPassword="Password must be at least 8 characters"):e.newPassword="New password is required",x?c!==x&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",r&&c&&r===c&&(e.newPassword="New password must be different from current password"),y(e),0===Object.keys(e).length},P=async n=>{if(n.preventDefault(),b()){w(!0);try{let{error:n}=await (0,R.Cp)({currentPassword:r,newPassword:c,revokeOtherSessions:!1});n?s(n.message||"Failed to change password"):(e("Password changed successfully"),o(""),d(""),h(""),y({}))}catch{s("Failed to change password")}finally{w(!1)}}},S=(e,s)=>n.jsx(F.Z,{position:"end",children:n.jsx(U.Z,{"aria-label":e?"hide password":"show password",onClick:()=>s(!e),edge:"end",size:"small",children:e?n.jsx(_.Z,{fontSize:"small"}):n.jsx($.Z,{fontSize:"small"})})});return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[n.jsx(E.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,n.jsxs)(i.Z,{component:"form",onSubmit:P,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[n.jsx(D.Z,{label:"Current Password",type:u?"text":"password",value:r,onChange:e=>{o(e.target.value),v.currentPassword&&y(e=>({...e,currentPassword:""}))},error:!!v.currentPassword,helperText:v.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:S(u,m)}}),n.jsx(D.Z,{label:"New Password",type:p?"text":"password",value:c,onChange:e=>{d(e.target.value),v.newPassword&&y(e=>({...e,newPassword:""}))},error:!!v.newPassword,helperText:v.newPassword||"Minimum 8 characters",fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:S(p,j)}}),n.jsx(D.Z,{label:"Confirm New Password",type:Z?"text":"password",value:x,onChange:e=>{h(e.target.value),v.confirmPassword&&y(e=>({...e,confirmPassword:""}))},error:!!v.confirmPassword,helperText:v.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:S(Z,f)}}),n.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:n.jsx(L.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?n.jsx(T.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var B=r(94304);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},H={border:0,py:1};function G(e){return e?("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function J(){let{data:e}=(0,R.kP)(),s=e?.user;return s?n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(B.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),n.jsx(c.Z,{size:"small",children:(0,n.jsxs)(d.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Account ID"}),n.jsx(h.Z,{sx:H,children:n.jsx(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:s.id})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Created"}),n.jsx(h.Z,{sx:H,children:G(s.createdAt)})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Last Updated"}),n.jsx(h.Z,{sx:H,children:G(s.updatedAt)})]})]})})]})}):null}}};
|
|
1
|
+
"use strict";exports.id=5019,exports.ids=[5019],exports.modules={5414:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)([(0,l.jsx)("path",{d:"m7.3 14.7 1.2-1.2c-1-1-1.5-2.3-1.5-3.5 0-1.3.5-2.6 1.5-3.5L7.3 5.3c-1.3 1.3-2 3-2 4.7s.7 3.4 2 4.7M19.1 2.9l-1.2 1.2c1.6 1.6 2.4 3.8 2.4 5.9 0 2.1-.8 4.3-2.4 5.9l1.2 1.2c2-2 2.9-4.5 2.9-7.1 0-2.6-1-5.1-2.9-7.1"},"0"),(0,l.jsx)("path",{d:"M6.1 4.1 4.9 2.9C3 4.9 2 7.4 2 10c0 2.6 1 5.1 2.9 7.1l1.2-1.2c-1.6-1.6-2.4-3.8-2.4-5.9 0-2.1.8-4.3 2.4-5.9m10.6 10.6c1.3-1.3 2-3 2-4.7-.1-1.7-.7-3.4-2-4.7l-1.2 1.2c1 1 1.5 2.3 1.5 3.5 0 1.3-.5 2.6-1.5 3.5zM14.5 10c0-1.38-1.12-2.5-2.5-2.5S9.5 8.62 9.5 10c0 .76.34 1.42.87 1.88L7 22h2l.67-2h4.67l.66 2h2l-3.37-10.12c.53-.46.87-1.12.87-1.88m-4.17 8L12 13l1.67 5z"},"1")],"CellTower")},94304:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},79603:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck")},36739:(e,s,r)=>{var n=r(66682);s.Z=void 0;var t=n(r(7750)),l=r(58120);s.Z=(0,t.default)((0,l.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},5019:(e,s,r)=>{r.d(s,{eE:()=>J,E4:()=>A,SB:()=>M,ms:()=>q,hI:()=>j,zd:()=>F,Ik:()=>S});var n=r(58120),t=r(67073),l=r(92797),a=r(2365),i=r(89352),o=r(48787),d=r(37891),c=r(88916),x=r(59059),h=r(75698),u=r(79795);let m={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},p={border:0,py:1};function j({router:e}){var s;let r=(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:s.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:s,color:"default"}:{label:"Unknown",color:"default"};return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(u.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),n.jsx(d.Z,{size:"small",children:(0,n.jsxs)(c.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Router Name"}),n.jsx(h.Z,{sx:p,children:e.name})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Port"}),n.jsx(h.Z,{sx:p,children:e.port})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Mode"}),n.jsx(h.Z,{sx:p,children:n.jsx(o.Z,{label:r.label,size:"small",color:r.color,variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:m,children:"Uptime"}),n.jsx(h.Z,{sx:p,children:e.uptime||"-"})]})]})})]})})}var Z=r(98243),f=r(95009),g=r(4587),w=r(45912),y=r(32130),v=r(84527);function b(e){switch(e){case"running":return"#4caf50";case"exited":case"dead":case"not_found":case"not_created":return"#f44336";case"created":case"restarting":case"paused":return"#ff9800";default:return"#9e9e9e"}}function P({status:e}){return n.jsx(Z.Z,{title:e,arrow:!0,children:n.jsx(i.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:b(e),flexShrink:0,boxShadow:"running"===e?`0 0 6px ${b(e)}`:"none"}})})}function S({router:e}){let s=function(e){let s=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),n=s.get(e);n?n.hostnames.push(r.hostname):s.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return s}(e.routes);return n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(y.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,n.jsxs)(i.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[n.jsx(o.Z,{label:e.status,size:"small",color:function(e){switch(e){case"running":return"success";case"exited":case"dead":case"not_found":case"not_created":return"error";case"created":case"restarting":case"paused":return"warning";default:return"default"}}(e.status)}),n.jsx(o.Z,{label:e.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(e.health),variant:"outlined"})]})]}),n.jsx(a.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===e.routes.length?n.jsx(a.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):n.jsx(i.Z,{sx:{mt:1},children:Array.from(s.entries()).map(([e,{status:s,hostnames:r,serverType:t,serverVersion:l}])=>(0,n.jsxs)(f.Z,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:1,borderColor:"divider","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}},children:[n.jsx(g.Z,{expandIcon:n.jsx(v.Z,{}),children:(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[n.jsx(P,{status:s}),n.jsx(a.Z,{variant:"subtitle2",sx:{fontWeight:600},children:e}),(t||l)&&n.jsx(a.Z,{variant:"caption",color:"text.secondary",children:[t,l].filter(Boolean).join(" ")}),(0,n.jsxs)(a.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[r.length," ",1===r.length?"route":"routes"]})]})}),n.jsx(w.Z,{sx:{pt:0},children:n.jsx(i.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:r.map(e=>n.jsx(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},e))})]})})}var z=r(79603);let C={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function M({router:e}){var s;let r=e.routes.filter(e=>"running"===e.serverStatus).length,u=e.routes.length;return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(z.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),n.jsx(d.Z,{size:"small",children:(0,n.jsxs)(c.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Listening Port"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:e.port,size:"small",variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Routing Mode"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:(s=e.mode)?s.includes("in-docker")||s.includes("auto-discovery")?"Auto Discovery":s.includes("mapping")?"Manual Mapping":s:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Total Routes"}),n.jsx(h.Z,{sx:I,children:u})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:C,children:"Active Routes"}),n.jsx(h.Z,{sx:I,children:n.jsx(o.Z,{label:`${r} / ${u}`,size:"small",color:r>0?"success":"default",variant:"outlined"})})]})]})})]})})}var k=r(5414);function A({avahi:e}){let s=e?.status??"unknown";return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(k.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),n.jsx(o.Z,{label:s,size:"small",color:"running"===s?"success":s.includes("not running")?"warning":"not installed"===s?"error":"default",sx:{ml:"auto"}})]}),(0,n.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",n.jsx("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var N=r(36372),D=r(6275),T=r(10257),W=r(79943),L=r(38481),R=r(68763);function F({onSuccess:e,onError:s}){let{data:r}=(0,R.kP)(),[d,c]=(0,N.useState)(r?.user?.name||""),[x,h]=(0,N.useState)(!1),[u,m]=(0,N.useState)(!1),p=r?.user,j=d!==(p?.name||""),Z=async()=>{if(j&&d.trim()){h(!0);try{let{error:r}=await (0,R.Nq)({name:d.trim()});r?s(r.message||"Failed to update profile"):e("Profile updated successfully")}catch{s("Failed to update profile")}finally{h(!1)}}};return p?n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[n.jsx(L.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,n.jsxs)(i.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[n.jsx(D.Z,{label:"Name",value:d,onChange:e=>c(e.target.value),fullWidth:!0,size:"small"}),n.jsx(D.Z,{label:"Email",value:p.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[n.jsx(a.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),n.jsx(o.Z,{label:"admin"===p.role?"Admin":"User",size:"small",color:"admin"===p.role?"primary":"default",variant:"outlined"})]}),n.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:n.jsx(T.Z,{variant:"contained",onClick:Z,disabled:!j||!d.trim()||x,startIcon:x?n.jsx(W.Z,{size:16}):null,children:x?"Saving...":"Save Changes"})})]})]})}):null}var U=r(92559),E=r(54365),V=r(61960),$=r(27767),_=r(36739);function q({onSuccess:e,onError:s}){let[r,o]=(0,N.useState)(""),[d,c]=(0,N.useState)(""),[x,h]=(0,N.useState)(""),[u,m]=(0,N.useState)(!1),[p,j]=(0,N.useState)(!1),[Z,f]=(0,N.useState)(!1),[g,w]=(0,N.useState)(!1),[y,v]=(0,N.useState)({}),b=()=>{let e={};return r||(e.currentPassword="Current password is required"),d?d.length<8&&(e.newPassword="Password must be at least 8 characters"):e.newPassword="New password is required",x?d!==x&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",r&&d&&r===d&&(e.newPassword="New password must be different from current password"),v(e),0===Object.keys(e).length},P=async n=>{if(n.preventDefault(),b()){w(!0);try{let{error:n}=await (0,R.Cp)({currentPassword:r,newPassword:d,revokeOtherSessions:!1});n?s(n.message||"Failed to change password"):(e("Password changed successfully"),o(""),c(""),h(""),v({}))}catch{s("Failed to change password")}finally{w(!1)}}},S=(e,s)=>n.jsx(U.Z,{position:"end",children:n.jsx(E.Z,{"aria-label":e?"hide password":"show password",onClick:()=>s(!e),edge:"end",size:"small",children:e?n.jsx(_.Z,{fontSize:"small"}):n.jsx($.Z,{fontSize:"small"})})});return n.jsx(t.Z,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[n.jsx(V.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,n.jsxs)(i.Z,{component:"form",onSubmit:P,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[n.jsx(D.Z,{label:"Current Password",type:u?"text":"password",value:r,onChange:e=>{o(e.target.value),y.currentPassword&&v(e=>({...e,currentPassword:""}))},error:!!y.currentPassword,helperText:y.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:S(u,m)}}),n.jsx(D.Z,{label:"New Password",type:p?"text":"password",value:d,onChange:e=>{c(e.target.value),y.newPassword&&v(e=>({...e,newPassword:""}))},error:!!y.newPassword,helperText:y.newPassword||"Minimum 8 characters",fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:S(p,j)}}),n.jsx(D.Z,{label:"Confirm New Password",type:Z?"text":"password",value:x,onChange:e=>{h(e.target.value),y.confirmPassword&&v(e=>({...e,confirmPassword:""}))},error:!!y.confirmPassword,helperText:y.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:S(Z,f)}}),n.jsx(i.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:n.jsx(T.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?n.jsx(W.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var B=r(94304);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},G={border:0,py:1};function H(e){return e?("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function J(){let{data:e}=(0,R.kP)(),s=e?.user;return s?n.jsx(t.Z,{sx:{height:"100%"},children:(0,n.jsxs)(l.Z,{children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[n.jsx(B.Z,{color:"primary"}),n.jsx(a.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),n.jsx(d.Z,{size:"small",children:(0,n.jsxs)(c.Z,{children:[(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Account ID"}),n.jsx(h.Z,{sx:G,children:n.jsx(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:s.id})})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Created"}),n.jsx(h.Z,{sx:G,children:H(s.createdAt)})]}),(0,n.jsxs)(x.Z,{children:[n.jsx(h.Z,{sx:O,children:"Last Updated"}),n.jsx(h.Z,{sx:G,children:H(s.updatedAt)})]})]})})]})}):null}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=8685,exports.ids=[8685],exports.modules={79795:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),i=n(58120);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},61960:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),i=n(58120);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},27767:(e,t,n)=>{var r=n(66682);t.Z=void 0;var o=r(n(7750)),i=n(58120);t.Z=(0,o.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},60920:(e,t,n)=>{n.d(t,{Z:()=>A});var r=n(36885),o=n(4981),i=n(36372),a=n(3693),s=n(23359),l=n(48170),c=n(49982),u=n(27079);let d=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,d=(0,l.Z)();i.useEffect(()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[a,r]);let f=(0,c.Z)((e,t)=>{null==r||r(e,t)}),m=(0,c.Z)(e=>{r&&null!=e&&d.start(e,()=>{f(null,"timeout")})});i.useEffect(()=>(a&&m(t),d.clear),[a,t,m,d]);let h=d.clear,p=i.useCallback(()=>{null!=t&&m(null!=s?s:.5*t)},[t,s,m]),v=e=>t=>{let n=e.onBlur;null==n||n(t),p()},g=e=>t=>{let n=e.onFocus;null==n||n(t),h()},Z=e=>t=>{let n=e.onMouseEnter;null==n||n(t),h()},x=e=>t=>{let n=e.onMouseLeave;null==n||n(t),p()};return i.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",p),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",h)}},[n,a,p,h]),{getRootProps:(t={})=>{let n=(0,o.Z)({},(0,u.Z)(e),(0,u.Z)(t));return(0,o.Z)({role:"presentation"},t,n,{onBlur:v(n),onFocus:g(n),onMouseEnter:Z(n),onMouseLeave:x(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}};var f=n(21430),m=n(52059),h=n(34200),p=n(58120);function v(e){return e.substring(2).toLowerCase()}function g(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),l=i.useRef(null),u=i.useRef(!1),d=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);let g=(0,f.Z)((0,h.Z)(t),l),Z=(0,c.Z)(e=>{let t=d.current;d.current=!1;let r=(0,m.Z)(l.current);if(u.current&&l.current&&(!("clientX"in e)||!(r.documentElement.clientWidth<e.clientX)&&!(r.documentElement.clientHeight<e.clientY))){if(s.current){s.current=!1;return}(e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target))||!n&&t||o(e)}}),x=e=>n=>{d.current=!0;let r=t.props[e];r&&r(n)},E={ref:g};return!1!==a&&(E[a]=x(a)),i.useEffect(()=>{if(!1!==a){let e=v(a),t=(0,m.Z)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,Z),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,Z),t.removeEventListener("touchmove",n)}}},[Z,a]),!1!==r&&(E[r]=x(r)),i.useEffect(()=>{if(!1!==r){let e=v(r),t=(0,m.Z)(l.current);return t.addEventListener(e,Z),()=>{t.removeEventListener(e,Z)}}},[Z,r]),(0,p.jsx)(i.Fragment,{children:i.cloneElement(t,E)})}var Z=n(62923),x=n(62073),E=n(9103),b=n(29251),k=n(77485),w=n(30330),C=n(93445),L=n(52329),O=n(89206),M=n(7967);function S(e){return(0,M.ZP)("MuiSnackbarContent",e)}(0,O.Z)("MuiSnackbarContent",["root","message","action"]);let y=["action","className","message","role"],P=e=>{let{classes:t}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},S,t)},R=(0,Z.ZP)(L.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,n=(0,C._4)(e.palette.background.default,t);return(0,o.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),j=(0,Z.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),z=(0,Z.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=i.forwardRef(function(e,t){let n=(0,E.i)({props:e,name:"MuiSnackbarContent"}),{action:i,className:a,message:s,role:l="alert"}=n,c=(0,r.Z)(n,y),u=P(n);return(0,p.jsxs)(R,(0,o.Z)({role:l,square:!0,elevation:6,className:(0,w.Z)(u.root,a),ownerState:n,ref:t},c,{children:[(0,p.jsx)(j,{className:u.message,ownerState:n,children:s}),i?(0,p.jsx)(z,{className:u.action,ownerState:n,children:i}):null]}))});function B(e){return(0,M.ZP)("MuiSnackbar",e)}(0,O.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let I=["onEnter","onExited"],N=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],F=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${(0,b.Z)(n.vertical)}${(0,b.Z)(n.horizontal)}`]};return(0,a.Z)(r,B,t)},H=(0,Z.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${(0,b.Z)(n.anchorOrigin.vertical)}${(0,b.Z)(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,o.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,o.Z)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),A=i.forwardRef(function(e,t){let n=(0,E.i)({props:e,name:"MuiSnackbar"}),a=(0,x.Z)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:h,className:v,ClickAwayListenerProps:Z,ContentProps:b,disableWindowBlurListener:w=!1,message:C,open:L,TransitionComponent:O=k.Z,transitionDuration:M=l,TransitionProps:{onEnter:S,onExited:y}={}}=n,P=(0,r.Z)(n.TransitionProps,I),R=(0,r.Z)(n,N),j=(0,o.Z)({},n,{anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:m,disableWindowBlurListener:w,TransitionComponent:O,transitionDuration:M}),z=F(j),{getRootProps:B,onClickAway:A}=d((0,o.Z)({},j)),[D,V]=i.useState(!0),W=(0,s.Z)({elementType:H,getSlotProps:B,externalForwardedProps:R,ownerState:j,additionalProps:{ref:t},className:[z.root,v]});return!L&&D?null:(0,p.jsx)(g,(0,o.Z)({onClickAway:A},Z,{children:(0,p.jsx)(H,(0,o.Z)({},W,{children:(0,p.jsx)(O,(0,o.Z)({appear:!0,in:L,timeout:M,direction:"top"===u?"down":"up",onEnter:(e,t)=>{V(!1),S&&S(e,t)},onExited:e=>{V(!0),y&&y(e)}},P,{children:h||(0,p.jsx)(T,(0,o.Z)({message:C,action:c},b))}))}))}))})}};
|
package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-build-manifest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-c5f126aae1eac753.js","static/chunks/3b518dcd-5724e59d48f01b72.js","static/chunks/2757-058492b5c236cb62.js","static/chunks/main-app-666bf3e0c0f3dee2.js"],pages:{"/_app":["static/chunks/webpack-c5f126aae1eac753.js","static/chunks/framework-dd2365ff6fe7347f.js","static/chunks/main-
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-c5f126aae1eac753.js","static/chunks/3b518dcd-5724e59d48f01b72.js","static/chunks/2757-058492b5c236cb62.js","static/chunks/main-app-666bf3e0c0f3dee2.js"],pages:{"/_app":["static/chunks/webpack-c5f126aae1eac753.js","static/chunks/framework-dd2365ff6fe7347f.js","static/chunks/main-c1b58e7640294abf.js","static/chunks/pages/_app-afb15f99d73f71b7.js"],"/_error":["static/chunks/webpack-c5f126aae1eac753.js","static/chunks/framework-dd2365ff6fe7347f.js","static/chunks/main-c1b58e7640294abf.js","static/chunks/pages/_error-3a37b634c5a26fe6.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
|
package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"wasm": [],
|
|
18
18
|
"assets": [],
|
|
19
19
|
"env": {
|
|
20
|
-
"__NEXT_BUILD_ID": "
|
|
21
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "
|
|
22
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
20
|
+
"__NEXT_BUILD_ID": "0yTJAIAp_3b6rB4bkr7KX",
|
|
21
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "kn/5tmmhaM727ky+i4QGLNJXH4Gfi0/bEaZR0J2IkYE=",
|
|
22
|
+
"__NEXT_PREVIEW_MODE_ID": "761c05ff13a8ca4c820a7079c4c1cb0a",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "999f9792d704ea935bca205578ebfdc7a7758d881f698aee9c96b4625c902063",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "a53c3d8450c455d68ba393341baa07ceed11b23d556f7af85e5c11180341afc3"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/33a864272e2b3e97-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/3ecd40fce058ee61-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/70d2fd2b9078a5a3-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/c99b890c5ded8d2e-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/8dfdea5f9ccf5da4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c5f126aae1eac753.js"/><script src="/_next/static/chunks/3b518dcd-5724e59d48f01b72.js" async=""></script><script src="/_next/static/chunks/2757-058492b5c236cb62.js" async=""></script><script src="/_next/static/chunks/main-app-666bf3e0c0f3dee2.js" async=""></script><script src="/_next/static/chunks/6812-f5924f14ef351036.js" async=""></script><script src="/_next/static/chunks/540-4b925f2c57833962.js" async=""></script><script src="/_next/static/chunks/5645-d306bb768b5907c8.js" async=""></script><script src="/_next/static/chunks/app/layout-e0e626ece42c56d9.js" async=""></script><meta name="robots" content="noindex"/><title>Minecraft Server Manager</title><meta name="description" content="Web-based management console for Minecraft server infrastructure"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script><style data-emotion="mui-global 1kft0z8">html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;-webkit-text-size-adjust:100%;}*,*::before,*::after{box-sizing:inherit;}strong,b{font-weight:700;}body{margin:0;color:#ffffff;font-family:"Ubuntu","Roboto","Helvetica","Arial",sans-serif;font-weight:400;font-size:1rem;line-height:1.5;background-color:#16181c;}@media print{body{background-color:#fff;}}body::backdrop{background-color:#16181c;}body{scrollbar-color:#313338 #16181c;}body::-webkit-scrollbar,body *::-webkit-scrollbar{background-color:#16181c;width:8px;}body::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{border-radius:8px;background-color:#313338;min-height:24px;}body::-webkit-scrollbar-thumb:hover,body *::-webkit-scrollbar-thumb:hover{background-color:#26282e;}</style></head><body class="__className_1d908f"><div id="__next"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--></div><script src="/_next/static/chunks/webpack-c5f126aae1eac753.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/33a864272e2b3e97-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/media/3ecd40fce058ee61-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:HL[\"/_next/static/media/70d2fd2b9078a5a3-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n4:HL[\"/_next/static/media/c99b890c5ded8d2e-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n5:HL[\"/_next/static/css/8dfdea5f9ccf5da4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"6:I[39943,[],\"\"]\n8:I[14224,[],\"\"]\n9:I[2863,[],\"\"]\na:I[89083,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"default\"]\nb:I[48283,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"ThemeProvider\"]\nc:I[22237,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"QueryProvider\"]\nd:\"$Sreact.suspense\"\ne:I[3454,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"LoadingProvider\"]\n14:I[19253,[],\"\"]\nf:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n10:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n11:{\"display\":\"inline-block\"}\n12:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n15:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L6\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/33a864272e2b3e97-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/3ecd40fce058ee61-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/70d2fd2b9078a5a3-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/c99b890c5ded8d2e-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/8dfdea5f9ccf5da4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c5f126aae1eac753.js"/><script src="/_next/static/chunks/3b518dcd-5724e59d48f01b72.js" async=""></script><script src="/_next/static/chunks/2757-058492b5c236cb62.js" async=""></script><script src="/_next/static/chunks/main-app-666bf3e0c0f3dee2.js" async=""></script><script src="/_next/static/chunks/6812-f5924f14ef351036.js" async=""></script><script src="/_next/static/chunks/540-4b925f2c57833962.js" async=""></script><script src="/_next/static/chunks/5645-d306bb768b5907c8.js" async=""></script><script src="/_next/static/chunks/app/layout-e0e626ece42c56d9.js" async=""></script><meta name="robots" content="noindex"/><title>Minecraft Server Manager</title><meta name="description" content="Web-based management console for Minecraft server infrastructure"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script><style data-emotion="mui-global 1kft0z8">html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;-webkit-text-size-adjust:100%;}*,*::before,*::after{box-sizing:inherit;}strong,b{font-weight:700;}body{margin:0;color:#ffffff;font-family:"Ubuntu","Roboto","Helvetica","Arial",sans-serif;font-weight:400;font-size:1rem;line-height:1.5;background-color:#16181c;}@media print{body{background-color:#fff;}}body::backdrop{background-color:#16181c;}body{scrollbar-color:#313338 #16181c;}body::-webkit-scrollbar,body *::-webkit-scrollbar{background-color:#16181c;width:8px;}body::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{border-radius:8px;background-color:#313338;min-height:24px;}body::-webkit-scrollbar-thumb:hover,body *::-webkit-scrollbar-thumb:hover{background-color:#26282e;}</style></head><body class="__className_1d908f"><div id="__next"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--></div><script src="/_next/static/chunks/webpack-c5f126aae1eac753.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/33a864272e2b3e97-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/media/3ecd40fce058ee61-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:HL[\"/_next/static/media/70d2fd2b9078a5a3-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n4:HL[\"/_next/static/media/c99b890c5ded8d2e-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n5:HL[\"/_next/static/css/8dfdea5f9ccf5da4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"6:I[39943,[],\"\"]\n8:I[14224,[],\"\"]\n9:I[2863,[],\"\"]\na:I[89083,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"default\"]\nb:I[48283,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"ThemeProvider\"]\nc:I[22237,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"QueryProvider\"]\nd:\"$Sreact.suspense\"\ne:I[3454,[\"6812\",\"static/chunks/6812-f5924f14ef351036.js\",\"540\",\"static/chunks/540-4b925f2c57833962.js\",\"5645\",\"static/chunks/5645-d306bb768b5907c8.js\",\"3185\",\"static/chunks/app/layout-e0e626ece42c56d9.js\"],\"LoadingProvider\"]\n14:I[19253,[],\"\"]\nf:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n10:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n11:{\"display\":\"inline-block\"}\n12:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n15:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L6\",null,{\"buildId\":\"0yTJAIAp_3b6rB4bkr7KX\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L7\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/8dfdea5f9ccf5da4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_1d908f\",\"children\":[\"$\",\"div\",null,{\"id\":\"__next\",\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"fallback\":null,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$L8\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L9\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$f\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$10\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$11\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$12\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]}]}]}]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L13\"],\"globalErrorComponent\":\"$14\",\"missingSlots\":\"$W15\"}]\n"])</script><script>self.__next_f.push([1,"13:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Minecraft Server Manager\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Web-based management console for Minecraft server infrastructure\"}],[\"$\",\"meta\",\"4\",{\"name\":\"next-size-adjust\"}]]\n7:null\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-c5f126aae1eac753.js" defer=""></script><script src="/_next/static/chunks/framework-dd2365ff6fe7347f.js" defer=""></script><script src="/_next/static/chunks/main-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-c5f126aae1eac753.js" defer=""></script><script src="/_next/static/chunks/framework-dd2365ff6fe7347f.js" defer=""></script><script src="/_next/static/chunks/main-c1b58e7640294abf.js" defer=""></script><script src="/_next/static/chunks/pages/_app-afb15f99d73f71b7.js" defer=""></script><script src="/_next/static/chunks/pages/_error-3a37b634c5a26fe6.js" defer=""></script><script src="/_next/static/0yTJAIAp_3b6rB4bkr7KX/_buildManifest.js" defer=""></script><script src="/_next/static/0yTJAIAp_3b6rB4bkr7KX/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"0yTJAIAp_3b6rB4bkr7KX","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"kn/5tmmhaM727ky+i4QGLNJXH4Gfi0/bEaZR0J2IkYE="}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1476],{66758:function(e,r,t){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(26505)},26138:function(e,r,t){t.d(r,{Z:function(){return A}});var n=t(81500),o=t(32324),a=t(35106),l=t(70316),i=t(65951),s=t(95582),u=t(34519),c=t(28057),d=t(31317),p=t(64577),f=t(61626),m=t(94655),h=(0,f.Z)((0,m.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Z=t(29084);let y=["slots","slotProps"],v=(0,u.ZP)(Z.Z,{name:"MuiBreadcrumbCollapsed"})(e=>{let{theme:r}=e;return(0,n.Z)({display:"flex",marginLeft:"calc(".concat(r.spacing(1)," * 0.5)"),marginRight:"calc(".concat(r.spacing(1)," * 0.5)")},"light"===r.palette.mode?{backgroundColor:r.palette.grey[100],color:r.palette.grey[700]}:{backgroundColor:r.palette.grey[700],color:r.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,n.Z)({},"light"===r.palette.mode?{backgroundColor:r.palette.grey[200]}:{backgroundColor:r.palette.grey[600]}),"&:active":(0,n.Z)({boxShadow:r.shadows[0]},"light"===r.palette.mode?{backgroundColor:(0,p._4)(r.palette.grey[200],.12)}:{backgroundColor:(0,p._4)(r.palette.grey[600],.12)})})}),g=(0,u.ZP)(h)({width:24,height:16});var b=function(e){let{slots:r={},slotProps:t={}}=e,a=(0,o.Z)(e,y);return(0,m.jsx)("li",{children:(0,m.jsx)(v,(0,n.Z)({focusRipple:!0},a,{ownerState:e,children:(0,m.jsx)(g,(0,n.Z)({as:r.CollapsedIcon,ownerState:e},t.collapsedIcon))}))})},x=t(11379),C=t(9049);function S(e){return(0,C.ZP)("MuiBreadcrumbs",e)}let w=(0,x.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),P=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],k=e=>{let{classes:r}=e;return(0,i.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},S,r)},R=(0,u.ZP)(d.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,r)=>[{["& .".concat(w.li)]:r.li},r.root]})({}),M=(0,u.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,r)=>r.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),_=(0,u.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,r)=>r.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});var A=a.forwardRef(function(e,r){var t,i;let u=(0,c.i)({props:e,name:"MuiBreadcrumbs"}),{children:d,className:p,component:f="nav",slots:h={},slotProps:Z={},expandText:y="Show path",itemsAfterCollapse:v=1,itemsBeforeCollapse:g=1,maxItems:x=8,separator:C="/"}=u,S=(0,o.Z)(u,P),[w,A]=a.useState(!1),j=(0,n.Z)({},u,{component:f,expanded:w,expandText:y,itemsAfterCollapse:v,itemsBeforeCollapse:g,maxItems:x,separator:C}),I=k(j),L=(0,s.Z)({elementType:h.CollapsedIcon,externalSlotProps:Z.collapsedIcon,ownerState:j}),N=a.useRef(null),B=a.Children.toArray(d).filter(e=>a.isValidElement(e)).map((e,r)=>(0,m.jsx)("li",{className:I.li,children:e},"child-".concat(r)));return(0,m.jsx)(R,(0,n.Z)({ref:r,component:f,color:"text.secondary",className:(0,l.Z)(I.root,p),ownerState:j},S,{children:(0,m.jsx)(M,{className:I.ol,ref:N,ownerState:j,children:(t=w||x&&B.length<=x?B:g+v>=B.length?B:[...B.slice(0,g),(0,m.jsx)(b,{"aria-label":y,slots:{CollapsedIcon:h.CollapsedIcon},slotProps:{collapsedIcon:L},onClick:()=>{A(!0);let e=N.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...B.slice(B.length-v,B.length)],i=I.separator,t.reduce((e,r,n)=>(n<t.length-1?e=e.concat(r,(0,m.jsx)(_,{"aria-hidden":!0,className:i,ownerState:j,children:C},"separator-".concat(n))):e.push(r),e),[]))})}))})},16945:function(e,r,t){t.d(r,{V:function(){return a}});var n=t(11379),o=t(9049);function a(e){return(0,o.ZP)("MuiDivider",e)}let l=(0,n.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);r.Z=l},41261:function(e,r,t){t.d(r,{Z:function(){return R}});var n=t(32324),o=t(81500),a=t(35106),l=t(70316),i=t(65951),s=t(38762),u=t(34519),c=t(28057),d=t(22125),p=t(38481),f=t(31317),m=t(11379),h=t(9049);function Z(e){return(0,h.ZP)("MuiLink",e)}let y=(0,m.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=t(20219),g=t(64577);let b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>b[e]||e;var C=e=>{let{theme:r,ownerState:t}=e,n=x(t.color),o=(0,v.DW)(r,"palette.".concat(n),!1)||t.color,a=(0,v.DW)(r,"palette.".concat(n,"Channel"));return"vars"in r&&a?"rgba(".concat(a," / 0.4)"):(0,g.Fq)(o,.4)},S=t(94655);let w=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],P=e=>{let{classes:r,component:t,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,s.Z)(o)),"button"===t&&"button",n&&"focusVisible"]};return(0,i.Z)(a,Z,r)},k=(0,u.ZP)(f.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r["underline".concat((0,s.Z)(t.underline))],"button"===t.component&&r.button]}})(e=>{let{theme:r,ownerState:t}=e;return(0,o.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,o.Z)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:C({theme:r,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(y.focusVisible)]:{outline:"auto"}})});var R=a.forwardRef(function(e,r){let t=(0,c.i)({props:e,name:"MuiLink"}),{className:i,color:s="primary",component:u="a",onBlur:f,onFocus:m,TypographyClasses:h,underline:Z="always",variant:y="inherit",sx:v}=t,g=(0,n.Z)(t,w),{isFocusVisibleRef:x,onBlur:C,onFocus:R,ref:M}=(0,d.Z)(),[_,A]=a.useState(!1),j=(0,p.Z)(r,M),I=(0,o.Z)({},t,{color:s,component:u,focusVisible:_,underline:Z,variant:y}),L=P(I);return(0,S.jsx)(k,(0,o.Z)({color:s,className:(0,l.Z)(L.root,i),classes:h,component:u,onBlur:e=>{C(e),!1===x.current&&A(!1),f&&f(e)},onFocus:e=>{R(e),!0===x.current&&A(!0),m&&m(e)},ref:j,ownerState:I,variant:y,sx:[...Object.keys(b).includes(s)?[]:[{color:s}],...Array.isArray(v)?v:[v]]},g))})},27350:function(e,r,t){var n=t(34834);r.Z=n.Z},26505:function(e,r,t){t.r(r),t.d(r,{capitalize:function(){return o.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return l.Z},debounce:function(){return i.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return x},unstable_useEnhancedEffect:function(){return m.Z},unstable_useId:function(){return h.Z},unsupportedProp:function(){return Z},useControlled:function(){return y.Z},useEventCallback:function(){return v.Z},useForkRef:function(){return g.Z},useIsFocusVisible:function(){return b.Z}});var n=t(74055),o=t(38762),a=t(27350),l=t(61626),i=t(19521),s=function(e,r){return()=>null},u=t(9290),c=t(34713),d=t(99466);t(81500);var p=function(e,r){return()=>null},f=t(25880).Z,m=t(65425),h=t(88207),Z=function(e,r,t,n,o){return null},y=t(18280),v=t(10620),g=t(38481),b=t(22125);let x={configure:e=>{n.Z.configure(e)}}},88207:function(e,r,t){var n=t(40552);r.Z=n.Z},48442:function(e,r,t){t.d(r,{Z:function(){return v}});var n=t(81500),o=t(32324),a=t(14526),l=t(41499),i=t(8557),s=t(72686);let u=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function f(e,r){return r&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}let m=(0,i.Z)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Z({defaultTheme:e,theme:r,themeId:t}){return 0===Object.keys(r).length?e:r[t]||r}function y(e,r,t){let{ownerState:l}=r,i=(0,o.Z)(r,u),s="function"==typeof e?e((0,n.Z)({ownerState:l},i)):e;if(Array.isArray(s))return s.flatMap(e=>y(e,(0,n.Z)({ownerState:l},i),t));if(s&&"object"==typeof s&&Array.isArray(s.variants)){let{variants:e=[]}=s,r=(0,o.Z)(s,c);return e.forEach(e=>{let o=!0;if("function"==typeof e.props?o=e.props((0,n.Z)({ownerState:l},i,l)):Object.keys(e.props).forEach(r=>{(null==l?void 0:l[r])!==e.props[r]&&i[r]!==e.props[r]&&(o=!1)}),o){Array.isArray(r)||(r=[r]);let o="function"==typeof e.style?e.style((0,n.Z)({ownerState:l},i,l)):e.style;r.push(t?f((0,a.internal_serializeStyles)(o),t):o)}}),r}return t?f((0,a.internal_serializeStyles)(s),t):s}var v=function(e={}){let{themeId:r,defaultTheme:t=m,rootShouldForwardProp:i=p,slotShouldForwardProp:u=p}=e,c=e=>(0,s.Z)((0,n.Z)({},e,{theme:Z((0,n.Z)({},e,{defaultTheme:t,themeId:r}))}));return c.__mui_systemSx=!0,(e,s={})=>{var f;let m;(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:v,slot:g,skipVariantsResolver:b,skipSx:x,overridesResolver:C=(f=h(g))?(e,r)=>r[f]:null}=s,S=(0,o.Z)(s,d),w=v&&v.startsWith("Mui")||g?"components":"custom",P=void 0!==b?b:g&&"Root"!==g&&"root"!==g||!1,k=x||!1,R=p;"Root"===g||"root"===g?R=i:g?R=u:"string"==typeof e&&e.charCodeAt(0)>96&&(R=void 0);let M=(0,a.default)(e,(0,n.Z)({shouldForwardProp:R,label:m},S)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l.P)(e)?o=>{let a=Z({theme:o.theme,defaultTheme:t,themeId:r});return y(e,(0,n.Z)({},o,{theme:a}),a.modularCssLayers?w:void 0)}:e,A=(o,...a)=>{let l=_(o),i=a?a.map(_):[];v&&C&&i.push(e=>{let o=Z((0,n.Z)({},e,{defaultTheme:t,themeId:r}));if(!o.components||!o.components[v]||!o.components[v].styleOverrides)return null;let a=o.components[v].styleOverrides,l={};return Object.entries(a).forEach(([r,t])=>{l[r]=y(t,(0,n.Z)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),C(e,l)}),v&&!P&&i.push(e=>{var o;let a=Z((0,n.Z)({},e,{defaultTheme:t,themeId:r}));return y({variants:null==a||null==(o=a.components)||null==(o=o[v])?void 0:o.variants},(0,n.Z)({},e,{theme:a}),a.modularCssLayers?"theme":void 0)}),k||i.push(c);let s=i.length-a.length;if(Array.isArray(o)&&s>0){let e=Array(s).fill("");(l=[...o,...e]).raw=[...o.raw,...e]}let u=M(l,...i);return e.muiName&&(u.muiName=e.muiName),u};return M.withConfig&&(A.withConfig=M.withConfig),A}}()},54569:function(e,r,t){t.d(r,{Z:function(){return a}});var n=t(71483),o=t(32730);function a(e){let{props:r,name:t,defaultTheme:a,themeId:l}=e,i=(0,o.Z)(a);return l&&(i=i[l]||i),function(e){let{theme:r,name:t,props:o}=e;return r&&r.components&&r.components[t]&&r.components[t].defaultProps?(0,n.Z)(r.components[t].defaultProps,o):o}({theme:i,name:t,props:r})}},74228:function(e,r,t){var n=t(73310);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}}),t.o(n,"useServerInsertedHTML")&&t.d(r,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2666],{42936:function(e,n,t){t.d(n,{SC:function(){return r}});async function r(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={...n.headers};n.body&&(t["Content-Type"]="application/json");let r=await fetch(e,{...n,headers:t});if(!r.ok){let e=await r.json().catch(()=>({error:"UnknownError",message:r.statusText})),n=Error(e.message);throw n.statusCode=r.status,n.code=e.error,n}return r.json()}},92666:function(e,n,t){t.d(n,{$t:function(){return N},Aw:function(){return y},Bx:function(){return w},Fv:function(){return m},Hq:function(){return c},Hy:function(){return a},Js:function(){return K},Ll:function(){return D},MH:function(){return C},S0:function(){return O},Sr:function(){return f},Yo:function(){return U},_I:function(){return d},c5:function(){return Q},g2:function(){return S},gx:function(){return q},hy:function(){return v},iC:function(){return h},jM:function(){return l},mj:function(){return b},nq:function(){return p},nv:function(){return F},ox:function(){return L},s8:function(){return I},x$:function(){return s},zF:function(){return g}});var r=t(5632),u=t(58919),o=t(20367),i=t(42936);function s(){return(0,r.a)({queryKey:["servers"],queryFn:()=>(0,i.SC)("/api/servers"),refetchInterval:6e4})}function a(e,n){return(0,r.a)({queryKey:["servers",e],queryFn:()=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e))),enabled:(null==n?void 0:n.enabled)!==!1&&!!e,refetchInterval:3e4})}function c(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{name:n,force:t}=e;return(0,i.SC)("/api/servers/".concat(encodeURIComponent(n)).concat(t?"?force=true":""),{method:"DELETE"})},onSuccess:()=>{e.invalidateQueries({queryKey:["servers"]})}})}function l(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/start"),{method:"POST"}),onSuccess:(n,t)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",t]})}})}function y(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/stop"),{method:"POST"}),onSuccess:(n,t)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",t]})}})}function d(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/restart"),{method:"POST"}),onSuccess:(n,t)=>{e.invalidateQueries({queryKey:["servers"]}),e.invalidateQueries({queryKey:["servers",t]})}})}function f(){return(0,r.a)({queryKey:["worlds"],queryFn:()=>(0,i.SC)("/api/worlds"),refetchInterval:3e4})}function v(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/worlds",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function p(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{worldName:n,serverName:t}=e;return(0,i.SC)("/api/worlds/".concat(encodeURIComponent(n),"/assign"),{method:"POST",body:JSON.stringify({serverName:t})})},onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]}),e.invalidateQueries({queryKey:["servers"]})}})}function S(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{worldName:n,force:t}=e;return(0,i.SC)("/api/worlds/".concat(encodeURIComponent(n),"/release").concat(t?"?force=true":""),{method:"POST"})},onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function m(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{name:n,force:t}=e;return(0,i.SC)("/api/worlds/".concat(encodeURIComponent(n)).concat(t?"?force=true":""),{method:"DELETE"})},onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]})}})}function h(e,n){return(0,r.a)({queryKey:["servers",e,"config"],queryFn:()=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/config")),enabled:(null==n?void 0:n.enabled)!==!1&&!!e})}function C(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{serverName:n,config:t}=e;return(0,i.SC)("/api/servers/".concat(encodeURIComponent(n),"/config"),{method:"PATCH",body:JSON.stringify(t)})},onSuccess:(n,t)=>{let{serverName:r}=t;e.invalidateQueries({queryKey:["servers",r,"config"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function q(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/world/reset"),{method:"POST"}),onSuccess:(n,t)=>{e.invalidateQueries({queryKey:["servers",t]}),e.invalidateQueries({queryKey:["worlds"]})}})}function K(e,n){return(0,r.a)({queryKey:["servers",e,"hostnames"],queryFn:()=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/hostnames")),enabled:(null==n?void 0:n.enabled)!==!1&&!!e})}function w(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{serverName:n,customHostnames:t}=e;return(0,i.SC)("/api/servers/".concat(encodeURIComponent(n),"/hostnames"),{method:"PUT",body:JSON.stringify({customHostnames:t})})},onSuccess:(n,t)=>{let{serverName:r}=t;e.invalidateQueries({queryKey:["servers",r,"hostnames"]}),e.invalidateQueries({queryKey:["servers",r]})}})}function F(){return(0,r.a)({queryKey:["router-status"],queryFn:()=>(0,i.SC)("/api/router/status"),refetchInterval:3e4})}function b(){return(0,r.a)({queryKey:["backup-status"],queryFn:()=>(0,i.SC)("/api/backup"),refetchInterval:6e4})}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return(0,r.a)({queryKey:["backup-history",e],queryFn:()=>(0,i.SC)("/api/backup/history?limit=".concat(e)),refetchInterval:6e4})}function Q(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{message:n}=e;return(0,i.SC)("/api/backup",{method:"POST",body:JSON.stringify({message:n})})},onSuccess:()=>{e.invalidateQueries({queryKey:["backup-status"]}),e.invalidateQueries({queryKey:["backup-history"]})}})}function I(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>(0,i.SC)("/api/backup/restore",{method:"POST",body:JSON.stringify({commitHash:e})}),onSuccess:()=>{e.invalidateQueries({queryKey:["worlds"]}),e.invalidateQueries({queryKey:["servers"]})}})}function L(e){return(0,r.a)({queryKey:["servers",e,"whitelist"],queryFn:()=>(0,i.SC)("/api/players/whitelist?server=".concat(encodeURIComponent(e))),enabled:!!e})}function U(e){return(0,r.a)({queryKey:["servers",e,"whitelist-status"],queryFn:()=>(0,i.SC)("/api/players/whitelist/status?server=".concat(encodeURIComponent(e))),enabled:!!e})}function g(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{serverName:n,enabled:t}=e;return(0,i.SC)("/api/players/whitelist/status",{method:"PUT",body:JSON.stringify({server:n,enabled:t})})},onSuccess:(n,t)=>{let{serverName:r}=t;e.invalidateQueries({queryKey:["servers",r,"whitelist-status"]}),e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}function D(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{serverName:n,player:t}=e;return(0,i.SC)("/api/players/whitelist",{method:"POST",body:JSON.stringify({server:n,player:t})})},onSuccess:(n,t)=>{let{serverName:r}=t;e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}function O(){let e=(0,u.NL)();return(0,o.D)({mutationFn:e=>{let{serverName:n,player:t}=e;return(0,i.SC)("/api/players/whitelist?player=".concat(encodeURIComponent(t),"&server=").concat(encodeURIComponent(n)),{method:"DELETE"})},onSuccess:(n,t)=>{let{serverName:r}=t;e.invalidateQueries({queryKey:["servers",r,"whitelist"]})}})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5787],{3454:function(e,t,n){n.d(t,{LoadingProvider:function(){return i},startLoading:function(){return a},stopLoading:function(){return u}});var r=n(94655),s=n(35106),l=n(74228),o=n(31477),c=n.n(o);function i(e){let{children:t}=e,n=(0,l.usePathname)(),o=(0,l.useSearchParams)();return(0,s.useEffect)(()=>{c().done()},[n,o]),(0,r.jsx)(r.Fragment,{children:t})}function a(){c().start()}function u(){c().done()}c().configure({showSpinner:!1,speed:300,minimum:.1})},8690:function(e,t,n){n.d(t,{Av:function(){return r.startLoading}});var r=n(3454)},73660:function(e,t,n){n.d(t,{K:function(){return w}});var r=n(94655),s=n(35106),l=n(18844),o=n.n(l),c=n(7281),i=n(69899),a=n(97436),u=n(30417),d=n(90829),h=n(79983),p=n(31317),m=n(25333),f=n(40064),g=n(45547),x=n(70115),C=n(69123),v=n(93017),b=n(11141),S=n(19127),R=n(69366),y=n(163);let j=[{label:"say",template:"say "},{label:"give",template:"give "},{label:"tp",template:"tp "},{label:"gamemode",template:"gamemode "}],k=new(o())({fg:"#aaa",bg:"#000",newline:!1,escapeXML:!0,colors:{0:"#000000",1:"#cc0000",2:"#4e9a06",3:"#c4a000",4:"#3465a4",5:"#75507b",6:"#06989a",7:"#d3d7cf",8:"#555753",9:"#ef2929",10:"#8ae234",11:"#fce94f",12:"#729fcf",13:"#ad7fa8",14:"#34e2e2",15:"#eeeeec"}}),Z=(0,s.memo)(function(e){let{log:t}=e,n=(0,s.useMemo)(()=>(function(e){let t=e.replace(/\x1b\[\?[\d;]*[a-zA-Z]/g,"").replace(/\x1b\[[0-9;]*[KJH]/g,"").replace(/\x1b=/g,"").replace(/\[\?[\d;]*[a-zA-Z]/g,"").replace(/\[[0-9;]*[KJH]/g,"").replace(/\[m/g,"").replace(/\[(\d+)m/g,"\x1b[$1m").replace(/>\.\.\.\.\r?/g,"").replace(/\r/g,"");return k.toHtml(t)})(t),[t]);return(0,r.jsx)(c.Z,{sx:{py:.25,whiteSpace:"pre-wrap",wordBreak:"break-all","& span":{}},dangerouslySetInnerHTML:{__html:n}})});function w(e){let{serverName:t}=e,[n,l]=(0,s.useState)(""),[o,k]=(0,s.useState)([]),[w,E]=(0,s.useState)(-1),[N,T]=(0,s.useState)("ALL"),[A,O]=(0,s.useState)(!0),[I,L]=(0,s.useState)(!0),[z,D]=(0,s.useState)(!1),F=(0,s.useRef)(null),M=(0,s.useRef)(null),{logs:H,isConnected:P,clearLogs:W,reconnect:_,retryCount:J}=(0,y.Y)({serverName:t}),K=(0,s.useMemo)(()=>{let e=H;return I&&(e=e.filter(e=>!e.includes("RCON Listener")&&!e.includes("RCON Client")&&!e.includes("RconClient"))),"ALL"!==N&&(e=e.filter(e=>(e.includes("/ERROR]")||e.includes("/ERROR:")?"ERROR":e.includes("/WARN]")||e.includes("/WARN:")?"WARN":(e.includes("/INFO]")||e.includes("/INFO:"),"INFO"))===N)),e},[H,N,I]);(0,s.useEffect)(()=>{A&&M.current&&(M.current.scrollTop=M.current.scrollHeight)},[K,A]);let U=(0,s.useCallback)(async()=>{let e=n.trim();if(e&&!z){D(!0);try{k(t=>[...t,e]),E(-1),await fetch("/api/servers/".concat(encodeURIComponent(t),"/exec"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})}),l("")}catch(e){console.error("Failed to execute command:",e)}finally{D(!1)}}},[n,t,z]),B=(0,s.useCallback)(e=>{if("Enter"===e.key)e.preventDefault(),U();else if("ArrowUp"===e.key){if(e.preventDefault(),0===o.length)return;let t=-1===w?o.length-1:Math.max(0,w-1);E(t),l(o[t])}else if("ArrowDown"===e.key){if(e.preventDefault(),-1===w)return;let t=w+1;t>=o.length?(E(-1),l("")):(E(t),l(o[t]))}},[o,w,U]),Y=(0,s.useCallback)(e=>{var t;l(e),null===(t=F.current)||void 0===t||t.focus()},[]),Q=P?{text:"Connected",color:"success"}:J>0?{text:"Disconnected (Retry ".concat(J,")"),color:"warning"}:{text:"Disconnected",color:"error"};return(0,r.jsxs)(i.Z,{"data-testid":"server-console",sx:{display:"flex",flexDirection:"column",height:"100%",minHeight:400},children:[(0,r.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1,borderBottom:1,borderColor:"divider"},children:[(0,r.jsxs)(x.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,r.jsx)(p.Z,{variant:"subtitle2",children:"Console"}),(0,r.jsx)(m.Z,{"data-testid":"connection-status",label:Q.text,color:Q.color,size:"small"})]}),(0,r.jsxs)(x.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,r.jsx)(d.Z,{size:"small",variant:"outlined",children:["ALL","INFO","WARN","ERROR"].map(e=>(0,r.jsx)(u.Z,{onClick:()=>T(e),variant:N===e?"contained":"outlined",children:e},e))}),(0,r.jsx)(f.Z,{control:(0,r.jsx)(g.Z,{checked:A,onChange:e=>O(e.target.checked),size:"small",inputProps:{"aria-label":"Auto-scroll"}}),label:"Auto-scroll"}),(0,r.jsx)(f.Z,{control:(0,r.jsx)(g.Z,{checked:I,onChange:e=>L(e.target.checked),size:"small",inputProps:{"aria-label":"Hide RCON"}}),label:"Hide RCON"}),(0,r.jsx)(h.Z,{size:"small",onClick:W,"aria-label":"Clear logs",title:"Clear logs",children:(0,r.jsx)(S.Z,{})}),!P&&(0,r.jsx)(u.Z,{size:"small",startIcon:(0,r.jsx)(R.Z,{}),onClick:_,"aria-label":"Reconnect",children:"Reconnect"})]})]}),(0,r.jsx)(c.Z,{ref:M,sx:{flex:1,overflow:"auto",bgcolor:"#1a1a1a",p:1,fontFamily:"monospace",fontSize:"0.85rem"},children:0===K.length?(0,r.jsx)(p.Z,{color:"text.secondary",sx:{textAlign:"center",py:4,color:"#666"},children:"Waiting for logs..."}):K.map((e,t)=>(0,r.jsx)(Z,{log:e},t))}),(0,r.jsx)(C.Z,{}),(0,r.jsx)(c.Z,{sx:{px:2,py:1,bgcolor:"background.default"},children:(0,r.jsxs)(x.Z,{direction:"row",spacing:1,children:[(0,r.jsx)(p.Z,{variant:"caption",color:"text.secondary",sx:{alignSelf:"center"},children:"Quick:"}),j.map(e=>(0,r.jsx)(u.Z,{size:"small",variant:"outlined",onClick:()=>Y(e.template),children:e.label},e.label))]})}),(0,r.jsx)(C.Z,{}),(0,r.jsxs)(c.Z,{sx:{display:"flex",p:1,gap:1},children:[(0,r.jsx)(a.Z,{inputRef:F,fullWidth:!0,size:"small",placeholder:"Enter command...",value:n,onChange:e=>l(e.target.value),onKeyDown:B,disabled:!P||z,InputProps:{sx:{fontFamily:"monospace"}}}),(0,r.jsx)(u.Z,{variant:"contained",onClick:U,disabled:!n.trim()||!P||z,startIcon:z?(0,r.jsx)(v.Z,{size:16}):(0,r.jsx)(b.Z,{}),"aria-label":"Send command",children:"Send"})]})]})}},31358:function(e,t,n){n.d(t,{x:function(){return o}});var r=n(74228),s=n(35106),l=n(8690);function o(){let e=(0,r.useRouter)(),t=(0,s.useCallback)((t,n)=>{(0,l.Av)(),e.push(t,n)},[e]),n=(0,s.useCallback)((t,n)=>{(0,l.Av)(),e.replace(t,n)},[e]);return(0,s.useMemo)(()=>({...e,push:t,replace:n}),[e,t,n])}},93757:function(e,t,n){n.d(t,{D:function(){return l}});var r=n(35106);class s{connect(e){this.options=e,this.shouldReconnect=!0,this.establishConnection()}establishConnection(){this.options&&(this.updateState("connecting"),this.eventSource&&this.eventSource.close(),this.eventSource=new EventSource(this.options.url,{withCredentials:this.options.withCredentials||!1}),this.eventSource.onopen=()=>{this.updateState("connected"),this.retryCount=0,this.lastError=null},this.eventSource.onmessage=e=>{if(!e.data.startsWith(":"))try{var t,n;let r=JSON.parse(e.data);null===(n=this.options)||void 0===n||null===(t=n.onMessage)||void 0===t||t.call(n,r)}catch(e){console.warn("Failed to parse SSE message:",e)}},this.eventSource.onerror=()=>{var e,t;let n={message:"SSE connection error",code:"CONNECTION_ERROR",retryCount:this.retryCount,timestamp:new Date};this.lastError=n,this.updateState("error"),null===(t=this.options)||void 0===t||null===(e=t.onError)||void 0===e||e.call(t,n),this.shouldReconnect&&this.scheduleReconnect()})}scheduleReconnect(){var e,t;if(!this.options)return;let n=null!==(e=this.options.maxReconnectAttempts)&&void 0!==e?e:1/0;if(this.retryCount>=n)return;this.reconnectTimer&&clearTimeout(this.reconnectTimer);let r=null!==(t=this.options.reconnectInterval)&&void 0!==t?t:3e3;this.reconnectTimer=setTimeout(()=>{this.retryCount++,this.establishConnection()},r)}disconnect(){this.shouldReconnect=!1,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.updateState("disconnected")}getState(){return this.state}isConnected(){return"connected"===this.state}getLastError(){return this.lastError}getRetryCount(){return this.retryCount}reconnect(){this.retryCount++,this.shouldReconnect=!0,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.establishConnection()}updateState(e){var t,n;this.state=e,null===(n=this.options)||void 0===n||null===(t=n.onStateChange)||void 0===t||t.call(n,e)}constructor(){this.eventSource=null,this.state="disconnected",this.retryCount=0,this.lastError=null,this.reconnectTimer=null,this.options=null,this.shouldReconnect=!0}}function l(e){let{url:t,onMessage:n,onError:l,reconnectInterval:o=3e3,maxReconnectAttempts:c=1/0,enabled:i=!0,withCredentials:a=!1}=e,[u,d]=(0,r.useState)(null),[h,p]=(0,r.useState)("disconnected"),[m,f]=(0,r.useState)(null),[g,x]=(0,r.useState)(0),C=(0,r.useRef)(null),v=(0,r.useCallback)(e=>{d(e),null==n||n(e)},[n]),b=(0,r.useCallback)(e=>{p(e),"connected"===e&&x(0)},[]),S=(0,r.useCallback)(e=>{f(e),"number"==typeof e.retryCount&&x(e.retryCount),null==l||l(e)},[l]),R=(0,r.useCallback)(()=>{C.current&&(C.current.reconnect(),x(C.current.getRetryCount()))},[]),y=(0,r.useCallback)(()=>{C.current&&C.current.disconnect()},[]);return(0,r.useEffect)(()=>{if(!i){C.current&&(C.current.disconnect(),C.current=null);return}return C.current||(C.current=new s),C.current.connect({url:t,onMessage:v,onStateChange:b,onError:S,reconnectInterval:o,maxReconnectAttempts:c,withCredentials:a}),()=>{C.current&&(C.current.disconnect(),C.current=null)}},[t,i,o,c,a,v,b,S]),{data:u,isConnected:"connected"===h,state:h,error:m,retryCount:g,reconnect:R,disconnect:y}}},163:function(e,t,n){n.d(t,{Y:function(){return l}});var r=n(35106),s=n(93757);function l(e){let{serverName:t,maxLines:n=500,enabled:l=!0,reconnectInterval:o=3e3}=e,[c,i]=(0,r.useState)([]);(0,r.useEffect)(()=>{i([])},[t]);let a=(0,r.useCallback)(e=>{let t;"server-log"===e.type?t=e.data.log:"log"in e&&"string"==typeof e.log&&(t=e.log),t&&i(e=>{let r=[...e,t];return r.length>n?r.slice(r.length-n):r})},[n]),{isConnected:u,reconnect:d,retryCount:h}=(0,s.D)({url:"/api/sse/servers/".concat(encodeURIComponent(t),"/logs"),onMessage:a,enabled:l,reconnectInterval:o});return{logs:c,isConnected:u,clearLogs:(0,r.useCallback)(()=>{i([])},[]),reconnect:d,retryCount:h}}}}]);
|