Merge branch '20085-Sharing-Dialog-Form-Validation-Error-fix' into main
[arvados.git] / src / common / config.ts
index 724fb79542352482984667114cffa76c58a5142b..9b0542820db85e16315f009d59c587c90f5a1f28 100644 (file)
@@ -14,19 +14,20 @@ interface WorkbenchConfig {
 }
 
 export interface ClusterConfigJSON {
-  API: {
-    UnfreezeProjectRequiresAdmin: boolean;
-  };
-  ClusterID: string;
-  RemoteClusters: {
-    [key: string]: {
-      ActivateUsers: boolean;
-      Host: string;
-      Insecure: boolean;
-      Proxy: boolean;
-      Scheme: string;
+    API: {
+        UnfreezeProjectRequiresAdmin: boolean
+        MaxItemsPerResponse: number
+    },
+    ClusterID: string;
+    RemoteClusters: {
+        [key: string]: {
+            ActivateUsers: boolean
+            Host: string
+            Insecure: boolean
+            Proxy: boolean
+            Scheme: string
+        }
     };
-  };
   Mail?: {
     SupportEmailAddress: string;
   };
@@ -40,6 +41,17 @@ export interface ClusterConfigJSON {
     Workbench2: {
       ExternalURL: string;
     };
+    Workbench: {
+        DisableSharingURLsUI: boolean;
+        ArvadosDocsite: string;
+        FileViewersConfigURL: string;
+        WelcomePageHTML: string;
+        InactivePageHTML: string;
+        SSHHelpPageHTML: string;
+        SSHHelpHostSuffix: string;
+        SiteName: string;
+        IdleTimeout: string;
+    };
     Websocket: {
       ExternalURL: string;
     };
@@ -63,6 +75,7 @@ export interface ClusterConfigJSON {
     SSHHelpHostSuffix: string;
     SiteName: string;
     IdleTimeout: string;
+    BannerUUID: string;
   };
   Login: {
     LoginCluster: string;
@@ -255,6 +268,7 @@ export const mockClusterConfigJSON = (
 ): ClusterConfigJSON => ({
   API: {
     UnfreezeProjectRequiresAdmin: false,
+    MaxItemsPerResponse: 1000,
   },
   ClusterID: '',
   RemoteClusters: {},
@@ -266,6 +280,17 @@ export const mockClusterConfigJSON = (
     WebDAV: { ExternalURL: '' },
     WebDAVDownload: { ExternalURL: '' },
     WebShell: { ExternalURL: '' },
+    Workbench: {
+      DisableSharingURLsUI: false,
+      ArvadosDocsite: "",
+      FileViewersConfigURL: "",
+      WelcomePageHTML: "",
+      InactivePageHTML: "",
+      SSHHelpPageHTML: "",
+      SSHHelpHostSuffix: "",
+      SiteName: "",
+      IdleTimeout: "0s"
+    },
   },
   Workbench: {
     DisableSharingURLsUI: false,
@@ -277,6 +302,7 @@ export const mockClusterConfigJSON = (
     SSHHelpHostSuffix: '',
     SiteName: '',
     IdleTimeout: '0s',
+    BannerUUID: ""
   },
   Login: {
     LoginCluster: '',