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} + + + + + + + + + + + + + + + + {#each currencies as cur} + + + + + + + + + + + + {/each} + +
    КодНомер (ISO)СтранаСтатусMinor UnitsПриоритетный банк (Bybit)ОбъемID
    {cur["code"]}{cur["num"]}{cur["country"]}{cur["is_active"] === "t" + ? "Активна" + : "Неактивна"}{cur["minor_unit"]}{cur["priority_bank_bybit"]}{cur["volume"]}{cur["id"]} + +
    + {/if} +
    +
    + +{#if showChangeCurrency} +
    +
    +

    Изменение валюты {selectedCurrency["code"]}

    +

    Банк

    + +

    Объем

    + + + + +
    +
    +{/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" ], }, },