feat(aria): add Svelte SPA frontend and threat events API
CD - Develop / build-and-deploy (push) Failing after 54s
CD - Develop / build-and-deploy (push) Failing after 54s
- frontend/: full aria.bcos.dev SPA (port 5187) with Dashboard, Threat Events, and IOC Management views; Phase 2-3 nav items disabled as placeholders - ThreatEventController: GET /api/aria/events (paginated, severity/device filter) and GET /api/aria/stats (total/critical/high/activeIoc counts) - Deployed to bcos.dev: hiveiq-aria-frontend container + aria.bcos.dev NPM proxy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import sveltePreprocess from 'svelte-preprocess'
|
||||
import { readFileSync } from 'fs'
|
||||
|
||||
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'))
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
svelte({
|
||||
preprocess: sveltePreprocess({ typescript: true })
|
||||
})
|
||||
],
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(pkg.version),
|
||||
},
|
||||
server: {
|
||||
port: 5187,
|
||||
open: true,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user