T9-T12: env config + live owner search + responsive (§V11, I.env, I.web)
- config.py: env/.env (python-dotenv), defaults = konstanta lama; get_voters & dashboard pakai config - dashboard: ?q= server filter + /api/search JSON (substring, LIKE-escape, rank global via correlated count) - static/app.js: debounced live search; degrades to GET ?q= - static/style.css: input search + responsive (1024/768/480), list→kartu berlabel di mobile - test_dashboard: search/API/rank-global/config tests; .env.example; .env gitignored
This commit is contained in:
1 parent
0b3a86aad2
commit
205ad35c70
12 files changed
+440
-65
No files matched your search
+1
-11
@@ -10,11 +10,7 @@ from datetime import datetime
|
||||
|
||||
import requests
|
||||
|
||||
# Akun Block Producer (BP) yang dicari
|
||||
TARGET_BP = 'databisnisid'
|
||||
|
||||
# Node RPC publik Vexanium
|
||||
API_NODE = 'https://v2.vexascan.com:2096'
|
||||
from config import API_NODE, DB_PATH, MIN_STAKED_VEX, TARGET_BP
|
||||
|
||||
# Kontrak & scope sistem Vexanium = vexcore (BUKAN vexio sesuai konvensi EOS)
|
||||
CODE = 'vexcore'
|
||||
@@ -24,12 +20,6 @@ TABLE = 'voters'
|
||||
# Ukuran halaman saat paginasi
|
||||
LIMIT = 500
|
||||
|
||||
# Syarat minimum stake (dalam VEX) untuk disimpan
|
||||
MIN_STAKED_VEX = 1000
|
||||
|
||||
# Lokasi basis data SQLite
|
||||
DB_PATH = 'voters.db'
|
||||
|
||||
# Ambang-batas nama akun "0" (kodifikasi uint64 0) pada tabel voters
|
||||
ZERO_OWNER = '...........q'
|
||||
|
||||
|
||||
Reference in new issue
Block a user