feat: indice solo con aplicaciones subidas (fuera accesos legacy)

This commit is contained in:
Nurfog committed 2026-09-08 17:18:00 -03:00
1 parent 347d8510b4
commit 4dda7275fd
2 files changed
+1 -44

No files matched your search

-44
View File
@@ -8,11 +8,9 @@ import {
getModuleMeta,
getStatusInfo,
moduleUrl,
REFERENCE_APPS,
sectionOf,
SECTIONS,
type ModuleState,
type RefApp,
} from "@/lib/sam";
export default function Home() {
@@ -84,42 +82,6 @@ export default function Home() {
);
};
const renderRefCard = (app: RefApp) => (
<div className="col-md-6" key={`ref-${app.name}`}>
<div className="app-card p-2">
<table className="table table-borderless mb-0 align-middle">
<tbody>
<tr>
<td className="ps-3" style={{ width: 56 }}>
<i
className={`bx ${app.icon} bx-sm bx-border text-light ${app.bg}`}
/>
</td>
<td>
<a
href={app.url}
target="_blank"
rel="noopener noreferrer"
className="text-decoration-none text-dark d-block py-2 stretched-link"
>
{app.title}
</a>
<div className="d-flex align-items-center gap-2">
<small className="text-muted" style={{ fontSize: "0.75rem" }}>
sam.norteamericano.cl
</small>
</div>
</td>
<td className="text-end pe-3" style={{ width: 40 }}>
<i className="bx bx-chevron-right text-muted" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
);
return (
<>
<div className="sidenav">
@@ -218,12 +180,6 @@ export default function Home() {
{list.map(renderModuleCard)}
{section.id === "sam" &&
REFERENCE_APPS.filter(
(a) =>
!list.some((m) => m.name.toLowerCase() === a.name)
).map(renderRefCard)}
{isReview && backend && (
<>
<div className="col-md-6">
+1
View File
@@ -183,6 +183,7 @@ export const REFERENCE_APPS: RefApp[] = [
url: "https://sam.norteamericano.cl/profesor/",
},
];
// (Reservado: accesos legacy, hoy sin uso en el índice.)
const iconMap: Record<string, { icon: string; bg: string }> = {
sam: { icon: "bx-layer", bg: "bg-primary" },
ventas: { icon: "bx-money", bg: "bg-success" },