from __future__ import unicode_literals

from invenio_base.bundles import invenio as _i
from invenio_base.bundles import jquery as _j

from invenio_ext.assets import Bundle, RequireJSFilter
from invenio_ext.assets.filter import CSSUrlFixer

js = Bundle("vendors/plupload/js/moxie.js",
            "vendors/plupload/js/plupload.dev.js",
            "vendors/json-editor/dist/jsoneditor.js",
            "js/deposit/init.js",
            "js/deposit/jsonwidget.js",
            output="deposit.js",
            filters=RequireJSFilter(exclude=[_j, _i]),
            weight=51,
            bower={
                "plupload": "latest",
                "ckeditor": "latest",
                "flight": "latest",
                "eonasdan-bootstrap-datetimepicker": "4.14.30",
                "base-64": "latest",
                "json-editor": "latest",
                "select2": "~3",
                "utf8": "latest",
            })

styles = Bundle(
    "css/deposit/form.css",
    "vendors/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css",  # noqa
Example #2
0
# Copyright (C) 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""Records bundles."""

from __future__ import unicode_literals

from invenio_ext.assets import Bundle, RequireJSFilter

js = Bundle("js/records/init.js",
            filters=RequireJSFilter(),
            output="records.js",
            weight=20)

css = Bundle("css/records/record.css",
             output="record.css",
             weight=20,
             filters="cleancss")
Example #3
0
        "jquery-tablesorter": "http://invenio-software.org/download/jquery/"
        "jquery.tablesorter.20111208.zip",  # orphan
        "jquery-tokeninput": "latest",
        "jquery.treeview": "latest",  # orphan, to be replaced by jqTree
        "json2": "latest",  # orphan
        "hogan": "~3",
        "MathJax": "~2.4",  # orphan
        "swfobject": "latest",  # orphan
        "typeahead.js": "latest",
        "uploadify": "latest"  # orphan
        # "bootstrap": "*", is set by invenio.css already.
    })

invenio = Bundle("js/invenio.js",
                 output="invenio.js",
                 filters=RequireJSFilter(exclude=[jquery]),
                 weight=90)

admin = Bundle("js/admin.js",
               "vendors/admin-lte/dist/js/app.min.js",
               output="admin.js",
               filters=RequireJSFilter(exclude=[jquery]),
               weight=50)

admin_styles = Bundle(
    "vendors/admin-lte/dist/css/AdminLTE.min.css",
    "vendors/admin-lte/dist/css/skins/{0}.min.css".format(
        current_app.config.get("ADMIN_UI_SKIN")),
    output="admin.css",
    filters="less,cleancss",
    weight=91,  # load after invenio.css