move over
This commit is contained in:
2
frontend/package-lock.json
generated
2
frontend/package-lock.json
generated
@@ -7,7 +7,7 @@
|
||||
"": {
|
||||
"name": "frontend",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"firebase": "^12.7.0",
|
||||
"react": "^19.2.3",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
1
frontend/src/api/config.js
Normal file
1
frontend/src/api/config.js
Normal file
@@ -0,0 +1 @@
|
||||
export const API_BASE = import.meta.env.VITE_API_BASE || '/v1';
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function AlertForm({ onSubmit }) {
|
||||
|
||||
onSubmit({
|
||||
type,
|
||||
threshold: needsThreshold ? threshold : undefined,
|
||||
threshold: needsThreshold ? Number(threshold) : undefined,
|
||||
});
|
||||
|
||||
setThreshold("");
|
||||
|
||||
@@ -7,7 +7,7 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
'/v1': {
|
||||
target: 'http://localhost:3001',
|
||||
changeOrigin: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user