Align older CRM pages with the Mento visual language.

Restyle list, form, settings, and secondary modules to match contacts/activities patterns with teal chrome, soft panels, and mobile layouts — without changing already-redesigned screens.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 02:29:41 +03:30
co-authored by Cursor
parent 20a9ac0d34
commit 092767b6f2
22 changed files with 3946 additions and 1717 deletions
+119 -51
View File
@@ -213,13 +213,14 @@ onMounted(load);
<template>
<section class="page">
<header>
<p class="eyebrow">تنظیمات</p>
<h1>اتصال ته‌حساب</h1>
<p class="lead">
هر نسخه/دیتابیس ته‌حساب یک اتصال جدا است (آدرس وب‌سرویس + توکن + نام DB).
اگر فقط یک اتصال دارید، همان به‌عنوان پیش‌فرض استفاده می‌شود.
</p>
<header class="page-head">
<div class="head-copy">
<h1>اتصال ته‌حساب</h1>
<p class="lead">
هر نسخه/دیتابیس ته‌حساب یک اتصال جدا است (آدرس وب‌سرویس + توکن + نام DB).
اگر فقط یک اتصال دارید، همان به‌عنوان پیش‌فرض استفاده می‌شود.
</p>
</div>
</header>
<p v-if="loading" class="muted">در حال بارگذاری…</p>
@@ -300,7 +301,7 @@ onMounted(load);
پذیرش گواهی SSL خودامضا (فقط شبکه داخلی)
</label>
<div class="form-actions">
<button class="btn" type="submit" :disabled="saving">
<button class="btn primary" type="submit" :disabled="saving">
{{ saving ? 'در حال ذخیره…' : editingId ? 'به‌روزرسانی' : 'افزودن' }}
</button>
<button v-if="editingId" type="button" class="btn ghost" @click="resetForm">انصراف</button>
@@ -354,124 +355,185 @@ onMounted(load);
display: grid;
gap: 1rem;
max-width: 720px;
min-width: 0;
overflow-x: clip;
}
.eyebrow {
margin: 0;
color: var(--accent);
font-weight: 700;
.page-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
}
.head-copy {
min-width: 0;
}
h1 {
margin: 0.2rem 0;
margin: 0 0 0.3rem;
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
font-weight: 800;
}
h2 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #0f172a;
}
.lead,
.muted {
color: var(--muted);
margin: 0;
color: #64748b;
}
.list {
display: grid;
gap: 0.75rem;
}
.card {
display: grid;
gap: 0.75rem;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
padding: 1.1rem;
}
.row {
grid-template-columns: 1fr auto;
align-items: start;
gap: 0.75rem;
}
.row-main {
display: grid;
gap: 0.25rem;
min-width: 0;
}
.meta {
font-size: 0.85rem;
color: var(--muted);
color: #64748b;
}
.health.ok {
color: #15803d;
font-size: 0.85rem;
}
.health.bad {
color: #b91c1c;
font-size: 0.85rem;
}
.row-actions {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.field {
display: grid;
gap: 0.35rem;
}
label {
color: var(--muted);
color: #64748b;
font-size: 0.9rem;
}
input[type='text'],
input:not([type]),
input[type='password'],
input[type='url'] {
border: 1px solid var(--line);
border-radius: 10px;
input[type='url'],
input[type='number'] {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 0.55rem 0.7rem;
background: var(--bg);
color: var(--text);
background: #fff;
color: #0f172a;
font: inherit;
width: 100%;
}
select {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 0.55rem 0.7rem;
background: #fff;
color: #0f172a;
font: inherit;
width: 100%;
}
.check {
display: flex;
align-items: center;
gap: 0.45rem;
color: var(--text);
color: #0f172a;
}
.form-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.btn {
border: 0;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0.55rem 0.9rem;
background: var(--accent);
color: #fff;
font-weight: 600;
border-radius: 12px;
font-weight: 700;
border: 1px solid transparent;
cursor: pointer;
font: inherit;
}
.btn.primary {
background: #14b8a6;
color: #fff;
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.24);
}
.btn.ghost {
background: transparent;
color: var(--text);
border: 1px solid var(--line);
background: #fff;
color: #0f766e;
border-color: #99f6e4;
box-shadow: none;
}
.btn.danger {
background: transparent;
background: #fff;
color: #b91c1c;
border: 1px solid #fecaca;
border-color: #fecaca;
box-shadow: none;
}
.error {
margin: 0;
color: #b91c1c;
}
.ok {
color: #15803d;
}
@media (max-width: 640px) {
.row {
grid-template-columns: 1fr;
}
margin: 0;
color: #0f766e;
font-weight: 600;
}
.sync-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
}
.sync-results {
list-style: none;
margin: 0;
@@ -479,24 +541,30 @@ input[type='url'] {
display: grid;
gap: 0.5rem;
}
.sync-results li {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0;
border-bottom: 1px solid var(--line);
border-bottom: 1px solid #e2e8f0;
}
select {
border: 1px solid var(--line);
border-radius: 10px;
padding: 0.55rem 0.7rem;
background: var(--bg);
color: var(--text);
}
@media (max-width: 640px) {
@media (max-width: 700px) {
.row {
grid-template-columns: 1fr;
}
.sync-grid {
grid-template-columns: 1fr;
}
.row-actions,
.form-actions,
.sync-results li {
flex-direction: column;
align-items: stretch;
}
}
</style>