From f6daa8a9318d5d7bec1cb173d8897cfcb9826157 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Fri, 28 Dec 2018 14:48:57 +0100 Subject: [PATCH] Enable useNextVariants and replace depracated typography variants Feature #14639 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- src/common/custom-theme.ts | 5 ++++- .../default-code-snippet/default-code-snippet.tsx | 3 ++- src/components/default-view/default-view.tsx | 2 +- src/components/file-upload/file-upload.tsx | 2 +- .../list-item-text-icon/list-item-text-icon.tsx | 2 +- .../current-token-dialog/current-token-dialog.tsx | 6 +++--- src/views-components/details-panel/details-panel.tsx | 2 +- .../groups-dialog/attributes-dialog.tsx | 2 +- .../groups-dialog/member-attributes-dialog.tsx | 2 +- src/views-components/main-app-bar/help-menu.tsx | 2 +- src/views-components/main-app-bar/main-app-bar.tsx | 2 +- .../repositories-sample-git-dialog.tsx | 2 +- .../repository-attributes-dialog.tsx | 2 +- .../sharing-dialog/sharing-dialog-content.tsx | 2 +- .../sharing-management-form-component.tsx | 2 +- .../sharing-public-access-form-component.tsx | 2 +- src/views-components/user-dialog/attributes-dialog.tsx | 2 +- src/views-components/user-dialog/manage-dialog.tsx | 4 ++-- .../virtual-machines-dialog/attributes-dialog.tsx | 2 +- src/views/login-panel/login-panel.tsx | 10 +++++----- src/views/my-account-panel/my-account-panel-root.tsx | 2 +- .../process-log-panel/process-log-code-snippet.tsx | 3 ++- src/views/process-log-panel/process-log-main-card.tsx | 2 +- src/views/process-panel/process-information-card.tsx | 4 ++-- src/views/process-panel/process-subprocesses-card.tsx | 4 ++-- src/views/process-panel/subprocesses-card.tsx | 2 +- src/views/repositories-panel/repositories-panel.tsx | 2 +- .../run-process-panel/inputs/directory-array-input.tsx | 2 +- .../run-process-panel/inputs/file-array-input.tsx | 2 +- .../site-manager-panel/site-manager-panel-root.tsx | 4 ++-- src/views/ssh-key-panel/ssh-key-panel-root.tsx | 4 ++-- .../virtual-machine-user-panel.tsx | 6 +++--- 32 files changed, 50 insertions(+), 45 deletions(-) diff --git a/src/common/custom-theme.ts b/src/common/custom-theme.ts index f7559eed..0faf781d 100644 --- a/src/common/custom-theme.ts +++ b/src/common/custom-theme.ts @@ -39,6 +39,9 @@ const grey900 = grey["900"]; const rocheBlue = '#06C'; export const themeOptions: ArvadosThemeOptions = { + typography: { + useNextVariants: true, + }, customs: { colors: { green700: green["700"], @@ -148,7 +151,7 @@ export const themeOptions: ArvadosThemeOptions = { dark: teal.A400, contrastText: '#fff' } - } + }, }; export const CustomTheme = createMuiTheme(themeOptions); \ No newline at end of file diff --git a/src/components/default-code-snippet/default-code-snippet.tsx b/src/components/default-code-snippet/default-code-snippet.tsx index e8b89f32..c81865db 100644 --- a/src/components/default-code-snippet/default-code-snippet.tsx +++ b/src/components/default-code-snippet/default-code-snippet.tsx @@ -19,7 +19,8 @@ const theme = createMuiTheme({ } }, typography: { - fontFamily: 'monospace' + fontFamily: 'monospace', + useNextVariants: true, } }); diff --git a/src/components/default-view/default-view.tsx b/src/components/default-view/default-view.tsx index 3bc3e529..036fe1e4 100644 --- a/src/components/default-view/default-view.tsx +++ b/src/components/default-view/default-view.tsx @@ -39,7 +39,7 @@ export const DefaultView = withStyles(styles)( {messages.map((msg: string, index: number) => { - return {msg}; })} diff --git a/src/components/file-upload/file-upload.tsx b/src/components/file-upload/file-upload.tsx index 41054df4..64656e48 100644 --- a/src/components/file-upload/file-upload.tsx +++ b/src/components/file-upload/file-upload.tsx @@ -136,7 +136,7 @@ export const FileUpload = withStyles(styles)( {files.length === 0 && - + Drag and drop data or click to browse diff --git a/src/components/list-item-text-icon/list-item-text-icon.tsx b/src/components/list-item-text-icon/list-item-text-icon.tsx index 29768c05..3afc2cf8 100644 --- a/src/components/list-item-text-icon/list-item-text-icon.tsx +++ b/src/components/list-item-text-icon/list-item-text-icon.tsx @@ -51,7 +51,7 @@ export const ListItemTextIcon = withStyles(styles)( {name} diff --git a/src/views-components/current-token-dialog/current-token-dialog.tsx b/src/views-components/current-token-dialog/current-token-dialog.tsx index 934be54d..bc0071af 100644 --- a/src/views-components/current-token-dialog/current-token-dialog.tsx +++ b/src/views-components/current-token-dialog/current-token-dialog.tsx @@ -47,7 +47,7 @@ export const CurrentTokenDialog = maxWidth='md'> Current Token - + The Arvados API token is a secret key that enables the Arvados SDKs to access Arvados with the proper permissions. For more information see @@ -56,11 +56,11 @@ export const CurrentTokenDialog = - + Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your klingenc account. - + Arvados virtual machines do this for you automatically. This setup is needed only when you use the API remotely (e.g., from your own workstation). diff --git a/src/views-components/details-panel/details-panel.tsx b/src/views-components/details-panel/details-panel.tsx index 315fc985..2a30ae47 100644 --- a/src/views-components/details-panel/details-panel.tsx +++ b/src/views-components/details-panel/details-panel.tsx @@ -152,7 +152,7 @@ export const DetailsPanel = withStyles(styles)( - + {item.getTitle()} diff --git a/src/views-components/groups-dialog/attributes-dialog.tsx b/src/views-components/groups-dialog/attributes-dialog.tsx index ce79d233..c95392a7 100644 --- a/src/views-components/groups-dialog/attributes-dialog.tsx +++ b/src/views-components/groups-dialog/attributes-dialog.tsx @@ -45,7 +45,7 @@ export const GroupAttributesDialog = compose( maxWidth="sm"> Attributes - + {props.data && attributes(props.data, props.classes)} diff --git a/src/views-components/groups-dialog/member-attributes-dialog.tsx b/src/views-components/groups-dialog/member-attributes-dialog.tsx index c7c766da..9299e492 100644 --- a/src/views-components/groups-dialog/member-attributes-dialog.tsx +++ b/src/views-components/groups-dialog/member-attributes-dialog.tsx @@ -45,7 +45,7 @@ export const GroupMemberAttributesDialog = compose( maxWidth="sm"> Attributes - + {props.data && attributes(props.data, props.classes)} diff --git a/src/views-components/main-app-bar/help-menu.tsx b/src/views-components/main-app-bar/help-menu.tsx index 94da69e7..859c907a 100644 --- a/src/views-components/main-app-bar/help-menu.tsx +++ b/src/views-components/main-app-bar/help-menu.tsx @@ -78,7 +78,7 @@ export const HelpMenu = compose( - {link.title} + {link.title} ) diff --git a/src/views-components/main-app-bar/main-app-bar.tsx b/src/views-components/main-app-bar/main-app-bar.tsx index 8a7e9f20..ff3bee61 100644 --- a/src/views-components/main-app-bar/main-app-bar.tsx +++ b/src/views-components/main-app-bar/main-app-bar.tsx @@ -41,7 +41,7 @@ export const MainAppBar = withStyles(styles)( - + arvados workbench diff --git a/src/views-components/repositories-sample-git-dialog/repositories-sample-git-dialog.tsx b/src/views-components/repositories-sample-git-dialog/repositories-sample-git-dialog.tsx index b1573167..6899018c 100644 --- a/src/views-components/repositories-sample-git-dialog/repositories-sample-git-dialog.tsx +++ b/src/views-components/repositories-sample-git-dialog/repositories-sample-git-dialog.tsx @@ -52,7 +52,7 @@ export const RepositoriesSampleGitDialog = compose( - + See also: diff --git a/src/views-components/repository-attributes-dialog/repository-attributes-dialog.tsx b/src/views-components/repository-attributes-dialog/repository-attributes-dialog.tsx index 74cafe90..c9c72026 100644 --- a/src/views-components/repository-attributes-dialog/repository-attributes-dialog.tsx +++ b/src/views-components/repository-attributes-dialog/repository-attributes-dialog.tsx @@ -45,7 +45,7 @@ export const RepositoryAttributesDialog = compose( maxWidth="sm"> Attributes - + {props.data.repositoryData && attributes(props.data.repositoryData, props.classes)} diff --git a/src/views-components/sharing-dialog/sharing-dialog-content.tsx b/src/views-components/sharing-dialog/sharing-dialog-content.tsx index 7347c664..2c9bb01d 100644 --- a/src/views-components/sharing-dialog/sharing-dialog-content.tsx +++ b/src/views-components/sharing-dialog/sharing-dialog-content.tsx @@ -14,7 +14,7 @@ export const SharingDialogContent = (props: { advancedViewOpen: boolean }) => {props.advancedViewOpen && <> - + Who can access diff --git a/src/views-components/sharing-dialog/sharing-management-form-component.tsx b/src/views-components/sharing-dialog/sharing-management-form-component.tsx index 5e374042..e4096ea5 100644 --- a/src/views-components/sharing-dialog/sharing-management-form-component.tsx +++ b/src/views-components/sharing-dialog/sharing-management-form-component.tsx @@ -40,7 +40,7 @@ const PermissionManagementRow = withStyles(permissionManagementRowStyles)( - {fields.get(index).email} + {fields.get(index).email} - + {renderVisibilityInfo(visibility)} diff --git a/src/views-components/user-dialog/attributes-dialog.tsx b/src/views-components/user-dialog/attributes-dialog.tsx index 8ba0f813..11594f5e 100644 --- a/src/views-components/user-dialog/attributes-dialog.tsx +++ b/src/views-components/user-dialog/attributes-dialog.tsx @@ -45,7 +45,7 @@ export const UserAttributesDialog = compose( maxWidth="sm"> Attributes - + {props.data && attributes(props.data, props.classes)} diff --git a/src/views-components/user-dialog/manage-dialog.tsx b/src/views-components/user-dialog/manage-dialog.tsx index 37a233f3..12c5d2b6 100644 --- a/src/views-components/user-dialog/manage-dialog.tsx +++ b/src/views-components/user-dialog/manage-dialog.tsx @@ -51,13 +51,13 @@ export const UserManageDialog = compose( {`Manage - ${props.data.user.firstName} ${props.data.user.lastName}`} - + As an admin, you can log in as this user. When you’ve finished, you will need to log out and log in again with your own account. - + As an admin, you can setup a shell account for this user. The login name is automatically generated from the user's e-mail address. {props.requestedDate && - + A request for shell access was sent on {props.requestedDate} } ; @@ -188,7 +188,7 @@ const CardSSHSection = (props: VirtualMachineProps) => - + In order to access virtual machines using SSH, add an SSH key to your account and add a section like this to your SSH configuration file ( ~/.ssh/config):