feat: Update API endpoints and routing for domains in Dashboard and MainLayout, removing deprecated components
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 7m4s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 7m4s
This commit is contained in:
+1
-1
@@ -437,7 +437,7 @@ app.post('/api/filters', async (req, res) => {
|
|||||||
app.get('/api/s3/last-modified', async (req, res) => {
|
app.get('/api/s3/last-modified', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const results = await Promise.allSettled([
|
const results = await Promise.allSettled([
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains.txt' }).promise(),
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains_community.txt' }).promise(),
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains_community.txt' }).promise(),
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/domains_community.txt' }).promise(),
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/asns.txt' }).promise(),
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'bgp_data/asns.txt' }).promise(),
|
||||||
s3.headObject({ Bucket: BUCKET_NAME, Key: 'servers.json' }).promise(),
|
s3.headObject({ Bucket: BUCKET_NAME, Key: 'servers.json' }).promise(),
|
||||||
|
|||||||
+1
-10
@@ -24,7 +24,6 @@ import {
|
|||||||
IconHeart,
|
IconHeart,
|
||||||
IconCode
|
IconCode
|
||||||
} from '@tabler/icons-react';
|
} from '@tabler/icons-react';
|
||||||
import DataManager from './DataManager';
|
|
||||||
import ServerManager from './ServerManager';
|
import ServerManager from './ServerManager';
|
||||||
import FilterManager from './FilterManager';
|
import FilterManager from './FilterManager';
|
||||||
import DomainsNewManager from './DomainsNewManager';
|
import DomainsNewManager from './DomainsNewManager';
|
||||||
@@ -117,7 +116,6 @@ function MainLayout() {
|
|||||||
icon: IconDatabase,
|
icon: IconDatabase,
|
||||||
items: [
|
items: [
|
||||||
{ id: 'domains', title: 'Домены', path: '/domains', icon: IconWorld },
|
{ id: 'domains', title: 'Домены', path: '/domains', icon: IconWorld },
|
||||||
{ id: 'domains-new', title: 'Домены New', path: '/domains-new', icon: IconWorld },
|
|
||||||
{ id: 'ip-ranges', title: 'IP-диапазоны', path: '/ip-ranges', icon: IconNetwork },
|
{ id: 'ip-ranges', title: 'IP-диапазоны', path: '/ip-ranges', icon: IconNetwork },
|
||||||
{ id: 'asns', title: 'AS', path: '/asns', icon: IconNetwork }
|
{ id: 'asns', title: 'AS', path: '/asns', icon: IconNetwork }
|
||||||
]
|
]
|
||||||
@@ -286,14 +284,7 @@ function MainLayout() {
|
|||||||
<div className="container-xl mt-4">
|
<div className="container-xl mt-4">
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/dashboard" element={<Dashboard />} />
|
<Route path="/dashboard" element={<Dashboard />} />
|
||||||
<Route path="/domains" element={
|
<Route path="/domains" element={<DomainsNewManager />} />
|
||||||
<DataManager
|
|
||||||
entityName="домен"
|
|
||||||
entityKey="domains"
|
|
||||||
placeholder="example.com"
|
|
||||||
/>
|
|
||||||
} />
|
|
||||||
<Route path="/domains-new" element={<DomainsNewManager />} />
|
|
||||||
<Route path="/ip-ranges" element={<IPRangesManager />} />
|
<Route path="/ip-ranges" element={<IPRangesManager />} />
|
||||||
<Route path="/asns" element={<ASNsNewManager />} />
|
<Route path="/asns" element={<ASNsNewManager />} />
|
||||||
<Route path="/auto-urls" element={<AutoUrlManager />} />
|
<Route path="/auto-urls" element={<AutoUrlManager />} />
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ function Dashboard() {
|
|||||||
try {
|
try {
|
||||||
// Загружаем данные с обработкой ошибок для каждого endpoint
|
// Загружаем данные с обработкой ошибок для каждого endpoint
|
||||||
const results = await Promise.allSettled([
|
const results = await Promise.allSettled([
|
||||||
axios.get('/api/domains'),
|
axios.get('/api/domains-new'),
|
||||||
axios.get('/api/ip-ranges'),
|
axios.get('/api/ip-ranges'),
|
||||||
axios.get('/api/asns'),
|
axios.get('/api/asns'),
|
||||||
axios.get('/api/servers'),
|
axios.get('/api/servers'),
|
||||||
|
|||||||
Reference in New Issue
Block a user