mdv-live 0.1.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mdv-live might be problematic. Click here for more details.
- mdv/__init__.py +6 -0
- mdv/__main__.py +9 -0
- mdv/cli.py +339 -0
- mdv/file_types.py +130 -0
- mdv/models.py +22 -0
- mdv/server.py +842 -0
- mdv/static/app.js +1465 -0
- mdv/static/index.html +109 -0
- mdv/static/styles.css +776 -0
- mdv_live-0.1.15.dist-info/METADATA +118 -0
- mdv_live-0.1.15.dist-info/RECORD +14 -0
- mdv_live-0.1.15.dist-info/WHEEL +5 -0
- mdv_live-0.1.15.dist-info/entry_points.txt +2 -0
- mdv_live-0.1.15.dist-info/top_level.txt +1 -0
mdv/static/index.html
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="ja">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MDV - Markdown Viewer</title>
|
|
7
|
+
<link id="hljs-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css">
|
|
8
|
+
<link rel="stylesheet" href="/static/styles.css">
|
|
9
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
|
10
|
+
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
|
11
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<div class="container">
|
|
15
|
+
<aside class="sidebar" id="sidebar">
|
|
16
|
+
<div class="sidebar-header">
|
|
17
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
18
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
|
|
19
|
+
</svg>
|
|
20
|
+
<span>Files</span>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="file-tree" id="fileTree"></div>
|
|
23
|
+
</aside>
|
|
24
|
+
|
|
25
|
+
<div class="resize-handle" id="resizeHandle"></div>
|
|
26
|
+
|
|
27
|
+
<main class="main">
|
|
28
|
+
<div class="toolbar">
|
|
29
|
+
<button class="toolbar-btn" id="sidebarToggle" title="Toggle sidebar (Cmd+B)">
|
|
30
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
31
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
|
32
|
+
</svg>
|
|
33
|
+
</button>
|
|
34
|
+
<button class="toolbar-btn" id="themeToggle" title="Toggle theme">
|
|
35
|
+
<svg id="sunIcon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
36
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
|
|
37
|
+
</svg>
|
|
38
|
+
<svg id="moonIcon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="display: none;">
|
|
39
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
|
|
40
|
+
</svg>
|
|
41
|
+
</button>
|
|
42
|
+
<button class="toolbar-btn" id="editToggle" title="Toggle edit mode (Cmd+E)">
|
|
43
|
+
<svg id="editIcon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
44
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />
|
|
45
|
+
</svg>
|
|
46
|
+
<span id="editLabel">Edit</span>
|
|
47
|
+
</button>
|
|
48
|
+
<button class="toolbar-btn" id="printBtn" title="Print / Save PDF (Cmd+P)">
|
|
49
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
50
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z" />
|
|
51
|
+
</svg>
|
|
52
|
+
PDF
|
|
53
|
+
</button>
|
|
54
|
+
<div class="toolbar-spacer"></div>
|
|
55
|
+
<span class="editor-status" id="editorStatus" style="display: none;">Ready</span>
|
|
56
|
+
<div class="status">
|
|
57
|
+
<span class="status-dot" id="statusDot"></span>
|
|
58
|
+
<span id="statusText">Connected</span>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div class="tab-bar" id="tabBar"></div>
|
|
63
|
+
|
|
64
|
+
<div class="content" id="content">
|
|
65
|
+
<div class="welcome">
|
|
66
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
67
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
68
|
+
</svg>
|
|
69
|
+
<h2>Select a file</h2>
|
|
70
|
+
<p>Choose a file from the sidebar</p>
|
|
71
|
+
<p><kbd>Cmd+E</kbd> Edit <kbd>Cmd+S</kbd> Save <kbd>Cmd+P</kbd> PDF</p>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</main>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<!-- Context Menu -->
|
|
78
|
+
<div id="contextMenu" class="context-menu hidden"></div>
|
|
79
|
+
|
|
80
|
+
<!-- Dialog -->
|
|
81
|
+
<div id="dialogOverlay" class="dialog-overlay hidden">
|
|
82
|
+
<div class="dialog-content">
|
|
83
|
+
<h3 id="dialogTitle"></h3>
|
|
84
|
+
<input type="text" id="dialogInput" style="display: none;">
|
|
85
|
+
<p id="dialogMessage" style="margin: 0; color: var(--text-secondary);"></p>
|
|
86
|
+
<div class="dialog-actions">
|
|
87
|
+
<button class="btn-cancel" id="dialogCancel">キャンセル</button>
|
|
88
|
+
<button class="btn-confirm" id="dialogConfirm">OK</button>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<!-- Upload Progress -->
|
|
94
|
+
<div id="uploadOverlay" class="upload-progress-overlay hidden">
|
|
95
|
+
<div class="upload-progress-box">
|
|
96
|
+
<div id="uploadFileName">アップロード中...</div>
|
|
97
|
+
<div class="upload-progress-bar">
|
|
98
|
+
<div id="uploadProgressFill" class="upload-progress-fill"></div>
|
|
99
|
+
</div>
|
|
100
|
+
<div id="uploadProgressText">0%</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<!-- Hidden File Input -->
|
|
105
|
+
<input type="file" id="fileInput" multiple hidden>
|
|
106
|
+
|
|
107
|
+
<script src="/static/app.js"></script>
|
|
108
|
+
</body>
|
|
109
|
+
</html>
|