fix: add static libcache files for vue2 + buefy

This commit is contained in:
Lance Edgar 2024-12-30 17:59:30 -06:00
parent 749df597de
commit 3a9f0d751e
8 changed files with 32 additions and 3 deletions

View file

@ -38,6 +38,9 @@ dependencies = [
[project.scripts] [project.scripts]
"sideshow" = "sideshow.cli:sideshow_typer" "sideshow" = "sideshow.cli:sideshow_typer"
[project.entry-points."fanstatic.libraries"]
sideshow_libcache = "sideshow.web.static:libcache"
[project.entry-points."paste.app_factory"] [project.entry-points."paste.app_factory"]
"main" = "sideshow.web.app:main" "main" = "sideshow.web.app:main"

View file

@ -26,4 +26,4 @@ class SideshowConfig(WuttaConfigExtension):
'sideshow.web.menus:SideshowMenuHandler') 'sideshow.web.menus:SideshowMenuHandler')
# web app libcache # web app libcache
#config.setdefault('wuttaweb.static_libcache.module', 'sideshow.web.static') config.setdefault('wuttaweb.static_libcache.module', 'sideshow.web.static')

View file

@ -3,11 +3,16 @@
Static assets Static assets
""" """
# from fanstatic import Library, Resource from fanstatic import Library, Resource
# # libcache # # libcache
# libcache = Library('sideshow_libcache', 'libcache') libcache = Library('sideshow_libcache', 'libcache')
vue_js = Resource(libcache, 'vue-2.6.14.min.js')
vue_resource_js = Resource(libcache, 'vue-resource-1.5.3.min.js')
buefy_js = Resource(libcache, 'buefy-0.9.25.min.js')
buefy_css = Resource(libcache, 'buefy-0.9.25.min.css')
fontawesome_js = Resource(libcache, 'fontawesome-5.3.1-all.min.js')
# bb_vue_js = Resource(libcache, 'vue.esm-browser-3.3.11.prod.js') # bb_vue_js = Resource(libcache, 'vue.esm-browser-3.3.11.prod.js')
# bb_oruga_js = Resource(libcache, 'oruga-0.8.10.js') # bb_oruga_js = Resource(libcache, 'oruga-0.8.10.js')
# bb_oruga_bulma_js = Resource(libcache, 'oruga-bulma-0.3.0.js') # bb_oruga_bulma_js = Resource(libcache, 'oruga-bulma-0.3.0.js')

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long