Merge pull request #677 from ylei-tsubame/dependabot/58-59braces
Web UI: patches 650, 663, 642, 661, 670, 400, and dependabot/58, 59main
commit
ab79237240
81 changed files with 643 additions and 319 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||||
|
export const WS_GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'; |
@ -0,0 +1,5 @@ |
|||||||
|
type ErrorResponseBody = { |
||||||
|
code: string; |
||||||
|
message: string; |
||||||
|
name: string; |
||||||
|
}; |
@ -0,0 +1,17 @@ |
|||||||
|
import * as yup from 'yup'; |
||||||
|
|
||||||
|
import { REP_IPV4, REP_UUID } from './consts/REG_EXP_PATTERNS'; |
||||||
|
|
||||||
|
/** |
||||||
|
* This is OK because yup uses the template string syntax internally to access |
||||||
|
* the field name. |
||||||
|
*/ |
||||||
|
/* eslint-disable no-template-curly-in-string */ |
||||||
|
|
||||||
|
export const yupLaxUuid = () => |
||||||
|
yup.string().matches(REP_UUID, { message: '${path} must be a valid UUID' }); |
||||||
|
|
||||||
|
export const yupIpv4 = () => |
||||||
|
yup |
||||||
|
.string() |
||||||
|
.matches(REP_IPV4, { message: '${path} must be a valid IPv4 address' }); |
@ -1 +0,0 @@ |
|||||||
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,b,u,k,h,j,g,r,d,l,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,a,e,t,i,n,b,"static/chunks/715-31c42cd57b463d49.js",c,f,u,r,d,"static/chunks/pages/index-f7680dbed4474b4b.js"],"/_error":["static/chunks/pages/_error-8447282b6bcee29e.js"],"/anvil":[s,a,e,t,i,n,b,"static/chunks/680-2258b21ffebaf50b.js",c,f,r,"static/chunks/pages/anvil-c29ee8fc3eea3417.js"],"/config":[s,a,e,i,k,h,c,u,"static/chunks/pages/config-cab528473cc20327.js"],"/file-manager":[s,a,e,t,n,k,j,"static/chunks/579-6ba9d1157accb8a7.js",c,f,g,"static/chunks/pages/file-manager-1086cc9ed94415ae.js"],"/init":[s,a,t,i,n,b,h,l,c,f,_,"static/chunks/pages/init-afbc75b7ee36cb21.js"],"/login":[s,a,e,i,c,u,"static/chunks/pages/login-f5cfbd1de52c490d.js"],"/mail-config":[s,a,e,t,i,n,b,k,j,c,f,g,"static/chunks/pages/mail-config-cc0f4d97fffbb64c.js"],"/manage-element":[s,a,e,t,i,n,b,k,j,h,l,"static/chunks/858-f6bfa9b45bc673cc.js",c,f,u,g,_,"static/chunks/pages/manage-element-0a2d309344524020.js"],"/server":[s,e,t,c,d,"static/chunks/pages/server-5cd5f165d40a1eaa.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/mail-config","/manage-element","/server"]}}("static/chunks/572-b5c29784d1349ae1.js","static/chunks/616-c4d59f8a6d39d5a4.js","static/chunks/442-b751672afa3cc53f.js","static/chunks/318-35524f40e72b9bd4.js","static/chunks/341-bdaf9b2461a83319.js","static/chunks/514-4ce501d9fa08982c.js","static/chunks/242-912372df2bb37c32.js","static/chunks/762-c3bdcfb38ea6ff94.js","static/chunks/74-9720e9bc600a2719.js","static/chunks/761-7379298625e9125e.js","static/chunks/461-8504faeaf244aab6.js","static/chunks/982-a80463e6b63f11a0.js","static/chunks/602-32dbc2a66990c0a6.js","static/chunks/845-b3d5dd7a156a9380.js","static/chunks/466-6093dd3c9e9ea062.js","static/chunks/16-633a4da2be332451.js","static/chunks/161-e5c89be90a214bca.js","static/chunks/784-0aa3ea101d582664.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); |
|
@ -0,0 +1 @@ |
|||||||
|
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,b,u,k,h,j,d,g,r,l,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,a,e,t,i,n,b,"static/chunks/715-31c42cd57b463d49.js",c,f,u,g,r,"static/chunks/pages/index-f7680dbed4474b4b.js"],"/_error":["static/chunks/pages/_error-8447282b6bcee29e.js"],"/anvil":[s,a,e,t,i,n,b,"static/chunks/680-2258b21ffebaf50b.js",c,f,g,"static/chunks/pages/anvil-c29ee8fc3eea3417.js"],"/config":[s,a,e,i,k,h,c,u,"static/chunks/pages/config-396facf1669ffe17.js"],"/file-manager":[s,a,e,t,n,k,j,"static/chunks/579-6ba9d1157accb8a7.js",c,f,d,"static/chunks/pages/file-manager-a836cefe1c1c7d5f.js"],"/init":[s,a,t,i,n,b,h,l,c,f,_,"static/chunks/pages/init-afbc75b7ee36cb21.js"],"/login":[s,a,e,i,c,u,"static/chunks/pages/login-9acb46ff70465046.js"],"/mail-config":[s,a,e,t,i,n,b,k,j,c,f,d,"static/chunks/pages/mail-config-4ecabfd783a4abaf.js"],"/manage-element":[s,a,e,t,i,n,b,k,j,h,l,"static/chunks/858-f6bfa9b45bc673cc.js",c,f,u,d,_,"static/chunks/pages/manage-element-3d0a368d3c926f1d.js"],"/server":[s,e,t,c,r,"static/chunks/pages/server-9fd04502dddda042.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/mail-config","/manage-element","/server"]}}("static/chunks/572-b5c29784d1349ae1.js","static/chunks/616-c4d59f8a6d39d5a4.js","static/chunks/442-b751672afa3cc53f.js","static/chunks/318-35524f40e72b9bd4.js","static/chunks/341-bdaf9b2461a83319.js","static/chunks/514-4ce501d9fa08982c.js","static/chunks/242-912372df2bb37c32.js","static/chunks/762-6137fd9eb5f130da.js","static/chunks/74-9720e9bc600a2719.js","static/chunks/761-7379298625e9125e.js","static/chunks/461-8504faeaf244aab6.js","static/chunks/982-a80463e6b63f11a0.js","static/chunks/602-32dbc2a66990c0a6.js","static/chunks/512-56563c67ec35f070.js","static/chunks/466-40a89715cb183656.js","static/chunks/16-8f130ff153ed09e1.js","static/chunks/161-e5c89be90a214bca.js","static/chunks/784-0aa3ea101d582664.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); |
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
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||||
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{38724:function(e,r,n){n.r(r);var t=n(85893),c=n(94460),u=n(67294);let l=e=>{let{background:r="",clipViewport:n=!1,compressionLevel:t=2,dragViewport:u=!1,focusOnClick:l=!1,onConnect:o,onDisconnect:s,onWsClose:i,onWsError:a,qualityLevel:d=6,resizeSession:v=!0,rfb:f,rfbScreen:E,scaleViewport:p=!0,showDotCursor:m=!1,url:w,viewOnly:h=!1}=e;if(!(null==E?void 0:E.current)||(null==f?void 0:f.current))return;E.current.innerHTML="",f.current=new c.Z(E.current,w),f.current.background=r,f.current.clipViewport=n,f.current.compressionLevel=t,f.current.dragViewport=u,f.current.focusOnClick=l,f.current.qualityLevel=d,f.current.resizeSession=v,f.current.scaleViewport=p,f.current.showDotCursor=m,f.current.viewOnly=h,o&&f.current.addEventListener("connect",o),s&&f.current.addEventListener("disconnect",s);let k=f.current._sock,_=k._eventHandlers.close,L=k._eventHandlers.error;k.on("close",e=>{_(e),null==i||i.call(null,e)}),k.on("error",e=>{L(e),null==a||a.call(null,e)})},o=e=>{(null==e?void 0:e.current)&&(e.current.disconnect(),e.current=null)},s=e=>{let{onConnect:r,onDisconnect:n,onWsClose:c,onWsError:s,rfb:i,rfbConnectArgs:a,rfbScreen:d,url:v}=e;return(0,u.useEffect)(()=>{if(a){let{url:e=v}=a;e&&l({onConnect:r,onDisconnect:n,onWsClose:c,onWsError:s,rfb:i,rfbScreen:d,url:e,...a})}else o(i)},[v,r,n,c,s,i,a,d]),(0,u.useEffect)(()=>()=>{o(i)},[i]),(0,t.jsx)("div",{style:{width:"100%",height:"75vh"},ref:d,onMouseEnter:()=>{document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),(null==i?void 0:i.current)&&i.current.focus()}})};s.displayName="VncDisplay",r.default=s}}]); |
@ -1 +0,0 @@ |
|||||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{38724:function(e,r,n){n.r(r);var t=n(85893),c=n(94460),u=n(67294);let l=e=>{let{background:r="",clipViewport:n=!1,compressionLevel:t=2,dragViewport:u=!1,focusOnClick:l=!1,onConnect:i,onDisconnect:s,qualityLevel:o=6,resizeSession:d=!0,rfb:a,rfbScreen:v,scaleViewport:f=!0,showDotCursor:E=!1,url:p,viewOnly:m=!1}=e;(null==v?void 0:v.current)&&(null==a||!a.current)&&(v.current.innerHTML="",a.current=new c.Z(v.current,p),a.current.background=r,a.current.clipViewport=n,a.current.compressionLevel=t,a.current.dragViewport=u,a.current.focusOnClick=l,a.current.qualityLevel=o,a.current.resizeSession=d,a.current.scaleViewport=f,a.current.showDotCursor=E,a.current.viewOnly=m,i&&a.current.addEventListener("connect",i),s&&a.current.addEventListener("disconnect",s))},i=e=>{(null==e?void 0:e.current)&&(e.current.disconnect(),e.current=null)},s=e=>{let{onConnect:r,onDisconnect:n,rfb:c,rfbConnectArgs:s,rfbScreen:o,url:d}=e;return(0,u.useEffect)(()=>{if(s){let{url:e=d}=s;e&&l({onConnect:r,onDisconnect:n,rfb:c,rfbScreen:o,url:e,...s})}else i(c)},[d,r,n,c,s,o]),(0,u.useEffect)(()=>()=>{i(c)},[c]),(0,t.jsx)("div",{style:{width:"100%",height:"75vh"},ref:o,onMouseEnter:()=>{document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),(null==c?void 0:c.current)&&c.current.focus()}})};s.displayName="VncDisplay",r.default=s}}]); |
|
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
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
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
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@ |
|||||||
!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);d.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},d.d(o,u),o},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=function(e){return Promise.all(Object.keys(d.f).reduce(function(t,n){return d.f[n](e,t),t},[]))},d.u=function(e){return"static/chunks/"+e+"."+({460:"5494ba1e4d778d0d",724:"9b0f3b59b9f819ec"})[e]+".js"},d.miniCssF=function(e){},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",d.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.setAttribute("data-webpack",o+n),i.src=d.tu(e)),r[e]=[t];var s=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},d.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},d.tu=function(e){return d.tt().createScriptURL(e)},d.p="/_next/",i={272:0},d.f.j=function(e,t){var n=d.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(272!=e){var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=d.p+d.u(e),u=Error();d.l(o,function(t){if(d.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}else i[e]=0}},d.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)d.o(u,n)&&(d.m[n]=u[n]);if(c)var a=c(d)}for(e&&e(t);f<o.length;f++)r=o[f],d.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return d.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f))}(); |
!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function d(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,d),r=!1}finally{r&&delete l[e]}return n.loaded=!0,n.exports}d.m=a,e=[],d.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(d.O).every(function(e){return d.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},d.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);d.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},d.d(o,u),o},d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.f={},d.e=function(e){return Promise.all(Object.keys(d.f).reduce(function(t,n){return d.f[n](e,t),t},[]))},d.u=function(e){return"static/chunks/"+e+"."+({460:"5494ba1e4d778d0d",724:"74a0b8e0158ff12a"})[e]+".js"},d.miniCssF=function(e){},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",d.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.setAttribute("data-webpack",o+n),i.src=d.tu(e)),r[e]=[t];var s=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},d.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},d.tu=function(e){return d.tt().createScriptURL(e)},d.p="/_next/",i={272:0},d.f.j=function(e,t){var n=d.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(272!=e){var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=d.p+d.u(e),u=Error();d.l(o,function(t){if(d.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}else i[e]=0}},d.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)d.o(u,n)&&(d.m[n]=u[n]);if(c)var a=c(d)}for(e&&e(t);f<o.length;f++)r=o[f],d.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return d.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f))}(); |
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
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
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
@ -0,0 +1,5 @@ |
|||||||
|
type APIError = { |
||||||
|
code: string; |
||||||
|
message: string; |
||||||
|
name: string; |
||||||
|
}; |
@ -1 +1,2 @@ |
|||||||
declare module '@novnc/novnc/core/rfb'; |
declare module '@novnc/novnc/core/rfb'; |
||||||
|
declare module '@novnc/novnc/core/websock'; |
||||||
|
Loading…
Reference in new issue