-
{t('total-short')}
+
{t('short')}
diff --git a/package.json b/package.json
index 0e4fb512..9b6272de 100644
--- a/package.json
+++ b/package.json
@@ -46,6 +46,7 @@
"next-themes": "^0.1.1",
"rc-slider": "^9.7.5",
"react": "^17.0.2",
+ "react-circular-progressbar": "^2.0.4",
"react-cool-dimensions": "^2.0.7",
"react-dom": "^17.0.2",
"react-grid-layout": "^1.3.3",
diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index 2948c865..7415f380 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -9,6 +9,7 @@
"account-details-tip-title": "Account Details",
"account-equity": "Account Equity",
"account-equity-chart-title": "Account Equity",
+ "account-exposure": "Account Exposure",
"account-health": "Account Health",
"account-health-tip-desc": "To avoid liquidation you must keep your account health above 0%. To increase the health of your account, reduce borrows or deposit funds.",
"account-health-tip-title": "Account Health",
@@ -212,7 +213,7 @@
"liquidations": "Liquidations",
"liquidity": "Liquidity",
"liquidity-mining": "Liquidity Mining",
- "long": "long",
+ "long": "Long",
"low": "Low",
"maint-health": "Maint Health",
"make-trade": "Make a trade",
@@ -362,7 +363,7 @@
"settle-all": "Settle All",
"settle-error": "Error settling funds",
"settle-success": "Successfully settled funds",
- "short": "short",
+ "short": "Short",
"show-all": "Show all in Nav",
"show-less": "Show less",
"show-more": "Show More",
@@ -430,10 +431,8 @@
"total-funding": "Total Funding",
"total-funding-stats": "Total Funding Earned/Paid",
"total-liabilities": "Total Liabilities Value",
- "total-long": "Long Exposure",
"total-long-tooltip": "Deposits, long futures positions and positive pnl unsettled positions",
"total-pnl": "Total PnL",
- "total-short": "Short Exposure",
"total-short-tooltip": "Borrows, short futures positions and negative pnl unsettled positions",
"total-srm": "Total SRM in Mango",
"totals": "Totals",
diff --git a/public/locales/es/common.json b/public/locales/es/common.json
index 35e7a3ad..7db54a36 100644
--- a/public/locales/es/common.json
+++ b/public/locales/es/common.json
@@ -9,6 +9,7 @@
"account-details-tip-title": "Detalles de la cuenta",
"account-equity": "Patrimonio de la cuenta",
"account-equity-chart-title": "Patrimonio de la cuenta",
+ "account-exposure": "Account Exposure",
"account-health": "Estado de la cuenta",
"account-health-tip-desc": "Para evitar la liquidación, debe mantener el estado de su cuenta por encima del 0%. Para mejorar el estado de su cuenta, reduzca los préstamos o los fondos de depósito.",
"account-health-tip-title": "Estado de la cuenta",
@@ -430,10 +431,8 @@
"total-funding": "Financiamiento total",
"total-funding-stats": "Financiamiento total ganado / pagado",
"total-liabilities": "Valor del pasivo total",
- "total-long": "Long Exposure",
"total-long-tooltip": "Deposits, long futures positions and positive pnl unsettled positions",
"total-pnl": "Total PnL",
- "total-short": "Short Exposure",
"total-short-tooltip": "Borrows, short futures positions and negative pnl unsettled positions",
"total-srm": "SRM total en mango",
"totals": "Totales",
diff --git a/public/locales/zh/common.json b/public/locales/zh/common.json
index 777535e6..6e7ffdef 100644
--- a/public/locales/zh/common.json
+++ b/public/locales/zh/common.json
@@ -1,3 +1,5 @@
+
+
{
"about-to-withdraw": "您正在取款",
"above": "高于",
@@ -9,6 +11,7 @@
"account-details-tip-title": "帐户细节",
"account-equity": "帐户余额",
"account-equity-chart-title": "帐户余额",
+ "account-exposure": "Account Exposure",
"account-health": "帐户健康",
"account-health-tip-desc": "为了避免被清算,您必须将帐户健康度保持在0%以上。为了提高健康度,请减少借贷或存入资产。",
"account-health-tip-title": "帐户健康",
@@ -430,10 +433,8 @@
"total-funding": "资金费总数量",
"total-funding-stats": "资金费收/付统计",
"total-liabilities": "总债务价值",
- "total-long": "Long Exposure",
"total-long-tooltip": "Deposits, long futures positions and positive pnl unsettled positions",
"total-pnl": "总盈亏",
- "total-short": "Short Exposure",
"total-short-tooltip": "Borrows, short futures positions and negative pnl unsettled positions",
"total-srm": "在Mango裡的SRM总量",
"totals": "总量",
diff --git a/public/locales/zh_tw/common.json b/public/locales/zh_tw/common.json
index 0e3e8e42..a595a02c 100644
--- a/public/locales/zh_tw/common.json
+++ b/public/locales/zh_tw/common.json
@@ -9,6 +9,7 @@
"account-details-tip-title": "帳戶細節",
"account-equity": "帳戶餘額",
"account-equity-chart-title": "帳戶餘額",
+ "account-exposure": "Account Exposure",
"account-health": "帳戶健康",
"account-health-tip-desc": "為了避免被清算,您必須將帳戶健康度保持在0%以上。為了提高健康度,請減少借貸或存入資產。",
"account-health-tip-title": "帳戶健康",
@@ -430,10 +431,8 @@
"total-funding": "資金費總數量",
"total-funding-stats": "資金費收/付統計",
"total-liabilities": "總債務價值",
- "total-long": "Long Exposure",
"total-long-tooltip": "Deposits, long futures positions and positive pnl unsettled positions",
"total-pnl": "總盈虧",
- "total-short": "Short Exposure",
"total-short-tooltip": "Borrows, short futures positions and negative pnl unsettled positions",
"total-srm": "在Mango裡的SRM總量",
"totals": "總量",
diff --git a/styles/index.css b/styles/index.css
index 9b1e3e2c..9b992de4 100644
--- a/styles/index.css
+++ b/styles/index.css
@@ -528,3 +528,55 @@ body::-webkit-scrollbar-corner {
.react-horizontal-scrolling-menu--item {
@apply w-full;
}
+
+/*
+ * react-circular-progressbar styles
+ * All of the styles in this file are configurable!
+ */
+
+.CircularProgressbar {
+ /*
+ * This fixes an issue where the CircularProgressbar svg has
+ * 0 width inside a "display: flex" container, and thus not visible.
+ */
+ width: 100%;
+ /*
+ * This fixes a centering issue with CircularProgressbarWithChildren:
+ * https://github.com/kevinsqi/react-circular-progressbar/issues/94
+ */
+ vertical-align: middle;
+}
+
+.CircularProgressbar .CircularProgressbar-path {
+ @apply stroke-th-primary;
+ stroke-linecap: round;
+ transition: stroke-dashoffset 0.5s ease 0s;
+}
+
+.CircularProgressbar .CircularProgressbar-trail {
+ @apply stroke-th-bkg-4;
+ /* Used when trail is not full diameter, i.e. when props.circleRatio is set */
+ stroke-linecap: round;
+}
+
+.CircularProgressbar .CircularProgressbar-text {
+ @apply fill-th-fgd-3 text-sm;
+ dominant-baseline: middle;
+ text-anchor: middle;
+}
+
+.CircularProgressbar .CircularProgressbar-background {
+ @apply fill-th-bkg-4;
+}
+
+.CircularProgressbar.CircularProgressbar-green .CircularProgressbar-path {
+ @apply stroke-th-green;
+}
+
+.CircularProgressbar.CircularProgressbar-orange .CircularProgressbar-path {
+ @apply stroke-th-orange;
+}
+
+.CircularProgressbar.CircularProgressbar-red .CircularProgressbar-path {
+ @apply stroke-th-red;
+}
diff --git a/yarn.lock b/yarn.lock
index c503cb65..911283de 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5555,6 +5555,11 @@ rc-util@^5.16.1, rc-util@^5.19.2, rc-util@^5.3.0:
react-is "^16.12.0"
shallowequal "^1.1.0"
+react-circular-progressbar@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/react-circular-progressbar/-/react-circular-progressbar-2.0.4.tgz#5b04a9cf6be8c522c180e4e99ec6db63677335b0"
+ integrity sha512-OfX0ThSxRYEVGaQSt0DlXfyl5w4DbXHsXetyeivmoQrh9xA9bzVPHNf8aAhOIiwiaxX2WYWpLDB3gcpsDJ9oww==
+
react-cool-dimensions@^2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/react-cool-dimensions/-/react-cool-dimensions-2.0.7.tgz#2fe6657608f034cd7c89f149ed14e79cf1cb2d50"