chore: switch repository links to gitea

This commit is contained in:
kone
2026-06-04 01:21:54 +08:00
parent a1b75400a6
commit 4d8f06cbf1
32 changed files with 194 additions and 179 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export async function getVersion(): Promise<{ version: string }> {
/**
* Check for updates
* @param force - Force refresh from GitHub API
* @param force - Force refresh from Gitea API
*/
export async function checkUpdates(force = false): Promise<VersionInfo> {
const { data } = await apiClient.get<VersionInfo>('/admin/system/check-updates', {
+1 -1
View File
@@ -128,7 +128,7 @@
<a
v-if="authStore.isAdmin"
href="https://github.com/Wei-Shaw/sub2api"
href="http://git.jianshixingqiu.com/kgod/sub2api"
target="_blank"
rel="noopener noreferrer"
@click="closeDropdown"
+1 -1
View File
@@ -467,7 +467,7 @@ const isHomeContentUrl = computed(() => {
const { isDarkTheme: isDark, toggleTheme } = useTheme()
// GitHub URL
const githubUrl = 'https://github.com/Wei-Shaw/sub2api'
const githubUrl = 'http://git.jianshixingqiu.com/kgod/sub2api'
// Auth state
const isAuthenticated = computed(() => authStore.isAuthenticated)
+1 -1
View File
@@ -376,7 +376,7 @@ const appStore = useAppStore()
const siteName = computed(() => appStore.cachedPublicSettings?.site_name || appStore.siteName || 'Sub2API')
const siteLogo = computed(() => appStore.cachedPublicSettings?.site_logo || appStore.siteLogo || '')
const docUrl = computed(() => appStore.cachedPublicSettings?.doc_url || appStore.docUrl || '')
const githubUrl = 'https://github.com/Wei-Shaw/sub2api'
const githubUrl = 'http://git.jianshixingqiu.com/kgod/sub2api'
// ==================== Theme (same as HomeView) ====================
+4 -4
View File
@@ -6571,14 +6571,14 @@ function applyCustomMenuIcon(item: { icon_svg: string }, optionID: string) {
const paymentGuideHref = computed(() =>
locale.value.startsWith("zh")
? "https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT_CN.md"
: "https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT.md",
? "http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT_CN.md"
: "http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT.md",
);
const paymentMethodsHref = computed(() =>
locale.value.startsWith("zh")
? "https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT_CN.md#支持的支付方式"
: "https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT.md#supported-payment-methods",
? "http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT_CN.md#支持的支付方式"
: "http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT.md#supported-payment-methods",
);
type SettingsTab =
@@ -557,10 +557,10 @@ describe("admin SettingsView payment visible method controls", () => {
expect(paymentLinks).toHaveLength(2);
expect(paymentLinks[0]?.attributes("href")).toBe(
"https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT_CN.md",
"http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT_CN.md",
);
expect(paymentLinks[1]?.attributes("href")).toBe(
"https://github.com/Wei-Shaw/sub2api/blob/main/docs/PAYMENT_CN.md#支持的支付方式",
"http://git.jianshixingqiu.com/kgod/sub2api/src/branch/main/docs/PAYMENT_CN.md#支持的支付方式",
);
for (const link of paymentLinks) {
expect(link.attributes("href")).toContain("docs/PAYMENT");