Coverage for .tox/coverage/lib/python3.11/site-packages/sideshow/web/static/__init__.py: 100%
10 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-22 12:21 -0500
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-22 12:21 -0500
1# -*- coding: utf-8; -*-
2################################################################################
3#
4# Sideshow -- Case/Special Order Tracker
5# Copyright © 2024-2025 Lance Edgar
6#
7# This file is part of Sideshow.
8#
9# Sideshow is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# Sideshow is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with Sideshow. If not, see <http://www.gnu.org/licenses/>.
21#
22################################################################################
23"""
24Static assets
25"""
27from fanstatic import Library, Resource
29# # libcache
30libcache = Library("sideshow_libcache", "libcache")
31vue_js = Resource(libcache, "vue-2.6.14.min.js")
32vue_resource_js = Resource(libcache, "vue-resource-1.5.3.min.js")
33buefy_js = Resource(libcache, "buefy-0.9.25.min.js")
34buefy_css = Resource(libcache, "buefy-0.9.25.min.css")
35fontawesome_js = Resource(libcache, "fontawesome-5.3.1-all.min.js")
36# bb_vue_js = Resource(libcache, 'vue.esm-browser-3.3.11.prod.js')
37# bb_oruga_js = Resource(libcache, 'oruga-0.8.10.js')
38# bb_oruga_bulma_js = Resource(libcache, 'oruga-bulma-0.3.0.js')
39# bb_oruga_bulma_css = Resource(libcache, 'oruga-bulma-0.3.0.css')
40# bb_fontawesome_svg_core_js = Resource(libcache, 'fontawesome-svg-core-6.5.2.js')
41# bb_free_solid_svg_icons_js = Resource(libcache, 'free-solid-svg-icons-6.5.2.js')
42# bb_vue_fontawesome_js = Resource(libcache, 'vue-fontawesome-3.0.6.index.es.js')
45def includeme(config): # pylint: disable=missing-function-docstring
46 config.include("wuttaweb.static")
47 config.add_static_view("sideshow", "sideshow.web:static", cache_max_age=3600)