mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 17:12:25 +08:00
feat: migrate store layer to GORM with PostgreSQL support
- Migrate all store packages from raw database/sql to GORM ORM - Add PostgreSQL support alongside SQLite - Move EncryptedString type to crypto package for cleaner architecture - Add automatic encryption/decryption for sensitive fields (API keys, secrets) - Fix PostgreSQL AutoMigrate conflicts by skipping existing tables - Fix duplicate /klines route registration - Update tests to use GORM database connections - Add database configuration support in config package
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { motion } from 'framer-motion'
|
||||
import { Activity, BarChart3, Globe, Wifi, Server, Database, Lock } from 'lucide-react'
|
||||
import { useState, useEffect } from 'react'
|
||||
|
||||
const generateLog = (id) => {
|
||||
interface LogEntry {
|
||||
id: number
|
||||
time: string
|
||||
type: string
|
||||
msg: string
|
||||
color: string
|
||||
}
|
||||
|
||||
const generateLog = (id: number): LogEntry => {
|
||||
const types = ['EXE', 'ARB', 'LIQ', 'NET', 'SYS']
|
||||
const pairs = ['BTC-USDT', 'ETH-PERP', 'SOL-USDT', 'BNB-BUSD']
|
||||
const actions = ['BUY', 'SELL', 'SHORT', 'LONG']
|
||||
@@ -37,7 +44,7 @@ const generateLog = (id) => {
|
||||
}
|
||||
|
||||
export default function LiveFeed() {
|
||||
const [logs, setLogs] = useState([])
|
||||
const [logs, setLogs] = useState<LogEntry[]>([])
|
||||
|
||||
useEffect(() => {
|
||||
// Initial population
|
||||
|
||||
Reference in New Issue
Block a user