memorix 0.5.0 → 0.5.2
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.
- package/README.md +8 -6
- package/dist/cli/index.js +333 -15
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/static/app.js +921 -0
- package/dist/dashboard/static/index.html +85 -0
- package/dist/dashboard/static/logo.png +0 -0
- package/dist/dashboard/static/style.css +1048 -0
- package/dist/index.js +372 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Memorix Dashboard</title>
|
|
8
|
+
<link rel="stylesheet" href="/style.css">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
|
+
<link
|
|
11
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
12
|
+
rel="stylesheet">
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<!-- Sidebar -->
|
|
17
|
+
<nav id="sidebar">
|
|
18
|
+
<div class="sidebar-brand">
|
|
19
|
+
<img src="/logo.png" alt="Memorix" class="brand-logo" />
|
|
20
|
+
</div>
|
|
21
|
+
<div class="sidebar-nav">
|
|
22
|
+
<button class="nav-btn active" data-page="dashboard" title="Dashboard">
|
|
23
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
24
|
+
<rect x="3" y="3" width="7" height="7" rx="1" />
|
|
25
|
+
<rect x="14" y="3" width="7" height="7" rx="1" />
|
|
26
|
+
<rect x="3" y="14" width="7" height="7" rx="1" />
|
|
27
|
+
<rect x="14" y="14" width="7" height="7" rx="1" />
|
|
28
|
+
</svg>
|
|
29
|
+
</button>
|
|
30
|
+
<button class="nav-btn" data-page="graph" title="Knowledge Graph">
|
|
31
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
32
|
+
<circle cx="12" cy="5" r="3" />
|
|
33
|
+
<circle cx="5" cy="19" r="3" />
|
|
34
|
+
<circle cx="19" cy="19" r="3" />
|
|
35
|
+
<line x1="12" y1="8" x2="5" y2="16" />
|
|
36
|
+
<line x1="12" y1="8" x2="19" y2="16" />
|
|
37
|
+
</svg>
|
|
38
|
+
</button>
|
|
39
|
+
<button class="nav-btn" data-page="observations" title="Observations">
|
|
40
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
41
|
+
<path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
|
42
|
+
</svg>
|
|
43
|
+
</button>
|
|
44
|
+
<button class="nav-btn" data-page="retention" title="Retention">
|
|
45
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
46
|
+
<polyline points="22,12 18,12 15,21 9,3 6,12 2,12" />
|
|
47
|
+
</svg>
|
|
48
|
+
</button>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="sidebar-spacer"></div>
|
|
51
|
+
<div class="sidebar-footer">
|
|
52
|
+
<button class="sidebar-action-btn" id="theme-toggle" title="Toggle Theme">
|
|
53
|
+
<svg id="theme-icon-sun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
54
|
+
stroke-width="2" style="display:none;">
|
|
55
|
+
<circle cx="12" cy="12" r="5" />
|
|
56
|
+
<line x1="12" y1="1" x2="12" y2="3" />
|
|
57
|
+
<line x1="12" y1="21" x2="12" y2="23" />
|
|
58
|
+
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
|
|
59
|
+
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
|
|
60
|
+
<line x1="1" y1="12" x2="3" y2="12" />
|
|
61
|
+
<line x1="21" y1="12" x2="23" y2="12" />
|
|
62
|
+
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
|
|
63
|
+
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
|
|
64
|
+
</svg>
|
|
65
|
+
<svg id="theme-icon-moon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
66
|
+
stroke-width="2">
|
|
67
|
+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" />
|
|
68
|
+
</svg>
|
|
69
|
+
</button>
|
|
70
|
+
<button class="sidebar-action-btn" id="lang-toggle" title="Switch Language / 切换语言">EN</button>
|
|
71
|
+
</div>
|
|
72
|
+
</nav>
|
|
73
|
+
|
|
74
|
+
<!-- Main Content -->
|
|
75
|
+
<main id="app">
|
|
76
|
+
<div id="page-dashboard" class="page active"></div>
|
|
77
|
+
<div id="page-graph" class="page"></div>
|
|
78
|
+
<div id="page-observations" class="page"></div>
|
|
79
|
+
<div id="page-retention" class="page"></div>
|
|
80
|
+
</main>
|
|
81
|
+
|
|
82
|
+
<script src="/app.js"></script>
|
|
83
|
+
</body>
|
|
84
|
+
|
|
85
|
+
</html>
|
|
Binary file
|