Skip to content
Snippets Groups Projects
Select Git revision
  • af08e2d0d38a887b9e240378a4f69316709ab81f
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

provider

  • Clone with SSH
  • Clone with HTTPS
  • Provider Web Component

    GitLab Repository

    You can install this component via npm:

    npm i @dbp-toolkit/provider

    Usage

    <provider></provider>
    <script type="module" src="node_modules/@dbp-toolkit/provider/dist/dbp-provider.js"></script>

    Attributes

    • init (optional): set your vars to values
      • example <provider init="foo=bar"></provider>
    • id (optional): set an id, useful for debugging
      • example <provider id="p-1"></provider>

    Local development

    # get the source
    git clone git@gitlab.tugraz.at:dbp/web-components/toolkit.git
    cd toolkit/packages/provider
    
    # install dependencies (make sure you have npm version 4+ installed, so symlinks to the git submodules are created automatically)
    yarn install
    
    # constantly build dist/bundle.js and run a local web-server on port 8002 
    yarn run watch
    
    # run tests
    yarn test

    Jump to http://localhost:8002 and you should get a demo page.