Initial Montech monorepo: Nuxt landing, Vue admin, Nest API.

Scaffold SSR site with CMS/blog/gallery/SEO admin and deploy configs for montech.ir.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-30 18:42:28 +03:30
co-authored by Cursor
commit 7e8e1b1f1b
96 changed files with 19336 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
<template>
<div class="shell">
<aside class="side">
<div class="brand">Montech <span>/adm</span></div>
<nav>
<RouterLink to="/">داشبورد</RouterLink>
<RouterLink to="/settings">تنظیمات سایت</RouterLink>
<RouterLink to="/sections">محتوای لندینگ</RouterLink>
<RouterLink to="/blog">بلاگ</RouterLink>
<RouterLink to="/gallery">گالری</RouterLink>
<RouterLink to="/seo">سئو صفحات</RouterLink>
<RouterLink to="/media">رسانه</RouterLink>
</nav>
<button class="btn ghost" @click="onLogout">خروج</button>
</aside>
<main class="main">
<RouterView />
</main>
</div>
</template>
<script setup lang="ts">
import { onMounted } from "vue";
import { useRouter } from "vue-router";
import { useAuthStore } from "../stores/auth";
const auth = useAuthStore();
const router = useRouter();
onMounted(() => {
auth.fetchMe().catch(() => auth.logout());
});
function onLogout() {
auth.logout();
router.push({ name: "login" });
}
</script>
<style scoped>
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
border-left: 1px solid var(--border);
background: #12151b;
padding: 1.25rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.brand span { color: var(--accent); }
nav { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
nav a {
padding: 0.55rem 0.7rem;
border-radius: 8px;
color: var(--muted);
}
nav a.router-link-active {
background: #1d2430;
color: var(--text);
}
.main { padding: 1.5rem; }
@media (max-width: 860px) {
.shell { grid-template-columns: 1fr; }
.side { border-left: 0; border-bottom: 1px solid var(--border); }
}
</style>