Update QuecManager to 0.0.9

- Added MTU settings
- Added no SIM detected message

Co-Authored-By: Russel Yasol <73575327+dr-dolomite@users.noreply.github.com>
This commit is contained in:
Cameron Thompson
2024-12-07 22:22:29 +00:00
parent 293940e3f0
commit 29196f7f9b
73 changed files with 388 additions and 127 deletions

View File

@@ -0,0 +1 @@
self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-0eb3e56ba33eb808.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();

View File

@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60],{89460:function(t,e,a){Promise.resolve().then(a.bind(a,27442))},27442:function(t,e,a){"use strict";a.r(e);var s=a(20881);a(64149);var n=a(27525),d=a(26509);e.default=t=>{let{children:e}=t,a=(0,n.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===a?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===a?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===a?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},27525:function(t,e,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(e,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(e,{useRouter:function(){return s.useRouter}})}},function(t){t.O(0,[509,985,330,744],function(){return t(t.s=89460)}),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60],{89460:function(t,e,a){Promise.resolve().then(a.bind(a,27442))},27442:function(t,e,a){"use strict";a.r(e);var s=a(20881);a(64149);var n=a(27525),d=a(26509);e.default=t=>{let{children:e}=t,a=(0,n.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===a?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===a?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===a?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===a?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},27525:function(t,e,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(e,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(e,{useRouter:function(){return s.useRouter}})}},function(t){t.O(0,[509,985,330,744],function(){return t(t.s=89460)}),_N_E=t.O()}]);

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[654],{12541:function(e,t,s){Promise.resolve().then(s.bind(s,37569))},37569:function(e,t,s){"use strict";s.r(t);var a=s(20881),n=s(64149),i=s(94920),c=s(33335),l=s(23853),r=s(78580),o=s(46646),d=s(6120);t.default=()=>{let[e,t]=(0,n.useState)("1500"),[s,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!0),[x,g]=(0,n.useState)(""),f=(0,o.pm)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/mtu.sh"),s=await e.json();u(s.isEnabled),t(s.currentValue.toString()),m(!1)}catch(e){g("Failed to fetch MTU settings"),m(!1),f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,a.jsx)(d.Z,{})})}})()},[]);let j=async t=>{t.preventDefault(),g("");let n=s?e:"disable";try{let e=await fetch("/cgi-bin/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(n)}),t=await e.json();!0===t.success?f.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,a.jsx)(d.Z,{})})}catch(e){g("Failed to save MTU settings"),f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,a.jsx)(d.Z,{})})}};return h?(0,a.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,a.jsx)(i.aY,{className:"p-6",children:(0,a.jsx)("div",{className:"text-center",children:"Loading MTU settings..."})})}):(0,a.jsxs)(i.Zb,{children:[(0,a.jsxs)(i.Ol,{children:[(0,a.jsx)(i.ll,{children:"MTU Settings"}),(0,a.jsx)(i.SZ,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,a.jsx)(i.aY,{children:(0,a.jsxs)("form",{onSubmit:j,className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,a.jsx)(c.I,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!s,className:"mt-1",min:"68",max:"9000"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,a.jsx)(l.r,{checked:s,onCheckedChange:e=>{u(e),e||t("1500")}})]})]}),(0,a.jsx)(r.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}}},function(e){e.O(0,[792,59,529,985,330,744],function(){return e(e.s=12541)}),_N_E=e.O()}]);

View File

@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{87168:function(e,t,s){Promise.resolve().then(s.bind(s,11597))},11597:function(e,t,s){"use strict";s.r(t);var a=s(20881),n=s(64149),i=s(94920),c=s(33335),l=s(23853),r=s(78580),o=s(46646),d=s(6120);t.default=()=>{let[e,t]=(0,n.useState)("0"),[s,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!0),[x,g]=(0,n.useState)(""),[f,j]=(0,n.useState)(""),v=(0,o.pm)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/ttl.sh"),s=await e.json();u(s.isEnabled),t(s.currentValue.toString()),m(!1)}catch(e){g("Failed to fetch TTL settings"),m(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:x,action:(0,a.jsx)(d.Z,{})})}})()},[]);let b=async t=>{t.preventDefault(),g(""),j("");let n=s?e:"0";try{let e=await fetch("/cgi-bin/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(n)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:"Settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to save settings",action:(0,a.jsx)(d.Z,{})})}catch(e){g("Failed to save settings")}};return h?(0,a.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,a.jsx)(i.aY,{className:"p-6",children:(0,a.jsx)("div",{className:"text-center",children:"Loading TTL settings..."})})}):(0,a.jsxs)(i.Zb,{children:[(0,a.jsxs)(i.Ol,{children:[(0,a.jsx)(i.ll,{children:"TTL Settings"}),(0,a.jsx)(i.SZ,{children:"Configure TTL mangling for your connection."})]}),(0,a.jsx)(i.aY,{children:(0,a.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,a.jsx)(c.I,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!s,className:"mt-1"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,a.jsx)(l.r,{checked:s,onCheckedChange:u})]})]}),(0,a.jsx)(r.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}}},function(e){e.O(0,[792,59,529,985,330,744],function(){return e(e.s=87168)}),_N_E=e.O()}]);

View File

@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[342],{97017:function(e,t,a){Promise.resolve().then(a.bind(a,98496))},98496:function(e,t,a){"use strict";a.r(t);var s=a(20881);a(64149);var r=a(27525),n=a(26509);t.default=e=>{let{children:t}=e,a=(0,r.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Experimental"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsx)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:(0,s.jsx)(n.default,{href:"/dashboard/experimental/quecwatch",className:"".concat("/dashboard/experimental/quecwatch/"===a?"font-semibold text-primary":"text-sm"),children:"QuecWatch"})}),t]})]})}},27525:function(e,t,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},function(e){e.O(0,[509,985,330,744],function(){return e(e.s=97017)}),_N_E=e.O()}]);

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[197],{84773:function(a,t,h){h.d(t,{GWp:function(){return r}});var n=h(83111);function r(a){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m11.646.44.897.896-1.703 1.703A1.5 1.5 0 0 0 10.5 3h-5A1.5 1.5 0 0 0 4 4.5v5.379l-2 2V1.5A1.5 1.5 0 0 1 3.5 0h7.086a1.5 1.5 0 0 1 1.06.44M8.5 5.378 9.879 4H8.5zM5 8.879 6.879 7H5zm6-1.758L9.121 9H11zm-3.5 3.5L6.121 12H7.5zM5.5 13q-.175 0-.34-.039L2.502 15.62c.265.236.615.38.998.38h9a1.5 1.5 0 0 0 1.5-1.5V4.121l-2 2V11.5a1.5 1.5 0 0 1-1.5 1.5zM5 4.5a.5.5 0 0 1 .5-.5h2v2H5zM8.5 10H11v1.5a.5.5 0 0 1-.5.5h-2zm6.354-8.146a.5.5 0 0 0-.708-.708l-13 13a.5.5 0 0 0 .708.708z"},child:[]}]})(a)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long