Initial Global Release v1.0 (Localization & Security Hardening)

This commit is contained in:
leeyj
2026-04-16 01:12:43 +09:00
commit 175a30325b
67 changed files with 6348 additions and 0 deletions
+98
View File
@@ -0,0 +1,98 @@
/* Composer & Editor */
.composer-wrapper { width: 100%; margin-bottom: 3rem; }
#composer input[type="text"] {
width: 100%;
background: transparent;
border: none;
outline: none;
color: white;
font-family: var(--font);
font-size: 1.1rem;
font-weight: 800;
height: 35px;
}
.meta-field {
background: rgba(0,0,0,0.3) !important;
border: 1px solid rgba(255,255,255,0.1) !important;
border-radius: 8px;
padding: 5px 10px !important;
font-size: 0.8rem !important;
color: var(--muted) !important;
}
.editor-resize-wrapper {
resize: vertical;
overflow: hidden;
min-height: 200px;
height: 350px;
border-radius: 8px;
margin-bottom: 10px;
}
.toastui-editor-defaultUI {
height: 100% !important;
border: 1px solid rgba(255,255,255,0.1) !important;
border-radius: 8px;
}
#editorAttachments {
width: 100%;
margin-bottom: 5px;
}
/* --- 키보드 단축키 힌트 바 --- */
.shortcut-hint-bar {
margin-top: 10px;
border-radius: 8px;
overflow: hidden;
}
.shortcut-toggle-btn {
background: rgba(56, 189, 248, 0.08);
border: 1px solid rgba(56, 189, 248, 0.15);
color: var(--muted);
font-size: 0.75rem;
padding: 5px 12px;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
font-family: var(--font);
}
.shortcut-toggle-btn:hover {
background: rgba(56, 189, 248, 0.15);
color: var(--accent);
}
.shortcut-details {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 10px 4px;
animation: fadeSlideIn 0.2s ease;
}
.shortcut-details .sk {
font-size: 0.72rem;
color: var(--muted);
white-space: nowrap;
}
.shortcut-details kbd {
display: inline-block;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
padding: 1px 5px;
font-size: 0.68rem;
font-family: 'Inter', monospace;
color: var(--accent);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
margin: 0 1px;
}
@keyframes fadeSlideIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
+108
View File
@@ -0,0 +1,108 @@
/* 🌡️ Heatmap Component */
.heatmap-wrapper {
padding: 12px;
margin-top: 10px;
}
.heatmap-header {
margin-bottom: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.heatmap-title {
font-size: 0.75rem;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.heatmap-select {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--muted);
font-size: 0.65rem;
padding: 2px 4px;
border-radius: 4px;
cursor: pointer;
outline: none;
transition: all 0.2s;
}
.heatmap-select:hover {
background: rgba(255, 255, 255, 0.1);
border-color: var(--accent);
color: var(--text);
}
.heatmap-select option {
background: var(--bg);
color: var(--text);
}
.heatmap-grid {
display: grid;
grid-template-rows: repeat(7, 10px);
grid-auto-flow: column;
grid-auto-columns: 10px;
gap: 3px;
overflow-x: auto;
padding-bottom: 5px;
}
/* Hide scrollbar for cleaner look */
.heatmap-grid::-webkit-scrollbar {
height: 3px;
}
.heatmap-grid::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.heatmap-cell {
width: 10px;
height: 10px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.05);
transition: transform 0.2s, filter 0.2s;
}
.heatmap-cell:hover {
transform: scale(1.3);
z-index: 10;
filter: brightness(1.2);
cursor: pointer;
}
.heatmap-cell.out {
opacity: 0;
pointer-events: none;
}
/* Level Colors (Cyan to Purple Gradient) */
.heatmap-cell.lvl-0 { background: rgba(255, 255, 255, 0.05); }
.heatmap-cell.lvl-1 { background: rgba(56, 189, 248, 0.3); }
.heatmap-cell.lvl-2 { background: rgba(56, 189, 248, 0.6); }
.heatmap-cell.lvl-3 { background: rgba(56, 189, 248, 0.9); }
.heatmap-cell.lvl-4 {
background: var(--ai-accent);
box-shadow: 0 0 5px var(--ai-accent);
}
.heatmap-legend {
display: flex;
align-items: center;
gap: 4px;
margin-top: 8px;
font-size: 0.65rem;
color: var(--muted);
justify-content: flex-end;
}
.heatmap-legend .heatmap-cell {
width: 8px;
height: 8px;
}
+104
View File
@@ -0,0 +1,104 @@
/* Masonry Grid Layout */
.masonry-grid { width: 100%; columns: auto 300px; column-gap: 1.5rem; }
/* Memo Card Styling */
.memo-card {
break-inside: avoid; margin-bottom: 1.5rem; background: rgba(30, 41, 59, 0.6);
border-radius: 12px; padding: 1.2rem 1.2rem 45px 1.2rem; border: 1px solid rgba(255,255,255,0.05);
position: relative; transition: transform 0.2s, background 0.2s;
max-height: 320px; overflow: hidden;
}
.memo-card:hover { transform: translateY(-4px); background: rgba(30, 41, 59, 1); }
.memo-card.compact { max-height: 80px; background: rgba(30, 41, 59, 0.3); border: 1px dashed rgba(255,255,255,0.1); }
.memo-card.compact .memo-content,
.memo-card.compact .memo-ai-summary,
.memo-card.compact .memo-backlinks { display: none; }
.memo-card.compact .memo-title { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0px; margin-right: 50px; }
.memo-card.compact::after { display: none; }
.memo-card.encrypted {
border: 1px solid var(--encrypted-border) !important;
box-shadow: 0 0 15px rgba(0, 243, 255, 0.15), inset 0 0 5px rgba(0, 243, 255, 0.05);
}
/* Fade-out for long content */
.memo-card::after {
content: '';
position: absolute;
bottom: 0; left: 0; width: 100%; height: 60px;
background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
pointer-events: none;
border-radius: 0 0 12px 12px;
}
/* Memo Content Elements */
.memo-title { font-weight: 600; font-size: 1.0rem; margin-bottom: 0.5rem; }
.memo-content { font-size: 0.9rem; color: #cbd5e1; line-height: 1.6; }
.memo-content img { max-width: 100%; border-radius: 8px; margin-top: 5px; }
.memo-summary, .memo-ai-summary {
font-size: 0.8rem;
font-style: italic;
color: var(--ai-accent);
border-left: 2px solid var(--ai-accent);
padding-left: 10px;
margin-bottom: 15px;
line-height: 1.5;
opacity: 0.9;
}
.memo-summary strong {
color: var(--ai-accent);
font-weight: 800;
text-transform: uppercase;
margin-right: 5px;
}
/* Meta & Badges */
.memo-meta { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag-badge { padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }
.tag-user { background: rgba(56, 189, 248, 0.2); color: var(--accent); }
.tag-ai { background: rgba(139, 92, 246, 0.2); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.group-badge { background: rgba(255,255,255,0.05); color: #cbd5e1; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }
/* Links & Actions */
.memo-backlinks { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: var(--muted); }
.link-item { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 600; }
.link-item:hover { text-decoration: underline; }
.memo-actions { position: absolute; bottom: 10px; right: 10px; opacity: 0; transition: opacity 0.2s; display: flex; gap: 5px; }
.memo-card:hover .memo-actions { opacity: 1; }
/* Attachments */
.memo-attachments {
margin-top: 15px;
padding-top: 10px;
border-top: 1px solid rgba(255,255,255,0.05);
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.file-chip {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 6px;
padding: 6px 12px;
font-size: 0.8rem;
color: #cbd5e1;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
}
.file-chip:hover {
background: rgba(255,255,255,0.1);
border-color: var(--accent);
color: white;
transform: translateY(-1px);
}
+94
View File
@@ -0,0 +1,94 @@
/* Modals & Special Overlay Components */
/* Asset Manager / Library */
.asset-card {
transition: transform 0.2s, background 0.2s;
border: 1px solid transparent;
}
.asset-card:hover {
transform: scale(1.02);
background: rgba(255,255,255,0.1) !important;
border-color: var(--accent);
}
/* Settings Modal Specifics */
.settings-grid {
display: grid;
grid-template-columns: 1fr auto;
gap: 15px;
align-items: center;
padding: 10px 0;
}
.settings-grid label { font-size: 0.95rem; font-weight: 600; color: #cbd5e1; }
.settings-grid input[type="color"] {
width: 50px; height: 32px; padding: 0;
border: 2px solid rgba(255,255,255,0.1); border-radius: 6px;
background: transparent; cursor: pointer; outline: none;
}
.settings-actions {
display: flex; justify-content: flex-end; gap: 10px;
margin-top: 25px; padding-top: 15px;
border-top: 1px solid rgba(255,255,255,0.05);
}
/* Universal Modal Close Button */
.close-modal-btn {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
color: var(--muted);
font-size: 1.8rem;
line-height: 1;
cursor: pointer;
transition: all 0.2s;
z-index: 10;
padding: 5px;
}
.close-modal-btn:hover {
color: var(--accent);
transform: scale(1.1);
}
/* Explorer Chip Counts */
.chip-count {
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
color: var(--muted);
font-size: 0.7rem;
font-weight: 800;
padding: 2px 6px;
border-radius: 10px;
margin-left: 6px;
min-width: 18px;
transition: all 0.2s;
}
.explorer-chip:hover .chip-count {
background: var(--accent);
color: #0f172a;
}
/* AI Disabled State */
body.ai-disabled .ai-btn,
body.ai-disabled .ai-summary-box,
body.ai-disabled .memo-summary,
body.ai-disabled .tag-ai,
body.ai-disabled .ai-insight-icon,
body.ai-disabled .ai-badge,
body.ai-disabled .ai-loading-overlay {
display: none !important;
}
body.ai-disabled [data-source="ai"],
body.ai-disabled .drawer-section:has(h3:contains("태그별 탐색")) {
/* Note: :contains and :has are tricky, but we can target by class or JS filtering */
}
+81
View File
@@ -0,0 +1,81 @@
/* 슬래시 명령(/) 팝업 스타일 */
.slash-popup {
position: fixed;
z-index: 10000;
min-width: 180px;
max-width: 240px;
max-height: 280px;
overflow-y: auto;
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(12px);
border: 1px solid rgba(56, 189, 248, 0.2);
border-radius: 10px;
padding: 6px;
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
animation: slashPopupIn 0.15s ease-out;
}
/* 스크롤바 커스텀 */
.slash-popup::-webkit-scrollbar { width: 4px; }
.slash-popup::-webkit-scrollbar-track { background: transparent; }
.slash-popup::-webkit-scrollbar-thumb {
background: rgba(56, 189, 248, 0.3);
border-radius: 2px;
}
.slash-item {
display: flex;
align-items: center;
gap: 10px;
padding: 4px 10px;
border-radius: 7px;
cursor: pointer;
transition: background 0.12s ease, transform 0.1s ease;
user-select: none;
}
.slash-item:hover,
.slash-item.selected {
background: rgba(56, 189, 248, 0.12);
}
.slash-item.selected {
background: rgba(56, 189, 248, 0.18);
box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25) inset;
}
.slash-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
font-size: 0.8rem;
color: var(--accent, #38bdf8);
flex-shrink: 0;
font-weight: 700;
}
.slash-label {
font-size: 0.82rem;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
font-family: var(--font, 'Inter', sans-serif);
}
@keyframes slashPopupIn {
from {
opacity: 0;
transform: translateY(-6px) scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
+184
View File
@@ -0,0 +1,184 @@
/* --- Visualization & Navigation (v3.0+) --- */
/* Sidebar Sections for Viz */
.sidebar-section {
margin-top: 10px;
padding: 0 5px;
}
.calendar-content {
max-height: 1000px;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
opacity: 1;
}
.calendar-content.collapsed {
max-height: 0 !important;
opacity: 0;
pointer-events: none;
}
/* Calendar Widget */
.calendar-widget {
background: rgba(15, 23, 42, 0.4);
border-radius: 12px;
padding: 10px;
margin: 5px 0 15px 0;
border: 1px solid rgba(255, 255, 255, 0.05);
font-size: 0.8rem;
}
.calendar-nav {
display: flex;
justify-content: space-between; align-items: center;
margin-bottom: 10px; padding: 0 5px;
}
.calendar-nav span { font-weight: 600; color: var(--accent); }
.calendar-nav button {
background: none; border: none; color: var(--muted); cursor: pointer;
font-size: 1rem; padding: 2px 5px; border-radius: 4px;
}
.calendar-nav button:hover { color: white; background: rgba(255, 255, 255, 0.1); }
.calendar-grid {
display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center;
}
.calendar-day-label { color: var(--muted); font-weight: 800; font-size: 0.7rem; margin-bottom: 5px; }
.calendar-day {
position: relative; padding: 6px 0; border-radius: 6px; cursor: pointer;
transition: background 0.2s; color: var(--text-dim);
}
.calendar-day:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.calendar-day.today { color: var(--accent) !important; font-weight: 800; background: rgba(56, 189, 248, 0.15); }
.calendar-day.selected { background: var(--accent) !important; color: white !important; box-shadow: 0 0 10px var(--accent); }
.calendar-day.other-month { opacity: 0.2; }
/* Activity Dots */
.activity-dot {
position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
width: 4px; height: 4px; background: var(--ai-accent); border-radius: 50%;
box-shadow: 0 0 5px var(--ai-accent);
}
/* Floating Knowledge Explorer (v3.9 Compact) */
.drawer {
position: fixed;
top: 100px;
left: calc(var(--sidebar-width) + 30px);
width: 320px; /* 크기 축소 */
max-height: 500px; /* 높이 제한 */
z-index: 1100;
transform: scale(0.9) translateY(20px);
opacity: 0;
visibility: hidden;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s;
display: flex;
flex-direction: column;
padding: 0;
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
border-radius: 16px; /* 더 날렵하게 */
background: rgba(15, 23, 42, 0.97) !important;
backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.15);
overflow: hidden;
}
.drawer.active {
transform: scale(1) translateY(0);
opacity: 1;
visibility: visible;
}
/* 드래그 중인 상태 */
.drawer.dragging {
transition: none; /* 드래그 중에는 애니메이션 끔 */
opacity: 0.8;
cursor: grabbing;
}
.drawer-header {
padding: 12px 18px; /* 여백 축소 */
border-bottom: 1px solid rgba(255,255,255,0.08);
display: flex;
justify-content: space-between;
align-items: center;
cursor: grab;
background: rgba(255,255,255,0.03);
}
.drawer-header h3 {
font-size: 0.9rem; /* 0.95 -> 0.9 */
font-weight: 800;
color: var(--accent);
margin: 0;
}
.drawer-body {
flex: 1;
overflow-y: auto;
padding: 15px 18px; /* 여백 축소 */
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.drawer .close-btn {
background: rgba(255,255,255,0.05);
border: none;
color: var(--muted);
font-size: 1rem;
width: 26px; /* 크기 축소 */
height: 26px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.drawer .close-btn:hover {
background: rgba(255,255,255,0.1);
color: white;
}
/* Colored Explorer Chips (Enhanced) */
.explorer-section {
margin-bottom: 25px; /* 여백 축소 */
}
.explorer-section h3 {
font-size: 0.65rem; /* 폰트 축소 */
text-transform: uppercase;
letter-spacing: 0.08rem;
color: var(--muted);
margin-bottom: 10px;
opacity: 0.6;
}
.explorer-grid {
display: flex;
flex-wrap: wrap;
gap: 8px; /* 간격 축소 */
}
.explorer-chip {
padding: 5px 12px; /* 여백 축소 */
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
cursor: pointer;
font-size: 0.75rem; /* 0.8 -> 0.75 */
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
color: var(--text-dim);
user-select: none;
}
.explorer-chip:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.explorer-chip.tag-user { border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }
.explorer-chip.tag-user:hover, .explorer-chip.tag-user.active { background: rgba(56, 189, 248, 0.15); border-color: var(--accent); color: white; }
.explorer-chip.tag-ai { border-color: rgba(168, 85, 247, 0.3); color: #e9d5ff; }
.explorer-chip.tag-ai:hover, .explorer-chip.tag-ai.active { background: rgba(168, 85, 247, 0.15); border-color: #a855f7; color: white; }