@tnotesjs/core 0.2.2 → 0.4.0
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 +0 -1
- package/config/defaultConfig.ts +33 -4
- package/config/index.ts +6 -0
- package/core/NoteIndexCache.ts +7 -1
- package/core/NoteManager.ts +18 -30
- package/dist/{chunk-5Y5IYS6C.js → chunk-UJG3UU5X.js} +21 -5
- package/dist/{chunk-5QN44ES5.js → chunk-XCWFZLER.js} +48 -368
- package/dist/cli/index.js +26 -78
- package/dist/index.js +1 -1
- package/dist/vitepress/config/index.js +159 -18
- package/package.json +3 -6
- package/services/index.ts +0 -1
- package/services/init-sub-repo/initSubRepoLogic.ts +0 -1
- package/services/note/service.ts +0 -1
- package/types/config.ts +0 -3
- package/types/note.ts +0 -2
- package/vitepress/assets/icons/icon__cursor.svg +4 -0
- package/vitepress/assets/icons/index.ts +1 -0
- package/vitepress/components/Layout/AboutPanel.vue +0 -24
- package/vitepress/components/Layout/DocBeforeControls.vue +6 -14
- package/vitepress/components/Layout/DocFooter.vue +3 -3
- package/vitepress/components/Layout/Layout.vue +0 -30
- package/vitepress/components/Layout/composables/useVSCodeIntegration.ts +20 -11
- package/vitepress/components/Layout/homeReadme.data.ts +0 -48
- package/vitepress/components/MindmapPreview/InlineRuns.ts +25 -0
- package/vitepress/components/MindmapPreview/MindmapOutlineNode.vue +62 -0
- package/vitepress/components/MindmapPreview/MindmapPreview.vue +287 -0
- package/vitepress/components/MindmapPreview/compat.test.ts +93 -0
- package/vitepress/components/MindmapPreview/compat.ts +128 -0
- package/vitepress/components/MindmapPreview/expandLevel.test.ts +40 -0
- package/vitepress/components/MindmapPreview/expandLevel.ts +28 -0
- package/vitepress/components/MindmapPreview/legacyCorpus.test.ts +57 -0
- package/vitepress/components/Settings/Settings.vue +76 -73
- package/vitepress/components/SidebarCard/FolderTreeItems.vue +16 -6
- package/vitepress/components/SidebarCard/SidebarCard.vue +21 -27
- package/vitepress/components/composables/useLocalIde.ts +83 -0
- package/vitepress/components/constants.ts +5 -6
- package/vitepress/components/utils/vscodePaths.test.ts +22 -0
- package/vitepress/components/utils/vscodePaths.ts +24 -2
- package/vitepress/configs/markdown.config.ts +77 -20
- package/vitepress/theme/index.ts +4 -2
- package/vitepress/theme/styles/doc-layout.scss +4 -4
- package/vitepress/theme/styles/index.scss +0 -1
- package/services/timestamp/index.ts +0 -7
- package/services/timestamp/service.ts +0 -465
- package/vitepress/components/MarkMap/MarkMap.vue +0 -625
- package/vitepress/theme/styles/components/markmap.scss +0 -122
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MarkMap 组件全局样式
|
|
3
|
-
* Toolbar 由 markmap-toolbar 库动态生成,需要全局样式
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* ===================================== */
|
|
7
|
-
/* #region Toolbar 样式 */
|
|
8
|
-
/* ===================================== */
|
|
9
|
-
|
|
10
|
-
.mm-toolbar {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 8px;
|
|
14
|
-
padding: 6px;
|
|
15
|
-
background: rgba(255, 255, 255, 0.9);
|
|
16
|
-
border-radius: 6px;
|
|
17
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
|
|
18
|
-
backdrop-filter: blur(8px);
|
|
19
|
-
opacity: 1;
|
|
20
|
-
pointer-events: auto;
|
|
21
|
-
z-index: 10;
|
|
22
|
-
transition: opacity 0.3s ease;
|
|
23
|
-
color: var(--vp-c-tip-1);
|
|
24
|
-
font-weight: 700;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.mm-toolbar-item {
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
width: 28px;
|
|
33
|
-
height: 28px;
|
|
34
|
-
border-radius: 4px;
|
|
35
|
-
transition: all 0.2s ease;
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.mm-toolbar-item:hover {
|
|
40
|
-
background-color: rgba(0, 0, 0, 0.08);
|
|
41
|
-
transform: scale(1.1);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.mm-toolbar-item:active {
|
|
45
|
-
transform: scale(0.95);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.mm-toolbar-item svg {
|
|
49
|
-
color: var(--vp-c-tip-1);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* #endregion */
|
|
53
|
-
|
|
54
|
-
/* ===================================== */
|
|
55
|
-
/* #region SVG 动画 */
|
|
56
|
-
/* ===================================== */
|
|
57
|
-
|
|
58
|
-
.markmap g {
|
|
59
|
-
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* #endregion */
|
|
63
|
-
|
|
64
|
-
/* ===================================== */
|
|
65
|
-
/* #region 暗色模式 */
|
|
66
|
-
/* ===================================== */
|
|
67
|
-
|
|
68
|
-
.markmap-dark .mm-toolbar {
|
|
69
|
-
background: rgba(30, 30, 30, 0.9);
|
|
70
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.markmap-dark .mm-toolbar-item:hover {
|
|
74
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
html.markmap-dark .markmapContainer,
|
|
78
|
-
.markmapContainer.is-markmap-dark {
|
|
79
|
-
background-color: #1d1d1d;
|
|
80
|
-
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
html.markmap-dark .markmapContainer:hover,
|
|
84
|
-
.markmapContainer.is-markmap-dark:hover {
|
|
85
|
-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
html.markmap-dark .markmapContainer:fullscreen,
|
|
89
|
-
html.markmap-dark .markmapContainer:-ms-fullscreen,
|
|
90
|
-
html.markmap-dark .markmapContainer:-webkit-full-screen,
|
|
91
|
-
.markmapContainer.is-markmap-dark:fullscreen,
|
|
92
|
-
.markmapContainer.is-markmap-dark:-ms-fullscreen,
|
|
93
|
-
.markmapContainer.is-markmap-dark:-webkit-full-screen {
|
|
94
|
-
background: #1d1d1d;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* #endregion */
|
|
98
|
-
|
|
99
|
-
/* ===================================== */
|
|
100
|
-
/* #region 响应式 */
|
|
101
|
-
/* ===================================== */
|
|
102
|
-
|
|
103
|
-
@media (max-width: 768px) {
|
|
104
|
-
.mm-toolbar {
|
|
105
|
-
scale: 0.9;
|
|
106
|
-
gap: 6px;
|
|
107
|
-
padding: 4px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.mm-toolbar-item {
|
|
111
|
-
width: 24px;
|
|
112
|
-
height: 24px;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@media (max-width: 480px) {
|
|
117
|
-
.mm-toolbar {
|
|
118
|
-
scale: 0.8;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* #endregion */
|