Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
---
name: 错误报告
about: 创建一个报告以帮助我们改进
title: ''
labels: ''
assignees: ''
---
**描述错误**
简单地描述一下这个错误是什么
**复现错误**
复现该错误行为的步骤
1. 跳转到 '...'
2. 点击 '....'
3. 向下滑动到 '....'
4. 查看错误
**预期行为**
简单地描述一下你预期发生的情况
**屏幕截图**
如果可以的话,附上截图以帮助解决你的问题
**桌面端(请填写以下信息)**
- 操作系统 (例如:Windows)
- 浏览器 (例如:Chrome, Safari)
- 软件版本 (例如:1.1.0)
**移动端(请填写以下信息)**
- 设备 (例如:iPhone13 Pro)
- 操作系统 (例如:ios 15.1)
- 浏览器 (例如:Chrome, Safari)
- 软件版本 (例如:1.1.0)
**备注**
在此添加关于问题的其他备注
---
name: 错误报告
about: 创建一个报告以帮助我们改进
title: ''
labels: ''
assignees: ''
---

**描述错误**

简单地描述一下这个错误是什么

**复现错误**

复现该错误行为的步骤

1. 跳转到 '...'
2. 点击 '....'
3. 向下滑动到 '....'
4. 查看错误

**预期行为**

简单地描述一下你预期发生的情况

**屏幕截图**

如果可以的话,附上截图以帮助解决你的问题

**桌面端(请填写以下信息)**

- 操作系统 (例如:Windows)
- 浏览器 (例如:Chrome, Safari)
- 软件版本 (例如:1.1.0)

**移动端(请填写以下信息)**

- 设备 (例如:iPhone13 Pro)
- 操作系统 (例如:ios 15.1)
- 浏览器 (例如:Chrome, Safari)
- 软件版本 (例如:1.1.0)

**备注**

在此添加关于问题的其他备注
38 changes: 19 additions & 19 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
name: 新功能请求
about: 为这个项目提出一个想法
title: ''
labels: ''
assignees: ''
---
**描述你想要的解决方案**
简单地描述一下你希望发生什么
**描述你考虑的替代方案**
简单地描述一下你考虑过的替代解决方案或功能
**备注**
在这里添加关于该功能请求的任何其他备注或屏幕截图
---
name: 新功能请求
about: 为这个项目提出一个想法
title: ''
labels: ''
assignees: ''
---

**描述你想要的解决方案**

简单地描述一下你希望发生什么

**描述你考虑的替代方案**

简单地描述一下你考虑过的替代解决方案或功能

**备注**

在这里添加关于该功能请求的任何其他备注或屏幕截图
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
在其中一位合作者批准后,拉取请求将被合并。
请确保在提交您的拉取请求之前填写这些表格,谢谢!


### 这个变动的性质是

- [ ] 新特性提交
Expand Down Expand Up @@ -45,4 +44,4 @@

### 后续计划(非新功能可选)

> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。
> 如果这个提交后面还有相关的其他提交和跟进信息,可以写在这里。
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

19 changes: 19 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"sortTailwindcss": {},
"printWidth": 80,
"sortPackageJson": false,
"ignorePatterns": [],
"overrides": [
{
"files": ["shared/utils/gvlks.ts"],
"options": {
"printWidth": 200
}
}
]
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"chat.tools.terminal.autoApprove": { "/.*/": true },
"chat.tools.terminal.ignoreDefaultAutoApproveRules": true,
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true
}
13 changes: 13 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<script lang="ts" setup>
const monitorData = useState<MonitorInfo[]>('monitorData')
const { locale } = useI18n()

const echartsLocale = computed(() => {
if (locale.value === 'zh-cn') return 'ZH'
return 'EN'
})

provide(
INIT_OPTIONS_KEY,
computed(() => ({
locale: echartsLocale.value
}))
)

onMounted(async () => {
const data = await request()('/api/monitor')
Expand Down
16 changes: 8 additions & 8 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ const navItems = computed(() => [
{
name: 'activate',
label: t('label.activate'),
icon: 'icons:activate',
icon: 'icons:activate'
},
{
name: 'check',
label: t('label.check'),
icon: 'icons:tools',
icon: 'icons:tools'
},
{
name: 'monitor',
label: t('label.monitor'),
icon: 'icons:monitor',
},
icon: 'icons:monitor'
}
])

const themeItems = computed(() => [
{
lable: t('label.auto'),
value: 'system',
value: 'system'
},
{
lable: t('label.dark'),
value: 'dark',
value: 'dark'
},
{
lable: t('label.light'),
value: 'light',
},
value: 'light'
}
])

function handleNavClick(name: string) {
Expand Down
6 changes: 3 additions & 3 deletions app/components/CommonActivate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const formData = ref<ActivateFormData>({
edition: gvlksData[0]?.edition[0]?.[rankVal.value] || '',
arch: 'x64',
host: monitorData.value?.[0]?.host || '',
license: '',
license: ''
})

watch(
Expand Down Expand Up @@ -63,7 +63,7 @@ const fileUrl = useObjectUrl(file)

const { copy, copied } = useClipboard({
legacy: true,
source: content,
source: content
})
</script>

Expand Down Expand Up @@ -110,7 +110,7 @@ const { copy, copied } = useClipboard({
:label="item.host"
class="[&>*]:w-full"
>
<div class="flex gap-2 items-center">
<div class="flex items-center gap-2">
<div class="flex-1">{{ item.host }}</div>
<ATag
:color="getRateColor(item.success / item.total)"
Expand Down
Loading
Loading