Refactor JS paths and reimplement Stellar functionalities#1
Draft
steven-tomlinson wants to merge 1 commit into
Draft
Refactor JS paths and reimplement Stellar functionalities#1steven-tomlinson wants to merge 1 commit into
steven-tomlinson wants to merge 1 commit into
Conversation
Updated .razor files to use absolute JS paths. Removed old JS files and reintroduced functionalities in new files: - `barChart.js`: Fetch and render historical trade data with real-time updates. - `buySell.js`: Handle buy/sell offers with validation and submission. - `depthChart.js`: Fetch and render order book data. - `feeChecker.js`: Calculate and display transaction fees. - `global.js`: Initialize global Stellar SDK objects. - `marketInfo.js`: Fetch and display market and on-chain data. - `openOrders.js`: Fetch, display, and cancel open orders. - `orderBook.js`: Fetch and display order book data. - `portfolioTracker.js`: Fetch and display user portfolio. - `txHistory.js`: Fetch and display transaction history. Remove old Razor components and JS; add new UI and logic Removed outdated Razor components and their associated styles, scripts, and code-behind logic. Deleted `BarChart.razor`, `BuySell.razor`, `DepthChart.razor`, `FeeChecker.razor`, `MarketInfo.razor`, `OpenOrders.razor`, `OrderBook.razor`, `PortfolioTracker.razor`, and `TxHistory.razor`. Removed initialization and logic from `barChart.js`, `buySell.js`, `depthChart.js`, `feeChecker.js`, and `global.js`. Completely removed `marketInfo.js`, `openOrders.js`, `orderBook.js`, `portfolioTracker.js`, and `txHistory.js`. Added new Razor components with updated styles and HTML structures: `BarChart.razor`, `BuySell.razor`, `DepthChart.razor`, `FeeChecker.razor`, `MarketInfo.razor`, `OpenOrders.razor`, `OrderBook.razor`, `PortfolioTracker.razor`, and `TxHistory.razor`. Implemented new JavaScript logic for handling client-side operations, including fetching data from the Stellar network, processing it, and updating the UI in real-time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor JS paths and reimplement Stellar functionalities
Updated .razor files to use absolute JS paths. Removed old JS files and reintroduced functionalities in new files:
barChart.js: Fetch and render historical trade data with real-time updates.buySell.js: Handle buy/sell offers with validation and submission.depthChart.js: Fetch and render order book data.feeChecker.js: Calculate and display transaction fees.global.js: Initialize global Stellar SDK objects.marketInfo.js: Fetch and display market and on-chain data.openOrders.js: Fetch, display, and cancel open orders.orderBook.js: Fetch and display order book data.portfolioTracker.js: Fetch and display user portfolio.txHistory.js: Fetch and display transaction history.Remove old Razor components and JS; add new UI and logic
Removed outdated Razor components and their associated styles, scripts, and code-behind logic. Deleted
BarChart.razor,BuySell.razor,DepthChart.razor,FeeChecker.razor,MarketInfo.razor,OpenOrders.razor,OrderBook.razor,PortfolioTracker.razor, andTxHistory.razor.Removed initialization and logic from
barChart.js,buySell.js,depthChart.js,feeChecker.js, andglobal.js. Completely removedmarketInfo.js,openOrders.js,orderBook.js,portfolioTracker.js, andtxHistory.js.Added new Razor components with updated styles and HTML structures:
BarChart.razor,BuySell.razor,DepthChart.razor,FeeChecker.razor,MarketInfo.razor,OpenOrders.razor,OrderBook.razor,PortfolioTracker.razor, andTxHistory.razor.Implemented new JavaScript logic for handling client-side operations, including fetching data from the Stellar network, processing it, and updating the UI in real-time.