view libervia/pages/_browser/browser_meta.json @ 1389:ac4173fff71d

pages (lists/view): add `list_type` to `template_data`: when a service/node is used for the first time, schema is retrieved, and `list_type` is put in cache and used in template. This allows the template to have specialised views depending on the kind of list user is opening.
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 20:58:22 +0100
parents 71f24ad99a2c
children 7c776c9d7c75
line wrap: on
line source

{
    "js": {
        "package": {
            "dependencies": {
                "nunjucks": "latest",
                "swiper": "^6.1.1",
                "moment": "latest",
                "ogv": "latest"
            }
        },
        "brython_map": {
            "nunjucks": "nunjucks/browser/nunjucks.min.js",
            "swiper": {
                "path": "swiper/swiper-bundle.min.js",
                "export": ["Swiper"]
            },
            "moment": "moment/min/moment.min.js",
            "ogv": {
                "path": "ogv/dist/ogv.js",
                "export": ["OGVCompat", "OGVLoader", "OGVMediaError", "OGVMediaType", "OGVTimeRanges", "OGVPlayer", "OGVVersion"],
                "extra_init": "OGVLoader.base='/{build_dir}/node_modules/ogv/dist'"
            }
        }
    }
}