From fd568de0d07f918f26354e975b8bce1921504374 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Fri, 28 Apr 2023 20:46:49 +0100 Subject: [PATCH] v0.2.0-unstable3 --- .../components/tableView/prettyTableView.jsx | 23 ++++++++++--------- client/src/pages/config/users/proxyman.jsx | 5 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client/src/components/tableView/prettyTableView.jsx b/client/src/components/tableView/prettyTableView.jsx index 2eacd0c..6c7dc0a 100644 --- a/client/src/components/tableView/prettyTableView.jsx +++ b/client/src/components/tableView/prettyTableView.jsx @@ -65,22 +65,23 @@ const PrettyTableView = ({ getKey, data, columns, onRowClick, linkTo }) => { '&:hover': { backgroundColor: 'rgba(0, 0, 0, 0.06)', borderColor: 'gray', - textDecoration: 'underline', + '&:hover .emphasis': { + textDecoration: 'underline' + } }, }} > {columns.map((column) => ( - - {!column.clickable ? - {column.field(row, key)} - : column.field(row, key)} + + {column.field(row, key)} ))} diff --git a/client/src/pages/config/users/proxyman.jsx b/client/src/pages/config/users/proxyman.jsx index 52d9512..9bc3e6d 100644 --- a/client/src/pages/config/users/proxyman.jsx +++ b/client/src/pages/config/users/proxyman.jsx @@ -170,7 +170,7 @@ const ProxyManagement = () => { {routes && r.Name + r.Target + r.Mode} - onRowClick={(r) => {navigate('/ui/config-url/' + r.Name)}} + linkTo={(r) => '/ui/config-url/' + r.Name} columns={[ { title: '', @@ -184,14 +184,13 @@ const ProxyManagement = () => { style: { textDecoration: 'inherit', }, + underline: true, field: (r) => <>
{r.Name}

{r.Description}
}, - // { title: 'Description', field: (r) => shorten(r.Description), style:{fontSize: '90%', opacity: '90%'} }, { title: 'Origin', clickable:true, search: (r) => r.Host + ' ' + r.PathPrefix, field: (r) => }, - // { title: 'Mode', field: (r) => }, { title: 'Target', search: (r) => r.Target, field: (r) => <> }, { title: 'Security', field: (r) => , style: {minWidth: '70px'} }, diff --git a/package.json b/package.json index 7b135e5..0298ee0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.2.0-unstable2", + "version": "0.2.0-unstable3", "description": "", "main": "test-server.js", "bugs": {