# 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. """Previewer bundles.""" from __future__ import unicode_literals from invenio.ext.assets import Bundle, CleanCSSFilter, RequireJSFilter pdfjs = Bundle("vendors/pdfjs-build/generic/web/compatibility.js", "vendors/pdfjs-build/generic/web/l10n.js", "vendors/pdfjs-build/generic/build/pdf.js", "js/previewer/pdfjs/viewer.js", "js/previewer/pdfjs/fullscreen.js", filters="uglifyjs", output="previewer/pdfjs.js", weight=20, bower={"pdfjs-build": "latest"}) pdftk = Bundle("js/previewer/pdf_viewer.js", filters="uglifyjs", output="previewer/pdftk.js", weight=20) pdfjscss = Bundle("css/previewer/pdfjs/viewer.css", filters=CleanCSSFilter(), output="previewer/pdfjs.css", weight=20)
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014 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. """Group bundles.""" from invenio.ext.assets import Bundle, RequireJSFilter from invenio.base.bundles import jquery as _j, invenio as _i js = Bundle('js/groups/init.js', filters=RequireJSFilter(exclude=[_j, _i]), output="groups.js", weight=50)
# 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. """Search bundles.""" from __future__ import unicode_literals from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter js = Bundle('js/search/init.js', filters=RequireJSFilter(exclude=[_j, _i]), output="search.js", weight=50) styles = Bundle('css/search/collection.css', 'css/search/search.css', 'css/search/searchbar.css', filters="cleancss", output="search.css", weight=60) adminjs = Bundle('js/admin/search/init.js', filters=RequireJSFilter(exclude=[_j, _i]), output="admin/search.js", weight=50, bower={ "jquery-ui": "~1.11",
# 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. """Communities bundles.""" from __future__ import unicode_literals from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter js = Bundle("js/communities/init.js", "js/communities/custom.js", filters=RequireJSFilter(exclude=[_j, _i]), output="communities.js", bower={ "ckeditor": "latest", }, weight=91) styles = Bundle("css/communities/communities.less", filters="less,cleancss", output="communities.css", weight=91)
# 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. """Editor bundles.""" from invenio.ext.assets import Bundle js = Bundle( "vendors/jquery/dist/jquery.js", "vendors/bootstrap/dist/js/bootstrap.js", "vendors/jquery-ui/jquery-ui.js", "vendors/jquery.jeditable/index.js", "vendors/jquery.hotkeys/jquery.hotkeys.js", "vendors/json2/json2.js", "js/editor/refextract.js", "js/editor/display.js", "js/editor/engine.js", "js/editor/keys.js", "js/editor/menu.js", "js/editor/holdingpen.js", "js/editor/marcxml.js", "js/editor/clipboard.js", output="editor.js", weight=51, ) styles = Bundle("css/editor/base.css", "vendors/jquery-ui/themes/redmond/jquery-ui.css", output="editor.css", filters="cleancss", weight=51)
## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with B2SHARE; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. """B2SHARE bundles.""" from invenio.ext.assets import Bundle ############### common # hack: lodash exports _, which is later hijacked by invenio # we run lodash before anything else and save the exported _ b2s_pre_almond_init_js = Bundle( "vendors/lodash/dist/lodash.js", "js/lodash-fix.js", output="b2s_pre_almond_init.js", weight=-1, ) b2s_common_css = Bundle( "css/b2s-common.css", output="b2s_common.css", filters="cleancss", weight=60, ) ############### deposit b2s_deposit_js = Bundle( "vendors/bootstrap-switch/dist/js/bootstrap-switch.js", "vendors/bootstrap-multiselect/dist/js/bootstrap-multiselect.js",
# # 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. """Formatter bundles.""" from invenio.ext.assets import Bundle css = Bundle( "css/formatter/templates_brief.css", "css/formatter/templates_detailed.css", output="formatter.css", weight=60, filters="cleancss", bower={ # Used by Video_HTML_detailed. "mediaelement": "latest", # 1.4.0 is from 2011 !!! # ---------------------- # http://www.keith-wood.name/bookmark.html "jquery.bookmark": "http://invenio-software.org/download/jquery/" "jquery.bookmark.package-1.4.0.zip" # orphan })
from invenio.ext.assets import Bundle from invenio.base.bundles import styles as _styles from invenio.modules.previewer.bundles import csv_previewer as _csv_previewer _csv_previewer.bower['d3'] = '3.3.13' css = Bundle("css/style.css", "css/carousel.css", "css/collection.css", "css/testimonials.css", "css/search.css", "css/educate.css", "css/news.css", "css/records.css", "css/middle.css", "css/record.css", "css/general.css", "js/zglossary/jquery.zglossary.min.css", output="opendata.css", weight=1, bower={ "open-sans-fontface": "latest", }) glossary = Bundle( "js/zglossary/jquery.zglossary.js", output="glossary.js", weight=100, )
# # 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. """Group bundles.""" from __future__ import absolute_import, print_function, unicode_literals from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter js = Bundle('js/groups/init.js', filters=RequireJSFilter(exclude=[_j, _i]), output="groups.js", weight=50) styles = Bundle("css/groups/groups.less", filters="less,cleancss", output="groups.css", weight=50)
# 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. """Bundles for Jasmine test runner.""" from __future__ import unicode_literals from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter jasmine_js = Bundle( # es5-shim is needed by PhantomJS # 'vendors/es5-shim/es5-shim.js', # 'vendors/es5-shim/es5-sham.js', "js/jasmine/init.js", output="jasmine.js", weight=50, filters=RequireJSFilter(exclude=[_j, _i]), bower={ "jasmine": ">=2", "jasmine-jquery": ">=2", "jasmine-flight": ">=3", "jasmine-ajax": ">=2", }) jasmine_styles = Bundle('vendors/jasmine/lib/jasmine-core/jasmine.css', weight=-1, output='jasmine.css')
# -*- coding: utf-8 -*- # # This file is part of Lifewatch DAAP. # Copyright (C) 2015 Ana Yaiza Rodriguez Marrero. # # Lifewatch DAAP 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 3 of the License, or # (at your option) any later version. # # Lifewatch DAAP 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 Lifewatch DAAP. If not, see <http://www.gnu.org/licenses/>. from invenio.ext.assets import Bundle, RequireJSFilter from invenio.base.bundles import jquery as _j, invenio as _i js = Bundle( "js/projects/integrate.js", output="projects.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=60, )
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 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. """Pages bundles.""" from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter edit_js = Bundle("js/pages/edit.js", output="edit_pages.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=51)
# 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. """Deposit bundles.""" from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter js = Bundle("vendors/plupload/js/moxie.js", "vendors/plupload/js/plupload.dev.js", "js/instruments/init.js", output="instruments.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=51, bower={ "plupload": "latest", "ckeditor": "latest", "flight": "latest", "eonasdan-bootstrap-datetimepicker": "3.1.3", }) styles = Bundle("css/instruments/form.css", ("vendors/eonasdan-bootstrap-datetimepicker" "/build/css/bootstrap-datetimepicker.css"), output="instruments.css", filters="cleancss", weight=51)
# This file is part of Lifewatch DAAP. # Copyright (C) 2015 Ana Yaiza Rodriguez Marrero. # # Lifewatch DAAP 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 3 of the License, or # (at your option) any later version. # # Lifewatch DAAP 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 Lifewatch DAAP. If not, see <http://www.gnu.org/licenses/>. from invenio.ext.assets import Bundle, RequireJSFilter from invenio.base.bundles import jquery as _j, invenio as _i js = Bundle( "js/profile/proxy.js", output="profile.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=51, bower={ "asn1js": "latest", "jsrsasign": "latest", "jquery-validation": "latest", }, )
# # 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. """Messages bundles.""" from invenio.base.bundles import invenio as _i, jquery as _j, styles as _styles from invenio.ext.assets import Bundle, RequireJSFilter _styles.contents.append( "vendors/jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css") js = Bundle('js/messages/init.js', output='messages.js', weight=70, filters=RequireJSFilter(exclude=[_j, _i]), bower={ "jquery-ui": "~1.11", "jqueryui-timepicker-addon": "1.5.2" })
# This file is part of Invenio. # Copyright (C) 2014 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. """Tags bundles.""" from invenio.ext.assets import Bundle from invenio.base.bundles import styles as _css _css.contents.append("css/tags/popover.css") js = Bundle( "js/tags/record_editor.js", output="tags.js", weight=20, filters="uglifyjs" # beautify couldn't do anything here ;-) )
js = Bundle("vendors/ispy-webgl/js/lib/three.min.js", "vendors/ispy-webgl/js/lib/helvetiker_regular.typeface.js", "vendors/ispy-webgl/js/lib/jquery.scrollintoview.min.js", "vendors/ispy-webgl/js/lib/stats.min.js", "vendors/ispy-webgl/js/lib/stupidtable.min.js", "vendors/ispy-webgl/js/lib/tween.min.js", "vendors/ispy-webgl/js/lib/CanvasRenderer.js", "vendors/ispy-webgl/js/lib/CombinedCamera.js", "vendors/ispy-webgl/js/lib/DeviceOrientationControls.js", "vendors/ispy-webgl/js/lib/MTLLoader.js", "vendors/ispy-webgl/js/lib/OBJExporter.js", "vendors/ispy-webgl/js/lib/OBJLoader.js", "vendors/ispy-webgl/js/lib/OBJMTLLoader.js", "vendors/ispy-webgl/js/lib/Projector.js", "vendors/ispy-webgl/js/lib/SVGRenderer.js", "vendors/ispy-webgl/js/lib/TrackballControls.js", "vendors/ispy-webgl/js/StereoEffect.js", "vendors/ispy-webgl/js/config.js", "vendors/ispy-webgl/js/setup.js", "vendors/ispy-webgl/js/animate.js", "vendors/ispy-webgl/js/files-load.js", "vendors/ispy-webgl/js/objects-draw.js", "vendors/ispy-webgl/js/objects-add.js", "vendors/ispy-webgl/js/objects-config.js", "vendors/ispy-webgl/js/controls.js", "vendors/ispy-webgl/js/tree-view.js", "vendors/ispy-webgl/js/display.js", "vendors/ispy-webgl/js/ispy.js", "vendors/ispy-webgl/geometry/models.min.js", "vendors/ispy-webgl/geometry/dt.min.js", "vendors/ispy-webgl/geometry/csc.min.js", "vendors/ispy-webgl/geometry/rpc.min.js", "vendors/ispy-webgl/geometry/ho.min.js", "vendors/ispy-webgl/geometry/hehf.min.js", "vendors/ispy-webgl/geometry/hb.min.js", "vendors/ispy-webgl/geometry/eb-reduced.min.js", "vendors/ispy-webgl/geometry/ee-reduced.min.js", "vendors/ispy-webgl/geometry/tob.min.js", "vendors/ispy-webgl/geometry/tec.min.js", "vendors/ispy-webgl/geometry/tib.min.js", "vendors/ispy-webgl/geometry/tid.min.js", "vendors/ispy-webgl/geometry/pixel.min.js", output="previewer_ispy.js", filters="requirejs", weight=51, bower={"ispy-webgl": "0.9.4-invenio.17"})
## ## You should have received a copy of the GNU General Public License ## along with Zenodo. If not, see <http://www.gnu.org/licenses/>. ## ## In applying this licence, CERN does not waive the privileges and immunities ## granted to it by virtue of its status as an Intergovernmental Organization ## or submit itself to any jurisdiction. """Zenodo GitHub bundles.""" from invenio.ext.assets import Bundle, RequireJSFilter from invenio.base.bundles import jquery as _j, invenio as _i # # Site-wide JS # js = Bundle("js/github/init.js", output="github.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=60, bower={ "bootstrap-switch": "3.0.2", }) styles = Bundle("vendors/bootstrap-switch/src/less/bootstrap3/build.less", output="github.css", filters="less,cleancss", weight=60, bower={ "bootstrap-switch": "3.0.2", })
# # 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. """Communities bundles.""" from __future__ import unicode_literals from invenio.ext.assets import Bundle js = Bundle( "js/communities/custom.js", filters="uglifyjs", output="communities.js", weight=91 ) styles = Bundle( "css/communities/communities.less", filters="less,cleancss", output="communities.css", weight=91 )
## -*- coding: utf-8 -*- ## ## This file is part of B2SHARE. ## Copyright (C) 2015, CERN. ## ## B2SHARE 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. ## ## B2SHARE 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 B2SHARE; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. """B2SHARE bundles.""" from invenio.ext.assets import Bundle b2s_login_css = Bundle( "css/accounts/b2s-accounts.css", output="b2s_accounts.css", filters="cleancss", weight=60, )
# # 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. """Workflows bundles.""" from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, CleanCSSFilter, RequireJSFilter js = Bundle('js/workflows/init.js', filters=RequireJSFilter(exclude=[_j, _i]), output='workflows.js', weight=50, bower={ "bootstrap-tagsinput": "git://github.com/inspirehep/bootstrap-tagsinput.git#master", "datatables": "latest", "datatables-plugins": "latest", "datatables-tabletools": "latest", "prism": "gh-pages", "flight": "latest" }) css = Bundle( 'vendors/prism/themes/prism.css', 'vendors/bootstrap-tagsinput/src/bootstrap-tagsinput.css', 'vendors/datatables/media/css/jquery.dataTables.css', 'vendors/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css', 'vendors/datatables-tabletools/css/dataTables.tableTools.css', 'css/workflows/workflows.css', filters=CleanCSSFilter(),
# # This file is part of Invenio. # Copyright (C) 2014 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 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")
# # 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. """Comments bundles.""" from __future__ import unicode_literals from invenio.ext.assets import Bundle js = Bundle('js/comments/comments.js', 'js/comments/collapse.js', output='comments.js', weight=10, filters='uglifyjs') css = Bundle('css/comments/comments.css', output='comments.css', weight=10, filters='cleancss')
# along with Zenodo. If not, see <http://www.gnu.org/licenses/>. # # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. """Pages bundles.""" from invenio.base.bundles import invenio as _i, jquery as _j from invenio.ext.assets import Bundle, RequireJSFilter guide_js = Bundle( "js/pages/guide.js", output="guide.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=51, bower={ "jquery.pin": "latest", } ) guide_css = Bundle( "css/pages/guide.less", output="guide.css", filters="less, cleancss", weight=51, ) page_list_css = Bundle( "css/pages/list.less", output="list.css",
from __future__ import unicode_literals import mimetypes from invenio.ext.assets import Bundle, RequireJSFilter mimetypes.add_type("text/css", ".less") styles = Bundle("vendors/jquery-tokeninput/styles/token-input.css", "vendors/jquery-tokeninput/styles/token-input-facebook.css", "vendors/typeahead.js-bootstrap3.less/typeahead.css", "less/base.less", "less/user-menu.less", "less/sticky-footer.less", "less/footer.less", output="invenio.css", depends=["less/base.less", "less/base/**/*.less"], filters="less,cleancss", weight=50, bower={ "bootstrap": "3.3.4", "font-awesome": "4.1.0", "typeahead.js-bootstrap3.less": "0.2.3", }) jquery = Bundle( "js/init.js", output="jquery.js", filters="requirejs", weight=10, bower={ # The dependencies marked as *orphan* are not part of any bundles
## ## 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. """Search bundles.""" from invenio.ext.assets import Bundle js = Bundle('js/tooltip.js', 'js/popover.js', 'js/webnewsfunc.js', filters="requirejs", output="webnews.js", weight=50) styles = Bundle('css/tooltipster.css', 'css/custom.css', 'css/bootstrap-theme.min.css', 'css/bootstrap.min.css', filters="cleancss", output="webnews.css", weight=60, bower={ "bootstrap": "3.2.0", "font-awesome": "4.1.0", "typeahead.js-bootstrap3.less": "0.2.3", })
# 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. """Accounts bundles.""" from __future__ import unicode_literals from invenio.base.bundles import invenio as _i, jquery as _j, styles as _styles from invenio.ext.assets import Bundle, RequireJSFilter # The underscore makes it "hidden" for the bundle collector. _styles.contents += ("css/accounts/login.css",) js = Bundle( "js/accounts/init.js", output="accounts.js", weight=80, filters=RequireJSFilter(exclude=[_j, _i]), bower={ "jquery-ui": "~1.11" } )
# 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. """Deposit bundles.""" 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 js = Bundle("vendors/plupload/js/moxie.js", "vendors/plupload/js/plupload.dev.js", "js/deposit/init.js", output="deposit.js", filters=RequireJSFilter(exclude=[_j, _i]), weight=51, bower={ "plupload": "latest", "ckeditor": "latest", "flight": "latest", "eonasdan-bootstrap-datetimepicker": "4.14.30", }) styles = Bundle( "css/deposit/form.css", "vendors/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css", # noqa output="deposit.css", filters="cleancss", weight=51)
# along with Invenio; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. """Annotations bundles.""" from __future__ import unicode_literals from invenio.ext.assets import Bundle from invenio.modules.comments.bundles import css as _commentscss, \ js as _commentsjs from invenio.modules.previewer.bundles import pdftk as _pdftk _pdftk.contents += ("js/annotations/pdf_notes_helpers.js",) _commentsjs.contents += ("js/annotations/notes_popover.js",) _commentscss.contents += ("css/annotations/annotations.css",) js = Bundle( "vendors/plupload/js/moxie.js", "vendors/plupload/js/plupload.dev.js", "js/annotations/annotations.js", "js/annotations/plupload_helper.js", filters="uglifyjs", output="annotations.js", weight=30, bower={ "plupload": "latest" } )
"""CDS bundles.""" from invenio.ext.assets import Bundle from invenio.base.bundles import styles as _styles _styles.contents.remove("less/base.less") _styles.contents += ("less/cds.less",) js = Bundle( "js/app.js", "js/main.js", output="cds.js", weight=91, filters="requirejs", bower={ "backbone": "latest", "backbone.localstorage": "latest", "jsx-requirejs-plugin": "latest", "requirejs-plugins": "latest", "es5-shim": "latest" }, depends=[ "js/app.js", "js/main.js", "js/prototype/**/*.js" ] )