Skip to content

Refactor JS paths and reimplement Stellar functionalities#1

Draft
steven-tomlinson wants to merge 1 commit into
mainfrom
refactor-js-locations
Draft

Refactor JS paths and reimplement Stellar functionalities#1
steven-tomlinson wants to merge 1 commit into
mainfrom
refactor-js-locations

Conversation

@steven-tomlinson
Copy link
Copy Markdown
Contributor

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, 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.

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.
@steven-tomlinson steven-tomlinson marked this pull request as draft March 9, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant