-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a307c8
commit f8e6f82
Showing
7 changed files
with
289 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
text?: string | ||
type?: 'bakaxl' | 'hmcl' | 'pcl' | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<span class="LauncherBadge" :class="type"> | ||
<slot>{{ text }}</slot> | ||
</span> | ||
</template> | ||
|
||
<style scoped> | ||
.LauncherBadge { | ||
display: inline-block; | ||
margin-left: 2px; | ||
border: 1px solid transparent; | ||
border-radius: 10px; | ||
padding: 0 8px; | ||
line-height: 18px; | ||
font-size: 12px; | ||
font-weight: 600; | ||
transform: translateY(-2px); | ||
} | ||
h1 .LauncherBadge, | ||
h2 .LauncherBadge, | ||
h3 .LauncherBadge, | ||
h4 .LauncherBadge, | ||
h5 .LauncherBadge, | ||
h6 .LauncherBadge { | ||
vertical-align: text-top; | ||
} | ||
h2 .LauncherBadge { | ||
border-radius: 11px; | ||
line-height: 20px; | ||
} | ||
.LauncherBadge.bakaxl { | ||
border-color: var(--vp-badge-bakaxl-border); | ||
color: var(--vp-badge-bakaxl-text); | ||
background-color: var(--vp-badge-bakaxl-bg); | ||
} | ||
.LauncherBadge.hmcl { | ||
border-color: var(--vp-badge-hmcl-border); | ||
color: var(--vp-badge-hmcl-text); | ||
background-color: var(--vp-badge-hmcl-bg); | ||
} | ||
.LauncherBadge.pcl { | ||
border-color: var(--vp-badge-pcl-border); | ||
color: var(--vp-badge-pcl-text); | ||
background-color: var(--vp-badge-pcl-bg); | ||
} | ||
</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
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,52 @@ | ||
<script setup> | ||
import LauncherBadge from '../components/LauncherBadge.vue' | ||
</script> | ||
|
||
# 贡献指南 | ||
|
||
## 排版标准 | ||
|
||
请先 Fork 本仓库,然后进行文档修改。排版时请务必遵循中文文案排版指北。 | ||
|
||
请注意:在非 Log 信息以外的任何地方,如果有中文和英文数字混用,请在中文和英文数字之间添加空格;如果有斜杠的,请在斜杠两边增加一个空格。 | ||
|
||
例:`GlobeMC 河豚分析是一个 2023 年 7 月底成立的崩溃日志分析组织,以方便 / 开放 / 专业为目标` | ||
|
||
在涉及非 Log 信息以外的任何地方,英文单词原则上首字母大写,部分情况需要按照规则大写,英文句子首字母大写。 | ||
|
||
例:`Minecraft`、`OptiFine`、`What your love is your life`。 | ||
|
||
如果某一个解决方案为特定启动器独占功能,请使用 Vue Component 注明。示例如下: | ||
|
||
:::warning 警告 | ||
在使用 Component 之前,请务必在 Markdown 最顶部引入它。 | ||
```vue | ||
<script setup> | ||
import LauncherBadge from '../components/LauncherBadge.vue' | ||
</script> | ||
``` | ||
::: | ||
|
||
:::details HMCL | ||
### 修改渲染器 <LauncherBadge type="hmcl" text="仅 HMCL" /> | ||
|
||
```md | ||
### 修改渲染器 <LauncherBadge type="hmcl" text="仅 HMCL" /> | ||
``` | ||
::: | ||
|
||
:::details BakaXL | ||
### 重置核心 <LauncherBadge type="bakaxl" text="仅 BakaXL" /> | ||
|
||
```md | ||
### 重置核心 <LauncherBadge type="bakaxl" text="仅 BakaXL" /> | ||
``` | ||
::: | ||
|
||
:::details PCL2 | ||
### 修改验证服务器 <LauncherBadge type="pcl" text="仅 PCL2" /> | ||
|
||
```md | ||
### 修改验证服务器 <LauncherBadge type="pcl" text="仅 PCL2" /> | ||
``` | ||
::: |
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
Oops, something went wrong.