@tnotesjs/core 0.7.0 → 0.8.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/commands/BaseCommand.ts +58 -0
- package/commands/build/BuildCommand.ts +25 -0
- package/commands/build/PreviewCommand.ts +29 -0
- package/commands/build/index.ts +8 -0
- package/commands/dev/DevCommand.ts +75 -0
- package/commands/dev/index.ts +7 -0
- package/commands/git/PullCommand.ts +25 -0
- package/commands/git/PushCommand.ts +64 -0
- package/commands/git/index.ts +8 -0
- package/commands/index.ts +11 -0
- package/commands/init-sub-repo/InitSubRepoCommand.ts +206 -0
- package/commands/init-sub-repo/index.ts +1 -0
- package/commands/misc/HelpCommand.ts +104 -0
- package/commands/misc/index.ts +7 -0
- package/commands/models.ts +87 -0
- package/commands/note/CreateNoteCommand.ts +160 -0
- package/commands/note/RenameNoteCommand.ts +147 -0
- package/commands/note/UpdateNoteConfigCommand.ts +78 -0
- package/commands/note/index.ts +9 -0
- package/commands/registry.ts +47 -0
- package/commands/update/UpdateCommand.ts +219 -0
- package/commands/update/index.ts +7 -0
- package/commands/update-completed-count/UpdateCompletedCountCommand.ts +208 -0
- package/commands/update-completed-count/index.ts +5 -0
- package/dist/markdown/index.cjs +6 -9
- package/dist/markdown/index.js +6 -9
- package/dist/vitepress/config/index.cjs +214 -58
- package/dist/vitepress/config/index.js +208 -52
- package/markdown/components.ts +86 -0
- package/markdown/index.ts +17 -0
- package/markdown/noteFormatter.test.ts +44 -0
- package/markdown/noteFormatter.ts +237 -0
- package/package.json +7 -3
- package/vitepress/components/BilibiliOutsidePlayer/BilibiliOutsidePlayer.vue +9 -18
- package/vitepress/components/EnWordList/EnWordList.vue +16 -662
- package/vitepress/components/Footprints/Footprints.vue +15 -537
- package/vitepress/components/Mermaid/Mermaid.vue +13 -588
- package/vitepress/components/MindmapPreview/MindmapPreview.vue +12 -434
- package/vitepress/components/MindmapPreview/markdown.ts +1 -1
- package/vitepress/components/NotesTable/NotesTable.vue +11 -130
- package/vitepress/configs/markdown.config.ts +170 -26
- package/vitepress/theme/index.ts +9 -13
- package/vitepress/theme/styles/base.scss +15 -0
- package/workspace/atomic.ts +113 -0
- package/workspace/errors.ts +27 -0
- package/workspace/index.ts +40 -0
- package/workspace/mutationQueue.ts +28 -0
- package/workspace/paths.ts +64 -0
- package/workspace/reconcile.test.ts +300 -0
- package/workspace/reconcile.ts +95 -0
- package/workspace/scanner.ts +292 -0
- package/workspace/types.ts +224 -0
- package/workspace/workspace.test.ts +333 -0
- package/workspace/workspace.ts +1020 -0
- package/vitepress/components/EnWordList/RightClickMenu.vue +0 -93
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
vitepress/components/EnWordList/RightClickMenu.vue
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div
|
|
7
|
-
v-if="show"
|
|
8
|
-
class="rightClickMenu"
|
|
9
|
-
:style="{ left: x + 'px', top: y + 'px' }"
|
|
10
|
-
>
|
|
11
|
-
<div class="menuItem" @click="handlePin">📌 Pin</div>
|
|
12
|
-
<div class="menuItem" @click="(e) => handlePronounce(e, 'en-GB')">
|
|
13
|
-
📢 Pronounce(英)
|
|
14
|
-
</div>
|
|
15
|
-
<div class="menuItem" @click="(e) => handlePronounce(e, 'en-US')">
|
|
16
|
-
📢 Pronounce(美)
|
|
17
|
-
</div>
|
|
18
|
-
<div
|
|
19
|
-
class="menuItem"
|
|
20
|
-
@click="(e) => handlePronounceAll(e, 'en-GB')"
|
|
21
|
-
>
|
|
22
|
-
📢 Pronounce All(英)
|
|
23
|
-
</div>
|
|
24
|
-
<div
|
|
25
|
-
class="menuItem"
|
|
26
|
-
@click="(e) => handlePronounceAll(e, 'en-US')"
|
|
27
|
-
>
|
|
28
|
-
📢 Pronounce All(美)
|
|
29
|
-
</div>
|
|
30
|
-
<div class="menuItem" @click="handleAutoShowCard">
|
|
31
|
-
🔍 Auto Show Card({{ isAutoShowCard ? '关' : '开' }})
|
|
32
|
-
</div>
|
|
33
|
-
<div class="menuItem" @click="handleCheckAll">✅ Check All</div>
|
|
34
|
-
<div class="menuItem" @click="handleReset">❌ Reset</div>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script setup>
|
|
39
|
-
const props = defineProps({
|
|
40
|
-
show: Boolean,
|
|
41
|
-
isAutoShowCard: Boolean,
|
|
42
|
-
x: Number,
|
|
43
|
-
y: Number,
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
const emit = defineEmits(['pin', 'pronounce'])
|
|
47
|
-
const handlePin = (e) => {
|
|
48
|
-
emit('pin')
|
|
49
|
-
e.preventDefault()
|
|
50
|
-
}
|
|
51
|
-
const handleAutoShowCard = () => {
|
|
52
|
-
emit('autoShowCard')
|
|
53
|
-
}
|
|
54
|
-
const handlePronounce = (e, lang) => {
|
|
55
|
-
emit('pronounce', lang)
|
|
56
|
-
e.preventDefault()
|
|
57
|
-
}
|
|
58
|
-
const handlePronounceAll = (e, lang) => {
|
|
59
|
-
emit('pronounceAll', lang)
|
|
60
|
-
e.preventDefault()
|
|
61
|
-
}
|
|
62
|
-
const handleCheckAll = () => {
|
|
63
|
-
emit('checkAll')
|
|
64
|
-
}
|
|
65
|
-
const handleReset = () => {
|
|
66
|
-
emit('reset')
|
|
67
|
-
}
|
|
68
|
-
</script>
|
|
69
|
-
|
|
70
|
-
<style scoped lang="scss">
|
|
71
|
-
// RightClickMenu 组件样式
|
|
72
|
-
|
|
73
|
-
.rightClickMenu {
|
|
74
|
-
position: fixed;
|
|
75
|
-
z-index: 99999;
|
|
76
|
-
background: #2c2c2c;
|
|
77
|
-
border: 1px solid #444;
|
|
78
|
-
border-radius: 6px;
|
|
79
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
|
|
80
|
-
font-size: 13px;
|
|
81
|
-
color: #eee;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
user-select: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.menuItem {
|
|
87
|
-
padding: 8px 16px;
|
|
88
|
-
|
|
89
|
-
&:hover {
|
|
90
|
-
background-color: #444;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
</style>
|