diff --git a/src/lib/ui-components/navbar.svelte b/src/lib/ui-components/navbar.svelte
index 68f6b69..21d21b0 100644
--- a/src/lib/ui-components/navbar.svelte
+++ b/src/lib/ui-components/navbar.svelte
@@ -46,6 +46,7 @@
Заявки
{#if jwtDecode(getAuthInfo()?.a)?.role == "4"}
Мерчанты
+ Валюты
{/if}
@@ -76,6 +77,7 @@
{showMenu = false;}} href="/admin/orders">Заявки
{#if jwtDecode(getAuthInfo()?.a)?.role == "4"}
{showMenu = false;}} href="/admin/merchants">Мерчанты
+ {showMenu = false;}} href="/admin/currencies">Валюты
{/if}
\ No newline at end of file
diff --git a/src/routes/currencies/+page.svelte b/src/routes/currencies/+page.svelte
new file mode 100644
index 0000000..7ca9635
--- /dev/null
+++ b/src/routes/currencies/+page.svelte
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
{
+ currenciesCurrentPage = n;
+ getCurrencies();
+ }}
+ totalPages={currenciesMaxPage}
+ css={"btn-neutral"}
+ disableButtons={showCurrenciesLoading}
+ />
+
+
+
+ Все
+ Активные
+ Неактивные
+
+
+ {#if showCurrenciesLoading}
+
+ {:else}
+
+
+
+ Код
+ Номер (ISO)
+ Страна
+ Статус
+ Minor Units
+ Приоритетный банк (Bybit)
+ Объем
+ ID
+
+
+
+
+ {#each currencies as cur}
+
+ {cur["code"]}
+ {cur["num"]}
+ {cur["country"]}
+ {cur["is_active"] === "t"
+ ? "Активна"
+ : "Неактивна"}
+ {cur["minor_unit"]}
+ {cur["priority_bank_bybit"]}
+ {cur["volume"]}
+ {cur["id"]}
+
+ {
+ selectedCurrency = cur;
+ showChangeCurrency = true;
+ }}
+ class="btn btn-outline">Изменить
+
+
+ {/each}
+
+
+ {/if}
+
+
+
+{#if showChangeCurrency}
+
+
+
Изменение валюты {selectedCurrency["code"]}
+
Банк
+
+
Объем
+
+
+
{
+ changeCurrency();
+ }} class="btn btn-outline btn-success mt-4">
+ Сохранить
+
+
{
+ showChangeCurrency = false;
+ }}
+ class="btn btn-outline mt-1">Закрыть
+
+
+{/if}
diff --git a/svelte.config.js b/svelte.config.js
index d2ecc55..e990545 100644
--- a/svelte.config.js
+++ b/svelte.config.js
@@ -31,7 +31,8 @@ const config = {
"/disputes",
"/payouts",
"/merchants",
- "/orders"
+ "/orders",
+ "/currencies"
],
},
},