finish login
This commit is contained in:
14
README.md
14
README.md
@@ -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'
|
||||||
};
|
};
|
||||||
|
|||||||
1071
agent.user.js
1071
agent.user.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user