move over

This commit is contained in:
KS Jannette
2026-02-27 16:41:18 -05:00
parent 5f81a4b1cc
commit 35d1c13d0a
54 changed files with 312 additions and 5626 deletions

View File

@@ -7,7 +7,7 @@
"": {
"name": "frontend",
"version": "1.0.0",
"license": "ISC",
"license": "MIT",
"dependencies": {
"firebase": "^12.7.0",
"react": "^19.2.3",

View File

@@ -1,7 +1,7 @@
{
"name": "frontend",
"version": "1.0.0",
"description": "",
"description": "koin_ping blockchain monoitor UI",
"main": "index.js",
"scripts": {
"dev": "vite",
@@ -10,7 +10,8 @@
},
"keywords": [
"cryptocurrency",
"event moitoring"
"blockchain",
"blockchain event moitoring"
],
"author": "Steven Jannette",
"license": "MIT",

View File

@@ -1,8 +1,7 @@
// API client for address management
import { getAuthHeaders, getAuthHeadersSimple } from './authHeaders';
const API_BASE = '/api';
import { API_BASE } from './config';
/**
* Create a new blockchain address to monitor

View File

@@ -1,8 +1,7 @@
// API client for alert event history
import { getAuthHeadersSimple } from './authHeaders';
const API_BASE = '/api';
import { API_BASE } from './config';
/**
* Get all alert events (history)

View File

@@ -1,8 +1,7 @@
// API client for alert rule management
import { getAuthHeaders, getAuthHeadersSimple } from './authHeaders';
const API_BASE = '/api';
import { API_BASE } from './config';
/**
* Alert types supported by the system

View File

@@ -0,0 +1 @@
export const API_BASE = import.meta.env.VITE_API_BASE || '/v1';

View File

@@ -1,8 +1,7 @@
// API client for notification configuration
import { getAuthHeaders } from './authHeaders';
const API_BASE = '/api';
import { API_BASE } from './config';
/**
* Get notification configuration for current user

View File

@@ -1,6 +1,6 @@
// API client for system status
const API_BASE = '/api';
import { API_BASE } from './config';
/**
* Get system status including latest processed block and health

View File

@@ -28,7 +28,7 @@ export default function AlertForm({ onSubmit }) {
onSubmit({
type,
threshold: needsThreshold ? threshold : undefined,
threshold: needsThreshold ? Number(threshold) : undefined,
});
setThreshold("");

View File

@@ -7,7 +7,7 @@ export default defineConfig({
server: {
port: 3000,
proxy: {
'/api': {
'/v1': {
target: 'http://localhost:3001',
changeOrigin: true,
},