Add :添加更多Bug(功能)
This commit is contained in:
parent
b8c1e7b575
commit
7660fe0e2a
|
@ -4,7 +4,15 @@
|
|||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="095f8482-7199-413b-83e3-876b2fdc1c5d" name="更改" comment="" />
|
||||
<list default="true" id="095f8482-7199-413b-83e3-876b2fdc1c5d" name="更改" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/rustedwarfareapicode/api-dev.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/.vitepress/config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/.vitepress/config.ts" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/api-examples.md" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/index.md" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/index.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/setTimeout(resolve" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/span.textContent))" beforeDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
|
@ -24,25 +32,25 @@
|
|||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"git-widget-placeholder": "main",
|
||||
"last_opened_file_path": "D:/RW-API-Code/rustedwarfareapicode/.vitepress/theme",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"prettierjs.PrettierConfiguration.Package": "C:\\Program Files\\nodejs\\node_modules\\prettier",
|
||||
"ts.external.directory.path": "D:\\Program Files (x86)\\WebStorm 2022.1\\plugins\\javascript-impl\\jsLanguageServicesImpl\\external",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"git-widget-placeholder": "main",
|
||||
"last_opened_file_path": "D:/RW-API-Code/rustedwarfareapicode/.vitepress/theme",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"prettierjs.PrettierConfiguration.Package": "C:\\Program Files\\nodejs\\node_modules\\prettier",
|
||||
"ts.external.directory.path": "D:\\Program Files\\JetBrains\\WebStorm 2023.1.1\\plugins\\javascript-impl\\jsLanguageServicesImpl\\external",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}</component>
|
||||
}]]></component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="D:\RW-API-Code\rustedwarfareapicode\.vitepress\theme" />
|
||||
|
|
|
@ -33,7 +33,7 @@ export default defineConfig({
|
|||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
||||
{ icon: 'github', link: 'https://github.com/LingASDJ/RW-API-Code/' }
|
||||
],
|
||||
|
||||
footer: {
|
||||
|
|
182
rustedwarfareapicode/api-dev.md
Normal file
182
rustedwarfareapicode/api-dev.md
Normal file
|
@ -0,0 +1,182 @@
|
|||
---
|
||||
outline: deep
|
||||
---
|
||||
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<h1>RTS-Code-API---开发规范</h1>
|
||||
</div>
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<img src="https://rwapi-code.netlify.app/images/title.png">
|
||||
</div>
|
||||
|
||||
::: tip
|
||||
0.如果你确定你想<font color=orange>帮忙开发此站点</font>,<br>
|
||||
就可以点击右上角的Github按钮,<font color=orange>Clone我们的库</font>,<br>
|
||||
编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。<br>
|
||||
> 1.确保代码的解释通俗易懂,能让新手迅速入门<br>2.编写的代码应该以以下格式进行:
|
||||
> <h3>代码的格式编写规范:</h3>1.代码的英文名和附属信息(参考站点已添加的代码例子)<br>
|
||||
2.代码的简介<br>
|
||||
3.代码的要点指示<br>
|
||||
4.代码的演示例子<br>
|
||||
5.代码的扩展例子(可选)<br>
|
||||
6.GIF演示/视频演示(可选)
|
||||
:::
|
||||
|
||||
::: tip
|
||||
使用外部资源时,请使用支持HTTPS协议的资源地址传输。<br>
|
||||
否则在<font color=orange>Google Chrome等一系列以CEF的内核</font>上会因为强制替换HTTPS导致资源无法打开。
|
||||
:::
|
||||
|
||||
::: warning
|
||||
不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗,
|
||||
夹带私货等一系列与本站无关的东西,违者将不能通过<font color=green>PR审核</font>
|
||||
:::
|
||||
|
||||
::: warning
|
||||
有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。
|
||||
:::
|
||||
|
||||
::: info
|
||||
为了更好的方便一起编写站点的贡献者,本站点提供了以下的<font color=green>扩展MD格式供各位书写</font>
|
||||
:::
|
||||
|
||||
#### 其他说明:
|
||||
有关于MarkDown的其他书写格式,请参考MD书写规范
|
||||
[MD文档参考--点我立刻学习](https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
|
||||
|
||||
#### 附加说明:
|
||||
```txt
|
||||
由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,
|
||||
如果要在一些扩展格式渲染演示,请使用<font>标签,
|
||||
```
|
||||
|
||||
#### 部署策略:
|
||||
|
||||
::: info
|
||||
1.本地部署
|
||||
:::
|
||||
|
||||
::: tip
|
||||
如果要本地测试,请确保设备有<font color=green>Node.js</font>
|
||||
并在项目根目录使用以下命令:<br>
|
||||
> npm i docsify-cli -g<br>docsify serve docs
|
||||
:::
|
||||
|
||||
::: info
|
||||
2.Netlify部署
|
||||
:::
|
||||
|
||||
::: tip
|
||||
如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,<br>
|
||||
Netlify会在你的PR请求下面显示你的预览页面地址。<br>
|
||||
点击<b><font color=orange>😎 Deploy Preview后面的链接</font></b>即可看见效果<br>
|
||||
由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。
|
||||
:::
|
||||
|
||||
|
||||
#### 实际格式演示:
|
||||
::: tip
|
||||
注意文本
|
||||
:::
|
||||
|
||||
::: info
|
||||
信息文本
|
||||
:::
|
||||
|
||||
::: tip
|
||||
小提示文本
|
||||
:::
|
||||
|
||||
::: warning
|
||||
警告文本
|
||||
:::
|
||||
|
||||
::: danger
|
||||
危险文本
|
||||
:::
|
||||
|
||||
::: details
|
||||
这是一个折叠框
|
||||
:::
|
||||
|
||||
|
||||
#### MD扩展格式:
|
||||
|
||||
```
|
||||
|
||||
::: info
|
||||
信息文本
|
||||
:::
|
||||
|
||||
::: tip
|
||||
小提示文本
|
||||
:::
|
||||
|
||||
::: warning
|
||||
警告文本
|
||||
:::
|
||||
|
||||
::: danger
|
||||
危险文本
|
||||
:::
|
||||
|
||||
::: details
|
||||
这是一个折叠框
|
||||
:::
|
||||
|
||||
#### 单位代码文档推荐格式:
|
||||
```markdown
|
||||
### xxxx
|
||||
#### xxxx-代码简介
|
||||
|
||||
?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx
|
||||
|
||||
::: tip
|
||||
xxxxxx
|
||||
:::
|
||||
|
||||
#### 视频/GIF演示---(可选)
|
||||
|
||||
#### xxxx代码-演示例子
|
||||
|
||||
***ini
|
||||
xxxx
|
||||
***
|
||||
|
||||
```
|
||||
|
||||
#### 表格推荐格式
|
||||
|
||||
### 代码演示:
|
||||
|A|B|C|
|
||||
|-|-|-
|
||||
|1|2|3|
|
||||
|
||||
### 代码例子:
|
||||
|
||||
```markdown
|
||||
|A|B|C|
|
||||
|-|-|-
|
||||
|1|2|3|
|
||||
```
|
||||
|
||||
如果你仍然不会Markdown表格写法,这里给你一个链接:
|
||||
<h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3>
|
||||
|
||||
### 扩展写法(高级)
|
||||
|
||||
有一些时候,我们可能需要在已经标记的后面再添加东西,
|
||||
但Markdown解析方式在标签后面再有一个标签就不会识别了。
|
||||
所以这里我们必须直接使用原生Html的代码,
|
||||
通过浏览器的检查元素,你应该能迅速找到模块框架,
|
||||
将它的模块元素区域复制下来,并调用。
|
||||
|
||||
<!-- MarkDown表格必须有上方的分割线以告诉浏览器是表格 -->
|
||||
|
||||
::: tip
|
||||
该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。
|
||||
:::
|
||||
|
||||
::: tip
|
||||
编写于2023-5-9 RTS-Code-API[第3版-第1次修订]
|
||||
:::
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
outline: deep
|
||||
---
|
||||
|
||||
# Runtime API Examples
|
||||
|
||||
This page demonstrates usage of some of the runtime APIs provided by VitePress.
|
||||
|
||||
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
|
||||
|
||||
```md
|
||||
<script setup>
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const { theme, page, frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
```
|
||||
|
||||
<script setup>
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const { site, theme, page, frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
|
||||
## More
|
||||
|
||||
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
|
|
@ -13,7 +13,7 @@ hero:
|
|||
actions:
|
||||
- theme: alt
|
||||
text: 开发指南
|
||||
link: /api-examples
|
||||
link: /api-dev
|
||||
- theme: brand
|
||||
text: 快速开始
|
||||
link: /src/Unit/core
|
||||
|
|
Loading…
Reference in New Issue
Block a user