- Modified loadChatHistory() to check for active project before fetching all sessions - When active project exists, use project.sessions instead of fetching from API - Added detailed console logging to debug session filtering - This prevents ALL sessions from appearing in every project's sidebar Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
82 lines
3.3 KiB
Plaintext
82 lines
3.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Obsidian Web Interface</title>
|
|
<link rel="stylesheet" href="/claude/css/style.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css">
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<!-- Login Screen -->
|
|
<div id="login-screen" class="login-screen">
|
|
<div class="login-box">
|
|
<h1>Obsidian Web Interface</h1>
|
|
<p class="subtitle">Secure access to your knowledge base</p>
|
|
<form id="login-form">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" required autofocus>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" required>
|
|
</div>
|
|
<button type="submit" class="btn-primary">Login</button>
|
|
<p id="login-error" class="error"></p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main App -->
|
|
<div id="main-app" class="main-app" style="display: none;">
|
|
<!-- Sidebar -->
|
|
<aside class="sidebar">
|
|
<div class="sidebar-header">
|
|
<h2>Obsidian</h2>
|
|
<button id="logout-btn" class="btn-logout" title="Logout">Logout</button>
|
|
</div>
|
|
|
|
<div class="search-box">
|
|
<input type="text" id="search-input" placeholder="Search notes...">
|
|
</div>
|
|
|
|
<div class="sidebar-section">
|
|
<h3>Recent</h3>
|
|
<ul id="recent-files" class="file-list"></ul>
|
|
</div>
|
|
|
|
<div class="sidebar-section">
|
|
<h3>Files</h3>
|
|
<div id="file-tree" class="file-tree"></div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- Main Content -->
|
|
<main class="main-content">
|
|
<div class="content-header">
|
|
<div class="breadcrumb" id="breadcrumb"></div>
|
|
<div class="actions">
|
|
<button id="edit-btn" class="btn-secondary">Edit</button>
|
|
<button id="save-btn" class="btn-primary" style="display: none;">Save</button>
|
|
<button id="cancel-btn" class="btn-secondary" style="display: none;">Cancel</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="content-view" class="content-view markdown-body">
|
|
<div class="placeholder">
|
|
<h2>Welcome to Obsidian Web Interface</h2>
|
|
<p>Select a file from the sidebar to view or edit your notes.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<textarea id="content-editor" class="content-editor" style="display: none;" placeholder="Start writing..."></textarea>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/claude/js/app.js"></script>
|
|
</body>
|
|
</html>
|