last ...
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,509 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
|
||||
|
||||
:root {
|
||||
--primary: #1a365d;
|
||||
--primary-light: #2c5282;
|
||||
--primary-dark: #0f2341;
|
||||
--accent: #c9a961;
|
||||
--accent-dark: #a8893f;
|
||||
--accent-light: #e0c789;
|
||||
--bg: #f5f7fa;
|
||||
--board-bg: #e2e8f0;
|
||||
--card-bg: #ffffff;
|
||||
--column-bg: #edf2f7;
|
||||
--panel-bg: #ffffff;
|
||||
--text: #1a202c;
|
||||
--text-muted: #4a5568;
|
||||
--text-light: #718096;
|
||||
--border: #cbd5e0;
|
||||
--border-light: #e2e8f0;
|
||||
--success: #38a169;
|
||||
--danger: #e53e3e;
|
||||
--warning: #dd6b20;
|
||||
--info: #3182ce;
|
||||
--shadow: 0 4px 6px rgba(0,0,0,0.08), 0 10px 20px rgba(26,54,93,0.1);
|
||||
--shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
|
||||
--shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
|
||||
--radius: 10px;
|
||||
--radius-sm: 6px;
|
||||
--sidebar-width: 300px;
|
||||
--header-height: 64px;
|
||||
--tabs-height: 52px;
|
||||
--footer-height: 36px;
|
||||
--code-bg: #1e293b;
|
||||
--code-text: #e2e8f0;
|
||||
}
|
||||
[data-theme="dark"] {
|
||||
--primary: #2c5282;
|
||||
--primary-light: #3b6fb5;
|
||||
--primary-dark: #1a365d;
|
||||
--accent: #e0c789;
|
||||
--accent-dark: #c9a961;
|
||||
--accent-light: #f0d9a0;
|
||||
--bg: #1a202c;
|
||||
--board-bg: #2d3748;
|
||||
--card-bg: #2d3748;
|
||||
--column-bg: #374151;
|
||||
--panel-bg: #1f2937;
|
||||
--text: #e2e8f0;
|
||||
--text-muted: #cbd5e0;
|
||||
--text-light: #a0aec0;
|
||||
--border: #4a5568;
|
||||
--border-light: #374151;
|
||||
--code-bg: #0f172a;
|
||||
--code-text: #cbd5e0;
|
||||
--shadow: 0 4px 6px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.4);
|
||||
--shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
|
||||
--shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: 'Vazirmatn', Tahoma, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: background 0.3s, color 0.3s;
|
||||
}
|
||||
/* Header */
|
||||
.app-header {
|
||||
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
|
||||
color: white;
|
||||
padding: 0 20px;
|
||||
height: var(--header-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 3px solid var(--accent);
|
||||
box-shadow: var(--shadow);
|
||||
z-index: 100;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.app-header::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
left: -10%;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
.app-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
|
||||
.app-logo {
|
||||
width: 44px; height: 44px;
|
||||
background: var(--accent);
|
||||
border-radius: 10px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 22px; font-weight: 800;
|
||||
color: var(--primary-dark);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
|
||||
}
|
||||
.app-title { font-size: 16px; font-weight: 800; color: white; }
|
||||
.app-subtitle { font-size: 11px; opacity: 0.85; color: rgba(255,255,255,0.9); }
|
||||
/* Toolbar */
|
||||
.tabs-bar {
|
||||
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
|
||||
border-bottom: 2px solid var(--accent);
|
||||
display: flex; align-items: center;
|
||||
padding: 0 12px;
|
||||
min-height: var(--tabs-height);
|
||||
box-shadow: var(--shadow-sm);
|
||||
flex-shrink: 0;
|
||||
gap: 8px;
|
||||
}
|
||||
.btn {
|
||||
background: linear-gradient(135deg, var(--primary-light), var(--primary));
|
||||
color: white; border: none;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: 13px; font-weight: 600;
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
|
||||
.btn-accent {
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-dark));
|
||||
color: var(--primary-dark);
|
||||
font-weight: 700;
|
||||
}
|
||||
.btn-ghost {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: 1px solid rgba(255,255,255,0.25);
|
||||
color: white;
|
||||
}
|
||||
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
|
||||
.tab-control-btn {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: 1px solid rgba(255,255,255,0.15);
|
||||
color: white;
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.tab-control-btn:hover {
|
||||
background: var(--accent); color: var(--primary-dark);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
/* Main */
|
||||
.app-main { flex: 1; display: flex; overflow: hidden; flex-direction: row; }
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
order: -1;
|
||||
width: var(--sidebar-width);
|
||||
background: var(--panel-bg);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column;
|
||||
transition: width 0.3s ease;
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
z-index: 50;
|
||||
}
|
||||
.sidebar.collapsed { width: 0; }
|
||||
.sidebar-header {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||
color: white;
|
||||
padding: 12px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
border-bottom: 2px solid var(--accent);
|
||||
min-height: 48px;
|
||||
}
|
||||
.sidebar-title { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
|
||||
.sidebar-body { flex: 1; overflow-y: auto; padding: 8px; }
|
||||
.sidebar-group {
|
||||
margin-bottom: 8px;
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-sm);
|
||||
overflow: hidden;
|
||||
background: var(--card-bg);
|
||||
}
|
||||
.sidebar-group-header {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||
color: white;
|
||||
padding: 10px 12px;
|
||||
cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
font-size: 13px; font-weight: 700;
|
||||
user-select: none;
|
||||
}
|
||||
.sidebar-group-header:hover { filter: brightness(1.1); }
|
||||
.sidebar-group-header .group-icon { display: flex; align-items: center; gap: 8px; flex: 1; }
|
||||
.sidebar-group-header .group-arrow { transition: transform 0.3s; font-size: 12px; }
|
||||
.sidebar-group.collapsed .group-arrow { transform: rotate(90deg); }
|
||||
.sidebar-group.collapsed .sidebar-group-body { display: none; }
|
||||
.sidebar-group-body { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
|
||||
.sidebar-btn {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-light);
|
||||
color: var(--text);
|
||||
padding: 8px 10px;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: 12px; font-weight: 500;
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
transition: all 0.2s;
|
||||
text-align: right; width: 100%;
|
||||
}
|
||||
.sidebar-btn:hover {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||
color: white;
|
||||
border-color: var(--primary);
|
||||
}
|
||||
.sidebar-btn .btn-icon-emoji { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
|
||||
.sidebar-btn .btn-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.sidebar-btn .count-badge {
|
||||
font-size: 10px; font-weight: 700; padding: 1px 6px;
|
||||
background: var(--accent); color: var(--primary-dark);
|
||||
border-radius: 10px; flex-shrink: 0;
|
||||
}
|
||||
/* Board */
|
||||
.board-area {
|
||||
flex: 1; overflow: auto;
|
||||
background: var(--board-bg);
|
||||
display: flex; flex-direction: column;
|
||||
}
|
||||
.board-empty {
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
height: 100%; color: var(--text-muted);
|
||||
text-align: center; padding: 40px;
|
||||
}
|
||||
.board-empty-icon { font-size: 100px; opacity: 0.3; margin-bottom: 20px; }
|
||||
.board-empty h2 { font-size: 22px; color: var(--primary); margin-bottom: 10px; }
|
||||
[data-theme="dark"] .board-empty h2 { color: var(--accent); }
|
||||
.board-empty p { margin-bottom: 20px; max-width: 500px; line-height: 1.8; }
|
||||
/* Controller Tabs */
|
||||
.controller-tabs {
|
||||
background: var(--panel-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex; overflow-x: auto;
|
||||
flex-shrink: 0;
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: 0 8px;
|
||||
gap: 4px;
|
||||
}
|
||||
.controller-tab {
|
||||
padding: 10px 16px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 3px solid transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: 13px; font-weight: 600;
|
||||
white-space: nowrap;
|
||||
transition: all 0.2s;
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.controller-tab:hover { color: var(--primary); background: var(--border-light); }
|
||||
.controller-tab.active {
|
||||
color: var(--primary);
|
||||
border-bottom-color: var(--accent);
|
||||
background: var(--border-light);
|
||||
}
|
||||
[data-theme="dark"] .controller-tab.active { color: var(--accent); }
|
||||
.controller-tab .tab-count {
|
||||
font-size: 10px; padding: 1px 6px;
|
||||
background: var(--border); color: var(--text-muted);
|
||||
border-radius: 10px;
|
||||
}
|
||||
.controller-tab.active .tab-count {
|
||||
background: var(--accent); color: var(--primary-dark);
|
||||
}
|
||||
/* Controller View */
|
||||
.controller-view {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
gap: 0;
|
||||
}
|
||||
.models-panel {
|
||||
width: 300px;
|
||||
background: var(--panel-bg);
|
||||
border-left: 1px solid var(--border);
|
||||
display: flex; flex-direction: column;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.panel-header {
|
||||
background: var(--border-light);
|
||||
padding: 12px 16px;
|
||||
font-size: 12px; font-weight: 700;
|
||||
color: var(--primary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
[data-theme="dark"] .panel-header { color: var(--accent-light); }
|
||||
.models-list { flex: 1; overflow-y: auto; padding: 8px; }
|
||||
.model-item {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 12px;
|
||||
margin-bottom: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
.model-item:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--border-light);
|
||||
}
|
||||
.model-item.active {
|
||||
border-color: var(--accent);
|
||||
background: linear-gradient(135deg, rgba(201,169,97,0.1), rgba(201,169,97,0.05));
|
||||
box-shadow: 0 0 0 2px rgba(201,169,97,0.3);
|
||||
}
|
||||
.model-name {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 12px; font-weight: 600;
|
||||
color: var(--text);
|
||||
overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.model-badge {
|
||||
font-size: 9px; padding: 1px 6px;
|
||||
border-radius: 10px;
|
||||
background: var(--info); color: white;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
/* Code Preview */
|
||||
.code-panel {
|
||||
flex: 1;
|
||||
display: flex; flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
.code-header {
|
||||
background: var(--primary-dark);
|
||||
color: white;
|
||||
padding: 10px 16px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
flex-shrink: 0;
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
.code-filename {
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
color: var(--accent);
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
.code-actions { display: flex; gap: 6px; }
|
||||
.code-action-btn {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: 1px solid rgba(255,255,255,0.2);
|
||||
color: white;
|
||||
padding: 6px 12px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
transition: all 0.2s;
|
||||
display: flex; align-items: center; gap: 4px;
|
||||
}
|
||||
.code-action-btn:hover {
|
||||
background: var(--accent);
|
||||
color: var(--primary-dark);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.code-body {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
padding: 20px;
|
||||
background: var(--code-bg);
|
||||
color: var(--code-text);
|
||||
}
|
||||
.code-body pre {
|
||||
font-family: 'Courier New', Consolas, monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.7;
|
||||
margin: 0;
|
||||
white-space: pre;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
/* Welcome / Empty States */
|
||||
.no-selection {
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
height: 100%; color: var(--text-muted);
|
||||
text-align: center; padding: 40px;
|
||||
background: var(--panel-bg);
|
||||
}
|
||||
.no-selection-icon { font-size: 60px; opacity: 0.3; margin-bottom: 15px; }
|
||||
.no-selection h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }
|
||||
[data-theme="dark"] .no-selection h3 { color: var(--accent-light); }
|
||||
/* Modal */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(26,54,93,0.6);
|
||||
backdrop-filter: blur(3px);
|
||||
display: none;
|
||||
align-items: center; justify-content: center;
|
||||
z-index: 1000;
|
||||
padding: 20px;
|
||||
}
|
||||
.modal-overlay.active { display: flex; }
|
||||
.modal {
|
||||
background: var(--panel-bg);
|
||||
color: var(--text);
|
||||
border-radius: 12px;
|
||||
width: 100%; max-width: 800px;
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
display: flex; flex-direction: column;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.modal-header {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||
color: white;
|
||||
padding: 16px 20px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
border-bottom: 3px solid var(--accent);
|
||||
}
|
||||
.modal-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
|
||||
.modal-close {
|
||||
background: rgba(255,255,255,0.15); border: none;
|
||||
color: white;
|
||||
width: 30px; height: 30px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
}
|
||||
.modal-close:hover { background: var(--danger); }
|
||||
.modal-body { padding: 20px; overflow-y: auto; flex: 1; line-height: 1.9; }
|
||||
.modal-body h3 { color: var(--primary); margin: 20px 0 10px; font-size: 15px; }
|
||||
[data-theme="dark"] .modal-body h3 { color: var(--accent-light); }
|
||||
.modal-body p { margin-bottom: 12px; color: var(--text-muted); }
|
||||
.modal-body code {
|
||||
background: var(--border-light);
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
color: var(--danger);
|
||||
}
|
||||
.modal-body ul, .modal-body ol { padding-right: 24px; margin-bottom: 12px; color: var(--text-muted); }
|
||||
.modal-body li { margin-bottom: 6px; }
|
||||
.modal-footer {
|
||||
padding: 14px 20px;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex; justify-content: flex-end; gap: 8px;
|
||||
background: var(--border-light);
|
||||
}
|
||||
/* Toast */
|
||||
.toast-container {
|
||||
position: fixed;
|
||||
bottom: 20px; left: 20px;
|
||||
z-index: 2000;
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
.toast {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
padding: 12px 18px;
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow-lg);
|
||||
font-size: 13px;
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
animation: slideIn 0.3s;
|
||||
min-width: 250px;
|
||||
max-width: 400px;
|
||||
}
|
||||
.toast.success { background: var(--success); }
|
||||
.toast.error { background: var(--danger); }
|
||||
.toast.warning { background: var(--warning); }
|
||||
@keyframes slideIn {
|
||||
from { opacity: 0; transform: translateX(-30px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
/* Footer */
|
||||
.app-footer {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
||||
color: white;
|
||||
padding: 8px 20px;
|
||||
font-size: 11px;
|
||||
display: flex; justify-content: space-between; align-items: center;
|
||||
border-top: 2px solid var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.footer-brand { color: var(--accent); font-weight: 700; }
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
|
||||
@@ -0,0 +1,43 @@
|
||||
<!doctype html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Swagger DTO Generator | xApiSDKHolder Standard</title>
|
||||
<style></style>
|
||||
<link rel="stylesheet" href="css/index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="app-header">
|
||||
<div class="app-brand">
|
||||
<div class="app-logo">⚡</div>
|
||||
<div class="app-brand-text">
|
||||
<div class="app-title">Swagger DTO Generator</div>
|
||||
<div class="app-subtitle">
|
||||
تولید DTO مبتنی بر استاندارد xApiSDKHolder
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="tabs-bar">
|
||||
<button class="tab-control-btn" id="sidebarToggle" title="سایدبار">
|
||||
☰
|
||||
</button>
|
||||
<button class="tab-control-btn" id="themeToggle" title="تغییر تم">
|
||||
🌙
|
||||
</button>
|
||||
<div style="flex: 1"></div>
|
||||
<label class="btn btn-accent" for="swaggerUpload" style="cursor: pointer">
|
||||
📤 بارگذاری Swagger
|
||||
</label>
|
||||
<input
|
||||
type="file"
|
||||
id="swaggerUpload"
|
||||
accept=".json"
|
||||
style="display: none"
|
||||
/>
|
||||
<button class="btn btn-ghost" id="helpBtn">❓ راهنما</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user