mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
feat: move o changelog para uma rota dedicada
This commit is contained in:
@@ -19,85 +19,6 @@ const nextConfig: NextConfig = {
|
|||||||
devIndicators: {
|
devIndicators: {
|
||||||
position: "bottom-right",
|
position: "bottom-right",
|
||||||
},
|
},
|
||||||
async redirects() {
|
|
||||||
return [
|
|
||||||
{ source: "/ajustes", destination: "/settings", permanent: true },
|
|
||||||
{ source: "/anotacoes", destination: "/notes", permanent: true },
|
|
||||||
{ source: "/calendario", destination: "/calendar", permanent: true },
|
|
||||||
{ source: "/cartoes", destination: "/cards", permanent: true },
|
|
||||||
{
|
|
||||||
source: "/accounts/:accountId/extrato",
|
|
||||||
destination: "/accounts/:accountId/statement",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/cartoes/:cartaoId/fatura",
|
|
||||||
destination: "/cards/:cartaoId/invoice",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/cards/:cardId/fatura",
|
|
||||||
destination: "/cards/:cardId/invoice",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/categorias/historico",
|
|
||||||
destination: "/categories/history",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/categorias/:categoryId",
|
|
||||||
destination: "/categories/:categoryId",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{ source: "/categorias", destination: "/categories", permanent: true },
|
|
||||||
{ source: "/contas", destination: "/accounts", permanent: true },
|
|
||||||
{
|
|
||||||
source: "/contas/:contaId/extrato",
|
|
||||||
destination: "/accounts/:contaId/statement",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{ source: "/lancamentos", destination: "/transactions", permanent: true },
|
|
||||||
{ source: "/orcamentos", destination: "/budgets", permanent: true },
|
|
||||||
{ source: "/pagadores", destination: "/payers", permanent: true },
|
|
||||||
{
|
|
||||||
source: "/pagadores/:pagadorId",
|
|
||||||
destination: "/payers/:pagadorId",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{ source: "/pre-lancamentos", destination: "/inbox", permanent: true },
|
|
||||||
{
|
|
||||||
source: "/relatorios",
|
|
||||||
destination: "/reports/category-trends",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/relatorios/analise-parcelas",
|
|
||||||
destination: "/reports/installment-analysis",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/relatorios/estabelecimentos",
|
|
||||||
destination: "/reports/establishments",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/relatorios/tendencias",
|
|
||||||
destination: "/reports/category-trends",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/relatorios/uso-cartoes",
|
|
||||||
destination: "/reports/card-usage",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/changelog",
|
|
||||||
destination: "/settings/changelog",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
},
|
|
||||||
// Headers for Safari compatibility
|
// Headers for Safari compatibility
|
||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { RiHistoryLine } from "@remixicon/react";
|
|||||||
import PageDescription from "@/shared/components/page-description";
|
import PageDescription from "@/shared/components/page-description";
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "Cartões | OpenMonetis",
|
title: "Changelog | OpenMonetis",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@@ -105,12 +105,12 @@ export function NavbarUser({ user, pagadorAvatarUrl }: NavbarUserProps) {
|
|||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
href="/settings/changelog"
|
href="/changelog"
|
||||||
className={cn(itemClass, "text-foreground")}
|
className={cn(itemClass, "text-foreground")}
|
||||||
>
|
>
|
||||||
<RiHistoryLine className="size-4 text-muted-foreground shrink-0" />
|
<RiHistoryLine className="size-4 text-muted-foreground shrink-0" />
|
||||||
<span className="flex-1">Changelog</span>
|
<span className="flex-1">Changelog</span>
|
||||||
<Badge variant="secondary">v{version}</Badge>
|
<Badge variant="outline">v{version}</Badge>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
|
|||||||
Reference in New Issue
Block a user