vrsao 2
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-08 14:02:01 +02:00
parent bdd766c68a
commit 1106509116
354 changed files with 48275 additions and 24635 deletions
+34 -23
View File
@@ -1,6 +1,6 @@
import { Head, Link, usePage } from "@inertiajs/react";
import type { ReactNode } from "react";
export { button, control, Field, Pagination } from "../management/shared";
import { Head, Link, usePage } from '@inertiajs/react';
import type { ReactNode } from 'react';
export { button, control, Field, Pagination } from '../management/shared';
export type Dossier = {
id: string;
title: string;
@@ -13,30 +13,41 @@ export type Dossier = {
version_no?: number;
};
export const labels: Record<string, string> = {
description: "Visão e proposta de valor",
location: "Território",
region: "Região",
sector: "Sector",
promotion: "Promoção",
facts: "Dados indicativos da fonte",
partners: "Investidores e parceiros",
cta: "Próxima acção",
anchors: "Projectos âncora e oportunidades",
gaps: "Lacunas da cadeia de valor",
priority: "Prioridade proposta na matriz",
clusters: "Clusters associados",
focus: "Investimentos complementares",
notice: "Estado de validação",
code: "Código",
description: 'Visão e proposta de valor',
location: 'Território',
region: 'Região',
sector: 'Sector',
promotion: 'Promoção',
facts: 'Dados indicativos da fonte',
partners: 'Investidores e parceiros',
cta: 'Próxima acção',
anchors: 'Projectos âncora e oportunidades',
gaps: 'Lacunas da cadeia de valor',
priority: 'Prioridade proposta na matriz',
clusters: 'Clusters associados',
focus: 'Investimentos complementares',
notice: 'Estado de validação',
code: 'Código',
};
export const kind = (r: Pick<Dossier, "project_id" | "cluster_id" | "corridor_id">) =>
r.corridor_id ? "Corredor" : r.cluster_id ? "Cluster" : "Projecto âncora";
export function Layout({ title, children }: { title: string; children: ReactNode }) {
export const kind = (
r: Pick<Dossier, 'project_id' | 'cluster_id' | 'corridor_id'>,
) =>
r.corridor_id ? 'Corredor' : r.cluster_id ? 'Cluster' : 'Projecto âncora';
export function Layout({
title,
children,
}: {
title: string;
children: ReactNode;
}) {
const { flash } = usePage<{ flash?: { success?: string } }>().props;
return (
<main className="mx-auto w-full min-w-0 max-w-6xl space-y-6 break-words p-4 md:p-8">
<main className="mx-auto w-full max-w-6xl min-w-0 space-y-6 p-4 break-words md:p-8">
<Head title={title} />
<nav className="flex flex-wrap gap-5 text-sm underline" aria-label="Investimento">
<nav
className="flex flex-wrap gap-5 text-sm underline"
aria-label="Investimento"
>
<Link href="/">InvestMoz</Link>
<Link href="/carteira?kind=corridor">Corredores</Link>
<Link href="/carteira?kind=cluster">Clusters</Link>