Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(website): keep year in footer up to date
Elian Doran5d3e03b72590
diff --git a/apps/website/src/components/Footer.tsx b/apps/website/src/components/Footer.tsxindex 019de9bec5..bae1950e66 100644--- a/apps/website/src/components/Footer.tsx+++ b/apps/website/src/components/Footer.tsx@@ -1,15 +1,17 @@import "./Footer.css";-import Icon from "./Icon.js";-import githubIcon from "../assets/boxicons/bx-github.svg?raw";++import { useContext } from "preact/hooks";+import { useLocation } from "preact-iso";+import { useTranslation } from "react-i18next";++import { LocaleContext } from "..";import githubDiscussionsIcon from "../assets/boxicons/bx-discussion.svg?raw";+import githubIcon from "../assets/boxicons/bx-github.svg?raw";import matrixIcon from "../assets/boxicons/bx-message-dots.svg?raw";import redditIcon from "../assets/boxicons/bx-reddit.svg?raw";-import { Link } from "./Button.js";import { LOCALES, swapLocaleInUrl } from "../i18n";-import { useTranslation } from "react-i18next";-import { useLocation } from "preact-iso";-import { useContext } from "preact/hooks";-import { LocaleContext } from "..";+import { Link } from "./Button.js";+import Icon from "./Icon.js";export default function Footer() {const { t } = useTranslation();@@ -21,7 +23,7 @@ export default function Footer() {<div class="content-wrapper"><div class="row"><div class="footer-text">- © 2024-2025 <Link href="https://github.com/eliandoran" openExternally>Elian Doran</Link>{t("footer.copyright_and_the")}<Link href="https://github.com/TriliumNext/Trilium/graphs/contributors" openExternally>{t("footer.copyright_community")}</Link>.<br />+ © 2024-{new Date().getFullYear()} <Link href="https://github.com/eliandoran" openExternally>Elian Doran</Link>{t("footer.copyright_and_the")}<Link href="https://github.com/TriliumNext/Trilium/graphs/contributors" openExternally>{t("footer.copyright_community")}</Link>.<br />© 2017-2024 <Link href="https://github.com/zadam" openExternally>zadam</Link>.</div>@@ -32,14 +34,14 @@ export default function Footer() {<nav class="languages">{LOCALES.map(locale => (locale.id !== currentLocale- ? <Link href={swapLocaleInUrl(url, locale.id)}>{locale.name}</Link>- : <span className="active">{locale.name}</span>+ ? <Link href={swapLocaleInUrl(url, locale.id)}>{locale.name}</Link>+ : <span className="active">{locale.name}</span>))}</nav></div></div></footer>- )+ );}export function SocialButtons({ className, withText }: { className?: string, withText?: boolean }) {@@ -75,7 +77,7 @@ export function SocialButtons({ className, withText }: { className?: string, witwithText={withText}/></div>- )+ );}export function SocialButton({ name, iconSvg, url, withText, counter }: { name: string, iconSvg: string, url: string, withText?: boolean, counter?: string | undefined }) {@@ -89,6 +91,6 @@ export function SocialButton({ name, iconSvg, url, withText, counter }: { name:{counter && <span class="counter">{counter}</span>}{withText && name}</Link>- )+ );}