mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 06:37:33 +00:00
feat(notices): 5.2.0 release modal and Patreon for monthly support
The release modal now shows 5.2.0: booking mails that land in the trip, live flight status and the new trip PDF, each with its own drawn card, and links the 5.2.0 release notes. The maintainer note and the support block are rewritten, shorter and without the sponsor wording. Patreon joins Buy Me a Coffee and Ko-fi as the monthly way to support TREK: a full-width button in the release and thank-you notices (a new optional tertiaryCta on the notice contract), a tile in About and in the admin GitHub panel on desktop and phone, the README badges and FUNDING.yml. Like the other donation links it stays hidden inside the native apps.
This commit is contained in:
@@ -6,6 +6,7 @@ import { escapeReleaseHtml as escapeHtml, parseReleaseNotes } from '../../../uti
|
||||
import { MAdminButton, MAdminCard } from './MAdminUi'
|
||||
import { withoutDonationsInApp } from '../../../utils/donations'
|
||||
import MSkeleton from '../../components/MSkeleton'
|
||||
import PatreonIcon, { PATREON_COLOR, PATREON_URL } from '../../../components/shared/PatreonIcon'
|
||||
|
||||
const REPO = 'liketrek/TREK'
|
||||
|
||||
@@ -119,6 +120,7 @@ export default function MAdminGitHubPanel({ isPrerelease = false }: { isPrerelea
|
||||
)
|
||||
|
||||
const cards: LinkCard[] = withoutDonationsInApp([
|
||||
{ href: PATREON_URL, color: PATREON_COLOR, icon: <span style={{ color: PATREON_COLOR }}><PatreonIcon size={17} /></span>, title: 'Patreon', sub: t('admin.github.supportMonthly') },
|
||||
{ href: 'https://ko-fi.com/mauriceboe', color: '#ff5e5b', icon: <Coffee size={18} className="text-[#ff5e5b]" />, title: 'Ko-fi', sub: t('admin.github.support') },
|
||||
{ href: 'https://buymeacoffee.com/mauriceboe', color: '#ffdd00', icon: <Heart size={18} className="text-[#ffdd00]" />, title: 'Buy Me a Coffee', sub: t('admin.github.support') },
|
||||
{ href: 'https://discord.gg/NhZBDSd4qW', color: '#5865F2', icon: discordIcon, title: 'Discord', sub: 'Join the community' },
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import { Bug, BookOpen, Coffee, ExternalLink, Heart, Info, Lightbulb } from 'lucide-react'
|
||||
import type { LucideIcon } from 'lucide-react'
|
||||
import type { ComponentType } from 'react'
|
||||
import { useTranslation } from '../../../i18n'
|
||||
import { MSetCard } from './MSettingsUi'
|
||||
import { withoutDonationsInApp } from '../../../utils/donations'
|
||||
import PatreonIcon, { PATREON_URL } from '../../../components/shared/PatreonIcon'
|
||||
|
||||
interface AboutLink {
|
||||
href: string
|
||||
icon: LucideIcon
|
||||
icon: ComponentType<{ size?: number; strokeWidth?: number }>
|
||||
title: string
|
||||
sub: string
|
||||
}
|
||||
@@ -16,6 +17,7 @@ export default function MSettingsAbout({ appVersion }: { appVersion: string }) {
|
||||
const { t } = useTranslation()
|
||||
|
||||
const links: AboutLink[] = withoutDonationsInApp([
|
||||
{ href: PATREON_URL, icon: PatreonIcon, title: 'Patreon', sub: t('admin.github.supportMonthly') },
|
||||
{ href: 'https://ko-fi.com/mauriceboe', icon: Coffee, title: 'Ko-fi', sub: t('admin.github.support') },
|
||||
{ href: 'https://buymeacoffee.com/mauriceboe', icon: Heart, title: 'Buy Me a Coffee', sub: t('admin.github.support') },
|
||||
{ href: 'https://discord.gg/NhZBDSd4qW', icon: Heart, title: 'Discord', sub: 'Join the community' },
|
||||
|
||||
Reference in New Issue
Block a user