예제 #1
0
theme = WebpackThemeBundle(
    __name__,
    'assets',
    default='semantic-ui',
    themes={
        'semantic-ui':
        dict(
            entry={
                'invenio-app-rdm-landing-page':
                './js/invenio_app_rdm/landing_page/index.js',
                'invenio-app-rdm-deposit':
                './js/invenio_app_rdm/deposit/index.js',
                'invenio-app-rdm-search':
                './js/invenio_app_rdm/search/index.js',
                'invenio-app-rdm-user-records-search':
                './js/invenio_app_rdm/user_records_search/index.js',
            },
            dependencies={
                # add any additional npm dependencies here...
                "@babel/runtime": "^7.9.0",
                'formik': '^2.1.4',
                'luxon': '^1.23.0',
                'path': '^0.12.7',
                'prop-types': '^15.7.2',
                'react-dnd': '^11.1.3',
                'react-dnd-html5-backend': '^11.1.3',
                'react-invenio-deposit': '^0.13.0',
                'react-invenio-forms': '^0.7.0',
                'react-dropzone': "^11.0.3",
                'yup': '^0.27.0',
                '@ckeditor/ckeditor5-build-classic': '^16.0.0',
                '@ckeditor/ckeditor5-react': '^2.1.0',
            },
            aliases={
                # Define Semantic-UI theme configuration needed by
                # Invenio-Theme in order to build Semantic UI (in theme.js
                # entry point). theme.config itself is provided by
                # cookiecutter-invenio-rdm.
                '../../theme.config$': 'less/theme.config',
                'themes/rdm': 'less/invenio_app_rdm/theme',
                '@less/invenio_app_rdm': 'less/invenio_app_rdm',
            }),
    })
예제 #2
0
theme = WebpackThemeBundle(
    __name__,
    'assets',
    default='semantic-ui',
    themes={
        'semantic-ui':
        dict(
            entry={
                'invenio-app-rdm-deposits-deposit-form-js':
                './js/invenio_app_rdm/deposits/RDMDepositForm/index.js',
                'rdm_search_app':
                './js/invenio_app_rdm/search/index.js',
                'rdm_deposits_search_app':
                './js/invenio_app_rdm/deposits/search/index.js',
            },
            dependencies={
                # add any additional npm dependencies here...
                "@babel/runtime": "^7.9.0",
                'formik': '^2.1.4',
                'luxon': '^1.23.0',
                'path': '^0.12.7',
                'prop-types': '^15.7.2',
                'react-invenio-deposit': '^0.7.0',
                'react-invenio-forms': '^0.3.0',
                'react-dropzone': "^11.0.3",
            },
            aliases={
                # Define Semantic-UI theme configuration needed by
                # Invenio-Theme in order to build Semantic UI (in theme.js
                # entry point). theme.config itself is provided by
                # cookiecutter-invenio-rdm.
                '../../theme.config$': 'less/theme.config',
            }),
    })
예제 #3
0
previewer = WebpackThemeBundle(
    __name__,
    'assets',
    default='semantic-ui',
    themes={
        'bootstrap3':
        dict(entry={
            'd3_csv': './js/csv_previewer/init.js',
            'previewer_theme': './js/previewer_theme.js',
            'fullscreen_js': './js/fullscreen.js',
            'prism_js': './js/prismjs.js',
            'prism_css': './scss/prismjs.scss',
            'pdfjs_js': './js/pdfjs.js',
            'pdfjs_css': './scss/pdfjs.scss',
            'simple_image_css': './scss/simple_image.scss'
        },
             dependencies={
                 'bootstrap-sass': '~3.4.0',
                 'd3': '^3.5.17',
                 'flightjs': '~1.5.1',
                 'font-awesome': '~4.5.0',
                 'jquery': '^3.3.1',
                 'pdfjs-dist': '^1.4.192',
                 'prismjs': '^1.15.0',
             }),
        'semantic-ui':
        dict(entry={
            'd3_csv': './js/invenio_previewer/csv_previewer/init.js',
            'previewer_theme': './js/invenio_previewer/previewer_theme.js',
            'fullscreen_js': './js/invenio_previewer/fullscreen.js',
            'prism_js': './js/invenio_previewer/prismjs.js',
            'prism_css': './scss/invenio_previewer/prismjs.scss',
            'pdfjs_js': './js/invenio_previewer/pdfjs.js',
            'pdfjs_css': './scss/invenio_previewer/pdfjs.scss',
            'simple_image_css': './scss/invenio_previewer/simple_image.scss'
        },
             dependencies={
                 'd3': '^3.5.17',
                 'flightjs': '~1.5.1',
                 'font-awesome': '~4.5.0',
                 'jquery': '^3.3.1',
                 'pdfjs-dist': '^1.4.192',
                 'prismjs': '^1.15.0',
             }),
    })
예제 #4
0
theme = WebpackThemeBundle(
    __name__,
    "assets",
    default="semantic-ui",
    themes={
        "semantic-ui": dict(
            entry={
                "invenio-theme-tugraz-theme": "./less/invenio_theme_tugraz/theme.less",
                "invenio-theme-tugraz-js": "./js/invenio_theme_tugraz/theme.js",
                # overrides RDM deposit form
                'invenio-theme-tugraz-rdm-deposit': './js/invenio_theme_tugraz/deposit/index.js',
            },
            dependencies={
                # add any additional npm dependencies here...
                # Keep these dep: in sync with releases
                "@babel/runtime": "^7.9.0",
                'formik': '^2.1.4',
                'luxon': '^1.23.0',
                'path': '^0.12.7',
                'prop-types': '^15.7.2',
                'react-dnd': '^11.1.3',
                'react-dnd-html5-backend': '^11.1.3',
                'react-invenio-deposit': '^0.14.0',
                'react-invenio-forms': '^0.7.0',
                'react-dropzone': "^11.0.3",
                'yup': '^0.27.0',
                '@ckeditor/ckeditor5-build-classic': '^16.0.0',
                '@ckeditor/ckeditor5-react': '^2.1.0',
            },
        )
    },
)
예제 #5
0
# as an Intergovernmental Organization or submit itself to any jurisdiction.
"""JS/CSS webpack bundles for theme."""

from invenio_assets.webpack import WebpackThemeBundle

theme = WebpackThemeBundle(__name__,
                           'assets',
                           default='semantic-ui',
                           themes={
                               'semantic-ui':
                               dict(
                                   entry={
                                       'cernopendata_css':
                                       './scss/styles.scss',
                                       'cernopendata_js': './js/app.js'
                                   },
                                   dependencies={
                                       'open-iconic': '~1.1.1',
                                       'popper.js': '~1.11.0',
                                   },
                                   aliases={
                                       '../../theme.config$':
                                       'less/cernopendata/theme.config',
                                   },
                               ),
                           })

glossary = WebpackThemeBundle(__name__,
                              'assets',
                              default='semantic-ui',
                              themes={
예제 #6
0
# -*- coding: utf-8 -*-
#
# Copyright (C) 2021-2022 GEO Secretariat.
#
# geo-knowledge-hub is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""GEO Knowledge Hub Deposit (page) webpack."""

from invenio_assets.webpack import WebpackThemeBundle

theme = WebpackThemeBundle(
    import_name=__name__,
    folder="theme/assets",
    default="semantic-ui",
    themes={
        "semantic-ui":
        dict(
            entry={
                "geo-knowledge-hub-deposit":
                "./js/geo_knowledge_hub_deposit/deposit_form/index.js",
            },
            dependencies={
                "sweetalert2": "^11.1.7",
                "sweetalert2-react-content": "^4.1.1",
            },
            aliases={"@invenio-app-rdm": "js/invenio_app_rdm"},
        )
    },
)
예제 #7
0
theme = WebpackThemeBundle(
    import_name=__name__,
    folder="theme/assets",
    default="semantic-ui",
    themes={
        "semantic-ui":
        dict(
            entry={
                # User Stories
                "geo-knowledge-hub-landing-user-stories":
                "./js/geo_knowledge_hub_detail/user_stories/index.js",
                # Engagement carousel
                "geo-knowledge-hub-landing-engagements-carousel":
                "./js/geo_knowledge_hub_detail/engagements_carousel_sidebar/index.js",
                "geo-knowledge-hub-landing-engagements-carousel-theme":
                "./less/geo_knowledge_hub_detail/engagements_carousel_sidebar/theme.less",
                # Geospatial metadata visualizer
                "geo-knowledge-hub-landing-geospatial-metadata-visualizer":
                "./js/geo_knowledge_hub_detail/geospatial_previewer/index.js",
                "geo-knowledge-hub-landing-geospatial-metadata-visualizer-theme":
                "./less/geo_knowledge_hub_detail/geospatial_previewer/theme.less",
            },
            dependencies={
                "leaflet": "^1.7.1",
                "react-leaflet": "3.1.0",
                "@react-leaflet/core": "1.0.2",
                "natsort": "^2.0.3",
                "lodash": "^4.17.0",
                "react-glider": "^3.0.1",
                "pure-react-carousel": "^1.28.1",
            },
        )
    },
)
예제 #8
0
theme = WebpackThemeBundle(
    __name__,
    'assets',
    default='semantic-ui',
    themes={
        'semantic-ui':
        dict(
            entry={
                'invenio-app-rdm-landing-page':
                './js/invenio_app_rdm/landing_page/index.js',
                'invenio-app-rdm-landing-page-theme':
                './js/invenio_app_rdm/landing_page/theme.js',
                'invenio-app-rdm-deposit':
                './js/invenio_app_rdm/deposit/index.js',
                'invenio-app-rdm-search':
                './js/invenio_app_rdm/search/index.js',
                'invenio-app-rdm-user-uploads':
                './js/invenio_app_rdm/user_dashboard/uploads.js',
                'invenio-app-rdm-user-communities':
                './js/invenio_app_rdm/user_dashboard/communities.js',
                'invenio-app-rdm-user-requests':
                './js/invenio_app_rdm/user_dashboard/requests.js',
                'base-theme-rdm': './js/invenio_app_rdm/theme.js',
            },
            dependencies={
                '@babel/runtime': '^7.9.0',
                '@ckeditor/ckeditor5-build-classic': '^16.0.0',
                '@ckeditor/ckeditor5-react': '^2.1.0',
                'formik': '^2.1.0',
                "i18next": "^20.3.0",
                "i18next-browser-languagedetector": "^6.1.0",
                'luxon': '^1.23.0',
                'path': '^0.12.7',
                'prop-types': '^15.7.2',
                'react-copy-to-clipboard': '^5.0.0',
                'react-dnd': '^11.1.0',
                'react-dnd-html5-backend': '^11.1.0',
                'react-dropzone': "^11.0.0",
                "react-i18next": "^11.11.0",
                'react-invenio-deposit': '^0.19.0',
                'react-invenio-forms': '^0.10.0',
                'react-searchkit': '^2.0.0',
                'yup': '^0.32.0',
            },
            aliases={
                # Define Semantic-UI theme configuration needed by
                # Invenio-Theme in order to build Semantic UI (in theme.js
                # entry point). theme.config itself is provided by
                # cookiecutter-invenio-rdm.
                '../../theme.config$': 'less/theme.config',
                '../../less/site': 'less/site',
                '../../less': 'less',
                'themes/rdm': 'less/invenio_app_rdm/theme',
                '@less/invenio_app_rdm': 'less/invenio_app_rdm',
                '@translations/invenio_app_rdm':
                'translations/invenio_app_rdm',
            }),
    })