Skip to content

V1.0#2

Closed
chindada wants to merge 33 commits intomainfrom
v1.0
Closed

V1.0#2
chindada wants to merge 33 commits intomainfrom
v1.0

Conversation

@chindada
Copy link
Owner

@chindada chindada commented Jul 6, 2025

No description provided.

chindada added 30 commits June 25, 2025 11:56
- Add ads.txt file for Google AdSense

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add fontawesome dependencies.
- Modify the import order in the prettier config.
- Move import statements to the top of the file in several API files.
- Add fontawesome to the menu items.
- Use the fontawesome icon component in the menu.
- Add several translation keys.
- Initialize fontawesome.
- Modify the 404 page.
- Move import statements to the top of the file in several page files.
- Create a new account management page.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Create a BidAsk component for displaying bid and ask prices.
- Use the BidAsk component in RealtimeFutures to display bid and ask data.
- Improve the layout and styling of the RealtimeFutures component.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Change the global font family to system-ui
- Add dynamic color to the BidAsk component based on reverse prop
- Adjust the width of the chart in the BidAsk component
- Modify the RealtimeFutures component to display futures in a two-column grid layout
- Update the RealtimeFutures component to use flexbox for displaying tick data

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update the prettier dependency from 3.6.0 to 3.6.1

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update `@tailwindcss/postcss` from `4.1.10` to `4.1.11`
- Update `@tailwindcss/vite` from `4.1.10` to `4.1.11`
- Update `tailwindcss` from `4.1.10` to `4.1.11`
- Update `vite` from `6.3.5` to `7.0.0`

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Remove the ads.txt file

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Adjust the size of the layout menu item icon
- Introduce a new component for restoring backups
- Add a backup option to the system menu
- Enhance the display of real-time futures data with conditional rendering and improved bid/ask presentation
- Add many new localization strings to the us.json and zh_tw.json files
- Add the `faSliders` icon to the FontAwesome library
- Create a 403 page for unauthorized operations
- Implement a backup management page with functionalities for creating, uploading, restoring, downloading, and deleting backups

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update `@vitest/eslint-plugin` and `prettier` dependencies
- Display the delay in milliseconds for each future
- Calculate and update the delay when a tick is received
- Add a `delay` property to the `Future` interface

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Display the delay only if it exists.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add `.dockerignore` to exclude node_modules from Docker images
- Add `version.json` to `.gitignore`
- Update `@types/node`, `eslint`, and `unplugin-vue-components` dependencies
- Introduce Trade API with methods for fetching and updating trades
- Implement a locale dropdown component for language selection
- Enhance the app menu with new sections for trade, basic data, historical data, and system settings
- Add locale support to the PopperLocale component
- Update translation files with new keys and remove unused keys
- Add new icons to the FontAwesome library
- Implement trade order and records pages
- Update the login page with a new design and internationalization support

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Change the data key from `uid` to `order_id`

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Corrected the menu links for position and profit/loss.
- Added new pages for future, option and stock data under basic data.
- Added new pages for kbar and ticks data under historical data.
- Added a new page for realtime stock data.
- Moved the `card` class to the outer div in the backup page.
- Added new pages for quota and robot under system.
- Added a title to the trade order page.
- Added new pages for trade position and profit.
- Adjusted the token refresh logic to refresh before token expires.
- Renamed `GetAvaliableTimeInMinute` to `GetTokenLifeTimeMinutes`.
- Added new route definitions.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update unplugin-vue-router to version 0.13.0
- Add API calls for stock, future, and option details
- Add API call to retrieve Shioaji events
- Add a menu item for Shioaji events
- Add new translation keys for event-related terms and data fields
- Add a new page to display Shioaji events in a table
- Implement data tables for futures, options, and stocks with filtering and CSV export
- Display a loading indicator on realtime pages while waiting for data
- Update page titles and headings

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update firebase dependencies
- Create stream API to get subscribe codes
- Add trade APIs for buying, selling, and canceling future trades
- Add a login image
- Create components for future positions, profit/loss, historical k-bar data, and placing orders
- Add translations for new features
- Implement a trade order page with real-time updates via WebSocket

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Sort the trade records by order time after a new record is added.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update dependencies in `package.json`
- Add API endpoints to retrieve future positions by code
- Remove the `FuturePositions.vue` component
- Implement the `FutureProfit.vue` component to display profit and loss data in a table
- Add an action column to the trade table in `PlaceOrder.vue`
- Add new translation keys for "action", "unknown", and "unknown_action"
- Fetch future position data and pass it to `FutureProfit` and `PlaceOrder` components
- Fetch future position data on component mount in `position.vue`

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update `@vue/eslint-config-typescript` version
- Remove the profit/loss menu item
- Remove the profit page
- Implement a data table for displaying position data, including filtering and pagination

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Remove the `SellFirstFuture` API endpoint and related component functionality.
- Adjust button column span in `PlaceOrder.vue` from 4 to 6.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update versions of PrimeVue dependencies.
- Add API endpoints to retrieve target stock and future details.
- Remove `StreamAPI` and related code.
- Replace `StreamAPI.GetSubscribeCodes` with `BasicAPI.GetTargetFuture`.
- Change `codeOptions` from `string[]` to `FutureDetailList`.
- Modify the select component to use the new `codeOptions` format.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update vue-i18n dependency from version 11.1.8 to 11.1.9
- Use `OrderDetail` instead of `BaseOrder` when buying futures
- Use `OrderDetail` instead of `BaseOrder` when selling futures

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add a comment to trigger the pipeline

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update `@primeuix/themes` and `vite` dependencies
- Add a quantity selector with increment/decrement buttons
- Disable buy/sell buttons based on available quantity

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add `GetMargin` API to retrieve margin information.
- Display available margin and risk indicator on the position page.
- Add translations for "available_margin" and "risk_indicator".

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Adjust profit calculation based on the `code` prefix.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Update vite dependency version.
- Modify `PlaceOrder.vue` to allow buying and selling futures with a specified quantity.
- Remove `RealtimeFutures.vue`.
- Introduce `SingleTarget.vue` to display real-time data for a single future.
- Refactor `future.vue` to use `SingleTarget.vue` for displaying future data.
- Modify `stock.vue` to display stock quote data instead of future data.
- Refactor `order.vue` to use `SingleTarget.vue` for displaying future data.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Replace `onUnmounted` with `onBeforeUnmount` to properly close WebSocket connections.
- Introduce a `closeWS` function to encapsulate WebSocket closing logic and prevent memory leaks.
- Clear the retry timeout when a WebSocket connection is successfully opened.
- Remove unnecessary `isMounted` checks.
- Refactor WebSocket reconnection logic to avoid potential issues.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add `onBeforeUnmount` to clear the interval when the component is unmounted
- Refetch future kbar data every minute when the code changes

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add a comment to trigger the pipeline

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add a ping/pong mechanism to the websocket connections
- Clear the retry timeout when the websocket connection is opened

Signed-off-by: Tim Hsu <maochindada@gmail.com>
chindada added 3 commits July 5, 2025 12:23
- Change the ping interval from 30000 to 29000 milliseconds in multiple files.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add an API endpoint to get the last future kbar
- Use the new API endpoint to retrieve the last future kbar in the component
- Remove date formatting logic from the component

Signed-off-by: Tim Hsu <maochindada@gmail.com>
- Add API functions to retrieve stock and future details by code.
- Rename `BidAsk.vue` and create new components `SingleFuture.vue` and `SingleStockQuote.vue`.
- Remove the "ticks" option from the historical data menu.
- The `HistoryKbar` component now accepts a height property and refreshes every 5 minutes.
- Remove `SingleTarget.vue` and use `SingleFuture.vue` instead.
- Modify the kbar page to include a selector for futures.
- Replace inline stock quote display with the `SingleStockQuote` component.
- Replace inline future target display with the `SingleFuture` component in multiple files.

Signed-off-by: Tim Hsu <maochindada@gmail.com>
@chindada chindada self-assigned this Jul 6, 2025
@chindada chindada closed this Jul 6, 2025
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