finish login

This commit is contained in:
thuanle
2025-08-02 02:17:42 +07:00
parent f0dffd7064
commit 02a8f030b6
2 changed files with 875 additions and 422 deletions

View File

@@ -126,10 +126,10 @@ async function initialize() { ... }
```javascript ```javascript
const TASK_TYPES = { const TASK_TYPES = {
LOGIN: 'login', LOGIN: 'login',
GET_ORDER_HISTORY: 'get-order-history', GET_ORDER_HISTORY: 'get_order_history',
GET_BALANCE: 'get-balance', GET_BALANCE: 'get_balance',
SWAP: 'swap', SWAP: 'swap',
NO_TASK: 'no-task' NO_TASK: 'no_task'
}; };
``` ```
@@ -253,8 +253,8 @@ if (bot_status === BOT_STATUS.READY_FOR_NEW_TASKS) {
class AppState { class AppState {
data = { data = {
// Server configuration // Server configuration
server_mode: 'prod', server_type: 'prod',
server: null, server_url: null,
// Page state // Page state
current_page: null, current_page: null,
@@ -425,7 +425,7 @@ const CONFIG = {
```javascript ```javascript
const STORAGE = { const STORAGE = {
key_token: 'baf-agent-token', key_token: 'baf-agent-token',
key_server_mode: 'baf-server-mode', key_server_type: 'baf-server-type',
key_bot_status: 'baf-bot-status', key_bot_status: 'baf-bot-status',
key_navigation_state: 'baf-navigation-state' key_navigation_state: 'baf-navigation-state'
}; };

File diff suppressed because it is too large Load Diff