-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/CrychicTeam/CrychicDoc
- Loading branch information
Showing
22 changed files
with
612 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<script lang="ts" setup> | ||
import { useData } from 'vitepress' | ||
import { computed, ref, onMounted } from 'vue' | ||
const { page, frontmatter, lang, isDark } = useData() | ||
onMounted(() => { | ||
updateProgress() | ||
}) | ||
const metadata = { | ||
"zh-CN": `进度`, | ||
"en-US": `Progress`, | ||
} | ||
const isProgress = computed(() => { | ||
return frontmatter.value?.progress; | ||
}); | ||
const bufferValue = computed(() => frontmatter.value?.progress ?? 0 ); | ||
const progressValue = ref(0); | ||
function updateProgress() { | ||
if (progressValue.value < bufferValue.value) { | ||
progressValue.value += 1; | ||
setTimeout(updateProgress, 20); | ||
} | ||
} | ||
const color = computed(() => | ||
isDark.value ? "var(--vp-c-text-2)" : "var(--vp-c-brand)" | ||
); | ||
const text = computed(() => { | ||
return ( | ||
metadata[lang.value] || | ||
metadata["en-US"] | ||
); | ||
}); | ||
</script> | ||
|
||
|
||
<template> | ||
<v-row v-if="isProgress" align="center"> | ||
<v-col cols="2"> | ||
<v-btn | ||
class="btn progress" | ||
rounded="lg" | ||
prepend-icon="mdi-progress-clock" | ||
variant="text" | ||
density="comfortable" | ||
> | ||
{{ text }} | ||
</v-btn> | ||
</v-col> | ||
<v-col> | ||
<v-progress-linear | ||
height="5" | ||
class="theme" | ||
rounded | ||
:model-value="progressValue" | ||
:buffer-value="bufferValue" | ||
/> | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<style> | ||
.theme { | ||
color: v-bind(color); | ||
} | ||
.progress .v-btn__prepend { | ||
margin-inline: calc(var(--v-btn-height) / -9) 0px !important; | ||
color: var(--vp-c-text-2); | ||
opacity: 85%; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- | ||
progress: 100 | ||
--- | ||
# 文档编写规范 | ||
|
||
:::: justify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/en/modpack/kubejs/1.20.1/Introduction/Addon/ProbeJS/ProbeJS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# ProbeJS概述 {#Summary} | ||
# ProbeJS使用教程 {#Summary} | ||
|
||
ProbeJS是一个`KubeJS`附属模组,它为`KubeJS`脚本的编写带来了`语法补全`,并提供了各种便利的功能。 | ||
|
||
|
Oops, something went wrong.