skyview/assets/assets.go

34 lines
1.4 KiB
Go
Raw Permalink Normal View History

// Package assets provides embedded static web assets for the SkyView application.
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
//
// 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
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
// - 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"
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
// Static contains all embedded static web assets from the static/ directory.
//
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
// 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"
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
// - "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
Clean up, format, lint and document entire codebase Major cleanup and documentation effort: Code Cleanup: - Remove 668+ lines of dead code from legacy SBS-1 implementation - Delete unused packages: internal/config, internal/parser, internal/client/dump1090 - Remove broken test file internal/server/server_test.go - Remove unused struct fields and imports Code Quality: - Format all Go code with gofmt - Fix all go vet issues - Fix staticcheck linting issues (error capitalization, unused fields) - Clean up module dependencies with go mod tidy Documentation: - Add comprehensive godoc documentation to all packages - Document CPR position decoding algorithm with mathematical details - Document multi-source data fusion strategies - Add function/method documentation with parameters and return values - Document error handling and recovery strategies - Add performance considerations and architectural decisions README Updates: - Update project structure to reflect assets/ organization - Add new features: smart origin, Reset Map button, map controls - Document origin configuration in config examples - Add /api/origin endpoint to API documentation - Update REST endpoints with /api/aircraft/{icao} Analysis: - Analyzed adsb-tools and go-adsb for potential improvements - Confirmed current Beast implementation is production-ready - Identified optional enhancements for future consideration The codebase is now clean, well-documented, and follows Go best practices with zero linting issues and comprehensive documentation throughout. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 10:29:25 +02:00
var Static embed.FS