feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

View File

@ -0,0 +1,46 @@
const trimTrailingSlash = (url: string) => url.replace(/\/$/, '')
export const AxolotlBrandConfig = Object.freeze({
productName: 'Axolotl Launcher',
shortProductName: 'Axolotl',
website: 'https://www.axlmc.org/',
repositoryUrl: 'https://github.com/Mystic-Stars/Axolotl',
supportUrl: 'https://github.com/Mystic-Stars/Axolotl/issues',
qqGroupNumber: '737601250',
qqChannelUrl: 'https://pd.qq.com/s/9nfp5rlz0',
sponsorUrl: 'https://afdian.com/a/Mystic-Stars',
surveyUrl: 'https://gcnpznwdnhl4.feishu.cn/share/base/form/shrcndevRao1jpNw3cATAX4NbGh',
bundleIdentifier: 'red.ghs.axolotl',
deepLinkScheme: 'axolotl',
userAgent: (version: string, os: string) => `garbage-human-studio/axolotl/${version} (${os})`,
capabilities: Object.freeze({
publicModrinthApi: true,
privateModrinthServices: false,
ghsTelemetry: false,
}),
})
const siteUrl = trimTrailingSlash(import.meta.env.MODRINTH_URL || 'https://modrinth.com')
const officialLabrinthBaseUrl = trimTrailingSlash(
import.meta.env.MODRINTH_API_BASE_URL || 'https://api.modrinth.com',
)
type DownloadSourceMode = 'auto' | 'official_only' | 'mirror_preferred' | 'official_preferred'
// The Modrinth API always uses the official source; Modrinth download mirror
// routing is handled by the Rust download layer.
export function setModrinthSourceMode(_sourceMode: DownloadSourceMode) {}
export function setModrinthMirrorEnabled(_enabled: boolean) {}
export function getOfficialLabrinthBaseUrl() {
return officialLabrinthBaseUrl
}
export function getLabrinthBaseUrl() {
return officialLabrinthBaseUrl
}
export const config = {
siteUrl,
labrinthBaseUrl: getLabrinthBaseUrl,
}