feat: add asset import services
This commit is contained in:
1 parent
4b596226e0
commit
3497df9dfd
46 files changed
+5383
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { resolveGordonBuildUrl } from '@/lib/services/import/core/gordon'
|
||||
import { siteSettings } from '@/lib/services/site-settings'
|
||||
|
||||
export async function resolveFigureSwfUrl(lib: string): Promise<string> {
|
||||
const override = ((await siteSettings.get('figure_swf_base_url', '')) ?? '').trim()
|
||||
if (override) return `${override.replace(/\/+$/, '')}/${lib}.swf`
|
||||
const gordon = await resolveGordonBuildUrl()
|
||||
return `${gordon}${lib}.swf`
|
||||
}
|
||||
Reference in new issue
Block a user