From a55c587e5be748eed552cf45cd0c84fd6bace2fa Mon Sep 17 00:00:00 2001
From: Ananth Venkatesh <46249765+quantum9Innovation@users.noreply.github.com>
Date: Fri, 16 Feb 2024 20:05:59 +0000
Subject: [PATCH 1/4] Fix sonarlint issues in news
---
src/app/components/News.tsx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx
index 29aa6f6..3dcbac0 100644
--- a/src/app/components/News.tsx
+++ b/src/app/components/News.tsx
@@ -34,8 +34,7 @@ export default function News() {
className='text-blue-300'
>
ISO 26324 DOI registry
-
- !
+ !
eeXiv is currently under active development! There may be major
@@ -47,8 +46,7 @@ export default function News() {
className='text-blue-300'
>
our issue tracker
-
- .
+ .
Want to upload your documents or just make yourself a profile on
From 2c1f2ff882842d7a28a932693016b5eeae67ca2f Mon Sep 17 00:00:00 2001
From: Ananth Venkatesh <46249765+quantum9Innovation@users.noreply.github.com>
Date: Fri, 16 Feb 2024 20:10:45 +0000
Subject: [PATCH 2/4] Automatically redirect on sole result
---
src/app/search/page.tsx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx
index 3dbab29..231ed6d 100644
--- a/src/app/search/page.tsx
+++ b/src/app/search/page.tsx
@@ -112,6 +112,11 @@ export default function Page() {
router.push(input)
}
+ if (data.length === 1) {
+ // auto redirect if only one result
+ handleRedirect(`/document/view/${data[0].id}`)
+ }
+
return (
From 4c132d6caae733ff83abeeb8149a7fc769f5459e Mon Sep 17 00:00:00 2001
From: quantum9Innovation
Date: Fri, 16 Feb 2024 20:11:31 +0000
Subject: [PATCH 3/4] style: format
---
src/app/components/News.tsx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx
index 3dcbac0..29aa6f6 100644
--- a/src/app/components/News.tsx
+++ b/src/app/components/News.tsx
@@ -34,7 +34,8 @@ export default function News() {
className='text-blue-300'
>
ISO 26324 DOI registry
- !
+
+ !
eeXiv is currently under active development! There may be major
@@ -46,7 +47,8 @@ export default function News() {
className='text-blue-300'
>
our issue tracker
- .
+
+ .
Want to upload your documents or just make yourself a profile on
From 3be2baf14623b0841330faadfcb980bb2fcf5b5f Mon Sep 17 00:00:00 2001
From: Ananth Venkatesh <46249765+quantum9Innovation@users.noreply.github.com>
Date: Fri, 16 Feb 2024 20:13:23 +0000
Subject: [PATCH 4/4] Hopfeully make both Prettier and Sonarlint happy
---
src/app/components/News.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/components/News.tsx b/src/app/components/News.tsx
index 29aa6f6..9574325 100644
--- a/src/app/components/News.tsx
+++ b/src/app/components/News.tsx
@@ -35,7 +35,7 @@ export default function News() {
>
ISO 26324 DOI registry
- !
+ {'!'}
eeXiv is currently under active development! There may be major
@@ -48,7 +48,7 @@ export default function News() {
>
our issue tracker
- .
+ {'.'}
Want to upload your documents or just make yourself a profile on