Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Package frontend renders the site's pages inside the Go process.
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- Variables
- func New(options Options) http.Handler
- type AdvancedSearchReader
- type BattleGeneratorReader
- type BlogReader
- type CoalitionReader
- type EntityReader
- type FactionWarReader
- type HomepageReader
- type KillmailReader
- type LegacyReader
- type Metadata
- type Options
- type Page
- type RankingsReader
- type RoamReportReader
- type ScanReader
- type SessionReader
- type StatisticsReader
- type UniverseReader
- type WalletReader
- type WarReader
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("frontend: page not found")
Functions ¶
Types ¶
type AdvancedSearchReader ¶
type BattleGeneratorReader ¶
type BattleGeneratorReader interface {
BattleGeneratorPreview(context.Context, json.RawMessage) (json.RawMessage, error)
}
type BlogReader ¶
type CoalitionReader ¶
type EntityReader ¶
type EntityReader interface {
EntityDetail(context.Context, string, int64) (map[string]any, error)
EntityKilllist(context.Context, string, int64, string, int, int, *int64, int64) (api.KilllistPage, error)
EntityTopLists(context.Context, string, int64, int) (api.EntityTopLists, error)
EntityDashboard(context.Context, string, int64, int) (api.EntityDashboard, error)
EntityTop(context.Context, string, int64, string, string) (api.EntityTopData, error)
EntityAchievements(context.Context, int64) ([]api.EntityAchievement, error)
EntityMembers(context.Context, string, int64, int, string, int, int64) (api.EntityMembersData, error)
EntityCorporations(context.Context, int64, string, string) (api.EntityCorporationsData, error)
EntityBattles(context.Context, string, int64, int) (api.EntityBattlesData, error)
EntityWars(context.Context, string, int64, int, string) (api.EntityWarsData, error)
EntityCampaigns(context.Context, string, int64, int) (api.EntityCampaignsData, error)
EntityIntel(context.Context, string, int64, int) (api.EntityIntelData, error)
EntityFactionOverview(context.Context, int64) (api.EntityFactionOverview, error)
EntityFactionMilitiaCorps(context.Context, int64) ([]api.EntityFactionMilitiaCorp, error)
}
EntityReader shares the public entity-page loader with the API while keeping entity routes independent from the homepage's widget reader.
type FactionWarReader ¶
type FactionWarReader interface {
FactionWarDashboard(context.Context, string) (api.FactionWarData, error)
FactionWarOverview(context.Context, string, string) (api.FactionWarOverview, error)
FactionWarSystems(context.Context, string) (api.FactionWarSystems, error)
FactionWarMembers(context.Context, string, url.Values) (api.WarMembersData, error)
FactionWarIntel(context.Context, string) (api.WarIntelData, error)
FactionWarKilllist(context.Context, string, string, int, int, *int64) (api.KilllistPage, error)
}
type HomepageReader ¶
type HomepageReader interface {
Top(context.Context, string, int, int) ([]api.TopEntry, error)
MostValuable(context.Context, string, int, int) ([]api.ValuableKill, error)
LatestKills(context.Context, int, int) (api.KilllistPage, error)
LatestKillsFresh(context.Context, int, int) (api.KilllistPage, error)
Killlist(context.Context, string, int, int) (api.KilllistPage, error)
KilllistFresh(context.Context, string, int, int) (api.KilllistPage, error)
TopKills(context.Context, string, string, int, int) ([]api.TopEntry, error)
TopKillsCached(context.Context, string, string, int, int) ([]api.TopEntry, bool)
MostValuableKills(context.Context, string, int, int) ([]api.ValuableKill, error)
FilteredKills(context.Context, string, *int64, int) (api.KilllistPage, error)
Labels(context.Context) ([]api.LabelEntry, error)
SavedScan(context.Context, string, string) (json.RawMessage, bool, error)
}
HomepageReader keeps homepage and /kills data access outside templ components.
type KillmailReader ¶
type LegacyReader ¶
type LegacyReader interface {
LegacyArchiveStats(context.Context) (api.LegacyArchiveStats, error)
LegacyArchiveTop(context.Context, string, int) ([]api.TopEntry, error)
LegacyArchiveKills(context.Context, url.Values) (api.KilllistPage, error)
LegacyArchiveKill(context.Context, int64) (api.LegacyArchiveKillData, bool, error)
}
type Metadata ¶
type Metadata struct {
Title string
OGTitle string
Description string
CanonicalPath string
Image string
ImageAlt string
// NoSocialImage suppresses the default fallback for preview modes that
// intentionally emit no Open Graph or Twitter image.
NoSocialImage bool
TwitterCard string
TwitterTitle string
ThemeColor string
ImageWidth int
ImageHeight int
ImageSources []string
CommentMedia bool
CommentEditor bool
Kind string
// Indexing is opt-in per page, and only enabled on the production apex.
Indexable bool
// StructuredData is encoded as JSON, including HTML-safe string escaping.
StructuredData any
// Page-specific assets are referenced by logical name and versioned here.
Stylesheets []string
ModuleScripts []string
NeedsWASM bool
}
Metadata belongs to the page loader. CanonicalPath is deliberate: include meaningful pagination queries, omit tracking queries, and choose entity tab canonicals in the route that understands their meaning. Never use Host.
type Options ¶
type Options struct {
Production bool
Homepage HomepageReader
Entities EntityReader
Universe UniverseReader
Wallet WalletReader
Legacy LegacyReader
Rankings RankingsReader
Statistics StatisticsReader
Scans ScanReader
Coalitions CoalitionReader
Wars WarReader
FactionWars FactionWarReader
BattleGenerator BattleGeneratorReader
Blog BlogReader
Killmail KillmailReader
// BlogPreviewAPI is the existing authenticated API handler. The admin-only
// preview route delegates its authorization and post lookup to it in-process.
BlogPreviewAPI http.Handler
CommentsAPI http.Handler
SitemapAPI http.Handler
CampaignsAPI http.Handler
Sessions SessionReader
AccountAPI http.Handler
ConflictsAPI http.Handler
FittingsAPI http.Handler
RoamReports RoamReportReader
AdvancedSearch AdvancedSearchReader
}
Options contains deployment policy, not request-derived site identity.
type Page ¶
type Page struct {
Metadata Metadata
Content templ.Component
Status int
// RedirectPath lets a loader resolve a canonical target inside the same
// measured request context as ordinary SSR data loading.
RedirectPath string
// data. Requests with cookies or Authorization always bypass shared caching.
SharedCacheTTL time.Duration
}
Page separates fetching and presentation. Loaders call Go services directly; templates receive finished view models and never perform database or HTTP IO.
type RankingsReader ¶
type RoamReportReader ¶
type ScanReader ¶
type SessionReader ¶
type StatisticsReader ¶
type StatisticsReader interface {
StatisticsSite(context.Context, string) (api.SiteConfigurationResponse, error)
StatisticsBoardsCached(context.Context, api.SiteConfigurationResponse, []api.StatisticsQuery) map[int][]api.StatisticsEntry
StatisticsBoard(context.Context, api.SiteConfigurationResponse, api.StatisticsQuery) ([]api.StatisticsEntry, error)
}
type UniverseReader ¶
type UniverseReader interface {
UniverseSystem(context.Context, int64) (api.UniverseSystemData, bool, error)
UniverseRegion(context.Context, int64) (api.UniverseRegionData, bool, error)
UniverseConstellation(context.Context, int64) (api.UniverseConstellationData, bool, error)
UniverseLocationKills(context.Context, string, int64, int, *int64) (api.KilllistPage, error)
UniverseLocationValuable(context.Context, string, int64, string) ([]api.ValuableKill, error)
UniverseGroup(context.Context, int64) (api.UniverseGroupData, bool, error)
UniverseGroupKills(context.Context, int64, int, *int64) (api.KilllistPage, error)
UniverseItem(context.Context, int64) (api.UniverseItemData, bool, error)
UniverseItemKills(context.Context, int64, bool, int, *int64) (api.KilllistPage, error)
UniverseMarketOrders(context.Context, int64, int32, string) (api.UniverseMarketOrders, error)
UniverseMarketHistory(context.Context, int64, int32, int) (api.UniverseMarketHistory, error)
UniverseFitFamilies(context.Context, int64, url.Values) (api.UniverseFitFamilies, error)
UniverseFitMeta(context.Context, int64, url.Values) (api.UniverseFitMeta, error)
UniverseFitDistributions(context.Context, int64, url.Values) (api.UniverseFitDistributions, error)
UniverseMarketTree(context.Context) ([]api.UniverseMarketTreeNode, error)
UniverseMarketGroupItems(context.Context, int64) ([]api.UniverseMarketGroupItem, error)
}
type WalletReader ¶
type WarReader ¶
type WarReader interface {
WarDirectory(context.Context, url.Values, string) (api.WarDirectoryData, error)
WarOverview(context.Context) (api.WarOverviewData, error)
FactionWars(context.Context) (api.FactionWarsData, error)
WarDetail(context.Context, int64) (api.WarDetailData, bool, error)
WarKilllist(context.Context, int64, url.Values) (api.KilllistPage, error)
WarStats(context.Context, int64) (api.WarStatsData, error)
WarMembers(context.Context, int64, url.Values) (api.WarMembersData, error)
WarIntel(context.Context, int64) (api.WarIntelData, error)
}
Source Files
¶
- account_navigation.go
- account_navigation_templ.go
- admin.go
- admin_announcements.go
- admin_announcements_templ.go
- admin_blog.go
- admin_blog_templ.go
- admin_campaigns.go
- admin_campaigns_templ.go
- admin_domains.go
- admin_domains_templ.go
- admin_esi.go
- admin_esi_templ.go
- admin_moderation.go
- admin_moderation_templ.go
- admin_river.go
- admin_river_templ.go
- admin_templ.go
- admin_user_templ.go
- admin_wallet.go
- admin_wallet_templ.go
- advanced_search.go
- advanced_search_templ.go
- announcements_templ.go
- assets.go
- battle_analysis.go
- battle_analysis_templ.go
- battle_detail.go
- battle_detail_templ.go
- battle_generator.go
- battle_generator_templ.go
- battle_replay.go
- battle_replay_templ.go
- battles_page.go
- battles_page_templ.go
- blog_page.go
- blog_page_templ.go
- campaign_creator.go
- campaign_creator_templ.go
- campaign_detail.go
- campaign_detail_templ.go
- campaign_editor.go
- campaign_editor_templ.go
- campaigns_page.go
- campaigns_page_templ.go
- categories.go
- categories_templ.go
- coalition_page.go
- coalition_page_templ.go
- comment_feed.go
- comment_input_templ.go
- comments_feed_templ.go
- crawlers.go
- date_time_picker.go
- date_time_picker_templ.go
- diagnostics_templ.go
- docs_page_templ.go
- entity_accent.go
- entity_conflicts.go
- entity_conflicts_templ.go
- entity_faction.go
- entity_faction_templ.go
- entity_intel.go
- entity_intel_templ.go
- entity_members.go
- entity_members_templ.go
- entity_page.go
- entity_page_templ.go
- eve_bio.go
- faction_war.go
- faction_war_systems_templ.go
- faction_war_templ.go
- faq.go
- feed.go
- fit_classify.go
- fit_detail.go
- fit_detail_templ.go
- fit_editor_templ.go
- fit_preview.go
- fit_preview_templ.go
- fit_variants.go
- fit_variants_templ.go
- fits_catalog.go
- fits_catalog_templ.go
- fits_search.go
- fits_search_templ.go
- footer_templ.go
- frontend.go
- graph.go
- graph_templ.go
- group_page.go
- group_page_templ.go
- home_components_templ.go
- home_data.go
- home_fragments.go
- home_helpers.go
- icon_names.go
- info_pages_templ.go
- item_fits.go
- item_fits_templ.go
- item_market.go
- item_market_templ.go
- item_page.go
- item_page_templ.go
- kill_detail.go
- kill_detail_templ.go
- kills_fragments.go
- kills_page.go
- kills_page_templ.go
- layout_templ.go
- legacy_kill.go
- legacy_kill_templ.go
- legacy_page.go
- legacy_page_templ.go
- location_page.go
- location_page_templ.go
- map_page.go
- map_page_templ.go
- market_page.go
- market_page_templ.go
- mcp.go
- mcp_templ.go
- metadata.go
- metadata_templ.go
- navigation.go
- navigation_templ.go
- pages_templ.go
- post_templ.go
- rankings_page.go
- rankings_page_templ.go
- redirects.go
- region_map_templ.go
- reload.go
- render.go
- roam_report.go
- roam_report_composition_templ.go
- roam_report_intel_templ.go
- roam_report_systems_templ.go
- roam_report_templ.go
- roam_report_views.go
- saved_searches_templ.go
- scans.go
- scans_templ.go
- search_picker.go
- search_picker_templ.go
- search_templ.go
- session.go
- settings.go
- settings_appearance_templ.go
- settings_comments.go
- settings_comments_templ.go
- settings_description_templ.go
- settings_domains.go
- settings_domains_templ.go
- settings_esi.go
- settings_esi_templ.go
- settings_templ.go
- settings_wallet.go
- settings_wallet_templ.go
- statistics_page.go
- statistics_page_templ.go
- status_page_templ.go
- system_chart.go
- system_page.go
- system_page_templ.go
- tools_page.go
- tools_page_templ.go
- tracker_dashboard.go
- tracker_dashboard_templ.go
- trackers.go
- trackers_templ.go
- utility_header.go
- utility_page_templ.go
- wallet_page.go
- wallet_page_templ.go
- war_detail.go
- war_detail_templ.go
- war_intel_templ.go
- war_page.go
- wars_page_templ.go
- wizard_steps_templ.go