← Public packages
@kody/lineage
Interactive commit-level lines of kody, minus generated noise, as an offline-ready chart.
Files
import { lineageConfig, repoLabel } from '../config.ts'
const brand = lineageConfig.branding
export function lineageManifest(
appBasePath: string,
trackedRepoLabel: string = repoLabel(lineageConfig.defaultRepo),
) {
const root = appBasePath.endsWith('/') ? appBasePath : `${appBasePath}/`
return {
name: brand.appName,
short_name: brand.appName,
description: brand.description,
start_url: root,
scope: root,
id: root,
display: 'standalone',
prefer_related_applications: false,
orientation: 'any',
background_color: brand.backgroundColor,
theme_color: brand.themeColorLight,
categories: ['developer', 'utilities'],
icons: [
{
src: `${root}pwa-192.png`,
sizes: '192x192',
type: 'image/png',
purpose: 'any',
},
{
src: `${root}pwa-512.png`,
sizes: '512x512',
type: 'image/png',
purpose: 'any',
},
{
src: `${root}pwa-512-maskable.png`,
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
screenshots: [
{
src: `${root}og-image.jpg`,
sizes: '1200x630',
type: 'image/jpeg',
form_factor: 'wide',
label: `${brand.appName} — countable history of ${trackedRepoLabel}`,
},
],
}
}