Skip to content

Commit

Permalink
cr(validatore): update validatore metadati v2 (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincenzoDeSisto authored Sep 5, 2024
1 parent b51f820 commit 14a613d
Show file tree
Hide file tree
Showing 10 changed files with 774 additions and 589 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@testing-library/user-event": "^13.5.0",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"axios": "^1.6.7",
"axios": "^1.7.4",
"babel-loader": "9.1.0",
"babel-plugin-named-asset-import": "^0.3.8",
"babel-preset-react-app": "10.0.1",
Expand Down Expand Up @@ -61,7 +61,8 @@
"terser-webpack-plugin": "5.3.6",
"ts-pnp": "1.2.0",
"url-loader": "4.1.1",
"web-vitals": "^2.1.2"
"web-vitals": "^2.1.2",
"ws": "^8.17.1"
},
"devDependencies": {
"@babel/preset-flow": "7.18.6",
Expand Down Expand Up @@ -93,14 +94,14 @@
"jest-resolve": "27.4.5",
"jest-watch-typeahead": "1.0.0",
"k6": "^0.0.0",
"url": "^0.11.3",
"prettier": "^2.8.0",
"prop-types": "^15.8.1",
"react-dev-utils": "12.0.1",
"swagger-ui-react": "^4.15.5",
"url": "^0.11.3",
"wdio-chromedriver-service": "^8.1.1",
"webdriverio": "^8.22.1",
"webpack": "5.76.0",
"webpack": "^5.94.0",
"webpack-dev-server": "4.11.1",
"webpack-manifest-plugin": "5.0.0",
"workbox-webpack-plugin": "6.5.4"
Expand All @@ -109,7 +110,8 @@
"semver": "7.5.3",
"postcss": "8.4.31",
"@babel/traverse": "7.23.2",
"axios": "^1.6.1",
"axios": "^1.7.4",
"micromatch": "^4.0.8",
"@adobe/css-tools": "^4.3.2"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/HeaderMainMenu/HeaderMainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HeaderMainMenu = () => {
});
}, []);
const isActive = (href) => {
if (href === pathname) {
if (href.includes(pathname)) {
return true;
}

Expand Down
6 changes: 5 additions & 1 deletion src/components/layout/Main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import PropTypes from "prop-types";
import LeaglNotices from "../../static-content/legal-notices/legalNotices";
import Validatore from "../../static-content/validatore/Validatore";
import { FilterProvider } from "../../common/FilterContext/context";
import ValidatoreResult from "../../static-content/validatore/partials/ValidatoreResult";

const Main = ({ childRef }) => (
<main id="main" ref={childRef} tabIndex={-1}>
Expand All @@ -51,7 +52,10 @@ const Main = ({ childRef }) => (
/>
<Route path={FAQ_URL} element={<FaqPage />} />
<Route path={PROJECT_URL} element={<ProjectPage />} />
<Route path={VALIDATORE} element={<Validatore />} />
<Route path={VALIDATORE}>
<Route index element={<Validatore />} />
<Route path="risultato" element={<ValidatoreResult />} />
</Route>
<Route path="*" element={<NotFound />} />
<Route path="/error" element={<NotFound />} />
<Route path={ASSETS_BASE_URL_TOKEN}>
Expand Down
14 changes: 14 additions & 0 deletions src/components/static-content/validatore/Validatore.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
color: #000000;
}

.assetIri {
text-decoration: none;
}
.assetIri:hover {
text-decoration: underline;
text-decoration-color: #06c;
text-underline-offset: 2px;
}

.subtitle {
font-family: "Titillium Web";
font-style: normal;
Expand All @@ -42,6 +51,7 @@

.subtitle {
margin-left: 1.5rem;
margin-right: 1.5rem;
}

.label {
Expand Down Expand Up @@ -87,3 +97,7 @@
#cardValidator::after {
margin-top: 0;
}

.tooltip {
max-width: 250px;
}
Loading

0 comments on commit 14a613d

Please sign in to comment.