From 3a4b4a46e06cc11d9128a9ac3c3308e78b7c8647 Mon Sep 17 00:00:00 2001 From: Jeremy Chadwick Date: Thu, 16 Apr 2026 03:57:49 -0700 Subject: [PATCH] Remove trailing whitespace from lines --- index.html | 4 +- public/assets/runescan.svelte | 16 +- public/assets/services/edge.svg | 4 +- src/App.svelte | 330 ++++++++++----------- src/components/Refresh.svelte | 2 +- src/components/Settings.svelte | 2 +- src/lib/Affiliates.svelte | 14 +- src/lib/BaseStats.svelte | 6 +- src/lib/BondTracker.svelte | 16 +- src/lib/BuyRune.svelte | 118 ++++---- src/lib/ChurnCountdown.svelte | 14 +- src/lib/Constants.svelte | 6 +- src/lib/DesktopApp.svelte | 52 ++-- src/lib/Earnings.svelte | 158 +++++----- src/lib/InboundAddresses.svelte | 12 +- src/lib/IncentivePendulum.svelte | 6 +- src/lib/LPChecker.svelte | 8 +- src/lib/LPDetail.svelte | 28 +- src/lib/LiquidityCap.svelte | 10 +- src/lib/LiquidityProviders.svelte | 30 +- src/lib/Nodes.svelte | 240 +++++++-------- src/lib/OraclePrice.svelte | 58 ++-- src/lib/Orderbooks.svelte | 148 ++++----- src/lib/OutboundFees.svelte | 62 ++-- src/lib/POL.svelte | 36 +-- src/lib/RunePool.svelte | 58 ++-- src/lib/SaversPosition.svelte | 6 +- src/lib/SaversYield.svelte | 20 +- src/lib/Snow.svelte | 22 +- src/lib/Supply.svelte | 24 +- src/lib/SwapEstimator.svelte | 178 +++++------ src/lib/SwapEstimator/AssetDropdown.svelte | 30 +- src/lib/SwapperClout.svelte | 16 +- src/lib/TCY.svelte | 10 +- src/lib/TCYClaims.svelte | 20 +- src/lib/TerminalText.svelte | 20 +- src/lib/Thorchad.svelte | 14 +- src/lib/ThorchainDominance.svelte | 198 ++++++------- src/lib/Thorswap.svelte | 36 +-- src/lib/TokenWhitelist.svelte | 52 ++-- src/lib/TradeAssets.svelte | 2 +- src/lib/Treasury.svelte | 34 +-- src/lib/TxStatus.svelte | 4 +- src/lib/Vaults.svelte | 28 +- src/lib/Version.svelte | 22 +- src/lib/Voting.svelte | 72 ++--- src/lib/WhaleWatching.svelte | 72 ++--- src/lib/stores/audioStore.js | 2 +- src/routes/+layout.svelte | 2 +- src/routes/savers/+page.js | 2 +- src/routes/savers/+page.svelte | 2 +- src/routes/savers/SaversPage.svelte | 2 +- src/utils/fetchQuote.ts | 2 +- styles.css | 2 +- updateIpInfo.js | 50 ++-- 55 files changed, 1191 insertions(+), 1191 deletions(-) diff --git a/index.html b/index.html index b03d0ee..e88488d 100644 --- a/index.html +++ b/index.html @@ -15,13 +15,13 @@ RUNE Tools - + - + diff --git a/public/assets/runescan.svelte b/public/assets/runescan.svelte index 5fc66d5..c8e4b63 100644 --- a/public/assets/runescan.svelte +++ b/public/assets/runescan.svelte @@ -3,17 +3,17 @@ export let color = "#ffffff"; - - \ No newline at end of file + diff --git a/public/assets/services/edge.svg b/public/assets/services/edge.svg index 27183d8..7164340 100644 --- a/public/assets/services/edge.svg +++ b/public/assets/services/edge.svg @@ -30,9 +30,9 @@ - - diff --git a/src/App.svelte b/src/App.svelte index 10403a3..52152de 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -11,11 +11,11 @@ import LoadingBar from './lib/components/LoadingBar.svelte'; import { writable } from 'svelte/store'; import Banner from './lib/Banner.svelte'; - + // Add store for starred apps const STARRED_APPS_KEY = 'runetools-starred-apps'; const starredApps = writable(new Set(JSON.parse(localStorage.getItem(STARRED_APPS_KEY) || '[]'))); - + // Subscribe to changes and update localStorage starredApps.subscribe(value => { localStorage.setItem(STARRED_APPS_KEY, JSON.stringify(Array.from(value))); @@ -26,7 +26,7 @@ // Check for desktop app iframe mode let isDesktopApp = false; - + let selectedApp = null; let addressParam = writable(''); let votingSearchTerm = writable(''); @@ -42,19 +42,19 @@ path: "desktop", description: "Download the native RUNE Tools wallet for macOS and Windows" }, - { - name: "Swap Quote", - component: () => import("./lib/SwapEstimator.svelte"), - icon: "๐Ÿ”„", - path: "swap", - description: "Get real time THORChain swap quotes" + { + name: "Swap Quote", + component: () => import("./lib/SwapEstimator.svelte"), + icon: "๐Ÿ”„", + path: "swap", + description: "Get real time THORChain swap quotes" }, - { - name: "Bond Tracker", - component: () => import("./lib/BondTracker.svelte"), - icon: "๐Ÿ”—", - path: "bond", - description: "Monitor your THORChain node rewards" + { + name: "Bond Tracker", + component: () => import("./lib/BondTracker.svelte"), + icon: "๐Ÿ”—", + path: "bond", + description: "Monitor your THORChain node rewards" }, { name: "Voting", @@ -70,139 +70,139 @@ path: "solana", description: "Track Solana RPC provider diversity among THORChain nodes" }, - { - name: "Nodes", - component: () => import("./lib/Nodes.svelte"), - icon: "๐Ÿ“ก", - path: "nodes", + { + name: "Nodes", + component: () => import("./lib/Nodes.svelte"), + icon: "๐Ÿ“ก", + path: "nodes", description: "Explore THORChain's Nodes" }, - { - name: "Earnings", - component: () => import("./lib/Earnings.svelte"), - icon: "๐Ÿ’ฐ", - path: "earnings", - description: "Check the THORChain protocol's earnings" + { + name: "Earnings", + component: () => import("./lib/Earnings.svelte"), + icon: "๐Ÿ’ฐ", + path: "earnings", + description: "Check the THORChain protocol's earnings" }, - { - name: "Constants and Mimirs", - component: () => import("./lib/Constants.svelte"), - icon: "๐Ÿ“š", - path: "constants", - description: "View THORChain's network parameters and settings" + { + name: "Constants and Mimirs", + component: () => import("./lib/Constants.svelte"), + icon: "๐Ÿ“š", + path: "constants", + description: "View THORChain's network parameters and settings" }, - { - name: "Incentive Pendulum", - component: () => import("./lib/IncentivePendulum.svelte"), - icon: "โš–๏ธ", - path: "pendulum", - description: "Check THORChain's incentive pendulum balance" + { + name: "Incentive Pendulum", + component: () => import("./lib/IncentivePendulum.svelte"), + icon: "โš–๏ธ", + path: "pendulum", + description: "Check THORChain's incentive pendulum balance" }, - { - name: "Churn Countdown", - component: () => import("./lib/ChurnCountdown.svelte"), - icon: "โณ", - path: "churn", - description: "Countdown to the next validator churn" + { + name: "Churn Countdown", + component: () => import("./lib/ChurnCountdown.svelte"), + icon: "โณ", + path: "churn", + description: "Countdown to the next validator churn" }, - { - name: "Supply Tracker", - component: () => import("./lib/Supply.svelte"), - icon: "๐Ÿ”ฅ", - path: "supply", - description: "Track RUNE supply and burned tokens" + { + name: "Supply Tracker", + component: () => import("./lib/Supply.svelte"), + icon: "๐Ÿ”ฅ", + path: "supply", + description: "Track RUNE supply and burned tokens" }, - { - name: "Price Checker", - component: () => import("./lib/PriceChecker.svelte"), - icon: "๐Ÿท๏ธ", - path: "prices", - description: "Check pool prices and compare prices of similar assets" + { + name: "Price Checker", + component: () => import("./lib/PriceChecker.svelte"), + icon: "๐Ÿท๏ธ", + path: "prices", + description: "Check pool prices and compare prices of similar assets" }, - { - name: "Oracle Prices", - component: () => import("./lib/OraclePrice.svelte"), - icon: "๐Ÿ”ฎ", - path: "oracle", - description: "Compare THORChain oracle prices vs pool prices" + { + name: "Oracle Prices", + component: () => import("./lib/OraclePrice.svelte"), + icon: "๐Ÿ”ฎ", + path: "oracle", + description: "Compare THORChain oracle prices vs pool prices" }, - { - name: "Vaults", - component: () => import("./lib/Vaults.svelte"), - icon: "๐Ÿ”’", - path: "vaults", - description: "Inspect THORChain's native asset vaults" + { + name: "Vaults", + component: () => import("./lib/Vaults.svelte"), + icon: "๐Ÿ”’", + path: "vaults", + description: "Inspect THORChain's native asset vaults" }, - { - name: "Liquidity Cap", - component: () => import("./lib/LiquidityCap.svelte"), - icon: "๐Ÿงข", - path: "liquidity-cap", + { + name: "Liquidity Cap", + component: () => import("./lib/LiquidityCap.svelte"), + icon: "๐Ÿงข", + path: "liquidity-cap", description: "Check THORChain's liquidity cap" }, - { - name: "LP Checker", - component: () => import("./lib/LiquidityProviders.svelte"), - icon: "๐Ÿ’ง", - path: "lp", - description: "Check your THORChain LP positions" + { + name: "LP Checker", + component: () => import("./lib/LiquidityProviders.svelte"), + icon: "๐Ÿ’ง", + path: "lp", + description: "Check your THORChain LP positions" }, - { - name: "Version", - component: () => import("./lib/Version.svelte"), - icon: "๐Ÿ”ง", - path: "version", - description: "Check the current THORNode version adoption" + { + name: "Version", + component: () => import("./lib/Version.svelte"), + icon: "๐Ÿ”ง", + path: "version", + description: "Check the current THORNode version adoption" }, - { - name: "Inbound Addresses", - component: () => import("./lib/InboundAddresses.svelte"), - icon: "๐Ÿ“", - path: "inbound", - description: "Find THORChain's inbound vault addresses" + { + name: "Inbound Addresses", + component: () => import("./lib/InboundAddresses.svelte"), + icon: "๐Ÿ“", + path: "inbound", + description: "Find THORChain's inbound vault addresses" }, - { - name: "Swapper Clout", - component: () => import("./lib/SwapperClout.svelte"), - icon: "๐Ÿ†", - path: "clout", - description: "Check your Swapper Clout" + { + name: "Swapper Clout", + component: () => import("./lib/SwapperClout.svelte"), + icon: "๐Ÿ†", + path: "clout", + description: "Check your Swapper Clout" }, - { - name: "Affiliates", - component: () => import("./lib/Affiliates.svelte"), - icon: "๐Ÿค", - path: "affiliate", - description: "Track THORChain affiliate payout status" + { + name: "Affiliates", + component: () => import("./lib/Affiliates.svelte"), + icon: "๐Ÿค", + path: "affiliate", + description: "Track THORChain affiliate payout status" }, - { - name: "Token Whitelist", - component: () => import("./lib/TokenWhitelist.svelte"), - icon: "๐Ÿ“", - path: "whitelist", - description: "View THORChain's whitelisted tokens and pools" + { + name: "Token Whitelist", + component: () => import("./lib/TokenWhitelist.svelte"), + icon: "๐Ÿ“", + path: "whitelist", + description: "View THORChain's whitelisted tokens and pools" }, - { - name: "Treasury", - component: () => import("./lib/Treasury.svelte"), - icon: "๐Ÿฆ", - path: "treasury", - description: "Track THORChain's treasury balances and flows" + { + name: "Treasury", + component: () => import("./lib/Treasury.svelte"), + icon: "๐Ÿฆ", + path: "treasury", + description: "Track THORChain's treasury balances and flows" }, - { - name: "Outbound Fees", - component: () => import("./lib/OutboundFees.svelte"), - icon: "๐Ÿ“ค", - path: "outbound-fees", - description: "View THORChain outbound fees and dynamic multipliers" + { + name: "Outbound Fees", + component: () => import("./lib/OutboundFees.svelte"), + icon: "๐Ÿ“ค", + path: "outbound-fees", + description: "View THORChain outbound fees and dynamic multipliers" }, - { + { name: "THORChad", - component: () => import("./lib/Thorchad.svelte"), - icon: "๐Ÿง™โ€โ™‚๏ธ", - path: "thorchad", - description: "THORChad your profile picture" + component: () => import("./lib/Thorchad.svelte"), + icon: "๐Ÿง™โ€โ™‚๏ธ", + path: "thorchad", + description: "THORChad your profile picture" }, { name: "POL Tracker", @@ -211,19 +211,19 @@ path: "pol", description: "Track THORChain's protocol-owned liquidity positions" }, - { - name: "Trade on THORSwap", + { + name: "Trade on THORSwap", icon: "/assets/thorswap.png", - path: "thorswap", - description: "Trade RUNE and other native assets on THORSwap.", + path: "thorswap", + description: "Trade RUNE and other native assets on THORSwap.", externalUrl: "https://app.thorswap.finance/swap/BTC.BTC_THOR.RUNE?ref=-" }, - { - name: "TCY Claims", - component: () => import("./lib/TCYClaims.svelte"), - icon: "๐Ÿช™", - path: "tcy-claims", - description: "Check TCY claims" + { + name: "TCY Claims", + component: () => import("./lib/TCYClaims.svelte"), + icon: "๐Ÿช™", + path: "tcy-claims", + description: "Check TCY claims" }, { name: "TCY", @@ -232,12 +232,12 @@ path: "tcy", description: "Track your staked TCY and yield" }, - { - name: "Trade Assets", - component: () => import("./lib/TradeAssets.svelte"), - icon: "๐Ÿ’ผ", - path: "trade-assets", - description: "Track THORChain's trade assets and vault balances" + { + name: "Trade Assets", + component: () => import("./lib/TradeAssets.svelte"), + icon: "๐Ÿ’ผ", + path: "trade-assets", + description: "Track THORChain's trade assets and vault balances" }, { name: "Orderbooks", @@ -260,12 +260,12 @@ path: "dominance", description: "Compare THORChain's market dominance against competitors" }, - { - name: "Shop", - icon: "๐Ÿช", - path: "shop", - description: "Browse THORChain merchandise", - externalUrl: "https://shop.rune.tools" + { + name: "Shop", + icon: "๐Ÿช", + path: "shop", + description: "Browse THORChain merchandise", + externalUrl: "https://shop.rune.tools" } ]; @@ -372,12 +372,12 @@ function getAppParams(app) { const urlParams = new URLSearchParams(window.location.search); const params = new URLSearchParams(); - + // Always preserve the desktop app flag if (isDesktopApp) { params.set('source', 'desktop-app'); } - + // Add app-specific parameters if (app.name === "Bond Tracker") { const bondAddress = urlParams.get("bond_address"); @@ -402,7 +402,7 @@ const key = urlParams.get("key"); if (key) params.set("key", key); } - + return params.toString() ? `?${params.toString()}` : ""; } @@ -577,18 +577,18 @@ const minItemWidth = 120; const gap = 24; const maxColumns = Math.floor((containerWidth - 40) / (minItemWidth + gap)); - + // Try different numbers of columns to find one that gives us balanced rows for (let cols = maxColumns; cols >= 3; cols--) { const rows = Math.ceil(totalItems / cols); const lastRowItems = totalItems % cols; - + // If the last row has 3 or more items, or if it's perfectly divided if (lastRowItems === 0 || lastRowItems >= 3) { return cols; } } - + // If we couldn't find a perfect fit, default to 3 columns return 3; } @@ -689,8 +689,8 @@ {:else}
{#if selectedApp} -