forked from AxTps/Starlight_Lancher
feat:移除了弹窗,服务器添加sls
This commit is contained in:
46
apps/app-frontend/src/config.ts
Normal file
46
apps/app-frontend/src/config.ts
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user