feat(NetTestView): 添加对api.github.com和raw.githubusercontent.com的支持

This commit is contained in:
jxxghp
2024-11-22 12:39:25 +08:00
parent f4daee85c7
commit 34cbcc38a6
4 changed files with 73 additions and 50 deletions

View File

@@ -446,31 +446,32 @@ onBeforeMount(async () => {
</VWindow>
</div>
<!-- 插件搜索图标 -->
<VFab
icon="mdi-magnify"
color="info"
location="bottom"
size="x-large"
fixed
app
appear
@click="SearchDialog = true"
:class="appMode ? 'mb-28' : 'mb-16'"
/>
<!-- 插件市场设置图标 -->
<VFab
icon="mdi-store-cog"
color="warning"
location="bottom"
size="x-large"
fixed
app
appear
@click="MarketSettingDialog = true"
:class="{ 'mb-12': appMode }"
/>
<div>
<!-- 插件搜索图标 -->
<VFab
icon="mdi-magnify"
color="info"
location="bottom"
size="x-large"
fixed
app
appear
@click="SearchDialog = true"
:class="appMode ? 'mb-28' : 'mb-16'"
/>
<!-- 插件市场设置图标 -->
<VFab
icon="mdi-store-cog"
color="warning"
location="bottom"
size="x-large"
fixed
app
appear
@click="MarketSettingDialog = true"
:class="{ 'mb-12': appMode }"
/>
</div>
<!-- 插件市场设置窗口 -->
<PluginMarketSettingDialog
v-if="MarketSettingDialog"

View File

@@ -481,7 +481,7 @@ onMounted(fetchData)
</VCard>
<!-- 底部操作按钮 -->
<span>
<div>
<VFab
v-if="selected.length > 0"
icon="mdi-trash-can-outline"
@@ -505,7 +505,7 @@ onMounted(fetchData)
appear
@click="retransferBatch"
/>
</span>
</div>
<!-- 底部弹窗 -->
<VBottomSheet v-model="deleteConfirmDialog" inset>
<VCard class="text-center rounded-t">

View File

@@ -100,29 +100,31 @@ onActivated(async () => {
/>
</VPullToRefresh>
<!-- 底部操作按钮 -->
<VFab
v-if="store.state.auth.superUser"
icon="mdi-clipboard-edit"
location="bottom"
size="x-large"
fixed
app
appear
@click="subscribeEditDialog = true"
:class="{ 'mb-12': appMode }"
/>
<VFab
v-if="store.state.auth.superUser"
icon="mdi-history"
color="info"
location="bottom"
:class="appMode ? 'mb-28' : 'mb-16'"
size="x-large"
fixed
app
appear
@click="historyDialog = true"
/>
<div>
<VFab
v-if="store.state.auth.superUser"
icon="mdi-clipboard-edit"
location="bottom"
size="x-large"
fixed
app
appear
@click="subscribeEditDialog = true"
:class="{ 'mb-12': appMode }"
/>
<VFab
v-if="store.state.auth.superUser"
icon="mdi-history"
color="info"
location="bottom"
:class="appMode ? 'mb-28' : 'mb-16'"
size="x-large"
fixed
app
appear
@click="historyDialog = true"
/>
</div>
<!-- 订阅编辑弹窗 -->
<SubscribeEditDialog
v-if="subscribeEditDialog"

View File

@@ -129,6 +129,26 @@ const targets = ref<Address[]>([
message: '未测试',
btndisable: false,
},
{
image: github,
name: 'api.github.com',
url: 'https://api.github.com',
proxy: true,
status: 'Normal',
time: '',
message: '未测试',
btndisable: false,
},
{
image: github,
name: 'raw.githubusercontent.com',
url: 'https://raw.githubusercontent.com',
proxy: true,
status: 'Normal',
time: '',
message: '未测试',
btndisable: false,
},
])
const resolveStatusColor: Status = {