From 132ad90b519384445b46e6031a41b4a379d42b8e Mon Sep 17 00:00:00 2001 From: William Lima Date: Thu, 14 Dec 2023 00:03:53 -0100 Subject: [PATCH] #140 Fix Globals, Home, Dataset, Dataset Detail, Build Data --- components/_shared/ScrollIndicator.tsx | 1 + .../_shared/developer_experience/Code.tsx | 7 ++-- components/dataset/About.tsx | 32 ++++++++++++++----- components/dataset/DataExplorer.tsx | 14 ++++---- components/dataset/Share.tsx | 1 + components/dataset/SimilarDatasets.tsx | 8 ++--- components/home/main/OpenData101.tsx | 10 +++--- components/home/main/Topics.tsx | 6 ++-- components/resource/About.tsx | 6 ++-- components/resource/ChartBuilder.tsx | 9 ++++-- components/resource/ResourceExplorer.tsx | 6 ++-- components/search/List.tsx | 2 +- components/search/ListCard.tsx | 20 +++++++----- components/search/NewForm.tsx | 10 ++++-- styles/globals.css | 16 +++++++++- tailwind.config.js | 2 +- 16 files changed, 99 insertions(+), 51 deletions(-) diff --git a/components/_shared/ScrollIndicator.tsx b/components/_shared/ScrollIndicator.tsx index 38f9d1e..6483456 100644 --- a/components/_shared/ScrollIndicator.tsx +++ b/components/_shared/ScrollIndicator.tsx @@ -64,6 +64,7 @@ const ScrollIndicator: React.FC<{
{stops.map((stop, index) => (
-
+
- orgs + organization {result.organization.title} @@ -44,7 +48,11 @@ const About: React.FC<{ variables: any }> = ({ variables }) => {
- orgs + date created {t('created') + ' ' + @@ -52,7 +60,11 @@ const About: React.FC<{ variables: any }> = ({ variables }) => {
- orgs + date updated {t('updated') + ' ' + @@ -60,7 +72,11 @@ const About: React.FC<{ variables: any }> = ({ variables }) => {
- orgs + license {result.license_title}
{result.total_downloads > 0 ? ( @@ -75,7 +91,7 @@ const About: React.FC<{ variables: any }> = ({ variables }) => { '' )}
-
+
{t('share')}: @@ -89,10 +105,10 @@ const About: React.FC<{ variables: any }> = ({ variables }) => {
-
+
{result.description?.replace(/<[^>]*>?/gm, '') || ''}
-
+
@@ -191,9 +191,9 @@ const DataExplorer: React.FC<{
-

+

{resources[activeTable].title || resources[activeTable].name} -

+

@@ -250,7 +250,7 @@ const DataExplorer: React.FC<{ className={`${AR( 'ml-3', 'mr-3' - )} text-[#C4C4C4] text-1 hidden sm:block`} + )} text-[#545454] text-1 hidden sm:block`} > |
diff --git a/components/dataset/Share.tsx b/components/dataset/Share.tsx index e6743bb..d69c36c 100644 --- a/components/dataset/Share.tsx +++ b/components/dataset/Share.tsx @@ -8,6 +8,7 @@ const Share: React.FC<{ title: string }> = ({ title }) => { return (
-

{t('explore-s-datasets')}

+

{t('explore-s-datasets')}