From acb4660e628dbc42aded5b14c5ce7f9f8af357a3 Mon Sep 17 00:00:00 2001 From: Chengxun Lee <24319042+bclswl0827@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:51:47 +0800 Subject: [PATCH] Set minimum TLS version to 1.2 for HTTP request utility --- CHANGELOG.md | 5 + VERSION | 2 +- frontend/dist/asset-manifest.json | 18 ++-- frontend/dist/index.html | 2 +- frontend/dist/static/js/154.ce486a33.chunk.js | 1 - frontend/dist/static/js/154.fa6c3fcd.chunk.js | 1 + frontend/dist/static/js/303.28dd2180.chunk.js | 2 + ....txt => 303.28dd2180.chunk.js.LICENSE.txt} | 0 frontend/dist/static/js/600.0a84b829.chunk.js | 1 + frontend/dist/static/js/600.a5f3996c.chunk.js | 1 - frontend/dist/static/js/654.18cf5201.chunk.js | 2 - frontend/dist/static/js/899.96228f65.chunk.js | 1 - frontend/dist/static/js/899.d3d5a7bc.chunk.js | 1 + frontend/dist/static/js/904.c8592612.chunk.js | 1 - frontend/dist/static/js/925.25449405.chunk.js | 2 + ....txt => 925.25449405.chunk.js.LICENSE.txt} | 0 frontend/dist/static/js/925.2c212149.chunk.js | 2 - frontend/dist/static/js/973.f7d7b94e.chunk.js | 1 + ...d6a8da8.chunk.js => 974.4ce7c489.chunk.js} | 2 +- frontend/dist/static/js/main.62b97fc9.js | 2 - frontend/dist/static/js/main.f9ed9c3f.js | 2 + ...CENSE.txt => main.f9ed9c3f.js.LICENSE.txt} | 0 frontend/src/.env | 4 +- frontend/src/package-lock.json | 94 +++++++++---------- frontend/src/package.json | 4 +- frontend/src/src/App.tsx | 4 +- frontend/src/src/components/Footer.tsx | 6 +- frontend/src/src/components/TimePicker.tsx | 33 ++++--- frontend/src/src/config/global.tsx | 4 +- utils/request/get.go | 2 +- utils/request/post.go | 2 +- 31 files changed, 109 insertions(+), 93 deletions(-) delete mode 100644 frontend/dist/static/js/154.ce486a33.chunk.js create mode 100644 frontend/dist/static/js/154.fa6c3fcd.chunk.js create mode 100644 frontend/dist/static/js/303.28dd2180.chunk.js rename frontend/dist/static/js/{654.18cf5201.chunk.js.LICENSE.txt => 303.28dd2180.chunk.js.LICENSE.txt} (100%) create mode 100644 frontend/dist/static/js/600.0a84b829.chunk.js delete mode 100644 frontend/dist/static/js/600.a5f3996c.chunk.js delete mode 100644 frontend/dist/static/js/654.18cf5201.chunk.js delete mode 100644 frontend/dist/static/js/899.96228f65.chunk.js create mode 100644 frontend/dist/static/js/899.d3d5a7bc.chunk.js delete mode 100644 frontend/dist/static/js/904.c8592612.chunk.js create mode 100644 frontend/dist/static/js/925.25449405.chunk.js rename frontend/dist/static/js/{925.2c212149.chunk.js.LICENSE.txt => 925.25449405.chunk.js.LICENSE.txt} (100%) delete mode 100644 frontend/dist/static/js/925.2c212149.chunk.js create mode 100644 frontend/dist/static/js/973.f7d7b94e.chunk.js rename frontend/dist/static/js/{974.3d6a8da8.chunk.js => 974.4ce7c489.chunk.js} (74%) delete mode 100644 frontend/dist/static/js/main.62b97fc9.js create mode 100644 frontend/dist/static/js/main.f9ed9c3f.js rename frontend/dist/static/js/{main.62b97fc9.js.LICENSE.txt => main.f9ed9c3f.js.LICENSE.txt} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8df2b79..8e33e2b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Starting from v2.2.5, all notable changes to this project will be documented in this file. +## v2.11.10 + +- Set minimum TLS version to 1.2 for HTTP request utility +- Update frontend dependencies + ## v2.11.9 - Show free disk space in banner instead of station UUID diff --git a/VERSION b/VERSION index 1ac85de0..637f933c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v2.11.9 +v2.11.10 diff --git a/frontend/dist/asset-manifest.json b/frontend/dist/asset-manifest.json index 8a8ade06..de782575 100644 --- a/frontend/dist/asset-manifest.json +++ b/frontend/dist/asset-manifest.json @@ -1,21 +1,21 @@ { "files": { "main.css": "./static/css/main.7a040865.css", - "main.js": "./static/js/main.62b97fc9.js", + "main.js": "./static/js/main.f9ed9c3f.js", "static/css/594.d6bfd15f.chunk.css": "./static/css/594.d6bfd15f.chunk.css", "static/js/594.7755917b.chunk.js": "./static/js/594.7755917b.chunk.js", "static/js/846.88ce4ddb.chunk.js": "./static/js/846.88ce4ddb.chunk.js", - "static/js/154.ce486a33.chunk.js": "./static/js/154.ce486a33.chunk.js", - "static/js/600.a5f3996c.chunk.js": "./static/js/600.a5f3996c.chunk.js", + "static/js/154.fa6c3fcd.chunk.js": "./static/js/154.fa6c3fcd.chunk.js", + "static/js/600.0a84b829.chunk.js": "./static/js/600.0a84b829.chunk.js", "static/js/708.22872728.chunk.js": "./static/js/708.22872728.chunk.js", "static/js/699.e75d4402.chunk.js": "./static/js/699.e75d4402.chunk.js", - "static/js/654.18cf5201.chunk.js": "./static/js/654.18cf5201.chunk.js", + "static/js/303.28dd2180.chunk.js": "./static/js/303.28dd2180.chunk.js", "static/js/548.b98bfbf6.chunk.js": "./static/js/548.b98bfbf6.chunk.js", - "static/js/925.2c212149.chunk.js": "./static/js/925.2c212149.chunk.js", - "static/js/974.3d6a8da8.chunk.js": "./static/js/974.3d6a8da8.chunk.js", + "static/js/925.25449405.chunk.js": "./static/js/925.25449405.chunk.js", + "static/js/974.4ce7c489.chunk.js": "./static/js/974.4ce7c489.chunk.js", "static/js/4.2f3a1ed3.chunk.js": "./static/js/4.2f3a1ed3.chunk.js", - "static/js/899.96228f65.chunk.js": "./static/js/899.96228f65.chunk.js", - "static/js/904.c8592612.chunk.js": "./static/js/904.c8592612.chunk.js", + "static/js/899.d3d5a7bc.chunk.js": "./static/js/899.d3d5a7bc.chunk.js", + "static/js/973.f7d7b94e.chunk.js": "./static/js/973.f7d7b94e.chunk.js", "static/js/461.d7b65798.chunk.js": "./static/js/461.d7b65798.chunk.js", "static/js/717.1ef75138.chunk.js": "./static/js/717.1ef75138.chunk.js", "static/media/github.svg": "./static/media/github.7ef913a817353b753f86393c71e91790.svg", @@ -49,6 +49,6 @@ }, "entrypoints": [ "static/css/main.7a040865.css", - "static/js/main.62b97fc9.js" + "static/js/main.f9ed9c3f.js" ] } \ No newline at end of file diff --git a/frontend/dist/index.html b/frontend/dist/index.html index e3e40a76..8e7fdb5a 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -1 +1 @@ -
=0&&t<=6}},{key:"set",value:function(e,t,a,n){return(e=nt(e,a,n)).setUTCHours(0,0,0,0),e}}]),a}(ne),ot=function(e){K(a,e);var t=Q(a);function a(){var e;(0,$.A)(this,a);for(var n=arguments.length,i=new Array(n),o=0;oe.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return{toasts:t,handlers:{updateHeight:J,startPause:Q,endPause:r,calculateOffset:a}}},X=b(S||(S=(0,r.A)(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n opacity: 1;\n}"]))),Y=b(x||(x=(0,r.A)(["\nfrom {\n transform: scale(0);\n opacity: 0;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),ee=b(k||(k=(0,r.A)(["\nfrom {\n transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),te=w("div")(_||(_=(0,r.A)(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n\n &:after,\n &:before {\n content: '';\n animation: "," 0.15s ease-out forwards;\n animation-delay: 150ms;\n position: absolute;\n border-radius: 3px;\n opacity: 0;\n background: ",";\n bottom: 9px;\n left: 4px;\n height: 2px;\n width: 12px;\n }\n\n &:before {\n animation: "," 0.15s ease-out forwards;\n animation-delay: 180ms;\n transform: rotate(90deg);\n }\n"])),(e=>e.primary||"#ff4b4b"),X,Y,(e=>e.secondary||"#fff"),ee),ne=b(E||(E=(0,r.A)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),re=w("div")(O||(O=(0,r.A)(["\n width: 12px;\n height: 12px;\n box-sizing: border-box;\n border: 2px solid;\n border-radius: 100%;\n border-color: ",";\n border-right-color: ",";\n animation: "," 1s linear infinite;\n"])),(e=>e.secondary||"#e0e0e0"),(e=>e.primary||"#616161"),ne),oe=b(C||(C=(0,r.A)(["\nfrom {\n transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),ae=b(P||(P=(0,r.A)(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n opacity: 1;\n height: 10px;\n}"]))),ie=w("div")(N||(N=(0,r.A)(["\n width: 20px;\n opacity: 0;\n height: 20px;\n border-radius: 10px;\n background: ",";\n position: relative;\n transform: rotate(45deg);\n\n animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n animation-delay: 100ms;\n &:after {\n content: '';\n box-sizing: border-box;\n animation: "," 0.2s ease-out forwards;\n opacity: 0;\n animation-delay: 200ms;\n position: absolute;\n border-right: 2px solid;\n border-bottom: 2px solid;\n border-color: ",";\n bottom: 6px;\n left: 6px;\n height: 10px;\n width: 6px;\n }\n"])),(e=>e.primary||"#61d345"),oe,ae,(e=>e.secondary||"#fff")),se=w("div")(j||(j=(0,r.A)(["\n position: absolute;\n"]))),le=w("div")(R||(R=(0,r.A)(["\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 20px;\n min-height: 20px;\n"]))),ue=b(L||(L=(0,r.A)(["\nfrom {\n transform: scale(0.6);\n opacity: 0.4;\n}\nto {\n transform: scale(1);\n opacity: 1;\n}"]))),ce=w("div")(A||(A=(0,r.A)(["\n position: relative;\n transform: scale(0.6);\n opacity: 0.4;\n min-width: 20px;\n animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n forwards;\n"])),ue),fe=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:a}=t;return void 0!==n?"string"==typeof n?o.createElement(ce,null,n):n:"blank"===r?null:o.createElement(le,null,o.createElement(re,{...a}),"loading"!==r&&o.createElement(se,null,"error"===r?o.createElement(te,{...a}):o.createElement(ie,{...a})))},de=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),pe=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),he=w("div")(T||(T=(0,r.A)(["\n display: flex;\n align-items: center;\n background: #fff;\n color: #363636;\n line-height: 1.3;\n will-change: transform;\n box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n max-width: 350px;\n pointer-events: auto;\n padding: 8px 10px;\n border-radius: 8px;\n"]))),ge=w("div")(z||(z=(0,r.A)(["\n display: flex;\n justify-content: center;\n margin: 4px 10px;\n color: inherit;\n flex: 1 1 auto;\n white-space: pre-line;\n"]))),me=o.memo((e=>{let{toast:t,position:n,style:r,children:a}=e,i=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=U()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[de(n),pe(n)];return{animation:t?"".concat(b(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(b(o)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}})(t.position||n||"top-center",t.visible):{opacity:0},s=o.createElement(fe,{toast:t}),l=o.createElement(ge,{...t.ariaProps},D(t.message,t));return o.createElement(he,{className:t.className,style:{...i,...r,...t.style}},"function"==typeof a?a({icon:s,message:l}):o.createElement(o.Fragment,null,s,l))}));!function(e,t,n,r){c.p=t,m=e,y=n,v=r}(o.createElement);var ye=e=>{let{id:t,className:n,style:r,onHeightUpdate:a,children:i}=e,s=o.useCallback((e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;a(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,a]);return o.createElement("div",{ref:s,className:n,style:r},i)},ve=g(F||(F=(0,r.A)(["\n z-index: 9999;\n > * {\n pointer-events: auto;\n }\n"]))),be=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:a,children:i,containerStyle:s,containerClassName:l}=e,{toasts:u,handlers:c}=Z(r);return o.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map((e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:U()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)"),...r,...o}})(r,c.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:n}));return o.createElement(ye,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?ve:"",style:s},"custom"===e.type?D(e.message,e):i?i(e):o.createElement(me,{toast:e,position:r}))})))},we=G},67818:(e,t,n)=>{"use strict";n.d(t,{r9:()=>h,Bd:()=>v});var r=n(9950);n(57413);Object.create(null);const o={};function a(){for(var e=arguments.length,t=new Array(e),n=0;n