From cc70756c44b0a422bd91a588a7a0f8e3136a2913 Mon Sep 17 00:00:00 2001
From: Phoebe Lartisant
Date: Wed, 22 May 2024 16:18:22 +0200
Subject: [PATCH] Revert "Home page ui fixes"
This reverts commit 9cb9a9aa16fec53c0cfa2eedc150518881727077.
---
api/server/models/account.go | 2 +-
api/server/models/rolls_request.go | 2 +-
api/server/restapi/embedded_spec.go | 8 ++++----
api/server/restapi/server.go | 2 +-
web-frontend/src/i18n/en_US.json | 2 +-
web-frontend/src/pages/Home/Home.tsx | 2 +-
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/api/server/models/account.go b/api/server/models/account.go
index 887f4c5d2..db623ba35 100644
--- a/api/server/models/account.go
+++ b/api/server/models/account.go
@@ -41,7 +41,7 @@ type Account struct {
Nickname Nickname `json:"nickname"`
// status
- // Enum: [ok corrupted]
+ // Enum: ["ok","corrupted"]
Status string `json:"status,omitempty"`
}
diff --git a/api/server/models/rolls_request.go b/api/server/models/rolls_request.go
index 54edc26ef..60c92fa41 100644
--- a/api/server/models/rolls_request.go
+++ b/api/server/models/rolls_request.go
@@ -30,7 +30,7 @@ type RollsRequest struct {
// side
// Required: true
- // Enum: [buy sell]
+ // Enum: ["buy","sell"]
Side *string `json:"side"`
}
diff --git a/api/server/restapi/embedded_spec.go b/api/server/restapi/embedded_spec.go
index 0604ddac0..eacd466b2 100644
--- a/api/server/restapi/embedded_spec.go
+++ b/api/server/restapi/embedded_spec.go
@@ -1963,11 +1963,11 @@ func init() {
"description": "Route for the ReactJS front-end web application (in /web-frontend)",
"produces": [
"application/json",
- "image/png",
- "text/css",
- "text/html",
"text/javascript",
- "text/webp"
+ "text/html",
+ "text/css",
+ "text/webp",
+ "image/png"
],
"operationId": "webApp",
"parameters": [
diff --git a/api/server/restapi/server.go b/api/server/restapi/server.go
index 70249d520..91b2b4a69 100644
--- a/api/server/restapi/server.go
+++ b/api/server/restapi/server.go
@@ -79,7 +79,7 @@ type Server struct {
ListenLimit int `long:"listen-limit" description:"limit the number of outstanding requests"`
KeepAlive time.Duration `long:"keep-alive" description:"sets the TCP keep-alive timeouts on accepted connections. It prunes dead TCP connections ( e.g. closing laptop mid-download)" default:"3m"`
ReadTimeout time.Duration `long:"read-timeout" description:"maximum duration before timing out read of the request" default:"30s"`
- WriteTimeout time.Duration `long:"write-timeout" description:"maximum duration before timing out write of the response" default:"60s"`
+ WriteTimeout time.Duration `long:"write-timeout" description:"maximum duration before timing out write of the response" default:"30s"`
httpServerL net.Listener
TLSHost string `long:"tls-host" description:"the IP to listen on for tls, when not specified it's the same as --host" env:"TLS_HOST"`
diff --git a/web-frontend/src/i18n/en_US.json b/web-frontend/src/i18n/en_US.json
index e62f11c25..f29704bbb 100644
--- a/web-frontend/src/i18n/en_US.json
+++ b/web-frontend/src/i18n/en_US.json
@@ -19,7 +19,7 @@
"send": "Send",
"receive": "Receive"
},
- "title-mns": "Massa domains",
+ "title-mns": "Massa Domains",
"desc-mns": "Domains that targets your wallet address."
},
"assets": {
diff --git a/web-frontend/src/pages/Home/Home.tsx b/web-frontend/src/pages/Home/Home.tsx
index c4bf7defb..080125127 100644
--- a/web-frontend/src/pages/Home/Home.tsx
+++ b/web-frontend/src/pages/Home/Home.tsx
@@ -111,7 +111,7 @@ export default function Home() {
{Intl.t('home.desc-mns')}
-
+
{domainNameList?.map((domainName) => (
))}