Merge pull request #402 from ylei-tsubame/issues/399-populate-network-config

Web UI: auto-suggest partial or whole IP and subnet mask for host networks during config
main
Digimer 1 year ago committed by GitHub
commit bbb6c96ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1345
      striker-ui/components/GeneralInitForm.tsx
  2. 1882
      striker-ui/components/NetworkInitForm.tsx
  3. 5
      striker-ui/components/StrikerInitForm.tsx
  4. 2
      striker-ui/out/_next/static/8B2qFvgX8u8D8ZWgE33V8/_buildManifest.js
  5. 0
      striker-ui/out/_next/static/8B2qFvgX8u8D8ZWgE33V8/_middlewareManifest.js
  6. 0
      striker-ui/out/_next/static/8B2qFvgX8u8D8ZWgE33V8/_ssgManifest.js
  7. 1
      striker-ui/out/_next/static/chunks/692-59a4ae2829590f4c.js
  8. 1
      striker-ui/out/_next/static/chunks/692-64941f28ab144919.js
  9. 1
      striker-ui/out/_next/static/chunks/pages/init-7428606d331bc1dd.js
  10. 1
      striker-ui/out/_next/static/chunks/pages/init-ae1befa8975f7914.js
  11. 2
      striker-ui/out/anvil.html
  12. 2
      striker-ui/out/config.html
  13. 2
      striker-ui/out/file-manager.html
  14. 2
      striker-ui/out/index.html
  15. 2
      striker-ui/out/init.html
  16. 2
      striker-ui/out/login.html
  17. 2
      striker-ui/out/manage-element.html
  18. 2
      striker-ui/out/server.html

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -48,6 +48,7 @@ const StrikerInitForm: FC = () => {
const [isNetworkInitFormValid, setIsNetworkInitFormValid] = const [isNetworkInitFormValid, setIsNetworkInitFormValid] =
useState<boolean>(false); useState<boolean>(false);
const [isSubmittingForm, setIsSubmittingForm] = useState<boolean>(false); const [isSubmittingForm, setIsSubmittingForm] = useState<boolean>(false);
const [hostNumber, setHostNumber] = useState<string | undefined>();
const [hostDetail, setHostDetail] = useProtectedState< const [hostDetail, setHostDetail] = useProtectedState<
APIHostDetail | undefined APIHostDetail | undefined
@ -147,6 +148,9 @@ const StrikerInitForm: FC = () => {
<GeneralInitForm <GeneralInitForm
expectHostDetail={reconfig} expectHostDetail={reconfig}
hostDetail={hostDetail} hostDetail={hostDetail}
onHostNumberBlurAppend={({ target: { value } }) => {
setHostNumber(value);
}}
ref={generalInitFormRef} ref={generalInitFormRef}
toggleSubmitDisabled={(testResult) => { toggleSubmitDisabled={(testResult) => {
if (testResult !== isGeneralInitFormValid) { if (testResult !== isGeneralInitFormValid) {
@ -158,6 +162,7 @@ const StrikerInitForm: FC = () => {
<NetworkInitForm <NetworkInitForm
expectHostDetail={reconfig} expectHostDetail={reconfig}
hostDetail={hostDetail} hostDetail={hostDetail}
hostSequence={hostNumber}
ref={networkInitFormRef} ref={networkInitFormRef}
toggleSubmitDisabled={(testResult) => { toggleSubmitDisabled={(testResult) => {
if (testResult !== isNetworkInitFormValid) { if (testResult !== isNetworkInitFormValid) {

@ -1 +1 @@
self.__BUILD_MANIFEST=function(s,c,a,e,t,n,i,f,d,u,b,k,h,j,r,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,i,f,k,"static/chunks/717-8bd60b96d67fd464.js",c,t,n,d,h,j,"static/chunks/pages/index-1f8f0ad3b3894dbc.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,e,i,f,k,c,t,n,d,h,"static/chunks/pages/anvil-c1177b17efcafc34.js"],"/config":[s,a,e,u,c,t,n,b,"static/chunks/pages/config-0ecdb2b2b3f8c089.js"],"/file-manager":[s,a,e,i,"static/chunks/768-9ee3dcb62beecb53.js",c,t,"static/chunks/pages/file-manager-1a707639a4834587.js"],"/init":[s,a,i,f,u,r,c,t,n,d,g,"static/chunks/pages/init-ae1befa8975f7914.js"],"/login":[s,a,e,c,t,n,b,"static/chunks/pages/login-b5de0cd2f49998d6.js"],"/manage-element":[s,a,e,i,f,u,r,"static/chunks/195-d5fd184cc249f755.js",c,t,n,d,b,g,"static/chunks/pages/manage-element-2b1d8792c2a5bf47.js"],"/server":[s,e,"static/chunks/227-a3756585a7ef09ae.js",c,j,"static/chunks/pages/server-db52258419acacf3.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/382-f51344f6f9208507.js","static/chunks/62-532ed713980da8db.js","static/chunks/483-f8013e38dca1620d.js","static/chunks/894-e57948de523bcf96.js","static/chunks/780-e8b3396d257460a4.js","static/chunks/899-83e9de2a35c6bcf0.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/614-0ce04fd295045ffe.js","static/chunks/140-ec935fb15330b98a.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/903-dc2a40be612a10c3.js","static/chunks/485-77798bccc4308d0e.js","static/chunks/825-d34974d169ea09cc.js","static/chunks/94-db0af749b6e45543.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/692-59a4ae2829590f4c.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); self.__BUILD_MANIFEST=function(s,c,a,e,t,n,i,f,d,b,u,k,h,j,r,g){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,a,e,i,f,k,"static/chunks/717-8bd60b96d67fd464.js",c,t,n,d,h,j,"static/chunks/pages/index-1f8f0ad3b3894dbc.js"],"/_error":["static/chunks/pages/_error-2280fa386d040b66.js"],"/anvil":[s,a,e,i,f,k,c,t,n,d,h,"static/chunks/pages/anvil-c1177b17efcafc34.js"],"/config":[s,a,e,b,c,t,n,u,"static/chunks/pages/config-0ecdb2b2b3f8c089.js"],"/file-manager":[s,a,e,i,"static/chunks/768-9ee3dcb62beecb53.js",c,t,"static/chunks/pages/file-manager-1a707639a4834587.js"],"/init":[s,a,i,f,b,r,c,t,n,d,g,"static/chunks/pages/init-7428606d331bc1dd.js"],"/login":[s,a,e,c,t,n,u,"static/chunks/pages/login-b5de0cd2f49998d6.js"],"/manage-element":[s,a,e,i,f,b,r,"static/chunks/195-d5fd184cc249f755.js",c,t,n,d,u,g,"static/chunks/pages/manage-element-2b1d8792c2a5bf47.js"],"/server":[s,e,"static/chunks/227-a3756585a7ef09ae.js",c,j,"static/chunks/pages/server-db52258419acacf3.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/manage-element","/server"]}}("static/chunks/382-f51344f6f9208507.js","static/chunks/62-532ed713980da8db.js","static/chunks/483-f8013e38dca1620d.js","static/chunks/894-e57948de523bcf96.js","static/chunks/780-e8b3396d257460a4.js","static/chunks/899-83e9de2a35c6bcf0.js","static/chunks/182-08683bbe95fbb010.js","static/chunks/614-0ce04fd295045ffe.js","static/chunks/140-ec935fb15330b98a.js","static/chunks/644-c7c6e21c71345aed.js","static/chunks/903-dc2a40be612a10c3.js","static/chunks/485-77798bccc4308d0e.js","static/chunks/825-d34974d169ea09cc.js","static/chunks/94-db0af749b6e45543.js","static/chunks/676-6159ce853338cc1f.js","static/chunks/692-64941f28ab144919.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

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
Loading…
Cancel
Save