skyview/assets/assets.go
Ole-Morten Duesund 8019049c63 feat: Enhance web interface with database integration and callsign management
- Add callsign management module for enhanced aircraft information
- Integrate database status display in web interface
- Update aircraft manager with database-backed callsign resolution
- Enhance user interface with database connectivity indicators
- Add embedded asset management for new database interface components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-31 19:43:58 +02:00

33 lines
1.4 KiB
Go

// Package assets provides embedded static web assets for the SkyView application.
//
// This package uses Go 1.16+ embed functionality to include all static web files
// directly in the compiled binary, eliminating the need for external file dependencies
// at runtime. The embedded assets include:
// - index.html: Main web interface with aircraft tracking map
// - css/style.css: Styling for the web interface
// - js/app.js: JavaScript client for WebSocket communication and map rendering
// - icons/*.svg: Type-specific SVG icons for aircraft markers
// - favicon.ico: Browser icon
//
// The embedded filesystem is used by the HTTP server to serve static content
// and enables single-binary deployment without external asset dependencies.
package assets
import "embed"
// Static contains all embedded static web assets from the static/ directory.
//
// Files are embedded at build time and can be accessed using the standard
// fs.FS interface. Path names within the embedded filesystem preserve the
// directory structure, so files are accessed as:
// - "static/index.html"
// - "static/css/style.css"
// - "static/js/app.js"
// - etc.
//
// This approach ensures the web interface is always available without requiring
// external file deployment or complicated asset management.
//
// Updated to include database.html for database status page
//go:embed static
var Static embed.FS