Change default URL for some vue3+oruga libs

apparently the first ones were not ideal / optimized, but these are
This commit is contained in:
Lance Edgar 2024-04-28 16:14:40 -05:00
parent 855fa7e1e2
commit 1d5a0630ef

View file

@ -214,10 +214,10 @@ def get_liburl(request, key, fallback=True):
return 'https://use.fontawesome.com/releases/v{}/js/all.js'.format(version) return 'https://use.fontawesome.com/releases/v{}/js/all.js'.format(version)
elif key == 'bb_vue': elif key == 'bb_vue':
return f'https://unpkg.com/vue@{version}/dist/vue.esm-browser.js' return f'https://unpkg.com/vue@{version}/dist/vue.esm-browser.prod.js'
elif key == 'bb_oruga': elif key == 'bb_oruga':
return f'https://unpkg.com/@oruga-ui/oruga-next@{version}/dist/esm/index.mjs' return f'https://unpkg.com/@oruga-ui/oruga-next@{version}/dist/oruga.mjs'
elif key == 'bb_oruga_bulma': elif key == 'bb_oruga_bulma':
return f'https://unpkg.com/@oruga-ui/theme-bulma@{version}/dist/bulma.mjs' return f'https://unpkg.com/@oruga-ui/theme-bulma@{version}/dist/bulma.mjs'