Skip to content

Commit

Permalink
🐛 docs: 商店点击主页改为新窗口,修复插件商店仅轻雪不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 20, 2024
1 parent 24b0f34 commit 614d78b
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/components/PluginItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<div class="item-bar">
<!-- 三个可点击svg,一个github,一个下载,一个可点击"https://github.com/{{ username }}.png?size=80"个人头像配上id-->
<a :href=props.item.homepage class="btn">
<a :href=props.item.homepage class="btn" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16">
<path fill="currentColor"
d="m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"/>
Expand Down
5 changes: 4 additions & 1 deletion docs/components/PluginStore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ let filteredItems = computed(() => {
// 插件商店Nonebot
let items = ref([])
let search = ref('')
// 从官方拉取
// 从轻雪官方拉取,添加轻雪插件属性
items.value = pluginsJson
items.value.forEach(item => {
item.is_liteyuki_plugin = true
})
//追加
fetch('https://registry.nonebot.dev/plugins.json')
Expand Down
2 changes: 1 addition & 1 deletion docs/components/ResItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="item-description">{{ props.item.description }}</div>
<div class="item-bar">
<!-- 三个可点击svg,一个github,一个下载,一个可点击"https://github.com/{{ username }}.png?size=80"个人头像配上id-->
<a :href=props.item.link class="">
<a :href=props.item.link class="" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16">
<path fill="currentColor"
d="m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"/>
Expand Down
19 changes: 19 additions & 0 deletions docs/en/dev/best_practices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Best Practices
order: 10
---

# Best Practices

## Bot applications
- [LiteyukiBot](https://github.com/LiteyukiStudio/LiteyukiBot): Liteyuki Official Bot
- [LiteyukiBot-TriM](https://github.com/TriM-Organization/LiteyukiBot-TriM): TriM Official Custom Liteyuki Bot
- [Liteyuki Marsho](https://git.liteyuki.icu/LiteyukiStudio/marsho-alpha): A cute cat girl bot based on Liteyuki and the github model

## plugins
- [liteyukibot-plugin-nonebot](https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot): Liteyuki Bot NoneBot plugin, allowing Liteyuki to support NoneBot
- [nonebot-plugin-liteyukibot](https://github.com/LiteyukiStudio/nonebot-plugin-liteyukibot): NoneBot plugin, allowing NoneBot to support Liteyuki

## Others
- [liteyuki starmap](https://starmap.liteyuki.icu): Liteyuki official star map, showing all instances of Liteyuki and their location distribution
- [TRSS_Liteyuki](https://timerainstarsky.github.io/TRSS_Liteyuki/): LiteyukiBot management script
2 changes: 1 addition & 1 deletion docs/en/dev/comm.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 进程通信
title: Process Communication
order: 4
---

Expand Down
2 changes: 1 addition & 1 deletion docs/en/dev/lyfunc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 轻雪函数
title: Liteyuki Function
order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion docs/en/dev/plugin.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 轻雪插件开发
title: Liteyuki Plugin
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/en/dev/resource.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 资源包开发
title: Resource Pack
order: 1
---

Expand Down
2 changes: 1 addition & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hero:
link: ./store/
- theme: alt
text: 🛠️ Development
link: ./dev/
link: ./dev/guide
image:
light: /liteyuki.svg
dark: /liteyuki-dark.svg
Expand Down
19 changes: 19 additions & 0 deletions docs/zh/dev/best_practices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 最佳实践
order: 10
---

# 最佳实践

## 机器人应用
- [LiteyukiBot](https://github.com/LiteyukiStudio/LiteyukiBot):轻雪官方机器人
- [LiteyukiBot-TriM](https://github.com/TriM-Organization/LiteyukiBot-TriM):TriM 官方定制轻雪机器人
- [Liteyuki Marsho](https://git.liteyuki.icu/LiteyukiStudio/marsho-alpha):基于 轻雪 和 github model 的可爱猫娘机器人

## 插件
- [liteyukibot-plugin-nonebot](https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot):轻雪机器人 NoneBot 插件,让轻雪支持 NoneBot
- [nonebot-plugin-liteyukibot](https://github.com/LiteyukiStudio/nonebot-plugin-liteyukibot):NoneBot 插件,让 NoneBot 支持轻雪

## 其他
- [liteyuki starmap](https://starmap.liteyuki.icu):轻雪官方星图,展示轻雪的所有实例及其位置分布
- [TRSS_Liteyuki](https://timerainstarsky.github.io/TRSS_Liteyuki/):TRSS LiteyukiBot 管理脚本
2 changes: 1 addition & 1 deletion docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hero:
link: ./store/resource
- theme: alt
text: 🛠️ 开发
link: ./dev/
link: ./dev/guide
image:
light: ./liteyuki.svg
dark: ./liteyuki-dark.svg
Expand Down

0 comments on commit 614d78b

Please sign in to comment.